A library for executing commands (e.g. system commands) using the MQTT protocol. You can send command to MQTT topic and execute action on device connected to that MQTT broker.
Tested on PC with Debian GNU/Linux 10 (buster) and Raspberry Pi Zero 2 W with Raspbian GNU/Linux 11 (bullseye).
- Clone repository
- Run
git submodule update --init --recursivecommand in repository directory - Build and install paho.mqtt.c library (instructions in submodule README file)
- Build and install paho.mqtt.cpp library (instructions in submodule README file)
- To build example:
- Install g++
sudo apt-get update; sudo apt-get install g++ -y - Use
g++ example/main.cpp mqtt2exec.cpp -o mqtt2exec.out -lpaho-mqttpp3 -lpaho-mqtt3ascommand in repository directory to createmqtt2exec.outbinary file
- Install g++
