9#import <Foundation/Foundation.h>
11NS_ASSUME_NONNULL_BEGIN
17typedef NS_ENUM(NSInteger, SGBleRequestType)
19 SGBleRequestTypeUnknown = 0,
20 SGBleRequestTypeConnect,
21 SGBleRequestTypeDisconnect,
22 SGBleRequestTypeReadRssi,
23 SGBleRequestTypeReadValue,
24 SGBleRequestTypeWriteValue,
25 SGBleRequestTypeSetNotifyValue,
49 SGBleRequestType _type;
55- (SGBleRequestType)type;
61@property(readonly, getter=type) SGBleRequestType type;
75- (nullable NSError *)execute;
80- (void)notifyResult:(nullable NSError *)error;
85+ (NSString *)requestTypeToString:(SGBleRequestType)typeSGBleRequest;
NSError *_Nullable(^ SGBleRequestExecuteHandler)()
Internal type, runs the Bluetooth operation associated with a SGBleRequest object.
Definition SGBleRequest.h:32
void(^ SGBleRequestCompletionHandler)(NSError *_Nullable error)
Internal type, completion handler for operations associated with a SGBleRequest object.
Definition SGBleRequest.h:38
Internal type, represents a Bluetooth operation to be performed on a peripheral. Used by SGBlePeriphe...
Definition SGBleRequest.h:47