Skip to content

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

Merged
merged 2 commits into from
Mar 29, 2019

Conversation

nick-atmosphereiot
Copy link
Contributor

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

[x] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

@ciarmcom ciarmcom requested review from a team March 13, 2019 00:00
@ciarmcom
Copy link
Member

@nick-atmosphereiot, thank you for your changes.
@ARMmbed/mbed-os-pan @ARMmbed/mbed-os-maintainers please review.

@0xc0170 0xc0170 requested a review from a team March 13, 2019 09:37
@@ -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())
{
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@0xc0170 Good catch, fixed. :)

@cmonr cmonr requested a review from 0xc0170 March 13, 2019 20:10
@cmonr
Copy link
Contributor

cmonr commented Mar 27, 2019

@Team-MaximIntegrated @ARMmbed/mbed-os-pan Thoughts?

Copy link
Member

@pan- pan- left a comment

Choose a reason for hiding this comment

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

@cmonr Looks good.

Copy link
Contributor

@jessexm jessexm left a comment

Choose a reason for hiding this comment

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

Look good.

@gokhan-bektas
Copy link

Looks good to me

@cmonr
Copy link
Contributor

cmonr commented Mar 28, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Mar 29, 2019

Test run: SUCCESS

Summary: 13 of 13 test jobs passed
Build number : 1
Build artifacts

@cmonr cmonr merged commit 1c35b95 into ARMmbed:master Mar 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants