FOTA with MYSController does not work with sleeping Sensebender Micro
-
I use the "official" sketch for the Sensebender Micro. However, with "MEASURE_INTERVAL = 6000" and "FORCE_TRANSMIT_INTERVAL = 1" in order to transmit every 6 seconds.
Gateway is rpi ethernet.
MYSController 1.0.0beta (build 3316), "Sensebender board = TRUE", "Battery-powered / sleeping = TRUE" gives the following message but nothing more happens.
If I replace sleep by wait in the sketch and set "Battery-powered / sleeping = FALSE" in MYSController then FOTA works flawlessly. But then node is not sleeping.
Anyone knows how to get it working with a sleeping node?
-
@arrawx You should enable smart sleep.
Substitute:
https://github.com/mysensors/SensebenderMicro/blob/master/Arduino/SensebenderMicro/SensebenderMicro.ino#L221for
sleep(MEASURE_INTERVAL, true);
and in MYSController set Sensebender board = TRUE, Battery-powered/sleeping = TRUE
-
@tekka Thank you. However, it turned out that your advice was only part of the solution.
In order to solve the problem I had to also change the sensebender from 2.1.1 to development branch.
My rpi gateway uses development branch (due to reasons discussed here). Does the version mismatch between node and gateway explain why FOTA was not working?
-