ESPHome  2022.9.1
Public Member Functions | Protected Member Functions
esphome::api::APIServerConnectionBase Class Reference

#include <api_pb2_service.h>

Inheritance diagram for esphome::api::APIServerConnectionBase:
esphome::api::ProtoService esphome::api::APIServerConnection esphome::api::APIConnection

Public Member Functions

virtual void on_hello_request (const HelloRequest &value)
 
bool send_hello_response (const HelloResponse &msg)
 
virtual void on_connect_request (const ConnectRequest &value)
 
bool send_connect_response (const ConnectResponse &msg)
 
bool send_disconnect_request (const DisconnectRequest &msg)
 
virtual void on_disconnect_request (const DisconnectRequest &value)
 
bool send_disconnect_response (const DisconnectResponse &msg)
 
virtual void on_disconnect_response (const DisconnectResponse &value)
 
bool send_ping_request (const PingRequest &msg)
 
virtual void on_ping_request (const PingRequest &value)
 
bool send_ping_response (const PingResponse &msg)
 
virtual void on_ping_response (const PingResponse &value)
 
virtual void on_device_info_request (const DeviceInfoRequest &value)
 
bool send_device_info_response (const DeviceInfoResponse &msg)
 
virtual void on_list_entities_request (const ListEntitiesRequest &value)
 
bool send_list_entities_done_response (const ListEntitiesDoneResponse &msg)
 
virtual void on_subscribe_states_request (const SubscribeStatesRequest &value)
 
bool send_list_entities_binary_sensor_response (const ListEntitiesBinarySensorResponse &msg)
 
bool send_binary_sensor_state_response (const BinarySensorStateResponse &msg)
 
bool send_list_entities_cover_response (const ListEntitiesCoverResponse &msg)
 
bool send_cover_state_response (const CoverStateResponse &msg)
 
virtual void on_cover_command_request (const CoverCommandRequest &value)
 
bool send_list_entities_fan_response (const ListEntitiesFanResponse &msg)
 
bool send_fan_state_response (const FanStateResponse &msg)
 
virtual void on_fan_command_request (const FanCommandRequest &value)
 
bool send_list_entities_light_response (const ListEntitiesLightResponse &msg)
 
bool send_light_state_response (const LightStateResponse &msg)
 
virtual void on_light_command_request (const LightCommandRequest &value)
 
bool send_list_entities_sensor_response (const ListEntitiesSensorResponse &msg)
 
bool send_sensor_state_response (const SensorStateResponse &msg)
 
bool send_list_entities_switch_response (const ListEntitiesSwitchResponse &msg)
 
bool send_switch_state_response (const SwitchStateResponse &msg)
 
virtual void on_switch_command_request (const SwitchCommandRequest &value)
 
bool send_list_entities_text_sensor_response (const ListEntitiesTextSensorResponse &msg)
 
bool send_text_sensor_state_response (const TextSensorStateResponse &msg)
 
virtual void on_subscribe_logs_request (const SubscribeLogsRequest &value)
 
bool send_subscribe_logs_response (const SubscribeLogsResponse &msg)
 
virtual void on_subscribe_homeassistant_services_request (const SubscribeHomeassistantServicesRequest &value)
 
bool send_homeassistant_service_response (const HomeassistantServiceResponse &msg)
 
virtual void on_subscribe_home_assistant_states_request (const SubscribeHomeAssistantStatesRequest &value)
 
bool send_subscribe_home_assistant_state_response (const SubscribeHomeAssistantStateResponse &msg)
 
virtual void on_home_assistant_state_response (const HomeAssistantStateResponse &value)
 
bool send_get_time_request (const GetTimeRequest &msg)
 
virtual void on_get_time_request (const GetTimeRequest &value)
 
bool send_get_time_response (const GetTimeResponse &msg)
 
virtual void on_get_time_response (const GetTimeResponse &value)
 
bool send_list_entities_services_response (const ListEntitiesServicesResponse &msg)
 
