Nucleo stm32 F429ZI MQTT

Discussion and questions about boards that can run MicroPython but don't have a dedicated forum.
Target audience: Everyone interested in running MicroPython on other hardware.
greg161
Posts: 10
Joined: Wed May 06, 2020 1:54 pm

Re: Nucleo stm32 F429ZI MQTT

Post by greg161 » 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))

rpr
Posts: 99
Joined: Sat Oct 27, 2018 5:17 pm

Re: Nucleo stm32 F429ZI MQTT

Post by rpr » Tue Jan 26, 2021 11:51 pm

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

Post Reply