DEASensorTag Class Reference
Inherits from | YMSCBPeripheral : NSObject |
---|---|
Declared in | DEASensorTag.h DEASensorTag.m |
Overview
TI SensorTag Peripheral Class.
This class maps to an instance of a CBPeripheral associated with a found TI SensorTag.
Other Methods
accelerometer
Convenience pointer to accelerometer service.
@property (nonatomic, readonly) DEAAccelerometerService *accelerometer
Discussion
Convenience pointer to accelerometer service.
Declared In
DEASensorTag.h
barometer
Convenience pointer to barometer service.
@property (nonatomic, readonly) DEABarometerService *barometer
Discussion
Convenience pointer to barometer service.
Declared In
DEASensorTag.h
devinfo
Convenience pointer to device information service.
@property (nonatomic, readonly) DEADeviceInfoService *devinfo
Discussion
Convenience pointer to device information service.
Declared In
DEASensorTag.h
gyroscope
Convenience pointer to gyroscope service.
@property (nonatomic, readonly) DEAGyroscopeService *gyroscope
Discussion
Convenience pointer to gyroscope service.
Declared In
DEASensorTag.h
humidity
Convenience pointer to humidity service.
@property (nonatomic, readonly) DEAHumidityService *humidity
Discussion
Convenience pointer to humidity service.
Declared In
DEASensorTag.h
magnetometer
Convenience pointer to magnetometer service.
@property (nonatomic, readonly) DEAMagnetometerService *magnetometer
Discussion
Convenience pointer to magnetometer service.
Declared In
DEASensorTag.h
simplekeys
Convenience pointer to simple keys service.
@property (nonatomic, readonly) DEASimpleKeysService *simplekeys
Discussion
Convenience pointer to simple keys service.
Declared In
DEASensorTag.h
temperature
Convenience pointer to temperature service.
@property (nonatomic, readonly) DEATemperatureService *temperature
Discussion
Convenience pointer to temperature service.
Declared In
DEASensorTag.h
Other Methods
– initWithPeripheral:central:baseHi:baseLo:
Constructor.
- (instancetype)initWithPeripheral:(CBPeripheral *)peripheral central:(YMSCBCentralManager *)owner baseHi:(int64_t)hi baseLo:(int64_t)lo
Parameters
peripheral |
Pointer to CBPeripheral |
---|---|
owner |
Pointer to YMSCBCentralManager |
hi |
Top 64 bits of 128-bit base address value |
lo |
Bottom 64 bits of 128-bit base address value |
Return Value
instance of this class
Discussion
Constructor.
This method must be called via super in any subclass implementation.
The implementation of this method in a subclass will populate serviceDict with (key
, value
) pairs of
(NSString, YMSCBService) instances, where key
is typically a “human-readable” string to easily
reference a YMSCBService.
Declared In
YMSCBPeripheral.h
– connect
Connect peripheral
- (void)connect
Discussion
Connect peripheral
Declared In
YMSCBPeripheral.h