Hi
I am using ti blefi project for Wifi and BLE communication, I also want Smart config feature to set Wifi credentials initially.
But I am getting error after calling sl_WlanSmartConfigStart API.
Code snippet:-
long SmartConfigConnect() { unsigned char policyVal; long lRetVal = -1; // // Clear all profiles // This is of course not a must, it is used in this example to make sure // we will connect to the new profile added by SmartConfig // #if 0 // Not required lRetVal = sl_WlanProfileDel(WLAN_DEL_ALL_PROFILES); ASSERT_ON_ERROR(lRetVal); #endif //set AUTO policy lRetVal = sl_WlanPolicySet(SL_POLICY_CONNECTION, SL_CONNECTION_POLICY(1,0,0,0,0), &policyVal, 1 /*PolicyValLen*/); ASSERT_ON_ERROR(lRetVal); // // Start SmartConfig // This example uses the unsecured SmartConfig method // lRetVal = sl_WlanSmartConfigStart(0, //groupIdBitmask SMART_CONFIG_CIPHER_NONE, //cipher 0, //publicKeyLen 0, //group1KeyLen 0, //group2KeyLen NULL, //publicKey NULL, //group1Key NULL); //group2Key ASSERT_ON_ERROR(lRetVal); return SUCCESS; }
Error Log :-
[WiFi] Auto Connect Failed, trying SmartConfig...
[WiFi] Please open the SmartConfig Mobile App
Error [-6] at line [104] in function [SmartConfigConnect]
Regards
Harshit