SensESP 3.0.1
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
signalk_time.h
Go to the documentation of this file.
1#ifndef SENSP_SRC_SENSESP_SIGNALK_SIGNALK_TIME_H_
2#define SENSP_SRC_SENSESP_SIGNALK_SIGNALK_TIME_H_
3
6#include "signalk_emitter.h"
7
8namespace sensesp {
9
10class SKOutputTime : public TimeString, public SKEmitter {
11 public:
12 SKOutputTime(const String& sk_path, const String& config_path = "");
13 virtual void as_signalk_json(JsonDocument& doc) override;
14 virtual bool to_json(JsonObject& doc) override;
15 virtual bool from_json(const JsonObject& config) override;
16};
17
18const String ConfigSchema(const SKOutputTime& obj);
19
20} // namespace sensesp
21
22#endif
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...
Definition timestring.h:15
const String ConfigSchema(const SmartSwitchController &obj)