Update WaterishOS-minimal2.0.ino

This commit is contained in:
Siwat Sirichai 2019-08-09 11:36:27 +07:00
parent 50341a513a
commit 16eb601571
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,6 @@
#include <Thread.h>
#include <ThreadController.h>
Adafruit_MCP23017 mcp;
String MQTT_SERVER = "";
String ssid = "";
String password = "";
byte InteruptPinA=1;
@ -37,7 +36,7 @@ byte arduinoInterrupt=1;
long tslr=0;
WiFiClient espClient;
String nodename="devkit";
PubSubClient client(MQTT_SERVER, 1883, espClient);
PubSubClient client("siwatsystem.com", 1883, espClient);
PubSubClientTools mqtt(client);
ThreadController threadControl = ThreadController();
Thread mqttupdater = Thread();
@ -97,6 +96,7 @@ void setup(){
mqttupdater.onRun(updatemqtt);
mqttupdater.setInterval(1000);
threadControl.add(&datacollector);
threadControl.add(&mqttupdater);
}
void loop(){