Don't worry about formatting, just type in the text and we'll take care of making sense of it. We will auto-convert links, and if you put asterisks around words we will make them bold.
Tips:
For a full reference visit the Markdown syntax.
Posted by @allObjects
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.
Wifi is pretty compatible in Espruino with ESP8266 as well as in Espruino on ESP8266... including
wifi.getIP()
, which works in callback style the same way, even though for Espruino on ESP8266 the direct approach is still available (see my ddddooohhh-post atEspruino/Wifi - getIP() returns undefined but callback receives null,ip... - LOL).
The uniform way for
getIP()
looks as follows:...But it falls all apart when I
setHostname(...)
before (before connecting). With Espruino Wifi I still get the IP... but on ESP8266 I get0.0.0.0
. May be I do not understand setting thehostName
yet... have to play a bit more......to be continued.