Rtos API example

Embed: (wiki syntax)

« Back to documentation index

AttPrepareWriteResponse Struct Reference

AttPrepareWriteResponse Struct Reference

Response to a Prepare Write Request. More...

#include <AttServerMessage.h>

Inherits ble::pal::AttServerMessage.

Public Member Functions

 AttPrepareWriteResponse (attribute_handle_t handle_, uint16_t offset_, ArrayView< const uint8_t > value_)
 Construct a prepare write response.

Data Fields

const attribute_handle_t attribute_handle
 The handle of the attribute to be written.
const uint16_t offset
 The offset of the first octet to be writen.
const ArrayView< const uint8_t > partial_value
 The value of the attribute to be written at the offset indicated.
const AttributeOpcode opcode
 Op code used to identify the type of the attribute response.

Detailed Description

Response to a Prepare Write Request.

It acknowledges the client that the value has been successfully received and placed in the write queue.

The response contains the same values as the one present in the request.

Note:
see BLUETOOTH SPECIFICATION Version 5.0 | Vol 3, Part F Section 3.4.6.2

Definition at line 643 of file AttServerMessage.h.


Constructor & Destructor Documentation

AttPrepareWriteResponse ( attribute_handle_t  handle_,
uint16_t  offset_,
ArrayView< const uint8_t >  value_ 
)

Construct a prepare write response.

Parameters:
handle_The handle of the attribute to be written.
offset_,:The offset of the first octet to be writen.
value_,:The value of the attribute to be written at the offset indicated.

Definition at line 651 of file AttServerMessage.h.


Field Documentation

The handle of the attribute to be written.

Definition at line 664 of file AttServerMessage.h.

const uint16_t offset

The offset of the first octet to be writen.

Definition at line 669 of file AttServerMessage.h.

const AttributeOpcode opcode [inherited]

Op code used to identify the type of the attribute response.

Definition at line 102 of file AttServerMessage.h.

const ArrayView<const uint8_t> partial_value

The value of the attribute to be written at the offset indicated.

Definition at line 674 of file AttServerMessage.h.