ESPHome 2026.10.0
Loading...
Searching...
No Matches
esphome::api::BluetoothGATTWriteRequest Class Referencefinal

#include <api_pb2.h>

Inheritance diagram for esphome::api::BluetoothGATTWriteRequest:
esphome::api::ProtoDecodableMessage esphome::api::ProtoMessage

Public Member Functions

const LogString * message_name () const override
 
void decode (const uint8_t *buffer, size_t length)
 
const char * dump_to (DumpBuffer &out) const override
 
- Public Member Functions inherited from esphome::api::ProtoMessage
uint8_t * encode (ProtoWriteBuffer &buffer PROTO_ENCODE_DEBUG_PARAM) const
 
uint32_t calculate_size () const
 

Data Fields

uint64_t address {0}
 
uint32_t handle {0}
 
bool response {false}
 
const uint8_t * data {nullptr}
 
uint16_t data_len {0}
 

Static Public Attributes

static constexpr uint16_t MESSAGE_TYPE = 75
 
static constexpr uint8_t ESTIMATED_SIZE = 29
 

Static Protected Member Functions

static void decode_field (void *self, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
 

Additional Inherited Members

- Public Types inherited from esphome::api::ProtoDecodableMessage
using DecodeFieldFn = void (*)(void *msg, uint32_t tag, const uint8_t *data, proto_varint_value_t scalar)
 Stores one decoded field into msg; generated per message type.
 
- Static Public Member Functions inherited from esphome::api::ProtoDecodableMessage
static void decode_fields (void *msg, const uint8_t *buffer, size_t length, DecodeFieldFn field)
 Walk buffer and hand every field to field.
 
static uint32_t count_repeated_field (const uint8_t *buffer, size_t length, uint32_t target_field_id)
 Count occurrences of a repeated field in a protobuf buffer.
 
- Static Public Member Functions inherited from esphome::api::ProtoMessage
static uint8_t * encode_msg (const void *self, uint8_t *pos PROTO_ENCODE_DEBUG_PARAM)
 
static uint32_t calc_size_msg (const void *self)
 
- Protected Member Functions inherited from esphome::api::ProtoMessage
 ~ProtoMessage ()=default
 

Detailed Description

Definition at line 2596 of file api_pb2.h.

Member Function Documentation

◆ decode()

void esphome::api::BluetoothGATTWriteRequest::decode ( const uint8_t * buffer,
size_t length )
inline

Definition at line 2608 of file api_pb2.h.

◆ decode_field()

void esphome::api::BluetoothGATTWriteRequest::decode_field ( void * self,
uint32_t tag,
const uint8_t * data,
proto_varint_value_t scalar )
staticprotected

Definition at line 2678 of file api_pb2.cpp.

◆ dump_to()

const char * esphome::api::BluetoothGATTWriteRequest::dump_to ( DumpBuffer & out) const
overridevirtual

Implements esphome::api::ProtoMessage.

Definition at line 2242 of file api_pb2_dump.cpp.

◆ message_name()

const LogString * esphome::api::BluetoothGATTWriteRequest::message_name ( ) const
inlineoverridevirtual

Reimplemented from esphome::api::ProtoMessage.

Definition at line 2601 of file api_pb2.h.

Field Documentation

◆ address

uint64_t esphome::api::BluetoothGATTWriteRequest::address {0}

Definition at line 2603 of file api_pb2.h.

◆ data

const uint8_t* esphome::api::BluetoothGATTWriteRequest::data {nullptr}

Definition at line 2606 of file api_pb2.h.

◆ data_len

uint16_t esphome::api::BluetoothGATTWriteRequest::data_len {0}

Definition at line 2607 of file api_pb2.h.

◆ ESTIMATED_SIZE

uint8_t esphome::api::BluetoothGATTWriteRequest::ESTIMATED_SIZE = 29
staticconstexpr

Definition at line 2599 of file api_pb2.h.

◆ handle

uint32_t esphome::api::BluetoothGATTWriteRequest::handle {0}

Definition at line 2604 of file api_pb2.h.

◆ MESSAGE_TYPE

uint16_t esphome::api::BluetoothGATTWriteRequest::MESSAGE_TYPE = 75
staticconstexpr

Definition at line 2598 of file api_pb2.h.

◆ response

bool esphome::api::BluetoothGATTWriteRequest::response {false}

Definition at line 2605 of file api_pb2.h.


The documentation for this class was generated from the following files: