nswrap/examples/bluetooth/ble/ble_delegate.h

24 lines
432 B
C
Raw Normal View History

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