Dear Teams,
我的客户反馈部分模块在设置为 AP 模式且有密码的情况下,调用 sl_Start 后直接调用 sl_NetAppStart 会导致回调函数 SimpleLinkNetAppEventHandler 不能正常执行,不能及时将 STATUS_BIT_IP_AQUIRED 置位;如果在调用 sl_Start 之后添加 sl_NetAppStop 则恢复正常。
疑问:
1. sl_Start 是否是阻塞式的?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
sl_Start是用来打开NWP的,若没有回调函数它应该是阻塞的
若有InitCallBack,它将立即返回
Sl_Start – This function initializes the communication interface, sets the enable pin of the device, and calls
to the init complete callback. If no callback function is provided, the function is blocking until the device
finishes the initialization process.
\brief Start the SimpleLink device
This function initialize the communication interface, set the enable pin
of the device, and call to the init complete callback.
_i16 sl_Start(const void* pIfHdl, _i8* pDevName, const P_INIT_CALLBACK pInitCallBack);