[WICED-SK-2.2.1]
我们试图通过WPS连接路由器,而不必修改DCT,因此使用的是低级WICDEDWiFiFig()。
我们的代码使用WICDEXWPSYEnROLLIEE()来查找APS和WICDEDWiFig Cube()来加入它们。
连接()返回WICEDID成功,WICEDDYNETWorksIsUpUP(WICEDIJSTAXFILL)在加入后立即返回true。
然而,尝试使用此接口的后续代码在链接检查阶段失败。
例如,WICDEDUDPYCREATEYSOCKET()返回-4(WICEDEXNOTUP)。
当我们不是硬编码这个接入点的凭据和使用wiced_network_up(),我们没有遇到任何问题。
我们需要采取什么步骤前/后wiced_wifi_join()造就我们的连接?
以上来自于百度翻译
以下为原文
[WICED-SDK-2.2.1]
We are attemp
ting to connect with a router through WPS without having to modify the DCT, and thus are using the low-level wiced_wifi_join().
Our code uses wiced_wps_enrollee() to find APs and wiced_wifi_join() to join them.
join() returns WICED_SUCCESS, and wiced_network_is_up(WICED_STA_INTERFACE) returns TRUE immediately after joining.
Subsequent code that attempts to use this interface, however, fails at the link check stage.
For example, wiced_udp_create_socket() returns -4 (WICED_NOTUP).
When we instead hardcode this access points credentials and use wiced_network_up(), we do not run into any issues.
What steps do we need to take before/after wiced_wifi_join() to bring up our connection?