Skip to content

Commit f1adabf

Browse files
aentingermattiabertorello
authored andcommitted
Fix - an update function shall also be able to be registered also for periodic updates
1 parent 2329e43 commit f1adabf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ArduinoIoTCloud.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class ArduinoIoTCloudClass {
6161
Thing.addProperty(property, name, permission).publishOnChange((T)minDelta).onUpdate(fn);
6262
}
6363
else {
64-
Thing.addProperty(property, name, permission).publishEvery(seconds);
64+
Thing.addProperty(property, name, permission).publishEvery(seconds).onUpdate(fn);
6565
}
6666
}
6767

0 commit comments

Comments
 (0)