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() {
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) {