virtual void on_execute_service_request (const ExecuteServiceRequest &value)
 
bool send_list_entities_camera_response (const ListEntitiesCameraResponse &msg)
 
bool send_camera_image_response (const CameraImageResponse &msg)
 
virtual void on_camera_image_request (const CameraImageRequest &value)
 
bool send_list_entities_climate_response (const ListEntitiesClimateResponse &msg)
 
bool send_climate_state_response (const ClimateStateResponse &msg)
 
virtual void on_climate_command_request (const ClimateCommandRequest &value)
 
bool send_list_entities_number_response (const ListEntitiesNumberResponse &msg)
 
bool send_number_state_response (const NumberStateResponse &msg)
 
virtual void on_number_command_request (const NumberCommandRequest &value)
 
bool send_list_entities_select_response (const ListEntitiesSelectResponse &msg)
 
bool send_select_state_response (const SelectStateResponse &msg)
 
virtual void on_select_command_request (const SelectCommandRequest &value)
 
bool send_list_entities_lock_response (const ListEntitiesLockResponse &msg)
 
bool send_lock_state_response (const LockStateResponse &msg)
 
virtual void on_lock_command_request (const LockCommandRequest &value)
 
bool send_list_entities_button_response (const ListEntitiesButtonResponse &msg)
 
virtual void on_button_command_request (const ButtonCommandRequest &value)
 
bool send_list_entities_media_player_response (const ListEntitiesMediaPlayerResponse &msg)
 
bool send_media_player_state_response (const MediaPlayerStateResponse &msg)
 
virtual void on_media_player_command_request (const MediaPlayerCommandRequest &value)
 
virtual void on_subscribe_bluetooth_le_advertisements_request (const SubscribeBluetoothLEAdvertisementsRequest &value)
 
bool send_bluetooth_le_advertisement_response (const BluetoothLEAdvertisementResponse &msg)
 

Protected Member Functions

bool read_message (uint32_t msg_size, uint32_t msg_type, uint8_t *msg_data) override
 
- Protected Member Functions inherited from esphome::api::ProtoService
virtual bool is_authenticated ()=0
 
virtual bool is_connection_setup ()=0
 
virtual void on_fatal_error ()=0
 
virtual void on_unauthenticated_access ()=0
 
virtual void on_no_setup_connection ()=0
 
virtual ProtoWriteBuffer create_buffer ()=0
 
virtual bool send_buffer (ProtoWriteBuffer buffer, uint32_t message_type)=0
 
template<class C >
bool send_message_ (const C &msg, uint32_t message_type)
 

Detailed Description

Definition at line 11 of file api_pb2_service.h.

Member Function Documentation

◆ on_button_command_request()

virtual void esphome::api::APIServerConnectionBase::on_button_command_request ( const ButtonCommandRequest value)
inlinevirtual

Reimplemented in esphome::api::APIServerConnection.

Definition at line 146 of file api_pb2_service.h.

◆ on_camera_image_request()

virtual void esphome::api::APIServerConnectionBase::on_camera_image_request ( const CameraImageRequest value)
inlinevirtual

Reimplemented in esphome::api::APIServerConnection.

Definition at line 104 of file api_pb2_service.h.

◆ on_climate_command_request()

virtual void esphome::api::APIServerConnectionBase::on_climate_command_request ( const ClimateCommandRequest value)
inlinevirtual

Reimplemented in esphome::api::APIServerConnection.

Definition at line 113 of file api_pb2_service.h.

◆ on_connect_request()

virtual void esphome::api::APIServerConnectionBase::on_connect_request ( const ConnectRequest value)
inlinevirtual

Reimplemented in esphome::api::APIServerConnection.

Definition at line 15 of file api_pb2_service.h.

◆ on_cover_command_request()

virtual void esphome::api::APIServerConnectionBase::on_cover_command_request ( const CoverCommandRequest value)
inlinevirtual

