ESTPeripheralTypeUtility
@interface ESTPeripheralTypeUtility : NSObject <ESTPeripheral>
ESTPeripheralTypeUtility is a wrapper around CBPeripheral object of beacon device. It allows to perform bluetooth only read/write operation on the device and reboot device;.
-
Flag indicates what is current firmware state (Unknown, App, Boot).
Declaration
Objective-C
@property (nonatomic, readonly) ESTPeripheralFirmwareState firmwareState;
Swift
var firmwareState: ESTPeripheralFirmwareState { get }
-
Delegate object for
ESTPeripheralTypeUtility
class object.Declaration
Objective-C
@property (nonatomic, strong, readwrite) id<ESTPeripheralTypeUtilityDelegate> delegate;
Swift
var delegate: ESTPeripheralTypeUtilityDelegate! { get set }
-
Delegate object to be informed about device notification event.
Declaration
Objective-C
@property (nonatomic, weak, readwrite) id<ESTPeripheralNotificationDelegate> notificationDelegate;
Swift
weak var notificationDelegate: ESTPeripheralNotificationDelegate! { get set }
-
Restart device and put it into boot mode, what allows to perform Over The Air update.
Declaration
Objective-C
- (void)resetPeripheralToBootWithCompletion:(ESTCompletionBlock)completion;
Swift
func resetPeripheralToBoot(completion: ESTCompletionBlock!)
Parameters
completion
Blocked invoked when reset is complete.
-
Perform read/write operation for setting.
Declaration
Objective-C
- (void)performSettingOperation:(id<ESTBeaconOperationProtocol>)operation;
Swift
func performSettingOperation(_ operation: ESTBeaconOperationProtocol!)
Parameters
operation
Operation that should be performed.
-
Register for notifications from device provided during connection.
Declaration
Objective-C
- (void)registerNotification:(id<ESTDeviceNotificationProtocol>)notification;
Swift
func registerNotification(_ notification: ESTDeviceNotificationProtocol!)
Parameters
notification
Notification we should register for.
-
Unregister all notificaitons from device.
Declaration
Objective-C
- (void)unregisterAllNotifications;
Swift
func unregisterAllNotifications()