Example project demonstrating Paho MQTT C clients with ActiveMQ Artemis MQTT Broker.
docker-compose up
docker exec -it activemqpahomqttexample_apme_paho_mqtt_1 bash
mkdir build cd build cmake ../ make
./build/paho_mqtt_subscriber -h tcp://127.0.0.1:1883
./build/paho_mqtt_publisher -h tcp://127.0.0.1:1883
Examples from https://www.eclipse.org/paho/files/mqttdoc/MQTTClient/html/index.html have been re-used.