IoT::Devices

class TriggerEventDispatcher

File Information

Library: IoT/Devices
Package: Generated
Header: IoT/Devices/TriggerEventDispatcher.h

Description

The base class for triggers, such as push buttons or motion detectors.

In addition to the methods defined in this interface, a Trigger implementation should expose the following properties:

  • displayState (string, optional): The current state of the trigger, formatted as string for display purposes.

Inheritance

Direct Base Classes: Poco::RemotingNG::EventDispatcher

All Base Classes: Poco::RefCountedObject, Poco::RemotingNG::EventDispatcher

Member Summary

Member Functions: event__stateChanged, event__statusChanged, remoting__typeId

Inherited Functions: accept, attributes, duplicate, protocol, referenceCount, release, removeEventFilter, setEventFilter, setEventFilterImpl, subscribe, transportForSubscriber, unsubscribe

Constructors

TriggerEventDispatcher

TriggerEventDispatcher(
    ITrigger * pInterface,
    const Poco::RemotingNG::Identifiable::ObjectId & objectId,
    const std::string & protocol
);

Destructor

~TriggerEventDispatcher virtual

virtual ~TriggerEventDispatcher();

Destroys the TriggerEventDispatcher.

Member Functions

event__stateChanged

void event__stateChanged(
    const void * pSender,
    const bool & data
);

event__statusChanged

void event__statusChanged(
    const void * pSender,
    const IoT::Devices::DeviceStatusChange & data
);

remoting__typeId virtual inline

virtual const Poco::RemotingNG::Identifiable::TypeId & remoting__typeId() const;

Securely control IoT edge devices from anywhere   Connect a Device