Parse/encode JSON message holding PrfIoJson.
More...
#include <JsonSerializer.h>
|
| PrfIoJson (const rapidjson::Value &val) |
| parametric constructor More...
|
|
virtual | ~PrfIoJson () |
|
std::string | encodeResponse (const std::string &errStr) override |
| DpaTask overriden method. More...
|
|
int | parseBinary (uint8_t *to, const std::string &from, int maxlen) |
| Parse binary data encoded hexa. More...
|
|
template<typename T > |
void | parseHexaNum (T &to, const std::string &from) |
| Parse templated ordinary type T encoded hexa. More...
|
|
void | encodeHexaNum (std::string &to, uint8_t from) |
| Encode uint_8 to hexa string. More...
|
|
void | encodeHexaNum (std::string &to, uint16_t from) |
| Encode uint_16 to hexa string. More...
|
|
void | encodeBinary (std::string &to, const uint8_t *from, int len) |
| Encode binary data to hexa string. More...
|
|
void | encodeTimestamp (std::string &to, std::chrono::time_point< std::chrono::system_clock > from) |
| Encode timestamp. More...
|
|
Parse/encode JSON message holding PrfIoJson.
Class to be passed to parser as creator of PrfIoJson object from incoming JSON. It will be probably reimplemented. See: https://github.com/iqrfsdk/iqrf-daemon/wiki/JsonStructureDpa-v1#predefined-embedded-perifery-types
◆ PrfIoJson()
PrfIoJson::PrfIoJson |
( |
const rapidjson::Value & |
val | ) |
|
|
explicit |
parametric constructor
- Parameters
-
◆ ~PrfIoJson()
virtual PrfIoJson::~PrfIoJson |
( |
| ) |
|
|
inlinevirtual |
◆ encodeResponse()
std::string PrfIoJson::encodeResponse |
( |
const std::string & |
errStr | ) |
|
|
override |
DpaTask overriden method.
- Parameters
-
[in] | errStr | result of DpaTask handling in IQRF mesh to be stored in message |
- Returns
- encoded message
The documentation for this class was generated from the following files: