Closed cheasonxie closed 4 months ago
lightblue can found this paired device, Its source code can be refered to.
It's ok after I add my device's UUID to uuid array in file FlutterBluePlusPlugin.m under "getSystemDevices" method, like this:
// Cannot pass blank UUID list for security reasons.
// Assume all devices have the Generic Access service 0x1800
CBUUID* gasUuid = [CBUUID UUIDWithString:@"1800"];
CBUUID* gasUuid1 = [CBUUID UUIDWithString:@"ffe0"];
CBUUID* gasUuid2 = [CBUUID UUIDWithString:@"69400001-b5a3-f393-e0a9-e50e24dcca99"];
// this returns devices connected by *any* app
NSArray *periphs = [self.centralManager retrieveConnectedPeripheralsWithServices:@[gasUuid, gasUuid1, gasUuid2]];
@cheasonxie I have the same issue. This is the only solution? How do I know what is the UUID?
@burekas7 hi, I don't know if there is any other solution. I am not familiar with IOS development. you can use bluetooth debug app such as nRF Connect or LightBlue to find your device's UUID
Requirements
Have you checked this problem on the example app?
Yes
FlutterBluePlus Version
1.32.8
Flutter Version
3.16.0
What OS?
iOS
OS Version
17.5.1
Bluetooth Module
iphone 12 mini (I don't know what ble module this phone uses)
What is your problem?
FlutterBluePlus.systemDevices cannot found paired devices. if disconnect paired device, this device can be found in scanresult.
my device name is ZY-M630, cannot be found in the following log
Logs