You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have updated my IDF branch (release/vX.Y) to the latest version and checked that the issue is present there. This is not applicable if you are using Rainmaker with Arduino.
I have searched the Rainmaker forum and issue tracker for a similar issue and not found a similar issue.
General issue report
Both functions use "esp_rmaker_report_param_internal." Could there be a conflict with the buffer where the parameters are written to report? For example, an MQTT message arrives, triggering "esp_rmaker_set_params_callback." While writing to the "s_node_params_buf" buffer, the main app is unlocked by some event and calls "esp_rmaker_param_update_and_report." Should there be some kind of semaphore?
The text was updated successfully, but these errors were encountered:
github-actionsbot
changed the title
esp_rmaker_param_update_and_report & esp_rmaker_set_params_callback conflict
esp_rmaker_param_update_and_report & esp_rmaker_set_params_callback conflict (MEGH-6004)
Sep 25, 2024
Thanks for reporting the issue. Earlier, all reporting was happening only in the context of the work queue task and so this was not an issue. But the subsequent restructuring of work queue (which too happened quite some time ago) has made this indeed a possibility. We will add a fix soon.
Answers checklist.
General issue report
Both functions use "esp_rmaker_report_param_internal." Could there be a conflict with the buffer where the parameters are written to report? For example, an MQTT message arrives, triggering "esp_rmaker_set_params_callback." While writing to the "s_node_params_buf" buffer, the main app is unlocked by some event and calls "esp_rmaker_param_update_and_report." Should there be some kind of semaphore?
The text was updated successfully, but these errors were encountered: