Page 2 of 2

Re: Nucleo stm32 F429ZI MQTT

Posted: Fri May 15, 2020 5:43 pm
by greg161
So it is possible. But small modification of utelnetserver.py is necessary. Last lines need to be changed from WiFi to LAN.
From this:

Code: Select all

for i in (network.AP_IF, network.STA_IF):
        wlan = network.WLAN(i)
        if wlan.active():
            print("Telnet server started on {}:{}".format(wlan.ifconfig()[0], port))
to this:

Code: Select all

    eth = network.LAN()
    eth.active(True)
    eth.ifconfig('dhcp')
    if eth.active():
        print("Telnet server started on {}:{}".format(eth.ifconfig()[0], port))

Re: Nucleo stm32 F429ZI MQTT

Posted: Tue Jan 26, 2021 11:51 pm
by rpr
greg161 wrote:
Fri May 15, 2020 5:43 pm
So it is possible. But small modification of utelnetserver.py is necessary. Last lines need to be changed from WiFi to LAN.
From this:

Code: Select all

for i in (network.AP_IF, network.STA_IF):
        wlan = network.WLAN(i)
        if wlan.active():
            print("Telnet server started on {}:{}".format(wlan.ifconfig()[0], port))
to this:

Code: Select all

    eth = network.LAN()
    eth.active(True)
    eth.ifconfig('dhcp')
    if eth.active():
        print("Telnet server started on {}:{}".format(eth.ifconfig()[0], port))
Thank You. It worked beautifully. :D