#include <proto.h>
Definition at line 346 of file proto.h.
◆ create_buffer()
virtual ProtoWriteBuffer esphome::api::ProtoService::create_buffer |
( |
uint32_t | reserve_size | ) |
|
|
protectedpure virtual |
Create a buffer with a reserved size.
- Parameters
-
reserve_size | The number of bytes to pre-allocate in the buffer. This is a hint to optimize memory usage and avoid reallocations during encoding. Implementations should aim to allocate at least this size. |
- Returns
- A ProtoWriteBuffer object with the reserved size.
Implemented in esphome::api::APIConnection.
◆ is_authenticated()
virtual bool esphome::api::ProtoService::is_authenticated |
( |
| ) |
|
|
protectedpure virtual |
◆ is_connection_setup()
virtual bool esphome::api::ProtoService::is_connection_setup |
( |
| ) |
|
|
protectedpure virtual |
◆ on_fatal_error()
virtual void esphome::api::ProtoService::on_fatal_error |
( |
| ) |
|
|
protectedpure virtual |
◆ on_no_setup_connection()
virtual void esphome::api::ProtoService::on_no_setup_connection |
( |
| ) |
|
|
protectedpure virtual |
◆ on_unauthenticated_access()
virtual void esphome::api::ProtoService::on_unauthenticated_access |
( |
| ) |
|
|
protectedpure virtual |
◆ read_message()
virtual bool esphome::api::ProtoService::read_message |
( |
uint32_t | msg_size, |
|
|
uint32_t | msg_type, |
|
|
uint8_t * | msg_data ) |
|
protectedpure virtual |
◆ send_buffer()
virtual bool esphome::api::ProtoService::send_buffer |
( |
ProtoWriteBuffer | buffer, |
|
|
uint32_t | message_type ) |
|
protectedpure virtual |
◆ send_message_()
template<class C >
bool esphome::api::ProtoService::send_message_ |
( |
const C & | msg, |
|
|
uint32_t | message_type ) |
|
inlineprotected |
The documentation for this class was generated from the following file: