I recently got my maix go kit and I’m trying to automatically connect to a WiFi AP on boot. I can connect with the sample code in the network module but when I try to put that in my boot.py it fails because fm and board_info objects aren’t available. What do I need to import to access these?
It also seems that globals in boot.py might not really be globals. I worked around the above by added a function to boot.py “def init_network(fm, board_info)” which includes a “global uart,net” line. I connect when I “import boot; boot.init_network(fm, board_info)” but then the net object seems to go out of scope and shuts down the wifi connection.