Hands-on lab/lab-files/starter-project/SmartMeterSimulator/Sensor.cs
/// <summary>
/// Connect a device to the IoT Hub by instantiating a DeviceClient for that Device by Id and Key.
/// </summary>
Connect a device to the IoT Hub by instantiating a DeviceClient for that Device by Id and Key.
Connect a device to the IoT Hub by instantiating a DeviceClient for that Device by Id and Key .
public void ConnectDevice()
        {
            State = DeviceState.Ready;
        }
public void ConnectDevice ( ) { State = DeviceState . Ready ; }
Connect a device to the IoT Hub by instantiating a DeviceClient for that Device by Id and Key.
Connect a device to the IoT Hub by instantiating a DeviceClient for that Device by Id and Key .
//TODO: 17. Connect the Device to Iot Hub by creating an instance of DeviceClient //_DeviceClient = DeviceClient.Create(_IotHubUri, new DeviceAuthenticationWithRegistrySymmetricKey(..., ...)); //Set the Device State to Ready