-
-
Notifications
You must be signed in to change notification settings - Fork 46
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
Added mtuSize variable for BluetoothPeripheral #140
Conversation
…u value for bt peripheral
looks good but you will need to put in the actuals for other platforms too jsMain and api main. - Given the nature of this change, just put the actuals in, you dont need to implement the method/updates. |
Seems to be failing on the CI.
|
Just updated the PR with the change. The |
After the changeMTU call, mtuSize is returned as a string but not stored in BluetoothPeripheral. This change allows the user to access the negotiated mtuSize in the BluetoothPeripheral class.
EDIT: After a lot of internet sleuthing, the function name for the CoreBluetooth CBPeripheral library turned out to be
maximumWriteValueLengthForType
: https://forums.developer.apple.com/forums/thread/73871. Also updated for int conversion.