[1] I'm in the main program Usermain A new task is created to perform other operations, Figure I, At the same time, enable Bluetooth and configure the Bluetooth network.
Comment out the task, Capable of normal switching wifi, But when the task exists, Will lead to wifi Link failure. Not sure how to solve it.
[2] Follow me in the original sdk Test in, Directly on usermain inwardly wifi Link switching test, Require in demo_connect_net the wifi_disconnect Add a delay later to complete the normal switching. And the original pass t-connect Commands to switch between different networks are normal.
1. Active networking handover WIFI Can be called first tls_wifi_disconnect () ; Interface disconnect network.
2. I don't think your current process is very reasonable, Under normal circumstances, It is best for the module to enter the distribution network mode through a trigger mechanism similar to the key, The automatic reconnection function is enabled after the network is successfully configured, If the module is disconnected or powered on, it can be automatically reconnected WIFI, And when you want to switch WIFI Network time, You can enter the distribution network mode again by pressing keys or other trigger mechanisms.
Thanks for answering! Really in while Add delay, Can normal Bluetooth network, First contact freertos, It was a low-level mistake.