I need to send ASCII-codes via bluetooth to the third-party device. Hope it's possible to do with spp. I could be wrong in terminology. I don't know enough this programming area.
In centralManagerDidUpdateState
I'm scanning for peripherals:
CBUUID *cbuuidService = [CBUUID UUIDWithString:@"0x1101"];
NSArray *service = @[ cbuuidService ];
NSDictionary *options = @{ CBCentralManagerScanOptionAllowDuplicatesKey : @YES };
[central scanForPeripheralsWithServices:service options:options];
but didDiscoverPeripheral
never called.
I tried to scan without services and it has the same effect.
What am I doing wrong? What cbuuid
do I need and where can I find it? Thank for any help.