mirror of
https://github.com/esphome/esphome.git
synced 2025-08-03 08:57:47 +00:00
Merge branch 'integration' of https://github.com/esphome/esphome into integration
This commit is contained in:
commit
fc386a2648
@ -21,7 +21,7 @@ void CustomAPIDeviceComponent::setup() {
|
|||||||
|
|
||||||
void CustomAPIDeviceComponent::on_test_service() { ESP_LOGI(TAG, "Custom test service called!"); }
|
void CustomAPIDeviceComponent::on_test_service() { ESP_LOGI(TAG, "Custom test service called!"); }
|
||||||
|
|
||||||
void CustomAPIDeviceComponent::on_service_with_args(std::string arg_string, int32_t arg_int, bool arg_bool,
|
void CustomAPIDeviceComponent::on_service_with_args(const std::string &arg_string, int32_t arg_int, bool arg_bool,
|
||||||
float arg_float) {
|
float arg_float) {
|
||||||
ESP_LOGI(TAG, "Custom service called with: %s, %d, %d, %.2f", arg_string.c_str(), arg_int, arg_bool, arg_float);
|
ESP_LOGI(TAG, "Custom service called with: %s, %d, %d, %.2f", arg_string.c_str(), arg_int, arg_bool, arg_float);
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,7 @@ class CustomAPIDeviceComponent : public Component, public CustomAPIDevice {
|
|||||||
|
|
||||||
void on_test_service();
|
void on_test_service();
|
||||||
|
|
||||||
void on_service_with_args(std::string arg_string, int32_t arg_int, bool arg_bool, float arg_float);
|
void on_service_with_args(const std::string &arg_string, int32_t arg_int, bool arg_bool, float arg_float);
|
||||||
|
|
||||||
void on_service_with_arrays(std::vector<bool> bool_array, std::vector<int32_t> int_array,
|
void on_service_with_arrays(std::vector<bool> bool_array, std::vector<int32_t> int_array,
|
||||||
std::vector<float> float_array, std::vector<std::string> string_array);
|
std::vector<float> float_array, std::vector<std::string> string_array);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user