Tuple as parameter for ifconfig / tuple parameters as variables
Posted: Sat Jun 22, 2019 7:20 pm
Hi,
when I do this:
my ESP8266 connects to my network with a fixed IP - as desired.
But why is the following not working (I assume I am doing something wrong with the tuple):
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))