AMQP, Azure IoTHub

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
IoTing
Posts: 1
Joined: Thu Mar 08, 2018 3:20 pm

AMQP, Azure IoTHub

Post by IoTing » Thu Mar 08, 2018 5:10 pm

Hello,
I'd like to use an ESP32 to talk to Azure IoTHub over AMQP. For that, I need a few things:

1) SHA256 HMAC for authentication to Azure
2) TLS and NTP and network
3) AMQP (I want AMQP instead HTTPS to save on data usage)

Luckily, Dave Glover from Microsoft has already created an implementation of Azure client in micropython for ESP32 that does #1 and #2 for me.

https://github.com/gloveboxes/ESP32-Mic ... er/boot.py

His example uses HTTPS instead of AMQP, however. And I was surprised that I couldn't find any micropython AMQP libraries. There's a couple of pure Python AMQP libraries.

https://github.com/pika/pika

I'm pretty clueless on what's involved in converting a python library to micropython. Any advice would be appreciated.

Post Reply