SensESP 2.7.2
Universal Signal K sensor toolkit ESP32
|
Used to send requests to the server to change the value of the specified path to a specific value according to the specification at https://signalk.org/specification/1.5.0/doc/put.html. More...
#include <sensesp/signalk/signalk_put_request.h>
Protected Attributes | |
T | value |
bool | ignore_duplicates |
Protected Attributes inherited from sensesp::SKPutRequestBase | |
String | sk_path |
uint32_t | timeout |
String | pending_request_id_ |
Protected Attributes inherited from sensesp::Configurable | |
String | description_ = "" |
int | sort_order_ = 1000 |
Additional Inherited Members | |
Static Public Member Functions inherited from sensesp::SKRequest | |
static String | send_request (DynamicJsonDocument &request, std::function< void(DynamicJsonDocument &)> callback, uint32_t timeout=5000) |
static void | handle_response (DynamicJsonDocument &response) |
Public Attributes inherited from sensesp::Configurable | |
const String | config_path_ |
Protected Member Functions inherited from sensesp::SKPutRequestBase | |
void | send_put_request () |
virtual void | on_response (DynamicJsonDocument &response) |
Protected Member Functions inherited from sensesp::Configurable | |
virtual void | load_configuration () |
Static Protected Member Functions inherited from sensesp::SKRequest | |
static void | remove_request (String request_id) |
static PendingRequest * | get_request (String request_id) |
Static Protected Attributes inherited from sensesp::SKRequest | |
static std::map< String, PendingRequest * > | request_map |
Used to send requests to the server to change the value of the specified path to a specific value according to the specification at https://signalk.org/specification/1.5.0/doc/put.html.
Definition at line 134 of file signalk_put_request.h.
|
inline |
The constructor
sk_path | The SignalK path the put request will be made on |
config_path | The configuration path to save the configuration |
ignore_duplicates | TRUE if incoming values that have not changed since the last one should not generated a PUT request |
timeout | The number of milliseconds to wait for a COMPLETED or FAILED response to be received from the server |
Definition at line 145 of file signalk_put_request.h.
|
inlineoverridevirtual |
Used to set an input of this consumer. It is usually called automatically by a ValueProducer.
new_value | the value of the input |
input_channel | Consumers can have one or more inputs feeding them. This parameter allows you to specify which input number the producer is connecting to. For single input consumers, leave the index at zero. |
Reimplemented from sensesp::ValueConsumer< T >.
Definition at line 150 of file signalk_put_request.h.
|
inlineoverridevirtual |
Sets the "value" field of the put request with the appropriate value.
Implements sensesp::SKPutRequestBase.
Definition at line 162 of file signalk_put_request.h.
|
protected |
Definition at line 168 of file signalk_put_request.h.
|
protected |
Definition at line 167 of file signalk_put_request.h.