Test Reader Connection To CloudΒΆ

Important

This guide uses Azure IoT Hub VS Code Plugin to test cloud connection.

  1. Install vscode.

  2. Install Azure IoT Hub VS Code plugin from Extensions.

    ../../_images/AZURE14.png
  3. Login into Azure account from VS code and connect to AZURE IOT HUB created

    ../../_images/AZURE15.png
  4. The device connection status can be indicated by green color as shown.

  5. Monitor events generated by device by right click on device and click Start Monitoring Built-in Event Endpoint.

    ../../_images/AZURE16.png
  6. Tag Data Events and Management Events will be printed in the terminal.

  7. To send commands to device right click on the device and click Send C2D Message to Device.

    • Example Command to retrieve device firmware versions.

      {
          "command": "get_version",
          "command_id": "16266718797272556",
          "payload": {}
      }
      
    • Response:

      ../../_images/AZURE17.png
  1. start/stop tag read events.

    • command to start tag reads.

      {
          "command": "start",
          "command_id": "16266718797272556",
          "payload": {}
      }
      
      ../../_images/AZURE18.png
    • Tag Data Events:

      ../../_images/AZURE19.png
    • command to stop tag reads.

      {
          "command": "stop",
          "command_id": "16266718797272556",
          "payload": {}
      }
      

Important

For full set of supported commands refer RAW MQTT Payload Schemas section.