Thanks! The one that's the big issue here is 16384 (that's the 'startup' code so if that fails the Cc3000 has failed to reboot). I thought I'd changed that though so that if it failed it would keep retrying it - are you using the latest firmware?
4104 is socket select which is something that should always return immediately - so the fact that it's not means we definitely need a restart. However 4112 is gethostname, which you might expect would take a long time sometimes? I wonder whether I should have a longer timeout for that.
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.
Thanks! The one that's the big issue here is 16384 (that's the 'startup' code so if that fails the Cc3000 has failed to reboot). I thought I'd changed that though so that if it failed it would keep retrying it - are you using the latest firmware?
If you're interested, the codes come from: https://github.com/espruino/Espruino/blob/master/libs/network/cc3000/hci.h
4104 is socket
select
which is something that should always return immediately - so the fact that it's not means we definitely need a restart. However 4112 isgethostname
, which you might expect would take a long time sometimes? I wonder whether I should have a longer timeout for that.