BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Member Functions | Static Public Member Functions | Data Fields
BeeeOn::JablotronGadget::Info Struct Reference

Information about a Jablotron Gadget device type. Gadget types are distinguished by their address. A certain address range denotes a gadget device type. More...

#include <JablotronGadget.h>

Public Member Functions

 operator bool () const
 
bool operator! () const
 
std::string name () const
 
std::vector< SensorValueparse (const JablotronReport &report) const
 Parses the data payload of the given report and converts it into BeeeOn-specific data format.
 

Static Public Member Functions

static Info resolve (const uint32_t address)
 
static uint32_t primaryAddress (const uint32_t address)
 
static uint32_t secondaryAddress (const uint32_t address)
 

Data Fields

const uint32_t firstAddress
 
const uint32_t lastAddress
 
const Type type
 
const RefreshTime refreshTime
 
const std::list< ModuleTypemodules
 

Detailed Description

Information about a Jablotron Gadget device type. Gadget types are distinguished by their address. A certain address range denotes a gadget device type.

Member Function Documentation

uint32_t JablotronGadget::Info::primaryAddress ( const uint32_t  address)
static
Returns
primary address of the gadget which is usually the address itself unless it is an address of RC-86K gadget
JablotronGadget::Info JablotronGadget::Info::resolve ( const uint32_t  address)
static
Returns
gadget info instance based on the given address
uint32_t JablotronGadget::Info::secondaryAddress ( const uint32_t  address)
static
Returns
secondary address of the gadget.
Exceptions
NotFoundExceptionwhen the address is not of type RC-86K

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