Skip to content

Conversation

@facetious
Copy link
Contributor

Description
This adds two optional parameters to connect that affect Android connections (these features are not available on iOS).

auto2MegPhy?: boolean (default: false): When enabled, Android Oreo and newer will request that the 2M PHY be selected at the time of connect.

autoMaxMTU?: boolean (default: false): When enabled, Android requests the maximum MTU (247) on the new connection.

In addition to the above functional features, there are also some non-breaking extensions to the response structures.

Peripheral.mtu is added, helping clients to WriteWithoutResponse data in appropriate chunk sizes.

ReadResult.peripheralUUID is added (via extends CRUDOptions) to enable clients to connect notify streams to multiple peripherals at the same time.

@facetious facetious force-pushed the facetious/add-mtu-and-2meg-phy branch from 11eecc4 to 0fb8f73 Compare September 16, 2020 19:01
@farfromrefug
Copy link
Member

@facetious seems awesome. One thing. I am a bit worried about the hardcoded MTU value on iOS for Peripheral. What if the device only accepts 24 for example ?

@facetious
Copy link
Contributor Author

@facetious seems awesome. One thing. I am a bit worried about the hardcoded MTU value on iOS for Peripheral. What if the device only accepts 24 for example ?

iOS has forced its MTU to 185 since it began supporting BLE. Is your concern that the peripheral may not support it?

@farfromrefug
Copy link
Member

@facetious indeed it is my concern. I am worried users will think 185 will always work. But i dont know maybe it is good still.
Let me think a bit about this. I will merge still

@farfromrefug
Copy link
Member

@facetious sory for looking at this so late. Can you merge from master?

@facetious facetious closed this Jan 6, 2021
@facetious
Copy link
Contributor Author

This was resolved by #202 (which I totally forgot was still open).

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.

2 participants