You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

31 lines
932 B

//
// RTKPeripheralCharacteristicOperation.h
// RTKLEFoundation
//
// Created by jerome_gu on 2019/1/7.
// Copyright © 2019 Realtek. All rights reserved.
//
#ifndef RTKPeripheralCharacteristicOperation_h
#define RTKPeripheralCharacteristicOperation_h
#import <CoreBluetooth/CoreBluetooth.h>
NS_ASSUME_NONNULL_BEGIN
@protocol RTKPeripheralCharacteristicRead <NSObject>
@property (readonly, nonatomic) CBCharacteristic *readCharacteristic;
- (void)didUpdateValueForCharacteristic:(CBCharacteristic *)characteristic;
- (void)didUpdateNotificationStateForCharacteristic:(CBCharacteristic *)characteristic;
@end
@protocol RTKPeripheralCharacteristicWrite <NSObject>
@property (readonly, nonatomic) CBCharacteristic *writeCharacteristic;
- (void)didWriteValueForCharacteristic:(CBCharacteristic *)characteristic error:(nullable NSError *)error;
@end
NS_ASSUME_NONNULL_END
#endif /* RTKPeripheralCharacteristicOperation_h */