Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

AttHandleValueNotification Struct Reference

AttHandleValueNotification Struct Reference

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

#include <AttServerMessage.h>

Inherits ble::pal::AttServerMessage.

Public Member Functions

 AttHandleValueNotification (attribute_handle_t attribute_handle, Span< const uint8_t > attribute_value)
 Construct an Handle Value Notification from the attribute handle and its value notified.

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

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

It contains the handle of the attribute and its value.

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.1

Definition at line 707 of file AttServerMessage.h.


Constructor & Destructor Documentation

AttHandleValueNotification ( attribute_handle_t  attribute_handle,
Span< const uint8_t >  attribute_value 
)

Construct an Handle Value Notification from the attribute handle and its value notified.

Definition at line 712 of file AttServerMessage.h.


Field Documentation

Handle of the attribute.

Definition at line 723 of file AttServerMessage.h.

const Span<const uint8_t> attribute_value

The current value of the attribute.

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