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

Add peripheral didUpdateMTU method #34

Conversation

ladislas
Copy link

@ladislas ladislas commented May 13, 2024

This is useful when MTU negotiation happens and the user needs the final value for app logic.

@klundberg
Copy link
Collaborator

Thanks for the contribution, must have missed that api. Could you fix the test compilation failures as well?

@ladislas
Copy link
Author

@klundberg well actually not missed, it doesn't exist... I don't know where I got the idea, I thought I read it somewhere, wrote the code and it compiled. but there is actually no method func peripheral(_ peripheral: CBPeripheral, didUpdateMTU mtu: Int) in CBPeripheral/Delegate.

I wish there was though! I guess the only way to know the final MTU is to have our device share it through a dedicated characteristics when it's updated.

Sorry for the false hope :)

@ladislas ladislas closed this May 13, 2024
@klundberg
Copy link
Collaborator

No worries! I'm glad I didn't miss something potentially important after all, it is unfortunate that this isn't available if it would be useful though.

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