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();
Creates a PeripheralManagerServerHelper.
Destructor
~PeripheralManagerServerHelper
~PeripheralManagerServerHelper();
Destroys the PeripheralManagerServerHelper.
Member Functions
createRemoteObject
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 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 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 void shutdown();
Removes the Skeleton for IoT::BtLE::PeripheralManager from the ORB.
unregisterObject
static void unregisterObject(
const std::string & uri
);
Unregisters a service object identified by URI from the ORB.