Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5107

General discussion • Re: How to process MQTT data as they arrive?

$
0
0
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).

Statistics: Posted by DougieLawson — Thu Sep 12, 2024 6:50 am



Viewing all articles
Browse latest Browse all 5107

Trending Articles