iDevicesInc / SweetBlue

BLE on Android, the easy way. THIS IS NOW DEPRECATED. Please visit website for info on new versions.
https://sweetblue.io
GNU General Public License v3.0
357 stars 57 forks source link

Scanning for devices cuts the device's name #430

Closed StefanGeorgievski closed 6 years ago

StefanGeorgievski commented 6 years ago

When scanning for devices their names get cut after the 17th character. Eg. My device's name is: 12345678901234567890, but the device I get from the scan is the following:

image

In the issues I read that the default MTU (maximum transmission unit) is 23 bytes which is the problem that I probably have.

Is there any way to extend this while scanning for devices so that I can get the device's full name?

Thanks in advance.

ryanhubbell commented 6 years ago

No, the scan record has nothing to do with the MTU. On Bluetooth 4, you only have so much room to put data. Things like advertising flags, manufacturer id/data, service uuids/data. So, I'm guessing your device has some other data in the scan record, leaving 17 bytes for the name.

ryanhubbell commented 6 years ago

Closing this, as it's not a SweetBlue issue.