DEABarometerService Class Reference

Inherits from DEABaseService : YMSCBService : NSObject
Declared in DEABarometerService.h
DEABarometerService.m

Overview

TI SensorTag CoreBluetooth service definition for barometer.

Other Methods

  sensorValues

Inherited property of DEABaseService. Keys: @“pressure”, @“ambientTemp”.

@property (nonatomic, strong, readonly) NSDictionary *sensorValues

Discussion

Inherited property of DEABaseService. Keys: @“pressure”, @“ambientTemp”.

Declared In

DEABarometerService.h

  pressure

Pressure measurement

@property (nonatomic, strong, readonly) NSNumber *pressure

Discussion

Pressure measurement

Declared In

DEABarometerService.h

  ambientTemp

Ambient temperature measurement

@property (nonatomic, strong, readonly) NSNumber *ambientTemp

Discussion

Ambient temperature measurement

Declared In

DEABarometerService.h

– requestCalibration

Request calibration of barometer.

- (void)requestCalibration

Discussion

Request calibration of barometer.

Declared In

DEABarometerService.h

Other Methods

– initWithName:parent:baseHi:baseLo:serviceOffset:

Initialize class instance.

- (instancetype)initWithName:(NSString *)oName parent:(YMSCBPeripheral *)pObj baseHi:(int64_t)hi baseLo:(int64_t)lo serviceOffset:(int)serviceOffset

Parameters

oName

name of service

pObj

parent object which owns this service

hi

top 64 bits of 128-bit base address value

lo

bottom 64 bits of 128-bit base address value

serviceOffset

offset address of service

Return Value

YMSCBCharacteristic

Discussion

Initialize class instance.

Declared In

YMSCBService.h

– notifyCharacteristicHandler:error:

Method to handle response update for a prior read or write request to a characteristic.

- (void)notifyCharacteristicHandler:(YMSCBCharacteristic *)yc error:(NSError *)error

Parameters

yc

Characteristic receiving update.

error

Error object.

Discussion

Method to handle response update for a prior read or write request to a characteristic.

This method is invoked by the CBPeripheralDelegate method peripheral:didUpdateValueForCharacteristic:error: conformed to by YMSCBPeripheral.

This method is typically overridden to handle characteristics whose notification has been turned on.

Declared In

YMSCBService.h

Extension Methods

  c1

Calibration point

@property (nonatomic, assign) uint16_t c1

Discussion

Calibration point

Declared In

DEABarometerService.m

  c2

Calibration point

@property (nonatomic, assign) uint16_t c2

Discussion

Calibration point

Declared In

DEABarometerService.m

  c3

Calibration point

@property (nonatomic, assign) uint16_t c3

Discussion

Calibration point

Declared In

DEABarometerService.m

  c4

Calibration point

@property (nonatomic, assign) uint16_t c4

Discussion

Calibration point

Declared In

DEABarometerService.m

  c5

Calibration point

@property (nonatomic, assign) int16_t c5

Discussion

Calibration point

Declared In

DEABarometerService.m

  c6

Calibration point

@property (nonatomic, assign) int16_t c6

Discussion

Calibration point

Declared In

DEABarometerService.m

  c7

Calibration point

@property (nonatomic, assign) int16_t c7

Discussion

Calibration point

Declared In

DEABarometerService.m

  c8

Calibration point

@property (nonatomic, assign) int16_t c8

Discussion

Calibration point

Declared In

DEABarometerService.m