Rtos API example
AttReadBlobResponse Struct Reference
The Read Blob Response is sent in reply to a received Read Blob Request and contains part of the value of the attribute that has been read. More...
#include <AttServerMessage.h>
Inherits ble::pal::AttServerMessage.
Public Member Functions | |
AttReadBlobResponse (ArrayView< const uint8_t > data_) | |
Construct a read blob response from the value responded. | |
size_t | size () const |
Return the number of octets presents in the response value. | |
uint8_t | operator[] (size_t index) const |
Return the octet of the value read at the specified index. | |
const uint8_t * | data () const |
Return the pointer to the actual data. | |
Data Fields | |
const AttributeOpcode | opcode |
Op code used to identify the type of the attribute response. |
Detailed Description
The Read Blob Response is sent in reply to a received Read Blob Request and contains part of the value of the attribute that has been read.
If the offset requested is equal to the length of the attribute then the response contains no data and the size of the data returned is equal to 0.
If the value of the attribute starting at the offset requested is longer than (mtu - 1) octets then the first (mtu - 1) will be present in the response. The remaining octets will be acquired by another Read Blob Request with an updated index.
- Note:
- see BLUETOOTH SPECIFICATION Version 5.0 | Vol 3, Part F Section 3.4.4.6
Definition at line 494 of file AttServerMessage.h.
Constructor & Destructor Documentation
AttReadBlobResponse | ( | ArrayView< const uint8_t > | data_ ) |
Construct a read blob response from the value responded.
Definition at line 498 of file AttServerMessage.h.
Member Function Documentation
const uint8_t* data | ( | ) | const |
Return the pointer to the actual data.
Definition at line 520 of file AttServerMessage.h.
uint8_t operator[] | ( | size_t | index ) | const |
Return the octet of the value read at the specified index.
- Note:
- Out of range access is undefined.
Definition at line 513 of file AttServerMessage.h.
size_t size | ( | ) | const |
Return the number of octets presents in the response value.
Definition at line 505 of file AttServerMessage.h.
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 Sun Jul 17 2022 08:25:43 by 1.7.2