Versions Compared

Key

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

...

  • sharedAccessPolicyName: set to 2 in service. If a custom policy is used, make sure at least the Service connect permissing has been assigned to the policy.
  •  sharedAccessPolicyKey: Either the Primary Key or Secondary key can be used for that. It should be similar to:  V86dqC3AhjIqSgvAuShKDSsNamUJh5rJrqZ1e3hw7EA=



Testing

To be able to send test messages to the Azure IoT Hub, a device has to be registered. See the following example of the Azure Portal where on the IoT device a device has been registered called "deltares-test-iot-device".

Image Added



Image Added



There are different ways to test the import. 

Microsoft Visual Studio Code has a IoT Hub extension that can be used to send Device to Cloud messages (D2C messages). See the following screenshot to see how to send a D2C message from the test client.