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.
A class that produces Signal K output to be forwarded to the Signal K server (if the system is connec...
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
Consumes a time_t time object and produces a human readable string of the time for UTC in ISO 8601 fo...
const String ConfigSchema(const SmartSwitchController &obj)