In lua is it possible with this code:
wifi.setmode(wifi.STATION)
wifi.sta.config("id","pass")
wifi.sta.connect()
wifi.sta.setip({ip="192.168.0.120",netmask="255.255.255.0",gateway="192.168.0.1"})
print("ESP8266 mode is: " .. wifi.getmode())
print("The module MAC address is: " .. wifi.ap.getmac())
print("Config done, IP is "..wifi.sta.getip())
Thanks in advance
Gino