-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Json value gets cut off #611
Comments
Hi, the problem definitely comes from the ATT MTU that is likely negociated at its minimum (23 bytes), which with the ATT header for a Notification (3 bytes) makes you able to only exchange 20 bytes at once, hence why your notification gets truncated at 20 bytes. Either find a way to negociate a higher MTU (can usually go up to 512 bytes), or find a way to trigger a characteristic long read, ie the central should issue read (blob) requests after a notification with a filled PDU is received. Not sure if iOS/Android support such behavior. |
@nmbus Thanks, I had to use |
i have same isue. |
@arizki29 You should put it after you connect to the device ( after |
@mbostic I have tried to put it here after "await device.connect();" but the results always return to default 23. D/FlutterBluePlugin(27476): [onServicesDiscovered] count: 3 status: 0 note : flutter_blue: ^0.7.2 |
@nmbus hi I'm using flutter_blue forget data from my MIband 5 but it gave me an empty array and disconnecting the device how can I solve this issue cus I cant understand what is the specific root for this matter. if I can get help it will be really helpfi. thank you! |
hi there. I am new to flutter : ) I am using flutter_blue to connect and get bluetooth device data, my problem is i dont know the method to get data from it. please give me some methods to get it. i have used "await c.read" it gives only device name, and "await d.read" it gives only empty array. here "c" and "d" is characteristics. thanks in advance ; ) |
hi, I have asked a question on Stack Exchange, but I think I should also post the problem here.
The link is: https://stackoverflow.com/questions/62436798/flutter-blue-json-value-gets-cut-off
The text was updated successfully, but these errors were encountered: