Jump to content
WallDisplay: 2.0.0-beta3 is uploaded and ready for test ×

Shelly 3EM Pro MQTT + TLS connection with AWS IoT

Recommended Posts


We have been trying to connect the Shelly 3EM Pro devices to AWS IoT and had no luck so far. We are looking for assistance to resolve the issue. 

After creating the "thing" on AWS IoT, we uploaded the certificate to the device using the UI and chose "user_CA.pem" in the device config UI. It like connection is never established and the device never shows as "connected". We can also see no messages being posted on our MQTT topic. 

We  then turned on the  connection logs on the device and have been seeing the following: 

< {"ts":1700565896.262, "level":0, "data":"mgos_ssl_if_mbedtls:291 0x3ffe4190 mbedTLS error: -0x2700\n"}
< {"ts":1700566091.853, "level":2, "data":"mgos_mqtt_conn.c:442  MQTT0 connecting to abxzgvyjotl8q-ats.iot.ca-central-1.amazonaws.com:8883\n"}
< {"ts":1700566093.611, "level":0, "data":"mgos_ssl_if_mbedtls:291 0x3ffd9430 mbedTLS error: -0x2700\n"}
< {"ts":1700566093.616, "level":2, "data":"mgos_mqtt_conn.c:189  MQTT0 TCP connected error (-3)\n"}
< {"ts":1700566093.622, "level":2, "data":"mgos_mqtt_conn.c:221  MQTT0 disconnected\n"}
< {"ts":1700566093.627, "level":2, "data":"mgos_mqtt_conn.c:527  MQTT0 connecting after 64372 ms\n"}


Here is the configuration we have used



Happy to provide any more details if necessary.



Link to comment
Share on other sites

  • 3 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...