libpowermon 1.00
PowerMon Access Library
Loading...
Searching...
No Matches
Powermon::DeviceIdentifier Struct Reference

DeviceIdentifier is a structure containing all information used to identify a PowerMon device (either BLE or WiFi) More...

#include <powermon.h>

Public Member Functions

bool operator== (const DeviceIdentifier &rhs)
 
bool fromURL (const char *url)
 Initializes the current object from a device link.
 
std::string toURL (void)
 Saves the current PowerMon-W access structure to a link. Only remote access WiFi device identifiers can be saved.
 

Public Attributes

std::string name
 Device name.
 
uint64_t serial
 Device serial number.
 
uint8_t hardware_revision_bcd
 Identifies if it's a WiFi or BLE device.
 
uint64_t address
 contains the BLE MAC address for a BLE device of the IP address of a local WiFi device.
 
WifiAccessKey access_key
 Contains the access keys for a remote WiFi device. In this case address is zero.
 

Detailed Description

DeviceIdentifier is a structure containing all information used to identify a PowerMon device (either BLE or WiFi)

Member Function Documentation

◆ fromURL()

bool Powermon::DeviceIdentifier::fromURL ( const char *  url)

Initializes the current object from a device link.

Parameters
urlC string containing a valid PowerMon-W access link
Returns
True if the link was correctly decoded, false otherwise.

◆ toURL()

std::string Powermon::DeviceIdentifier::toURL ( void  )

Saves the current PowerMon-W access structure to a link. Only remote access WiFi device identifiers can be saved.

Returns
String containing the link or a zero length string if the structure is not a valid remote PowerMon-W identifier

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