Azure SDK-for-C, IoT Central Device Connecting OK, not sending telemetry #2816
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-triage
This is a new issue that needs to be triaged to the appropriate team.
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Query/Question
I'm using an ESP32 to connect to my IOT Central Application. The device connects and registers through DPS, it is automatically added to the correct template. However the LOG stalls after this point (see below), nothing is published. I've edited the ESP32 example to use my telemetry properties.
Full log output:
1970/1/1 00:00:02 [INFO] WiFi connected, IP address: 192.168.**.64
1970/1/1 00:00:02 [INFO] Setting time using SNTP
......
2024/5/3 18:30:50 [INFO] Time initialized!
2024/5/3 18:30:50 [INFO] Telemetry frequency set to once every 10 seconds.
2024/5/3 18:30:50 [INFO] Azure IoT client initialized (state=2)
2024/5/3 18:30:50 [INFO] MQTT client target uri set to 'mqtts://global.azure-devices-provisioning.net'
2024/5/3 18:30:50 [INFO] MQTT client connecting.
2024/5/3 18:30:51 [INFO] MQTT client connected (session_present=0).
2024/5/3 18:30:51 [INFO] MQTT client subscribing to '$dps/registrations/res/#'
2024/5/3 18:30:51 [INFO] MQTT topic subscribed (message id=51357).
2024/5/3 18:30:51 [INFO] MQTT client publishing to '$dps/registrations/PUT/iotdps-register/?$rid=1'
2024/5/3 18:30:52 [INFO] MQTT message received.
2024/5/3 18:30:52 [INFO] MQTT client publishing to '$dps/registrations/GET/iotdps-get-operationstatus/?$rid=1&operationId=4.4c1b5bdabbfbb01b.f01df5a6-bb3d-4b76-8b2d-e2f1ecd2922a'
2024/5/3 18:30:52 [INFO] MQTT message received.
2024/5/3 18:30:55 [INFO] MQTT client publishing to '$dps/registrations/GET/iotdps-get-operationstatus/?$rid=1&operationId=4.4c1b5bdabbfbb01b.f01df5a6-bb3d-4b76-8b2d-e2f1ecd2922a'
2024/5/3 18:30:55 [INFO] MQTT message received.
2024/5/3 18:30:55 [INFO] MQTT client being disconnected.
2024/5/3 18:30:55 [INFO] MQTT client target uri set to 'mqtts://iotc-2696ce99-6da9-499a-88b8-879dbdec3bf1.azure-devices.net'
2024/5/3 18:30:55 [INFO] MQTT client connecting.
2024/5/3 18:30:56 [INFO] MQTT client connected (session_present=0).
2024/5/3 18:30:56 [INFO] MQTT client subscribing to '$iothub/methods/POST/#'
2024/5/3 18:30:56 [INFO] MQTT topic subscribed (message id=56104).
2024/5/3 18:30:56 [INFO] MQTT client subscribing to '$iothub/twin/res/#'
2024/5/3 18:30:56 [INFO] MQTT topic subscribed (message id=62637).
No telemetry sent.
Why is this not a Bug or a feature Request?
I don't think this is a bug, perhaps something I'm overlooking.
Setup (please complete the following information if applicable):
The text was updated successfully, but these errors were encountered: