SensESP 2.7.2
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
sensesp::SKPutListener Class Referenceabstract

An Obervable class that listens for Signal K PUT requests coming over the websocket connection and notifies observers of the change. More...

#include <sensesp/signalk/signalk_put_request_listener.h>

Inheritance diagram for sensesp::SKPutListener:
[legend]

Public Member Functions

 SKPutListener (String sk_path)
 
Stringget_sk_path ()
 
virtual void parse_value (const JsonObject &put)=0
 
- Public Member Functions inherited from sensesp::Observable
 Observable ()
 
 Observable (Observable &&other)
 Move constructor.
 
void notify ()
 
void attach (std::function< void()> observer)
 

Static Public Member Functions

static const std::vector< SKPutListener * > & get_listeners ()
 

Protected Attributes

String sk_path
 

Detailed Description

An Obervable class that listens for Signal K PUT requests coming over the websocket connection and notifies observers of the change.

See also
SKPutRequestListener

Definition at line 21 of file signalk_put_request_listener.h.

Constructor & Destructor Documentation

◆ SKPutListener()

sensesp::SKPutListener::SKPutListener ( String  sk_path)

The constructor

Parameters
sk_pathThe Signal K path that identifies the signal k path this particular listener responds to

Definition at line 7 of file signalk_put_request_listener.cpp.

Member Function Documentation

◆ get_listeners()

static const std::vector< SKPutListener * > & sensesp::SKPutListener::get_listeners ( )
inlinestatic

Definition at line 34 of file signalk_put_request_listener.h.

Here is the caller graph for this function:

◆ get_sk_path()

String & sensesp::SKPutListener::get_sk_path ( )
inline

Definition at line 30 of file signalk_put_request_listener.h.

◆ parse_value()

virtual void sensesp::SKPutListener::parse_value ( const JsonObject put)
pure virtual

Member Data Documentation

◆ sk_path

String sensesp::SKPutListener::sk_path
protected

Definition at line 39 of file signalk_put_request_listener.h.


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