IoT::Devices

class RotaryEncoder

File Information

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

Description

A rotary encoder with an optional push button, based on the Counter interface.

Inheritance

Direct Base Classes: Counter

All Base Classes: Counter, Device

Member Summary

Member Functions: buttonState

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

Constructors

RotaryEncoder

RotaryEncoder();

Creates the RotaryEncoder.

Destructor

~RotaryEncoder virtual

~RotaryEncoder();

Destroys the RotaryEncoder.

Member Functions

buttonState virtual

virtual bool buttonState() const = 0;

Returns the current state of the button.

Variables

buttonStateChanged

Poco::BasicEvent < const bool > buttonStateChanged;

Fired when the button has been pressed or released.

Securely control IoT edge devices from anywhere   Connect a Device