badgeteam / website

The Badge.team website
https://badge.team
3 stars 18 forks source link

MicroPython Wifi... #53

Closed a2800276 closed 2 years ago

a2800276 commented 2 years ago

... from some chat: WiFi settings are stored in a section of flash called "NVS" from python you can just do

import wifi

wifi.connect() then you can check connection state via wifi.status() or you can wait for wifi to connect with wifi.wait() wifi.wait() wifi.wait has a default timeout so be sure to check the returned boolean false means could not connect