IoT::BtLE

class PeripheralBrowserRemoteObject

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

Description

This class provides browsing for available Bluetooth LE devices.

Inheritance

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

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

Member Summary

Member Functions: browse, event__browseComplete, event__peripheralFound, remoting__enableEvents, remoting__enableRemoteEvents, remoting__hasEvents, remoting__typeId, serviceForPeripheral

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

Types Aliases

Ptr

using Ptr = Poco::AutoPtr < PeripheralBrowserRemoteObject >;

Constructors

PeripheralBrowserRemoteObject

PeripheralBrowserRemoteObject(
    const Poco::RemotingNG::Identifiable::ObjectId & oid,
    Poco::SharedPtr < IoT::BtLE::PeripheralBrowser > pServiceObject
);

Destructor

~PeripheralBrowserRemoteObject virtual

virtual ~PeripheralBrowserRemoteObject();

Member Functions

browse virtual inline

virtual void browse(
    int seconds
);

Browses for peripherals, for the given number of seconds.

Any peripherals found will be reported through the peripheralFound event. Scanning for peripherals will be done asynchronously, therefore this method returns immediately.

remoting__enableEvents virtual

virtual std::string remoting__enableEvents(
    Poco::RemotingNG::Listener::Ptr pListener,
    bool enable = bool (true)
);

remoting__enableRemoteEvents virtual

virtual void remoting__enableRemoteEvents(
    const std::string & protocol
);

remoting__hasEvents virtual

virtual bool remoting__hasEvents() const;

remoting__typeId virtual inline

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

serviceForPeripheral virtual inline

virtual std::string serviceForPeripheral(
    const std::string & address
);

Finds or creates and registers with the Service Registry, if necessary, a Peripheral (remote) object for the device with the given address.

Returns the service name of the Peripheral service. The actual service instance can be obtained via the Service Registry.

event__browseComplete protected

void event__browseComplete();

event__peripheralFound protected

void event__peripheralFound(
    const IoT::BtLE::PeripheralInfo & data
);

Securely control IoT edge devices from anywhere   Connect a Device