Reimplemented in esphome::api::APIServerConnection.

Definition at line 43 of file api_pb2_service.h.

◆ on_device_info_request()

virtual void esphome::api::APIServerConnectionBase::on_device_info_request ( const DeviceInfoRequest value)
inlinevirtual

Reimplemented in esphome::api::APIServerConnection.

Definition at line 25 of file api_pb2_service.h.

◆ on_disconnect_request()

virtual void esphome::api::APIServerConnectionBase::on_disconnect_request ( const DisconnectRequest value)
inlinevirtual

Reimplemented in esphome::api::APIServerConnection.

Definition at line 18 of file api_pb2_service.h.

◆ on_disconnect_response()

virtual void esphome::api::APIServerConnectionBase::on_disconnect_response ( const DisconnectResponse value)
inlinevirtual

Reimplemented in esphome::api::APIConnection.

Definition at line 20 of file api_pb2_service.h.

◆ on_execute_service_request()

virtual void esphome::api::APIServerConnectionBase::on_execute_service_request ( const ExecuteServiceRequest value)
inlinevirtual

Reimplemented in esphome::api::APIServerConnection.

Definition at line 96 of file api_pb2_service.h.

◆ on_fan_command_request()

virtual void esphome::api::APIServerConnectionBase::on_fan_command_request ( const FanCommandRequest value)
inlinevirtual

Reimplemented in esphome::api::APIServerConnection.

Definition at line 52 of file api_pb2_service.h.

◆ on_get_time_request()

virtual void esphome::api::APIServerConnectionBase::on_get_time_request ( const GetTimeRequest value)
inlinevirtual

Reimplemented in esphome::api::APIServerConnection.

Definition at line 92 of file api_pb2_service.h.

◆ on_get_time_response()

virtual void esphome::api::APIServerConnectionBase::on_get_time_response ( const GetTimeResponse value)
inlinevirtual

Reimplemented in esphome::api::APIConnection.

Definition at line 94 of file api_pb2_service.h.

◆ on_hello_request()

virtual void esphome::api::APIServerConnectionBase::on_hello_request ( const HelloRequest value)
inlinevirtual

Reimplemented in esphome::api::APIServerConnection.

Definition at line 13 of file api_pb2_service.h.

◆ on_home_assistant_state_response()

virtual void esphome::api::APIServerConnectionBase::on_home_assistant_state_response ( const HomeAssistantStateResponse value)
inlinevirtual

Reimplemented in esphome::api::APIConnection.

Definition at line 90 of file api_pb2_service.h.

◆ on_light_command_request()

virtual void esphome::api::APIServerConnectionBase::on_light_command_request ( const LightCommandRequest value)
inlinevirtual

Reimplemented in esphome::api::APIServerConnection.

Definition at line 61 of file api_pb2_service.h.

◆ on_list_entities_request()

virtual void esphome::api::APIServerConnectionBase::on_list_entities_request ( const ListEntitiesRequest value)
inlinevirtual

Reimplemented in esphome::api::APIServerConnection.

Definition at line 27 of file api_pb2_service.h.

◆ on_lock_command_request()

virtual void esphome::api::APIServerConnectionBase::on_lock_command_request ( const LockCommandRequest value)
inlinevirtual

Reimplemented in esphome::api::APIServerConnection.

Definition at line 140 of file api_pb2_service.h.

◆ on_media_player_command_request()

virtual void esphome::api::APIServerConnectionBase::on_media_player_command_request ( const MediaPlayerCommandRequest value)
inlinevirtual

Reimplemented in esphome::api::APIServerConnection.

Definition at line 155 of file api_pb2_service.h.

◆ on_number_command_request()

virtual void esphome::api::APIServerConnectionBase::on_number_command_request ( const NumberCommandRequest value)
inlinevirtual

Reimplemented in esphome::api::APIServerConnection.

Definition at line 122 of file api_pb2_service.h.

◆ on_ping_request()

