-
Notifications
You must be signed in to change notification settings - Fork 3k
Adding variable length attributes to Maxim Feather #10072
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
Conversation
@nick-atmosphereiot, thank you for your changes. |
@@ -146,6 +146,12 @@ ble_error_t MaximGattServer::addService_(GattService &service) | |||
currAtt->pLen = p_char->getValueAttribute().getLengthPtr(); | |||
currAtt->maxLen = p_char->getValueAttribute().getMaxLength(); | |||
currAtt->settings = ATTS_SET_WRITE_CBACK | ATTS_SET_READ_CBACK; | |||
|
|||
if(p_char->getValueAttribute().hasVariableLength()) | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should follow the style in this file {
on the same line as if
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@0xc0170 Good catch, fixed. :)
@Team-MaximIntegrated @ARMmbed/mbed-os-pan Thoughts? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cmonr Looks good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Look good.
Looks good to me |
CI started |
Test run: SUCCESSSummary: 13 of 13 test jobs passed |
Description
The Max Feather board does not currently handle variable length attributes. With the released version of mbed-os, all attribute writes that are not maxLen are ignored.
This fix is tested locally with a MAX32630Fthr board using the BLE Scanner Android App to manually write attributes.
Pull request type