ESPHome
2023.5.5
|
Namespaces | |
enums | |
Typedefs | |
using | psk_t = std::array< uint8_t, 32 > |
Enumerations | |
enum | APIError : int { APIError::OK = 0, APIError::WOULD_BLOCK = 1001, APIError::BAD_HANDSHAKE_PACKET_LEN = 1002, APIError::BAD_INDICATOR = 1003, APIError::BAD_DATA_PACKET = 1004, APIError::TCP_NODELAY_FAILED = 1005, APIError::TCP_NONBLOCKING_FAILED = 1006, APIError::CLOSE_FAILED = 1007, APIError::SHUTDOWN_FAILED = 1008, APIError::BAD_STATE = 1009, APIError::BAD_ARG = 1010, APIError::SOCKET_READ_FAILED = 1011, APIError::SOCKET_WRITE_FAILED = 1012, APIError::HANDSHAKESTATE_READ_FAILED = 1013, APIError::HANDSHAKESTATE_WRITE_FAILED = 1014, APIError::HANDSHAKESTATE_BAD_STATE = 1015, APIError::CIPHERSTATE_DECRYPT_FAILED = 1016, APIError::CIPHERSTATE_ENCRYPT_FAILED = 1017, APIError::OUT_OF_MEMORY = 1018, APIError::HANDSHAKESTATE_SETUP_FAILED = 1019, APIError::HANDSHAKESTATE_SPLIT_FAILED = 1020, APIError::BAD_HANDSHAKE_ERROR_BYTE = 1021, APIError::CONNECTION_CLOSED = 1022 } |
Variables | |
APIServer * | global_api_server = nullptr |
using esphome::api::psk_t = typedef std::array<uint8_t, 32> |
Definition at line 10 of file api_noise_context.h.
|
strong |
Definition at line 33 of file api_frame_helper.h.
const char * esphome::api::api_error_to_str | ( | APIError | err | ) |
Definition at line 23 of file api_frame_helper.cpp.
std::string esphome::api::get_default_unique_id | ( | const std::string & | component_type, |
EntityBase * | entity | ||
) |
Definition at line 155 of file api_connection.cpp.
T esphome::api::get_execute_arg_value | ( | const ExecuteServiceArgument & | arg | ) |
bool esphome::api::get_execute_arg_value< bool > | ( | const ExecuteServiceArgument & | arg | ) |
Definition at line 7 of file user_services.cpp.
float esphome::api::get_execute_arg_value< float > | ( | const ExecuteServiceArgument & | arg | ) |
Definition at line 13 of file user_services.cpp.
int esphome::api::get_execute_arg_value< int > | ( | const ExecuteServiceArgument & | arg | ) |
Definition at line 8 of file user_services.cpp.
std::string esphome::api::get_execute_arg_value< std::string > | ( | const ExecuteServiceArgument & | arg | ) |
Definition at line 14 of file user_services.cpp.
std::vector<bool> esphome::api::get_execute_arg_value< std::vector< bool > > | ( | const ExecuteServiceArgument & | arg | ) |
Definition at line 15 of file user_services.cpp.
std::vector<float> esphome::api::get_execute_arg_value< std::vector< float > > | ( | const ExecuteServiceArgument & | arg | ) |
Definition at line 21 of file user_services.cpp.
std::vector<int32_t> esphome::api::get_execute_arg_value< std::vector< int32_t > > | ( | const ExecuteServiceArgument & | arg | ) |
Definition at line 18 of file user_services.cpp.
std::vector<std::string> esphome::api::get_execute_arg_value< std::vector< std::string > > | ( | const ExecuteServiceArgument & | arg | ) |
Definition at line 24 of file user_services.cpp.
bool esphome::api::is_would_block | ( | ssize_t | ret | ) |
Is the given return value (from write syscalls) a wouldblock error?
Definition at line 16 of file api_frame_helper.cpp.
std::string esphome::api::noise_err_to_str | ( | int | err | ) |
Convert a noise error code to a readable error.
Definition at line 83 of file api_frame_helper.cpp.
void esphome::api::noise_rand_bytes | ( | void * | output, |
size_t | len | ||
) |
Definition at line 736 of file api_frame_helper.cpp.
const char* esphome::api::proto_enum_to_string | ( | T | value | ) |
const char* esphome::api::proto_enum_to_string< enums::BluetoothDeviceRequestType > | ( | enums::BluetoothDeviceRequestType | value | ) |
Definition at line 389 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::ClimateAction > | ( | enums::ClimateAction | value | ) |
Definition at line 262 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::ClimateFanMode > | ( | enums::ClimateFanMode | value | ) |
Definition at line 218 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::ClimateMode > | ( | enums::ClimateMode | value | ) |
Definition at line 196 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::ClimatePreset > | ( | enums::ClimatePreset | value | ) |
Definition at line 282 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::ClimateSwingMode > | ( | enums::ClimateSwingMode | value | ) |
Definition at line 246 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::ColorMode > | ( | enums::ColorMode | value | ) |
Definition at line 90 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::CoverOperation > | ( | enums::CoverOperation | value | ) |
Definition at line 36 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::EntityCategory > | ( | enums::EntityCategory | value | ) |
Definition at line 10 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::FanDirection > | ( | enums::FanDirection | value | ) |
Definition at line 78 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::FanSpeed > | ( | enums::FanSpeed | value | ) |
Definition at line 64 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::LegacyCoverCommand > | ( | enums::LegacyCoverCommand | value | ) |
Definition at line 50 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::LegacyCoverState > | ( | enums::LegacyCoverState | value | ) |
Definition at line 24 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::LockCommand > | ( | enums::LockCommand | value | ) |
Definition at line 340 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::LockState > | ( | enums::LockState | value | ) |
Definition at line 320 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::LogLevel > | ( | enums::LogLevel | value | ) |
Definition at line 148 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::MediaPlayerCommand > | ( | enums::MediaPlayerCommand | value | ) |
Definition at line 370 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::MediaPlayerState > | ( | enums::MediaPlayerState | value | ) |
Definition at line 354 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::NumberMode > | ( | enums::NumberMode | value | ) |
Definition at line 306 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::SensorLastResetType > | ( | enums::SensorLastResetType | value | ) |
Definition at line 134 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::SensorStateClass > | ( | enums::SensorStateClass | value | ) |
Definition at line 118 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::ServiceArgType > | ( | enums::ServiceArgType | value | ) |
Definition at line 172 of file api_pb2.cpp.
const char* esphome::api::proto_enum_to_string< enums::VoiceAssistantEvent > | ( | enums::VoiceAssistantEvent | value | ) |
Definition at line 411 of file api_pb2.cpp.
enums::ServiceArgType esphome::api::to_service_arg_type | ( | ) |
enums::ServiceArgType esphome::api::to_service_arg_type< bool > | ( | ) |
Definition at line 28 of file user_services.cpp.
enums::ServiceArgType esphome::api::to_service_arg_type< float > | ( | ) |
Definition at line 30 of file user_services.cpp.
enums::ServiceArgType esphome::api::to_service_arg_type< int > | ( | ) |
Definition at line 29 of file user_services.cpp.
enums::ServiceArgType esphome::api::to_service_arg_type< std::string > | ( | ) |
Definition at line 31 of file user_services.cpp.
enums::ServiceArgType esphome::api::to_service_arg_type< std::vector< bool > > | ( | ) |
Definition at line 32 of file user_services.cpp.
enums::ServiceArgType esphome::api::to_service_arg_type< std::vector< float > > | ( | ) |
Definition at line 34 of file user_services.cpp.
enums::ServiceArgType esphome::api::to_service_arg_type< std::vector< int > > | ( | ) |
Definition at line 33 of file user_services.cpp.
enums::ServiceArgType esphome::api::to_service_arg_type< std::vector< std::string > > | ( | ) |
Definition at line 37 of file user_services.cpp.
APIServer * esphome::api::global_api_server = nullptr |
Definition at line 286 of file api_server.cpp.