3
votes

I followed the Azure IoT tutorial at:

https://azure.microsoft.com/en-us/documentation/articles/iot-hub-csharp-csharp-getstarted/

and everything works great.

I now have a new requirement, which is to connect to the IoT hub from an iPhone. In the C# example, I had to download the appropriate NuGet package (Microsoft.Azure.Devices.Client) and use the DeviceClient class.

Is there a similar "package" available for iPhone development? How can an iOS device connect to the Azure IoT hub?

2

2 Answers

1
votes

There's a REST API for devices to exchange messages with an Azure IOT Hub.

1
votes

The Azure IoT Hub C# Device SDK is now cross-platform (with Xamarin), and supports iOS devices.

It's published as a nuget package:

https://www.nuget.org/packages/Microsoft.Azure.Devices.Client.PCL/