Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何通过Tapzu将变量传递给wifiManager对于esp 8266,我希望能够传递mqtt id和密码_Mqtt_Iot_Esp8266_Wifimanager_Arduino Esp8266 - Fatal编程技术网

如何通过Tapzu将变量传递给wifiManager对于esp 8266,我希望能够传递mqtt id和密码

如何通过Tapzu将变量传递给wifiManager对于esp 8266,我希望能够传递mqtt id和密码,mqtt,iot,esp8266,wifimanager,arduino-esp8266,Mqtt,Iot,Esp8266,Wifimanager,Arduino Esp8266,我可以使用tapzu wifi manager配置esp8266,我还想从wifi配置页面发送mqtt服务器id和密码,以便esp可以连接到mqtt服务器。我不想每次都闪烁esp,任何资源都将不胜感激。多谢各位 您可以通过以下方式向WiFiManager添加自定义参数: // id/name, placeholder/prompt, default, length WiFiManagerParameter custom_mqtt_server("server", "mqtt server", m

我可以使用tapzu wifi manager配置esp8266,我还想从wifi配置页面发送mqtt服务器id和密码,以便esp可以连接到mqtt服务器。我不想每次都闪烁esp,任何资源都将不胜感激。多谢各位

您可以通过以下方式向WiFiManager添加自定义参数:

// id/name, placeholder/prompt, default, length
WiFiManagerParameter custom_mqtt_server("server", "mqtt server", mqtt_server, 40);
wifiManager.addParameter(&custom_mqtt_server);
您可以通过

mqtt_server = custom_mqtt_server.getValue();
有关更多详细信息,请参阅