virtual void esphome::api::APIServerConnectionBase::on_ping_request ( const PingRequest value)
inlinevirtual

Reimplemented in esphome::api::APIServerConnection.

Definition at line 22 of file api_pb2_service.h.

◆ on_ping_response()

virtual void esphome::api::APIServerConnectionBase::on_ping_response ( const PingResponse value)
inlinevirtual

Reimplemented in esphome::api::APIConnection.

Definition at line 24 of file api_pb2_service.h.

◆ on_select_command_request()

virtual void esphome::api::APIServerConnectionBase::on_select_command_request ( const SelectCommandRequest value)
inlinevirtual

Reimplemented in esphome::api::APIServerConnection.

Definition at line 131 of file api_pb2_service.h.

◆ on_subscribe_bluetooth_le_advertisements_request()

virtual void esphome::api::APIServerConnectionBase::on_subscribe_bluetooth_le_advertisements_request ( const SubscribeBluetoothLEAdvertisementsRequest value)
inlinevirtual

Reimplemented in esphome::api::APIServerConnection.

Definition at line 157 of file api_pb2_service.h.

◆ on_subscribe_home_assistant_states_request()

virtual void esphome::api::APIServerConnectionBase::on_subscribe_home_assistant_states_request ( const SubscribeHomeAssistantStatesRequest value)
inlinevirtual

Reimplemented in esphome::api::APIServerConnection.

Definition at line 88 of file api_pb2_service.h.

◆ on_subscribe_homeassistant_services_request()

virtual void esphome::api::APIServerConnectionBase::on_subscribe_homeassistant_services_request ( const SubscribeHomeassistantServicesRequest value)
inlinevirtual

Reimplemented in esphome::api::APIServerConnection.

Definition at line 86 of file api_pb2_service.h.

◆ on_subscribe_logs_request()

virtual void esphome::api::APIServerConnectionBase::on_subscribe_logs_request ( const SubscribeLogsRequest value)
inlinevirtual

Reimplemented in esphome::api::APIServerConnection.

Definition at line 84 of file api_pb2_service.h.

◆ on_subscribe_states_request()

virtual void esphome::api::APIServerConnectionBase::on_subscribe_states_request ( const SubscribeStatesRequest value)
inlinevirtual

Reimplemented in esphome::api::APIServerConnection.

Definition at line 29 of file api_pb2_service.h.

◆ on_switch_command_request()

virtual void esphome::api::APIServerConnectionBase::on_switch_command_request ( const SwitchCommandRequest value)
inlinevirtual

Reimplemented in esphome::api::APIServerConnection.

Definition at line 76 of file api_pb2_service.h.

◆ read_message()

bool esphome::api::APIServerConnectionBase::read_message ( uint32_t  msg_size,
uint32_t  msg_type,
uint8_t *  msg_data 
)
overrideprotectedvirtual

Implements esphome::api::ProtoService.

Definition at line 339 of file api_pb2_service.cpp.

◆ send_binary_sensor_state_response()

bool esphome::api::APIServerConnectionBase::send_binary_sensor_state_response ( const BinarySensorStateResponse msg)

Definition at line 68 of file api_pb2_service.cpp.

◆ send_bluetooth_le_advertisement_response()

bool esphome::api::APIServerConnectionBase::send_bluetooth_le_advertisement_response ( const BluetoothLEAdvertisementResponse msg)

Definition at line 332 of file api_pb2_service.cpp.

◆ send_camera_image_response()

bool esphome::api::APIServerConnectionBase::send_camera_image_response ( const CameraImageResponse msg)

Definition at line 222 of file api_pb2_service.cpp.

◆ send_climate_state_response()

bool esphome::api::APIServerConnectionBase::send_climate_state_response ( const ClimateStateResponse msg)

Definition at line 240 of file api_pb2_service.cpp.

◆ send_connect_response()

bool esphome::api::APIServerConnectionBase::send_connect_response ( const ConnectResponse msg)

