STM32F7 Ethernet interface for nucleo STM32F767
AttReadByGroupTypeResponse Struct Reference
The Read By Group Type Response is sent in reply to a received Read By Group Type Request and contains the handles and values of the attributes that have been read. More...
#include <AttServerMessage.h>
Inherits ble::pal::AttServerMessage.
Inherited by SimpleAttReadByGroupTypeResponse.
Data Structures | |
struct | attribute_data_t |
Data read from the grouping attribute. More... | |
Public Member Functions | |
AttReadByGroupTypeResponse () | |
Base constructor, setup the OpCode of the response. | |
virtual | ~AttReadByGroupTypeResponse () |
virtual destructor to overide if the sub class needs it. | |
virtual size_t | size () const =0 |
Return the number of attribute_data_t present in the response. | |
virtual attribute_data_t | operator[] (size_t index) const =0 |
Return the attribute data read at the index specified. | |
Data Fields | |
const AttributeOpcode | opcode |
Op code used to identify the type of the attribute response. |
Detailed Description
The Read By Group Type Response is sent in reply to a received Read By Group Type Request and contains the handles and values of the attributes that have been read.
The response is a list of group range-value pair where:
- group range: The range of the group found where begin is the grouping attribute handle and end is the handle of the end of the group.
- value: The value of the grouping attribute.
This class has to be subclassed by an implementation specific class defining the member function size and the subscript operator.
- Note:
- The value responded can be trucated if it doesn't fit in the response, in that case a Read Blob Request could be used to read the remaining octets.
- see BLUETOOTH SPECIFICATION Version 5.0 | Vol 3, Part F Section 3.4.4.10
Definition at line 584 of file AttServerMessage.h.
Constructor & Destructor Documentation
Base constructor, setup the OpCode of the response.
Definition at line 597 of file AttServerMessage.h.
virtual ~AttReadByGroupTypeResponse | ( | ) | [virtual] |
virtual destructor to overide if the sub class needs it.
Definition at line 604 of file AttServerMessage.h.
Member Function Documentation
virtual attribute_data_t operator[] | ( | size_t | index ) | const [pure virtual] |
Return the attribute data read at the index specified.
- Note:
- Out of range access is undefined.
Implemented in SimpleAttReadByGroupTypeResponse.
virtual size_t size | ( | ) | const [pure virtual] |
Return the number of attribute_data_t present in the response.
Implemented in SimpleAttReadByGroupTypeResponse.
Field Documentation
const AttributeOpcode opcode [inherited] |
Op code used to identify the type of the attribute response.
Definition at line 102 of file AttServerMessage.h.
Generated on Tue Jul 12 2022 14:50:13 by 1.7.2