Thanks! I misread my own comments on that page: "This is only available in ESP8266 boards running Espruino and Espruino WiFi boards"
So yeah, that'd be the way to do it.
@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.
Thanks! I misread my own comments on that page: "This is only available in ESP8266 boards running Espruino and Espruino WiFi boards"
So yeah, that'd be the way to do it.