SensESP 3.4.0
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
sensesp::SKPutRequestListener< T > Class Template Reference

An object that listens for PUT requests to come in for the specified SignalK path. The value is then emitted for further processing. More...

#include <sensesp/signalk/signalk_put_request_listener.h>

Inheritance diagram for sensesp::SKPutRequestListener< T >:
[legend]

Public Member Functions

 SKPutRequestListener (String sk_path)
void parse_value (const JsonObject &put) override
Public Member Functions inherited from sensesp::SKPutListener
 SKPutListener (const String &sk_path)
String & get_sk_path ()
Public Member Functions inherited from sensesp::Observable
 Observable ()
 Observable (Observable &&other)
 Move constructor.
void notify ()
int attach (std::function< void()> observer)
 Attach an observer callback.
void detach (int id)
 Remove a previously attached observer by its ID.
Public Member Functions inherited from sensesp::ValueProducer< T >
 ValueProducer ()
 ValueProducer (const T &initial_value)
virtual const T & get () const
template<typename VConsumer>
std::enable_if< std::is_base_of< ValueConsumer< typenameVConsumer::input_type >, VConsumer >::value &&std::is_convertible< T, typenameVConsumer::input_type >::value, std::shared_ptr< VConsumer > >::type connect_to (std::shared_ptr< VConsumer > consumer)
 Connect a producer to a transform with a different input type.
template<typename VConsumer>
std::enable_if< std::is_base_of< ValueConsumer< typenameVConsumer::input_type >, VConsumer >::value &&std::is_convertible< T, typenameVConsumer::input_type >::value, VConsumer * >::type connect_to (VConsumer *consumer)
template<typename VConsumer>
std::enable_if< std::is_base_of< ValueConsumer< typenameVConsumer::input_type >, VConsumer >::value &&std::is_convertible< T, typenameVConsumer::input_type >::value, VConsumer * >::type connect_to (VConsumer &consumer)
void emit (const T &new_value)

Additional Inherited Members

Static Public Member Functions inherited from sensesp::SKPutListener
static const std::vector< SKPutListener * > & get_listeners ()
Protected Attributes inherited from sensesp::SKPutListener
String sk_path {}
Protected Attributes inherited from sensesp::ValueProducer< T >
output_

Detailed Description

template<class T>
class sensesp::SKPutRequestListener< T >

An object that listens for PUT requests to come in for the specified SignalK path. The value is then emitted for further processing.

Definition at line 51 of file signalk_put_request_listener.h.

Constructor & Destructor Documentation

◆ SKPutRequestListener()

template<class T>
sensesp::SKPutRequestListener< T >::SKPutRequestListener ( String sk_path)
inline

Definition at line 53 of file signalk_put_request_listener.h.

Member Function Documentation

◆ parse_value()

template<class T>
void sensesp::SKPutRequestListener< T >::parse_value ( const JsonObject & put)
inlineoverridevirtual

Implements sensesp::SKPutListener.

Definition at line 61 of file signalk_put_request_listener.h.


The documentation for this class was generated from the following file: