This application will send an MQTT message when a button is pressed and released and can set a color to a button.
To use this application you should set the IP address of your MQTT server and the topic name in the "Settings" menu.
When a button is pressed a "on" will be send to <topicname>/<buttonnumber>
. For example /test/2
where /test/
is configured as a topic name.
When the button is released a "off" will be send.
To light up a button send a hex color e.g. 0x0000ff
to <topicname>/led/<buttonnumber>
and the button will light up in that color.
Vote | Comment | Date |
---|---|---|
3 years ago | ||
Warning! |
---|
is there a way I can supply a username and password I need to connect to my broker? |
File | Last edited | Size |
---|---|---|
__init__.py | 2020-07-23 07:32:21 | 2.55 KiB |
README.md | 2020-07-23 07:32:21 | 1008 B |
connect_mqtt.mp3 | 2020-07-23 07:32:21 | 17.22 KiB |
fail_connect_mqtt.mp3 | 2020-07-23 07:32:21 | 20.35 KiB |
wifi_disconnect.mp3 | 2020-07-23 07:32:21 | 12.35 KiB |
icon.py | 2020-07-23 07:32:21 | 780 B |
enter_settings.mp3 | 2020-07-23 07:32:21 | 23.13 KiB |