Skip to content

esp_rmaker_param_update_and_report & esp_rmaker_set_params_callback conflict (MEGH-6004) #332

@Roydudu

Description

@Roydudu

Answers checklist.

  • I have read the Rainmaker documentation and the issue is not addressed there.
  • 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions