You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On following calls it doesn't throw exception but also doesn't set the mtu to target value and returns "23". Thing is peripheral device says mcu is set to its prefered value "495".
The text was updated successfully, but these errors were encountered:
I found the reason for the exception. I was calling RequestMtu in "onConnectionChange" callback. I think it causes some kind of race condition with connect function.
Second part still stays same. It returns "23" while peripheral is saying "495".
I have found the cause. Calling 'requestMtu' before 'discoverServices' was causing this problem.
But something to note is in example project i realized even though expected mtu is set to "247" i still get highest possible mtu. Not sure if this is intended or bug.
Tested and built on "Mac Mini m4", Flutter 3.27.1, xcode 16.2, universal ble 0.14.0
İphone 7, ios 15.8.3
On both of the devices i got the same behaviour.
On first RequestMtu call after boot and hot restarts it throws exception
On following calls it doesn't throw exception but also doesn't set the mtu to target value and returns "23". Thing is peripheral device says mcu is set to its prefered value "495".
The text was updated successfully, but these errors were encountered: