Rtos API example

Embed: (wiki syntax)

« Back to documentation index

AttHandleValueIndication Struct Reference

AttHandleValueIndication Struct Reference

Indication of an attribute's value sent by the server. More...

#include <AttServerMessage.h>

Inherits ble::pal::AttServerMessage.

Public Member Functions

 AttHandleValueIndication (attribute_handle_t handle, ArrayView< const uint8_t > value)
 Construct an Handle Value Indication from the attribute handle and its value indicated.

Data Fields

const attribute_handle_t attribute_handle
 Handle of the attribute.
const ArrayView< const uint8_t > attribute_value
 The current value of the attribute.
const AttributeOpcode opcode
 Op code used to identify the type of the attribute response.

Detailed Description

Indication of an attribute's value sent by the server.

It contains the handle of the attribute and its value. The client should respond with and handle value confirmation.

If the attribute value is longer than (mtu - 3) then the value is truncated to (mtu - 3) octets to fit in the response and the client will have to use a read blob request to read the remaining octets of the attribute.

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

Definition at line 745 of file AttServerMessage.h.


Constructor & Destructor Documentation

AttHandleValueIndication ( attribute_handle_t  handle,
ArrayView< const uint8_t >  value 
)

Construct an Handle Value Indication from the attribute handle and its value indicated.

Definition at line 750 of file AttServerMessage.h.


Field Documentation

Handle of the attribute.

Definition at line 759 of file AttServerMessage.h.

const ArrayView<const uint8_t> attribute_value

The current value of the attribute.

Definition at line 764 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.