Xinyuan-LilyGO / LilyGo-T-Call-SIM800

https://www.aliexpress.com/item/33045221960.html
482 stars 239 forks source link

Any chance for an example with MQTT and TLS/SSL? #116

Closed kedzior-io closed 3 years ago

kedzior-io commented 3 years ago

It would be great if you guys could provide an example for MQTT with TLS/SSL configuration? Most of the IOT cloud providers require it today.

Here is an example of MQTT I'm talking about: https://github.com/Xinyuan-LilyGO/LilyGo-T-Call-SIM800/blob/master/examples/Arduino_MQTT/Arduino_MQTT.ino

Here specifically talking about connecting it to Azure IOT Hub: https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-mqtt-support#using-the-mqtt-protocol-directly-as-a-device

and required TLS/SSL configuration: https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-mqtt-support#tlsssl-configuration

Thanks!

lewisxhe commented 3 years ago

Currently, the built-in firmware of 800L does not support SSL and MQTT. I will look for SIMCom to provide technical support and ask them to provide me with a new version of the firmware. I will add it to the example when I finish the test.

kedzior-io commented 3 years ago

Currently, the built-in firmware of 800L does not support SSL and MQTT. I will look for SIMCom to provide technical support and ask them to provide me with a new version of the firmware. I will add it to the example when I finish the test.

Awesome! Thank you!

Update: Here is an example I'm using: https://github.com/kedzior-io/esp32-sim800l-tinygsm-azure-iot-hub-mqtt-ssl/blob/master/mqtt-azure.ino Here is the error I'm getting: https://github.com/kedzior-io/esp32-sim800l-tinygsm-azure-iot-hub-mqtt-ssl/issues/1

lewisxhe commented 3 years ago

I am in China and I cannot access azure. I will try to connect to another IOT platform for testing. Do you have a recommended IOT platform?

@kedzior-io

lewisxhe commented 3 years ago

I did not find the English document of 800L SSL, you can view the Chinese one. Hope it helps you

SIM800系列_SSL_应用文档_V1.05.pdf