nswrap/examples/bluetooth/ble/ble_delegate.h

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