MQTTClient_publish.c : exemple donné avec la bibliothèque Paho C ayant servi pour développer serial_to_localhost.c

https://fr.mathworks.com/help/thingspeak/use-raspberry-pi-board-that-runs-python-websockets-to-publish-to-a-channel.html : exemple d'utilisation de websocket pour publier vers ThingSpeak ayant servi pour développer localhost_to_ThingSpeak.py


read_uart.c : application de lecture du port série

serial_to_localhost.c : application réalisant la lecture des données sur un port série puis la publication sous forme de message via un client MQTT vers localhost

localhost_to_ThingSpeak.py : application souscrivant au topic local pour y lire les messages publiés avant de les publier vers ThingSpeak au moyen d'un client MQTT


Compiler serial_to_localhost.c :
gcc -Wall -Wextra serial_to_localhost.c -o serial_to_localhost -lpaho-mqtt3c

Exécuter serial_to_localhost :
./serial_to_localhost

Exécuter localhost_to_ThingSpeak.py :
python3 localhost_to_ThingSpeak.py
