IoT::BtLE

class PeripheralFactory

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

virtual ~PeripheralFactory();

Destroys the PeripheralFactory.

Member Functions

createPeripheral virtual

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 virtual

bool isA(
    const std::type_info & otherType
) const;

type virtual

const std::type_info & type() const;

Variables

SERVICE_NAME static

static const std::string SERVICE_NAME;

The service name of the PeripheralFactory.

Securely control IoT edge devices from anywhere   Connect a Device