This project has FSharp examples for the Azure IoT Hub.
- Open the solution with Visual Studio
- In the solution's
src\config
folder open theconfig.yaml
file and set the following values:IotHubUri
<- Azure IoT Hub HostnameConnectionString
<- Azure IoT Hub -> Shared Access Policies -> iothubowner -> Connection StringEndPoint
<- "messages/events"DeviceId
<- unique name for your local test DeviceIdDeviceKey
<- Set CreateDeviceIdentity project as start-up project. Console will return a key value to use for this field.
- Set the
ReadDeviceToCloudMessages
andSimulatedDevice
project as startup projects by right clicking the Soluton -> Properties