no message

This commit is contained in:
Siwat Sirichai 2019-08-21 20:37:28 +07:00
parent 4310f55d05
commit 6e78cdf9e3
1 changed files with 3 additions and 6 deletions

View File

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