ESTPeripheralNearableDelegate
@protocol ESTPeripheralNearableDelegate <NSObject>
ESTPeripheralNearable delegate protocol.
-
Method invoked after single operation was performed with the device successfully.
Declaration
Objective-C
- (void)peripheral:(id<ESTPeripheral>)peripheral didPerformOperation:(id<ESTNearableOperationProtocol>)operation andReceivedData:(NSData *)data;
Swift
func peripheral(_ peripheral: ESTPeripheral!, didPerformOperation operation: ESTNearableOperationProtocol!, andReceivedData data: Data!)
Parameters
peripheral
Peripheral object that performed operation.
operation
Operation that was performed.
data
Data received from the device to be deserialized.
-
Method invoked after single operation failed while communicating with the device.
Declaration
Objective-C
- (void)peripheral:(id<ESTPeripheral>)peripheral didFailOperation:(id<ESTNearableOperationProtocol>)operation withError:(NSError *)error;
Swift
func peripheral(_ peripheral: ESTPeripheral!, didFailOperation operation: ESTNearableOperationProtocol!, withError error: Error!)
Parameters
peripheral
Peripheral object that tried to perform operation.
operation
Operation that was to be performed.
error
Error explaining the failure reason.