5std::vector<SKListener *> SKListener::listeners;
7SemaphoreHandle_t SKListener::semaphore_ = xSemaphoreCreateRecursiveMutex();
11 listeners.push_back(
this);
27void SKListener::get_configuration(JsonObject &root) {
31bool SKListener::set_configuration(
const JsonObject &config) {
32 if (!config.containsKey(
"sk_path")) {
35 this->set_sk_path(config[
"sk_path"].as<String>());
39void SKListener::set_sk_path(
const String &path) {
sk_path = path; }
An object that is capable of having configuration data that can be set remotely using a RESTful API,...
virtual void load_configuration()
SKListener(String sk_path, int listen_delay, String config_path="")
static void release_semaphore()
static bool take_semaphore(unsigned long int timeout_ms=0)