ESP8266 从文本框中获取值

问题描述 投票:0回答:1
http arduino webserver esp8266 arduino-esp8266
1个回答
0
投票

您的代码正在 URL 中传递名为

IpToPing
的参数:

$.get('/save?IpToPing=' + IpToPing, function(data)){

处理程序正在寻找名为

Ip
:

的参数
IpToPing = server.arg("IP");

您需要在两个地方使用相同的名称。

© www.soinside.com 2019 - 2024. All rights reserved.