what does the WLAN object look like? It sounds like the call to require("CC3000").connect(); is returning something bogus the second and subsequent times it's called.
Actually, are you even supposed to be using it like that?
The documentation shows doing 'wlan.disconnect()' and then later, wlan.connect() - but never a second call to require("CC3000").connect() - so maybe the second time you call it, it's returning a bogus object, because it's only meant to be called once, and isn't smart enough to throw an exception?
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.
what does the WLAN object look like? It sounds like the call to require("CC3000").connect(); is returning something bogus the second and subsequent times it's called.
Actually, are you even supposed to be using it like that?
The documentation shows doing 'wlan.disconnect()' and then later, wlan.connect() - but never a second call to require("CC3000").connect() - so maybe the second time you call it, it's returning a bogus object, because it's only meant to be called once, and isn't smart enough to throw an exception?