DEAMagnetometerService Class Reference

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

Overview

TI SensorTag CoreBluetooth service definition for magnetometer.

Other Methods

  sensorValues

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

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

Discussion

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

Declared In

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