From f43bc9bc5b036baee78759522a0c744849fb31fd Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Wed, 21 Aug 2019 20:25:15 +0700 Subject: [PATCH] uplaod first error free source --- waterishos-gen2-mesh/waterishos-gen2-mesh.ino | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/waterishos-gen2-mesh/waterishos-gen2-mesh.ino b/waterishos-gen2-mesh/waterishos-gen2-mesh.ino index 5985609..2f1f1db 100644 --- a/waterishos-gen2-mesh/waterishos-gen2-mesh.ino +++ b/waterishos-gen2-mesh/waterishos-gen2-mesh.ino @@ -1,3 +1,8 @@ +#include +#include +#include +#include +#include #include #include #include @@ -23,7 +28,7 @@ #include "settings.h" #include #include - +wifi_conn networks[] = {WIFI_CONN(wifi_ssid, wifi_password, NULL, 0),NULL}; // |----------------------------------| // | SIWAT INC | // |----------------------------------| @@ -35,6 +40,7 @@ ESP8266MQTTMesh mesh = ESP8266MQTTMesh::Builder(networks, mqtt_server, mqtt_port void callback(const char *topic, const char *msg); void setup() { Serial.begin(115200); + Serial.print("Loading . . ."); delay(1000); mesh.setCallback(callback); mesh.begin();