ESP-Rainmaker: allowing Bluetooth full access whenever there is no internet connectivity but Wi-Fi is present
Posted: Thu Oct 10, 2024 10:41 am
Hi,
Greetings!
Setup:
ESP-IDF v5.1.2
ESP-Rainmaker Switch Device using ESP32-WROVER-E 16MB Module with external RAM enabled
Initial condition:
Device is connected to Wi-Fi and also internet is available.
After sometime internet gets disconnected and only Wi-Fi is active.
Requirement:
Here we wish to stop all tasks/activities which tries to communicate over internet say like MQTT, Time Sync and other so that RF Radio use gets stopped for those activities.
And these activities will only start after internet connection gets restored.
As per web search we can check internet connectivity by using "ping" remote server.
However we are facing hurdles in understanding how we can identify which tasks are using internet apart from MQTT and SNTP, and also how we can stop such tasks using radio if there is no radio.
Also please note that in this case we wish to use Bluetooth Low Energy when there is no internet connection available.
Thank in advance.
Regards,
Dinesh
Greetings!
Setup:
ESP-IDF v5.1.2
ESP-Rainmaker Switch Device using ESP32-WROVER-E 16MB Module with external RAM enabled
Initial condition:
Device is connected to Wi-Fi and also internet is available.
After sometime internet gets disconnected and only Wi-Fi is active.
Requirement:
Here we wish to stop all tasks/activities which tries to communicate over internet say like MQTT, Time Sync and other so that RF Radio use gets stopped for those activities.
And these activities will only start after internet connection gets restored.
As per web search we can check internet connectivity by using "ping" remote server.
However we are facing hurdles in understanding how we can identify which tasks are using internet apart from MQTT and SNTP, and also how we can stop such tasks using radio if there is no radio.
Also please note that in this case we wish to use Bluetooth Low Energy when there is no internet connection available.
Thank in advance.
Regards,
Dinesh