I'm starting to work with the Azure IoT C SDK. Currently, I am experimenting with the different ways to transmit data between a device and the cloud.
What is the difference between IoTHubDeviceClient_LL_SendTelemetryAsync and IoTHubDeviceClient_LL_SendEventAsync?
The documentation doesn't really help as it doesn't state what the difference between telemetry data and an event is.
The log output looks the very same for both calls:
-> 08:14:54 PUBLISH | IS_DUP: false | RETAIN: 0 | QOS: DELIVER_AT_LEAST_ONCE | TOPIC_NAME: devices/Test1/messages/events/ | PACKET_ID: 5 | PAYLOAD_LEN: 9
-> 08:14:54 PUBLISH | IS_DUP: false | RETAIN: 0 | QOS: DELIVER_AT_LEAST_ONCE | TOPIC_NAME: devices/Test1/messages/events/ | PACKET_ID: 6 | PAYLOAD_LEN: 9
A google search doesn't turn up any information either.
IoTHubDeviceClient_LL_SendTelemetryAsync is simply an alias for IoTHubDeviceClient_LL_SendEventAsync. They do the same thing. See the code here: