BLEManagerDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | BLEManager.h |
– BLEManagerDelegate:updatePeripheralList:RSSIList:
required method
Discovery of peripherals
- (void)BLEManagerDelegate:(BLEManager *)BLEmanager updatePeripheralList:(NSArray *)peripherals RSSIList:(NSArray *)RSSIArr
Parameters
BLEmanager |
Bluetooth management object |
---|---|
peripherals |
array of peripherals |
RSSIArr |
list of printers' rssi |
Discussion
Discovery of peripherals
Declared In
BLEManager.h
– BLEManagerDelegate:connectPeripheral:
required method
connection succeeded
- (void)BLEManagerDelegate:(BLEManager *)BLEmanager connectPeripheral:(CBPeripheral *)peripheral
Parameters
BLEmanager |
Bluetooth management object |
---|---|
peripheral |
peripheral |
Discussion
connection succeeded
Declared In
BLEManager.h
– BLEManagerDelegate:disconnectPeripheral:isAutoDisconnect:
required method
Disconnect
- (void)BLEManagerDelegate:(BLEManager *)BLEmanager disconnectPeripheral:(CBPeripheral *)peripheral isAutoDisconnect:(BOOL)isAutoDisconnect
Parameters
BLEmanager |
Bluetooth management object |
---|---|
peripheral |
peripheral |
isAutoDisconnect |
Whether to automatically disconnect |
Discussion
Disconnect
Declared In
BLEManager.h
– BLEManagerDelegate:didFailToConnectPeripheral:error:
required method
Failed to connect to device
- (void)BLEManagerDelegate:(BLEManager *)BLEmanager didFailToConnectPeripheral:(CBPeripheral *)peripheral error:(NSError *)error
Parameters
BLEmanager |
Bluetooth management object |
---|---|
peripheral |
peripheral |
error |
error |
Discussion
Failed to connect to device
Declared In
BLEManager.h
– BLEManagerDelegate:didWriteValueForCharacteristic:error:
required method
Send data successfully
- (void)BLEManagerDelegate:(BLEManager *)BLEmanager didWriteValueForCharacteristic:(CBCharacteristic *)character error:(NSError *)error
Parameters
BLEmanager |
Bluetooth management object |
---|---|
character |
characters of bluetooth device |
error |
error |
Discussion
Send data successfully
Declared In
BLEManager.h