6 years, 7 months ago.

MQTT

Would it be possible to use mqqt on this board?

Question relating to:

STM32L4 Discovery kit IoT node, low-power wireless, BLE, NFC, SubGHz, Wi-Fi

1 Answer

6 years, 7 months ago.

Yes, over WiFi. Check the HelloMQTT application. Because the L475VG WiFi driver does not implement NetworkInterface you'll need to reimplement MQTTNetwork.h (in HelloMQTT) to work with that driver, but it's only a few functions.

Thanks for your answer. I am not an expert and I do not know how to adapt it. So I asked if there was anything prepared to work on MQTT with this board.

posted by Javier Dominguez Blanco 27 Sep 2017

How I would approach it:

  1. Use the WiFi example, and verify that it works
  2. Change the HelloMQTT app to connect to WiFi on the board
  3. Look at the functions in MQTTNetwork.h, there's only a few, and map them to the WiFi driver for the L475VG

Should be pretty straight forward.

Then MQTT should work. Unfortunately I don't have that board, so I can't patch it up.

posted by Jan Jongboom 27 Sep 2017