1#ifndef SENSESP_SIGNALK_LISTENER_H_
2#define SENSESP_SIGNALK_LISTENER_H_
6#include <ArduinoJson.h>
35 const String& config_path =
"");
48 static const std::vector<SKListener*>&
get_listeners() {
return listeners_; }
57 static std::vector<SKListener*> listeners_;
59 static SemaphoreHandle_t semaphore_;
61 virtual bool to_json(JsonObject& root)
override;
62 virtual bool from_json(
const JsonObject& config)
override;
64 void set_sk_path(
const String& path);
A base class which allow observers to attach callbacks to themselves. The callbacks will be called wh...
An Obervable class that listens for Signal K stream deltas and notifies any observers of value change...
static bool take_semaphore(uint64_t timeout_ms=0)
static void release_semaphore()
virtual void parse_value(const JsonObject &json)
SKListener(const String &sk_path, int listen_delay, const String &config_path="")
static const std::vector< SKListener * > & get_listeners()
const String ConfigSchema(const SmartSwitchController &obj)