SBKBeacon Class Reference
| Inherits from | NSObject |
| Declared in | SBKBeacon.h |
Overview
The SBKBeacon class defines the interface of a sensoro beacon device. You can use instances of this class to get rssi, sensor data or configurate device settings. You do not create instances of this class directly. Use SBKBeaconManager to get SBKBeacon instances.
The identity of a beacon is defined by its beaconID properties.
Tasks
Setting and Getting the Delegate
-
delegateproperty
General Properties
-
beaconIDproperty -
serialNumberproperty -
inRangeproperty -
inRangeMinimumRssiWhileEnteringproperty -
inRangeMinimumRssiWhileLeavingproperty -
rssiproperty -
proximityproperty -
accuracyproperty -
batteryLevelproperty -
hardwareModelNameproperty -
firmwareVersionproperty -
workModelproperty
Establishing or Canceling Connections with Beacon
Beacon Configuration
-
baseSettingsproperty -
sensorSettingsproperty -
secureBroadcastIntervalproperty -
– writeProximityUUID:completion: -
– writeMajor:minor:completion: -
– writeBaseSettings:completion: -
– writeSensorSettings:completion: -
– resetToFactorySettingsWithCompletion: -
– writeSecureBroadcastInterval:completion: -
– writeBroadcastKey:completion: -
– clearBroadcastKeyWithCompletion: -
– disableiBeaconWithCompletion: -
– enableiBeaconWithCompletion: -
– disableAliBeaconWithCompletion: -
– enableAliBeaconWithCompletion: -
– disableEnhanceBroadcastWithCompletion: -
– enableEnhanceBroadcastWithCompletion: -
– flashLightWithCommand:repeat:completion:
Writing Authorization
-
writePermissionStatusproperty -
– requireWritePermissionWithPassword:completion: -
– updateWritePassword:completion: -
– clearWritePasswordWithCompletion: -
– availableEnergySavingMode
Temperature, Light and Accelerometer Sensor
-
– reloadSensorDataWithCompletion: -
– isTemperatureSensorAvailable -
– isLightSensorAvailable -
– isAccelerometerAvailable -
– isBeacon -
– isSensor -
temperatureproperty -
lightproperty -
broadcastTransmitPowerproperty -
broadcastIntervalproperty -
inEnergySavingproperty -
aliBeaconproperty -
enhanceBroadcastproperty -
accelerometerCountproperty -
movingproperty -
shakeToLightOnproperty -
– resetAccelerometerCountWithCompletion: -
– writeShakeToLightOnState:completion:
Bridge to Core Bluetooth
-
assignedPeripheralproperty
Eddystone.
-
eddystoneUIDEnabledproperty -
eddystoneURLEnabledproperty -
eddystoneTLMEnabledproperty -
eddystoneNIDproperty -
eddystoneBIDproperty -
eddystoneTLMIntervalproperty -
eddystoneUrlproperty -
– writeEddystoneUrl:completion: -
– eddystonePackage:enable:completion: -
– writeEddystoneTLMInterval:completion: -
– writeEddystoneNID:completion: -
– writeEddystoneBID:completion:
Properties
accelerometerCount
The number of accelerometer count.
@property (readonly, nonatomic, copy) NSNumber *accelerometerCountDiscussion
The number of accelerometer count.
Sensor data can only be updated when the app is running in the foreground.
Declared In
SBKBeacon.haccuracy
The accuracy of the proximity value, measured in meters from the beacon. (read-only)
@property (readonly, nonatomic) CLLocationAccuracy accuracyDiscussion
The accuracy of the proximity value, measured in meters from the beacon. (read-only)
Indicates the one sigma horizontal accuracy in meters. Use this property to differentiate between beacons with the same proximity value. Do not use it to identify a precise location for the beacon. Accuracy values may fluctuate due to RF interference. A negative value in this property signifies that the actual accuracy could not be determined.
Declared In
SBKBeacon.haliBeacon
The flag whether device is broadcasting ali beacon info.
@property (nonatomic, readonly) NSNumber *aliBeaconDiscussion
The flag whether device is broadcasting ali beacon info.
Declared In
SBKBeacon.hassignedPeripheral
The CBPeripheral object assign to this beacon.this object may be changed continuously.
@property (readonly, nonatomic, strong) CBPeripheral *assignedPeripheralDiscussion
The CBPeripheral object assign to this beacon.this object may be changed continuously.
Declared In
SBKBeacon.hbaseSettings
The dictionary of beacon base configuration attributes. (read-only)
@property (readonly, nonatomic) NSDictionary *baseSettingsDiscussion
The dictionary of beacon base configuration attributes. (read-only)
This property will be available after connect. For available options, see SBKBeaconBaseSettings.
See Also
Declared In
SBKBeacon.hbatteryLevel
The battery charge level for the device. (read-only)
@property (readonly, nonatomic, copy) NSNumber *batteryLevelDiscussion
The battery charge level for the device. (read-only)
Battery level ranges from 0.0 to 1.0 (100% charged).
Declared In
SBKBeacon.hbeaconID
A SBKBeaconID object identify the beacon. (read-only)
@property (readonly, nonatomic, copy) SBKBeaconID *beaconIDDiscussion
A SBKBeaconID object identify the beacon. (read-only)
Declared In
SBKBeacon.hbroadcastInterval
The broadcast transmit interval.
@property (nonatomic, readonly) NSNumber *broadcastIntervalDiscussion
The broadcast transmit interval.
Declared In
SBKBeacon.hbroadcastTransmitPower
The broadcast transmit power.
@property (nonatomic, readonly) NSNumber *broadcastTransmitPowerDiscussion
The broadcast transmit power.
See Also
Declared In
SBKBeacon.hdelegate
The delegate of the app object.
@property (readwrite, nonatomic, weak) id<SBKBeaconDelegate> delegateDiscussion
The delegate of the app object.
Declared In
SBKBeacon.heddystoneBID
The BID of UID packet of eddystone.
@property (readonly, nonatomic) NSData *eddystoneBIDDiscussion
The BID of UID packet of eddystone.
Declared In
SBKBeacon.heddystoneNID
The NID of UID packet of eddystone.
@property (readonly, nonatomic) NSData *eddystoneNIDDiscussion
The NID of UID packet of eddystone.
Declared In
SBKBeacon.heddystoneTLMEnabled
The flag whether TLM packet of eddystone is broadcasted.
@property (readonly, nonatomic) NSNumber *eddystoneTLMEnabledDiscussion
The flag whether TLM packet of eddystone is broadcasted.
Declared In
SBKBeacon.heddystoneTLMInterval
The interval of TLM packet of eddystone.
@property (readonly, nonatomic) NSNumber *eddystoneTLMIntervalDiscussion
The interval of TLM packet of eddystone.
Declared In
SBKBeacon.heddystoneUIDEnabled
The flag whether UID packet of eddystone is broadcasted.
@property (readonly, nonatomic) NSNumber *eddystoneUIDEnabledDiscussion
The flag whether UID packet of eddystone is broadcasted.
Declared In
SBKBeacon.heddystoneURLEnabled
The flag whether URL packet of eddystone is broadcasted.
@property (readonly, nonatomic) NSNumber *eddystoneURLEnabledDiscussion
The flag whether URL packet of eddystone is broadcasted.
Declared In
SBKBeacon.heddystoneUrl
The URL of URL packet of eddystone.
@property (readonly, nonatomic) NSString *eddystoneUrlDiscussion
The URL of URL packet of eddystone.
Declared In
SBKBeacon.henhanceBroadcast
The flag whether beacon is in energy saving mode.
@property (nonatomic, readonly) NSNumber *enhanceBroadcastDiscussion
The flag whether beacon is in energy saving mode.
Declared In
SBKBeacon.hfirmwareVersion
The current firmware version for the device. (read-only)
@property (readonly, nonatomic, copy) NSString *firmwareVersionDiscussion
The current firmware version for the device. (read-only)
Declared In
SBKBeacon.hhardwareModelName
The model of the device. (read-only)
@property (readonly, nonatomic, copy) NSString *hardwareModelNameDiscussion
The model of the device. (read-only)
Declared In
SBKBeacon.hinEnergySaving
The flag whether beacon is in energy saving mode.
@property (nonatomic, readonly) NSNumber *inEnergySavingDiscussion
The flag whether beacon is in energy saving mode.
Declared In
SBKBeacon.hinRange
Returns a Boolean value that indicates whether the beacon is in range. (read-only)
@property (readonly, nonatomic, assign) BOOL inRangeDiscussion
Returns a Boolean value that indicates whether the beacon is in range. (read-only)
Beacon will be marked out of range after approximate 8 second in order to prevent notifications delivering too frequently.
Declared In
SBKBeacon.hinRangeMinimumRssiWhileEntering
the rssi value to decide if entering range of beacon.
@property (readwrite, nonatomic, assign) NSInteger inRangeMinimumRssiWhileEnteringDiscussion
the rssi value to decide if entering range of beacon.
if received rssi is larger than this value, it is in range of this beacon.
Declared In
SBKBeacon.hinRangeMinimumRssiWhileLeaving
the rssi value to decide if leaving range of beacon.
@property (readwrite, nonatomic, assign) NSInteger inRangeMinimumRssiWhileLeavingDiscussion
the rssi value to decide if leaving range of beacon.
if received rssi is less than this value, it is out of range of this beacon.
Declared In
SBKBeacon.hlight
The ambient light level in lux.
@property (readonly, nonatomic, copy) NSNumber *lightDiscussion
The ambient light level in lux.
Sensor data can only be updated when the app is running in the foreground.
Declared In
SBKBeacon.hmoving
Flag indicating accelerometer state, boolean value wrapped in NSNumber.
@property (readonly, nonatomic, copy, getter=isMoving) NSNumber *movingDiscussion
Flag indicating accelerometer state, boolean value wrapped in NSNumber.
Sensor data can only be updated when the app is running in the foreground.
Declared In
SBKBeacon.hproximity
The relative distance to the beacon. (read-only)
@property (readonly, nonatomic, assign) CLProximity proximityDiscussion
The relative distance to the beacon. (read-only)
The value in this property gives a general sense of the relative distance to the beacon. Use it to quickly identify beacons that are nearer to the user rather than farther away.
Declared In
SBKBeacon.hrssi
The received signal strength of the beacon, measured in decibels. (read-only)
@property (readonly, nonatomic, assign) NSInteger rssiDiscussion
The received signal strength of the beacon, measured in decibels. (read-only)
If beacon is out of range, the value will be 0.
Declared In
SBKBeacon.hsecureBroadcastInterval
The value of sensor umm change interval attributes. (read-only)
@property (readonly, nonatomic) SBKBeaconSecureBroadcastInterval secureBroadcastIntervalDiscussion
The value of sensor umm change interval attributes. (read-only)
you can change value, @see writeSecureBroadcastInterval:completion:
Declared In
SBKBeacon.hsensorSettings
The dictionary of sensor configuration attributes. (read-only)
@property (readonly, nonatomic) NSDictionary *sensorSettingsDiscussion
The dictionary of sensor configuration attributes. (read-only)
This property will be available after connect. For available options, see SBKBeaconSensorSettings.
See Also
Declared In
SBKBeacon.hserialNumber
The beacon’s hardware serial number. (read-only)
@property (readonly, nonatomic, copy) NSString *serialNumberDiscussion
The beacon’s hardware serial number. (read-only)
Declared In
SBKBeacon.hshakeToLightOn
Flag indicating switch state to shake to light on.
@property (readonly, nonatomic) NSNumber *shakeToLightOnDiscussion
Flag indicating switch state to shake to light on.
To shake to litght on is that you can use to ensure the device is working.
Declared In
SBKBeacon.htemperature
Temperature value in Celsius
@property (readonly, nonatomic, copy) NSNumber *temperatureDiscussion
Temperature value in Celsius
Sensor data can only be updated when the app is running in the foreground.
Declared In
SBKBeacon.hInstance Methods
availableEnergySavingMode
Which energy saving mode the beacon supports.
- (SBKBeaconEnergySavingMode)availableEnergySavingModeReturn Value
Which energy saving mode the beacon supports.
Declared In
SBKBeacon.hclearBroadcastKeyWithCompletion:
Clear the key to encrypt the broadcast packet.
- (BOOL)clearBroadcastKeyWithCompletion:(SBKBeaconCompletionBlock)completionParameters
- completion
The block to execute after the clear is completed. If error parameter is nil means writing successfully.
Return Value
Can this clear operation be executed.
Discussion
Clear the key to encrypt the broadcast packet.
Declared In
SBKBeacon.hclearWritePasswordWithCompletion:
Clear the beacon’s password.
- (BOOL)clearWritePasswordWithCompletion:(SBKBeaconCompletionBlock)completionParameters
- completion
The block to execute after the writing is completed. If error parameter is nil means clear successfully.
Return Value
Can this clear operation be executed.
Discussion
Clear the beacon’s password.
Declared In
SBKBeacon.hconnectWithCompletion:
Establishes a connection to a beacon.
- (void)connectWithCompletion:(SBKBeaconCompletionBlock)completionParameters
- completion
The block to execute after the connecting is completed. If error parameter is nil means connection has been established successfully.
Discussion
Establishes a connection to a beacon.
Declared In
SBKBeacon.hconnectionStatus
The current status of the connection.
- (SBKBeaconConnectionStatus)connectionStatusReturn Value
A SBKBeaconConnectionStatus enum value.
Discussion
The current status of the connection.
Declared In
SBKBeacon.hdisableAliBeaconWithCompletion:
Disable the AliBeacon broadcast.
- (BOOL)disableAliBeaconWithCompletion:(SBKBeaconCompletionBlock)completionParameters
- completion
The block to execute after the writing is completed. If error parameter is nil means writing successfully.
Return Value
Can this writing operation be executed.
Discussion
Disable the AliBeacon broadcast.
Declared In
SBKBeacon.hdisableEnhanceBroadcastWithCompletion:
Disable the enhance broadcast.
- (BOOL)disableEnhanceBroadcastWithCompletion:(SBKBeaconCompletionBlock)completionParameters
- completion
The block to execute after the writing is completed. If error parameter is nil means writing successfully.
Return Value
Can this writing operation be executed.
Discussion
Disable the enhance broadcast.
the Enhance broadcast can make the SDK find this device as Sensoro device even if iOS device was locked, in other words, the screen was turned off. Normally, this device can be found by iOS device as a iBeacon device. if you want use SDK and find Sensoro device when the iOS device was locked, you need enable this feature. To enable this mode will increase the power consumption.
Declared In
SBKBeacon.hdisableiBeaconWithCompletion:
Disable the iBeacon broadcast.
- (BOOL)disableiBeaconWithCompletion:(SBKBeaconCompletionBlock)completionParameters
- completion
The block to execute after the writing is completed. If error parameter is nil means writing successfully.
Return Value
Can this writing operation be executed.
Discussion
Disable the iBeacon broadcast.
Declared In
SBKBeacon.hdisconnect
Cancels an active or pending connection to a beacon.
- (void)disconnectDiscussion
Cancels an active or pending connection to a beacon.
Declared In
SBKBeacon.heddystonePackage:enable:completion:
enable some package of eddystone.
- (BOOL)eddystonePackage:(EddystonePackageType)package enable:(BOOL)enable completion:(SBKBeaconCompletionBlock)completionParameters
- package
which package will enbaled or disabled;
- enable
package is enbaled or disabled. YES : enable, NO : disable;
- completion
The block to execute after the writing is completed. If error parameter is nil means writing successfully.
Return Value
Can this writing operation be executed.
Discussion
enable some package of eddystone.
Declared In
SBKBeacon.henableAliBeaconWithCompletion:
Enable the AliBeacon broadcast.
- (BOOL)enableAliBeaconWithCompletion:(SBKBeaconCompletionBlock)completionParameters
- completion
The block to execute after the writing is completed. If error parameter is nil means writing successfully.
Return Value
Can this writing operation be executed.
Discussion
Enable the AliBeacon broadcast.
Declared In
SBKBeacon.henableEnhanceBroadcastWithCompletion:
Enable the enhance broadcast.
- (BOOL)enableEnhanceBroadcastWithCompletion:(SBKBeaconCompletionBlock)completionParameters
- completion
The block to execute after the writing is completed. If error parameter is nil means writing successfully.
Return Value
Can this writing operation be executed.
Discussion
Enable the enhance broadcast.
the Enhance broadcast can make the SDK find this device as Sensoro device even if iOS device was locked, in other words, the screen was turned off. Normally, this device can be found by iOS device as a iBeacon device. if you want use SDK and find Sensoro device when the iOS device was locked, you need enable this feature. To enable this mode will increase the power consumption.
Declared In
SBKBeacon.henableiBeaconWithCompletion:
Enable the iBeacon broadcast.
- (BOOL)enableiBeaconWithCompletion:(SBKBeaconCompletionBlock)completionParameters
- completion
The block to execute after the writing is completed. If error parameter is nil means writing successfully.
Return Value
Can this writing operation be executed.
Discussion
Enable the iBeacon broadcast.
Declared In
SBKBeacon.hflashLightWithCommand:repeat:completion:
flash light of SmartBeacon.
- (BOOL)flashLightWithCommand:(UInt8)command repeat:(UInt8)repeatCount completion:(SBKBeaconCompletionBlock)completionParameters
- command
If the bit of command is 1, then this light will turn on one times, if 0 ,the light turn off. you can use custom command, or use @see SBKCommonLigthFlashCommand
- repeatCount
The count that command was repeat.
- completion
The block to execute after the writing is completed. If error parameter is nil means writing successfully.
Return Value
Can this writing operation be executed.
Discussion
flash light of SmartBeacon.
Declared In
SBKBeacon.hisAccelerometerAvailable
Flag indicating whether accelerometer sensor is available.
- (BOOL)isAccelerometerAvailableReturn Value
Flag indicating whether accelerometer sensor is available.
Declared In
SBKBeacon.hisBeacon
Flag indicating whether this beacon has beacon information, uuid, major, minor, proximity, accuracy etc..
- (BOOL)isBeaconReturn Value
Flag indicating whether this beacon has beacon information, uuid, major, minor, proximity, accuracy etc..
Declared In
SBKBeacon.hisLightSensorAvailable
Flag indicating whether light sensor is available.
- (BOOL)isLightSensorAvailableReturn Value
Flag indicating whether light sensor is available.
Declared In
SBKBeacon.hisSensor
Flag indicating whether this beacon has sensor information, temprature, light, accelerometer etc..
- (BOOL)isSensorReturn Value
Flag indicating whether this beacon has sensor information, temprature, light, accelerometer etc..
Declared In
SBKBeacon.hisTemperatureSensorAvailable
Flag indicating whether temperature sensor is available.
- (BOOL)isTemperatureSensorAvailableReturn Value
Flag indicating whether temperature sensor is available.
Declared In
SBKBeacon.hreloadSensorDataWithCompletion:
Causes beacon to reload temperature and light sensors data immediately.
- (BOOL)reloadSensorDataWithCompletion:(SBKBeaconCompletionBlock)completionParameters
- completion
The block to execute after the operation is completed. If error parameter is nil means success.
Return Value
Can this operation be executed.
Discussion
Causes beacon to reload temperature and light sensors data immediately.
Declared In
SBKBeacon.hrequireWritePermissionWithPassword:completion:
You should use this method to request write permission if writePermissionStatus property is restricted.
- (BOOL)requireWritePermissionWithPassword:(NSString *)password completion:(SBKBeaconCompletionBlock)completionParameters
- password
Password string.
- completion
The block to execute after the operation is completed. If error parameter is nil means success.
Return Value
Can this operation be executed.
Discussion
You should use this method to request write permission if writePermissionStatus property is restricted.
See Also
Declared In
SBKBeacon.hresetAccelerometerCountWithCompletion:
Resets accelerometer counter value to zero.
- (BOOL)resetAccelerometerCountWithCompletion:(SBKBeaconCompletionBlock)completionParameters
- completion
The block to execute after the writing is completed. If error parameter is nil means writing successfully.
Return Value
Can this operation be executed.
Discussion
Resets accelerometer counter value to zero.
Declared In
SBKBeacon.hresetToFactorySettingsWithCompletion:
Resets beacon to factory settings. This will reset proximityUUID, major, minor, baseSettings and sensorSettings to original values.
- (BOOL)resetToFactorySettingsWithCompletion:(SBKBeaconCompletionBlock)completionParameters
- completion
The block to execute after the writing is completed. If error parameter is nil means writing successfully.
Return Value
Can this writing operation be executed.
Discussion
Resets beacon to factory settings. This will reset proximityUUID, major, minor, baseSettings and sensorSettings to original values.
Declared In
SBKBeacon.hupdateWritePassword:completion:
Changes the beacon’s password.
- (BOOL)updateWritePassword:(NSString *)password completion:(SBKBeaconCompletionBlock)completionParameters
- password
New password string.
- completion
The block to execute after the writing is completed. If error parameter is nil means writing successfully.
Return Value
Can this writing operation be executed.
Discussion
Changes the beacon’s password.
Declared In
SBKBeacon.hwriteBaseSettings:completion:
Updates base settings of this beacon.
- (BOOL)writeBaseSettings:(NSDictionary *)settings completion:(SBKBeaconCompletionBlock)completionParameters
- settings
Configuration attributes you try to update in a dictionary. For available options, see SBKBeaconBaseSettings.
- completion
The block to execute after the writing is completed. If error parameter is nil means writing successfully.
Return Value
Can this writing operation be executed.
Discussion
Updates base settings of this beacon.
Declared In
SBKBeacon.hwriteBroadcastKey:completion:
Updates the key to encrypt the broadcast packet.
- (BOOL)writeBroadcastKey:(NSString *)key completion:(SBKBeaconCompletionBlock)completionParameters
- key
the key to encrypt the broadcast packet;
- completion
The block to execute after the writing is completed. If error parameter is nil means writing successfully.
Return Value
Can this writing operation be executed.
Discussion
Updates the key to encrypt the broadcast packet.
Declared In
SBKBeacon.hwriteEddystoneBID:completion:
write eddystone bid of UID package.
- (BOOL)writeEddystoneBID:(NSString *)bidString completion:(SBKBeaconCompletionBlock)completionParameters
- bidString
bid presented by hex string;
- completion
The block to execute after the writing is completed. If error parameter is nil means writing successfully.
Return Value
Can this writing operation be executed.
Discussion
write eddystone bid of UID package.
Declared In
SBKBeacon.hwriteEddystoneNID:completion:
write eddystone nid of UID package.
- (BOOL)writeEddystoneNID:(NSString *)nidString completion:(SBKBeaconCompletionBlock)completionParameters
- nidString
nid presented by hex string;
- completion
The block to execute after the writing is completed. If error parameter is nil means writing successfully.
Return Value
Can this writing operation be executed.
Discussion
write eddystone nid of UID package.
Declared In
SBKBeacon.hwriteEddystoneTLMInterval:completion:
write eddystone interval of TLM package.
- (BOOL)writeEddystoneTLMInterval:(EddystoneTLMInterval)interval completion:(SBKBeaconCompletionBlock)completionParameters
- interval
broadcast on this interval;
- completion
The block to execute after the writing is completed. If error parameter is nil means writing successfully.
Return Value
Can this writing operation be executed.
Discussion
write eddystone interval of TLM package.
Declared In
SBKBeacon.hwriteEddystoneUrl:completion:
Write a url to eddystone.
- (BOOL)writeEddystoneUrl:(NSString *)url completion:(SBKBeaconCompletionBlock)completionParameters
- url
The url that eddystone broadcast with url frame;
- completion
The block to execute after the writing is completed. If error parameter is nil means writing successfully.
Return Value
Can this writing operation be executed.
Discussion
Write a url to eddystone.
Declared In
SBKBeacon.hwriteMajor:minor:completion:
Updates major and minor of this beacon.
- (BOOL)writeMajor:(NSNumber *)major minor:(NSNumber *)minor completion:(SBKBeaconCompletionBlock)completionParameters
- major
The major value.
- minor
The minor value.
- completion
The block to execute after the writing is completed. If error parameter is nil means writing successfully.
Return Value
Can this writing operation be executed.
Discussion
Updates major and minor of this beacon.
Declared In
SBKBeacon.hwriteProximityUUID:completion:
Updates proximity UUID of this beacon.
- (BOOL)writeProximityUUID:(NSUUID *)proximityUUID completion:(SBKBeaconCompletionBlock)completionParameters
- proximityUUID
Proximity UUID in NSUUID object.
- completion
The block to execute after the writing is completed. If error parameter is nil means writing successfully.
Return Value
Can this writing operation be executed.
Discussion
Updates proximity UUID of this beacon.
Declared In
SBKBeacon.hwriteSecureBroadcastInterval:completion:
Updates UMM Change interval.
- (BOOL)writeSecureBroadcastInterval:(SBKBeaconSecureBroadcastInterval)interval completion:(SBKBeaconCompletionBlock)completionParameters
- interval
The Secure Broadcast change interval. it is enum of @see SBKBeaconSecureBroadcastInterval;
- completion
The block to execute after the writing is completed. If error parameter is nil means writing successfully.
Return Value
Can this writing operation be executed.
Discussion
Updates UMM Change interval.
Declared In
SBKBeacon.hwriteSensorSettings:completion:
Updates sensor settings of this beacon.
- (BOOL)writeSensorSettings:(NSDictionary *)settings completion:(SBKBeaconCompletionBlock)completionParameters
- settings
Configuration attributes you try to update in a dictionary. For available options, see SBKBeaconSensorSettings.
- completion
The block to execute after the writing is completed. If error parameter is nil means writing successfully.
Return Value
Can this writing operation be executed.
Discussion
Updates sensor settings of this beacon.
Declared In
SBKBeacon.hwriteShakeToLightOnState:completion:
Write the state of switch to shake to light on.
- (BOOL)writeShakeToLightOnState:(BOOL)state completion:(SBKBeaconCompletionBlock)completionParameters
- state
YES: turn on this switch, NO: turn off this switch.
- completion
The block to execute after the writing is completed. If error parameter is nil means writing successfully.
Return Value
Can this operation be executed.
Discussion
Write the state of switch to shake to light on.
Declared In
SBKBeacon.h