Hello, sorry for the late reply
deshipu wrote:Well, the gateway IP usually has to be in the same subnetwork as your normal IP for it to function properly. Otherwise, how it didn't work?
This is my code to setup the Static IP but it seems not to be working
Code: Select all
import network
sta_if = network.WLAN(network.STA_IF)
sta_if.active(True)
sta_if.ifconfig('xxx.xxx.xxx.xxx','255.255.255.0','192.168.1.1','xxx.xxx.xxx.xxx')
sta_if.connect('SSID','Password')
This is the error I get when I input the data
Code: Select all
Traceback (most recent call last):
File "<stdin>", line 9, in <module>
TypeError: function expected at most 2 arguments, got 5
It seems to be expecting a str instead of a tuple or a list.