nswrap/examples/bluetooth/ble/ble_delegate.h
2019-05-02 14:22:20 -04:00

23 lines
397 B
Objective-C

#import <CoreBluetooth/CoreBluetooth.h>
@interface ble_delegate : NSObject <CBCentralManagerDelegate, CBPeripheralDelegate>
{
CBCentralManager *manager;
CBPeripheral *peripheral;
BOOL wantScan;
BOOL autoConnect;
dispatch_queue_t q;
CBUUID *looking_for;
}
- (ble_delegate*) init;
- (void) scanFor:(CBUUID*)uuid;
- (void) stopScan;
- (BOOL) isLECapableHardware;
@end