Parse/encode JSON message holding PrfLed.
More...
#include <JsonSerializer.h>
|
| PrfLedJson (const rapidjson::Value &val) |
| parametric constructor More...
|
|
virtual | ~PrfLedJson () |
|
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...
|
|
template<typename L>
class PrfLedJson< L >
Parse/encode JSON message holding PrfLed.
Class to be passed to parser as creator of PrfLed object from incoming JSON. It will be probably reimplemented. See: https://github.com/iqrfsdk/iqrf-daemon/wiki/JsonStructureDpa-v1#predefined-embedded-perifery-types
◆ PrfLedJson()
parametric constructor
- Parameters
-
◆ ~PrfLedJson()
◆ encodeResponse()
template<typename L >
std::string PrfLedJson< L >::encodeResponse |
( |
const std::string & |
errStr | ) |
|
|
inlineoverride |
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 file: