Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • User name : IMEI# of your module (you got that from CM info command)
  • password: SWI

 

Some users have reported problems consuming the payload once it is in Node-RED.  The javascript below should help to avoid a couple of pitfalls.

var msgStr = '{"payload": "{\\\"arduino.water\\\": true}"}';
var msgObj = JSON.parse(msgStr);
var payloadStr = msgObj["payload"];
var payloadObj = JSON.parse(payloadStr);
alert(payloadObj["arduino.water"]);

 

For direct response to questions, please register on the forum at  mangoh.io ( http://forum.mangoh.io/