From 20474ebf4a0cc725626f672ce642a908d6560194 Mon Sep 17 00:00:00 2001 From: Siwat Sirichai Date: Fri, 9 Aug 2019 11:58:21 +0700 Subject: [PATCH] split nodename to config.h --- WaterishOS-minimal2.0/WaterishOS-minimal2.0.ino | 1 - WaterishOS-minimal2.0/config.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/WaterishOS-minimal2.0/WaterishOS-minimal2.0.ino b/WaterishOS-minimal2.0/WaterishOS-minimal2.0.ino index 21f09d7..3d2c417 100644 --- a/WaterishOS-minimal2.0/WaterishOS-minimal2.0.ino +++ b/WaterishOS-minimal2.0/WaterishOS-minimal2.0.ino @@ -27,7 +27,6 @@ Adafruit_MCP23017 mcp; long tslr=0; WiFiClient espClient; -String nodename="devkit"; PubSubClient client("siwatsystem.com", 1883, espClient); PubSubClientTools mqtt(client); ThreadController threadControl = ThreadController(); diff --git a/WaterishOS-minimal2.0/config.h b/WaterishOS-minimal2.0/config.h index 21fe2d3..270f23e 100644 --- a/WaterishOS-minimal2.0/config.h +++ b/WaterishOS-minimal2.0/config.h @@ -3,3 +3,4 @@ const String password = ""; const byte InteruptPinA=1; const byte InteruptPinB=3; const byte arduinoInterrupt=1; +const String nodename="devkit";