I updated my version to get rid of self caused memory leaks, I use the immediate return for timeouts. Thanks to the fix to the SIM900 module it is so far quite stable.
Additionally I set the SIM900 baud rate to 9600. Additionally I pull jobs out of resources with the max=1 parameter, means get only as less data as possible.
Memory seems stable so far.
I put the code online: https://github.com/afitterling/espruino-projects2/blob/master/RemoteWateringSystem.js
The cariots module can now handle wrong JSON and will reject the successful call: https://github.com/afitterling/Espruino-Modules/blob/develop/carriots.js
this is the result of the status push at call 104.
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.
I updated my version to get rid of self caused memory leaks, I use the immediate return for timeouts. Thanks to the fix to the SIM900 module it is so far quite stable.
Additionally I set the SIM900 baud rate to 9600. Additionally I pull jobs out of resources with the max=1 parameter, means get only as less data as possible.
Memory seems stable so far.
I put the code online: https://github.com/afitterling/espruino-projects2/blob/master/RemoteWateringSystem.js
The cariots module can now handle wrong JSON and will reject the successful call:
https://github.com/afitterling/Espruino-Modules/blob/develop/carriots.js
this is the result of the status push at call 104.