wolfmqtt

Small, fast, portable MQTT client C library and implementation

brewmacoslinux
Try with needOr install directly
Source

About

Small, fast, portable MQTT client C implementation

Commands

wolfmqtt

Examples

Connect to MQTT broker and subscribe to a topic$ wolfmqtt -h broker.example.com -t sensor/temperature
Publish a message to an MQTT topic$ wolfmqtt -h broker.example.com -t sensor/temperature -m 23.5
Connect with authentication to a secured MQTT broker$ wolfmqtt -h broker.example.com -u username -p password -t home/status