Other Parts Discussed in Thread: CC31XXEMUBOOST
I am using the CC3120 with MSP432 on a custom board, I am having a small problem while trying to change the timeout value for the sl_WlanProvisioning command. Whatever value I pass to the function, the timeout is always set at 10 minutes.
From my understanding, once the provisioning has timed out I will get an event callback in
SimpleLinkWlanEventHandler -> SL_WLAN_EVENT_PROVISIONING_STATUS -> SL_WLAN_PROVISIONING_STOPPED -> else if(SL_WLAN_STATUS_DISCONNECTED == pWlanEvent->Data.ProvisioningStatus.WlanStatus)
My problem is whatever value I pass to sl_WlanProvisioning as timeout, the above event is reach after 10 minutes. Below is my code snippet.
.... iRetVal = sl_NetAppSet(SL_NETAPP_DEVICE_ID,SL_NETAPP_DEVICE_DOMAIN,strlen(NET_DOMAIN_NAME),(_u8 *)NET_DOMAIN_NAME); //Change domain name iRetVal |= sl_WlanPolicySet(SL_WLAN_POLICY_CONNECTION,SL_WLAN_CONNECTION_POLICY(1,0,0,0),NULL,0); //Set Connection Policy iRetVal |= sl_WlanSetMode(ROLE_STA); //Set Initial Role Mode iRetVal |= sl_Stop(0); //Restart with the above configurations iRetVal |=sl_Start(NULL,NULL,NULL); if(iRetVal) { return(0); } if(!GetSimplelinkConnectionProfiles()) //Check the number of existing profiles sl_WlanProvisioning(SL_WLAN_PROVISIONING_CMD_START_MODE_APSC, ROLE_STA, 1200, MY_SECRET_KEY, 0x0); //Start provisioning with 1200 seconds timeout. .....
Below my setup:
Simplelink MS432 SDK V1.40.1.00
Simplelink MSP432 SDK WiFi Plugin 1.40.0.02
TI-RTOS 2.13.1.09
CCS 7.2