[iOS/Swift] display azure iot-hub device twin reported properties on iPhone

Live Kim 6 Reputation points
2021-11-16T00:20:14.447+00:00

I want to display azure iot-hub device twin reported properties on iPhone.
I can't find sample code anywhere.
Can you provide sample code?

Azure IoT
Azure IoT
A category of Azure services for internet of things devices.
378 questions
Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,115 questions
Azure IoT SDK
Azure IoT SDK
An Azure software development kit that facilitates building applications that connect to Azure IoT services.
208 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Roman Kiss 2,241 Reputation points
    2021-11-16T08:31:17.65+00:00

    try to use the AsyncHttpClient 1.6.4, see example of the GET request here.

    You will need the sasToken for Authorization header. For test purpose you can create it off-line using some tool, for instance, Device Explorer.

    Thanks
    Roman

    0 comments No comments