Definition at line 17 of file api_pb2_service.cpp.

◆ send_cover_state_response()

bool esphome::api::APIServerConnectionBase::send_cover_state_response ( const CoverStateResponse msg)

Definition at line 84 of file api_pb2_service.cpp.

◆ send_device_info_response()

bool esphome::api::APIServerConnectionBase::send_device_info_response ( const DeviceInfoResponse msg)

Definition at line 47 of file api_pb2_service.cpp.

◆ send_disconnect_request()

bool esphome::api::APIServerConnectionBase::send_disconnect_request ( const DisconnectRequest msg)

Definition at line 23 of file api_pb2_service.cpp.

◆ send_disconnect_response()

bool esphome::api::APIServerConnectionBase::send_disconnect_response ( const DisconnectResponse msg)

Definition at line 29 of file api_pb2_service.cpp.

◆ send_fan_state_response()

bool esphome::api::APIServerConnectionBase::send_fan_state_response ( const FanStateResponse msg)

Definition at line 102 of file api_pb2_service.cpp.

◆ send_get_time_request()

bool esphome::api::APIServerConnectionBase::send_get_time_request ( const GetTimeRequest msg)

Definition at line 195 of file api_pb2_service.cpp.

◆ send_get_time_response()

bool esphome::api::APIServerConnectionBase::send_get_time_response ( const GetTimeResponse msg)

Definition at line 201 of file api_pb2_service.cpp.

◆ send_hello_response()

bool esphome::api::APIServerConnectionBase::send_hello_response ( const HelloResponse msg)

Definition at line 11 of file api_pb2_service.cpp.

◆ send_homeassistant_service_response()

bool esphome::api::APIServerConnectionBase::send_homeassistant_service_response ( const HomeassistantServiceResponse msg)

Definition at line 182 of file api_pb2_service.cpp.

◆ send_light_state_response()

bool esphome::api::APIServerConnectionBase::send_light_state_response ( const LightStateResponse msg)

Definition at line 120 of file api_pb2_service.cpp.

◆ send_list_entities_binary_sensor_response()

bool esphome::api::APIServerConnectionBase::send_list_entities_binary_sensor_response ( const ListEntitiesBinarySensorResponse msg)

Definition at line 60 of file api_pb2_service.cpp.

◆ send_list_entities_button_response()

bool esphome::api::APIServerConnectionBase::send_list_entities_button_response ( const ListEntitiesButtonResponse msg)

Definition at line 304 of file api_pb2_service.cpp.

◆ send_list_entities_camera_response()

bool esphome::api::APIServerConnectionBase::send_list_entities_camera_response ( const ListEntitiesCameraResponse msg)

Definition at line 214 of file api_pb2_service.cpp.

◆ send_list_entities_climate_response()

bool esphome::api::APIServerConnectionBase::send_list_entities_climate_response ( const ListEntitiesClimateResponse msg)

Definition at line 232 of file api_pb2_service.cpp.

◆ send_list_entities_cover_response()

bool esphome::api::APIServerConnectionBase::send_list_entities_cover_response ( const ListEntitiesCoverResponse msg)

Definition at line 76 of file api_pb2_service.cpp.

◆ send_list_entities_done_response()

bool esphome::api::APIServerConnectionBase::send_list_entities_done_response ( const ListEntitiesDoneResponse msg)

Definition at line 53 of file api_pb2_service.cpp.

◆ send_list_entities_fan_response()

bool esphome::api::APIServerConnectionBase::send_list_entities_fan_response ( const ListEntitiesFanResponse msg)

Definition at line 94 of file api_pb2_service.cpp.

◆ send_list_entities_light_response()

bool esphome::api::APIServerConnectionBase::send_list_entities_light_response ( const ListEntitiesLightResponse msg)

Definition at line 112 of file api_pb2_service.cpp.

◆ send_list_entities_lock_response()

bool esphome::api::APIServerConnectionBase::send_list_entities_lock_response ( const ListEntitiesLockResponse msg)

