IoT::Devices

class IOEventDispatcher

File Information

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

Description

The interface for general purpose input/output (GPIO) ports.

This class represents a single GPIO pin. Mapping to physical pins is configured when setting up the specific IO implementation class, typically using a configuration file.

Implementations supporting dynamically changing pin directions should expose a string property named "direction" that takes the values "in" and "out".

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

IOEventDispatcher

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

Creates a IOEventDispatcher.

Destructor

~IOEventDispatcher virtual

virtual ~IOEventDispatcher();

Destroys the IOEventDispatcher.

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