We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I found the default generated attribute get API does not work for the attrbute with type of string, such as:
namespace Description { EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value); // char_string EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value);
The Set API works well.
<suggested fix, suggested enhancement>
The text was updated successfully, but these errors were encountered:
The MutableCharSpan passed in needs to point to a buffer to copy the string into. And the read will fail if the buffer is not big enough.
Sorry, something went wrong.
vivien-apple
Successfully merging a pull request may close this issue.
Problem
I found the default generated attribute get API does not work for the attrbute with type of string, such as:
namespace Description {
EmberAfStatus Get(chip::EndpointId endpoint, chip::MutableCharSpan value); // char_string
EmberAfStatus Set(chip::EndpointId endpoint, chip::CharSpan value);
The Set API works well.
Proposed Solution
<suggested fix, suggested enhancement>
The text was updated successfully, but these errors were encountered: