File Information
Library: IoT/BtLE
Package: BtLE
Header: IoT/BtLE/PeripheralFactory.h
Description
A factory for Peripheral objects.
Given the address of a Bt LE Peripheral device, the createPeripheral() method will create a Peripheral object representing that device.
This service is intended for use by implementations of specific Bt LE devices that provide a high-level interface to the device's features, but need the Peripheral object to communicate with the actual device.
Inheritance
Direct Base Classes: Poco::OSP::Service
All Base Classes: Poco::OSP::Service, Poco::RefCountedObject
Member Summary
Member Functions: createPeripheral, isA, type
Inherited Functions: duplicate, isA, referenceCount, release, type
Types Aliases
Ptr
using Ptr = Poco::AutoPtr < PeripheralFactory >;
Destructor
~PeripheralFactory
virtual ~PeripheralFactory();
Destroys the PeripheralFactory.
Member Functions
createPeripheral
virtual Peripheral::Ptr createPeripheral(
const std::string & address
) = 0;
Creates and returns a Peripheral object for the Peripheral with the given address (e.g., "C4:BE:84:72:C5:06").
isA
bool isA(
const std::type_info & otherType
) const;
See also: Poco::OSP::Service::isA()
type
const std::type_info & type() const;
See also: Poco::OSP::Service::type()
Variables
SERVICE_NAME
static const std::string SERVICE_NAME;
The service name of the PeripheralFactory.