Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
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 (Span< 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 493 of file AttServerMessage.h.
Constructor & Destructor Documentation
AttReadBlobResponse | ( | Span< const uint8_t > | data_ ) |
Construct a read blob response from the value responded.
Definition at line 497 of file AttServerMessage.h.
Member Function Documentation
const uint8_t* data | ( | ) | const |
Return the pointer to the actual data.
Definition at line 519 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 512 of file AttServerMessage.h.
size_t size | ( | ) | const |
Return the number of octets presents in the response value.
Definition at line 504 of file AttServerMessage.h.
Field Documentation
const AttributeOpcode opcode [inherited] |
Op code used to identify the type of the attribute response.
Definition at line 101 of file AttServerMessage.h.
Generated on Tue Jul 12 2022 13:55:41 by
