• 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:

    Uncaught Error: Function "setIP" not found!
     at line 1 col 6

    I am typing into the left panel of WebIDE

    var wifi = require("Wifi")

    The spec reference:


    Currently this library is ESP8266 specific

      Call type:
        Wifi.setIP(settings, callback)
      The settings object must contain the following properties.
        ip IP address as string (e.g. "")
        gw The network gateway as string (e.g. "")
        netmask The interface netmask as string (e.g. "")

      "VERSION": "1v84.tve_master_363580f",
      "BUILD_DATE": "Jan 10 2016",

    Is the reference ahead of the intended functionality, or have I missed a glaring typo?

  • I thought that too, but apparently it's coming in the next firmware release. You can get a travis build now with it included. @MaBe has more info

  • Hi @Robin,

    have a look at this

  • 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:

    web page login to connect to an access point

    confirmation on missing function and module load verification

    spiffy template solution to runtime and development start objective


  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview

Uncaught Error: Function setIP() not found in Wifi module for ESP8266

Posted by Avatar for Robin @Robin