Skip to content

Example: MQTT Temperature

Bridge your own MQTT client. The framework defines no topic standard.

python
def on_message(client, userdata, msg):
    data = json.loads(msg.payload)
    sensor.update(temperature=data["temperature"])

Run: python examples/mqtt-temperature/main.py

Demonstrates: external data source bridging, realtime from non-Python-originated data.

Built for self-hosted IoT runtimes.