Wi-Fi Prov API: Use Wi-Fi in custom endpoint possible?
Posted: Thu Apr 04, 2024 11:54 am
I am using the Wi-Fi provisioning API, including a custom endpoint, to provision Wi-Fi credentials and the address of a cloud service my device shall connect to. I would like to verify that the device can connect to the cloud service before the provision service finishes and store the whole config (Wi-Fi credentials and cloud service address) only if the connection to the cloud service succeeds. Is this possible with the Wi-Fi provisioning API?
When using the Python provisioning client, it seems that the Wi-Fi provisioning API calls my custom endpoint before connecting to the provisioned access point:
1. Python client sends custom data
2. Custom endpoint runs on ESP (no Wi-Fi connection, yet)
3. Python client sends Wi-Fi credentials
4. ESP connects to Wi-Fi
5. Prov service ends and stores credentials if Wi-Fi connection succeeds
Can I achieve something like the following?
1. Prov client sends Wi-Fi credentials
2. ESP connects to Wi-Fi
3. Prov client sends custom data
4. Custom endpoint runs on ESP (Wi-Fi connection available). Test cloud connectivity.
5. Prov service ends and stores credentials if Wi-Fi connection and custom endpoint succeed
Thanks in advance!
When using the Python provisioning client, it seems that the Wi-Fi provisioning API calls my custom endpoint before connecting to the provisioned access point:
1. Python client sends custom data
2. Custom endpoint runs on ESP (no Wi-Fi connection, yet)
3. Python client sends Wi-Fi credentials
4. ESP connects to Wi-Fi
5. Prov service ends and stores credentials if Wi-Fi connection succeeds
Can I achieve something like the following?
1. Prov client sends Wi-Fi credentials
2. ESP connects to Wi-Fi
3. Prov client sends custom data
4. Custom endpoint runs on ESP (Wi-Fi connection available). Test cloud connectivity.
5. Prov service ends and stores credentials if Wi-Fi connection and custom endpoint succeed
Thanks in advance!