HAN-FUN API  1.5.3
This project provides the common implementation of ULE Alliance's HAN-FUN application protocol.
HF::Attributes::Response Struct Reference

This class represents the response sent when a Protocol::Message::GET_ATTR_REQ request. More...

#include <attributes.h>

+ Inheritance diagram for HF::Attributes::Response:
+ Collaboration diagram for HF::Attributes::Response:

Public Member Functions

 Response (IAttribute *_attribute=nullptr)
 Constructor. More...
 
- Public Member Functions inherited from HF::Protocol::Response
uint16_t size () const
 Number bytes needed to serialize the message. More...
 
uint16_t pack (Common::ByteArray &array, uint16_t offset=0) const
 Write the object on to a ByteArray so it can be sent over the network. More...
 
uint16_t unpack (const Common::ByteArray &array, uint16_t offset=0)
 Read a message from a ByteArray. More...
 

Additional Inherited Members

- Static Public Attributes inherited from HF::Protocol::Response
static constexpr uint16_t min_size = sizeof(uint8_t)
 Minimum number of bytes required by this message.
 

Detailed Description

This class represents the response sent when a Protocol::Message::GET_ATTR_REQ request.

Definition at line 772 of file attributes.h.

Constructor & Destructor Documentation

◆ Response()

HF::Attributes::Response::Response ( IAttribute _attribute = nullptr)
inline

Constructor.

Parameters
[in]_attributepointer to the attribute value to send in the response.

Definition at line 782 of file attributes.h.

782  :
783  attribute(_attribute)
784  {}

The documentation for this struct was generated from the following file: