marcoskirsch / nodemcu-httpserver

A (very) simple web server written in Lua for the ESP8266 firmware NodeMCU.
GNU General Public License v2.0
397 stars 166 forks source link

now use proper table based parameter for wifi.ap.setip #106

Closed Godzil closed 7 years ago

Godzil commented 7 years ago

Use a proper table for wifi.ap.setip instead of a string.

This is related with #103 where the NodeMCU's wifi object changed part of it's API.

geschwaerzler commented 7 years ago

Hi Marcos,

shouldn't it be:

conf.wifi.accessPoint.net.ip = {} conf.wifi.accessPoint.net.ip = "192.168.111.1" conf.wifi.accessPoint.net.netmask="255.255.255.0" conf.wifi.accessPoint.net.gateway="192.168.111.1"

geschwaerzler commented 7 years ago

sorry, shouldn't it be:

conf.wifi.accessPoint.net = {} conf.wifi.accessPoint.net.ip = "192.168.111.1" conf.wifi.accessPoint.net.netmask="255.255.255.0" conf.wifi.accessPoint.net.gateway="192.168.111.1"

or alternatively conf.wifi.accessPoint.net = { ip = "192.168.111.1", netmask="255.255.255.0", gateway="192.168.111.1" }