IoT::BtLE

class PeripheralManagerServerHelper

File Information

Library: IoT/BtLE
Package: Generated
Header: IoT/BtLE/PeripheralManagerServerHelper.h

Description

This class manages Peripheral objects in the service registry.

Given the address of a Bt LE Peripheral device, the findPeripheral() method will return an existing Peripheral object representing that device if it already exists, or otherwise create a new Peripheral object using the PeripheralFactory.

Once a Peripheral is no longer needed, it can be disposed by calling remove().

Member Summary

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

Types Aliases

Service

using Service = IoT::BtLE::PeripheralManager;

Constructors

PeripheralManagerServerHelper

PeripheralManagerServerHelper();

Destructor

~PeripheralManagerServerHelper

~PeripheralManagerServerHelper();

Member Functions

createRemoteObject static inline

static Poco::AutoPtr < IoT::BtLE::PeripheralManagerRemoteObject > createRemoteObject(
    Poco::SharedPtr < IoT::BtLE::PeripheralManager > pServiceObject,
    const Poco::RemotingNG::Identifiable::ObjectId & oid
);

Creates and returns a RemoteObject wrapper for the given IoT::BtLE::PeripheralManager instance.

registerObject static inline

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

Creates a RemoteObject wrapper for the given IoT::BtLE::PeripheralManager 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::BtLE::PeripheralManagerRemoteObject > 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::BtLE::PeripheralManager 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