Merge pull request #5 in WAT/waterishos-generation-2-rev-1.0 from development to master

* commit '2209ff87be6e864caa5c197c9d17bea34fb6a37a':
  no message
This commit is contained in:
Siwat Sirichai 2019-08-21 13:38:24 +00:00
commit 657f8855a0
1 changed files with 3 additions and 6 deletions

View File

@ -50,12 +50,9 @@ void setup() {
void loop() {
if (! mesh.connected())return;
unsigned long currentMillis = millis();
if (currentMillis - previousMillis >= interval) {
mesh.publish("/test","test");
previousMillis = currentMillis;
cnt++;
if (! mesh.connected()){
Serial.print("Mesh Disconnected");
return;
}
}
void callback(const char *topic, const char *msg) {