From 26f8d378028ce40c378421b71bb2b34d696801d4 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Mon, 12 Aug 2019 16:58:01 +0700 Subject: [PATCH] add Telemetry Constant --- WaterishOS-core2.0/WaterishOS-core2.0.ino | 6 +++--- WaterishOS-core2.0/config.h | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/WaterishOS-core2.0/WaterishOS-core2.0.ino b/WaterishOS-core2.0/WaterishOS-core2.0.ino index bccc29d..e92eefa 100644 --- a/WaterishOS-core2.0/WaterishOS-core2.0.ino +++ b/WaterishOS-core2.0/WaterishOS-core2.0.ino @@ -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); } diff --git a/WaterishOS-core2.0/config.h b/WaterishOS-core2.0/config.h index 95e8e8f..656018b 100644 --- a/WaterishOS-core2.0/config.h +++ b/WaterishOS-core2.0/config.h @@ -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;