22 const String expected[] = {
"sk_path"};
23 for (
auto str : expected) {
24 if (!config[str].is<JsonVariant>()) {
28 sk_path_ = config[
"sk_path"].as<String>();
33 return R
"({"type":"object","properties":{"sk_path":{"title":"Signal K Path","type":"string"}}})";
virtual bool load() override
Load and populate the object from a persistent storage.
SKEmitter(const String &sk_path)
SKOutputTime(const String &sk_path, const String &config_path="")
virtual bool from_json(const JsonObject &config) override
virtual bool to_json(JsonObject &doc) override
virtual void as_signalk_json(JsonDocument &doc) override
TimeString(const String &config_path="")
const String ConfigSchema(const SmartSwitchController &obj)