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:
commit
657f8855a0
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue