Rtos API example

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, ArrayView< 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 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

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 708 of file AttServerMessage.h.


Constructor & Destructor Documentation

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

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

Definition at line 713 of file AttServerMessage.h.


Field Documentation

Handle of the attribute.

Definition at line 724 of file AttServerMessage.h.

const ArrayView<const uint8_t> attribute_value

The current value of the attribute.

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