adding an at(atString, callback) could be the solution
Literally just:
wifi.disconnect = function(callback) { this.at.cmd("AT+CWQAP\r\n",1000,callback); };
would do it I think.
@Gordon started
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.
Literally just:
would do it I think.