BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Types | Public Member Functions | Static Public Attributes
BeeeOn::DPARequest Class Reference

DPA request contains a header: More...

#include <DPARequest.h>

Inheritance diagram for BeeeOn::DPARequest:
BeeeOn::DPAMessage BeeeOn::DPABatchRequest BeeeOn::DPACoordBondedNodesRequest BeeeOn::DPACoordBondNodeRequest BeeeOn::DPACoordClearAllBondsRequest BeeeOn::DPACoordDiscoveryRequest BeeeOn::DPACoordRemoveNodeRequest BeeeOn::DPANodeRemoveBondRequest BeeeOn::DPAOSPeripheralInfoRequest BeeeOn::DPAOSRestartRequest

Public Types

typedef Poco::SharedPtr
< DPARequest
Ptr
 
- Public Types inherited from BeeeOn::DPAMessage
typedef Poco::SharedPtr
< DPAMessage
Ptr
 
typedef uint16_t NetworkAddress
 

Public Member Functions

 DPARequest (NetworkAddress node, uint8_t pNumber, uint8_t pCommand)
 Request with default HWPID and empty peripheral data.
 
 DPARequest (NetworkAddress node, uint8_t pNumber, uint8_t pCommand, uint16_t hwPID, const std::vector< uint8_t > &peripheralData)
 
std::string toDPAString () const override
 Converts vector of values to dpa string. Dpa string contains hex values separated by dot. More...
 
size_t size () const
 Number of bytes in request.
 
- Public Member Functions inherited from BeeeOn::DPAMessage
void setNetworkAddress (NetworkAddress node)
 Network device address. More...
 
NetworkAddress networkAddress () const
 
void setPeripheralNumber (uint8_t pNumber)
 Peripheral number: More...
 
uint8_t peripheralNumber () const
 
void setPeripheralCommand (uint8_t pCommand)
 Command specifying an action to be taken. Actually allowed value range depends on the peripheral type. The most significant bit is reserved for indication of DPA response message. More...
 
uint8_t peripheralCommand () const
 
void setHWPID (uint16_t hwPID)
 HW profile ID uniquely specifies the functionality of the device, the user peripherals it implements, its behavior etc. The only device having the same HWPID as the DPA request will execute the request. When 0xFFFF is specified then the device with any HW profile ID will execute the request. Note - HWPID numbers used throughout this document are fictitious ones. More...
 
uint16_t HWPID () const
 
void setPeripheralData (const std::vector< uint8_t > &data)
 An array of bytes. More...
 
std::vector< uint8_t > peripheralData () const
 

Static Public Attributes

static const uint8_t DPA_COORD_PNUM = 0x00
 
static const uint8_t DPA_NODE_PNUM = 0x01
 
static const uint8_t DPA_OS_PNUM = 0x02
 
- Static Public Attributes inherited from BeeeOn::DPAMessage
static uint16_t COORDINATOR_NODE_ADDRESS = 0x0000
 
static uint16_t DEFAULT_HWPID = 0xffff
 

Additional Inherited Members

- Protected Member Functions inherited from BeeeOn::DPAMessage
 DPAMessage (NetworkAddress node, uint8_t pNumber, uint8_t pCommand, uint16_t hwPID, const std::vector< uint8_t > &pData)
 Creates message with DPA content that includes address of node, number of peripheral, command for peripheral and hw PID.
 

Detailed Description

DPA request contains a header:

Member Function Documentation

std::string BeeeOn::DPARequest::toDPAString ( ) const
overridevirtual

Converts vector of values to dpa string. Dpa string contains hex values separated by dot.

Example: 01.00.06.83.ff.ff

Implements BeeeOn::DPAMessage.

Reimplemented in BeeeOn::DPABatchRequest.


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