C client library for connecting to MQTT message brokers
Eclipse Paho C client library for MQTT
$ mosquitto_pub -h broker.mqtt.cool -t test/topic -m 'Hello MQTT'$ mosquitto_sub -h broker.mqtt.cool -t test/topic$ gcc -o mqtt_client client.c -lpaho-mqtt3c$ mosquitto_pub -h broker.mqtt.cool -u user -P pass -t sensor/temp -m '25.5'$ pkg-config --modversion libpaho-mqtt && pkg-config --cflags --libs libpaho-mqtt