DEAAccelerometerService Class Reference

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

Overview

TI SensorTag CoreBluetooth service definition for accelerometer.

Other Methods

  sensorValues

Inherited property of DEABaseService. Keys: @“x”, @“y” and @“z”.

@property (nonatomic, readonly) NSDictionary *sensorValues

Discussion

Inherited property of DEABaseService. Keys: @“x”, @“y” and @“z”.

Declared In

DEAAccelerometerService.h

  x

x value

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

Discussion

x value

Declared In

DEAAccelerometerService.h

  y

y value

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

Discussion

y value

Declared In

DEAAccelerometerService.h

  z

z value

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

Discussion

z value

Declared In

DEAAccelerometerService.h

  period

Period

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

Discussion

Period

Declared In

DEAAccelerometerService.h

– configPeriod:

Configure accelerometer period.

- (void)configPeriod:(uint8_t)value

Parameters

value

unsigned byte value to set period

Discussion

Configure accelerometer period.

Declared In

DEAAccelerometerService.h

– requestReadPeriod

Read accelerometer period.

- (void)requestReadPeriod

Discussion

Read accelerometer period.

Declared In

DEAAccelerometerService.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