Versions Compared

Key

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

...

  • Create the following Node-RED flow:
     

  • configure th the function and http request nodes such that when pressing the inject node, Node-RED issues:

    • an HTTP POST request
    • to URL http://127.0.0.1:8080/api/v1/raw
    • containing the payload:

      Code Block
      {
          "manager": 0,
          "command": "sendData",
          "fields": {
          	"macAddress": "00-17-0d-00-00-38-06-45",
          	"priority": 0,
          	"srcPort": 0xf0b9,
          	"dstPort": 0xf0b9,
          	"options": 0,
          	"data":   [0x05,0x00,0x02,0xff,0x02,0x03,0x02,0x00,0x01,0x01]
          }
      }

       

  • Make sure the LED of your mote turns ON.

  • What do you need to change to turn the LED off?

    Info
    iconfalse
    titleAnswer 1: