Skip to content

Latest commit

 

History

History
9 lines (7 loc) · 526 Bytes

README.md

File metadata and controls

9 lines (7 loc) · 526 Bytes

mqtt_drafts

This is a sample project for MQTT C++ library https://github.com/eclipse/paho.mqtt.cpp. You need to run a MQTT server (by default on localhost:1883), e.g. mosquitto, and have paho-mqtt library installed.

The clients use timestamps as payload, include their hostname and PID in the MQTT topic. The 'server' (which is a MQTT subscriber client) prints the message statistics from known clients.

Example output

image