Uncaught Error: Function setIP() not found in Wifi module for ESP8266 #5639
Unanswered
espruino-discuss
asked this question in
ESP8266
Replies: 1 comment
-
|
Posted at 2017-02-09 by Ollie I thought that too, but apparently it's coming in the next firmware release. You can get a travis build now with it included. @MaBecker has more info Posted at 2017-02-09 by @MaBecker Hi @robin, have a look at this Posted at 2017-02-09 by Robin Thr 2017.02.09 Thank you MaBe, Ollie and allObjects, For those that are new to the ESP8266 and are following along, these are well documented examples that are a must read: @MaBecker @ollie @allObjects Robin |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-02-09 by Robin
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
Beta Was this translation helpful? Give feedback.
All reactions