thank you very much! This answers my question. I would like to evaluate the mesh networking functions for a project at our university. The devices are energy constrained and expected to consume as little energy as possible. For this usecase I would like to use a Sleepy End Device or at least a Minimal End Device.
I will use the CLI in combination with disabling the router role for a first evaluation.
Probably, we'll release a stable version at the end of this week, not completely sure.
Also, as these Mesh features (Border Router) are in progress, not sure when to commit that I'll finish. Anyway, I will look into a micropython solution first, maybe some minor C code changes (released as development).
@shariq I have the code below in main.py, which sets up the device for connecting to my router with a fixed IP, which you then can use to access the device.
WIFI_IP = "aa.bb.cc.ss"
ROUTER_IP = "aa.bb.cc.rr")
WIFI_SSID = "your AP SSID"
WIFI_PASS = "your AP Password"
wlan = network.WLAN(mode=network.WLAN.STA) # create station interface
if not wlan.isconnected(): # check if the station is connected to an AP
wlan.ifconfig(config=(WIFI_IP, "255.255.255.0", ROUTER_IP, ROUTER_IP))
wlan.connect(ssid=WIFI_SSID, auth=(network.WLAN.WPA2, WIFI_PASSWD))
for _ in range(100):
if wlan.isconnected(): # check if the station is connected to an AP
print("Connect attempt timed out\n")
print('\nnetwork config:', wlan.ifconfig())