This is a bridge to control the Mendeleev project over MQTT. More info on the Mendeleev protocol here.
Address is the address of the node to query. It corresponds to the atomic number.
MQTT publish commands:
echo -en "\xFF\xFF\xFF\xFF" | mosquitto_pub -t mendeleev/<address>/setcolor -s
echo -en "\x01" | mosquitto_pub -t mendeleev/<address>/setmode -s
head -n 100 updatefile.elf | mosquitto_pub -t mendeleev/<address>/ota -s
MQTT publish responses:
mendeleev/<address>/setcolor/ack (null)
mendeleev/<address>/setcolor/nack (null)
- Mosquitto - MQTT broker
- libmosquitto - MQTT client library
- libmendeleev - Mendeleev library
- GCC + Make - GNU C Compiler and build automation tool
Clone the repository:
git clone [email protected]:area3001/mqtt2mendeleev.git
Go to the repository:
cd mqtt2mendeleev
Build the program:
make
Run the program:
./mqtt2mendeleev -h broker.ip:port /dev/ttyRS485
- Bert Outtier - Initial work
This project is licensed under the MIT License - see the LICENSE file for details.