Inherits from NSObject
Conforms to CBCentralManagerDelegate
CBPeripheralDelegate
EMConnectionType
Declared in EMBluetoothLowEnergyConnectionType_v12.h
EMBluetoothLowEnergyConnectionType_v12.m

Overview

EMBluethoothLowEnergyConnectionType is a concrete EMConnectionType for Bluetooth Low Energy.

If you want the framework to interact with Bluetooth Low Energy devices, add an instance of this class to EMConnectionListManager via the -addConnectionTypeToUpdates: method.

Tasks

Other Methods

Extension Methods

  •   connected

    A boolean indicating whether or not there is a connection with a device.

    property

Properties

connected

A boolean indicating whether or not there is a connection with a device.

@property (nonatomic, getter=isConnected) BOOL connected

Discussion

A boolean indicating whether or not there is a connection with a device.

Declared In

EMConnectionType.h

Instance Methods

connectToDevice:connectionDelegate:

Establishes a connection with a device

- (void)connectToDevice:(EMDeviceBasicDescription *)device connectionDelegate:(id<EMDeviceDelegate>)connDelegate

Discussion

Establishes a connection with a device

Declared In

EMConnectionType.h

deviceType

The type of device - this can be set to anything and retreived for printing or examining.

- (NSString *)deviceType

Discussion

The type of device - this can be set to anything and retreived for printing or examining.

Declared In

EMConnectionType.h

disconnect

disconnects the current device.

- (void)disconnect

Discussion

disconnects the current device.

Declared In

EMConnectionType.h

fetch:

Fetches a resource. Can be retrieved in “lastReadValue”

- (void)fetch:(EMResourceValue *)value

Discussion

Fetches a resource. Can be retrieved in “lastReadValue”

Declared In

EMConnectionType.h

fetchSystemResource:

Fetches a system resource. Can be retrieved in “lastReadValue”.

- (void)fetchSystemResource:(EMResourceValue *)value

Discussion

Fetches a system resource. Can be retrieved in “lastReadValue”.

Declared In

EMConnectionType.h

isAvailable

YES if available on the current device, NO if unavailable.

- (BOOL)isAvailable

Discussion

YES if available on the current device, NO if unavailable.

Declared In

EMConnectionType.h

startUpdating

Tells the connection to start looking for devices of its type.

- (void)startUpdating

Discussion

Tells the connection to start looking for devices of its type.

Declared In

EMConnectionType.h

stopUpdating

Tells the connection to stop looking for devices of its type.

- (void)stopUpdating

Discussion

Tells the connection to stop looking for devices of its type.

Declared In

EMConnectionType.h

store:

writes a value to a device.

- (void)store:(EMResourceValue *)value

Discussion

writes a value to a device.

Declared In

EMConnectionType.h