Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

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, Span< 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 Span< 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 744 of file AttServerMessage.h.


Constructor & Destructor Documentation

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

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

Definition at line 749 of file AttServerMessage.h.


Field Documentation

Handle of the attribute.

Definition at line 758 of file AttServerMessage.h.

const Span<const uint8_t> attribute_value

The current value of the attribute.

Definition at line 763 of file AttServerMessage.h.

const AttributeOpcode opcode [inherited]

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

Definition at line 101 of file AttServerMessage.h.