This commit is contained in:
J. Nick Koston
2025-11-05 19:01:36 -06:00
parent ab6cb2dee6
commit ce4f9db778
3 changed files with 82 additions and 4 deletions
@@ -11,6 +11,28 @@ api:
then:
- logger.log: "YAML service called"
# Test YAML service with arguments (tests UserServiceBase with const char* array)
- action: test_yaml_service_with_args
variables:
my_int: int
my_string: string
then:
- logger.log:
format: "YAML service with args: %d, %s"
args: [my_int, my_string.c_str()]
# Test YAML service with multiple arguments
- action: test_yaml_service_many_args
variables:
arg1: int
arg2: float
arg3: bool
arg4: string
then:
- logger.log:
format: "YAML service many args: %d, %.2f, %d, %s"
args: [arg1, arg2, arg3, arg4.c_str()]
logger:
level: DEBUG