This commit is contained in:
J. Nick Koston 2025-07-11 16:48:20 -10:00
parent 139ce4c655
commit fb2d764c89
No known key found for this signature in database
2 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ void CustomAPIDeviceComponent::setup() {
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) {
ESP_LOGI(TAG, "Custom service called with: %s, %d, %d, %.2f", arg_string.c_str(), arg_int, arg_bool, arg_float);
}

View File

@ -17,7 +17,7 @@ class CustomAPIDeviceComponent : public Component, public CustomAPIDevice {
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,
std::vector<float> float_array, std::vector<std::string> string_array);