IoT::Devices

class TriggerServerHelper

File Information

Library: IoT/Devices
Package: Generated
Header: IoT/Devices/TriggerServerHelper.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.

Member Summary

Member Functions: createRemoteObject, registerObject, registerRemoteObject, shutdown, unregisterObject

Types Aliases

Service

using Service = IoT::Devices::Trigger;

Constructors

TriggerServerHelper

TriggerServerHelper();

Creates a TriggerServerHelper.

Destructor

~TriggerServerHelper

~TriggerServerHelper();

Destroys the TriggerServerHelper.

Member Functions

createRemoteObject static inline

static Poco::AutoPtr < IoT::Devices::TriggerRemoteObject > createRemoteObject(
    Poco::SharedPtr < IoT::Devices::Trigger > pServiceObject,
    const Poco::RemotingNG::Identifiable::ObjectId & oid
);

Creates and returns a RemoteObject wrapper for the given IoT::Devices::Trigger instance.

registerObject static inline

static std::string registerObject(
    Poco::SharedPtr < IoT::Devices::Trigger > pServiceObject,
    const Poco::RemotingNG::Identifiable::ObjectId & oid,
    const std::string & listenerId
);

Creates a RemoteObject wrapper for the given IoT::Devices::Trigger instance and registers it with the ORB and the Listener instance uniquely identified by the Listener's ID.

Returns the URI created for the object.

registerRemoteObject static inline

static std::string registerRemoteObject(
    Poco::AutoPtr < IoT::Devices::TriggerRemoteObject > pRemoteObject,
    const std::string & listenerId
);

Registers the given RemoteObject with the ORB and the Listener instance uniquely identified by the Listener's ID.

Returns the URI created for the object.

shutdown static

static void shutdown();

Removes the Skeleton for IoT::Devices::Trigger from the ORB.

unregisterObject static inline

static void unregisterObject(
    const std::string & uri
);

Unregisters a service object identified by URI from the ORB.

Securely control IoT edge devices from anywhere   Connect a Device