Comments (5)
A very rough workaround is to comment out all the following lines:
ESP32_AzureIoT_Arduino/src/az_iot/c-utility/pal/socket_async.c
Lines 128 to 152 in 0c090d0
and replace them by:
result = sock;
May be it is a timing issue. Sounds bad not to check for the socket connect return code...though it works for me with esp-idf v4.4.
from esp32_azureiot_arduino.
hello, is there a solution? I have the same problem.
from esp32_azureiot_arduino.
Even though this is quite old, just for future reference, this issue is caused because you try to use this library with esp-idf 4.x which is not supported based on my tests (or ESP32 Arduino 2.x).
Switch back to esp-idf 3.x (3.3.6 is the newest at the time of writing).
If you are using Arduino code and Arduino IDE, you need to go to the Boards Manager and downgrade esp32 support to maximum version 1.0.6.
from esp32_azureiot_arduino.
FYI: at some point I changed all the backend of this project with an updated version of az_iot based on https://github.com/Azure/azure-iot-sdk-c (commit: cb8ef0535ebd06f81231be4c40b372ef17cd995e)
Just in case someone is blocked and it can help.
https://github.com/insighio/ESP32_AzureIoT_Arduino
from esp32_azureiot_arduino.
A very rough workaround is to comment out all the following lines:
ESP32_AzureIoT_Arduino/src/az_iot/c-utility/pal/socket_async.c
Lines 128 to 152 in 0c090d0
and replace them by:
result = sock;May be it is a timing issue. Sounds bad not to check for the socket connect return code...though it works for me with esp-idf v4.4.
This worked for me, thank you!
from esp32_azureiot_arduino.
Related Issues (19)
- MessageCallback never called? HOT 1
- Sending more than about 5500 bytes leads to reboot
- ESP32 reboots with error if the connection resets using Microsoft Examples HOT 1
- Direct Method Invocation seems to be broken HOT 1
- Connection Not Accepted: 0x3: Server Unavailable HOT 1
- Using x509 - Connection Not Accepted: 0x5: Not Authorized HOT 1
- ESP32 continues restarts once reached subscription limit (e.g. 8000 pcs / day) HOT 16
- Esp32MQTTClient_SetMessageCallback does not working
- DeviceMethodCallback being called multiple times HOT 1
- Can't use Esp32MQTTClient_Init()
- how to subscribe the topic HOT 1
- Defining system properties on iotMessage
- Direct method response
- cannot work on newer version of ESP32
- Error initializing SNTP HOT 10
- Receiving properties with message from Azure IOT hub HOT 1
- "Operating mode must not be set while SNTP client is running" on sntp.c HOT 2
- Cannot connect to Iot Hub HOT 6
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 esp32_azureiot_arduino.