Just to make sure I understand here, we're saying that if you call require("CC3000").connect() a second time, it returns undefined or something that's incorrect? That should work, so it could be some kind of bug.
Looks like the documentation is incorrect too though - looking at the code it's designed such that you should be able to call either connect function after it.
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.
Just to make sure I understand here, we're saying that if you call
require("CC3000").connect()
a second time, it returnsundefined
or something that's incorrect? That should work, so it could be some kind of bug.Looks like the documentation is incorrect too though - looking at the code it's designed such that you should be able to call either
connect
function after it.