-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with Simultaneous Connections to AWS IoT Core and Arduino Cloud #516
Comments
@djom202 i've never tried with an ESP32 but it should be totally feasible. With the opta we use ArduinoIoTCloud and ArduinoBearSSL but it should word also with ESP32 WiFiClientSecure. Maybe a full connection log can give you more information about what is failing. |
@djom202 I see from the logs you are using a 3.x.x version of the ESP32 core. > 3.x.x have introduced a lot of changes and we did not have the chance to test them extensively with ArduinoIoTCloud. Would you test the same sketch with core 2.0.17 ? https://github.com/espressif/arduino-esp32/releases/tag/2.0.17 Thanks |
Sure. Let me check it. |
Hi @pennam, Yeah you are right, I tested by hours with the version 2.0.17 and its works without issues.
So, what I’m asking is if a newer version within the 2.X.X range could work for this case? |
@djom202 goot news.
sorry but i did not get your last question. A newer version of what? |
@pennam, sorry for the confusion. I might tell you that which others versions for the 2.X.X of ESP32 core could works also this case? |
2.0.17 should be the latests 2.x.x release of the esp core and is the one we have installed in our cloud builder. |
I’m currently using the MQTT library to connect my ESP32 to AWS IoT Core for sending information. However, I’m having trouble keeping the connection open to both AWS IoT Core and Arduino Cloud simultaneously, as the connections seem to overlap at some point.
My question is: Is it possible to maintain both connections at the same time? Are there any strategies or libraries that could help me resolve this issue?
My code:
https://gist.github.com/djom202/d1660f4c9c5b9fa038b753dc6057c7bf
ESP32_AWS_oct24a.ino
AwsManager.ino
AwsManager.h
Below are the logs showing the problem:
The text was updated successfully, but these errors were encountered: