Use paho-mqtt in python. Use mysql (mariadb) or sqlite for your database.
The basic process is
Initialize: connect to MQTT
Do forever:
Get an MQTT payload
Parse it
Insert it to SQL
End-Do
I've got some examples in C/C++ but nothing in public (on GitHub).
The basic process is
Initialize: connect to MQTT
Do forever:
Get an MQTT payload
Parse it
Insert it to SQL
End-Do
I've got some examples in C/C++ but nothing in public (on GitHub).
Statistics: Posted by DougieLawson — Thu Sep 12, 2024 6:50 am