You shouldn't really use just clearInterval/clearTimeout without an argument unless it's on initialisation when you do really want to clear everything. Just remember the timeout value returned by setInterval/etc and use that.
What you're doing is you're clearing all timeouts - including the one that was set up inside the ESP8266WiFi module - and then the wifi module is complaining, not your code.
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.
You shouldn't really use just
clearInterval
/clearTimeout
without an argument unless it's on initialisation when you do really want to clear everything. Just remember the timeout value returned bysetInterval
/etc and use that.What you're doing is you're clearing all timeouts - including the one that was set up inside the
ESP8266WiFi
module - and then the wifi module is complaining, not your code.