Versions Compared

Key

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

...

Change the "{sas_token}" in the HTTP header to the token that was generated in the SAS Token section.url="https://xxxx:8443/topics/yyyy", where "xxxx" is AWS endpoint address and "yyyy" is the topic that was configured in the AWS policies - steps 2 and 3 (in our example, my/test/topic)

Change the {iot_hub_name} and {device_id} in the URL to the actual IoT Hub name and Device ID that were configured on the Azure portal.

The rest of the script configuration depends on the overall requirements. The script explains which exact parameters are configured to be published.

Navigate to System>Scripts, add a new script there, and paste the script that is shown above (name it, for example, script2script1).

To run the script, you can use the command line:

/system script run script2script1


Verification

There are many different ways to view the received/published message on the Azure portal. Please check Azure tutorials on the options you have.

...