This commit is contained in:
Shawn A
2018-02-20 11:54:14 -06:00
parent 39f20a6adc
commit e01101eff1
3 changed files with 23 additions and 11 deletions
@@ -1,6 +1,7 @@
#include <FS.h> // this needs to be first, or it all crashes and burns...
#include <WiFiManager.h> // https://github.com/tzapu/WiFiManager
#include <ArduinoJson.h> // https://github.com/bblanchon/ArduinoJson
#include <spiffs.h>
//define your default values here, if there are different values in config.json, they are overwritten.
char mqtt_server[40];
@@ -68,7 +69,10 @@ void setup() {
// id/name placeholder/prompt default length
WiFiManagerParameter custom_mqtt_server("server", "mqtt server", mqtt_server, 40);
WiFiManagerParameter custom_mqtt_port("port", "mqtt port", mqtt_port, 6);
WiFiManagerParameter custom_blynk_token("blynk", "blynk token", blynk_token, 32);
// WiFiManagerParameter custom_blynk_token("blynk", "blynk token", "", 0);
WiFiManagerParameter custom_blynk_token("blynk", "blynk token");
custom_blynk_token.setValue("setvalue override",32);
//WiFiManager
//Local intialization. Once its business is done, there is no need to keep it around