Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when running the sample app - MULTITREE_CHILD_NOT_FOUND #42

Open
pierre-gardyn opened this issue Jun 9, 2024 · 0 comments
Open

Comments

@pierre-gardyn
Copy link

I compiled and installed the azure-iot-sdk-c from the branch lts_08_2023, but when I compile the sample app, with SIMULATED_DATA 1, I get this error:

➜  0a43  build git:(master) ✗ sudo ./app "HostName=xxx.azure-devices.net;DeviceId=xxx;SharedAccessKey=xxx"
Info: Sending message: { "deviceId": "Raspberry Pi - C", "messageId": 1, "temperature": 26.200001, "humidity": 71.029999 }
Info: Message sent to Azure IoT Hub
Error: Time:Sat Jun  8 20:00:44 2024 File:/home/xxx/azure-iot-sdk-c/serializer/src/multitree.c Func:MultiTree_GetLeafValue Line:671 (result = MULTITREE_CHILD_NOT_FOUND)
Info: Sending message: { "deviceId": "Raspberry Pi - C", "messageId": 2, "temperature": 25.790001, "humidity": 71.809998 }
Info: Message sent to Azure IoT Hub
Error: Time:Sat Jun  8 20:00:46 2024 File:/home/xxx/azure-iot-sdk-c/serializer/src/multitree.c Func:MultiTree_GetLeafValue Line:671 (result = MULTITREE_CHILD_NOT_FOUND)
Error: Time:Sat Jun  8 20:00:52 2024 File:/home/xxx/azure-iot-sdk-c/serializer/src/multitree.c Func:MultiTree_GetLeafValue Line:671 (result = MULTITREE_CHILD_NOT_FOUND)

on the azure side, I see that I receive the first telemetry (the one with "temperature": 26.200001), but not subsequent ones. Same thing if I kill and restart the app, I receive the first one but not the ones after...

I guess the error is in the parsing of the response from Azure, leaving the first message un-acknowledged? Just a guess

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant