mqtt_for_digitalstrom

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
mqtt_for_digitalstrom [29.01.2018 10:07] – [what I want to add] Pascal Sutermqtt_for_digitalstrom [29.01.2018 10:08] (current) – [the script] Pascal Suter
Line 161: Line 161:
  JSONaction=`  JSONaction=`
 { {
-'message':'${type}'+"message":"${type}"
-'id':'${id}'+"id":"${id}"
-'value':100, +"value":100, 
-'tag':'${tag}',+"tag":"${tag}",
 }` }`
  client.write(JSONaction);  client.write(JSONaction);
Line 181: Line 181:
  JSONaction=`  JSONaction=`
 { {
-'message':'${type}'+"message":"${type}"
-'id':'${id}'+"id":"${id}"
-'value':${message}, +"value":${message}, 
-'tag':'${tag}',+"tag":"${tag}",
 }` }`
  client.write(JSONaction);  client.write(JSONaction);
  • mqtt_for_digitalstrom.1517216860.txt.gz
  • Last modified: 29.01.2018 10:07
  • by Pascal Suter