I know. I wonder whether we should change the ESP8266 version - I wonder whether very many people use the callback form anyway.
The Pico + ESP8266 code behaves the same way as the Espruino WiFi code, as do pretty much all the other functions (like this]. It seems it'd be more confusing to have just one or two functions that didn't (especially when that seemed to be the general form of callbacks for a lot of Node.js libraries as well).
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.
I know. I wonder whether we should change the ESP8266 version - I wonder whether very many people use the callback form anyway.
The Pico + ESP8266 code behaves the same way as the Espruino WiFi code, as do pretty much all the other functions (like this]. It seems it'd be more confusing to have just one or two functions that didn't (especially when that seemed to be the general form of callbacks for a lot of Node.js libraries as well).