Inherits from LEService : NSObject
Declared in LETiltSensor.h

Overview

This service provides readings from a tilt sensor.

Add a instance of a LETiltSensorDelegate using addDelegate: to be notified when a service receives an updated value.

Tasks

Properties

angle

The most recent angle reading from the sensor. The angle represents the angle the sensor is tilted in the x, y and zdirection.

@property (nonatomic, readonly) LETiltSensorAngle angle

Discussion

The most recent angle reading from the sensor. The angle represents the angle the sensor is tilted in the x, y and zdirection.

If no angle reading has been received, of if the sensor is not in mode LETiltSensorModeAngle the value of this property will be LETiltSensorAngleZero

Declared In

LETiltSensor.h

crash

The most recent crash reading from the sensor. The value represents the number of times the sensor has been ‘bumped’ in the x, y, and z-direction. The value can be reset by sending the [LEService sendResetStateRequest].

@property (nonatomic, readonly) LETiltSensorCrash crash

Discussion

The most recent crash reading from the sensor. The value represents the number of times the sensor has been ‘bumped’ in the x, y, and z-direction. The value can be reset by sending the [LEService sendResetStateRequest].

If no angle reading has been received, of if the sensor is not in mode LETiltSensorModeCrash the value of this property will be LETiltSensorCrashZero

Declared In

LETiltSensor.h

direction

The most recent direction reading from the sensor.

@property (nonatomic, readonly) LETiltSensorDirection direction

Discussion

The most recent direction reading from the sensor.

If no direction reading has been received, of if the sensor is not in mode LETiltSensorModeTilt the value of this property will be LETiltSensorDirectionUnknown.

Declared In

LETiltSensor.h

tiltSensorMode

The current mode of the tilt sensor

@property (nonatomic, readwrite) LETiltSensorMode tiltSensorMode

Discussion

The current mode of the tilt sensor

Declared In

LETiltSensor.h