Tool/software: TI C/C++ Compiler
Hi,
1. I am trying External Confirmation (Cloud ping) feature while provisioning instead of local ping. Able to connect AWS-IOT MQTT client to AWS-Cloud.
2. If any failure to cloud connect, I am trying to notify the networking subsystem about the failure by issuing the following command.
retVal = sl_WlanProvisioning(SL_WLAN_PROVISIONING_CMD_ABORT_EXTERNAL_CONFIRMATION, 0, 0, NULL, 0);
3. From the doc reference (SWRU455k), upon issuing ABORT_EXTERNAL_CONFIRMATION command, networking subsystem should prepare for another profile configuration attempt. Instead of this I am getting WLAN event as "SL_WLAN_PROVISIONING_ERROR_ABORT" and semaphore waiting timeout happening.
4. Host application need to trigger provisioning event after ABORT_EXTERNAL_CONFIRMATION command? or am i missing something ? please help me out.
5. Please find the code snippet below.
if(ipaccuired == true) { if(ExternalCloudConfirmationConnect() == true) { retVal = sl_WlanProvisioning(SL_WLAN_PROVISIONING_CMD_STOP,ROLE_STA,0,NULL, SL_WLAN_PROVISIONING_CMD_FLAG_EXTERNAL_CONFIRMATION); if (retVal != 0) { IotLogInfo("[External Cloud Confirmation] Provsioning stop failed. status [%d]", retVal); } SignalProvisioningEvent(PrvnEvent_ConfirmationSuccess); /* Set the simple link device.*/ retVal = sl_WlanSetMode( ROLE_STA ); } else { retVal = sl_WlanProvisioning(SL_WLAN_PROVISIONING_CMD_ABORT_EXTERNAL_CONFIRMATION, 0, 0, NULL, 0); IotLogInfo("[External Cloud Confirmation] Abort retVal=%d\r\n", retVal); //SignalProvisioningEvent(PrvnEvent_Triggered); //is this required? } }
6. Please find the log reference below.
[External Cloud Confirmation] Mqtt Connect Failed [WLAN EVENT] Connection Success (feedback to Smartphone app failed) [External Cloud Confirmation] Abort retVal=0 [WLAN EVENT] Provisioning Error status=6 [DEBUG] semaphores waiting passed! [POWER MANAGER] SET TO BURST MODE. Successfully initialized the demo. Network type for the demo: 1