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

LG-73 Partial CDD API support #133

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sgunes-wirepas
Copy link
Contributor

Includes support for the following:

  • Setting an item (WPC_set_config_data_item)
  • Getting an item (WPC_get_config_data_item)
  • Registering a callback for an item indication (WPC_register_for_config_data_item)

Includes support for the following:
- Setting an item (WPC_set_config_data_item)
- Getting an item (WPC_get_config_data_item)
- Registering a callback for an item indication
  (WPC_register_for_config_data_item)
* Size of the payload that was written to the above pointer (bytes)
* \return Return code of the operation
*/
app_res_e WPC_get_config_data_item(const uint16_t endpoint,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This currently kind of forces the caller to allocate a payload array with size UINT8_MAX. Do you think that's too much? Right now max size in dualmcu interface is 80 bytes.

If we want to optimize this, we can add a size check here so the caller would pass allocated buffer size to this function.

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

Successfully merging this pull request may close these issues.

1 participant