Simplify MQTT structure

This commit is contained in:
Pim van Pelt
2017-12-22 21:38:19 +01:00
parent da963f46f5
commit 67bc9b9d23
2 changed files with 14 additions and 20 deletions

View File

@ -6,5 +6,8 @@
"h": 56,
"label": "On",
"type": 1,
"mqtt": [ "/topic1 Hello", "/t2 Wereld", "/topic3", "", "/top4" ]
"mqtt": [
{ "topic": "/topic1", "message": {"string": 100, "args": {"int":100, "str":"string1"}}},
{ "topic": "/topic2", "message": {"string": 200, "args": { "int":200, "str":"string2"}}}
]
}