I currently writing a module to support xbee modules in API mode. Once working/finished, i will contribute it.
It uses mainly a lot of serial communcation, i.e the serial class. For timeout handling i use some setTimeout/clearTimeout functions. I do not use any Filesystem/SD card functions.
From one time to another, i got a strange behavior. It took a while to find out what is wrong.
The function SetTimeout calls the callback function immediately, regardless how i set the timeout parameter.
After a physical reset of the module, everything is fine again. setTimeout is working again as excepted.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Hello,
I currently writing a module to support xbee modules in API mode. Once working/finished, i will contribute it.
It uses mainly a lot of serial communcation, i.e the serial class. For timeout handling i use some setTimeout/clearTimeout functions. I do not use any Filesystem/SD card functions.
From one time to another, i got a strange behavior. It took a while to find out what is wrong.
The function SetTimeout calls the callback function immediately, regardless how i set the timeout parameter.
After a physical reset of the module, everything is fine again. setTimeout is working again as excepted.
Until now i was not able to reproduce it.
Sacha