Added mqtt skeleton

This commit is contained in:
2018-03-18 22:38:25 +01:00
parent c7b801114a
commit b9840e7882
2 changed files with 71 additions and 6 deletions

10
mos.yml
View File

@@ -33,7 +33,15 @@ config_schema:
- ["i2c.scl_gpio", 5] # D1
- ["flashLight", "o", {title: "Flash light / alarm light settings"}]
- ["flashLight.address", "i", 0x30, {title: "i2c address of motor controller TB6612 (e.g. WEMOS)"}]
- ["flashLight.mqttCtrlTopic", "s", "flashLight/##boardid##/ctrl", {title: "MQTT channel to subscribe to receive commands"}]
- ["flashLight.mqttCtrlTopic", "s", "flashLight/%s/ctrl", {title: "MQTT channel to subscribe to receive commands; %s is replaced by clientId"}]
- ["flashLight.mqttStatusTopic", "s", "flashLight/%s/status", {title: "MQTT channel to publish to send status change infos; %s is replaced by clientId"}]
- ["mqtt.enable", true]
- ["mqtt.server", "mqtt.pmpark.de:41883"]
- ["mqtt.user", "default"]
- ["mqtt.pass", "12345678"]
- ["mqtt.will_message", "offline"]
- ["mqtt.will_topic", "flashLight/"]
# These settings get compiled into the C structure, and can be accessed
# from the C code this way: