1 (edited by mariocaptain 2017-09-04 20:54:54)

Topic: Connect to Azure IoT Hub using Arduino+SIM800 & wolfMQTT


I am trying to connect to Azure IoT Hub from my Arduino using the SIM800 GSM/GPRS module using MQTT to no avail.

Currently I am using the Adafruit's FONA800 module with my Arduino.

There is an Arduino library for the FONA800 (SIM800) called Adafruit Fona library which simplifies all AT commands with the module. It implements both TCP and HTTP.

There is also an Arduino library for MQTT using FONA800, which is called Adafrui MQTT Fona, which implements MQTT, and this library can be used to connect to Adafruit IoT server. But unfortunately, Adafruit IoT server doesn't require TLS while Azure IoT Hub does.

I am clueless as how to incorporate WolfMQTT/WolfSSL into the library so that my SIM800 can connect to Azure.

Is there any sample Arduino code for this?
Or I would really appreciate it if someone could point me in the right direction to make it work.

Thank you in advance!


Re: Connect to Azure IoT Hub using Arduino+SIM800 & wolfMQTT

Hi mariocaptain,

Thank you for your interest in our wolfMQTT/wolfSSL solution.

You can find our Arduino examples for wolfMQTT and wolfSSL here:
https://github.com/wolfSSL/wolfMQTT/tre … DE/ARDUINO
https://github.com/wolfSSL/wolfssl/tree … DE/ARDUINO

Our AWS IoT Hub MQTT example is here:
https://github.com/wolfSSL/wolfMQTT/blo … s/awsiot.c

To utilize a non-BSD socket network interface we have a template for using a different transport here:
https://github.com/wolfSSL/wolfMQTT/blo … mqttuart.c

Let me know if you have any other questions or issues.

David Garske, wolfSSL