add Telemetry Constant

This commit is contained in:
Siwat Sirichai 2019-08-12 16:58:01 +07:00
parent 5dfab5613f
commit 26f8d37802
2 changed files with 7 additions and 3 deletions

View File

@ -114,12 +114,12 @@ void setup() {
delay(2000);
writelcd("Waterish OS a3.9","Reading Sensors");
delay(1000);
writelcd("Telemetry Control","siwatsystem.com");
writelcd(" Telemetry Node","siwatsystem.com");
if (client.connect("waterishos")) {
writelcd("Telemetry Control","Connected");
writelcd(" Telemetry Node","Connected");
delay(1000);
} else {
writelcd("Telemetry Control"," Failed Offline");
writelcd(" Telemetry Node"," Failed Offline");
online=false;
delay(3000);
}

View File

@ -1,5 +1,9 @@
const char ssid[] = "";
const char password[] = "";
const char* telemetryhost = "";
const char* telemetrykey = "";
const int telemetryport = 1883;
const char* telemetryuser = "";
const byte InteruptPinA=1;
const byte InteruptPinB=3;
const byte arduinoInterrupt=1;