Resource icon

Experimental MqttClient 0.2

Compatible API Versions
1.12.0
Sourcecode
https://github.com/zatalian/MQTTClient
Contributors
zatalian
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.
Author
zatalian
Downloads
1,044
Views
1,287
First release
Last update
Rating
0.00 star(s) 0 ratings

Latest updates

  1. lever command added

    Mqtt client plugin config.yml: broker: tcp://test.mosquitto.org:1883 events...
Top