Lab 21. Exploring the serial API

Lab 21. Exploring the serial API

Expected completion time of this lab: 

  • You can issue any (raw) serial API command to the manager by issuing:

    • an HTTP POST request

    • to URL http://127.0.0.1:8080/api/v1/raw

    • containing the payload:

      { "manager": 0, "command": <<command name>>"" }
  • issue a getNetworkConfig command.

  • What is the networkId of your SmartMesh IP Manager?

    Answer 1:

     

  • What is the maximum number of motes it supports?

    Answer 2:

     

  • Issue a getNetworkInfo command.

  • What is the number of motes currently in your network?

    Answer 3:

     

  • Using the getPathInfo command, verify the quality of a link between one of your motes and the manager (you can get the MAC addresses using the “sm” command in CLI). Fill in the following table:

    The payload for the getPathInfo command contains fields:

    { "manager": 0, "command": "getPathInfo", "fields": { "source": "00-17-0d-00-00-38-06-45", "dest": "00-17-0d-00-00-38-03-dd" } }

     

    Answer 4:

    source MAC address

    destination MAC address

    quality

    source MAC address

    destination MAC address

    quality