Create MQTT program in C++

Hi everyone. I followed the “DWM1001 Gateway Quick Deployment Guide” and I created a DRTLS system with 3 anchor, 1 tag and 1 gateway (with the raspberry). All went well with the “Web Manager” and the MQTT.fx but now, I need to create the MQTT protocole in C++ and then, the data received in the topic where we are subscribed, must be sent to a .txt file.
So, I want to know how to start this and what should I do. Mainly, I would like to learn to develop the subscribe part with the reception and saved of the data. Thank you in advance.

Hi Miguel,

there are quite a lot of options out there. If you need speed use definitively C/C++. Java / python stuffs tend to be slow for a larger amount of data.

I can recommend Mosquitto library which comes with good examples: https://mosquitto.org/

Good luck!

Cheers,
TDK