Rtos API example

Embed: (wiki syntax)

« Back to documentation index

SimpleAttReadByTypeResponse Struct Reference

SimpleAttReadByTypeResponse Struct Reference

Simple implementation of ble::pal::AttReadByTypeResponse. More...

#include <SimpleAttServerMessage.h>

Inherits ble::pal::AttReadByTypeResponse.

Public Member Functions

 SimpleAttReadByTypeResponse (uint8_t element_size, ArrayView< const uint8_t > attribute_data)
 Construct an AttReadByTypeResponse from the size of each attribute handle-value pair and a list of attribute data.
virtual size_t size () const
virtual attribute_data_t operator[] (size_t index) const

Data Fields

const AttributeOpcode opcode
 Op code used to identify the type of the attribute response.

Detailed Description

Simple implementation of ble::pal::AttReadByTypeResponse.

It should fit for any vendor stack exposing a proper ATT interface.

Definition at line 132 of file SimpleAttServerMessage.h.


Constructor & Destructor Documentation

SimpleAttReadByTypeResponse ( uint8_t  element_size,
ArrayView< const uint8_t >  attribute_data 
)

Construct an AttReadByTypeResponse from the size of each attribute handle-value pair and a list of attribute data.

Parameters:
element_sizeThe size of each attribute-handle pair.
attribute_dataRaw bytes array containing the list of attribute data.

Definition at line 140 of file SimpleAttServerMessage.h.


Member Function Documentation

virtual attribute_data_t operator[] ( size_t  index ) const [virtual]
See also:
ble::pal::AttReadByTypeResponse::operator[]

Implements AttReadByTypeResponse.

Definition at line 156 of file SimpleAttServerMessage.h.

virtual size_t size (  ) const [virtual]

Field Documentation

const AttributeOpcode opcode [inherited]

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

Definition at line 102 of file AttServerMessage.h.