SWRA513C January 2020 – September 2020 CC3120 , CC3120MOD , CC3135 , CC3135MOD , CC3220MOD , CC3220MODA , CC3220R , CC3220S , CC3220SF , CC3235MODS , CC3235MODSF , CC3235S , CC3235SF
Delivering feedback to the user’s smartphone provisioning app can also be done using an external cloud-based server. When the SimpleLink Wi-Fi device connects to the configured network and acquires an IP address, it tries to contact a cloud-based server. The user’s smartphone provisioning app, instead of connecting the HTTP server of the SimpleLink Wi-Fi device over the local wireless network, connects the cloud-based server over the Internet, and asks whether or not the SimpleLink Wi-Fi device is connected to the cloud. In this mode, the smartphone provisioning app does not need to discover the IP address that the device acquired.
The networking subsystem does not internally connect the cloud-based server, the host application does. When the device successfully connects, and acquires an IP address, it notifies the host through an event that it may start trying to connect to the cloud server (for example sending host sockets commands). If confirmation is successful, the host should manually stop the provisioning process, and order the networking subsystem to stay in STA role. If confirmation fails, the host should notify the networking subsystem about the failure, and the networking subsystem should return to the configuration stage as usual (the networking subsystem is unaware of the confirmation results coming from the cloud).
To use cloud-based feedback, the external confirmation bit should be set in the provisioning host command flags parameter.