SMBluetoothDiscoverySensor Class Reference
| Inherits from | SMSensor : NSObject |
|---|---|
| Conforms to | CBCentralManagerDelegate |
| Declared in | SMBluetoothDiscoverySensor.h SMBluetoothDiscoverySensor.m |
Other Methods
– initWithSenseCallback:timeInterval:
Initialises the bluetooth sensor with specified callback and repeat time interval
- (id)initWithSenseCallback:(SenseCallback)callback timeInterval:(NSTimeInterval)secsParameters
callback |
callback for data |
|---|---|
secs |
seconds between sensing |
Return Value
Bluetooth sensor
Discussion
Initialises the bluetooth sensor with specified callback and repeat time interval
Declared In
SMBluetoothDiscoverySensor.h
Other Methods
+ isAvailable
Checks whether the sensor is available at runtime
+ (BOOL)isAvailableReturn Value
Sensor available
Discussion
Checks whether the sensor is available at runtime
Declared In
SMSensor.h
– initWithSenseCallback:
Initialises an SMSensor with specified callback.
- (id)initWithSenseCallback:(SenseCallback)callbackParameters
callback |
Callback to send the data to |
|---|
Return Value
SMSensor Instance
Discussion
Initialises an SMSensor with specified callback.
Note: This class can not be instantiated from outside this library. Use the relevant subclasses for a particular sensor
Declared In
SMSensor.h
Extension Methods
bluetoothManager
Bluetooth manager to gather data from
@property (nonatomic, retain) CBCentralManager *bluetoothManagerDiscussion
Bluetooth manager to gather data from
Declared In
SMBluetoothDiscoverySensor.m
timer
Timer for repeat sensing
@property (nonatomic, retain) NSTimer *timerDiscussion
Timer for repeat sensing
Declared In
SMBluetoothDiscoverySensor.m