Comments (4)
The IoT Hub SDK will it self handle the re-connection. I have made a small update to the "esp-azure" to make it work.
I will prepare a pull-request with the changes needed.
from esp-azure.
@Patrik-Berglund In case of AP connection loss, there is a need to re-connect to Azure IoT Hub.
And when there is an AP connection loss, we observe errno
to be EHOSTUNREACH
. So, we have added enhancement in iothub_client_sample_mqtt
example to re-connect to Azure IoT Portal upon observing errno
as EHOSTUNREACH
. And we wait for WiFi STA state to be connected before connecting to Azure IoT Portal. Please refer to changes in iothub_client_sample_mqtt
example to add corresponding changes in your example. Let us know whether this works or not.
from esp-azure.
@Patrik-Berglund We have seen that azure-iot-sdk-c handles internet re-connection and connection to WiFi AP loss with the help of retry control handle. But there is a bug in azure-iot-sdk-c
which causes crash; we have found the solution to it and will raise a PR soon. Thanks.
from esp-azure.
Great!
We switched to using the mbedtls and berkeley sockets based PAL provided by the IoT Hub C SDK instead. Required only minimal changes to their code.
from esp-azure.
Related Issues (20)
- When will this project get its next update ot match ESP-IDF V4.x? (CA-128) HOT 1
- Replace printf() with proper ESP_LOGx() (CA-137)
- Device disconnects after ~49 days online (CA-138)
- HSM Module not included (CA-140)
- Send Azure message larger than 5000 bytes (CA-153)
- Update to LTS_07_2021_Ref01 (CA-167) HOT 11
- README update (CA-172)
- Cannot compile project, issues (CA-184) HOT 1
- Not able to auto-reconnect with Azure Cloud (CA-218) HOT 6
- Loss of wifi AP connection results in Azure/TLS errors on recovery (IDFGH-7210) (CA-220) HOT 6
- connection string setup for multiple device (CA-222) HOT 1
- Example iothub_client_sample_mqtt crash (CA-251)
- Delays / waits in Direct Method / Device Twin Callbacks (CA-269)
- prov_dev_client_ll_sample - Failure encountered on registration PROV_DEVICE_RESULT_DEV_AUTH_ERROR (CA-279) HOT 1
- JSON Serialization failed! iothub device twin sample. (CA-290)
- tls error when compiling on esp-idf 5 (CA-295) HOT 4
- No connection with NB-IoT (CA-308) HOT 1
- Azure Blob Storage data fetch fails due to HTTPS Client MBed TLS (IDFGH-11100) (CA-313) HOT 1
- ESP-AZURE on Espressif-IDE (CA-315)
- error: implicit declaration of function 'esp_tls_conn_delete' (CA-319) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esp-azure.