Left here for archival purposes.

User avatar
By mash_172
#12221 I think I have the code correct however

Code: Select allwifi.setmode(wifi.SOFTAP)
wifi.ap.config({ssid="myssid",pwd="password"})
wifi.ap.setip({ip="192.168.1.254",netmask="255.255.255.0",gateway="192.168.1.254"})
print(wifi.ap.getip())

returns this
NodeMCU 0.9.5 build 20150127 powered by Lua 5.1.4
lua: cannot open init.lua
> dofile('test.lua')
192.168.4.1 255.255.255.0 192.168.4.1
>


the IP address doesn't seem to want to move from 192.168.4.1 when using with other ESP's I am unable to avoid address conflicts so would love this feature.
User avatar
By mash_172
#12279 OK Time to answer my own post hopefully it will help somebody else

NodeMCU 0.9.5 build 20150318 powered by Lua 5.1.4
lua: cannot open init.lua
> dofile('test.lua')
192.168.1.254 255.255.255.0 192.168.1.254


looks like build 20150318 has fixed it, yeay.