5 #include "iqrf/DPAMessage.h"
22 typedef Poco::SharedPtr<DPAResponse> Ptr;
25 PERIPHERAL_INFO = 0x80,
36 uint8_t errorCode()
const;
38 void setDPAValue(uint8_t dpaValue);
39 uint8_t dpaValue()
const;
50 static DPAResponse::Ptr
fromRaw(
const std::string &data);
56 DPAMessage::NetworkAddress node,
60 const std::vector<uint8_t> &pData,
The class represents DPA message that can be sent/received from IQRF network.
Definition: DPAMessage.h:22
virtual std::string toDPAString() const override
Converts the header items and peripheral data to string that is divided by dots.
Definition: DPAResponse.cpp:123
void setErrorCode(uint8_t errCode)
Definition: DPAResponse.cpp:38
static DPAResponse::Ptr fromRaw(const std::string &data)
Parses given message into general or specific response.
Definition: DPAResponse.cpp:58
Each response contains a header with:
Definition: DPAResponse.h:20