thingsboard / thingsboard

Open-source IoT Platform - Device management, data collection, processing and visualization.
https://thingsboard.io
Apache License 2.0
15.8k stars 4.85k forks source link

mosquitto C library doesn't receive attribute updates #10521

Open ZHamdi-ENIT opened 1 month ago

ZHamdi-ENIT commented 1 month ago

Component

Description

I am trying shared attributes updates. When I use mosquitto on command prompt to subscribe it works. But when I replicated the subscription using mosquitto C library in a device, it never receives any updates. On a side not the attribute request and response subscription works fine.

Environment

ZHamdi-ENIT commented 3 weeks ago

For unknown reasons the agent I made can't simultaneously send data and subscribe at the same time. it worked fine when I split each function in a script of its own. (fork() didn't help)