IoT::WebEvent

class WebEventNotifierRemoteObject

Library: IoT/WebEvent
Package: Generated
Header: IoT/WebEvent/WebEventNotifierRemoteObject.h

Description

A simplified Remoting-capable interface to the Poco::OSP::WebEvent::WebEventService, usable from both C++ and JavaScript.

Inheritance

Direct Base Classes: IWebEventNotifier, Poco::RemotingNG::RemoteObject

All Base Classes: IWebEventNotifier, Poco::OSP::Service, Poco::RefCountedObject, Poco::RemotingNG::Identifiable, Poco::RemotingNG::RemoteObject

Member Summary

Member Functions: notify, remoting__typeId

Inherited Functions: duplicate, isA, mutex, notify, referenceCount, release, remoting__enableRemoteEvents, remoting__getURI, remoting__hasEvents, remoting__objectId, remoting__setURI, remoting__typeId, type

Types Aliases

Ptr

using Ptr = Poco::AutoPtr < WebEventNotifierRemoteObject >;

Constructors

WebEventNotifierRemoteObject

WebEventNotifierRemoteObject(
    const Poco::RemotingNG::Identifiable::ObjectId & oid,
    Poco::SharedPtr < IoT::WebEvent::WebEventNotifier > pServiceObject
);

Destructor

~WebEventNotifierRemoteObject virtual

virtual ~WebEventNotifierRemoteObject();

Member Functions

notify virtual inline

virtual void notify(
    const std::string & subjectName,
    const std::string & data
);

Notify all registered subscribers to the given subject, using the given data, which is typically a serialized JSON or XML document in UTF-8 encoding.

Sending the notification is done asynchronously. If a notification cannot be delivered to a subscriber due to a network issue, the subscriber will be removed and its WebSocket closed.

remoting__typeId virtual inline

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

Securely control IoT edge devices from anywhere   Connect a Device