public async void SendMessageAsync()

in Hands-on lab/lab-files/starter-project/SmartMeterSimulator/Sensor.cs [90:108]


        public async void SendMessageAsync()
        {
            var telemetryDataPoint = new
            {
                id = DeviceId,
                time = DateTime.UtcNow.ToString("o"),
                temp = CurrentTemperature
            };

            //TODO: 7.Serialize the telemetryDataPoint to JSON
            //var messageString = ...

            //TODO: 8.Encode the JSON string to ASCII as bytes and create new Message with the bytes
            //var message = ...

            //TODO: 9.Send the message to the IoT Hub
            //var sendEventAsync = ...
            //if (sendEventAsync != null) ...
        }