when I do this:
Code: Select all
self.sta_wlan.ifconfig(('10.0.0.34', '255.255.0.0', '10.0.0.10', '10.0.0.10'))
But why is the following not working (I assume I am doing something wrong with the tuple):
Code: Select all
ip = '10.0.0.34'
netzmaske = '255.255.0.0'
gateway = '10.0.0.10'
dns = '10.0.0.10'
self.sta_wlan.ifconfig((ip, netzmaske, gateway, dns))