As the title says... Chat on...

User avatar
By JAB
#13790 Looks like by default the IP is 192.168.4.1 and I am wondering where this comes from.
I am trying to change this in the following way as per the wiki but when I reboot I get
lua: run_config.lua:18: '}' expected near ':'

(line 18 is is the "cfg =..." line)

Code: Select all   wifi.setmode(wifi.STATIONAP)
   cfg = {"ip":"192.168.200.1", "netmask":"255.255.255.0", "gateway":"192.168.200.1"}
   cfg.ssid = ssid
   cfg.pwd = psw
   wifi.ap.config(cfg)


I have also tried:
Code: Select all cfg =
  {
    "ip":"192.168.1.1",
    "netmask":"255.255.255.0",
    "gateway":"192.168.1.1"
  }
  wifi.ap.setip(cfg)


But same results