|
ESPHome 2026.10.0-dev
|
#include <user_services.h>
Public Member Functions | |
| UserServiceStatic (const char *const *strings, uint32_t key, enums::SupportsResponseType supports_response=enums::SUPPORTS_RESPONSE_NONE) | |
Public Member Functions inherited from esphome::api::UserServiceDescriptor | |
| virtual ListEntitiesServicesResponse | encode_list_service_response (std::span< char > scratch)=0 |
| Build the list-entities message. | |
| virtual bool | execute_service (const ExecuteServiceRequest &req)=0 |
| virtual bool | execute_service (const ExecuteServiceRequest &req, uint32_t action_call_id)=0 |
| bool | is_internal () |
Protected Member Functions | |
| ListEntitiesServicesResponse | encode_list_service_response_ (std::span< const enums::ServiceArgType > arg_types, std::span< char > scratch) const |
| StringRef | str_ (size_t idx, std::span< char > &scratch) const |
Reference table entry idx; nullptr gives an empty StringRef. | |
Protected Attributes | |
| const char *const * | strings_ |
| uint32_t | key_ |
| enums::SupportsResponseType | supports_response_ |
Definition at line 59 of file user_services.h.
|
inline |
Definition at line 61 of file user_services.h.
|
protected |
Definition at line 27 of file user_services.cpp.
|
protected |
Reference table entry idx; nullptr gives an empty StringRef.
On ESP8266 the bytes are copied out of PROGMEM into scratch with a terminator, and the span is advanced past the copy.
Definition at line 8 of file user_services.cpp.
|
protected |
Definition at line 74 of file user_services.h.
|
protected |
Definition at line 73 of file user_services.h.
|
protected |
Definition at line 75 of file user_services.h.