Hands-on lab/lab-files/starter-project/SmartMeterSimulator/DeviceManager.cs (6 lines): - line 27: //TODO: 1. Derive a device key from a combination of the group enrollment key and the device id - line 30: //TODO: 2. Create symmetric key with the generated primary key - line 34: //TODO: 3. Create a Provisioning Device Client - line 37: //TODO: 4. Register the device using the symmetric key and MQTT - line 40: //TODO: 5. Populate the device provisioning details - line 83: //TODO: 12 - Install and trust IoT Edge Gateway root certificate Hands-on lab/lab-files/starter-project/SmartMeterSimulator/Sensor.cs (6 lines): - line 71: //TODO: 6. Connect the Device to Iot Hub by creating an instance of DeviceClient - line 99: //TODO: 7.Serialize the telemetryDataPoint to JSON - line 102: //TODO: 8.Encode the JSON string to ASCII as bytes and create new Message with the bytes - line 105: //TODO: 9.Send the message to the IoT Hub - line 127: //TODO: 10.Set the received message for this sensor to the string value of the message byte array - line 143: //TODO: 11.Send acknowledgement to IoT hub that the message was processed