Inherits from NSObject
Declared in BWConnectionManager.h

Overview

This class exposes APIs to connect to iBeacon and modify its services/charactersitics.

Instance Methods

connectToBeacon:

Connect to beacon.

- (void)connectToBeacon:(BWBeacon *)beacon

Parameters

beacon

beacon to be connected to.

Declared In

BWConnectionManager.h

disconnectFromBeacon:

Disconnect from beacon.

- (void)disconnectFromBeacon:(BWBeacon *)beacon

Parameters

beacon

beacon to be disconnected from

Declared In

BWConnectionManager.h

isCharacterisitcReadable:

Determines whether characteristic is readable or not.

- (BOOL)isCharacterisitcReadable:(CBCharacteristic *)characteristic

Parameters

characteristic

characteristic to be checked for readability.

Return Value

YES if characteristic is readable otherwise NO.

Declared In

BWConnectionManager.h

isCharacterisiticNotifiable:

Determines whether characteristic is notifiable or not.

- (BOOL)isCharacterisiticNotifiable:(CBCharacteristic *)characteristic

Parameters

characteristic

characteristic to be checked for notifiability.

Return Value

YES if characteristic is notifiable otherwise NO.

Declared In

BWConnectionManager.h

isCharacteristicWriteable:

Determines whether characteristic is writable or not.

- (BOOL)isCharacteristicWriteable:(CBCharacteristic *)characteristic

Parameters

characteristic

characteristic to be checked for writability.

Return Value

YES if characteristic is writable otherwise NO.

Declared In

BWConnectionManager.h

isConnected

Deteremines whether a beacon is connected or not.

- (BOOL)isConnected

Return Value

YES if beacon is connected otherwise NO.

Declared In

BWConnectionManager.h

writeAdvertisingInterval:success:failure:

Write advertising interval to beacon.

- (void)writeAdvertisingInterval:(NSString *)broadcastRate success:(void ( ^ ) ( ))success failure:(void ( ^ ) ( ))failure

Parameters

broadcastRate

advertising interval

success

success block (callback)

failure

failure block (callback)

Declared In

BWConnectionManager.h

writeBeaconName:success:failure:

Write name to beacon.

- (void)writeBeaconName:(NSString *)name success:(void ( ^ ) ( ))success failure:(void ( ^ ) ( ))failure

Parameters

name

name of beacon

success

success block (callback)

failure

failure block (callback)

Declared In

BWConnectionManager.h

writeBroadcastingPowerValue:success:failure:

Write broadcasting power value to beacon.

- (void)writeBroadcastingPowerValue:(NSString *)val success:(void ( ^ ) ( ))success failure:(void ( ^ ) ( ))failure

Parameters

val

broadcast power value

success

success block (callback)

failure

failure block (callback)

Declared In

BWConnectionManager.h

writeMajor:success:failure:

Write major value to beacon.

- (void)writeMajor:(NSString *)major success:(void ( ^ ) ( ))success failure:(void ( ^ ) ( ))failure

Parameters

major

major value

success

success block (callback)

failure

failure block (callback)

Declared In

BWConnectionManager.h

writeMinor:success:failure:

Write minor value to beacon.

- (void)writeMinor:(NSString *)minor success:(void ( ^ ) ( ))success failure:(void ( ^ ) ( ))failure

Parameters

minor

minor value

success

success block (callback)

failure

failure block (callback)

Declared In

BWConnectionManager.h

writeProximityUuid:success:failure:

Write proximity UUID to beacon.

- (void)writeProximityUuid:(NSString *)uuid success:(void ( ^ ) ( ))success failure:(void ( ^ ) ( ))failure

Parameters

uuid

proximity UUID

success

success block (callback)

failure

failure block (callback)

Declared In

BWConnectionManager.h

writeSoftReboot:success:failure:

Write soft reboot to beacon. Soft reboot is required in some cases in order to successfully write a characteristic value.

- (void)writeSoftReboot:(NSString *)val success:(void ( ^ ) ( ))success failure:(void ( ^ ) ( ))failure

Parameters

val

soft reboot value

success

success block (callback)

failure

failure block (callback)

Declared In

BWConnectionManager.h