Definition at line 286 of file api_pb2_service.cpp.

◆ send_list_entities_media_player_response()

bool esphome::api::APIServerConnectionBase::send_list_entities_media_player_response ( const ListEntitiesMediaPlayerResponse msg)

Definition at line 314 of file api_pb2_service.cpp.

◆ send_list_entities_number_response()

bool esphome::api::APIServerConnectionBase::send_list_entities_number_response ( const ListEntitiesNumberResponse msg)

Definition at line 250 of file api_pb2_service.cpp.

◆ send_list_entities_select_response()

bool esphome::api::APIServerConnectionBase::send_list_entities_select_response ( const ListEntitiesSelectResponse msg)

Definition at line 268 of file api_pb2_service.cpp.

◆ send_list_entities_sensor_response()

bool esphome::api::APIServerConnectionBase::send_list_entities_sensor_response ( const ListEntitiesSensorResponse msg)

Definition at line 130 of file api_pb2_service.cpp.

◆ send_list_entities_services_response()

bool esphome::api::APIServerConnectionBase::send_list_entities_services_response ( const ListEntitiesServicesResponse msg)

Definition at line 207 of file api_pb2_service.cpp.

◆ send_list_entities_switch_response()

bool esphome::api::APIServerConnectionBase::send_list_entities_switch_response ( const ListEntitiesSwitchResponse msg)

Definition at line 146 of file api_pb2_service.cpp.

◆ send_list_entities_text_sensor_response()

bool esphome::api::APIServerConnectionBase::send_list_entities_text_sensor_response ( const ListEntitiesTextSensorResponse msg)

Definition at line 164 of file api_pb2_service.cpp.

◆ send_lock_state_response()

bool esphome::api::APIServerConnectionBase::send_lock_state_response ( const LockStateResponse msg)

Definition at line 294 of file api_pb2_service.cpp.

◆ send_media_player_state_response()

bool esphome::api::APIServerConnectionBase::send_media_player_state_response ( const MediaPlayerStateResponse msg)

Definition at line 322 of file api_pb2_service.cpp.

◆ send_number_state_response()

bool esphome::api::APIServerConnectionBase::send_number_state_response ( const NumberStateResponse msg)

Definition at line 258 of file api_pb2_service.cpp.

◆ send_ping_request()

bool esphome::api::APIServerConnectionBase::send_ping_request ( const PingRequest msg)

Definition at line 35 of file api_pb2_service.cpp.

◆ send_ping_response()

bool esphome::api::APIServerConnectionBase::send_ping_response ( const PingResponse msg)

Definition at line 41 of file api_pb2_service.cpp.

◆ send_select_state_response()

bool esphome::api::APIServerConnectionBase::send_select_state_response ( const SelectStateResponse msg)

Definition at line 276 of file api_pb2_service.cpp.

◆ send_sensor_state_response()

bool esphome::api::APIServerConnectionBase::send_sensor_state_response ( const SensorStateResponse msg)

Definition at line 138 of file api_pb2_service.cpp.

◆ send_subscribe_home_assistant_state_response()

bool esphome::api::APIServerConnectionBase::send_subscribe_home_assistant_state_response ( const SubscribeHomeAssistantStateResponse msg)

Definition at line 188 of file api_pb2_service.cpp.

◆ send_subscribe_logs_response()

bool esphome::api::APIServerConnectionBase::send_subscribe_logs_response ( const SubscribeLogsResponse msg)

Definition at line 179 of file api_pb2_service.cpp.

◆ send_switch_state_response()

bool esphome::api::APIServerConnectionBase::send_switch_state_response ( const SwitchStateResponse msg)

Definition at line 154 of file api_pb2_service.cpp.

◆ send_text_sensor_state_response()

bool esphome::api::APIServerConnectionBase::send_text_sensor_state_response ( const TextSensorStateResponse msg)

Definition at line 172 of file api_pb2_service.cpp.


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