libpowermon 1.00
PowerMon Access Library
Loading...
Searching...
No Matches
PowermonScanner Class Referenceabstract

PowermonScanner offers support for scanning for PowerMon advertisments. Both BLE and WiFi PowerMon devices are supported. More...

#include <powermon_scanner.h>

Classes

struct  Advertisment
 Advertisment is a structure representing an advertisment packet received from the PowerMon device. More...
 

Public Member Functions

virtual void setCallback (const std::function< void(const Advertisment &)> &cb)=0
 Sets the callback to be called by the Powermon scanner when a new advertisment has been received.
 
virtual void startWifiScan (void)=0
 Starts scanning for WiFi device advertisments.
 
virtual void stopWifiScan (void)=0
 Stops scanning for WiFi device advertisments.
 
virtual void startBleScan (void)=0
 
virtual void stopBleScan (void)=0
 

Static Public Member Functions

static PowermonScannercreateInstance (void)
 Creates an instance of the PowermonScanner class.
 

Detailed Description

PowermonScanner offers support for scanning for PowerMon advertisments. Both BLE and WiFi PowerMon devices are supported.

Member Function Documentation

◆ createInstance()

static PowermonScanner * PowermonScanner::createInstance ( void  )
static

Creates an instance of the PowermonScanner class.

Returns
Pointer to the newly created PowermonScanner object. Must be freed using delete().

◆ setCallback()

virtual void PowermonScanner::setCallback ( const std::function< void(const Advertisment &)> &  cb)
pure virtual

Sets the callback to be called by the Powermon scanner when a new advertisment has been received.

Parameters
cbLambda of type void(const Advertisment&)

◆ startBleScan()

virtual void PowermonScanner::startBleScan ( void  )
pure virtual

Starts scanning for BLE device advertisments

◆ stopBleScan()

virtual void PowermonScanner::stopBleScan ( void  )
pure virtual

Stops scanning for BLE device advertisments


The documentation for this class was generated from the following file: