BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Data Structures | Public Types | Public Member Functions
BeeeOn::IQRFJsonResponse Class Reference
Inheritance diagram for BeeeOn::IQRFJsonResponse:
BeeeOn::IQRFJsonRequest BeeeOn::IQRFJsonMessage

Data Structures

struct  DpaErrorEnum
 
struct  RawData
 The structure corresponds to the composition of the field contained within the message data->raw https://apidocs.iqrf.org/iqrf-gateway-daemon/json/#iqrf/iqrfRaw-response-1-0-0.json. More...
 

Public Types

typedef Poco::SharedPtr
< IQRFJsonResponse
Ptr
 
typedef Enum< DpaErrorEnumDpaError
 
- Public Types inherited from BeeeOn::IQRFJsonRequest
typedef Poco::SharedPtr
< IQRFJsonRequest
Ptr
 
- Public Types inherited from BeeeOn::IQRFJsonMessage
typedef Poco::SharedPtr
< IQRFJsonMessage
Ptr
 

Public Member Functions

void setResponse (const std::string &response)
 
std::string response () const
 
void setRawData (const RawData &raw)
 
std::string toString () override
 
DpaError errorCode () const
 
void setErrorCode (const DpaError &errCode)
 
void setStatus (const std::string &statString, int statNum)
 
void setGWIdentification (const std::string &identification)
 
void setRequest (const std::string &request) override
 
std::string request () const override
 
- Public Member Functions inherited from BeeeOn::IQRFJsonMessage
void setMessageID (const std::string &id)
 
std::string messageID () const
 
void setTimeout (const Poco::Timespan &timeout)
 
Poco::Timespan timeout () const
 

Additional Inherited Members

- Static Public Member Functions inherited from BeeeOn::IQRFJsonMessage
static IQRFJsonMessage::Ptr parse (const std::string &data)
 

Member Function Documentation

IQRFJsonResponse::DpaError IQRFJsonResponse::errorCode ( ) const

DPA error from IQRF daemon. Every error code is represented using string that describes DPA error.

void IQRFJsonResponse::setGWIdentification ( const std::string &  identification)
Parameters
identificationIQRF GW daemon instance identification
void IQRFJsonResponse::setRawData ( const RawData raw)
Parameters
rawContent of raw data array inside JSON data object
void IQRFJsonResponse::setRequest ( const std::string &  request)
overridevirtual
Parameters
requestcontains hex values separated by dot.

Reimplemented from BeeeOn::IQRFJsonRequest.

void IQRFJsonResponse::setResponse ( const std::string &  response)
Parameters
responsecontains hex values separated by dot.
void IQRFJsonResponse::setStatus ( const std::string &  statString,
int  statNum 
)
Parameters
stat_stringGW daemon API status in string form
stat_numGW daemon API status
string IQRFJsonResponse::toString ( )
overridevirtual
Returns
Converts all data to one JSON string.

Reimplemented from BeeeOn::IQRFJsonRequest.


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