Closed peterharperuk closed 2 months ago
Requires this fix in the sdk https://github.com/raspberrypi/pico-sdk/pull/1649
@kilograham Simple fix to remove some of my sillyness. Will merge if that's ok.
This is "demonstrating" clean shutdown of the wifi stack. The loop keeps going while the link is up so pressing "d" calls disable_sta_mode which disables wifi and causes the program to exit.
The example in here uses an async callback to avoid a race when using stdio_usb. But there's a fix available for this issue so simplify the example.
To test pass -DPICO_STDIO_USB=1 on the cmake command line.
Fixes #461