IoT::Devices

class Accelerometer

File Information

Library: IoT/Devices
Package: Devices
Header: IoT/Devices/Accelerometer.h

Description

The interface for three-axis Accelerometers.

Inheritance

Direct Base Classes: Device

All Base Classes: Device

Member Summary

Member Functions: acceleration

Inherited Functions: getFeature, getPropertyBool, getPropertyDouble, getPropertyInt, getPropertyInt16, getPropertyInt64, getPropertyString, getPropertyTimestamp, hasFeature, hasProperty, setFeature, setPropertyBool, setPropertyDouble, setPropertyInt, setPropertyInt16, setPropertyInt64, setPropertyString, setPropertyTimestamp

Constructors

Accelerometer

Accelerometer();

Creates the Accelerometer.

Destructor

~Accelerometer virtual

~Accelerometer();

Destroys the Accelerometer.

Member Functions

acceleration virtual

virtual Acceleration acceleration() const = 0;

Returns the most recently measured acceleration values.

Variables

accelerationChanged

Poco::BasicEvent < const Acceleration > accelerationChanged;

Fired when new acceleration values are available.

Actual behavior of this event (e.g., minimum interval between fires) are implementation specific and can be configured via properties.

Securely control IoT edge devices from anywhere   Connect a Device