IoT::Devices

template < typename T >

class MinimumDeltaModerationPolicy

File Information

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

Description

This event moderation policy will fire an event whenever the value of an event variable changes more than the given minimum delta since the last time an event was sent.

This moderation policy can only be used with numeric (int, float, etc.) event value types.

Inheritance

Direct Base Classes: EventModerationPolicy < T >

All Base Classes: EventModerationPolicy < T >

Member Summary

Member Functions: getMinimumDelta, operator =, setMinimumDelta, valueChanged

Types

Event

typedef Poco::BasicEvent < const T > Event;

Constructors

MinimumDeltaModerationPolicy inline

MinimumDeltaModerationPolicy(
    const MinimumDeltaModerationPolicy & other
);

MinimumDeltaModerationPolicy inline

MinimumDeltaModerationPolicy(
    Event & event,
    T initialValue,
    T minimumDelta
);

Member Functions

getMinimumDelta inline

T getMinimumDelta() const;

operator = inline

MinimumDeltaModerationPolicy & operator = (
    const MinimumDeltaModerationPolicy & other
);

setMinimumDelta inline

void setMinimumDelta(
    T value
);

valueChanged inline

void valueChanged(
    const T & value
);

Securely control IoT edge devices from anywhere   Connect a Device