Test flow

generate mock data for Milkcocoa.

[{"id":"33734561.cc8cba","type":"milkcocoa","z":"79c200c7.863e","appId":"appid"},{"id":"ffe5b7ce.001a48","type":"inject","z":"79c200c7.863e","name":"","topic":"","payload":"","payloadType":"date","repeat":"10","crontab":"","once":false,"x":148,"y":168,"wires":[["623582b1.9dca7c"]]},{"id":"a3c49387.5c3b7","type":"milkcocoa out","z":"79c200c7.863e","milkcocoa":"33734561.cc8cba","dataStore":"message","operation":"send","targetId":"","name":"","x":467,"y":159,"wires":[["950668dd.6af998"]]},{"id":"623582b1.9dca7c","type":"function","z":"79c200c7.863e","name":"","func":"msg.payload = {val:Math.floor(Math.random()*100)};\nreturn msg;","outputs":1,"noerr":0,"x":309,"y":129,"wires":[["a3c49387.5c3b7"]]},{"id":"950668dd.6af998","type":"debug","z":"79c200c7.863e","name":"","active":true,"console":"false","complete":"false","x":565,"y":236,"wires":[]}]
syuhei176

Flow Info

created 1 year ago

Node Types

Core
  • debug (x1)
  • function (x1)
  • inject (x1)
Other

Tags

  • milkcocoa
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option