19 const String& prefix,
const String& name) {
21 String hostname = hostname_obs->get();
22 String path = prefix + hostname +
"." + name;
24 auto sk_output = std::make_shared<SKOutput<T>>(path);
28 auto update_output_sk_path = [hostname_obs, sk_output, prefix, name]() {
29 String path = prefix + hostname_obs->get() +
"." + name;
30 sk_output->set_sk_path(path);
32 update_output_sk_path();
34 hostname_obs->attach(update_output_sk_path);
37 sensor->connect_to(sk_output);