Resource icon

Experimental MqttClient 0.2

Mqtt client plugin

config.yml:

broker: tcp://test.mosquitto.org:1883
events: /nukkit/servername/event/
commands: /nukkit/servername/command/#


Events generated by nukkit are translated in mqtt publications and published to "events"
mqtt commands published in "commands" can change the state of a lever (Toggle, On, Off) (only command for now)

payload:
{
"cmd": "Toggle",
"id": 69,
"position": [991, 81,-62]
}

Fun to play with in combination with a local or remote mqtt broker and node-red
This is just a proof of concept.
Top