Wifi.setIP
Call type:
Wifi.setIP(settings, callback)
Description
The settings object must contain the following properties.
ip IP address as string (e.g. "192.168.5.100")
gw The network gateway as string (e.g. "192.168.5.1")
netmask The interface netmask as string (e.g. "255.255.255.0")
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.
Wed 2017.02.08
While trying each of the available Wifi functions, ran into this 'documentation inconsistency' ;-)
Interestingly, wifi.getIP() functions as expected, trying to force a known IP addr using setIP() casues an error:
I am typing into the left panel of WebIDE
The spec reference:
http://www.espruino.com/Reference#Wifi
Wifi.setIP
Call type:
Wifi.setIP(settings, callback)
Description
The settings object must contain the following properties.
ip IP address as string (e.g. "192.168.5.100")
gw The network gateway as string (e.g. "192.168.5.1")
netmask The interface netmask as string (e.g. "255.255.255.0")
Is the reference ahead of the intended functionality, or have I missed a glaring typo?
Robin