Raspberry Pi Lesson: MQTT Client

MQTT (Message Queue Telemetry Transport) adalah lightweight messaging protocol. MQTT Client berdasarkan publish & subcribe kepada MQTT Broker.

Melalui Terminal Raspberry Pi, install paho-mqtt.

sudo pip install paho-mqtt

Berikut adalah contoh publish and subscribe topic manggunakan Raspberry Pi.

Python Source Code

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.