ESPHome
2024.10.2
|
#include <custom_api_device.h>
Public Member Functions | |
CustomAPIDeviceService (const std::string &name, const std::array< std::string, sizeof...(Ts)> &arg_names, T *obj, void(T::*callback)(Ts...)) | |
Public Member Functions inherited from esphome::api::UserServiceBase< Ts... > | |
UserServiceBase (std::string name, const std::array< std::string, sizeof...(Ts)> &arg_names) | |
ListEntitiesServicesResponse | encode_list_service_response () override |
bool | execute_service (const ExecuteServiceRequest &req) override |
Protected Member Functions | |
void | execute (Ts... x) override |
Protected Member Functions inherited from esphome::api::UserServiceBase< Ts... > | |
void | execute_ (std::vector< ExecuteServiceArgument > args, seq< S... > type) |
Protected Attributes | |
T * | obj_ |
void(T::* | callback_ )(Ts...) |
Protected Attributes inherited from esphome::api::UserServiceBase< Ts... > | |
std::string | name_ |
uint32_t | key_ |
std::array< std::string, sizeof...(Ts)> | arg_names_ |
Definition at line 10 of file custom_api_device.h.
|
inline |
Definition at line 12 of file custom_api_device.h.
|
inlineoverrideprotectedvirtual |
Implements esphome::api::UserServiceBase< Ts... >.
Definition at line 17 of file custom_api_device.h.
|
protected |
Definition at line 20 of file custom_api_device.h.
|
protected |
Definition at line 19 of file custom_api_device.h.