1#ifndef _signalk_put_request_H_
2#define _signalk_put_request_H_
4#include <ArduinoJson.h>
155 this->
value = new_value;
158 debugW(
"Ignoring PUT request (previous request still outstanding)");
An object that is capable of having configuration data that can be set remotely using a RESTful API,...
A base class for all template variations of the PUT request class SKPutRequest. This base class keeps...
virtual void set_put_value(JsonObject &put_data)=0
virtual bool set_configuration(const JsonObject &config) override
virtual String get_config_schema() override
String pending_request_id_
virtual void get_configuration(JsonObject &doc) override
virtual void on_response(DynamicJsonDocument &response)
Used to send requests to the server to change the value of the specified path to a specific value acc...
virtual void set_input(T new_value, uint8_t input_channel=0) override
SKPutRequest(String sk_path, String config_path="", bool ignore_duplicates=true, uint32_t timeout=5000)
virtual void set_put_value(JsonObject &put_data) override
std::function< void(DynamicJsonDocument &)> callback
DelayReaction * timeout_cleanup
A base class for all objects that are capable of sending "requests" to the SignalK server (and option...
static void handle_response(DynamicJsonDocument &response)
static std::map< String, PendingRequest * > request_map
static String send_request(DynamicJsonDocument &request, std::function< void(DynamicJsonDocument &)> callback, uint32_t timeout=5000)
static PendingRequest * get_request(String request_id)
static void remove_request(String request_id)
A base class for piece of code (like a transform) that accepts data for input. ValueConsumers can acc...
SKPutRequest< int > IntSKPutRequest
SKPutRequest< bool > BoolSKPutRequest
SKPutRequest< float > FloatSKPutRequest
SKPutRequest< String > StringSKPutRequest