no message
This commit is contained in:
parent
4310f55d05
commit
6e78cdf9e3
|
@ -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