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
);
Creates a PeripheralBrowserRemoteObject.
Destructor
~PeripheralBrowserRemoteObject
virtual ~PeripheralBrowserRemoteObject();
Destroys the PeripheralBrowserRemoteObject.
Member Functions
browse
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.
See also: IoT::BtLE::IPeripheralBrowser::browse()
remoting__enableEvents
virtual std::string remoting__enableEvents(
Poco::RemotingNG::Listener::Ptr pListener,
bool enable = bool (true)
);
remoting__enableRemoteEvents
virtual void remoting__enableRemoteEvents(
const std::string & protocol
);
remoting__hasEvents
virtual bool remoting__hasEvents() const;
remoting__typeId
virtual const Poco::RemotingNG::Identifiable::TypeId & remoting__typeId() const;
serviceForPeripheral
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
void event__browseComplete();
event__peripheralFound
void event__peripheralFound(
const IoT::BtLE::PeripheralInfo & data
);