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

Major update #26

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open

Major update #26

wants to merge 23 commits into from

Conversation

yackermann
Copy link

  • Fixed issue with Noble integration
  • Moved to @abandonware/noble
  • Fixed error with crashing when WinRT fails to return name
  • Updated outdated libraries
  • Other fixes

Copy link
Contributor

@geovie geovie left a comment

Choose a reason for hiding this comment

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

Thanks a lot for this, the changes look reasonable. Two minor things then it's good from my side

src/ble_manager.cc Outdated Show resolved Hide resolved
src/ble_manager.cc Outdated Show resolved Hide resolved
@tony-gutierrez
Copy link
Contributor

Need to get this merged as its the best version out there so far. Also would be nice to convert the code to work against the latest Windows 10 SDK.

@yackermann
Copy link
Author

@tony-gutierrez @geovie I've updated packages, and fixed specified issues.

Appologies for the delay.

@jeremywho
Copy link

+1 for getting this code merged.

Copy link
Contributor

@geovie geovie left a comment

Choose a reason for hiding this comment

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

LGTM except some places which will need a return statement.

Thanks again.

auto& reader = DataReader::FromBuffer(value);
Data data(reader.UnconsumedBufferLength());
reader.ReadBytes(data);
mEmit.Read(uuid, serviceId, characteristicId, data, false);
Copy link
Contributor

Choose a reason for hiding this comment

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

Needs a return statement here else read will be emitted twice

auto& reader = DataReader::FromBuffer(value);
Data data(reader.UnconsumedBufferLength());
reader.ReadBytes(data);
mEmit.ReadValue(uuid, serviceId, characteristicId, descriptorId, data);
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

auto& reader = DataReader::FromBuffer(value);
Data data(reader.UnconsumedBufferLength());
reader.ReadBytes(data);
mEmit.ReadHandle(uuid, handle, data);
Copy link
Contributor

Choose a reason for hiding this comment

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

and here

@tony-gutierrez
Copy link
Contributor

Does look like some returns should be added.

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.

4 participants