flutter_reactive_ble icon indicating copy to clipboard operation
flutter_reactive_ble copied to clipboard

MFG Data fix on android

Open biii-anuj-pathak opened this issue 3 years ago • 6 comments

BLE Spec allows sending MFG data of more than 24 bytes by adding MFG data fields in the scan response packet, by default iOS concat it but android doesn't thus we manually concat mfg data spreaded across multiple packets

biii-anuj-pathak avatar Oct 16 '22 11:10 biii-anuj-pathak

Thanks lot for contribution, I will make sure to review this week!

Taym95 avatar Nov 02 '22 15:11 Taym95

CI is failing

Taym95 avatar Dec 12 '22 11:12 Taym95

@Taym95 CI/CD passed after rebase, earlier it failed due to the XCode version requirement. Ready for review

biii-anuj-pathak avatar Dec 13 '22 12:12 biii-anuj-pathak

This issue is exactly where I am stuck. I developed a small sensor that sends proprietary data on both the advertisement and scan response packets. The advantage of doing this is that the sensor is transmit only and multiple observers can see the sensor simultaneously, a requirement.

Currently the scan response data over-writes the advertisement data, and all I see from the device is:

I/flutter ( 9444): DiscoveredDevice(id: EA:3B:31:D2:73:E8, name: , serviceData: {}, serviceUuids: [], manufacturerData: [222, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], rssi: -71)

I should be seeing two arrays of this size.

Flutter Blue Plus has the same problem.

nataddrho avatar Dec 13 '22 21:12 nataddrho

@Taym95 Any update on this?

biii-anuj-pathak avatar Jan 28 '23 07:01 biii-anuj-pathak

@biii-anuj-pathak can you please rebase

Taym95 avatar Jan 17 '24 11:01 Taym95