diff --git a/Doxyfile b/Doxyfile index cc782fb1f..5cb1791de 100644 --- a/Doxyfile +++ b/Doxyfile @@ -38,7 +38,7 @@ PROJECT_NAME = SensESP # could be handy for archiving the generated documentation or if some version # control system is used. -PROJECT_NUMBER = 0.3.0 +PROJECT_NUMBER = 0.4.0 # Using the PROJECT_BRIEF tag one can provide an optional one line description # for a project that appears at the top of each page and should give viewer a diff --git a/docs/analog__input_8cpp.html b/docs/analog__input_8cpp.html index f2ac1216d..5250246ac 100644 --- a/docs/analog__input_8cpp.html +++ b/docs/analog__input_8cpp.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
diff --git a/docs/analog__input_8cpp_source.html b/docs/analog__input_8cpp_source.html index 12941cd64..ea503c19f 100644 --- a/docs/analog__input_8cpp_source.html +++ b/docs/analog__input_8cpp_source.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -94,7 +94,7 @@ Go to the documentation of this file.
1 #include "analog_input.h"
2 
3 #include "Arduino.h"
4 
5 #include "sensesp.h"
6 
7 void AnalogInput::update() {
8  output = analogRead(A0);
9  this->notify();
10 }
11 
12 void AnalogInput::enable() {
13  app.onRepeat(100, [this](){ this->update(); });
14 }
void notify()
Definition: observable.cpp:3
void enable() override final
-
float output
Definition: valueproducer.h:64
+
float output
Definition: valueproducer.h:74
ReactESP app
diff --git a/docs/analog__input_8h.html b/docs/analog__input_8h.html index e299ad8d2..1820ed9af 100644 --- a/docs/analog__input_8h.html +++ b/docs/analog__input_8h.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
diff --git a/docs/analog__input_8h_source.html b/docs/analog__input_8h_source.html index 6d70517e1..257c45ff9 100644 --- a/docs/analog__input_8h_source.html +++ b/docs/analog__input_8h_source.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
diff --git a/docs/analogvoltage_8h.html b/docs/analogvoltage_8h.html index 6f3a98b75..f364816cb 100644 --- a/docs/analogvoltage_8h.html +++ b/docs/analogvoltage_8h.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -99,27 +99,26 @@
- - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + +
diff --git a/docs/analogvoltage_8h__incl.map b/docs/analogvoltage_8h__incl.map index 53deee19e..6e2c9c200 100644 --- a/docs/analogvoltage_8h__incl.map +++ b/docs/analogvoltage_8h__incl.map @@ -1,23 +1,22 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + diff --git a/docs/analogvoltage_8h__incl.md5 b/docs/analogvoltage_8h__incl.md5 index 9f1fcc07c..54f73bed2 100644 --- a/docs/analogvoltage_8h__incl.md5 +++ b/docs/analogvoltage_8h__incl.md5 @@ -1 +1 @@ -276897633b246a2943f4b27aa34dff31 \ No newline at end of file +40aa9283a313dedf7c46b76da92890b2 \ No newline at end of file diff --git a/docs/analogvoltage_8h__incl.png b/docs/analogvoltage_8h__incl.png index ede500990..b8e7960b0 100644 Binary files a/docs/analogvoltage_8h__incl.png and b/docs/analogvoltage_8h__incl.png differ diff --git a/docs/analogvoltage_8h_source.html b/docs/analogvoltage_8h_source.html index 1eb9b8e62..0a6112809 100644 --- a/docs/analogvoltage_8h_source.html +++ b/docs/analogvoltage_8h_source.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -91,12 +91,11 @@
analogvoltage.h
-Go to the documentation of this file.
1 #ifndef _analog_voltage_H
2 #define _analog_voltage_H
3 
4 #include "transforms/linear.h"
5 
9 class AnalogVoltage : public Linear {
10 
11  public:
12  AnalogVoltage(String sk_path="", String config_path = "") :
13  Linear(sk_path, 1.0 / 1024.0 * 3.3, 0, config_path) {}
14 };
15 
16 #endif
+Go to the documentation of this file.
1 #ifndef _analog_voltage_H
2 #define _analog_voltage_H
3 
4 #include "transforms/linear.h"
5 
9 class AnalogVoltage : public Linear {
10 
11  public:
12  AnalogVoltage(String config_path = "") :
13  Linear(1.0 / 1024.0 * 3.3, 0, config_path) {}
14 };
15 
16 #endif
AnalogVoltage(String config_path="")
Definition: analogvoltage.h:12
+ -
Definition: linear.h:8
- +
Definition: linear.h:7
const String config_path
Definition: configurable.h:29
-
AnalogVoltage(String sk_path="", String config_path="")
Definition: analogvoltage.h:12
diff --git a/docs/annotated.html b/docs/annotated.html index 9ee74bd85..bc3ba46c0 100644 --- a/docs/annotated.html +++ b/docs/annotated.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -96,51 +96,51 @@  CAnalogInput  CAnalogVoltage  CConfigurable - CDallasTemperatureSensors - CDebounce - CDevice - CDifference - CDigitalInput - CDigitalInputCounter - CDigitalInputValue - CEnable - CENUVector - CFreeMem - CFrequency - CGNSSPosition - CGPGGASentenceParser - CGPGLLSentenceParser - CGPRMCSentenceParser - CGPSInput - CHTTPServer - CIntegerDevice - CIntegrator - CInterpolate - CSample - CIPAddrDev - CLedBlinker - CLinear - CMovingAverage - CNetworking - CNMEAData - CNMEAParser - CNumericDevice - CObservable - CObservableValue - COneWireTemperature - CPassthrough - CPosition - CPSTI030SentenceParser - CPSTI032SentenceParser - CPSTISentenceParser - CSensESPApp - CSentenceParser - CSignalKSource - CSKDelta - CStringDevice - CSymmetricTransform - CSystemHz - CTemperatureInterpreter + CCurveInterpolator + CSample + CDallasTemperatureSensors + CDebounce + CDevice + CDifference + CDigitalInput + CDigitalInputCounter + CDigitalInputValue + CEnable + CENUVector + CFreeMem + CFrequency + CGPGGASentenceParser + CGPGLLSentenceParser + CGPRMCSentenceParser + CGPSInput + CHTTPServer + CIntegerDevice + CIntegrator + CIPAddrDev + CLedBlinker + CLinear + CMovingAverage + CNetworking + CNMEAData + CNMEAParser + CNumericDevice + CObservable + CObservableValue + COneWireTemperature + CPosition + CPSTI030SentenceParser + CPSTI032SentenceParser + CPSTISentenceParser + CSensESPApp + CSentenceParser + CSKDelta + CSKEmitter + CSKOutput + CSKOutputPosition + CSKOutputTime + CStringDevice + CSymmetricTransform + CSystemHz  CTimeString  CTransform  CTransformBase diff --git a/docs/annotated_dup.js b/docs/annotated_dup.js index a11346e7d..80182ad42 100644 --- a/docs/annotated_dup.js +++ b/docs/annotated_dup.js @@ -3,6 +3,7 @@ var annotated_dup = [ "AnalogInput", "class_analog_input.html", "class_analog_input" ], [ "AnalogVoltage", "class_analog_voltage.html", "class_analog_voltage" ], [ "Configurable", "class_configurable.html", "class_configurable" ], + [ "CurveInterpolator", "class_curve_interpolator.html", "class_curve_interpolator" ], [ "DallasTemperatureSensors", "class_dallas_temperature_sensors.html", "class_dallas_temperature_sensors" ], [ "Debounce", "class_debounce.html", "class_debounce" ], [ "Device", "class_device.html", "class_device" ], @@ -14,7 +15,6 @@ var annotated_dup = [ "ENUVector", "struct_e_n_u_vector.html", "struct_e_n_u_vector" ], [ "FreeMem", "class_free_mem.html", "class_free_mem" ], [ "Frequency", "class_frequency.html", "class_frequency" ], - [ "GNSSPosition", "class_g_n_s_s_position.html", "class_g_n_s_s_position" ], [ "GPGGASentenceParser", "class_g_p_g_g_a_sentence_parser.html", "class_g_p_g_g_a_sentence_parser" ], [ "GPGLLSentenceParser", "class_g_p_g_l_l_sentence_parser.html", "class_g_p_g_l_l_sentence_parser" ], [ "GPRMCSentenceParser", "class_g_p_r_m_c_sentence_parser.html", "class_g_p_r_m_c_sentence_parser" ], @@ -22,7 +22,6 @@ var annotated_dup = [ "HTTPServer", "class_h_t_t_p_server.html", "class_h_t_t_p_server" ], [ "IntegerDevice", "class_integer_device.html", "class_integer_device" ], [ "Integrator", "class_integrator.html", "class_integrator" ], - [ "Interpolate", "class_interpolate.html", "class_interpolate" ], [ "IPAddrDev", "class_i_p_addr_dev.html", "class_i_p_addr_dev" ], [ "LedBlinker", "class_led_blinker.html", "class_led_blinker" ], [ "Linear", "class_linear.html", "class_linear" ], @@ -34,19 +33,20 @@ var annotated_dup = [ "Observable", "class_observable.html", "class_observable" ], [ "ObservableValue", "class_observable_value.html", "class_observable_value" ], [ "OneWireTemperature", "class_one_wire_temperature.html", "class_one_wire_temperature" ], - [ "Passthrough", "class_passthrough.html", "class_passthrough" ], [ "Position", "struct_position.html", "struct_position" ], [ "PSTI030SentenceParser", "class_p_s_t_i030_sentence_parser.html", "class_p_s_t_i030_sentence_parser" ], [ "PSTI032SentenceParser", "class_p_s_t_i032_sentence_parser.html", "class_p_s_t_i032_sentence_parser" ], [ "PSTISentenceParser", "class_p_s_t_i_sentence_parser.html", "class_p_s_t_i_sentence_parser" ], [ "SensESPApp", "class_sens_e_s_p_app.html", "class_sens_e_s_p_app" ], [ "SentenceParser", "class_sentence_parser.html", "class_sentence_parser" ], - [ "SignalKSource", "class_signal_k_source.html", "class_signal_k_source" ], [ "SKDelta", "class_s_k_delta.html", "class_s_k_delta" ], + [ "SKEmitter", "class_s_k_emitter.html", "class_s_k_emitter" ], + [ "SKOutput", "class_s_k_output.html", "class_s_k_output" ], + [ "SKOutputPosition", "class_s_k_output_position.html", "class_s_k_output_position" ], + [ "SKOutputTime", "class_s_k_output_time.html", "class_s_k_output_time" ], [ "StringDevice", "class_string_device.html", "class_string_device" ], [ "SymmetricTransform", "class_symmetric_transform.html", "class_symmetric_transform" ], [ "SystemHz", "class_system_hz.html", "class_system_hz" ], - [ "TemperatureInterpreter", "class_temperature_interpreter.html", "class_temperature_interpreter" ], [ "TimeString", "class_time_string.html", "class_time_string" ], [ "Transform", "class_transform.html", "class_transform" ], [ "TransformBase", "class_transform_base.html", "class_transform_base" ], diff --git a/docs/class_analog_input-members.html b/docs/class_analog_input-members.html index 5b7121530..2ff675b75 100644 --- a/docs/class_analog_input-members.html +++ b/docs/class_analog_input-members.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -98,7 +98,7 @@ config_pathConfigurable Configurable(String config_path)Configurable connectTo(ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)ValueProducer< float >inline - connectTo(SymmetricTransform< float > *pProducerConsumer, uint8_t inputChannel=0)ValueProducer< float >inline + connectTo(Transform< float, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< float >inline Device(String config_path="")Device Enable(uint8_t priority=0)Enable enable() override finalAnalogInputvirtual @@ -114,7 +114,8 @@ outputValueProducer< float >protected save_configuration()Configurablevirtual set_configuration(const JsonObject &config)Configurablevirtual - ValueProducer()ValueProducer< float >inline + setPriority(uint8_t priority)Enableinline + ValueProducer()ValueProducer< float >inline diff --git a/docs/class_analog_input.html b/docs/class_analog_input.html index de10612dd..52fd83ebf 100644 --- a/docs/class_analog_input.html +++ b/docs/class_analog_input.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -142,6 +142,8 @@   const int8_t getEnablePriority ()   +void setPriority (uint8_t priority) +  - Public Member Functions inherited from ValueProducer< float >  ValueProducer ()   @@ -149,8 +151,8 @@   void connectTo (ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)   -SymmetricTransform< float > * connectTo (SymmetricTransform< float > *pProducerConsumer, uint8_t inputChannel=0) -  +Transform< float, T2 > * connectTo (Transform< float, T2 > *pConsumerProducer, uint8_t inputChannel=0) +  diff --git a/docs/class_analog_voltage-members.html b/docs/class_analog_voltage-members.html index 5703d6d12..bbd8744df 100644 --- a/docs/class_analog_voltage-members.html +++ b/docs/class_analog_voltage-members.html @@ -30,7 +30,7 @@ @@ -94,39 +94,34 @@

This is the complete list of members for AnalogVoltage, including all inherited members.

Additional Inherited Members

SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
- - - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + +
AnalogVoltage(String sk_path="", String config_path="")AnalogVoltageinline
as_signalK() override finalLinearvirtual
attach(std::function< void()> observer)Observable
config_pathConfigurable
Configurable(String config_path)Configurable
connectFrom(ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)SymmetricTransform< float >inline
ValueConsumer< float >::connectFrom(ValueProducer< float > *pProducer, uint8_t inputChannel=0)ValueConsumer< float >inline
connectTo(ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)ValueProducer< float >inline
connectTo(SymmetricTransform< float > *pProducerConsumer, uint8_t inputChannel=0)ValueProducer< float >inline
enable()Enableinlinevirtual
AnalogVoltage(String config_path="")AnalogVoltageinline
attach(std::function< void()> observer)Observable
config_pathConfigurable
Configurable(String config_path)Configurable
connectFrom(ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)Transform< float, float >inline
ValueConsumer< float >::connectFrom(ValueProducer< float > *pProducer, uint8_t inputChannel=0)ValueConsumer< float >inline
connectTo(ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)ValueProducer< float >inline
connectTo(Transform< float, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< float >inline
Enable(uint8_t priority=0)Enable
enableAll()Enablestatic
get()ValueProducer< float >inlinevirtual
get_config_schema() overrideLinearvirtual
get_configuration(JsonBuffer &buf) override finalLinearvirtual
get_sk_path()SignalKSourceinline
get_sources()SignalKSourceinlinestatic
get_transforms()TransformBaseinlinestatic
getEnablePriority()Enableinline
Linear(String sk_path, float k, float c, String config_path="")Linear
load_configuration()Configurableprotectedvirtual
notify()Observable
outputValueProducer< float >protected
save_configuration()Configurablevirtual
set_configuration(const JsonObject &config) override finalLinearvirtual
set_input(float input, uint8_t inputChannel=0) override finalLinearvirtual
set_sk_path(const String &path)SignalKSourceinline
SignalKSource(String sk_path)SignalKSource
sk_pathSignalKSourceprotected
SymmetricTransform(String sk_path, String config_path="")SymmetricTransform< float >inline
Transform(String sk_path, String config_path="")Transform< float >inline
TransformBase(String sk_path, String config_path="")TransformBase
ValueProducer()ValueProducer< float >inline
enable()Enableinlinevirtual
enableAll()Enablestatic
get()ValueProducer< float >inlinevirtual
get_config_schema() overrideLinearvirtual
get_configuration(JsonBuffer &buf) overrideLinearvirtual
get_transforms()TransformBaseinlinestatic
getEnablePriority()Enableinline
Linear(float k, float c, String config_path="")Linear
load_configuration()Configurableprotectedvirtual
notify()Observable
outputValueProducer< float >protected
save_configuration()Configurablevirtual
set_configuration(const JsonObject &config) overrideLinearvirtual
set_input(float input, uint8_t inputChannel=0) overrideLinearvirtual
setPriority(uint8_t priority)Enableinline
SymmetricTransform(String config_path="")SymmetricTransform< float >inline
Transform(String config_path="")Transform< float, float >inline
TransformBase(String config_path="")TransformBase
ValueProducer()ValueProducer< float >inline
diff --git a/docs/class_analog_voltage.html b/docs/class_analog_voltage.html index 32eb81334..0f84032b2 100644 --- a/docs/class_analog_voltage.html +++ b/docs/class_analog_voltage.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -101,63 +101,45 @@
Inheritance graph
- - - - - - - - - - - + + + + + + + + + +
[legend]
- - + + - - - - - - - - - - + + + + + + + + - - - - - - - - - - + + + + + + + - - - - - - - - - - - - - - + + @@ -170,6 +152,11 @@ + + + + + @@ -177,17 +164,19 @@ - - + + + + + + +

Public Member Functions

 AnalogVoltage (String sk_path="", String config_path="")
 
 AnalogVoltage (String config_path="")
 
- Public Member Functions inherited from Linear
 Linear (String sk_path, float k, float c, String config_path="")
 
virtual void set_input (float input, uint8_t inputChannel=0) override final
 
virtual String as_signalK () override final
 
virtual JsonObject & get_configuration (JsonBuffer &buf) override final
 
virtual bool set_configuration (const JsonObject &config) override final
 
 Linear (float k, float c, String config_path="")
 
virtual void set_input (float input, uint8_t inputChannel=0) override
 
virtual JsonObject & get_configuration (JsonBuffer &buf) override
 
virtual bool set_configuration (const JsonObject &config) override
 
virtual String get_config_schema () override
 
- Public Member Functions inherited from SymmetricTransform< float >
 SymmetricTransform (String sk_path, String config_path="")
 
SymmetricTransform< float > * connectFrom (ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)
 
- Public Member Functions inherited from ValueConsumer< float >
void connectFrom (ValueProducer< float > *pProducer, uint8_t inputChannel=0)
 
- Public Member Functions inherited from Transform< float >
 Transform (String sk_path, String config_path="")
 
 SymmetricTransform (String config_path="")
 
- Public Member Functions inherited from Transform< float, float >
 Transform (String config_path="")
 
Transform< float, float > * connectFrom (ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)
 
- Public Member Functions inherited from TransformBase
 TransformBase (String sk_path, String config_path="")
 
- Public Member Functions inherited from SignalKSource
 SignalKSource (String sk_path)
 
String & get_sk_path ()
 
void set_sk_path (const String &path)
 
- Public Member Functions inherited from Observable
void notify ()
 
void attach (std::function< void()> observer)
 
 TransformBase (String config_path="")
 
- Public Member Functions inherited from Configurable
 Configurable (String config_path)
 
 
const int8_t getEnablePriority ()
 
void setPriority (uint8_t priority)
 
- Public Member Functions inherited from ValueConsumer< float >
void connectFrom (ValueProducer< float > *pProducer, uint8_t inputChannel=0)
 
- Public Member Functions inherited from ValueProducer< float >
 ValueProducer ()
 
 
void connectTo (ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)
 
SymmetricTransform< float > * connectTo (SymmetricTransform< float > *pProducerConsumer, uint8_t inputChannel=0)
 
Transform< float, T2 > * connectTo (Transform< float, T2 > *pConsumerProducer, uint8_t inputChannel=0)
 
- Public Member Functions inherited from Observable
void notify ()
 
void attach (std::function< void()> observer)
 
- - - @@ -197,9 +186,6 @@ - - - @@ -209,8 +195,8 @@

Definition at line 9 of file analogvoltage.h.

Constructor & Destructor Documentation

- -

◆ AnalogVoltage()

+ +

◆ AnalogVoltage()

@@ -222,18 +208,8 @@

AnalogVoltage::AnalogVoltage

- - - - - - - - - + - -

Additional Inherited Members

- Static Public Member Functions inherited from TransformBase
static const std::set< TransformBase * > & get_transforms ()
 
- Static Public Member Functions inherited from SignalKSource
static const std::vector< SignalKSource * > & get_sources ()
 
- Static Public Member Functions inherited from Enable
static void enableAll ()
 
- Protected Member Functions inherited from Configurable
virtual void load_configuration ()
 
- Protected Attributes inherited from SignalKSource
String sk_path
 
- Protected Attributes inherited from ValueProducer< float >
float output
 
( String sk_path = "",
String config_path = "" 
config_path = "") )
diff --git a/docs/class_analog_voltage.js b/docs/class_analog_voltage.js index 238b92e50..c93dd8020 100644 --- a/docs/class_analog_voltage.js +++ b/docs/class_analog_voltage.js @@ -1,4 +1,4 @@ var class_analog_voltage = [ - [ "AnalogVoltage", "class_analog_voltage.html#aa685c09a7c29bec4ed7b89e6317ee127", null ] + [ "AnalogVoltage", "class_analog_voltage.html#a22cee4790f99a391a883370cac00894a", null ] ]; \ No newline at end of file diff --git a/docs/class_analog_voltage__inherit__graph.map b/docs/class_analog_voltage__inherit__graph.map index f86cf40d7..be78b7fa7 100644 --- a/docs/class_analog_voltage__inherit__graph.map +++ b/docs/class_analog_voltage__inherit__graph.map @@ -1,13 +1,12 @@ - - - - - - - - - - - + + + + + + + + + + diff --git a/docs/class_analog_voltage__inherit__graph.md5 b/docs/class_analog_voltage__inherit__graph.md5 index 5c0ed6e9b..af9efa371 100644 --- a/docs/class_analog_voltage__inherit__graph.md5 +++ b/docs/class_analog_voltage__inherit__graph.md5 @@ -1 +1 @@ -1f8c807f5f5919dbbb2e712e9895c88e \ No newline at end of file +cc160cd7ff28f60bac46fad6c2850f5a \ No newline at end of file diff --git a/docs/class_analog_voltage__inherit__graph.png b/docs/class_analog_voltage__inherit__graph.png index 1800ba7bf..9997d871b 100644 Binary files a/docs/class_analog_voltage__inherit__graph.png and b/docs/class_analog_voltage__inherit__graph.png differ diff --git a/docs/class_configurable-members.html b/docs/class_configurable-members.html index b53ab25eb..3493cdc64 100644 --- a/docs/class_configurable-members.html +++ b/docs/class_configurable-members.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
diff --git a/docs/class_configurable.html b/docs/class_configurable.html index f8fecbf87..ffeb6869a 100644 --- a/docs/class_configurable.html +++ b/docs/class_configurable.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -103,44 +103,48 @@
Inheritance graph
- + - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
[legend]
@@ -223,7 +227,7 @@

Returns a configuration schema that specifies the key/value pairs that can be expected when calling get_configuration(), or are expected by set_configuration(). The schema will be in JSON Schema format

See also
https://json-schema.org
-

Reimplemented in Passthrough< T >, Interpolate, OneWireTemperature, WSClient, GNSSPosition, VoltageDividerR2, Networking, Frequency, MovingAverage, Integrator, TimeString, Difference, and Linear.

+

Reimplemented in SKOutput< T >, SKOutput< Position >, CurveInterpolator, OneWireTemperature, WSClient, SKOutputPosition, VoltageDividerR2, Networking, Frequency, MovingAverage, SKOutputTime, Integrator, Difference, and Linear.

Definition at line 35 of file configurable.cpp.

@@ -263,7 +267,7 @@

Returns the current configuration data as a JsonObject. In general, the current state of local member variables are saved to a new object created with JsonBuffer::createObject() and returned.

-

Reimplemented in Interpolate, Passthrough< T >, OneWireTemperature, WSClient, GNSSPosition, VoltageDividerR2, Networking, Frequency, MovingAverage, Integrator, TimeString, Difference, and Linear.

+

Reimplemented in SKOutput< T >, SKOutput< Position >, CurveInterpolator, OneWireTemperature, WSClient, VoltageDividerR2, SKOutputPosition, Networking, Frequency, MovingAverage, SKOutputTime, Integrator, Difference, and Linear.

Definition at line 23 of file configurable.cpp.

@@ -320,8 +324,10 @@

- - + + + +

@@ -400,7 +406,7 @@

Sets the current state of local member variables using the data stored in config.

-

Reimplemented in Passthrough< T >, Interpolate, OneWireTemperature, WSClient, GNSSPosition, VoltageDividerR2, Networking, Frequency, MovingAverage, Integrator, TimeString, Difference, and Linear.

+

Reimplemented in SKOutput< T >, SKOutput< Position >, CurveInterpolator, OneWireTemperature, WSClient, SKOutputPosition, VoltageDividerR2, Networking, Frequency, MovingAverage, SKOutputTime, Integrator, Difference, and Linear.

Definition at line 29 of file configurable.cpp.

@@ -408,10 +414,12 @@

- - - - + + + + + +

diff --git a/docs/class_configurable__inherit__graph.map b/docs/class_configurable__inherit__graph.map index d1d239cd0..7e8973e19 100644 --- a/docs/class_configurable__inherit__graph.map +++ b/docs/class_configurable__inherit__graph.map @@ -1,40 +1,44 @@ - + - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/class_configurable__inherit__graph.md5 b/docs/class_configurable__inherit__graph.md5 index bdb16ca21..0df9e45ae 100644 --- a/docs/class_configurable__inherit__graph.md5 +++ b/docs/class_configurable__inherit__graph.md5 @@ -1 +1 @@ -9d15a21d68fc0879e5bd12ef4a5e5498 \ No newline at end of file +9b29ac7ac24110da9d23545bcdf78ac2 \ No newline at end of file diff --git a/docs/class_configurable__inherit__graph.png b/docs/class_configurable__inherit__graph.png index 4bf91dcb3..b6797c08b 100644 Binary files a/docs/class_configurable__inherit__graph.png and b/docs/class_configurable__inherit__graph.png differ diff --git a/docs/class_configurable_a657419f13060caa20c45a41935b9d53a_cgraph.md5 b/docs/class_configurable_a657419f13060caa20c45a41935b9d53a_cgraph.md5 index 4f63a81cc..3c92efef4 100644 --- a/docs/class_configurable_a657419f13060caa20c45a41935b9d53a_cgraph.md5 +++ b/docs/class_configurable_a657419f13060caa20c45a41935b9d53a_cgraph.md5 @@ -1 +1 @@ -988e8c9ff9f39cb0e45e7eddebaf5937 \ No newline at end of file +47211e050b34f8e258473653a9ddc4b4 \ No newline at end of file diff --git a/docs/class_configurable_a657419f13060caa20c45a41935b9d53a_icgraph.md5 b/docs/class_configurable_a657419f13060caa20c45a41935b9d53a_icgraph.md5 index 3cecc6ac0..865d76360 100644 --- a/docs/class_configurable_a657419f13060caa20c45a41935b9d53a_icgraph.md5 +++ b/docs/class_configurable_a657419f13060caa20c45a41935b9d53a_icgraph.md5 @@ -1 +1 @@ -fff9fd457fb8da58ab9121c6e24c5fd9 \ No newline at end of file +56f3170505854e0fa8e4016d08183d97 \ No newline at end of file diff --git a/docs/class_configurable_a6e0281fe25cfbdf024bdb05147ffb52b_icgraph.map b/docs/class_configurable_a6e0281fe25cfbdf024bdb05147ffb52b_icgraph.map index fca3111d8..836552ede 100644 --- a/docs/class_configurable_a6e0281fe25cfbdf024bdb05147ffb52b_icgraph.map +++ b/docs/class_configurable_a6e0281fe25cfbdf024bdb05147ffb52b_icgraph.map @@ -1,6 +1,8 @@ - - - - + + + + + + diff --git a/docs/class_configurable_a6e0281fe25cfbdf024bdb05147ffb52b_icgraph.md5 b/docs/class_configurable_a6e0281fe25cfbdf024bdb05147ffb52b_icgraph.md5 index a50d8b2c7..6a9bf3bf8 100644 --- a/docs/class_configurable_a6e0281fe25cfbdf024bdb05147ffb52b_icgraph.md5 +++ b/docs/class_configurable_a6e0281fe25cfbdf024bdb05147ffb52b_icgraph.md5 @@ -1 +1 @@ -e3cf19bb12b034aa6390230d5fdcc7d4 \ No newline at end of file +452be86e15dc3f2da3389e27d9041fde \ No newline at end of file diff --git a/docs/class_configurable_a6e0281fe25cfbdf024bdb05147ffb52b_icgraph.png b/docs/class_configurable_a6e0281fe25cfbdf024bdb05147ffb52b_icgraph.png index 58ad3fdca..e423d945c 100644 Binary files a/docs/class_configurable_a6e0281fe25cfbdf024bdb05147ffb52b_icgraph.png and b/docs/class_configurable_a6e0281fe25cfbdf024bdb05147ffb52b_icgraph.png differ diff --git a/docs/class_configurable_ac2ba4044c81acc2fc6bf95cce411f6a4_icgraph.map b/docs/class_configurable_ac2ba4044c81acc2fc6bf95cce411f6a4_icgraph.map index ef7389877..1031993b3 100644 --- a/docs/class_configurable_ac2ba4044c81acc2fc6bf95cce411f6a4_icgraph.map +++ b/docs/class_configurable_ac2ba4044c81acc2fc6bf95cce411f6a4_icgraph.map @@ -1,4 +1,6 @@ - - + + + + diff --git a/docs/class_configurable_ac2ba4044c81acc2fc6bf95cce411f6a4_icgraph.md5 b/docs/class_configurable_ac2ba4044c81acc2fc6bf95cce411f6a4_icgraph.md5 index 532eb6522..5cc65234d 100644 --- a/docs/class_configurable_ac2ba4044c81acc2fc6bf95cce411f6a4_icgraph.md5 +++ b/docs/class_configurable_ac2ba4044c81acc2fc6bf95cce411f6a4_icgraph.md5 @@ -1 +1 @@ -04606876c5719c3b10668e486691d693 \ No newline at end of file +143055145548a292be58c44f262e188f \ No newline at end of file diff --git a/docs/class_configurable_ac2ba4044c81acc2fc6bf95cce411f6a4_icgraph.png b/docs/class_configurable_ac2ba4044c81acc2fc6bf95cce411f6a4_icgraph.png index 0a71aaddd..19f5f301c 100644 Binary files a/docs/class_configurable_ac2ba4044c81acc2fc6bf95cce411f6a4_icgraph.png and b/docs/class_configurable_ac2ba4044c81acc2fc6bf95cce411f6a4_icgraph.png differ diff --git a/docs/class_curve_interpolator-members.html b/docs/class_curve_interpolator-members.html new file mode 100644 index 000000000..2792bdfb3 --- /dev/null +++ b/docs/class_curve_interpolator-members.html @@ -0,0 +1,137 @@ + + + + + + + +SensESP: Member List + + + + + + + + + + + + + + +
+
+

+ + + + + +
+
SensESP +  0.4.0 +
+
Universal Signal K sensor framework for ESP8266 and ESP32
+
+ + + + + + + + + +
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
CurveInterpolator Member List
+
+
+ +

This is the complete list of members for CurveInterpolator, including all inherited members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
addSample(const Sample &newSample)CurveInterpolator
attach(std::function< void()> observer)Observable
clearSamples()CurveInterpolator
config_pathConfigurable
Configurable(String config_path)Configurable
connectFrom(ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)Transform< float, float >inline
ValueConsumer< float >::connectFrom(ValueProducer< float > *pProducer, uint8_t inputChannel=0)ValueConsumer< float >inline
connectTo(ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)ValueProducer< float >inline
connectTo(Transform< float, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< float >inline
CurveInterpolator(std::set< Sample > *defaults=NULL, String config_path="")CurveInterpolator
Enable(uint8_t priority=0)Enable
enable()Enableinlinevirtual
enableAll()Enablestatic
get()ValueProducer< float >inlinevirtual
get_config_schema() overrideCurveInterpolatorvirtual
get_configuration(JsonBuffer &buf) overrideCurveInterpolatorvirtual
get_transforms()TransformBaseinlinestatic
getEnablePriority()Enableinline
load_configuration()Configurableprotectedvirtual
notify()Observable
outputValueProducer< float >protected
save_configuration()Configurablevirtual
set_configuration(const JsonObject &config) overrideCurveInterpolatorvirtual
set_input(float input, uint8_t inputChannel=0) override finalCurveInterpolatorvirtual
setPriority(uint8_t priority)Enableinline
SymmetricTransform(String config_path="")SymmetricTransform< float >inline
Transform(String config_path="")Transform< float, float >inline
TransformBase(String config_path="")TransformBase
ValueProducer()ValueProducer< float >inline
+
+ + + + diff --git a/docs/class_curve_interpolator.html b/docs/class_curve_interpolator.html new file mode 100644 index 000000000..9614d798c --- /dev/null +++ b/docs/class_curve_interpolator.html @@ -0,0 +1,448 @@ + + + + + + + +SensESP: CurveInterpolator Class Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SensESP +  0.4.0 +
+
Universal Signal K sensor framework for ESP8266 and ESP32
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
CurveInterpolator Class Reference
+
+
+ +

#include <curveinterpolator.h>

+
+Inheritance diagram for CurveInterpolator:
+
+
Inheritance graph
+ + + + + + + + + + + +
[legend]
+ + + + +

+Classes

class  Sample
 
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 CurveInterpolator (std::set< Sample > *defaults=NULL, String config_path="")
 
void set_input (float input, uint8_t inputChannel=0) override final
 
virtual JsonObject & get_configuration (JsonBuffer &buf) override
 
virtual bool set_configuration (const JsonObject &config) override
 
virtual String get_config_schema () override
 
void clearSamples ()
 
void addSample (const Sample &newSample)
 
- Public Member Functions inherited from SymmetricTransform< float >
 SymmetricTransform (String config_path="")
 
- Public Member Functions inherited from Transform< float, float >
 Transform (String config_path="")
 
Transform< float, float > * connectFrom (ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)
 
- Public Member Functions inherited from TransformBase
 TransformBase (String config_path="")
 
- Public Member Functions inherited from Configurable
 Configurable (String config_path)
 
virtual void save_configuration ()
 
- Public Member Functions inherited from Enable
 Enable (uint8_t priority=0)
 
virtual void enable ()
 
const int8_t getEnablePriority ()
 
void setPriority (uint8_t priority)
 
- Public Member Functions inherited from ValueConsumer< float >
void connectFrom (ValueProducer< float > *pProducer, uint8_t inputChannel=0)
 
- Public Member Functions inherited from ValueProducer< float >
 ValueProducer ()
 
virtual const float & get ()
 
void connectTo (ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)
 
Transform< float, T2 > * connectTo (Transform< float, T2 > *pConsumerProducer, uint8_t inputChannel=0)
 
- Public Member Functions inherited from Observable
void notify ()
 
void attach (std::function< void()> observer)
 
+ + + + + + + + + + + + + + + + +

+Additional Inherited Members

- Static Public Member Functions inherited from TransformBase
static const std::set< TransformBase * > & get_transforms ()
 
- Static Public Member Functions inherited from Enable
static void enableAll ()
 
- Public Attributes inherited from Configurable
const String config_path
 
- Protected Member Functions inherited from Configurable
virtual void load_configuration ()
 
- Protected Attributes inherited from ValueProducer< float >
float output
 
+

Detailed Description

+

Interpolate uses a collection of input/output samples that approximate a non-linear curve. The output is the linear interpolation between the two sample points the input falls between. It is used primarily for non-linear analog gauges such as temperature gauges using Thermocouples

+ +

Definition at line 13 of file curveinterpolator.h.

+

Constructor & Destructor Documentation

+ +

◆ CurveInterpolator()

+ +
+
+ + + + + + + + + + + + + + + + + + +
CurveInterpolator::CurveInterpolator (std::set< Sample > * defaults = NULL,
String config_path = "" 
)
+
+ +

Definition at line 16 of file curveinterpolator.cpp.

+
+Here is the call graph for this function:
+
+
+ + + + + +
+ +
+
+

Member Function Documentation

+ +

◆ addSample()

+ +
+
+ + + + + + + + +
void CurveInterpolator::addSample (const SamplenewSample)
+
+ +

Definition at line 129 of file curveinterpolator.cpp.

+ +
+
+ +

◆ clearSamples()

+ +
+
+ + + + + + + +
void CurveInterpolator::clearSamples ()
+
+ +

Definition at line 125 of file curveinterpolator.cpp.

+ +
+
+ +

◆ get_config_schema()

+ +
+
+ + + + + +
+ + + + + + + +
String CurveInterpolator::get_config_schema ()
+
+overridevirtual
+
+

Returns a configuration schema that specifies the key/value pairs that can be expected when calling get_configuration(), or are expected by set_configuration(). The schema will be in JSON Schema format

See also
https://json-schema.org
+ +

Reimplemented from Configurable.

+ +

Definition at line 97 of file curveinterpolator.cpp.

+ +
+
+ +

◆ get_configuration()

+ +
+
+ + + + + +
+ + + + + + + + +
JsonObject & CurveInterpolator::get_configuration (JsonBuffer & buf)
+
+overridevirtual
+
+

Returns the current configuration data as a JsonObject. In general, the current state of local member variables are saved to a new object created with JsonBuffer::createObject() and returned.

+ +

Reimplemented from Configurable.

+ +

Definition at line 70 of file curveinterpolator.cpp.

+ +
+
+ +

◆ set_configuration()

+ +
+
+ + + + + +
+ + + + + + + + +
bool CurveInterpolator::set_configuration (const JsonObject & config)
+
+overridevirtual
+
+

Sets the current state of local member variables using the data stored in config.

+ +

Reimplemented from Configurable.

+ +

Definition at line 101 of file curveinterpolator.cpp.

+ +
+
+ +

◆ set_input()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
void CurveInterpolator::set_input (float newValue,
uint8_t inputChannel = 0 
)
+
+finaloverridevirtual
+
+

Used to set an input of this consumer. It is usually called automatically by a ValueProducer.

Parameters
+ + + +
newValuethe value of the input
inputChannelConsumers 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 ValueConsumer< float >.

+ +

Definition at line 30 of file curveinterpolator.cpp.

+
+Here is the call graph for this function:
+
+
+ + + + +
+ +
+
+
The documentation for this class was generated from the following files: +
+
+ + + + diff --git a/docs/class_curve_interpolator.js b/docs/class_curve_interpolator.js new file mode 100644 index 000000000..fbcccb0e3 --- /dev/null +++ b/docs/class_curve_interpolator.js @@ -0,0 +1,11 @@ +var class_curve_interpolator = +[ + [ "Sample", "class_curve_interpolator_1_1_sample.html", "class_curve_interpolator_1_1_sample" ], + [ "CurveInterpolator", "class_curve_interpolator.html#a09bdf144307f1264c36d5afaea5c96a3", null ], + [ "addSample", "class_curve_interpolator.html#a314df8dc54dc73798197c9c9ce6859ac", null ], + [ "clearSamples", "class_curve_interpolator.html#afb1dbb8e85015e2909dff8495875f8f5", null ], + [ "get_config_schema", "class_curve_interpolator.html#a6f9c593782d05c95ba92810b8f70f287", null ], + [ "get_configuration", "class_curve_interpolator.html#a274cd3426b3e379db1538c71bebad9c8", null ], + [ "set_configuration", "class_curve_interpolator.html#acfda195c475a261d2e2a3af365fd6c19", null ], + [ "set_input", "class_curve_interpolator.html#a6e4fcb3bb046ecacbe1855d74cdc47bb", null ] +]; \ No newline at end of file diff --git a/docs/class_curve_interpolator_1_1_sample-members.html b/docs/class_curve_interpolator_1_1_sample-members.html new file mode 100644 index 000000000..eb1e410b5 --- /dev/null +++ b/docs/class_curve_interpolator_1_1_sample-members.html @@ -0,0 +1,114 @@ + + + + + + + +SensESP: Member List + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SensESP +  0.4.0 +
+
Universal Signal K sensor framework for ESP8266 and ESP32
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
CurveInterpolator::Sample Member List
+
+
+ +

This is the complete list of members for CurveInterpolator::Sample, including all inherited members.

+ + + + + + + +
inputCurveInterpolator::Sample
operator<(const Sample &lhs, const Sample &rhs)CurveInterpolator::Samplefriend
outputCurveInterpolator::Sample
Sample()CurveInterpolator::Sample
Sample(float input, float output)CurveInterpolator::Sample
Sample(JsonObject &obj)CurveInterpolator::Sample
+
+ + + + diff --git a/docs/class_curve_interpolator_1_1_sample.html b/docs/class_curve_interpolator_1_1_sample.html new file mode 100644 index 000000000..15ccc2b82 --- /dev/null +++ b/docs/class_curve_interpolator_1_1_sample.html @@ -0,0 +1,284 @@ + + + + + + + +SensESP: CurveInterpolator::Sample Class Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
SensESP +  0.4.0 +
+
Universal Signal K sensor framework for ESP8266 and ESP32
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
CurveInterpolator::Sample Class Reference
+
+
+ +

#include <curveinterpolator.h>

+ + + + + + + + +

+Public Member Functions

 Sample ()
 
 Sample (float input, float output)
 
 Sample (JsonObject &obj)
 
+ + + + + +

+Public Attributes

float input
 
float output
 
+ + + +

+Friends

bool operator< (const Sample &lhs, const Sample &rhs)
 
+

Detailed Description

+
+

Definition at line 16 of file curveinterpolator.h.

+

Constructor & Destructor Documentation

+ +

◆ Sample() [1/3]

+ +
+
+ + + + + + + +
CurveInterpolator::Sample::Sample ()
+
+ +

Definition at line 5 of file curveinterpolator.cpp.

+ +
+
+ +

◆ Sample() [2/3]

+ +
+
+ + + + + + + + + + + + + + + + + + +
CurveInterpolator::Sample::Sample (float input,
float output 
)
+
+ +

Definition at line 8 of file curveinterpolator.cpp.

+ +
+
+ +

◆ Sample() [3/3]

+ +
+
+ + + + + + + + +
CurveInterpolator::Sample::Sample (JsonObject & obj)
+
+ +

Definition at line 11 of file curveinterpolator.cpp.

+ +
+
+

Friends And Related Function Documentation

+ +

◆ operator<

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
bool operator< (const Samplelhs,
const Samplerhs 
)
+
+friend
+
+ +

Definition at line 25 of file curveinterpolator.h.

+ +
+
+

Member Data Documentation

+ +

◆ input

+ +
+
+ + + + +
float CurveInterpolator::Sample::input
+
+ +

Definition at line 18 of file curveinterpolator.h.

+ +
+
+ +

◆ output

+ +
+
+ + + + +
float CurveInterpolator::Sample::output
+
+ +

Definition at line 19 of file curveinterpolator.h.

+ +
+
+
The documentation for this class was generated from the following files: +
+
+ + + + diff --git a/docs/class_curve_interpolator_1_1_sample.js b/docs/class_curve_interpolator_1_1_sample.js new file mode 100644 index 000000000..457d8cefe --- /dev/null +++ b/docs/class_curve_interpolator_1_1_sample.js @@ -0,0 +1,9 @@ +var class_curve_interpolator_1_1_sample = +[ + [ "Sample", "class_curve_interpolator_1_1_sample.html#a7ad23733bf31c9a8ccbe9689b55f6d67", null ], + [ "Sample", "class_curve_interpolator_1_1_sample.html#aa2ed35560a823ced306ef02a50d95cac", null ], + [ "Sample", "class_curve_interpolator_1_1_sample.html#a5f69567a227e29b795b68e4310a9da40", null ], + [ "operator<", "class_curve_interpolator_1_1_sample.html#a1cf03a106b3a98056fdb448df6fb9c17", null ], + [ "input", "class_curve_interpolator_1_1_sample.html#a43dd7cc1fd950a03a6674056194e935b", null ], + [ "output", "class_curve_interpolator_1_1_sample.html#ada14a8de02c7cc737db52aa3a54a330b", null ] +]; \ No newline at end of file diff --git a/docs/class_curve_interpolator__inherit__graph.map b/docs/class_curve_interpolator__inherit__graph.map new file mode 100644 index 000000000..d75829bf4 --- /dev/null +++ b/docs/class_curve_interpolator__inherit__graph.map @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/docs/class_curve_interpolator__inherit__graph.md5 b/docs/class_curve_interpolator__inherit__graph.md5 new file mode 100644 index 000000000..483e8a36c --- /dev/null +++ b/docs/class_curve_interpolator__inherit__graph.md5 @@ -0,0 +1 @@ +e928cc9ce0d3eebd31ffc105ec4ed80c \ No newline at end of file diff --git a/docs/class_curve_interpolator__inherit__graph.png b/docs/class_curve_interpolator__inherit__graph.png new file mode 100644 index 000000000..d8ee10783 Binary files /dev/null and b/docs/class_curve_interpolator__inherit__graph.png differ diff --git a/docs/class_curve_interpolator_a09bdf144307f1264c36d5afaea5c96a3_cgraph.map b/docs/class_curve_interpolator_a09bdf144307f1264c36d5afaea5c96a3_cgraph.map new file mode 100644 index 000000000..28d54dd67 --- /dev/null +++ b/docs/class_curve_interpolator_a09bdf144307f1264c36d5afaea5c96a3_cgraph.map @@ -0,0 +1,5 @@ + + + + + diff --git a/docs/class_curve_interpolator_a09bdf144307f1264c36d5afaea5c96a3_cgraph.md5 b/docs/class_curve_interpolator_a09bdf144307f1264c36d5afaea5c96a3_cgraph.md5 new file mode 100644 index 000000000..a3e9d0853 --- /dev/null +++ b/docs/class_curve_interpolator_a09bdf144307f1264c36d5afaea5c96a3_cgraph.md5 @@ -0,0 +1 @@ +cc7971a53075807cb16ae0907d96f55e \ No newline at end of file diff --git a/docs/class_curve_interpolator_a09bdf144307f1264c36d5afaea5c96a3_cgraph.png b/docs/class_curve_interpolator_a09bdf144307f1264c36d5afaea5c96a3_cgraph.png new file mode 100644 index 000000000..27c8f4dfc Binary files /dev/null and b/docs/class_curve_interpolator_a09bdf144307f1264c36d5afaea5c96a3_cgraph.png differ diff --git a/docs/class_curve_interpolator_a6e4fcb3bb046ecacbe1855d74cdc47bb_cgraph.map b/docs/class_curve_interpolator_a6e4fcb3bb046ecacbe1855d74cdc47bb_cgraph.map new file mode 100644 index 000000000..fe18402c6 --- /dev/null +++ b/docs/class_curve_interpolator_a6e4fcb3bb046ecacbe1855d74cdc47bb_cgraph.map @@ -0,0 +1,4 @@ + + + + diff --git a/docs/class_curve_interpolator_a6e4fcb3bb046ecacbe1855d74cdc47bb_cgraph.md5 b/docs/class_curve_interpolator_a6e4fcb3bb046ecacbe1855d74cdc47bb_cgraph.md5 new file mode 100644 index 000000000..699e7c0eb --- /dev/null +++ b/docs/class_curve_interpolator_a6e4fcb3bb046ecacbe1855d74cdc47bb_cgraph.md5 @@ -0,0 +1 @@ +aee96b92697c0be7d46bcf05d44cf617 \ No newline at end of file diff --git a/docs/class_curve_interpolator_a6e4fcb3bb046ecacbe1855d74cdc47bb_cgraph.png b/docs/class_curve_interpolator_a6e4fcb3bb046ecacbe1855d74cdc47bb_cgraph.png new file mode 100644 index 000000000..4a8621770 Binary files /dev/null and b/docs/class_curve_interpolator_a6e4fcb3bb046ecacbe1855d74cdc47bb_cgraph.png differ diff --git a/docs/class_dallas_temperature_sensors-members.html b/docs/class_dallas_temperature_sensors-members.html index 68b743336..39c718649 100644 --- a/docs/class_dallas_temperature_sensors-members.html +++ b/docs/class_dallas_temperature_sensors-members.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -113,6 +113,7 @@ save_configuration()Configurablevirtual sensorsDallasTemperatureSensors set_configuration(const JsonObject &config)Configurablevirtual + setPriority(uint8_t priority)Enableinline diff --git a/docs/class_dallas_temperature_sensors.html b/docs/class_dallas_temperature_sensors.html index a37a530d1..f46f1ef30 100644 --- a/docs/class_dallas_temperature_sensors.html +++ b/docs/class_dallas_temperature_sensors.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -144,6 +144,8 @@   const int8_t getEnablePriority ()   +void setPriority (uint8_t priority) +  diff --git a/docs/class_debounce-members.html b/docs/class_debounce-members.html index 49aefb8b7..24669fdf9 100644 --- a/docs/class_debounce-members.html +++ b/docs/class_debounce-members.html @@ -30,7 +30,7 @@ @@ -94,41 +94,36 @@

This is the complete list of members for Debounce, including all inherited members.

Public Attributes

SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
as_signalK()SignalKSourceinlinevirtual
attach(std::function< void()> observer)Observable
config_pathConfigurable
Configurable(String config_path)Configurable
connectFrom(ValueProducer< T > *pProducer0, ValueProducer< T > *pProducer1=NULL, ValueProducer< T > *pProducer2=NULL, ValueProducer< T > *pProducer3=NULL, ValueProducer< T > *pProducer4=NULL)SymmetricTransform< T >inline
ValueConsumer::connectFrom(ValueProducer< T > *pProducer, uint8_t inputChannel=0)ValueConsumer< T >inline
connectTo(ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)ValueProducer< T >inline
connectTo(SymmetricTransform< T > *pProducerConsumer, uint8_t inputChannel=0)ValueProducer< T >inline
Debounce(int msMinDelay=200, String sk_path="", String config_path="")Debounce
Enable(uint8_t priority=0)Enable
enable()Enableinlinevirtual
enableAll()Enablestatic
get()ValueProducer< T >inlinevirtual
get_config_schema()Configurablevirtual
get_configuration(JsonBuffer &buf)Configurablevirtual
get_sk_path()SignalKSourceinline
get_sources()SignalKSourceinlinestatic
get_transforms()TransformBaseinlinestatic
getEnablePriority()Enableinline
lastTimeDebounceprotected
load_configuration()Configurableprotectedvirtual
msMinDelayDebounceprotected
notify()Observable
outputValueProducer< T >protected
save_configuration()Configurablevirtual
set_configuration(const JsonObject &config)Configurablevirtual
set_input(bool newValue, uint8_t inputChannel=0) overrideDebouncevirtual
SymmetricTransform::set_input(T newValue, uint8_t inputChannel=0)ValueConsumer< T >inlinevirtual
set_sk_path(const String &path)SignalKSourceinline
SignalKSource(String sk_path)SignalKSource
sk_pathSignalKSourceprotected
SymmetricTransform(String sk_path, String config_path="")SymmetricTransform< T >inline
Transform(String sk_path, String config_path="")Transform< T >inline
TransformBase(String sk_path, String config_path="")TransformBase
ValueProducer()ValueProducer< T >inline
attach(std::function< void()> observer)Observable
config_pathConfigurable
Configurable(String config_path)Configurable
connectFrom(ValueProducer< T > *pProducer0, ValueProducer< T > *pProducer1=NULL, ValueProducer< T > *pProducer2=NULL, ValueProducer< T > *pProducer3=NULL, ValueProducer< T > *pProducer4=NULL)Transform< T, T >inline
ValueConsumer::connectFrom(ValueProducer< T > *pProducer, uint8_t inputChannel=0)ValueConsumer< T >inline
connectTo(ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)ValueProducer< T >inline
connectTo(Transform< T, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< T >inline
Debounce(int msMinDelay=200, String config_path="")Debounce
Enable(uint8_t priority=0)Enable
enable()Enableinlinevirtual
enableAll()Enablestatic
get()ValueProducer< T >inlinevirtual
get_config_schema()Configurablevirtual
get_configuration(JsonBuffer &buf)Configurablevirtual
get_transforms()TransformBaseinlinestatic
getEnablePriority()Enableinline
lastTimeDebounceprotected
load_configuration()Configurableprotectedvirtual
msMinDelayDebounceprotected
notify()Observable
outputValueProducer< T >protected
save_configuration()Configurablevirtual
set_configuration(const JsonObject &config)Configurablevirtual
set_input(bool newValue, uint8_t inputChannel=0) overrideDebouncevirtual
SymmetricTransform::set_input(T newValue, uint8_t inputChannel=0)ValueConsumer< T >inlinevirtual
setPriority(uint8_t priority)Enableinline
SymmetricTransform(String config_path="")SymmetricTransform< T >inline
Transform(String config_path="")Transform< T, T >inline
TransformBase(String config_path="")TransformBase
ValueProducer()ValueProducer< T >inline
diff --git a/docs/class_debounce.html b/docs/class_debounce.html index 893b1014c..9e22c4673 100644 --- a/docs/class_debounce.html +++ b/docs/class_debounce.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -102,55 +102,35 @@
Inheritance graph
- - - - - - - - - - + + + + + + + + +
[legend]
- - + + - - - - - - - - - - - - + + + + + + + - - - - - - - - - - - - - - - - + + @@ -169,6 +149,13 @@ + + + + + + + @@ -176,8 +163,14 @@ - - + + + + + + + +

Public Member Functions

 Debounce (int msMinDelay=200, String sk_path="", String config_path="")
 
 Debounce (int msMinDelay=200, String config_path="")
 
virtual void set_input (bool newValue, uint8_t inputChannel=0) override
 
- Public Member Functions inherited from SymmetricTransform< T >
 SymmetricTransform (String sk_path, String config_path="")
 
SymmetricTransform< T > * connectFrom (ValueProducer< T > *pProducer0, ValueProducer< T > *pProducer1=NULL, ValueProducer< T > *pProducer2=NULL, ValueProducer< T > *pProducer3=NULL, ValueProducer< T > *pProducer4=NULL)
 
- Public Member Functions inherited from ValueConsumer< T >
virtual void set_input (T newValue, uint8_t inputChannel=0)
 
void connectFrom (ValueProducer< T > *pProducer, uint8_t inputChannel=0)
 
- Public Member Functions inherited from Transform< T >
 Transform (String sk_path, String config_path="")
 
 SymmetricTransform (String config_path="")
 
- Public Member Functions inherited from Transform< T, T >
 Transform (String config_path="")
 
Transform< T, T > * connectFrom (ValueProducer< T > *pProducer0, ValueProducer< T > *pProducer1=NULL, ValueProducer< T > *pProducer2=NULL, ValueProducer< T > *pProducer3=NULL, ValueProducer< T > *pProducer4=NULL)
 
- Public Member Functions inherited from TransformBase
 TransformBase (String sk_path, String config_path="")
 
- Public Member Functions inherited from SignalKSource
 SignalKSource (String sk_path)
 
virtual String as_signalK ()
 
String & get_sk_path ()
 
void set_sk_path (const String &path)
 
- Public Member Functions inherited from Observable
void notify ()
 
void attach (std::function< void()> observer)
 
 TransformBase (String config_path="")
 
- Public Member Functions inherited from Configurable
 Configurable (String config_path)
 
 
const int8_t getEnablePriority ()
 
void setPriority (uint8_t priority)
 
- Public Member Functions inherited from ValueConsumer< T >
virtual void set_input (T newValue, uint8_t inputChannel=0)
 
void connectFrom (ValueProducer< T > *pProducer, uint8_t inputChannel=0)
 
- Public Member Functions inherited from ValueProducer< T >
 ValueProducer ()
 
 
void connectTo (ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)
 
SymmetricTransform< T > * connectTo (SymmetricTransform< T > *pProducerConsumer, uint8_t inputChannel=0)
 
template<typename T2 >
Transform< T, T2 > * connectTo (Transform< T, T2 > *pConsumerProducer, uint8_t inputChannel=0)
 
- Public Member Functions inherited from Observable
void notify ()
 
void attach (std::function< void()> observer)
 
@@ -185,9 +178,6 @@ - - - @@ -197,9 +187,6 @@ - - - @@ -215,8 +202,8 @@

Definition at line 12 of file debounce.h.

Constructor & Destructor Documentation

- -

◆ Debounce()

+ +

◆ Debounce()

@@ -227,12 +214,6 @@

int 

- - - - - - diff --git a/docs/class_debounce.js b/docs/class_debounce.js index 2953361ae..92d387c90 100644 --- a/docs/class_debounce.js +++ b/docs/class_debounce.js @@ -1,6 +1,6 @@ var class_debounce = [ - [ "Debounce", "class_debounce.html#ae99846a27be1f2d4046cb5d11cb921cd", null ], + [ "Debounce", "class_debounce.html#a1cf5653ecaffe84d03202cd9f002bba4", null ], [ "set_input", "class_debounce.html#a41ba3a24ea3490fc0717fa4d5f7fae0b", null ], [ "lastTime", "class_debounce.html#a52075b35c5a7036ea7a06813a71117ea", null ], [ "msMinDelay", "class_debounce.html#a3e1dca3d133fdef71d95b58a922c478a", null ] diff --git a/docs/class_debounce__inherit__graph.map b/docs/class_debounce__inherit__graph.map index 140388ab4..d6ce750c4 100644 --- a/docs/class_debounce__inherit__graph.map +++ b/docs/class_debounce__inherit__graph.map @@ -1,12 +1,11 @@ - - - - - - - - - - + + + + + + + + + diff --git a/docs/class_debounce__inherit__graph.md5 b/docs/class_debounce__inherit__graph.md5 index e00aecb47..abf831ec9 100644 --- a/docs/class_debounce__inherit__graph.md5 +++ b/docs/class_debounce__inherit__graph.md5 @@ -1 +1 @@ -5f4103d873ef081166340894d2de644f \ No newline at end of file +41ec24e3db9a0e79653a2f6bee8669be \ No newline at end of file diff --git a/docs/class_debounce__inherit__graph.png b/docs/class_debounce__inherit__graph.png index da77aa609..91da1dd33 100644 Binary files a/docs/class_debounce__inherit__graph.png and b/docs/class_debounce__inherit__graph.png differ diff --git a/docs/class_device-members.html b/docs/class_device-members.html index e9e180cd4..cc2b08db8 100644 --- a/docs/class_device-members.html +++ b/docs/class_device-members.html @@ -30,7 +30,7 @@ @@ -109,6 +109,7 @@ +

Protected Attributes

 
int msMinDelay
 
- Protected Attributes inherited from SignalKSource
String sk_path
 
- Protected Attributes inherited from ValueProducer< T >
output
 
- Static Public Member Functions inherited from TransformBase
static const std::set< TransformBase * > & get_transforms ()
 
- Static Public Member Functions inherited from SignalKSource
static const std::vector< SignalKSource * > & get_sources ()
 
- Static Public Member Functions inherited from Enable
static void enableAll ()
 
msMinDelay = 200,
String sk_path = "",
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
notify()Observable
save_configuration()Configurablevirtual
set_configuration(const JsonObject &config)Configurablevirtual
setPriority(uint8_t priority)Enableinline
diff --git a/docs/class_device.html b/docs/class_device.html index d496a3bd1..526118822 100644 --- a/docs/class_device.html +++ b/docs/class_device.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -150,6 +150,8 @@   const int8_t 
getEnablePriority ()   +void setPriority (uint8_t priority) +  diff --git a/docs/class_difference-members.html b/docs/class_difference-members.html index f75634cff..2ad083bcf 100644 --- a/docs/class_difference-members.html +++ b/docs/class_difference-members.html @@ -30,7 +30,7 @@ @@ -94,38 +94,33 @@

This is the complete list of members for Difference, including all inherited members.

Static Public Member Functions

SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
- - - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + +
as_signalK() override finalDifferencevirtual
attach(std::function< void()> observer)Observable
config_pathConfigurable
Configurable(String config_path)Configurable
connectFrom(ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)SymmetricTransform< float >inline
ValueConsumer< float >::connectFrom(ValueProducer< float > *pProducer, uint8_t inputChannel=0)ValueConsumer< float >inline
connectTo(ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)ValueProducer< float >inline
connectTo(SymmetricTransform< float > *pProducerConsumer, uint8_t inputChannel=0)ValueProducer< float >inline
Difference(String sk_path, float k1, float k2, String config_path="")Difference
enable()Enableinlinevirtual
attach(std::function< void()> observer)Observable
config_pathConfigurable
Configurable(String config_path)Configurable
connectFrom(ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)Transform< float, float >inline
ValueConsumer< float >::connectFrom(ValueProducer< float > *pProducer, uint8_t inputChannel=0)ValueConsumer< float >inline
connectTo(ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)ValueProducer< float >inline
connectTo(Transform< float, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< float >inline
Difference(float k1, float k2, String config_path="")Difference
Enable(uint8_t priority=0)Enable
enableAll()Enablestatic
get()ValueProducer< float >inlinevirtual
get_config_schema() overrideDifferencevirtual
get_configuration(JsonBuffer &buf) override finalDifferencevirtual
get_sk_path()SignalKSourceinline
get_sources()SignalKSourceinlinestatic
get_transforms()TransformBaseinlinestatic
getEnablePriority()Enableinline
load_configuration()Configurableprotectedvirtual
notify()Observable
outputValueProducer< float >protected
save_configuration()Configurablevirtual
set_configuration(const JsonObject &config) override finalDifferencevirtual
set_input(float input, uint8_t inputChannel) override finalDifferencevirtual
set_sk_path(const String &path)SignalKSourceinline
SignalKSource(String sk_path)SignalKSource
sk_pathSignalKSourceprotected
SymmetricTransform(String sk_path, String config_path="")SymmetricTransform< float >inline
Transform(String sk_path, String config_path="")Transform< float >inline
TransformBase(String sk_path, String config_path="")TransformBase
ValueProducer()ValueProducer< float >inline
enable()Enableinlinevirtual
enableAll()Enablestatic
get()ValueProducer< float >inlinevirtual
get_config_schema() overrideDifferencevirtual
get_configuration(JsonBuffer &buf) overrideDifferencevirtual
get_transforms()TransformBaseinlinestatic
getEnablePriority()Enableinline
load_configuration()Configurableprotectedvirtual
notify()Observable
outputValueProducer< float >protected
save_configuration()Configurablevirtual
set_configuration(const JsonObject &config) overrideDifferencevirtual
set_input(float input, uint8_t inputChannel) overrideDifferencevirtual
setPriority(uint8_t priority)Enableinline
SymmetricTransform(String config_path="")SymmetricTransform< float >inline
Transform(String config_path="")Transform< float, float >inline
TransformBase(String config_path="")TransformBase
ValueProducer()ValueProducer< float >inline
diff --git a/docs/class_difference.html b/docs/class_difference.html index 6be378cad..169e89fd4 100644 --- a/docs/class_difference.html +++ b/docs/class_difference.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -101,59 +101,41 @@
Inheritance graph
- - - - - - - - - - + + + + + + + + +
[legend]
- - - - - - - - - - + + + + + + + + - - - - - - - - - - + + + + + + + - - - - - - - - - - - - - - + + @@ -166,6 +148,11 @@ + + + + + @@ -173,17 +160,19 @@ - - + + + + + + +

Public Member Functions

 Difference (String sk_path, float k1, float k2, String config_path="")
 
virtual void set_input (float input, uint8_t inputChannel) override final
 
virtual String as_signalK () override final
 
virtual JsonObject & get_configuration (JsonBuffer &buf) override final
 
virtual bool set_configuration (const JsonObject &config) override final
 
 Difference (float k1, float k2, String config_path="")
 
virtual void set_input (float input, uint8_t inputChannel) override
 
virtual JsonObject & get_configuration (JsonBuffer &buf) override
 
virtual bool set_configuration (const JsonObject &config) override
 
virtual String get_config_schema () override
 
- Public Member Functions inherited from SymmetricTransform< float >
 SymmetricTransform (String sk_path, String config_path="")
 
SymmetricTransform< float > * connectFrom (ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)
 
- Public Member Functions inherited from ValueConsumer< float >
void connectFrom (ValueProducer< float > *pProducer, uint8_t inputChannel=0)
 
- Public Member Functions inherited from Transform< float >
 Transform (String sk_path, String config_path="")
 
 SymmetricTransform (String config_path="")
 
- Public Member Functions inherited from Transform< float, float >
 Transform (String config_path="")
 
Transform< float, float > * connectFrom (ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)
 
- Public Member Functions inherited from TransformBase
 TransformBase (String sk_path, String config_path="")
 
- Public Member Functions inherited from SignalKSource
 SignalKSource (String sk_path)
 
String & get_sk_path ()
 
void set_sk_path (const String &path)
 
- Public Member Functions inherited from Observable
void notify ()
 
void attach (std::function< void()> observer)
 
 TransformBase (String config_path="")
 
- Public Member Functions inherited from Configurable
 Configurable (String config_path)
 
 
const int8_t getEnablePriority ()
 
void setPriority (uint8_t priority)
 
- Public Member Functions inherited from ValueConsumer< float >
void connectFrom (ValueProducer< float > *pProducer, uint8_t inputChannel=0)
 
- Public Member Functions inherited from ValueProducer< float >
 ValueProducer ()
 
 
void connectTo (ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)
 
SymmetricTransform< float > * connectTo (SymmetricTransform< float > *pProducerConsumer, uint8_t inputChannel=0)
 
Transform< float, T2 > * connectTo (Transform< float, T2 > *pConsumerProducer, uint8_t inputChannel=0)
 
- Public Member Functions inherited from Observable
void notify ()
 
void attach (std::function< void()> observer)
 
- - - @@ -193,19 +182,16 @@ - - -

Additional Inherited Members

- Static Public Member Functions inherited from TransformBase
static const std::set< TransformBase * > & get_transforms ()
 
- Static Public Member Functions inherited from SignalKSource
static const std::vector< SignalKSource * > & get_sources ()
 
- Static Public Member Functions inherited from Enable
static void enableAll ()
 
- Protected Member Functions inherited from Configurable
virtual void load_configuration ()
 
- Protected Attributes inherited from SignalKSource
String sk_path
 
- Protected Attributes inherited from ValueProducer< float >
float output
 

Detailed Description

-

Definition at line 8 of file difference.h.

+

Definition at line 7 of file difference.h.

Constructor & Destructor Documentation

- -

◆ Difference()

+ +

◆ Difference()

@@ -213,12 +199,6 @@

Difference::Difference ( - String  - sk_path, - - - - float  k1, @@ -247,36 +227,6 @@

Member Function Documentation

- -

◆ as_signalK()

- -
-
- - - - - -
- - - - - - - -
String Difference::as_signalK ()
-
-finaloverridevirtual
-
-

Returns the data to be reported to the server as a SignalK json string.

- -

Reimplemented from SignalKSource.

- -

Definition at line 22 of file difference.cpp.

- -
-

◆ get_config_schema()

@@ -299,16 +249,16 @@

-

Returns a configuration schema that specifies the key/value pairs that can be expected when calling get_configuration(), or are expected by set_configuration(). The schema will be in JSON Schema format

See also
https://json-schema.org
+

Returns a configuration schema that specifies the key/value pairs that can be expected when calling get_configuration(), or are expected by set_configuration(). The schema will be in JSON Schema format

See also
https://json-schema.org

Reimplemented from Configurable.

-

Definition at line 42 of file difference.cpp.

+

Definition at line 40 of file difference.cpp.

- -

◆ get_configuration()

+ +

◆ get_configuration()

@@ -326,7 +276,7 @@

-finaloverridevirtual +overridevirtual

@@ -334,12 +284,12 @@

Configurable.

-

Definition at line 32 of file difference.cpp.

+

Definition at line 23 of file difference.cpp.

- -

◆ set_configuration()

+ +

◆ set_configuration()

@@ -357,7 +307,7 @@

-finaloverridevirtual +overridevirtual

@@ -365,12 +315,12 @@

Configurable.

-

Definition at line 55 of file difference.cpp.

+

Definition at line 44 of file difference.cpp.

- -

◆ set_input()

+ +

◆ set_input()

@@ -398,7 +348,7 @@

-finaloverridevirtual +overridevirtual

@@ -416,8 +366,8 @@

Here is the call graph for this function:

-
- +
+ diff --git a/docs/class_difference.js b/docs/class_difference.js index 861198984..b3a36865f 100644 --- a/docs/class_difference.js +++ b/docs/class_difference.js @@ -1,9 +1,8 @@ var class_difference = [ - [ "Difference", "class_difference.html#a6a9d692bfdc1c5bbabe5535d3d951834", null ], - [ "as_signalK", "class_difference.html#ae997bff433d26706bf892a9e62a4f16e", null ], + [ "Difference", "class_difference.html#ab37fbe4fe6592f7591a124c1b90f8f48", null ], [ "get_config_schema", "class_difference.html#ac5b6559e3820f2f58bed5d120a440a55", null ], - [ "get_configuration", "class_difference.html#ad4ba9de084c2ae21cda13101911ab086", null ], - [ "set_configuration", "class_difference.html#a2c34de951c3653ecf75d7edff833f2e0", null ], - [ "set_input", "class_difference.html#abf5c7d23d414d2971ddeca8c6bf6b9a7", null ] + [ "get_configuration", "class_difference.html#a70f6832fd0b14c5eb5c2c05188757b72", null ], + [ "set_configuration", "class_difference.html#a57e134a00cd6688d147f93c662520040", null ], + [ "set_input", "class_difference.html#a432ef87751c6bee8e5dadc610dfcb4ff", null ] ]; \ No newline at end of file diff --git a/docs/class_difference__inherit__graph.map b/docs/class_difference__inherit__graph.map index b1f91cac7..4790ec42c 100644 --- a/docs/class_difference__inherit__graph.map +++ b/docs/class_difference__inherit__graph.map @@ -1,12 +1,11 @@ - - - - - - - - - - + + + + + + + + + diff --git a/docs/class_difference__inherit__graph.md5 b/docs/class_difference__inherit__graph.md5 index 1ee9d10ba..b6578a4e5 100644 --- a/docs/class_difference__inherit__graph.md5 +++ b/docs/class_difference__inherit__graph.md5 @@ -1 +1 @@ -ea11bfbae7e680b624f753fd45be03f3 \ No newline at end of file +b5c298b563fdd91384b716735ee8f100 \ No newline at end of file diff --git a/docs/class_difference__inherit__graph.png b/docs/class_difference__inherit__graph.png index a389ca06e..904f7b3d7 100644 Binary files a/docs/class_difference__inherit__graph.png and b/docs/class_difference__inherit__graph.png differ diff --git a/docs/class_difference_a432ef87751c6bee8e5dadc610dfcb4ff_cgraph.map b/docs/class_difference_a432ef87751c6bee8e5dadc610dfcb4ff_cgraph.map new file mode 100644 index 000000000..c86937410 --- /dev/null +++ b/docs/class_difference_a432ef87751c6bee8e5dadc610dfcb4ff_cgraph.map @@ -0,0 +1,4 @@ + + + + diff --git a/docs/class_difference_a432ef87751c6bee8e5dadc610dfcb4ff_cgraph.md5 b/docs/class_difference_a432ef87751c6bee8e5dadc610dfcb4ff_cgraph.md5 new file mode 100644 index 000000000..bc971385f --- /dev/null +++ b/docs/class_difference_a432ef87751c6bee8e5dadc610dfcb4ff_cgraph.md5 @@ -0,0 +1 @@ +ff879146f9447f03d2aea4c4c81d3381 \ No newline at end of file diff --git a/docs/class_difference_a432ef87751c6bee8e5dadc610dfcb4ff_cgraph.png b/docs/class_difference_a432ef87751c6bee8e5dadc610dfcb4ff_cgraph.png new file mode 100644 index 000000000..9fa5eb9a0 Binary files /dev/null and b/docs/class_difference_a432ef87751c6bee8e5dadc610dfcb4ff_cgraph.png differ diff --git a/docs/class_digital_input-members.html b/docs/class_digital_input-members.html index 194a977cb..f5578ad15 100644 --- a/docs/class_digital_input-members.html +++ b/docs/class_digital_input-members.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -112,6 +112,7 @@
pinDigitalInputprotected save_configuration()Configurablevirtual set_configuration(const JsonObject &config)Configurablevirtual + setPriority(uint8_t priority)Enableinline
diff --git a/docs/class_digital_input.html b/docs/class_digital_input.html index 8c5f17e63..d4e31555a 100644 --- a/docs/class_digital_input.html +++ b/docs/class_digital_input.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -142,6 +142,8 @@   const int8_t getEnablePriority ()   +void setPriority (uint8_t priority) +  diff --git a/docs/class_digital_input_counter-members.html b/docs/class_digital_input_counter-members.html index 3fc018fb9..34b8a4990 100644 --- a/docs/class_digital_input_counter-members.html +++ b/docs/class_digital_input_counter-members.html @@ -30,7 +30,7 @@ @@ -98,7 +98,7 @@ - + @@ -117,7 +117,8 @@ - + +

Protected Attributes

SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
config_pathConfigurable
Configurable(String config_path)Configurable
connectTo(ValueConsumer< int > *pConsumer, uint8_t inputChannel=0)ValueProducer< int >inline
connectTo(SymmetricTransform< int > *pProducerConsumer, uint8_t inputChannel=0)ValueProducer< int >inline
connectTo(Transform< int, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< int >inline
Device(String config_path="")Device
DigitalInput(uint8_t pin, int pin_mode, int interrupt_type, String config_path="")DigitalInput
DigitalInputCounter(uint8_t pin, int pin_mode, int interrupt_type, uint read_delay, String config_path="")DigitalInputCounter
pinDigitalInputprotected
save_configuration()Configurablevirtual
set_configuration(const JsonObject &config)Configurablevirtual
ValueProducer()ValueProducer< int >inline
setPriority(uint8_t priority)Enableinline
ValueProducer()ValueProducer< int >inline
diff --git a/docs/class_digital_input_counter.html b/docs/class_digital_input_counter.html index ce3814dd9..62d2c7d06 100644 --- a/docs/class_digital_input_counter.html +++ b/docs/class_digital_input_counter.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -144,6 +144,8 @@   const int8_t getEnablePriority ()   +void setPriority (uint8_t priority) +  - Public Member Functions inherited from ValueProducer< int >  ValueProducer ()   @@ -151,8 +153,8 @@   void connectTo (ValueConsumer< int > *pConsumer, uint8_t inputChannel=0)   -SymmetricTransform< int > * connectTo (SymmetricTransform< int > *pProducerConsumer, uint8_t inputChannel=0) -  +Transform< int, T2 > * connectTo (Transform< int, T2 > *pConsumerProducer, uint8_t inputChannel=0) +  diff --git a/docs/class_digital_input_value-members.html b/docs/class_digital_input_value-members.html index c931b8111..9d14b7ba9 100644 --- a/docs/class_digital_input_value-members.html +++ b/docs/class_digital_input_value-members.html @@ -30,7 +30,7 @@ @@ -98,7 +98,7 @@ - + @@ -117,7 +117,8 @@ - + +

Additional Inherited Members

SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
config_pathConfigurable
Configurable(String config_path)Configurable
connectTo(ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)ValueProducer< T >inline
connectTo(SymmetricTransform< T > *pProducerConsumer, uint8_t inputChannel=0)ValueProducer< T >inline
connectTo(Transform< T, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< T >inline
Device(String config_path="")Device
DigitalInput(uint8_t pin, int pin_mode, int interrupt_type, String config_path="")DigitalInput
DigitalInputValue(uint8_t pin, int pin_mode, int interrupt_type, String config_path="")DigitalInputValue
pinDigitalInputprotected
save_configuration()Configurablevirtual
set_configuration(const JsonObject &config)Configurablevirtual
ValueProducer()ValueProducer< T >inline
setPriority(uint8_t priority)Enableinline
ValueProducer()ValueProducer< T >inline
diff --git a/docs/class_digital_input_value.html b/docs/class_digital_input_value.html index 7f5a7904d..c6460b261 100644 --- a/docs/class_digital_input_value.html +++ b/docs/class_digital_input_value.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -144,6 +144,8 @@   const int8_t getEnablePriority ()   +void setPriority (uint8_t priority) +  - Public Member Functions inherited from ValueProducer< T >  ValueProducer ()   @@ -151,8 +153,9 @@   void connectTo (ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)   -SymmetricTransform< T > * connectTo (SymmetricTransform< T > *pProducerConsumer, uint8_t inputChannel=0) -  +template<typename T2 > +Transform< T, T2 > * connectTo (Transform< T, T2 > *pConsumerProducer, uint8_t inputChannel=0) +  diff --git a/docs/class_enable-members.html b/docs/class_enable-members.html index 15db3a566..000700ac4 100644 --- a/docs/class_enable-members.html +++ b/docs/class_enable-members.html @@ -30,7 +30,7 @@ @@ -99,6 +99,7 @@ +

Additional Inherited Members

SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
enableAll()Enablestatic
getEnablePriority()Enableinline
operator<(const Enable &lhs, const Enable &rhs)Enablefriend
setPriority(uint8_t priority)Enableinline
diff --git a/docs/class_enable.html b/docs/class_enable.html index ece582a62..bb6ec078b 100644 --- a/docs/class_enable.html +++ b/docs/class_enable.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -105,40 +105,44 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
[legend]
@@ -150,6 +154,8 @@ + +
 
const int8_t getEnablePriority ()
 
void setPriority (uint8_t priority)
 
@@ -211,7 +217,7 @@

Called during the initialization process. Override this method to add runtime initialization code to your class

-

Reimplemented in DigitalInputCounter, IPAddrDev, OneWireTemperature, Uptime, DigitalInputValue, FreeMem, DallasTemperatureSensors, GPSInput, Frequency, Integrator, AnalogInput, and SystemHz.

+

Reimplemented in DigitalInputCounter, IPAddrDev, OneWireTemperature, Uptime, DigitalInputValue, FreeMem, DallasTemperatureSensors, GPSInput, Frequency, Integrator, AnalogInput, and SystemHz.

Definition at line 24 of file enable.h.

@@ -279,6 +285,43 @@

Definition at line 27 of file enable.h.

+ + + +

◆ setPriority()

+ +
+
+

Static Public Member Functions

+ + + + +
+ + + + + + + + +
void Enable::setPriority (uint8_t priority)
+
+inline
+
+ +

Definition at line 30 of file enable.h.

+
+Here is the caller graph for this function:
+
+
+ + + + +
+

Friends And Related Function Documentation

@@ -316,7 +359,7 @@

-

Definition at line 38 of file enable.h.

+

Definition at line 41 of file enable.h.

diff --git a/docs/class_enable.js b/docs/class_enable.js index f3756c2ce..2e3184dca 100644 --- a/docs/class_enable.js +++ b/docs/class_enable.js @@ -3,5 +3,6 @@ var class_enable = [ "Enable", "class_enable.html#a62d0a37863086502e168bfa8ab94ebc0", null ], [ "enable", "class_enable.html#a62ea021bf8d986150be346977a8eede3", null ], [ "getEnablePriority", "class_enable.html#a12a65d666c56d9909c2a1958b7cfda40", null ], + [ "setPriority", "class_enable.html#ab4ca14d496a85788896df6c78143994c", null ], [ "operator<", "class_enable.html#a5e6385aea4a61b890368ce0b411f690c", null ] ]; \ No newline at end of file diff --git a/docs/class_enable__inherit__graph.map b/docs/class_enable__inherit__graph.map index 92d2f7361..14c1dabb4 100644 --- a/docs/class_enable__inherit__graph.map +++ b/docs/class_enable__inherit__graph.map @@ -1,38 +1,42 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/class_enable__inherit__graph.md5 b/docs/class_enable__inherit__graph.md5 index a59dedd62..b355571c2 100644 --- a/docs/class_enable__inherit__graph.md5 +++ b/docs/class_enable__inherit__graph.md5 @@ -1 +1 @@ -0c48d32e71f19742e64d4cd1631140a7 \ No newline at end of file +5348410dd895d47691be8a2f328ba94d \ No newline at end of file diff --git a/docs/class_enable__inherit__graph.png b/docs/class_enable__inherit__graph.png index b84a47b1e..f909c9633 100644 Binary files a/docs/class_enable__inherit__graph.png and b/docs/class_enable__inherit__graph.png differ diff --git a/docs/class_enable_ab4ca14d496a85788896df6c78143994c_icgraph.map b/docs/class_enable_ab4ca14d496a85788896df6c78143994c_icgraph.map new file mode 100644 index 000000000..202e4308a --- /dev/null +++ b/docs/class_enable_ab4ca14d496a85788896df6c78143994c_icgraph.map @@ -0,0 +1,4 @@ + + + + diff --git a/docs/class_enable_ab4ca14d496a85788896df6c78143994c_icgraph.md5 b/docs/class_enable_ab4ca14d496a85788896df6c78143994c_icgraph.md5 new file mode 100644 index 000000000..259e50d0c --- /dev/null +++ b/docs/class_enable_ab4ca14d496a85788896df6c78143994c_icgraph.md5 @@ -0,0 +1 @@ +24f9d4265978a0880c3c96daa5b9b905 \ No newline at end of file diff --git a/docs/class_enable_ab4ca14d496a85788896df6c78143994c_icgraph.png b/docs/class_enable_ab4ca14d496a85788896df6c78143994c_icgraph.png new file mode 100644 index 000000000..301454b6d Binary files /dev/null and b/docs/class_enable_ab4ca14d496a85788896df6c78143994c_icgraph.png differ diff --git a/docs/class_free_mem-members.html b/docs/class_free_mem-members.html index c5af89955..fbc1b82f8 100644 --- a/docs/class_free_mem-members.html +++ b/docs/class_free_mem-members.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -98,7 +98,7 @@ config_pathConfigurable Configurable(String config_path)Configurable connectTo(ValueConsumer< uint32_t > *pConsumer, uint8_t inputChannel=0)ValueProducer< uint32_t >inline - connectTo(SymmetricTransform< uint32_t > *pProducerConsumer, uint8_t inputChannel=0)ValueProducer< uint32_t >inline + connectTo(Transform< uint32_t, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< uint32_t >inline Device(String config_path="")Device Enable(uint8_t priority=0)Enable enable() override finalFreeMemvirtual @@ -114,7 +114,8 @@ outputValueProducer< uint32_t >protected save_configuration()Configurablevirtual set_configuration(const JsonObject &config)Configurablevirtual - ValueProducer()ValueProducer< uint32_t >inline + setPriority(uint8_t priority)Enableinline + ValueProducer()ValueProducer< uint32_t >inline diff --git a/docs/class_free_mem.html b/docs/class_free_mem.html index 561799d77..94e05b147 100644 --- a/docs/class_free_mem.html +++ b/docs/class_free_mem.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -140,6 +140,8 @@   const int8_t getEnablePriority ()   +void setPriority (uint8_t priority) +  - Public Member Functions inherited from ValueProducer< uint32_t >  ValueProducer ()   @@ -147,8 +149,8 @@   void connectTo (ValueConsumer< uint32_t > *pConsumer, uint8_t inputChannel=0)   -SymmetricTransform< uint32_t > * connectTo (SymmetricTransform< uint32_t > *pProducerConsumer, uint8_t inputChannel=0) -  +Transform< uint32_t, T2 > * connectTo (Transform< uint32_t, T2 > *pConsumerProducer, uint8_t inputChannel=0) +  diff --git a/docs/class_frequency-members.html b/docs/class_frequency-members.html index 1d8ecc49f..c0b44d61a 100644 --- a/docs/class_frequency-members.html +++ b/docs/class_frequency-members.html @@ -30,7 +30,7 @@ @@ -94,37 +94,32 @@

This is the complete list of members for Frequency, including all inherited members.

Additional Inherited Members

SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
- - - - - + + + + + - - + + - + - - - + - - - - - - - - - + + + + + +
as_signalK() override finalFrequencyvirtual
attach(std::function< void()> observer)Observable
config_pathConfigurable
Configurable(String config_path)Configurable
connectFrom(ValueProducer< T > *pProducer, uint8_t inputChannel=0)ValueConsumer< T >inline
attach(std::function< void()> observer)Observable
config_pathConfigurable
Configurable(String config_path)Configurable
connectFrom(ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)Transform< int, float >inline
ValueConsumer< int >::connectFrom(ValueProducer< int > *pProducer, uint8_t inputChannel=0)ValueConsumer< int >inline
connectTo(ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)ValueProducer< float >inline
connectTo(SymmetricTransform< float > *pProducerConsumer, uint8_t inputChannel=0)ValueProducer< float >inline
enable() override finalFrequencyvirtual
connectTo(Transform< float, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< float >inline
enable() overrideFrequencyvirtual
Enable(uint8_t priority=0)Enable
enableAll()Enablestatic
Frequency(String sk_path, float k=1, String config_path="")Frequency
Frequency(float k=1, String config_path="")Frequency
get()ValueProducer< float >inlinevirtual
get_config_schema() overrideFrequencyvirtual
get_configuration(JsonBuffer &buf) override finalFrequencyvirtual
get_sk_path()SignalKSourceinline
get_sources()SignalKSourceinlinestatic
get_configuration(JsonBuffer &buf) overrideFrequencyvirtual
get_transforms()TransformBaseinlinestatic
getEnablePriority()Enableinline
load_configuration()Configurableprotectedvirtual
notify()Observable
outputValueProducer< float >protected
save_configuration()Configurablevirtual
set_configuration(const JsonObject &config) override finalFrequencyvirtual
set_input(int input, uint8_t inputChannel=0) override finalFrequencyvirtual
ValueConsumer::set_input(T newValue, uint8_t inputChannel=0)ValueConsumer< T >inlinevirtual
set_sk_path(const String &path)SignalKSourceinline
SignalKSource(String sk_path)SignalKSource
sk_pathSignalKSourceprotected
Transform(String sk_path, String config_path="")Transform< float >inline
TransformBase(String sk_path, String config_path="")TransformBase
ValueProducer()ValueProducer< float >inline
set_configuration(const JsonObject &config) overrideFrequencyvirtual
set_input(int input, uint8_t inputChannel=0) overrideFrequencyvirtual
setPriority(uint8_t priority)Enableinline
Transform(String config_path="")Transform< int, float >inline
TransformBase(String config_path="")TransformBase
ValueProducer()ValueProducer< float >inline
diff --git a/docs/class_frequency.html b/docs/class_frequency.html index a2e46f45b..951797273 100644 --- a/docs/class_frequency.html +++ b/docs/class_frequency.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -101,57 +101,39 @@
Inheritance graph
- - - - - - - - - + + + + + + + +
[legend]
- - - - - - - - - - - - + + + + + + + + + + - - - - - - - - + + + + + - - - - - - - - - - - - - - + + @@ -162,6 +144,11 @@ + + + + + @@ -169,17 +156,19 @@ - - + + + + + + +

Public Member Functions

 Frequency (String sk_path, float k=1, String config_path="")
 
virtual void set_input (int input, uint8_t inputChannel=0) override final
 
virtual String as_signalK () override final
 
virtual void enable () override final
 
virtual JsonObject & get_configuration (JsonBuffer &buf) override final
 
virtual bool set_configuration (const JsonObject &config) override final
 
 Frequency (float k=1, String config_path="")
 
virtual void set_input (int input, uint8_t inputChannel=0) override
 
virtual void enable () override
 
virtual JsonObject & get_configuration (JsonBuffer &buf) override
 
virtual bool set_configuration (const JsonObject &config) override
 
virtual String get_config_schema () override
 
- Public Member Functions inherited from ValueConsumer< T >
virtual void set_input (T newValue, uint8_t inputChannel=0)
 
void connectFrom (ValueProducer< T > *pProducer, uint8_t inputChannel=0)
 
- Public Member Functions inherited from Transform< float >
 Transform (String sk_path, String config_path="")
 
- Public Member Functions inherited from Transform< int, float >
 Transform (String config_path="")
 
Transform< int, float > * connectFrom (ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)
 
- Public Member Functions inherited from TransformBase
 TransformBase (String sk_path, String config_path="")
 
- Public Member Functions inherited from SignalKSource
 SignalKSource (String sk_path)
 
String & get_sk_path ()
 
void set_sk_path (const String &path)
 
- Public Member Functions inherited from Observable
void notify ()
 
void attach (std::function< void()> observer)
 
 TransformBase (String config_path="")
 
- Public Member Functions inherited from Configurable
 Configurable (String config_path)
 
 
const int8_t getEnablePriority ()
 
void setPriority (uint8_t priority)
 
- Public Member Functions inherited from ValueConsumer< int >
void connectFrom (ValueProducer< int > *pProducer, uint8_t inputChannel=0)
 
- Public Member Functions inherited from ValueProducer< float >
 ValueProducer ()
 
 
void connectTo (ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)
 
SymmetricTransform< float > * connectTo (SymmetricTransform< float > *pProducerConsumer, uint8_t inputChannel=0)
 
Transform< float, T2 > * connectTo (Transform< float, T2 > *pConsumerProducer, uint8_t inputChannel=0)
 
- Public Member Functions inherited from Observable
void notify ()
 
void attach (std::function< void()> observer)
 
- - - @@ -189,9 +178,6 @@ - - - @@ -200,8 +186,8 @@

Definition at line 9 of file frequency.h.

Constructor & Destructor Documentation

- -

◆ Frequency()

+ +

◆ Frequency()

@@ -209,12 +195,6 @@

Frequency::Frequency

- - - - - - @@ -237,38 +217,8 @@

Member Function Documentation

- -

◆ as_signalK()

- -
-
-

Additional Inherited Members

- Static Public Member Functions inherited from TransformBase
static const std::set< TransformBase * > & get_transforms ()
 
- Static Public Member Functions inherited from SignalKSource
static const std::vector< SignalKSource * > & get_sources ()
 
- Static Public Member Functions inherited from Enable
static void enableAll ()
 
- Protected Member Functions inherited from Configurable
virtual void load_configuration ()
 
- Protected Attributes inherited from SignalKSource
String sk_path
 
- Protected Attributes inherited from ValueProducer< float >
float output
 
(String sk_path,
float  k = 1,
- - - - -
- - - - - - - -
String Frequency::as_signalK ()
-
-finaloverridevirtual
-
-

Returns the data to be reported to the server as a SignalK json string.

- -

Reimplemented from SignalKSource.

- -

Definition at line 23 of file frequency.cpp.

- -
- - -

◆ enable()

+ +

◆ enable()

@@ -293,7 +243,7 @@

Enable.

-

Definition at line 11 of file frequency.cpp.

+

Definition at line 10 of file frequency.cpp.

@@ -319,16 +269,16 @@

-

Returns a configuration schema that specifies the key/value pairs that can be expected when calling get_configuration(), or are expected by set_configuration(). The schema will be in JSON Schema format

See also
https://json-schema.org
+

Returns a configuration schema that specifies the key/value pairs that can be expected when calling get_configuration(), or are expected by set_configuration(). The schema will be in JSON Schema format

See also
https://json-schema.org

Reimplemented from Configurable.

-

Definition at line 41 of file frequency.cpp.

+

Definition at line 38 of file frequency.cpp.

- -

◆ get_configuration()

+ +

◆ get_configuration()

@@ -354,12 +304,12 @@

Configurable.

-

Definition at line 33 of file frequency.cpp.

+

Definition at line 23 of file frequency.cpp.

- -

◆ set_configuration()

+ +

◆ set_configuration()

@@ -385,12 +335,12 @@

Configurable.

-

Definition at line 53 of file frequency.cpp.

+

Definition at line 42 of file frequency.cpp.

- -

◆ set_input()

+ +

◆ set_input()

+

Used to set an input of this consumer. It is usually called automatically by a ValueProducer.

Parameters
+ + + +
newValuethe value of the input
inputChannelConsumers 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 ValueConsumer< int >.

-

Definition at line 15 of file frequency.cpp.

+

Definition at line 14 of file frequency.cpp.

Here is the call graph for this function:
-
- +
+ diff --git a/docs/class_frequency.js b/docs/class_frequency.js index 08b4d8132..3cde1da5c 100644 --- a/docs/class_frequency.js +++ b/docs/class_frequency.js @@ -1,10 +1,9 @@ var class_frequency = [ - [ "Frequency", "class_frequency.html#acea1b0044fbbbdf51eaaea887e6b0d39", null ], - [ "as_signalK", "class_frequency.html#a8c800e44383c952c3afb3653713e9f82", null ], - [ "enable", "class_frequency.html#a2f0884295031b687dadd09add8acb877", null ], + [ "Frequency", "class_frequency.html#abbaff61b74433bb8a990685be24c3c8b", null ], + [ "enable", "class_frequency.html#a0d6846952b3295809421ac18633e397e", null ], [ "get_config_schema", "class_frequency.html#a93e3f28917f7faa7411b95745171f6af", null ], - [ "get_configuration", "class_frequency.html#a40efa67350036f8bdc07be9fd4a94e42", null ], - [ "set_configuration", "class_frequency.html#a52099d6dbece2eab9ec8b053ab28cdf4", null ], - [ "set_input", "class_frequency.html#a8854a4f94e59b2f057655e18a62131ab", null ] + [ "get_configuration", "class_frequency.html#ae121e43d37643d390bc607def68e0e02", null ], + [ "set_configuration", "class_frequency.html#a87d16c67ce064b9b0f671747808c3963", null ], + [ "set_input", "class_frequency.html#a99df388f446a8aa46f465fe464023f55", null ] ]; \ No newline at end of file diff --git a/docs/class_frequency__inherit__graph.map b/docs/class_frequency__inherit__graph.map index 866a81c9f..6f38179cb 100644 --- a/docs/class_frequency__inherit__graph.map +++ b/docs/class_frequency__inherit__graph.map @@ -1,11 +1,10 @@ - - - - - - - - - + + + + + + + + diff --git a/docs/class_frequency__inherit__graph.md5 b/docs/class_frequency__inherit__graph.md5 index db2937c01..8463a65c8 100644 --- a/docs/class_frequency__inherit__graph.md5 +++ b/docs/class_frequency__inherit__graph.md5 @@ -1 +1 @@ -754f1d4161ce569e58a594ea3d18a39a \ No newline at end of file +09a6d75ba97c1677364c35fb97120596 \ No newline at end of file diff --git a/docs/class_frequency__inherit__graph.png b/docs/class_frequency__inherit__graph.png index efa996e53..b0a55ff7b 100644 Binary files a/docs/class_frequency__inherit__graph.png and b/docs/class_frequency__inherit__graph.png differ diff --git a/docs/class_frequency_a99df388f446a8aa46f465fe464023f55_cgraph.map b/docs/class_frequency_a99df388f446a8aa46f465fe464023f55_cgraph.map new file mode 100644 index 000000000..313dad1ff --- /dev/null +++ b/docs/class_frequency_a99df388f446a8aa46f465fe464023f55_cgraph.map @@ -0,0 +1,4 @@ + + + + diff --git a/docs/class_frequency_a99df388f446a8aa46f465fe464023f55_cgraph.md5 b/docs/class_frequency_a99df388f446a8aa46f465fe464023f55_cgraph.md5 new file mode 100644 index 000000000..213a06ca2 --- /dev/null +++ b/docs/class_frequency_a99df388f446a8aa46f465fe464023f55_cgraph.md5 @@ -0,0 +1 @@ +5598d0e794584924e0ec4b02c483a21c \ No newline at end of file diff --git a/docs/class_frequency_a99df388f446a8aa46f465fe464023f55_cgraph.png b/docs/class_frequency_a99df388f446a8aa46f465fe464023f55_cgraph.png new file mode 100644 index 000000000..cd691ce59 Binary files /dev/null and b/docs/class_frequency_a99df388f446a8aa46f465fe464023f55_cgraph.png differ diff --git a/docs/class_g_p_g_g_a_sentence_parser-members.html b/docs/class_g_p_g_g_a_sentence_parser-members.html index c83f54d73..94836cc88 100644 --- a/docs/class_g_p_g_g_a_sentence_parser-members.html +++ b/docs/class_g_p_g_g_a_sentence_parser-members.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
diff --git a/docs/class_g_p_g_g_a_sentence_parser.html b/docs/class_g_p_g_g_a_sentence_parser.html index bcc441d82..0a737420f 100644 --- a/docs/class_g_p_g_g_a_sentence_parser.html +++ b/docs/class_g_p_g_g_a_sentence_parser.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
diff --git a/docs/class_g_p_g_l_l_sentence_parser-members.html b/docs/class_g_p_g_l_l_sentence_parser-members.html index db6bf0c89..706e8e858 100644 --- a/docs/class_g_p_g_l_l_sentence_parser-members.html +++ b/docs/class_g_p_g_l_l_sentence_parser-members.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
diff --git a/docs/class_g_p_g_l_l_sentence_parser.html b/docs/class_g_p_g_l_l_sentence_parser.html index 7ca009011..93c50da07 100644 --- a/docs/class_g_p_g_l_l_sentence_parser.html +++ b/docs/class_g_p_g_l_l_sentence_parser.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
diff --git a/docs/class_g_p_r_m_c_sentence_parser-members.html b/docs/class_g_p_r_m_c_sentence_parser-members.html index 20fbed910..595f6df6f 100644 --- a/docs/class_g_p_r_m_c_sentence_parser-members.html +++ b/docs/class_g_p_r_m_c_sentence_parser-members.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
diff --git a/docs/class_g_p_r_m_c_sentence_parser.html b/docs/class_g_p_r_m_c_sentence_parser.html index f9789580e..b935f47b9 100644 --- a/docs/class_g_p_r_m_c_sentence_parser.html +++ b/docs/class_g_p_r_m_c_sentence_parser.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
diff --git a/docs/class_g_p_s_input-members.html b/docs/class_g_p_s_input-members.html index fe7f3dc55..3f9b19207 100644 --- a/docs/class_g_p_s_input-members.html +++ b/docs/class_g_p_s_input-members.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -111,6 +111,7 @@ notify()Observable save_configuration()Configurablevirtual set_configuration(const JsonObject &config)Configurablevirtual + setPriority(uint8_t priority)Enableinline
diff --git a/docs/class_g_p_s_input.html b/docs/class_g_p_s_input.html index 2c619aceb..52c6201ee 100644 --- a/docs/class_g_p_s_input.html +++ b/docs/class_g_p_s_input.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -140,6 +140,8 @@   const int8_t getEnablePriority ()   +void setPriority (uint8_t priority) +  diff --git a/docs/class_h_t_t_p_server-members.html b/docs/class_h_t_t_p_server-members.html index f38dd8ca2..cce64ed20 100644 --- a/docs/class_h_t_t_p_server-members.html +++ b/docs/class_h_t_t_p_server-members.html @@ -30,7 +30,7 @@ diff --git a/docs/class_h_t_t_p_server.html b/docs/class_h_t_t_p_server.html index 70d29eba5..3e42ebca3 100644 --- a/docs/class_h_t_t_p_server.html +++ b/docs/class_h_t_t_p_server.html @@ -30,7 +30,7 @@ diff --git a/docs/class_i_p_addr_dev-members.html b/docs/class_i_p_addr_dev-members.html index 5d7f3d580..fff10d6e2 100644 --- a/docs/class_i_p_addr_dev-members.html +++ b/docs/class_i_p_addr_dev-members.html @@ -30,7 +30,7 @@ @@ -98,7 +98,7 @@ - + @@ -114,8 +114,9 @@ - - + + +

Public Attributes

SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
config_pathConfigurable
Configurable(String config_path)Configurable
connectTo(ValueConsumer< String > *pConsumer, uint8_t inputChannel=0)ValueProducer< String >inline
connectTo(SymmetricTransform< String > *pProducerConsumer, uint8_t inputChannel=0)ValueProducer< String >inline
connectTo(Transform< String, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< String >inline
Device(String config_path="")Device
Enable(uint8_t priority=0)Enable
enable() override finalIPAddrDevvirtual
outputValueProducer< String >protected
save_configuration()Configurablevirtual
set_configuration(const JsonObject &config)Configurablevirtual
StringDevice(String config_path="")StringDevice
ValueProducer()ValueProducer< String >inline
setPriority(uint8_t priority)Enableinline
StringDevice(String config_path="")StringDevice
ValueProducer()ValueProducer< String >inline
diff --git a/docs/class_i_p_addr_dev.html b/docs/class_i_p_addr_dev.html index e2e6c456c..ce9e14493 100644 --- a/docs/class_i_p_addr_dev.html +++ b/docs/class_i_p_addr_dev.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -144,6 +144,8 @@   const int8_t getEnablePriority ()   +void setPriority (uint8_t priority) +  - Public Member Functions inherited from ValueProducer< String >  ValueProducer ()   @@ -151,8 +153,8 @@   void connectTo (ValueConsumer< String > *pConsumer, uint8_t inputChannel=0)   -SymmetricTransform< String > * connectTo (SymmetricTransform< String > *pProducerConsumer, uint8_t inputChannel=0) -  +Transform< String, T2 > * connectTo (Transform< String, T2 > *pConsumerProducer, uint8_t inputChannel=0) +  diff --git a/docs/class_integer_device-members.html b/docs/class_integer_device-members.html index f11b9130b..a03f8571a 100644 --- a/docs/class_integer_device-members.html +++ b/docs/class_integer_device-members.html @@ -30,7 +30,7 @@ @@ -98,7 +98,7 @@ - + @@ -114,7 +114,8 @@ - + +

Additional Inherited Members

SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
config_pathConfigurable
Configurable(String config_path)Configurable
connectTo(ValueConsumer< int > *pConsumer, uint8_t inputChannel=0)ValueProducer< int >inline
connectTo(SymmetricTransform< int > *pProducerConsumer, uint8_t inputChannel=0)ValueProducer< int >inline
connectTo(Transform< int, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< int >inline
Device(String config_path="")Device
Enable(uint8_t priority=0)Enable
enable()Enableinlinevirtual
outputValueProducer< int >protected
save_configuration()Configurablevirtual
set_configuration(const JsonObject &config)Configurablevirtual
ValueProducer()ValueProducer< int >inline
setPriority(uint8_t priority)Enableinline
ValueProducer()ValueProducer< int >inline
diff --git a/docs/class_integer_device.html b/docs/class_integer_device.html index a7eecf97e..fa0502452 100644 --- a/docs/class_integer_device.html +++ b/docs/class_integer_device.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -140,6 +140,8 @@   const int8_t getEnablePriority ()   +void setPriority (uint8_t priority) +  - Public Member Functions inherited from ValueProducer< int >  ValueProducer ()   @@ -147,8 +149,8 @@   void connectTo (ValueConsumer< int > *pConsumer, uint8_t inputChannel=0)   -SymmetricTransform< int > * connectTo (SymmetricTransform< int > *pProducerConsumer, uint8_t inputChannel=0) -  +Transform< int, T2 > * connectTo (Transform< int, T2 > *pConsumerProducer, uint8_t inputChannel=0) +  diff --git a/docs/class_integrator-members.html b/docs/class_integrator-members.html index 55c3a1702..a88595ea7 100644 --- a/docs/class_integrator-members.html +++ b/docs/class_integrator-members.html @@ -30,7 +30,7 @@ @@ -94,38 +94,33 @@

This is the complete list of members for Integrator, including all inherited members.

Additional Inherited Members

SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + +
as_signalK() override finalIntegratorvirtual
attach(std::function< void()> observer)Observable
config_pathConfigurable
Configurable(String config_path)Configurable
connectFrom(ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)SymmetricTransform< float >inline
ValueConsumer< float >::connectFrom(ValueProducer< float > *pProducer, uint8_t inputChannel=0)ValueConsumer< float >inline
connectTo(ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)ValueProducer< float >inline
connectTo(SymmetricTransform< float > *pProducerConsumer, uint8_t inputChannel=0)ValueProducer< float >inline
enable() override finalIntegratorvirtual
Enable(uint8_t priority=0)Enable
enableAll()Enablestatic
get()ValueProducer< float >inlinevirtual
get_config_schema() overrideIntegratorvirtual
get_configuration(JsonBuffer &buf) override finalIntegratorvirtual
get_sk_path()SignalKSourceinline
get_sources()SignalKSourceinlinestatic
get_transforms()TransformBaseinlinestatic
getEnablePriority()Enableinline
Integrator(String sk_path, float k=1, float value=0, String config_path="")Integrator
load_configuration()Configurableprotectedvirtual
notify()Observable
outputValueProducer< float >protected
save_configuration()Configurablevirtual
set_configuration(const JsonObject &config) override finalIntegratorvirtual
set_input(float input, uint8_t inputChannel=0) override finalIntegratorvirtual
set_sk_path(const String &path)SignalKSourceinline
SignalKSource(String sk_path)SignalKSource
sk_pathSignalKSourceprotected
SymmetricTransform(String sk_path, String config_path="")SymmetricTransform< float >inline
Transform(String sk_path, String config_path="")Transform< float >inline
TransformBase(String sk_path, String config_path="")TransformBase
ValueProducer()ValueProducer< float >inline
attach(std::function< void()> observer)Observable
config_pathConfigurable
Configurable(String config_path)Configurable
connectFrom(ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)Transform< float, float >inline
ValueConsumer< float >::connectFrom(ValueProducer< float > *pProducer, uint8_t inputChannel=0)ValueConsumer< float >inline
connectTo(ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)ValueProducer< float >inline
connectTo(Transform< float, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< float >inline
enable() override finalIntegratorvirtual
Enable(uint8_t priority=0)Enable
enableAll()Enablestatic
get()ValueProducer< float >inlinevirtual
get_config_schema() overrideIntegratorvirtual
get_configuration(JsonBuffer &buf) override finalIntegratorvirtual
get_transforms()TransformBaseinlinestatic
getEnablePriority()Enableinline
Integrator(float k=1, float value=0, String config_path="")Integrator
load_configuration()Configurableprotectedvirtual
notify()Observable
outputValueProducer< float >protected
save_configuration()Configurablevirtual
set_configuration(const JsonObject &config) override finalIntegratorvirtual
set_input(float input, uint8_t inputChannel=0) override finalIntegratorvirtual
setPriority(uint8_t priority)Enableinline
SymmetricTransform(String config_path="")SymmetricTransform< float >inline
Transform(String config_path="")Transform< float, float >inline
TransformBase(String config_path="")TransformBase
ValueProducer()ValueProducer< float >inline
diff --git a/docs/class_integrator.html b/docs/class_integrator.html index 02c36055a..9fd67e28d 100644 --- a/docs/class_integrator.html +++ b/docs/class_integrator.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -101,29 +101,26 @@
Inheritance graph
- - - - - - - - - - + + + + + + + + +
[legend]
- - + + - - @@ -131,31 +128,16 @@ - - - - - - - - - - + + + + + + + - - - - - - - - - - - - - - + + @@ -166,6 +148,11 @@ + + + + + @@ -173,17 +160,19 @@ - - + + + + + + +

Public Member Functions

 Integrator (String sk_path, float k=1, float value=0, String config_path="")
 
 Integrator (float k=1, float value=0, String config_path="")
 
virtual void enable () override final
 
virtual void set_input (float input, uint8_t inputChannel=0) override final
 
String as_signalK () override final
 
virtual JsonObject & get_configuration (JsonBuffer &buf) override final
 
virtual bool set_configuration (const JsonObject &config) override final
virtual String get_config_schema () override
 
- Public Member Functions inherited from SymmetricTransform< float >
 SymmetricTransform (String sk_path, String config_path="")
 
SymmetricTransform< float > * connectFrom (ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)
 
- Public Member Functions inherited from ValueConsumer< float >
void connectFrom (ValueProducer< float > *pProducer, uint8_t inputChannel=0)
 
- Public Member Functions inherited from Transform< float >
 Transform (String sk_path, String config_path="")
 
 SymmetricTransform (String config_path="")
 
- Public Member Functions inherited from Transform< float, float >
 Transform (String config_path="")
 
Transform< float, float > * connectFrom (ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)
 
- Public Member Functions inherited from TransformBase
 TransformBase (String sk_path, String config_path="")
 
- Public Member Functions inherited from SignalKSource
 SignalKSource (String sk_path)
 
String & get_sk_path ()
 
void set_sk_path (const String &path)
 
- Public Member Functions inherited from Observable
void notify ()
 
void attach (std::function< void()> observer)
 
 TransformBase (String config_path="")
 
- Public Member Functions inherited from Configurable
 Configurable (String config_path)
 
 
const int8_t getEnablePriority ()
 
void setPriority (uint8_t priority)
 
- Public Member Functions inherited from ValueConsumer< float >
void connectFrom (ValueProducer< float > *pProducer, uint8_t inputChannel=0)
 
- Public Member Functions inherited from ValueProducer< float >
 ValueProducer ()
 
 
void connectTo (ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)
 
SymmetricTransform< float > * connectTo (SymmetricTransform< float > *pProducerConsumer, uint8_t inputChannel=0)
 
Transform< float, T2 > * connectTo (Transform< float, T2 > *pConsumerProducer, uint8_t inputChannel=0)
 
- Public Member Functions inherited from Observable
void notify ()
 
void attach (std::function< void()> observer)
 
- - - @@ -193,19 +182,16 @@ - - -

Additional Inherited Members

- Static Public Member Functions inherited from TransformBase
static const std::set< TransformBase * > & get_transforms ()
 
- Static Public Member Functions inherited from SignalKSource
static const std::vector< SignalKSource * > & get_sources ()
 
- Static Public Member Functions inherited from Enable
static void enableAll ()
 
- Protected Member Functions inherited from Configurable
virtual void load_configuration ()
 
- Protected Attributes inherited from SignalKSource
String sk_path
 
- Protected Attributes inherited from ValueProducer< float >
float output
 

Detailed Description

-

Definition at line 8 of file integrator.h.

+

Definition at line 7 of file integrator.h.

Constructor & Destructor Documentation

- -

◆ Integrator()

+ +

◆ Integrator()

Member Function Documentation

- -

◆ as_signalK()

- -
-
- - - - - -
- - - - - - - -
String Integrator::as_signalK ()
-
-finaloverridevirtual
-
-

Returns the data to be reported to the server as a SignalK json string.

- -

Reimplemented from SignalKSource.

- -

Definition at line 28 of file integrator.cpp.

- -
-

◆ enable()

@@ -303,7 +253,7 @@

Enable.

-

Definition at line 16 of file integrator.cpp.

+

Definition at line 15 of file integrator.cpp.

@@ -333,7 +283,7 @@

Configurable.

-

Definition at line 47 of file integrator.cpp.

+

Definition at line 43 of file integrator.cpp.

@@ -364,7 +314,7 @@

Configurable.

-

Definition at line 38 of file integrator.cpp.

+

Definition at line 28 of file integrator.cpp.

@@ -395,7 +345,7 @@

Configurable.

-

Definition at line 59 of file integrator.cpp.

+

Definition at line 47 of file integrator.cpp.

@@ -442,7 +392,7 @@

ValueConsumer< float >.

-

Definition at line 23 of file integrator.cpp.

+

Definition at line 22 of file integrator.cpp.

Here is the call graph for this function:
diff --git a/docs/class_integrator.js b/docs/class_integrator.js index aba90d8b2..eef3932cb 100644 --- a/docs/class_integrator.js +++ b/docs/class_integrator.js @@ -1,7 +1,6 @@ var class_integrator = [ - [ "Integrator", "class_integrator.html#a3d6851037fee19338eac9ea2441f51ef", null ], - [ "as_signalK", "class_integrator.html#ad0444330433ed9e46f55050da21f0ea5", null ], + [ "Integrator", "class_integrator.html#a787de1dd45b1ced5607e6209f0e01dd0", null ], [ "enable", "class_integrator.html#ad52503a30ef9abf171209988d256ec22", null ], [ "get_config_schema", "class_integrator.html#a513afaf30460fee68abd295780527d05", null ], [ "get_configuration", "class_integrator.html#a1b4cfd7f598d8456a582865a88d768e7", null ], diff --git a/docs/class_integrator__inherit__graph.map b/docs/class_integrator__inherit__graph.map index dd50f0c9c..59fd1daa6 100644 --- a/docs/class_integrator__inherit__graph.map +++ b/docs/class_integrator__inherit__graph.map @@ -1,12 +1,11 @@ - - - - - - - - - - + + + + + + + + + diff --git a/docs/class_integrator__inherit__graph.md5 b/docs/class_integrator__inherit__graph.md5 index 2bedc8d3a..78a558b3c 100644 --- a/docs/class_integrator__inherit__graph.md5 +++ b/docs/class_integrator__inherit__graph.md5 @@ -1 +1 @@ -f2e590006525681c32469c672ed72abc \ No newline at end of file +e88a6c3d731354caefec8102aaa52d3d \ No newline at end of file diff --git a/docs/class_integrator__inherit__graph.png b/docs/class_integrator__inherit__graph.png index 42be0b961..17e3a7087 100644 Binary files a/docs/class_integrator__inherit__graph.png and b/docs/class_integrator__inherit__graph.png differ diff --git a/docs/class_integrator_a7fb38d2d19aa3e918dbee34b9096f7a6_cgraph.md5 b/docs/class_integrator_a7fb38d2d19aa3e918dbee34b9096f7a6_cgraph.md5 index 77dddbdc5..ede6ef803 100644 --- a/docs/class_integrator_a7fb38d2d19aa3e918dbee34b9096f7a6_cgraph.md5 +++ b/docs/class_integrator_a7fb38d2d19aa3e918dbee34b9096f7a6_cgraph.md5 @@ -1 +1 @@ -8de35a38aed21c1e6eb7441ce811c2c1 \ No newline at end of file +ad14d26984fbc4467e48556f3b5c1fae \ No newline at end of file diff --git a/docs/class_led_blinker-members.html b/docs/class_led_blinker-members.html index c7eb5f67e..17a67a39f 100644 --- a/docs/class_led_blinker-members.html +++ b/docs/class_led_blinker-members.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
diff --git a/docs/class_led_blinker.html b/docs/class_led_blinker.html index 8685851da..a938655c4 100644 --- a/docs/class_led_blinker.html +++ b/docs/class_led_blinker.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
diff --git a/docs/class_linear-members.html b/docs/class_linear-members.html index 93908236b..1d4c4f0da 100644 --- a/docs/class_linear-members.html +++ b/docs/class_linear-members.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -94,38 +94,33 @@

This is the complete list of members for Linear, including all inherited members.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + +
as_signalK() override finalLinearvirtual
attach(std::function< void()> observer)Observable
config_pathConfigurable
Configurable(String config_path)Configurable
connectFrom(ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)SymmetricTransform< float >inline
ValueConsumer< float >::connectFrom(ValueProducer< float > *pProducer, uint8_t inputChannel=0)ValueConsumer< float >inline
connectTo(ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)ValueProducer< float >inline
connectTo(SymmetricTransform< float > *pProducerConsumer, uint8_t inputChannel=0)ValueProducer< float >inline
Enable(uint8_t priority=0)Enable
enable()Enableinlinevirtual
enableAll()Enablestatic
get()ValueProducer< float >inlinevirtual
get_config_schema() overrideLinearvirtual
get_configuration(JsonBuffer &buf) override finalLinearvirtual
get_sk_path()SignalKSourceinline
get_sources()SignalKSourceinlinestatic
get_transforms()TransformBaseinlinestatic
getEnablePriority()Enableinline
Linear(String sk_path, float k, float c, String config_path="")Linear
load_configuration()Configurableprotectedvirtual
notify()Observable
outputValueProducer< float >protected
save_configuration()Configurablevirtual
set_configuration(const JsonObject &config) override finalLinearvirtual
set_input(float input, uint8_t inputChannel=0) override finalLinearvirtual
set_sk_path(const String &path)SignalKSourceinline
SignalKSource(String sk_path)SignalKSource
sk_pathSignalKSourceprotected
SymmetricTransform(String sk_path, String config_path="")SymmetricTransform< float >inline
Transform(String sk_path, String config_path="")Transform< float >inline
TransformBase(String sk_path, String config_path="")TransformBase
ValueProducer()ValueProducer< float >inline
attach(std::function< void()> observer)Observable
config_pathConfigurable
Configurable(String config_path)Configurable
connectFrom(ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)Transform< float, float >inline
ValueConsumer< float >::connectFrom(ValueProducer< float > *pProducer, uint8_t inputChannel=0)ValueConsumer< float >inline
connectTo(ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)ValueProducer< float >inline
connectTo(Transform< float, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< float >inline
Enable(uint8_t priority=0)Enable
enable()Enableinlinevirtual
enableAll()Enablestatic
get()ValueProducer< float >inlinevirtual
get_config_schema() overrideLinearvirtual
get_configuration(JsonBuffer &buf) overrideLinearvirtual
get_transforms()TransformBaseinlinestatic
getEnablePriority()Enableinline
Linear(float k, float c, String config_path="")Linear
load_configuration()Configurableprotectedvirtual
notify()Observable
outputValueProducer< float >protected
save_configuration()Configurablevirtual
set_configuration(const JsonObject &config) overrideLinearvirtual
set_input(float input, uint8_t inputChannel=0) overrideLinearvirtual
setPriority(uint8_t priority)Enableinline
SymmetricTransform(String config_path="")SymmetricTransform< float >inline
Transform(String config_path="")Transform< float, float >inline
TransformBase(String config_path="")TransformBase
ValueProducer()ValueProducer< float >inline
diff --git a/docs/class_linear.html b/docs/class_linear.html index b36c8475a..b16f2b3b3 100644 --- a/docs/class_linear.html +++ b/docs/class_linear.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -101,60 +101,42 @@
Inheritance graph
- - - - - - - - - - - + + + + + + + + + +
[legend]
- - - - - - - - - - + + + + + + + + - - - - - - - - - - + + + + + + + - - - - - - - - - - - - - - + + @@ -167,6 +149,11 @@ + + + + + @@ -174,17 +161,19 @@ - - + + + + + + +

Public Member Functions

 Linear (String sk_path, float k, float c, String config_path="")
 
virtual void set_input (float input, uint8_t inputChannel=0) override final
 
virtual String as_signalK () override final
 
virtual JsonObject & get_configuration (JsonBuffer &buf) override final
 
virtual bool set_configuration (const JsonObject &config) override final
 
 Linear (float k, float c, String config_path="")
 
virtual void set_input (float input, uint8_t inputChannel=0) override
 
virtual JsonObject & get_configuration (JsonBuffer &buf) override
 
virtual bool set_configuration (const JsonObject &config) override
 
virtual String get_config_schema () override
 
- Public Member Functions inherited from SymmetricTransform< float >
 SymmetricTransform (String sk_path, String config_path="")
 
SymmetricTransform< float > * connectFrom (ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)
 
- Public Member Functions inherited from ValueConsumer< float >
void connectFrom (ValueProducer< float > *pProducer, uint8_t inputChannel=0)
 
- Public Member Functions inherited from Transform< float >
 Transform (String sk_path, String config_path="")
 
 SymmetricTransform (String config_path="")
 
- Public Member Functions inherited from Transform< float, float >
 Transform (String config_path="")
 
Transform< float, float > * connectFrom (ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)
 
- Public Member Functions inherited from TransformBase
 TransformBase (String sk_path, String config_path="")
 
- Public Member Functions inherited from SignalKSource
 SignalKSource (String sk_path)
 
String & get_sk_path ()
 
void set_sk_path (const String &path)
 
- Public Member Functions inherited from Observable
void notify ()
 
void attach (std::function< void()> observer)
 
 TransformBase (String config_path="")
 
- Public Member Functions inherited from Configurable
 Configurable (String config_path)
 
 
const int8_t getEnablePriority ()
 
void setPriority (uint8_t priority)
 
- Public Member Functions inherited from ValueConsumer< float >
void connectFrom (ValueProducer< float > *pProducer, uint8_t inputChannel=0)
 
- Public Member Functions inherited from ValueProducer< float >
 ValueProducer ()
 
 
void connectTo (ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)
 
SymmetricTransform< float > * connectTo (SymmetricTransform< float > *pProducerConsumer, uint8_t inputChannel=0)
 
Transform< float, T2 > * connectTo (Transform< float, T2 > *pConsumerProducer, uint8_t inputChannel=0)
 
- Public Member Functions inherited from Observable
void notify ()
 
void attach (std::function< void()> observer)
 
- - - @@ -194,19 +183,16 @@ - - -

Additional Inherited Members

- Static Public Member Functions inherited from TransformBase
static const std::set< TransformBase * > & get_transforms ()
 
- Static Public Member Functions inherited from SignalKSource
static const std::vector< SignalKSource * > & get_sources ()
 
- Static Public Member Functions inherited from Enable
static void enableAll ()
 
- Protected Member Functions inherited from Configurable
virtual void load_configuration ()
 
- Protected Attributes inherited from SignalKSource
String sk_path
 
- Protected Attributes inherited from ValueProducer< float >
float output
 

Detailed Description

-

Definition at line 8 of file linear.h.

+

Definition at line 7 of file linear.h.

Constructor & Destructor Documentation

- -

◆ Linear()

+ +

◆ Linear()

@@ -214,12 +200,6 @@

Linear::Linear ( - String  - sk_path, - - - - float  k, @@ -248,36 +228,6 @@

Member Function Documentation

- -

◆ as_signalK()

- -
-
- - - - - -
- - - - - - - -
String Linear::as_signalK ()
-
-finaloverridevirtual
-
-

Returns the data to be reported to the server as a SignalK json string.

- -

Reimplemented from SignalKSource.

- -

Definition at line 18 of file linear.cpp.

- -
-

◆ get_config_schema()

@@ -300,16 +250,16 @@

-

Returns a configuration schema that specifies the key/value pairs that can be expected when calling get_configuration(), or are expected by set_configuration(). The schema will be in JSON Schema format

See also
https://json-schema.org
+

Returns a configuration schema that specifies the key/value pairs that can be expected when calling get_configuration(), or are expected by set_configuration(). The schema will be in JSON Schema format

See also
https://json-schema.org

Reimplemented from Configurable.

-

Definition at line 38 of file linear.cpp.

+

Definition at line 36 of file linear.cpp.

- -

◆ get_configuration()

+ +

◆ get_configuration()

@@ -335,12 +285,12 @@

Configurable.

-

Definition at line 28 of file linear.cpp.

+

Definition at line 19 of file linear.cpp.

- -

◆ set_configuration()

+ +

◆ set_configuration()

@@ -366,12 +316,12 @@

Configurable.

-

Definition at line 51 of file linear.cpp.

+

Definition at line 40 of file linear.cpp.

- -

◆ set_input()

+ +

◆ set_input()

-
- +
+ diff --git a/docs/class_linear.js b/docs/class_linear.js index b5f22fc13..75b2f9d75 100644 --- a/docs/class_linear.js +++ b/docs/class_linear.js @@ -1,9 +1,8 @@ var class_linear = [ - [ "Linear", "class_linear.html#a084b09a0486056030c80b0f4dfb7cb1f", null ], - [ "as_signalK", "class_linear.html#a03c3950e9baabef8f54eb31d65b752fd", null ], + [ "Linear", "class_linear.html#ad9477f54820b5a234339d342836e9869", null ], [ "get_config_schema", "class_linear.html#afc896eaed1df40409ea3ce17d81929cc", null ], - [ "get_configuration", "class_linear.html#a8d3a1f72738efeb83ed913590105e615", null ], - [ "set_configuration", "class_linear.html#a0135f75a32f4ee0ae76383f10bb5e74b", null ], - [ "set_input", "class_linear.html#aca76127ec02b9e354b0f891d73f24b37", null ] + [ "get_configuration", "class_linear.html#a98f7cf12073c2aa89bbb7f89b13f6299", null ], + [ "set_configuration", "class_linear.html#ab12c626261e763892d4253f48478771a", null ], + [ "set_input", "class_linear.html#a057c8519f6eb7dd28392073010a2cfc3", null ] ]; \ No newline at end of file diff --git a/docs/class_linear__inherit__graph.map b/docs/class_linear__inherit__graph.map index 94425b4ef..de03897c3 100644 --- a/docs/class_linear__inherit__graph.map +++ b/docs/class_linear__inherit__graph.map @@ -1,13 +1,12 @@ - - - - - - - - - - - + + + + + + + + + + diff --git a/docs/class_linear__inherit__graph.md5 b/docs/class_linear__inherit__graph.md5 index 72ca759b9..b46cb7039 100644 --- a/docs/class_linear__inherit__graph.md5 +++ b/docs/class_linear__inherit__graph.md5 @@ -1 +1 @@ -3f86a91d9ff6b3c7017bbda3d3286110 \ No newline at end of file +b7de23216120aa9d448314c263d0bbfd \ No newline at end of file diff --git a/docs/class_linear__inherit__graph.png b/docs/class_linear__inherit__graph.png index 958cd8f2d..afd2839c4 100644 Binary files a/docs/class_linear__inherit__graph.png and b/docs/class_linear__inherit__graph.png differ diff --git a/docs/class_linear_a057c8519f6eb7dd28392073010a2cfc3_cgraph.map b/docs/class_linear_a057c8519f6eb7dd28392073010a2cfc3_cgraph.map new file mode 100644 index 000000000..eb00ceced --- /dev/null +++ b/docs/class_linear_a057c8519f6eb7dd28392073010a2cfc3_cgraph.map @@ -0,0 +1,4 @@ + + + + diff --git a/docs/class_linear_a057c8519f6eb7dd28392073010a2cfc3_cgraph.md5 b/docs/class_linear_a057c8519f6eb7dd28392073010a2cfc3_cgraph.md5 new file mode 100644 index 000000000..7ff57560c --- /dev/null +++ b/docs/class_linear_a057c8519f6eb7dd28392073010a2cfc3_cgraph.md5 @@ -0,0 +1 @@ +62f7d8e847e1f55dc576a29ef27b9b76 \ No newline at end of file diff --git a/docs/class_linear_a057c8519f6eb7dd28392073010a2cfc3_cgraph.png b/docs/class_linear_a057c8519f6eb7dd28392073010a2cfc3_cgraph.png new file mode 100644 index 000000000..4107ec89c Binary files /dev/null and b/docs/class_linear_a057c8519f6eb7dd28392073010a2cfc3_cgraph.png differ diff --git a/docs/class_moving_average-members.html b/docs/class_moving_average-members.html index 71b58d274..2f5a80fc6 100644 --- a/docs/class_moving_average-members.html +++ b/docs/class_moving_average-members.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -94,38 +94,33 @@

This is the complete list of members for MovingAverage, including all inherited members.

- - - - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + +
as_signalK() override finalMovingAveragevirtual
attach(std::function< void()> observer)Observable
config_pathConfigurable
Configurable(String config_path)Configurable
connectFrom(ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)SymmetricTransform< float >inline
ValueConsumer< float >::connectFrom(ValueProducer< float > *pProducer, uint8_t inputChannel=0)ValueConsumer< float >inline
connectTo(ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)ValueProducer< float >inline
connectTo(SymmetricTransform< float > *pProducerConsumer, uint8_t inputChannel=0)ValueProducer< float >inline
enable()Enableinlinevirtual
attach(std::function< void()> observer)Observable
config_pathConfigurable
Configurable(String config_path)Configurable
connectFrom(ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)Transform< float, float >inline
ValueConsumer< float >::connectFrom(ValueProducer< float > *pProducer, uint8_t inputChannel=0)ValueConsumer< float >inline
connectTo(ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)ValueProducer< float >inline
connectTo(Transform< float, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< float >inline
Enable(uint8_t priority=0)Enable
enableAll()Enablestatic
get()ValueProducer< float >inlinevirtual
get_config_schema() overrideMovingAveragevirtual
get_configuration(JsonBuffer &buf) override finalMovingAveragevirtual
get_sk_path()SignalKSourceinline
get_sources()SignalKSourceinlinestatic
get_transforms()TransformBaseinlinestatic
getEnablePriority()Enableinline
load_configuration()Configurableprotectedvirtual
MovingAverage(String sk_path, int n, float k=1., String config_path="")MovingAverage
notify()Observable
outputValueProducer< float >protected
save_configuration()Configurablevirtual
set_configuration(const JsonObject &config) override finalMovingAveragevirtual
set_input(float input, uint8_t inputChannel=0) override finalMovingAveragevirtual
set_sk_path(const String &path)SignalKSourceinline
SignalKSource(String sk_path)SignalKSource
sk_pathSignalKSourceprotected
SymmetricTransform(String sk_path, String config_path="")SymmetricTransform< float >inline
Transform(String sk_path, String config_path="")Transform< float >inline
TransformBase(String sk_path, String config_path="")TransformBase
ValueProducer()ValueProducer< float >inline
enable()Enableinlinevirtual
enableAll()Enablestatic
get()ValueProducer< float >inlinevirtual
get_config_schema() overrideMovingAveragevirtual
get_configuration(JsonBuffer &buf) overrideMovingAveragevirtual
get_transforms()TransformBaseinlinestatic
getEnablePriority()Enableinline
load_configuration()Configurableprotectedvirtual
MovingAverage(int n, float k=1., String config_path="")MovingAverage
notify()Observable
outputValueProducer< float >protected
save_configuration()Configurablevirtual
set_configuration(const JsonObject &config) overrideMovingAveragevirtual
set_input(float input, uint8_t inputChannel=0) overrideMovingAveragevirtual
setPriority(uint8_t priority)Enableinline
SymmetricTransform(String config_path="")SymmetricTransform< float >inline
Transform(String config_path="")Transform< float, float >inline
TransformBase(String config_path="")TransformBase
ValueProducer()ValueProducer< float >inline
diff --git a/docs/class_moving_average.html b/docs/class_moving_average.html index 78cc39f95..64dd7113c 100644 --- a/docs/class_moving_average.html +++ b/docs/class_moving_average.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -101,59 +101,41 @@
Inheritance graph
- - - - - - - - - - + + + + + + + + +
[legend]
- - - - - - - - - - + + + + + + + + - - - - - - - - - - + + + + + + + - - - - - - - - - - - - - - + + @@ -166,6 +148,11 @@ + + + + + @@ -173,17 +160,19 @@ - - + + + + + + +

Public Member Functions

 MovingAverage (String sk_path, int n, float k=1., String config_path="")
 
virtual void set_input (float input, uint8_t inputChannel=0) override final
 
virtual String as_signalK () override final
 
virtual JsonObject & get_configuration (JsonBuffer &buf) override final
 
virtual bool set_configuration (const JsonObject &config) override final
 
 MovingAverage (int n, float k=1., String config_path="")
 
virtual void set_input (float input, uint8_t inputChannel=0) override
 
virtual JsonObject & get_configuration (JsonBuffer &buf) override
 
virtual bool set_configuration (const JsonObject &config) override
 
virtual String get_config_schema () override
 
- Public Member Functions inherited from SymmetricTransform< float >
 SymmetricTransform (String sk_path, String config_path="")
 
SymmetricTransform< float > * connectFrom (ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)
 
- Public Member Functions inherited from ValueConsumer< float >
void connectFrom (ValueProducer< float > *pProducer, uint8_t inputChannel=0)
 
- Public Member Functions inherited from Transform< float >
 Transform (String sk_path, String config_path="")
 
 SymmetricTransform (String config_path="")
 
- Public Member Functions inherited from Transform< float, float >
 Transform (String config_path="")
 
Transform< float, float > * connectFrom (ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)
 
- Public Member Functions inherited from TransformBase
 TransformBase (String sk_path, String config_path="")
 
- Public Member Functions inherited from SignalKSource
 SignalKSource (String sk_path)
 
String & get_sk_path ()
 
void set_sk_path (const String &path)
 
- Public Member Functions inherited from Observable
void notify ()
 
void attach (std::function< void()> observer)
 
 TransformBase (String config_path="")
 
- Public Member Functions inherited from Configurable
 Configurable (String config_path)
 
 
const int8_t getEnablePriority ()
 
void setPriority (uint8_t priority)
 
- Public Member Functions inherited from ValueConsumer< float >
void connectFrom (ValueProducer< float > *pProducer, uint8_t inputChannel=0)
 
- Public Member Functions inherited from ValueProducer< float >
 ValueProducer ()
 
 
void connectTo (ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)
 
SymmetricTransform< float > * connectTo (SymmetricTransform< float > *pProducerConsumer, uint8_t inputChannel=0)
 
Transform< float, T2 > * connectTo (Transform< float, T2 > *pConsumerProducer, uint8_t inputChannel=0)
 
- Public Member Functions inherited from Observable
void notify ()
 
void attach (std::function< void()> observer)
 
- - - @@ -193,9 +182,6 @@ - - - @@ -204,8 +190,8 @@

Definition at line 9 of file moving_average.h.

Constructor & Destructor Documentation

- -

◆ MovingAverage()

+ +

◆ MovingAverage()

@@ -213,12 +199,6 @@

MovingAverage::MovingAverage

- - - - - - @@ -247,36 +227,6 @@

Member Function Documentation

- -

◆ as_signalK()

- -
-
-

Additional Inherited Members

- Static Public Member Functions inherited from TransformBase
static const std::set< TransformBase * > & get_transforms ()
 
- Static Public Member Functions inherited from SignalKSource
static const std::vector< SignalKSource * > & get_sources ()
 
- Static Public Member Functions inherited from Enable
static void enableAll ()
 
- Protected Member Functions inherited from Configurable
virtual void load_configuration ()
 
- Protected Attributes inherited from SignalKSource
String sk_path
 
- Protected Attributes inherited from ValueProducer< float >
float output
 
(String sk_path,
int  n,
- - - - -
- - - - - - - -
String MovingAverage::as_signalK ()
-
-finaloverridevirtual
-
-

Returns the data to be reported to the server as a SignalK json string.

- -

Reimplemented from SignalKSource.

- -

Definition at line 21 of file moving_average.cpp.

- -
-

◆ get_config_schema()

@@ -299,16 +249,16 @@

-

Returns a configuration schema that specifies the key/value pairs that can be expected when calling get_configuration(), or are expected by set_configuration(). The schema will be in JSON Schema format

See also
https://json-schema.org
+

Returns a configuration schema that specifies the key/value pairs that can be expected when calling get_configuration(), or are expected by set_configuration(). The schema will be in JSON Schema format

See also
https://json-schema.org

Reimplemented from Configurable.

-

Definition at line 40 of file moving_average.cpp.

+

Definition at line 38 of file moving_average.cpp.

- -

◆ get_configuration()

+ +

◆ get_configuration()

@@ -334,12 +284,12 @@

Configurable.

-

Definition at line 31 of file moving_average.cpp.

+

Definition at line 22 of file moving_average.cpp.

- -

◆ set_configuration()

+ +

◆ set_configuration()

@@ -365,12 +315,12 @@

Configurable.

-

Definition at line 52 of file moving_average.cpp.

+

Definition at line 43 of file moving_average.cpp.

- -

◆ set_input()

+ +

◆ set_input()

-
- +
+ diff --git a/docs/class_moving_average.js b/docs/class_moving_average.js index 48200a488..b3579d5ba 100644 --- a/docs/class_moving_average.js +++ b/docs/class_moving_average.js @@ -1,9 +1,8 @@ var class_moving_average = [ - [ "MovingAverage", "class_moving_average.html#a0ffb04a59f74c1e58920de64a8136e5f", null ], - [ "as_signalK", "class_moving_average.html#afb4db64f5dbaae11bc4d3cd09b8b8af0", null ], + [ "MovingAverage", "class_moving_average.html#adda127d69bc5441a3f4ca98d51c87f4b", null ], [ "get_config_schema", "class_moving_average.html#ad6f06b147a017e528e3d8b991cec2763", null ], - [ "get_configuration", "class_moving_average.html#a36b9fbfa38ae531a86efa19ccda45e99", null ], - [ "set_configuration", "class_moving_average.html#ac8d53bded62d48de3533bea218e86d66", null ], - [ "set_input", "class_moving_average.html#ac953bfbae65b9acde7a2a770b029c5bd", null ] + [ "get_configuration", "class_moving_average.html#a1cac9948f8ca32b8d4446e419b09cccb", null ], + [ "set_configuration", "class_moving_average.html#a9f02a3c253c6456e4d5c063ea5f6d364", null ], + [ "set_input", "class_moving_average.html#a22a08de98351ed805b49beecb234ab0b", null ] ]; \ No newline at end of file diff --git a/docs/class_moving_average__inherit__graph.map b/docs/class_moving_average__inherit__graph.map index 05244e4de..777fc8a0e 100644 --- a/docs/class_moving_average__inherit__graph.map +++ b/docs/class_moving_average__inherit__graph.map @@ -1,12 +1,11 @@ - - - - - - - - - - + + + + + + + + + diff --git a/docs/class_moving_average__inherit__graph.md5 b/docs/class_moving_average__inherit__graph.md5 index b2d421e4b..c65b12bbe 100644 --- a/docs/class_moving_average__inherit__graph.md5 +++ b/docs/class_moving_average__inherit__graph.md5 @@ -1 +1 @@ -13855c0f0c6ff69cd5dddb6e042cda42 \ No newline at end of file +a65c994a7ce55310d6068283d2adbcbc \ No newline at end of file diff --git a/docs/class_moving_average__inherit__graph.png b/docs/class_moving_average__inherit__graph.png index 0403068e1..38f7bd2b2 100644 Binary files a/docs/class_moving_average__inherit__graph.png and b/docs/class_moving_average__inherit__graph.png differ diff --git a/docs/class_moving_average_a22a08de98351ed805b49beecb234ab0b_cgraph.map b/docs/class_moving_average_a22a08de98351ed805b49beecb234ab0b_cgraph.map new file mode 100644 index 000000000..663a2f013 --- /dev/null +++ b/docs/class_moving_average_a22a08de98351ed805b49beecb234ab0b_cgraph.map @@ -0,0 +1,4 @@ + + + + diff --git a/docs/class_moving_average_a22a08de98351ed805b49beecb234ab0b_cgraph.md5 b/docs/class_moving_average_a22a08de98351ed805b49beecb234ab0b_cgraph.md5 new file mode 100644 index 000000000..3d5165f18 --- /dev/null +++ b/docs/class_moving_average_a22a08de98351ed805b49beecb234ab0b_cgraph.md5 @@ -0,0 +1 @@ +da37c05e0e8544f52d56faf8d040c7ee \ No newline at end of file diff --git a/docs/class_moving_average_a22a08de98351ed805b49beecb234ab0b_cgraph.png b/docs/class_moving_average_a22a08de98351ed805b49beecb234ab0b_cgraph.png new file mode 100644 index 000000000..b323f00ff Binary files /dev/null and b/docs/class_moving_average_a22a08de98351ed805b49beecb234ab0b_cgraph.png differ diff --git a/docs/class_n_m_e_a_parser-members.html b/docs/class_n_m_e_a_parser-members.html index 9ffc4d708..ec3b68a82 100644 --- a/docs/class_n_m_e_a_parser-members.html +++ b/docs/class_n_m_e_a_parser-members.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
diff --git a/docs/class_n_m_e_a_parser.html b/docs/class_n_m_e_a_parser.html index e6611ab97..1d26940c1 100644 --- a/docs/class_n_m_e_a_parser.html +++ b/docs/class_n_m_e_a_parser.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
diff --git a/docs/class_networking-members.html b/docs/class_networking-members.html index bed8f1fce..76df7aefe 100644 --- a/docs/class_networking-members.html +++ b/docs/class_networking-members.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
diff --git a/docs/class_networking.html b/docs/class_networking.html index 3202762d7..0d8aa08b9 100644 --- a/docs/class_networking.html +++ b/docs/class_networking.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -233,7 +233,7 @@

Configurable.

-

Definition at line 81 of file networking.cpp.

+

Definition at line 88 of file networking.cpp.

@@ -264,7 +264,7 @@

Configurable.

-

Definition at line 91 of file networking.cpp.

+

Definition at line 92 of file networking.cpp.

Here is the call graph for this function:
@@ -292,7 +292,7 @@

-

Definition at line 71 of file networking.cpp.

+

Definition at line 72 of file networking.cpp.

Here is the caller graph for this function:
@@ -322,7 +322,7 @@

-

Definition at line 105 of file networking.cpp.

+

Definition at line 106 of file networking.cpp.

Here is the caller graph for this function:
@@ -363,7 +363,7 @@

Configurable.

-

Definition at line 97 of file networking.cpp.

+

Definition at line 98 of file networking.cpp.

Here is the call graph for this function:
@@ -392,7 +392,7 @@

-

Definition at line 75 of file networking.cpp.

+

Definition at line 76 of file networking.cpp.

@@ -412,7 +412,7 @@

-

Definition at line 36 of file networking.cpp.

+

Definition at line 37 of file networking.cpp.

Here is the call graph for this function:
diff --git a/docs/class_numeric_device-members.html b/docs/class_numeric_device-members.html index 725bba4f2..acd3659b9 100644 --- a/docs/class_numeric_device-members.html +++ b/docs/class_numeric_device-members.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -98,7 +98,7 @@ config_pathConfigurable Configurable(String config_path)Configurable connectTo(ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)ValueProducer< float >inline - connectTo(SymmetricTransform< float > *pProducerConsumer, uint8_t inputChannel=0)ValueProducer< float >inline + connectTo(Transform< float, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< float >inline Device(String config_path="")Device Enable(uint8_t priority=0)Enable enable()Enableinlinevirtual @@ -114,7 +114,8 @@ outputValueProducer< float >protected save_configuration()Configurablevirtual set_configuration(const JsonObject &config)Configurablevirtual - ValueProducer()ValueProducer< float >inline + setPriority(uint8_t priority)Enableinline + ValueProducer()ValueProducer< float >inline

diff --git a/docs/class_numeric_device.html b/docs/class_numeric_device.html index 842190e25..46e957894 100644 --- a/docs/class_numeric_device.html +++ b/docs/class_numeric_device.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -144,6 +144,8 @@   const int8_t getEnablePriority ()   +void setPriority (uint8_t priority) +  - Public Member Functions inherited from ValueProducer< float >  ValueProducer ()   @@ -151,8 +153,8 @@   void connectTo (ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)   -SymmetricTransform< float > * connectTo (SymmetricTransform< float > *pProducerConsumer, uint8_t inputChannel=0) -  +Transform< float, T2 > * connectTo (Transform< float, T2 > *pConsumerProducer, uint8_t inputChannel=0) +  diff --git a/docs/class_observable-members.html b/docs/class_observable-members.html index b050d40e5..8fd845ebe 100644 --- a/docs/class_observable-members.html +++ b/docs/class_observable-members.html @@ -30,7 +30,7 @@ diff --git a/docs/class_observable.html b/docs/class_observable.html index b9890be61..6f54b24c0 100644 --- a/docs/class_observable.html +++ b/docs/class_observable.html @@ -30,7 +30,7 @@ @@ -101,55 +101,55 @@
Inheritance graph
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
[legend]

Additional Inherited Members

SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -190,7 +190,7 @@

- + @@ -218,21 +218,20 @@

- + - - - - - - - - - - - - + + + + + + + + + + + diff --git a/docs/class_observable__inherit__graph.map b/docs/class_observable__inherit__graph.map index 4cf51a908..80de8886b 100644 --- a/docs/class_observable__inherit__graph.map +++ b/docs/class_observable__inherit__graph.map @@ -1,51 +1,51 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/class_observable__inherit__graph.md5 b/docs/class_observable__inherit__graph.md5 index 3b3a27a6f..5a48d8df2 100644 --- a/docs/class_observable__inherit__graph.md5 +++ b/docs/class_observable__inherit__graph.md5 @@ -1 +1 @@ -f438308669985b4bbc3d2082d4e69d6f \ No newline at end of file +ff13c6c4b5fa5b92e32bf6affc273343 \ No newline at end of file diff --git a/docs/class_observable__inherit__graph.png b/docs/class_observable__inherit__graph.png index d552d5fec..86976b0a6 100644 Binary files a/docs/class_observable__inherit__graph.png and b/docs/class_observable__inherit__graph.png differ diff --git a/docs/class_observable_a099bf851e05bb8c1a25e83f2a1389e58_icgraph.map b/docs/class_observable_a099bf851e05bb8c1a25e83f2a1389e58_icgraph.map index 6e5263f33..3d2d5606f 100644 --- a/docs/class_observable_a099bf851e05bb8c1a25e83f2a1389e58_icgraph.map +++ b/docs/class_observable_a099bf851e05bb8c1a25e83f2a1389e58_icgraph.map @@ -1,17 +1,16 @@ - + - - - - - - - - - - - - + + + + + + + + + + + diff --git a/docs/class_observable_a099bf851e05bb8c1a25e83f2a1389e58_icgraph.md5 b/docs/class_observable_a099bf851e05bb8c1a25e83f2a1389e58_icgraph.md5 index 1b243779e..a2e5b8d3c 100644 --- a/docs/class_observable_a099bf851e05bb8c1a25e83f2a1389e58_icgraph.md5 +++ b/docs/class_observable_a099bf851e05bb8c1a25e83f2a1389e58_icgraph.md5 @@ -1 +1 @@ -60ea71bcb6f32413f571f25738f02700 \ No newline at end of file +ffe8e7b82a1d8ce736b9bf5c7aa27c9d \ No newline at end of file diff --git a/docs/class_observable_a099bf851e05bb8c1a25e83f2a1389e58_icgraph.png b/docs/class_observable_a099bf851e05bb8c1a25e83f2a1389e58_icgraph.png index 485778115..c40f9b524 100644 Binary files a/docs/class_observable_a099bf851e05bb8c1a25e83f2a1389e58_icgraph.png and b/docs/class_observable_a099bf851e05bb8c1a25e83f2a1389e58_icgraph.png differ diff --git a/docs/class_observable_af72ed9c9cf7157a33caad4b930232e69_icgraph.map b/docs/class_observable_af72ed9c9cf7157a33caad4b930232e69_icgraph.map index 4c955f2a1..6f320b495 100644 --- a/docs/class_observable_af72ed9c9cf7157a33caad4b930232e69_icgraph.map +++ b/docs/class_observable_af72ed9c9cf7157a33caad4b930232e69_icgraph.map @@ -3,6 +3,6 @@ - + diff --git a/docs/class_observable_af72ed9c9cf7157a33caad4b930232e69_icgraph.md5 b/docs/class_observable_af72ed9c9cf7157a33caad4b930232e69_icgraph.md5 index 2e29327d6..b10677473 100644 --- a/docs/class_observable_af72ed9c9cf7157a33caad4b930232e69_icgraph.md5 +++ b/docs/class_observable_af72ed9c9cf7157a33caad4b930232e69_icgraph.md5 @@ -1 +1 @@ -a11eaeb0f1c7e1ba7d1a4dd8b469e202 \ No newline at end of file +0527b8cd13c0717e1f66816fdb31723a \ No newline at end of file diff --git a/docs/class_observable_af72ed9c9cf7157a33caad4b930232e69_icgraph.png b/docs/class_observable_af72ed9c9cf7157a33caad4b930232e69_icgraph.png index 78f882658..1bdc82356 100644 Binary files a/docs/class_observable_af72ed9c9cf7157a33caad4b930232e69_icgraph.png and b/docs/class_observable_af72ed9c9cf7157a33caad4b930232e69_icgraph.png differ diff --git a/docs/class_observable_value-members.html b/docs/class_observable_value-members.html index bf5315815..64a770dab 100644 --- a/docs/class_observable_value-members.html +++ b/docs/class_observable_value-members.html @@ -30,7 +30,7 @@

@@ -96,7 +96,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
- + diff --git a/docs/class_observable_value.html b/docs/class_observable_value.html index 4ec00c89d..6004b0c8c 100644 --- a/docs/class_observable_value.html +++ b/docs/class_observable_value.html @@ -30,7 +30,7 @@ @@ -124,8 +124,9 @@ - - + + + diff --git a/docs/class_one_wire_temperature-members.html b/docs/class_one_wire_temperature-members.html index adc642ec2..cbb437c44 100644 --- a/docs/class_one_wire_temperature-members.html +++ b/docs/class_one_wire_temperature-members.html @@ -30,7 +30,7 @@ @@ -98,7 +98,7 @@ - + @@ -115,7 +115,8 @@ - + +
attach(std::function< void()> observer)Observable
connectTo(ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)ValueProducer< T >inline
connectTo(SymmetricTransform< T > *pProducerConsumer, uint8_t inputChannel=0)ValueProducer< T >inline
connectTo(Transform< T, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< T >inline
get()ValueProducer< T >inlinevirtual
notify()Observable
ObservableValue()ObservableValue< T >inline
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
 
void connectTo (ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)
 
SymmetricTransform< T > * connectTo (SymmetricTransform< T > *pProducerConsumer, uint8_t inputChannel=0)
 
template<typename T2 >
Transform< T, T2 > * connectTo (Transform< T, T2 > *pConsumerProducer, uint8_t inputChannel=0)
 
- Public Member Functions inherited from Observable
void notify ()
 
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
config_pathConfigurable
Configurable(String config_path)Configurable
connectTo(ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)ValueProducer< float >inline
connectTo(SymmetricTransform< float > *pProducerConsumer, uint8_t inputChannel=0)ValueProducer< float >inline
connectTo(Transform< float, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< float >inline
Device(String config_path="")Device
enable() override finalOneWireTemperaturevirtual
Enable(uint8_t priority=0)Enable
outputValueProducer< float >protected
save_configuration()Configurablevirtual
set_configuration(const JsonObject &config) override finalOneWireTemperaturevirtual
ValueProducer()ValueProducer< float >inline
setPriority(uint8_t priority)Enableinline
ValueProducer()ValueProducer< float >inline

diff --git a/docs/class_one_wire_temperature.html b/docs/class_one_wire_temperature.html index 99848ee6c..db6faa8b6 100644 --- a/docs/class_one_wire_temperature.html +++ b/docs/class_one_wire_temperature.html @@ -30,7 +30,7 @@
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -144,6 +144,8 @@   const int8_t 
getEnablePriority ()   +void setPriority (uint8_t priority) +  - Public Member Functions inherited from ValueProducer< float >  ValueProducer ()   @@ -151,8 +153,8 @@   void connectTo (ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)   -SymmetricTransform< float > * connectTo (SymmetricTransform< float > *pProducerConsumer, uint8_t inputChannel=0) -  +Transform< float, T2 > * connectTo (Transform< float, T2 > *pConsumerProducer, uint8_t inputChannel=0) +  @@ -233,7 +235,7 @@

Enable.

-

Definition at line 114 of file onewire_temperature.cpp.

+

Definition at line 115 of file onewire_temperature.cpp.

@@ -263,7 +265,7 @@

Configurable.

-

Definition at line 143 of file onewire_temperature.cpp.

+

Definition at line 151 of file onewire_temperature.cpp.

diff --git a/docs/class_p_s_t_i030_sentence_parser-members.html b/docs/class_p_s_t_i030_sentence_parser-members.html index 8fe5946ad..5272fab0d 100644 --- a/docs/class_p_s_t_i030_sentence_parser-members.html +++ b/docs/class_p_s_t_i030_sentence_parser-members.html @@ -30,7 +30,7 @@

diff --git a/docs/class_p_s_t_i030_sentence_parser.html b/docs/class_p_s_t_i030_sentence_parser.html index 8bbb4e7c2..0ec93d771 100644 --- a/docs/class_p_s_t_i030_sentence_parser.html +++ b/docs/class_p_s_t_i030_sentence_parser.html @@ -30,7 +30,7 @@ diff --git a/docs/class_p_s_t_i032_sentence_parser-members.html b/docs/class_p_s_t_i032_sentence_parser-members.html index 2faaa74ec..29d7a98b4 100644 --- a/docs/class_p_s_t_i032_sentence_parser-members.html +++ b/docs/class_p_s_t_i032_sentence_parser-members.html @@ -30,7 +30,7 @@ diff --git a/docs/class_p_s_t_i032_sentence_parser.html b/docs/class_p_s_t_i032_sentence_parser.html index 95b99807d..e852844c3 100644 --- a/docs/class_p_s_t_i032_sentence_parser.html +++ b/docs/class_p_s_t_i032_sentence_parser.html @@ -30,7 +30,7 @@ diff --git a/docs/class_p_s_t_i_sentence_parser-members.html b/docs/class_p_s_t_i_sentence_parser-members.html index 8f3f8a317..3a8cf5e31 100644 --- a/docs/class_p_s_t_i_sentence_parser-members.html +++ b/docs/class_p_s_t_i_sentence_parser-members.html @@ -30,7 +30,7 @@ diff --git a/docs/class_p_s_t_i_sentence_parser.html b/docs/class_p_s_t_i_sentence_parser.html index 27268a298..eab104bac 100644 --- a/docs/class_p_s_t_i_sentence_parser.html +++ b/docs/class_p_s_t_i_sentence_parser.html @@ -30,7 +30,7 @@ diff --git a/docs/class_s_k_delta-members.html b/docs/class_s_k_delta-members.html index 8c79d240a..6c2db171c 100644 --- a/docs/class_s_k_delta-members.html +++ b/docs/class_s_k_delta-members.html @@ -30,7 +30,7 @@ diff --git a/docs/class_s_k_delta.html b/docs/class_s_k_delta.html index 6e7900583..4f54e341e 100644 --- a/docs/class_s_k_delta.html +++ b/docs/class_s_k_delta.html @@ -30,7 +30,7 @@ @@ -95,7 +95,7 @@
-

#include <signal_k.h>

+

#include <signalk_delta.h>

Additional Inherited Members

SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
SensESP -  0.3.0 +  0.4.0
Universal Signal K sensor framework for ESP8266 and ESP32
@@ -112,7 +112,7 @@

Public Member Functions

Detailed Description

-

Definition at line 11 of file signal_k.h.

+

Definition at line 11 of file signalk_delta.h.

Constructor & Destructor Documentation

◆ SKDelta()

@@ -140,7 +140,7 @@

-

Definition at line 6 of file signal_k.cpp.

+

Definition at line 6 of file signalk_delta.cpp.

@@ -161,7 +161,7 @@

-

Definition at line 10 of file signal_k.cpp.

+

Definition at line 10 of file signalk_delta.cpp.

Here is the caller graph for this function:
@@ -189,7 +189,7 @@

-

Definition at line 17 of file signal_k.cpp.

+

Definition at line 17 of file signalk_delta.cpp.

Here is the caller graph for this function:
@@ -220,7 +220,7 @@

-

Definition at line 21 of file signal_k.cpp.

+

Definition at line 21 of file signalk_delta.cpp.

Here is the caller graph for this function:
@@ -259,7 +259,7 @@

-

Definition at line 17 of file signal_k.h.

+

Definition at line 17 of file signalk_delta.h.

Here is the caller graph for this function:
@@ -273,8 +273,8 @@

signal_k.h -
  • src/system/signal_k.cpp
  • +
  • src/signalk/signalk_delta.h
  • +
  • src/signalk/signalk_delta.cpp
  • diff --git a/docs/class_s_k_emitter-members.html b/docs/class_s_k_emitter-members.html new file mode 100644 index 000000000..401669ea2 --- /dev/null +++ b/docs/class_s_k_emitter-members.html @@ -0,0 +1,116 @@ + + + + + + + +SensESP: Member List + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SensESP +  0.4.0 +
    +
    Universal Signal K sensor framework for ESP8266 and ESP32
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    SKEmitter Member List
    +
    +
    + +

    This is the complete list of members for SKEmitter, including all inherited members.

    + + + + + + + + + +
    as_signalK()SKEmitterinlinevirtual
    attach(std::function< void()> observer)Observable
    get_sk_path()SKEmitterinline
    get_sources()SKEmitterinlinestatic
    notify()Observable
    set_sk_path(const String &path)SKEmitterinline
    sk_pathSKEmitterprotected
    SKEmitter(String sk_path)SKEmitter
    +
    + + + + diff --git a/docs/class_s_k_emitter.html b/docs/class_s_k_emitter.html new file mode 100644 index 000000000..4b97a9853 --- /dev/null +++ b/docs/class_s_k_emitter.html @@ -0,0 +1,358 @@ + + + + + + + +SensESP: SKEmitter Class Reference + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SensESP +  0.4.0 +
    +
    Universal Signal K sensor framework for ESP8266 and ESP32
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + + +
    + +

    #include <signalk_emitter.h>

    +
    +Inheritance diagram for SKEmitter:
    +
    +
    Inheritance graph
    + + + + + + + + +
    [legend]
    + + + + + + + + + + + + + + + +

    +Public Member Functions

     SKEmitter (String sk_path)
     
    virtual String as_signalK ()
     
    String & get_sk_path ()
     
    void set_sk_path (const String &path)
     
    - Public Member Functions inherited from Observable
    void notify ()
     
    void attach (std::function< void()> observer)
     
    + + + +

    +Static Public Member Functions

    static const std::vector< SKEmitter * > & get_sources ()
     
    + + + +

    +Protected Attributes

    String sk_path
     
    +

    Detailed Description

    +

    A SignalK emitter is one that produces SignalK output to be forwarded to the SignalK server (if the system is connected to one). SignalK is reported via the as_signalK() method.

    + +

    Definition at line 19 of file signalk_emitter.h.

    +

    Constructor & Destructor Documentation

    + +

    ◆ SKEmitter()

    + +
    +
    + + + + + + + + +
    SKEmitter::SKEmitter (String sk_path)
    +
    +

    The constructor

    Parameters
    + + +
    sk_pathThe SignalK path that identifies this particular output
    +
    +
    + +

    Definition at line 5 of file signalk_emitter.cpp.

    + +
    +
    +

    Member Function Documentation

    + +

    ◆ as_signalK()

    + +
    +
    + + + + + +
    + + + + + + + +
    virtual String SKEmitter::as_signalK ()
    +
    +inlinevirtual
    +
    +

    Returns the data to be reported to the server as a SignalK json string.

    + +

    Reimplemented in SKOutput< T >, SKOutput< Position >, SKOutputPosition, and SKOutputTime.

    + +

    Definition at line 34 of file signalk_emitter.h.

    + +
    +
    + +

    ◆ get_sk_path()

    + +
    +
    + + + + + +
    + + + + + + + +
    String& SKEmitter::get_sk_path ()
    +
    +inline
    +
    +

    Returns the current SignalK path. An empty string is returned if this particular source is not configured or intended to return actual data.

    + +

    Definition at line 42 of file signalk_emitter.h.

    +
    +Here is the caller graph for this function:
    +
    +
    + + + + + + + +
    + +
    +
    + +

    ◆ get_sources()

    + +
    +
    + + + + + +
    + + + + + + + +
    static const std::vector<SKEmitter*>& SKEmitter::get_sources ()
    +
    +inlinestatic
    +
    + +

    Definition at line 50 of file signalk_emitter.h.

    +
    +Here is the caller graph for this function:
    +
    +
    + + + + +
    + +
    +
    + +

    ◆ set_sk_path()

    + +
    +
    + + + + + +
    + + + + + + + + +
    void SKEmitter::set_sk_path (const String & path)
    +
    +inline
    +
    + +

    Definition at line 46 of file signalk_emitter.h.

    +
    +Here is the caller graph for this function:
    +
    +
    + + + + + +
    + +
    +
    +

    Member Data Documentation

    + +

    ◆ sk_path

    + +
    +
    + + + + + +
    + + + + +
    String SKEmitter::sk_path
    +
    +protected
    +
    + +

    Definition at line 55 of file signalk_emitter.h.

    + +
    +
    +
    The documentation for this class was generated from the following files: +
    +
    + + + + diff --git a/docs/class_s_k_emitter.js b/docs/class_s_k_emitter.js new file mode 100644 index 000000000..579015e73 --- /dev/null +++ b/docs/class_s_k_emitter.js @@ -0,0 +1,8 @@ +var class_s_k_emitter = +[ + [ "SKEmitter", "class_s_k_emitter.html#aeba0ccd27a8b6bad1e2ddbf2603a5d8d", null ], + [ "as_signalK", "class_s_k_emitter.html#aa08f537c7d7b1782fea4d381a65cf521", null ], + [ "get_sk_path", "class_s_k_emitter.html#ab619d4a66c7683bf06350809e8c2153f", null ], + [ "set_sk_path", "class_s_k_emitter.html#a670348fb1ef1bf3d5e1ba49660fc15d9", null ], + [ "sk_path", "class_s_k_emitter.html#a06dbe70e930074437b12b86ac4e2464c", null ] +]; \ No newline at end of file diff --git a/docs/class_s_k_emitter__inherit__graph.map b/docs/class_s_k_emitter__inherit__graph.map new file mode 100644 index 000000000..a595c2011 --- /dev/null +++ b/docs/class_s_k_emitter__inherit__graph.map @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/docs/class_s_k_emitter__inherit__graph.md5 b/docs/class_s_k_emitter__inherit__graph.md5 new file mode 100644 index 000000000..53fccb9c5 --- /dev/null +++ b/docs/class_s_k_emitter__inherit__graph.md5 @@ -0,0 +1 @@ +e83f7014dcf6f7d61b419d081b26042d \ No newline at end of file diff --git a/docs/class_s_k_emitter__inherit__graph.png b/docs/class_s_k_emitter__inherit__graph.png new file mode 100644 index 000000000..f8995d4bb Binary files /dev/null and b/docs/class_s_k_emitter__inherit__graph.png differ diff --git a/docs/class_s_k_emitter_a14e45e259c78d1e4ab7bdcce94fc8b02_icgraph.map b/docs/class_s_k_emitter_a14e45e259c78d1e4ab7bdcce94fc8b02_icgraph.map new file mode 100644 index 000000000..897a29b47 --- /dev/null +++ b/docs/class_s_k_emitter_a14e45e259c78d1e4ab7bdcce94fc8b02_icgraph.map @@ -0,0 +1,4 @@ + + + + diff --git a/docs/class_s_k_emitter_a14e45e259c78d1e4ab7bdcce94fc8b02_icgraph.md5 b/docs/class_s_k_emitter_a14e45e259c78d1e4ab7bdcce94fc8b02_icgraph.md5 new file mode 100644 index 000000000..dfa5f824e --- /dev/null +++ b/docs/class_s_k_emitter_a14e45e259c78d1e4ab7bdcce94fc8b02_icgraph.md5 @@ -0,0 +1 @@ +8b0ef549dbbaf793a7e91bb64dd83565 \ No newline at end of file diff --git a/docs/class_s_k_emitter_a14e45e259c78d1e4ab7bdcce94fc8b02_icgraph.png b/docs/class_s_k_emitter_a14e45e259c78d1e4ab7bdcce94fc8b02_icgraph.png new file mode 100644 index 000000000..2c6f32075 Binary files /dev/null and b/docs/class_s_k_emitter_a14e45e259c78d1e4ab7bdcce94fc8b02_icgraph.png differ diff --git a/docs/class_s_k_emitter_a670348fb1ef1bf3d5e1ba49660fc15d9_icgraph.map b/docs/class_s_k_emitter_a670348fb1ef1bf3d5e1ba49660fc15d9_icgraph.map new file mode 100644 index 000000000..473d80635 --- /dev/null +++ b/docs/class_s_k_emitter_a670348fb1ef1bf3d5e1ba49660fc15d9_icgraph.map @@ -0,0 +1,5 @@ + + + + + diff --git a/docs/class_s_k_emitter_a670348fb1ef1bf3d5e1ba49660fc15d9_icgraph.md5 b/docs/class_s_k_emitter_a670348fb1ef1bf3d5e1ba49660fc15d9_icgraph.md5 new file mode 100644 index 000000000..bbca9612a --- /dev/null +++ b/docs/class_s_k_emitter_a670348fb1ef1bf3d5e1ba49660fc15d9_icgraph.md5 @@ -0,0 +1 @@ +b808ae0972e441ad9b51385d30faaba4 \ No newline at end of file diff --git a/docs/class_s_k_emitter_a670348fb1ef1bf3d5e1ba49660fc15d9_icgraph.png b/docs/class_s_k_emitter_a670348fb1ef1bf3d5e1ba49660fc15d9_icgraph.png new file mode 100644 index 000000000..2d25280e4 Binary files /dev/null and b/docs/class_s_k_emitter_a670348fb1ef1bf3d5e1ba49660fc15d9_icgraph.png differ diff --git a/docs/class_s_k_emitter_ab619d4a66c7683bf06350809e8c2153f_icgraph.map b/docs/class_s_k_emitter_ab619d4a66c7683bf06350809e8c2153f_icgraph.map new file mode 100644 index 000000000..c1649513d --- /dev/null +++ b/docs/class_s_k_emitter_ab619d4a66c7683bf06350809e8c2153f_icgraph.map @@ -0,0 +1,7 @@ + + + + + + + diff --git a/docs/class_s_k_emitter_ab619d4a66c7683bf06350809e8c2153f_icgraph.md5 b/docs/class_s_k_emitter_ab619d4a66c7683bf06350809e8c2153f_icgraph.md5 new file mode 100644 index 000000000..8ac25586c --- /dev/null +++ b/docs/class_s_k_emitter_ab619d4a66c7683bf06350809e8c2153f_icgraph.md5 @@ -0,0 +1 @@ +fc0258e6034ac063306f4e5ca5d4b0fc \ No newline at end of file diff --git a/docs/class_s_k_emitter_ab619d4a66c7683bf06350809e8c2153f_icgraph.png b/docs/class_s_k_emitter_ab619d4a66c7683bf06350809e8c2153f_icgraph.png new file mode 100644 index 000000000..48f22e21a Binary files /dev/null and b/docs/class_s_k_emitter_ab619d4a66c7683bf06350809e8c2153f_icgraph.png differ diff --git a/docs/class_s_k_output-members.html b/docs/class_s_k_output-members.html new file mode 100644 index 000000000..196db27bd --- /dev/null +++ b/docs/class_s_k_output-members.html @@ -0,0 +1,142 @@ + + + + + + + +SensESP: Member List + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SensESP +  0.4.0 +
    +
    Universal Signal K sensor framework for ESP8266 and ESP32
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    SKOutput< T > Member List
    +
    +
    + +

    This is the complete list of members for SKOutput< T >, including all inherited members.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    as_signalK() overrideSKOutput< T >inlinevirtual
    attach(std::function< void()> observer)Observable
    config_pathConfigurable
    Configurable(String config_path)Configurable
    connectFrom(ValueProducer< T > *pProducer0, ValueProducer< T > *pProducer1=NULL, ValueProducer< T > *pProducer2=NULL, ValueProducer< T > *pProducer3=NULL, ValueProducer< T > *pProducer4=NULL)Transform< T, T >inline
    ValueConsumer::connectFrom(ValueProducer< T > *pProducer, uint8_t inputChannel=0)ValueConsumer< T >inline
    connectTo(ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)ValueProducer< T >inline
    connectTo(Transform< T, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< T >inline
    Enable(uint8_t priority=0)Enable
    enable()Enableinlinevirtual
    enableAll()Enablestatic
    get()ValueProducer< T >inlinevirtual
    get_config_schema() overrideSKOutput< T >inlinevirtual
    get_configuration(JsonBuffer &buf) overrideSKOutput< T >inlinevirtual
    get_sk_path()SKEmitterinline
    get_sources()SKEmitterinlinestatic
    get_transforms()TransformBaseinlinestatic
    getEnablePriority()Enableinline
    load_configuration()Configurableprotectedvirtual
    notify()Observable
    outputValueProducer< T >protected
    save_configuration()Configurablevirtual
    set_configuration(const JsonObject &config) overrideSKOutput< T >inlinevirtual
    set_input(T newValue, uint8_t inputChannel=0) overrideSKOutput< T >inlinevirtual
    set_sk_path(const String &path)SKEmitterinline
    setPriority(uint8_t priority)Enableinline
    sk_pathSKEmitterprotected
    SKEmitter(String sk_path)SKEmitter
    SKOutput()SKOutput< T >inline
    SKOutput(String sk_path, String config_path="")SKOutput< T >inline
    SymmetricTransform(String config_path="")SymmetricTransform< T >inline
    Transform(String config_path="")Transform< T, T >inline
    TransformBase(String config_path="")TransformBase
    ValueProducer()ValueProducer< T >inline
    +
    + + + + diff --git a/docs/class_s_k_output.html b/docs/class_s_k_output.html new file mode 100644 index 000000000..7f656bba3 --- /dev/null +++ b/docs/class_s_k_output.html @@ -0,0 +1,485 @@ + + + + + + + +SensESP: SKOutput< T > Class Template Reference + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SensESP +  0.4.0 +
    +
    Universal Signal K sensor framework for ESP8266 and ESP32
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    SKOutput< T > Class Template Reference
    +
    +
    + +

    #include <signalk_output.h>

    +
    +Inheritance diagram for SKOutput< T >:
    +
    +
    Inheritance graph
    + + + + + + + + + + + + +
    [legend]
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Public Member Functions

     SKOutput ()
     
     SKOutput (String sk_path, String config_path="")
     
    virtual void set_input (T newValue, uint8_t inputChannel=0) override
     
    virtual String as_signalK () override
     
    virtual JsonObject & get_configuration (JsonBuffer &buf) override
     
    String get_config_schema () override
     
    virtual bool set_configuration (const JsonObject &config) override
     
    - Public Member Functions inherited from SKEmitter
     SKEmitter (String sk_path)
     
    String & get_sk_path ()
     
    void set_sk_path (const String &path)
     
    - Public Member Functions inherited from Observable
    void notify ()
     
    void attach (std::function< void()> observer)
     
    - Public Member Functions inherited from SymmetricTransform< T >
     SymmetricTransform (String config_path="")
     
    - Public Member Functions inherited from Transform< T, T >
     Transform (String config_path="")
     
    Transform< T, T > * connectFrom (ValueProducer< T > *pProducer0, ValueProducer< T > *pProducer1=NULL, ValueProducer< T > *pProducer2=NULL, ValueProducer< T > *pProducer3=NULL, ValueProducer< T > *pProducer4=NULL)
     
    - Public Member Functions inherited from TransformBase
     TransformBase (String config_path="")
     
    - Public Member Functions inherited from Configurable
     Configurable (String config_path)
     
    virtual void save_configuration ()
     
    - Public Member Functions inherited from Enable
     Enable (uint8_t priority=0)
     
    virtual void enable ()
     
    const int8_t getEnablePriority ()
     
    void setPriority (uint8_t priority)
     
    - Public Member Functions inherited from ValueConsumer< T >
    void connectFrom (ValueProducer< T > *pProducer, uint8_t inputChannel=0)
     
    - Public Member Functions inherited from ValueProducer< T >
     ValueProducer ()
     
    virtual const T & get ()
     
    void connectTo (ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)
     
    template<typename T2 >
    Transform< T, T2 > * connectTo (Transform< T, T2 > *pConsumerProducer, uint8_t inputChannel=0)
     
    + + + + + + + + + + + + + + + + + + + + + + +

    +Additional Inherited Members

    - Static Public Member Functions inherited from SKEmitter
    static const std::vector< SKEmitter * > & get_sources ()
     
    - Static Public Member Functions inherited from TransformBase
    static const std::set< TransformBase * > & get_transforms ()
     
    - Static Public Member Functions inherited from Enable
    static void enableAll ()
     
    - Public Attributes inherited from Configurable
    const String config_path
     
    - Protected Member Functions inherited from Configurable
    virtual void load_configuration ()
     
    - Protected Attributes inherited from SKEmitter
    String sk_path
     
    - Protected Attributes inherited from ValueProducer< T >
    output
     
    +

    Detailed Description

    +

    template<typename T>
    +class SKOutput< T >

    + + +

    Definition at line 17 of file signalk_output.h.

    +

    Constructor & Destructor Documentation

    + +

    ◆ SKOutput() [1/2]

    + +
    +
    +
    +template<typename T>
    + + + + + +
    + + + + + + + +
    SKOutput< T >::SKOutput ()
    +
    +inline
    +
    + +

    Definition at line 20 of file signalk_output.h.

    + +
    +
    + +

    ◆ SKOutput() [2/2]

    + +
    +
    +
    +template<typename T>
    + + + + + +
    + + + + + + + + + + + + + + + + + + +
    SKOutput< T >::SKOutput (String sk_path,
    String config_path = "" 
    )
    +
    +inline
    +
    + +

    Definition at line 22 of file signalk_output.h.

    + +
    +
    +

    Member Function Documentation

    + +

    ◆ as_signalK()

    + +
    +
    +
    +template<typename T>
    + + + + + +
    + + + + + + + +
    virtual String SKOutput< T >::as_signalK ()
    +
    +inlineoverridevirtual
    +
    +

    Returns the data to be reported to the server as a SignalK json string.

    + +

    Reimplemented from SKEmitter.

    + +

    Reimplemented in SKOutputPosition.

    + +

    Definition at line 34 of file signalk_output.h.

    + +
    +
    + +

    ◆ get_config_schema()

    + +
    +
    +
    +template<typename T>
    + + + + + +
    + + + + + + + +
    String SKOutput< T >::get_config_schema ()
    +
    +inlineoverridevirtual
    +
    +

    Returns a configuration schema that specifies the key/value pairs that can be expected when calling get_configuration(), or are expected by set_configuration(). The schema will be in JSON Schema format

    See also
    https://json-schema.org
    + +

    Reimplemented from Configurable.

    + +

    Definition at line 49 of file signalk_output.h.

    + +
    +
    + +

    ◆ get_configuration()

    + +
    +
    +
    +template<typename T>
    + + + + + +
    + + + + + + + + +
    virtual JsonObject& SKOutput< T >::get_configuration (JsonBuffer & buf)
    +
    +inlineoverridevirtual
    +
    +

    Returns the current configuration data as a JsonObject. In general, the current state of local member variables are saved to a new object created with JsonBuffer::createObject() and returned.

    + +

    Reimplemented from Configurable.

    + +

    Reimplemented in SKOutputPosition.

    + +

    Definition at line 43 of file signalk_output.h.

    + +
    +
    + +

    ◆ set_configuration()

    + +
    +
    +
    +template<typename T>
    + + + + + +
    + + + + + + + + +
    virtual bool SKOutput< T >::set_configuration (const JsonObject & config)
    +
    +inlineoverridevirtual
    +
    +

    Sets the current state of local member variables using the data stored in config.

    + +

    Reimplemented from Configurable.

    + +

    Reimplemented in SKOutputPosition.

    + +

    Definition at line 53 of file signalk_output.h.

    + +
    +
    + +

    ◆ set_input()

    + +
    +
    +
    +template<typename T>
    + + + + + +
    + + + + + + + + + + + + + + + + + + +
    virtual void SKOutput< T >::set_input (newValue,
    uint8_t inputChannel = 0 
    )
    +
    +inlineoverridevirtual
    +
    +

    Used to set an input of this consumer. It is usually called automatically by a ValueProducer.

    Parameters
    + + + +
    newValuethe value of the input
    inputChannelConsumers 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 ValueConsumer< T >.

    + +

    Definition at line 28 of file signalk_output.h.

    + +
    +
    +
    The documentation for this class was generated from the following file: +
    +
    + + + + diff --git a/docs/class_s_k_output.js b/docs/class_s_k_output.js new file mode 100644 index 000000000..77b6e46b0 --- /dev/null +++ b/docs/class_s_k_output.js @@ -0,0 +1,10 @@ +var class_s_k_output = +[ + [ "SKOutput", "class_s_k_output.html#a88f9638dd4779818b41a62738ba44876", null ], + [ "SKOutput", "class_s_k_output.html#a811a99c30626b6840000b0c152aa1f37", null ], + [ "as_signalK", "class_s_k_output.html#a07b3524ca9ffa1dff03f4bf522d9e3d2", null ], + [ "get_config_schema", "class_s_k_output.html#a0f29018517bcb51943dae1dd7bbace0a", null ], + [ "get_configuration", "class_s_k_output.html#a1020f0eb3e0eb6bc10f57034c7fbc0c6", null ], + [ "set_configuration", "class_s_k_output.html#a406e7e56220dd41bd567c56c0e6b9a4d", null ], + [ "set_input", "class_s_k_output.html#a43d76eef72e8dad90ee13a001c265be8", null ] +]; \ No newline at end of file diff --git a/docs/class_s_k_output__inherit__graph.map b/docs/class_s_k_output__inherit__graph.map new file mode 100644 index 000000000..d609913a7 --- /dev/null +++ b/docs/class_s_k_output__inherit__graph.map @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/docs/class_s_k_output__inherit__graph.md5 b/docs/class_s_k_output__inherit__graph.md5 new file mode 100644 index 000000000..116324fed --- /dev/null +++ b/docs/class_s_k_output__inherit__graph.md5 @@ -0,0 +1 @@ +25b88b16246543e526cd2824e739c5b8 \ No newline at end of file diff --git a/docs/class_s_k_output__inherit__graph.png b/docs/class_s_k_output__inherit__graph.png new file mode 100644 index 000000000..e4342b6fc Binary files /dev/null and b/docs/class_s_k_output__inherit__graph.png differ diff --git a/docs/class_s_k_output_position-members.html b/docs/class_s_k_output_position-members.html new file mode 100644 index 000000000..c9b4ce34c --- /dev/null +++ b/docs/class_s_k_output_position-members.html @@ -0,0 +1,143 @@ + + + + + + + +SensESP: Member List + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SensESP +  0.4.0 +
    +
    Universal Signal K sensor framework for ESP8266 and ESP32
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    SKOutputPosition Member List
    +
    +
    + +

    This is the complete list of members for SKOutputPosition, including all inherited members.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    as_signalK() overrideSKOutputPositionvirtual
    attach(std::function< void()> observer)Observable
    config_pathConfigurable
    Configurable(String config_path)Configurable
    connectFrom(ValueProducer< Position > *pProducer0, ValueProducer< Position > *pProducer1=NULL, ValueProducer< Position > *pProducer2=NULL, ValueProducer< Position > *pProducer3=NULL, ValueProducer< Position > *pProducer4=NULL)Transform< Position, Position >inline
    ValueConsumer< Position >::connectFrom(ValueProducer< Position > *pProducer, uint8_t inputChannel=0)ValueConsumer< Position >inline
    connectTo(ValueConsumer< Position > *pConsumer, uint8_t inputChannel=0)ValueProducer< Position >inline
    connectTo(Transform< Position, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< Position >inline
    Enable(uint8_t priority=0)Enable
    enable()Enableinlinevirtual
    enableAll()Enablestatic
    get()ValueProducer< Position >inlinevirtual
    get_config_schema() overrideSKOutputPositionvirtual
    get_configuration(JsonBuffer &buf) overrideSKOutputPositionvirtual
    get_sk_path()SKEmitterinline
    get_sources()SKEmitterinlinestatic
    get_transforms()TransformBaseinlinestatic
    getEnablePriority()Enableinline
    load_configuration()Configurableprotectedvirtual
    notify()Observable
    outputValueProducer< Position >protected
    save_configuration()Configurablevirtual
    set_configuration(const JsonObject &config) overrideSKOutputPositionvirtual
    set_input(Position newValue, uint8_t inputChannel=0) overrideSKOutput< Position >inlinevirtual
    set_sk_path(const String &path)SKEmitterinline
    setPriority(uint8_t priority)Enableinline
    sk_pathSKEmitterprotected
    SKEmitter(String sk_path)SKEmitter
    SKOutput()SKOutput< Position >inline
    SKOutput(String sk_path, String config_path="")SKOutput< Position >inline
    SKOutputPosition(String sk_path, String config_path="")SKOutputPositioninline
    SymmetricTransform(String config_path="")SymmetricTransform< Position >inline
    Transform(String config_path="")Transform< Position, Position >inline
    TransformBase(String config_path="")TransformBase
    ValueProducer()ValueProducer< Position >inline
    +
    + + + + diff --git a/docs/class_s_k_output_position.html b/docs/class_s_k_output_position.html new file mode 100644 index 000000000..d0c56df98 --- /dev/null +++ b/docs/class_s_k_output_position.html @@ -0,0 +1,421 @@ + + + + + + + +SensESP: SKOutputPosition Class Reference + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SensESP +  0.4.0 +
    +
    Universal Signal K sensor framework for ESP8266 and ESP32
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    SKOutputPosition Class Reference
    +
    +
    + +

    #include <signalk_position.h>

    +
    +Inheritance diagram for SKOutputPosition:
    +
    +
    Inheritance graph
    + + + + + + + + + + + + + +
    [legend]
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Public Member Functions

     SKOutputPosition (String sk_path, String config_path="")
     
    virtual String as_signalK () override
     
    virtual JsonObject & get_configuration (JsonBuffer &buf) override
     
    virtual bool set_configuration (const JsonObject &config) override
     
    virtual String get_config_schema () override
     
    - Public Member Functions inherited from SKOutput< Position >
     SKOutput ()
     
     SKOutput (String sk_path, String config_path="")
     
    virtual void set_input (Position newValue, uint8_t inputChannel=0) override
     
    String get_config_schema () override
     
    - Public Member Functions inherited from SKEmitter
     SKEmitter (String sk_path)
     
    String & get_sk_path ()
     
    void set_sk_path (const String &path)
     
    - Public Member Functions inherited from Observable
    void notify ()
     
    void attach (std::function< void()> observer)
     
    - Public Member Functions inherited from SymmetricTransform< Position >
     SymmetricTransform (String config_path="")
     
    - Public Member Functions inherited from Transform< Position, Position >
     Transform (String config_path="")
     
    Transform< Position, Position > * connectFrom (ValueProducer< Position > *pProducer0, ValueProducer< Position > *pProducer1=NULL, ValueProducer< Position > *pProducer2=NULL, ValueProducer< Position > *pProducer3=NULL, ValueProducer< Position > *pProducer4=NULL)
     
    - Public Member Functions inherited from TransformBase
     TransformBase (String config_path="")
     
    - Public Member Functions inherited from Configurable
     Configurable (String config_path)
     
    virtual void save_configuration ()
     
    - Public Member Functions inherited from Enable
     Enable (uint8_t priority=0)
     
    virtual void enable ()
     
    const int8_t getEnablePriority ()
     
    void setPriority (uint8_t priority)
     
    - Public Member Functions inherited from ValueConsumer< Position >
    void connectFrom (ValueProducer< Position > *pProducer, uint8_t inputChannel=0)
     
    - Public Member Functions inherited from ValueProducer< Position >
     ValueProducer ()
     
    virtual const Positionget ()
     
    void connectTo (ValueConsumer< Position > *pConsumer, uint8_t inputChannel=0)
     
    Transform< Position, T2 > * connectTo (Transform< Position, T2 > *pConsumerProducer, uint8_t inputChannel=0)
     
    + + + + + + + + + + + + + + + + + + + + + + +

    +Additional Inherited Members

    - Static Public Member Functions inherited from SKEmitter
    static const std::vector< SKEmitter * > & get_sources ()
     
    - Static Public Member Functions inherited from TransformBase
    static const std::set< TransformBase * > & get_transforms ()
     
    - Static Public Member Functions inherited from Enable
    static void enableAll ()
     
    - Public Attributes inherited from Configurable
    const String config_path
     
    - Protected Member Functions inherited from Configurable
    virtual void load_configuration ()
     
    - Protected Attributes inherited from SKEmitter
    String sk_path
     
    - Protected Attributes inherited from ValueProducer< Position >
    Position output
     
    +

    Detailed Description

    +
    +

    Definition at line 16 of file signalk_position.h.

    +

    Constructor & Destructor Documentation

    + +

    ◆ SKOutputPosition()

    + +
    +
    + + + + + +
    + + + + + + + + + + + + + + + + + + +
    SKOutputPosition::SKOutputPosition (String sk_path,
    String config_path = "" 
    )
    +
    +inline
    +
    + +

    Definition at line 18 of file signalk_position.h.

    + +
    +
    +

    Member Function Documentation

    + +

    ◆ as_signalK()

    + +
    +
    + + + + + +
    + + + + + + + +
    String SKOutputPosition::as_signalK ()
    +
    +overridevirtual
    +
    +

    Returns the data to be reported to the server as a SignalK json string.

    + +

    Reimplemented from SKOutput< Position >.

    + +

    Definition at line 4 of file signalk_position.cpp.

    +
    +Here is the call graph for this function:
    +
    +
    + + + + +
    + +
    +
    + +

    ◆ get_config_schema()

    + +
    +
    + + + + + +
    + + + + + + + +
    String SKOutputPosition::get_config_schema ()
    +
    +overridevirtual
    +
    +

    Returns a configuration schema that specifies the key/value pairs that can be expected when calling get_configuration(), or are expected by set_configuration(). The schema will be in JSON Schema format

    See also
    https://json-schema.org
    + +

    Reimplemented from Configurable.

    + +

    Definition at line 32 of file signalk_position.cpp.

    + +
    +
    + +

    ◆ get_configuration()

    + +
    +
    + + + + + +
    + + + + + + + + +
    JsonObject & SKOutputPosition::get_configuration (JsonBuffer & buf)
    +
    +overridevirtual
    +
    +

    Returns the current configuration data as a JsonObject. In general, the current state of local member variables are saved to a new object created with JsonBuffer::createObject() and returned.

    + +

    Reimplemented from SKOutput< Position >.

    + +

    Definition at line 19 of file signalk_position.cpp.

    +
    +Here is the call graph for this function:
    +
    +
    + + + + +
    + +
    +
    + +

    ◆ set_configuration()

    + +
    +
    + + + + + +
    + + + + + + + + +
    bool SKOutputPosition::set_configuration (const JsonObject & config)
    +
    +overridevirtual
    +
    +

    Sets the current state of local member variables using the data stored in config.

    + +

    Reimplemented from SKOutput< Position >.

    + +

    Definition at line 36 of file signalk_position.cpp.

    +
    +Here is the call graph for this function:
    +
    +
    + + + + +
    + +
    +
    +
    The documentation for this class was generated from the following files: +
    +
    + + + + diff --git a/docs/class_s_k_output_position.js b/docs/class_s_k_output_position.js new file mode 100644 index 000000000..26dfdd2b6 --- /dev/null +++ b/docs/class_s_k_output_position.js @@ -0,0 +1,8 @@ +var class_s_k_output_position = +[ + [ "SKOutputPosition", "class_s_k_output_position.html#a84591bf7fb62356a76b0a6838eb19aa6", null ], + [ "as_signalK", "class_s_k_output_position.html#a8738584e0866f15b75748e902834c547", null ], + [ "get_config_schema", "class_s_k_output_position.html#a1296489a2e57b3ee5740b4f7f1cca6e2", null ], + [ "get_configuration", "class_s_k_output_position.html#a1e1dfc32c80fe7e541b9342ef62275b9", null ], + [ "set_configuration", "class_s_k_output_position.html#a00764a4cad14b5a2ccb6a6c484552229", null ] +]; \ No newline at end of file diff --git a/docs/class_s_k_output_position__inherit__graph.map b/docs/class_s_k_output_position__inherit__graph.map new file mode 100644 index 000000000..731784475 --- /dev/null +++ b/docs/class_s_k_output_position__inherit__graph.map @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/docs/class_s_k_output_position__inherit__graph.md5 b/docs/class_s_k_output_position__inherit__graph.md5 new file mode 100644 index 000000000..d8568daa7 --- /dev/null +++ b/docs/class_s_k_output_position__inherit__graph.md5 @@ -0,0 +1 @@ +27d9e0df965eeb92582576147ff6b351 \ No newline at end of file diff --git a/docs/class_s_k_output_position__inherit__graph.png b/docs/class_s_k_output_position__inherit__graph.png new file mode 100644 index 000000000..c304f14a0 Binary files /dev/null and b/docs/class_s_k_output_position__inherit__graph.png differ diff --git a/docs/class_s_k_output_position_a00764a4cad14b5a2ccb6a6c484552229_cgraph.map b/docs/class_s_k_output_position_a00764a4cad14b5a2ccb6a6c484552229_cgraph.map new file mode 100644 index 000000000..86be4228e --- /dev/null +++ b/docs/class_s_k_output_position_a00764a4cad14b5a2ccb6a6c484552229_cgraph.map @@ -0,0 +1,4 @@ + + + + diff --git a/docs/class_s_k_output_position_a00764a4cad14b5a2ccb6a6c484552229_cgraph.md5 b/docs/class_s_k_output_position_a00764a4cad14b5a2ccb6a6c484552229_cgraph.md5 new file mode 100644 index 000000000..8de511356 --- /dev/null +++ b/docs/class_s_k_output_position_a00764a4cad14b5a2ccb6a6c484552229_cgraph.md5 @@ -0,0 +1 @@ +34985ceffbac0581fe6d98297dcf7732 \ No newline at end of file diff --git a/docs/class_s_k_output_position_a00764a4cad14b5a2ccb6a6c484552229_cgraph.png b/docs/class_s_k_output_position_a00764a4cad14b5a2ccb6a6c484552229_cgraph.png new file mode 100644 index 000000000..e1290a2a4 Binary files /dev/null and b/docs/class_s_k_output_position_a00764a4cad14b5a2ccb6a6c484552229_cgraph.png differ diff --git a/docs/class_s_k_output_position_a1e1dfc32c80fe7e541b9342ef62275b9_cgraph.map b/docs/class_s_k_output_position_a1e1dfc32c80fe7e541b9342ef62275b9_cgraph.map new file mode 100644 index 000000000..b4d18bac1 --- /dev/null +++ b/docs/class_s_k_output_position_a1e1dfc32c80fe7e541b9342ef62275b9_cgraph.map @@ -0,0 +1,4 @@ + + + + diff --git a/docs/class_s_k_output_position_a1e1dfc32c80fe7e541b9342ef62275b9_cgraph.md5 b/docs/class_s_k_output_position_a1e1dfc32c80fe7e541b9342ef62275b9_cgraph.md5 new file mode 100644 index 000000000..06dda34a6 --- /dev/null +++ b/docs/class_s_k_output_position_a1e1dfc32c80fe7e541b9342ef62275b9_cgraph.md5 @@ -0,0 +1 @@ +1d21f240941262801c00c56a0a54a56e \ No newline at end of file diff --git a/docs/class_s_k_output_position_a1e1dfc32c80fe7e541b9342ef62275b9_cgraph.png b/docs/class_s_k_output_position_a1e1dfc32c80fe7e541b9342ef62275b9_cgraph.png new file mode 100644 index 000000000..4ff9b28a1 Binary files /dev/null and b/docs/class_s_k_output_position_a1e1dfc32c80fe7e541b9342ef62275b9_cgraph.png differ diff --git a/docs/class_s_k_output_position_a8738584e0866f15b75748e902834c547_cgraph.map b/docs/class_s_k_output_position_a8738584e0866f15b75748e902834c547_cgraph.map new file mode 100644 index 000000000..cfbc69187 --- /dev/null +++ b/docs/class_s_k_output_position_a8738584e0866f15b75748e902834c547_cgraph.map @@ -0,0 +1,4 @@ + + + + diff --git a/docs/class_s_k_output_position_a8738584e0866f15b75748e902834c547_cgraph.md5 b/docs/class_s_k_output_position_a8738584e0866f15b75748e902834c547_cgraph.md5 new file mode 100644 index 000000000..c7b9b97df --- /dev/null +++ b/docs/class_s_k_output_position_a8738584e0866f15b75748e902834c547_cgraph.md5 @@ -0,0 +1 @@ +263661fd5eded1b8543d3ccca13fd231 \ No newline at end of file diff --git a/docs/class_s_k_output_position_a8738584e0866f15b75748e902834c547_cgraph.png b/docs/class_s_k_output_position_a8738584e0866f15b75748e902834c547_cgraph.png new file mode 100644 index 000000000..67415363c Binary files /dev/null and b/docs/class_s_k_output_position_a8738584e0866f15b75748e902834c547_cgraph.png differ diff --git a/docs/class_s_k_output_time-members.html b/docs/class_s_k_output_time-members.html new file mode 100644 index 000000000..db3c4889d --- /dev/null +++ b/docs/class_s_k_output_time-members.html @@ -0,0 +1,141 @@ + + + + + + + +SensESP: Member List + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SensESP +  0.4.0 +
    +
    Universal Signal K sensor framework for ESP8266 and ESP32
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    SKOutputTime Member List
    +
    +
    + +

    This is the complete list of members for SKOutputTime, including all inherited members.

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    as_signalK() overrideSKOutputTimevirtual
    attach(std::function< void()> observer)Observable
    config_pathConfigurable
    Configurable(String config_path)Configurable
    connectFrom(ValueProducer< String > *pProducer0, ValueProducer< String > *pProducer1=NULL, ValueProducer< String > *pProducer2=NULL, ValueProducer< String > *pProducer3=NULL, ValueProducer< String > *pProducer4=NULL)Transform< time_t, String >inline
    ValueConsumer< time_t >::connectFrom(ValueProducer< time_t > *pProducer, uint8_t inputChannel=0)ValueConsumer< time_t >inline
    connectTo(ValueConsumer< String > *pConsumer, uint8_t inputChannel=0)ValueProducer< String >inline
    connectTo(Transform< String, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< String >inline
    Enable(uint8_t priority=0)Enable
    enable()Enableinlinevirtual
    enableAll()Enablestatic
    get()ValueProducer< String >inlinevirtual
    get_config_schema() overrideSKOutputTimevirtual
    get_configuration(JsonBuffer &buf) overrideSKOutputTimevirtual
    get_sk_path()SKEmitterinline
    get_sources()SKEmitterinlinestatic
    get_transforms()TransformBaseinlinestatic
    getEnablePriority()Enableinline
    load_configuration()Configurableprotectedvirtual
    notify()Observable
    outputValueProducer< String >protected
    save_configuration()Configurablevirtual
    set_configuration(const JsonObject &config) overrideSKOutputTimevirtual
    set_input(time_t input, uint8_t inputChannel=0) overrideTimeStringvirtual
    set_sk_path(const String &path)SKEmitterinline
    setPriority(uint8_t priority)Enableinline
    sk_pathSKEmitterprotected
    SKEmitter(String sk_path)SKEmitter
    SKOutputTime(String sk_path, String config_path="")SKOutputTime
    TimeString(String config_path="")TimeString
    Transform(String config_path="")Transform< time_t, String >inline
    TransformBase(String config_path="")TransformBase
    ValueProducer()ValueProducer< String >inline
    +
    + + + + diff --git a/docs/class_s_k_output_time.html b/docs/class_s_k_output_time.html new file mode 100644 index 000000000..71422aa00 --- /dev/null +++ b/docs/class_s_k_output_time.html @@ -0,0 +1,388 @@ + + + + + + + +SensESP: SKOutputTime Class Reference + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SensESP +  0.4.0 +
    +
    Universal Signal K sensor framework for ESP8266 and ESP32
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    SKOutputTime Class Reference
    +
    +
    + +

    #include <signalk_time.h>

    +
    +Inheritance diagram for SKOutputTime:
    +
    +
    Inheritance graph
    + + + + + + + + + + + + +
    [legend]
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

    +Public Member Functions

     SKOutputTime (String sk_path, String config_path="")
     
    virtual String as_signalK () override
     
    virtual JsonObject & get_configuration (JsonBuffer &buf) override
     
    virtual bool set_configuration (const JsonObject &config) override
     
    virtual String get_config_schema () override
     
    - Public Member Functions inherited from TimeString
     TimeString (String config_path="")
     
    virtual void set_input (time_t input, uint8_t inputChannel=0) override
     
    - Public Member Functions inherited from Transform< time_t, String >
     Transform (String config_path="")
     
    Transform< time_t, String > * connectFrom (ValueProducer< String > *pProducer0, ValueProducer< String > *pProducer1=NULL, ValueProducer< String > *pProducer2=NULL, ValueProducer< String > *pProducer3=NULL, ValueProducer< String > *pProducer4=NULL)
     
    - Public Member Functions inherited from TransformBase
     TransformBase (String config_path="")
     
    - Public Member Functions inherited from Configurable
     Configurable (String config_path)
     
    virtual void save_configuration ()
     
    - Public Member Functions inherited from Enable
     Enable (uint8_t priority=0)
     
    virtual void enable ()
     
    const int8_t getEnablePriority ()
     
    void setPriority (uint8_t priority)
     
    - Public Member Functions inherited from ValueConsumer< time_t >
    void connectFrom (ValueProducer< time_t > *pProducer, uint8_t inputChannel=0)
     
    - Public Member Functions inherited from ValueProducer< String >
     ValueProducer ()
     
    virtual const String & get ()
     
    void connectTo (ValueConsumer< String > *pConsumer, uint8_t inputChannel=0)
     
    Transform< String, T2 > * connectTo (Transform< String, T2 > *pConsumerProducer, uint8_t inputChannel=0)
     
    - Public Member Functions inherited from Observable
    void notify ()
     
    void attach (std::function< void()> observer)
     
    - Public Member Functions inherited from SKEmitter
     SKEmitter (String sk_path)
     
    String & get_sk_path ()
     
    void set_sk_path (const String &path)
     
    + + + + + + + + + + + + + + + + + + + + + + +

    +Additional Inherited Members

    - Static Public Member Functions inherited from TransformBase
    static const std::set< TransformBase * > & get_transforms ()
     
    - Static Public Member Functions inherited from Enable
    static void enableAll ()
     
    - Static Public Member Functions inherited from SKEmitter
    static const std::vector< SKEmitter * > & get_sources ()
     
    - Public Attributes inherited from Configurable
    const String config_path
     
    - Protected Member Functions inherited from Configurable
    virtual void load_configuration ()
     
    - Protected Attributes inherited from ValueProducer< String >
    String output
     
    - Protected Attributes inherited from SKEmitter
    String sk_path
     
    +

    Detailed Description

    +
    +

    Definition at line 7 of file signalk_time.h.

    +

    Constructor & Destructor Documentation

    + +

    ◆ SKOutputTime()

    + +
    +
    + + + + + + + + + + + + + + + + + + +
    SKOutputTime::SKOutputTime (String sk_path,
    String config_path = "" 
    )
    +
    + +

    Definition at line 5 of file signalk_time.cpp.

    +
    +Here is the call graph for this function:
    +
    +
    + + + + + +
    + +
    +
    +

    Member Function Documentation

    + +

    ◆ as_signalK()

    + +
    +
    + + + + + +
    + + + + + + + +
    String SKOutputTime::as_signalK ()
    +
    +overridevirtual
    +
    +

    Returns the data to be reported to the server as a SignalK json string.

    + +

    Reimplemented from SKEmitter.

    + +

    Definition at line 12 of file signalk_time.cpp.

    + +
    +
    + +

    ◆ get_config_schema()

    + +
    +
    + + + + + +
    + + + + + + + +
    String SKOutputTime::get_config_schema ()
    +
    +overridevirtual
    +
    +

    Returns a configuration schema that specifies the key/value pairs that can be expected when calling get_configuration(), or are expected by set_configuration(). The schema will be in JSON Schema format

    See also
    https://json-schema.org
    + +

    Reimplemented from Configurable.

    + +

    Definition at line 37 of file signalk_time.cpp.

    + +
    +
    + +

    ◆ get_configuration()

    + +
    +
    + + + + + +
    + + + + + + + + +
    JsonObject & SKOutputTime::get_configuration (JsonBuffer & buf)
    +
    +overridevirtual
    +
    +

    Returns the current configuration data as a JsonObject. In general, the current state of local member variables are saved to a new object created with JsonBuffer::createObject() and returned.

    + +

    Reimplemented from Configurable.

    + +

    Definition at line 22 of file signalk_time.cpp.

    + +
    +
    + +

    ◆ set_configuration()

    + +
    +
    + + + + + +
    + + + + + + + + +
    bool SKOutputTime::set_configuration (const JsonObject & config)
    +
    +overridevirtual
    +
    +

    Sets the current state of local member variables using the data stored in config.

    + +

    Reimplemented from Configurable.

    + +

    Definition at line 41 of file signalk_time.cpp.

    + +
    +
    +
    The documentation for this class was generated from the following files: +
    +
    + + + + diff --git a/docs/class_s_k_output_time.js b/docs/class_s_k_output_time.js new file mode 100644 index 000000000..95a3c34fd --- /dev/null +++ b/docs/class_s_k_output_time.js @@ -0,0 +1,8 @@ +var class_s_k_output_time = +[ + [ "SKOutputTime", "class_s_k_output_time.html#ab77e9bdfeb69fd37c6fc87ac247146e4", null ], + [ "as_signalK", "class_s_k_output_time.html#a09b9f813788470bd06891f34ba58d84b", null ], + [ "get_config_schema", "class_s_k_output_time.html#aa283f508ef59103626c835cd37b9bfb3", null ], + [ "get_configuration", "class_s_k_output_time.html#a03982e7159ac7e6d44b8f7c6976617c4", null ], + [ "set_configuration", "class_s_k_output_time.html#a41ad61c700a444916873e908612eca63", null ] +]; \ No newline at end of file diff --git a/docs/class_s_k_output_time__inherit__graph.map b/docs/class_s_k_output_time__inherit__graph.map new file mode 100644 index 000000000..c584d0c88 --- /dev/null +++ b/docs/class_s_k_output_time__inherit__graph.map @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/docs/class_s_k_output_time__inherit__graph.md5 b/docs/class_s_k_output_time__inherit__graph.md5 new file mode 100644 index 000000000..ad51620b5 --- /dev/null +++ b/docs/class_s_k_output_time__inherit__graph.md5 @@ -0,0 +1 @@ +1d58892a5dc134f884ba670e0a455984 \ No newline at end of file diff --git a/docs/class_s_k_output_time__inherit__graph.png b/docs/class_s_k_output_time__inherit__graph.png new file mode 100644 index 000000000..78d7bcbfd Binary files /dev/null and b/docs/class_s_k_output_time__inherit__graph.png differ diff --git a/docs/class_s_k_output_time_ab77e9bdfeb69fd37c6fc87ac247146e4_cgraph.map b/docs/class_s_k_output_time_ab77e9bdfeb69fd37c6fc87ac247146e4_cgraph.map new file mode 100644 index 000000000..9005ac0f7 --- /dev/null +++ b/docs/class_s_k_output_time_ab77e9bdfeb69fd37c6fc87ac247146e4_cgraph.map @@ -0,0 +1,5 @@ + + + + + diff --git a/docs/class_s_k_output_time_ab77e9bdfeb69fd37c6fc87ac247146e4_cgraph.md5 b/docs/class_s_k_output_time_ab77e9bdfeb69fd37c6fc87ac247146e4_cgraph.md5 new file mode 100644 index 000000000..926d31351 --- /dev/null +++ b/docs/class_s_k_output_time_ab77e9bdfeb69fd37c6fc87ac247146e4_cgraph.md5 @@ -0,0 +1 @@ +bc137772ba198d37243048704a6a8a4e \ No newline at end of file diff --git a/docs/class_s_k_output_time_ab77e9bdfeb69fd37c6fc87ac247146e4_cgraph.png b/docs/class_s_k_output_time_ab77e9bdfeb69fd37c6fc87ac247146e4_cgraph.png new file mode 100644 index 000000000..2a7eb0f9f Binary files /dev/null and b/docs/class_s_k_output_time_ab77e9bdfeb69fd37c6fc87ac247146e4_cgraph.png differ diff --git a/docs/class_sens_e_s_p_app-members.html b/docs/class_sens_e_s_p_app-members.html index 34766dccc..8ff29a13c 100644 --- a/docs/class_sens_e_s_p_app-members.html +++ b/docs/class_sens_e_s_p_app-members.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -95,9 +95,7 @@

    This is the complete list of members for SensESPApp, including all inherited members.

    - - - + diff --git a/docs/class_sens_e_s_p_app.html b/docs/class_sens_e_s_p_app.html index 4f7eaf249..e6ec2fc96 100644 --- a/docs/class_sens_e_s_p_app.html +++ b/docs/class_sens_e_s_p_app.html @@ -30,7 +30,7 @@ @@ -110,12 +110,6 @@ - - - - - - @@ -220,60 +214,6 @@

    -

    ◆ connect_1to1()

    - -
    -
    -
    -template<typename T , typename U >
    -

    connect(ValueProducer< T > *pProducer, ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)SensESPAppinline
    connect_1to1(T *obs, U *transform)SensESPAppinline
    connect_1to1_h(T *device, U *transform, ObservableValue< String > *hostname)SensESPAppinline
    connect_2to1(T *obs1, T *obs2, U *transform)SensESPAppinline
    connect_1to1_h(T *device, U *transform, ObservableValue< String > *hostname)SensESPAppinline
    enable()SensESPApp
    get_hostname()SensESPApp
    isSignalKConnected()SensESPAppinline
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    template<typename T >
    void connect (ValueProducer< T > *pProducer, ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)
     
    template<typename T , typename U >
    void connect_1to1 (T *obs, U *transform)
     
    template<typename T , typename U >
    void connect_2to1 (T *obs1, T *obs2, U *transform)
     
    template<typename T , typename U >
    void connect_1to1_h (T *device, U *transform, ObservableValue< String > *hostname)
     
    - - - - -
    - - - - - - - - - - - - - - - - - - -
    void SensESPApp::connect_1to1 (T * obs,
    U * transform 
    )
    -
    -inline
    -

    - -

    Definition at line 33 of file sensesp_app.h.

    -
    -Here is the caller graph for this function:
    -
    -
    - - - - - - - - - -
    -

    @@ -318,7 +258,7 @@

    -

    Definition at line 50 of file sensesp_app.h.

    +

    Definition at line 32 of file sensesp_app.h.

    Here is the call graph for this function:
    @@ -330,61 +270,6 @@

    -

    ◆ connect_2to1()

    - -
    -
    -
    -template<typename T , typename U >
    - - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - -
    void SensESPApp::connect_2to1 (T * obs1,
    T * obs2,
    U * transform 
    )
    -
    -inline
    -
    - -

    Definition at line 40 of file sensesp_app.h.

    -
    -Here is the caller graph for this function:
    -
    -
    - - - - -
    -
    @@ -408,33 +293,33 @@

    - - + + - - - - - + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + +

    @@ -455,7 +340,7 @@

    -

    Definition at line 162 of file sensesp_app.cpp.

    +

    Definition at line 168 of file sensesp_app.cpp.

    Here is the call graph for this function:
    @@ -493,7 +378,7 @@

    Returns true if the host system is connected to a SignalK server

    -

    Definition at line 77 of file sensesp_app.h.

    +

    Definition at line 59 of file sensesp_app.h.

    Here is the call graph for this function:

    @@ -549,7 +434,7 @@

    -

    Definition at line 155 of file sensesp_app.cpp.

    +

    Definition at line 161 of file sensesp_app.cpp.

    Here is the call graph for this function:
    diff --git a/docs/class_sens_e_s_p_app.js b/docs/class_sens_e_s_p_app.js index e05c9f5af..d60cd752b 100644 --- a/docs/class_sens_e_s_p_app.js +++ b/docs/class_sens_e_s_p_app.js @@ -2,9 +2,7 @@ var class_sens_e_s_p_app = [ [ "SensESPApp", "class_sens_e_s_p_app.html#a092f600dda1a51189bc2c9fd5de360e8", null ], [ "connect", "class_sens_e_s_p_app.html#ac53d90429563f50e4aca5224a1e85afd", null ], - [ "connect_1to1", "class_sens_e_s_p_app.html#a0a499dc1d52fa2115d314149bb41259f", null ], [ "connect_1to1_h", "class_sens_e_s_p_app.html#a8875ca27de5c10c1b2931c3c41e1f9b5", null ], - [ "connect_2to1", "class_sens_e_s_p_app.html#a5c4d4d6581822017e942421c833f27f3", null ], [ "enable", "class_sens_e_s_p_app.html#a3d70c22bfd1bf842f6daa83ab2f50f79", null ], [ "get_hostname", "class_sens_e_s_p_app.html#ac068882b9e9f6092da0818c5e42b48b8", null ], [ "isSignalKConnected", "class_sens_e_s_p_app.html#adee3f53bc75ae6d5d73a8707dd75600e", null ], diff --git a/docs/class_sens_e_s_p_app_a0f7605a2c63a3ed250e1c742608956b2_cgraph.md5 b/docs/class_sens_e_s_p_app_a0f7605a2c63a3ed250e1c742608956b2_cgraph.md5 index 9e35f8a78..a622edb5f 100644 --- a/docs/class_sens_e_s_p_app_a0f7605a2c63a3ed250e1c742608956b2_cgraph.md5 +++ b/docs/class_sens_e_s_p_app_a0f7605a2c63a3ed250e1c742608956b2_cgraph.md5 @@ -1 +1 @@ -60d1db067722f2ea748d1ffdfb2355ed \ No newline at end of file +3899445d1aaf128ebaa6d2146f5ab357 \ No newline at end of file diff --git a/docs/class_sens_e_s_p_app_a0f7605a2c63a3ed250e1c742608956b2_icgraph.md5 b/docs/class_sens_e_s_p_app_a0f7605a2c63a3ed250e1c742608956b2_icgraph.md5 index bd6b3602b..383745c17 100644 --- a/docs/class_sens_e_s_p_app_a0f7605a2c63a3ed250e1c742608956b2_icgraph.md5 +++ b/docs/class_sens_e_s_p_app_a0f7605a2c63a3ed250e1c742608956b2_icgraph.md5 @@ -1 +1 @@ -59042badce85d2b5b19b2bd7a8324958 \ No newline at end of file +758280ed46c7b0acd40e8d15d1e50560 \ No newline at end of file diff --git a/docs/class_sens_e_s_p_app_a3d70c22bfd1bf842f6daa83ab2f50f79_cgraph.map b/docs/class_sens_e_s_p_app_a3d70c22bfd1bf842f6daa83ab2f50f79_cgraph.map index 91db6a7a6..2da1c9f13 100644 --- a/docs/class_sens_e_s_p_app_a3d70c22bfd1bf842f6daa83ab2f50f79_cgraph.map +++ b/docs/class_sens_e_s_p_app_a3d70c22bfd1bf842f6daa83ab2f50f79_cgraph.map @@ -1,29 +1,29 @@ - - + + - - - - - + + + + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + diff --git a/docs/class_sens_e_s_p_app_a3d70c22bfd1bf842f6daa83ab2f50f79_cgraph.md5 b/docs/class_sens_e_s_p_app_a3d70c22bfd1bf842f6daa83ab2f50f79_cgraph.md5 index ab3ccdc85..27f74f5ac 100644 --- a/docs/class_sens_e_s_p_app_a3d70c22bfd1bf842f6daa83ab2f50f79_cgraph.md5 +++ b/docs/class_sens_e_s_p_app_a3d70c22bfd1bf842f6daa83ab2f50f79_cgraph.md5 @@ -1 +1 @@ -c3c4423845c198fedc363d8f83fabc63 \ No newline at end of file +194ad26f9453fee3b6af7b5d80e93021 \ No newline at end of file diff --git a/docs/class_sens_e_s_p_app_a3d70c22bfd1bf842f6daa83ab2f50f79_cgraph.png b/docs/class_sens_e_s_p_app_a3d70c22bfd1bf842f6daa83ab2f50f79_cgraph.png index 56f6edf6c..e9790101a 100644 Binary files a/docs/class_sens_e_s_p_app_a3d70c22bfd1bf842f6daa83ab2f50f79_cgraph.png and b/docs/class_sens_e_s_p_app_a3d70c22bfd1bf842f6daa83ab2f50f79_cgraph.png differ diff --git a/docs/class_sens_e_s_p_app_a8875ca27de5c10c1b2931c3c41e1f9b5_cgraph.md5 b/docs/class_sens_e_s_p_app_a8875ca27de5c10c1b2931c3c41e1f9b5_cgraph.md5 index 6a7f5376f..23ec71639 100644 --- a/docs/class_sens_e_s_p_app_a8875ca27de5c10c1b2931c3c41e1f9b5_cgraph.md5 +++ b/docs/class_sens_e_s_p_app_a8875ca27de5c10c1b2931c3c41e1f9b5_cgraph.md5 @@ -1 +1 @@ -5082127446e8146f6099796b65181c22 \ No newline at end of file +81fecd9f993ae25fe727db505a7224af \ No newline at end of file diff --git a/docs/class_sens_e_s_p_app_ac068882b9e9f6092da0818c5e42b48b8_cgraph.md5 b/docs/class_sens_e_s_p_app_ac068882b9e9f6092da0818c5e42b48b8_cgraph.md5 index bc5fdc7f8..fb4fba054 100644 --- a/docs/class_sens_e_s_p_app_ac068882b9e9f6092da0818c5e42b48b8_cgraph.md5 +++ b/docs/class_sens_e_s_p_app_ac068882b9e9f6092da0818c5e42b48b8_cgraph.md5 @@ -1 +1 @@ -f1929a603869e96e76c2c44690ac2f44 \ No newline at end of file +437e974c2573183424bbb73d56537ca3 \ No newline at end of file diff --git a/docs/class_sens_e_s_p_app_adee3f53bc75ae6d5d73a8707dd75600e_cgraph.md5 b/docs/class_sens_e_s_p_app_adee3f53bc75ae6d5d73a8707dd75600e_cgraph.md5 index 27663f2af..da752677f 100644 --- a/docs/class_sens_e_s_p_app_adee3f53bc75ae6d5d73a8707dd75600e_cgraph.md5 +++ b/docs/class_sens_e_s_p_app_adee3f53bc75ae6d5d73a8707dd75600e_cgraph.md5 @@ -1 +1 @@ -9233c0509b4a29036327bf383bb1e484 \ No newline at end of file +f8ea16d0f74264c245aa04e013053dc1 \ No newline at end of file diff --git a/docs/class_sentence_parser-members.html b/docs/class_sentence_parser-members.html index 649355059..8f1174ad8 100644 --- a/docs/class_sentence_parser-members.html +++ b/docs/class_sentence_parser-members.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    diff --git a/docs/class_sentence_parser.html b/docs/class_sentence_parser.html index 6d0b16e0f..4c3d81303 100644 --- a/docs/class_sentence_parser.html +++ b/docs/class_sentence_parser.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    diff --git a/docs/class_string_device-members.html b/docs/class_string_device-members.html index 359974381..7e30f8534 100644 --- a/docs/class_string_device-members.html +++ b/docs/class_string_device-members.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -98,7 +98,7 @@ config_pathConfigurable Configurable(String config_path)Configurable connectTo(ValueConsumer< String > *pConsumer, uint8_t inputChannel=0)ValueProducer< String >inline - connectTo(SymmetricTransform< String > *pProducerConsumer, uint8_t inputChannel=0)ValueProducer< String >inline + connectTo(Transform< String, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< String >inline Device(String config_path="")Device Enable(uint8_t priority=0)Enable enable()Enableinlinevirtual @@ -113,8 +113,9 @@ outputValueProducer< String >protected save_configuration()Configurablevirtual set_configuration(const JsonObject &config)Configurablevirtual - StringDevice(String config_path="")StringDevice - ValueProducer()ValueProducer< String >inline + setPriority(uint8_t priority)Enableinline + StringDevice(String config_path="")StringDevice + ValueProducer()ValueProducer< String >inline
    diff --git a/docs/class_string_device.html b/docs/class_string_device.html index 60599e17f..514bce152 100644 --- a/docs/class_string_device.html +++ b/docs/class_string_device.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -141,6 +141,8 @@   const int8_t getEnablePriority ()   +void setPriority (uint8_t priority) +  - Public Member Functions inherited from ValueProducer< String >  ValueProducer ()   @@ -148,8 +150,8 @@   void connectTo (ValueConsumer< String > *pConsumer, uint8_t inputChannel=0)   -SymmetricTransform< String > * connectTo (SymmetricTransform< String > *pProducerConsumer, uint8_t inputChannel=0) -  +Transform< String, T2 > * connectTo (Transform< String, T2 > *pConsumerProducer, uint8_t inputChannel=0) +  diff --git a/docs/class_symmetric_transform-members.html b/docs/class_symmetric_transform-members.html index 905982386..b0ed77fe5 100644 --- a/docs/class_symmetric_transform-members.html +++ b/docs/class_symmetric_transform-members.html @@ -30,7 +30,7 @@ @@ -94,37 +94,32 @@

    This is the complete list of members for SymmetricTransform< T >, including all inherited members.

    Additional Inherited Members

    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + +
    as_signalK()SignalKSourceinlinevirtual
    attach(std::function< void()> observer)Observable
    config_pathConfigurable
    Configurable(String config_path)Configurable
    connectFrom(ValueProducer< T > *pProducer0, ValueProducer< T > *pProducer1=NULL, ValueProducer< T > *pProducer2=NULL, ValueProducer< T > *pProducer3=NULL, ValueProducer< T > *pProducer4=NULL)SymmetricTransform< T >inline
    ValueConsumer::connectFrom(ValueProducer< T > *pProducer, uint8_t inputChannel=0)ValueConsumer< T >inline
    connectTo(ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)ValueProducer< T >inline
    connectTo(SymmetricTransform< T > *pProducerConsumer, uint8_t inputChannel=0)ValueProducer< T >inline
    Enable(uint8_t priority=0)Enable
    enable()Enableinlinevirtual
    enableAll()Enablestatic
    get()ValueProducer< T >inlinevirtual
    get_config_schema()Configurablevirtual
    get_configuration(JsonBuffer &buf)Configurablevirtual
    get_sk_path()SignalKSourceinline
    get_sources()SignalKSourceinlinestatic
    get_transforms()TransformBaseinlinestatic
    getEnablePriority()Enableinline
    load_configuration()Configurableprotectedvirtual
    notify()Observable
    outputValueProducer< T >protected
    save_configuration()Configurablevirtual
    set_configuration(const JsonObject &config)Configurablevirtual
    set_input(T newValue, uint8_t inputChannel=0)ValueConsumer< T >inlinevirtual
    set_sk_path(const String &path)SignalKSourceinline
    SignalKSource(String sk_path)SignalKSource
    sk_pathSignalKSourceprotected
    SymmetricTransform(String sk_path, String config_path="")SymmetricTransform< T >inline
    Transform(String sk_path, String config_path="")Transform< T >inline
    TransformBase(String sk_path, String config_path="")TransformBase
    ValueProducer()ValueProducer< T >inline
    attach(std::function< void()> observer)Observable
    config_pathConfigurable
    Configurable(String config_path)Configurable
    connectFrom(ValueProducer< T > *pProducer0, ValueProducer< T > *pProducer1=NULL, ValueProducer< T > *pProducer2=NULL, ValueProducer< T > *pProducer3=NULL, ValueProducer< T > *pProducer4=NULL)Transform< T, T >inline
    ValueConsumer::connectFrom(ValueProducer< T > *pProducer, uint8_t inputChannel=0)ValueConsumer< T >inline
    connectTo(ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)ValueProducer< T >inline
    connectTo(Transform< T, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< T >inline
    Enable(uint8_t priority=0)Enable
    enable()Enableinlinevirtual
    enableAll()Enablestatic
    get()ValueProducer< T >inlinevirtual
    get_config_schema()Configurablevirtual
    get_configuration(JsonBuffer &buf)Configurablevirtual
    get_transforms()TransformBaseinlinestatic
    getEnablePriority()Enableinline
    load_configuration()Configurableprotectedvirtual
    notify()Observable
    outputValueProducer< T >protected
    save_configuration()Configurablevirtual
    set_configuration(const JsonObject &config)Configurablevirtual
    set_input(T newValue, uint8_t inputChannel=0)ValueConsumer< T >inlinevirtual
    setPriority(uint8_t priority)Enableinline
    SymmetricTransform(String config_path="")SymmetricTransform< T >inline
    Transform(String config_path="")Transform< T, T >inline
    TransformBase(String config_path="")TransformBase
    ValueProducer()ValueProducer< T >inline
    diff --git a/docs/class_symmetric_transform.html b/docs/class_symmetric_transform.html index c79af39ed..5235a9db0 100644 --- a/docs/class_symmetric_transform.html +++ b/docs/class_symmetric_transform.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -95,57 +95,37 @@
    -

    #include <valueproducer.h>

    +

    #include <transform.h>

    Inheritance diagram for SymmetricTransform< T >:
    Inheritance graph
    - - - - - - - - - - - + + + + + + + + + +
    [legend]
    - - - - - - - - - - - - + + + + + + + - - - - - - - - - - - - - - - - + + @@ -164,6 +144,13 @@ + + + + + + + @@ -171,17 +158,20 @@ - - + + + + + + + +

    Public Member Functions

     SymmetricTransform (String sk_path, String config_path="")
     
    SymmetricTransform< T > * connectFrom (ValueProducer< T > *pProducer0, ValueProducer< T > *pProducer1=NULL, ValueProducer< T > *pProducer2=NULL, ValueProducer< T > *pProducer3=NULL, ValueProducer< T > *pProducer4=NULL)
     
    - Public Member Functions inherited from ValueConsumer< T >
    virtual void set_input (T newValue, uint8_t inputChannel=0)
     
    void connectFrom (ValueProducer< T > *pProducer, uint8_t inputChannel=0)
     
    - Public Member Functions inherited from Transform< T >
     Transform (String sk_path, String config_path="")
     
     SymmetricTransform (String config_path="")
     
    - Public Member Functions inherited from Transform< T, T >
     Transform (String config_path="")
     
    Transform< T, T > * connectFrom (ValueProducer< T > *pProducer0, ValueProducer< T > *pProducer1=NULL, ValueProducer< T > *pProducer2=NULL, ValueProducer< T > *pProducer3=NULL, ValueProducer< T > *pProducer4=NULL)
     
    - Public Member Functions inherited from TransformBase
     TransformBase (String sk_path, String config_path="")
     
    - Public Member Functions inherited from SignalKSource
     SignalKSource (String sk_path)
     
    virtual String as_signalK ()
     
    String & get_sk_path ()
     
    void set_sk_path (const String &path)
     
    - Public Member Functions inherited from Observable
    void notify ()
     
    void attach (std::function< void()> observer)
     
     TransformBase (String config_path="")
     
    - Public Member Functions inherited from Configurable
     Configurable (String config_path)
     
     
    const int8_t getEnablePriority ()
     
    void setPriority (uint8_t priority)
     
    - Public Member Functions inherited from ValueConsumer< T >
    virtual void set_input (T newValue, uint8_t inputChannel=0)
     
    void connectFrom (ValueProducer< T > *pProducer, uint8_t inputChannel=0)
     
    - Public Member Functions inherited from ValueProducer< T >
     ValueProducer ()
     
     
    void connectTo (ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)
     
    SymmetricTransform< T > * connectTo (SymmetricTransform< T > *pProducerConsumer, uint8_t inputChannel=0)
     
    template<typename T2 >
    Transform< T, T2 > * connectTo (Transform< T, T2 > *pConsumerProducer, uint8_t inputChannel=0)
     
    - Public Member Functions inherited from Observable
    void notify ()
     
    void attach (std::function< void()> observer)
     
    - - - @@ -191,9 +181,6 @@ - - - @@ -204,10 +191,10 @@

    A SymmetricTransform is a common type of transform that consumes, transforms, then outputs values of the same data type.

    -

    Definition at line 9 of file valueproducer.h.

    +

    Definition at line 103 of file transform.h.

    Constructor & Destructor Documentation

    - -

    ◆ SymmetricTransform()

    + +

    ◆ SymmetricTransform()

    @@ -221,77 +208,8 @@

    SymmetricTransform< T >::SymmetricTransform

    - - - - - - - - - - - - - -

    Additional Inherited Members

    - Static Public Member Functions inherited from TransformBase
    static const std::set< TransformBase * > & get_transforms ()
     
    - Static Public Member Functions inherited from SignalKSource
    static const std::vector< SignalKSource * > & get_sources ()
     
    - Static Public Member Functions inherited from Enable
    static void enableAll ()
     
    - Protected Member Functions inherited from Configurable
    virtual void load_configuration ()
     
    - Protected Attributes inherited from SignalKSource
    String sk_path
     
    - Protected Attributes inherited from ValueProducer< T >
    output
     
    ( String sk_path,
    String config_path = "" 
    )
    - - -inline - - -
    - -

    Definition at line 75 of file transform.h.

    - -
    - -

    Member Function Documentation

    - -

    ◆ connectFrom()

    - -
    -
    -
    -template<typename T>
    - - - @@ -300,22 +218,12 @@

    -

    A convenience method that allows up to five producers to be quickly connected to the input of the ValueConsumer side of this transform. The first producer will be connected to input channel zero, the second one to input channel 1, etc. "this" is returned, which allows the ValueProducer side of this transform to then be wired to other transforms via a call to connectTo().

    -

    Definition at line 89 of file transform.h.

    -
    -Here is the caller graph for this function:
    -
    -
    - - - -
    +

    Definition at line 106 of file transform.h.

    -
    The documentation for this class was generated from the following files:
      -
    • src/system/valueproducer.h
    • +
      The documentation for this class was generated from the following file: diff --git a/docs/class_symmetric_transform.js b/docs/class_symmetric_transform.js index 2e73a53c6..3c213f5e1 100644 --- a/docs/class_symmetric_transform.js +++ b/docs/class_symmetric_transform.js @@ -1,5 +1,4 @@ var class_symmetric_transform = [ - [ "SymmetricTransform", "class_symmetric_transform.html#add5f3e15e1956bde08508240e1031722", null ], - [ "connectFrom", "class_symmetric_transform.html#aefde059b7d9b753b11a33dd4bac6972b", null ] + [ "SymmetricTransform", "class_symmetric_transform.html#a77383aeb8a2dc0e27a2fbc24b451bc90", null ] ]; \ No newline at end of file diff --git a/docs/class_symmetric_transform__inherit__graph.map b/docs/class_symmetric_transform__inherit__graph.map index d1b8ab4e1..92e630015 100644 --- a/docs/class_symmetric_transform__inherit__graph.map +++ b/docs/class_symmetric_transform__inherit__graph.map @@ -1,13 +1,12 @@ - - - - - - - - - - - + + + + + + + + + + diff --git a/docs/class_symmetric_transform__inherit__graph.md5 b/docs/class_symmetric_transform__inherit__graph.md5 index 17f934371..25344f1f8 100644 --- a/docs/class_symmetric_transform__inherit__graph.md5 +++ b/docs/class_symmetric_transform__inherit__graph.md5 @@ -1 +1 @@ -6de4291014c9fe441302e8f3f0a70e30 \ No newline at end of file +e75d9e672eee68b14eea4607f9f83dad \ No newline at end of file diff --git a/docs/class_symmetric_transform__inherit__graph.png b/docs/class_symmetric_transform__inherit__graph.png index d6e5c2a17..17436488a 100644 Binary files a/docs/class_symmetric_transform__inherit__graph.png and b/docs/class_symmetric_transform__inherit__graph.png differ diff --git a/docs/class_system_hz-members.html b/docs/class_system_hz-members.html index 0a0ede954..f27943464 100644 --- a/docs/class_system_hz-members.html +++ b/docs/class_system_hz-members.html @@ -30,7 +30,7 @@

    @@ -98,7 +98,7 @@ - + @@ -115,7 +115,8 @@ - + +
    - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - -
    SymmetricTransform<T>* SymmetricTransform< T >::connectFrom (ValueProducer< T > * pProducer0,
    config_path = "") ValueProducer< T > * pProducer1 = NULL,
    ValueProducer< T > * pProducer2 = NULL,
    ValueProducer< T > * pProducer3 = NULL,
    ValueProducer< T > * pProducer4 = NULL 
    )
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    config_pathConfigurable
    Configurable(String config_path)Configurable
    connectTo(ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)ValueProducer< float >inline
    connectTo(SymmetricTransform< float > *pProducerConsumer, uint8_t inputChannel=0)ValueProducer< float >inline
    connectTo(Transform< float, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< float >inline
    Device(String config_path="")Device
    enable() override finalSystemHzvirtual
    Enable(uint8_t priority=0)Enable
    outputValueProducer< float >protected
    save_configuration()Configurablevirtual
    set_configuration(const JsonObject &config)Configurablevirtual
    ValueProducer()ValueProducer< float >inline
    setPriority(uint8_t priority)Enableinline
    ValueProducer()ValueProducer< float >inline
    diff --git a/docs/class_system_hz.html b/docs/class_system_hz.html index a1e2b6d3d..a7a2fde7d 100644 --- a/docs/class_system_hz.html +++ b/docs/class_system_hz.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -144,6 +144,8 @@   const int8_t getEnablePriority ()   +void setPriority (uint8_t priority) +  - Public Member Functions inherited from ValueProducer< float >  ValueProducer ()   @@ -151,8 +153,8 @@   void connectTo (ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)   -SymmetricTransform< float > * connectTo (SymmetricTransform< float > *pProducerConsumer, uint8_t inputChannel=0) -  +Transform< float, T2 > * connectTo (Transform< float, T2 > *pConsumerProducer, uint8_t inputChannel=0) +  diff --git a/docs/class_time_string-members.html b/docs/class_time_string-members.html index 771151f8f..3cdeed56b 100644 --- a/docs/class_time_string-members.html +++ b/docs/class_time_string-members.html @@ -30,7 +30,7 @@ @@ -94,36 +94,32 @@

    This is the complete list of members for TimeString, including all inherited members.

    Additional Inherited Members

    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    - - - - - - - + + + + + + + - - - - - + + + - + - - - - - - - - - + + + + + + +
    as_signalK() override finalTimeStringvirtual
    attach(std::function< void()> observer)Observable
    config_pathConfigurable
    Configurable(String config_path)Configurable
    connectFrom(ValueProducer< time_t > *pProducer, uint8_t inputChannel=0)ValueConsumer< time_t >inline
    connectTo(ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)ValueProducer< T >inline
    connectTo(SymmetricTransform< T > *pProducerConsumer, uint8_t inputChannel=0)ValueProducer< T >inline
    attach(std::function< void()> observer)Observable
    config_pathConfigurable
    Configurable(String config_path)Configurable
    connectFrom(ValueProducer< String > *pProducer0, ValueProducer< String > *pProducer1=NULL, ValueProducer< String > *pProducer2=NULL, ValueProducer< String > *pProducer3=NULL, ValueProducer< String > *pProducer4=NULL)Transform< time_t, String >inline
    ValueConsumer< time_t >::connectFrom(ValueProducer< time_t > *pProducer, uint8_t inputChannel=0)ValueConsumer< time_t >inline
    connectTo(ValueConsumer< String > *pConsumer, uint8_t inputChannel=0)ValueProducer< String >inline
    connectTo(Transform< String, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< String >inline
    Enable(uint8_t priority=0)Enable
    enable()Enableinlinevirtual
    enableAll()Enablestatic
    get()ValueProducer< T >inlinevirtual
    get_config_schema() overrideTimeStringvirtual
    get_configuration(JsonBuffer &buf) override finalTimeStringvirtual
    get_sk_path()SignalKSourceinline
    get_sources()SignalKSourceinlinestatic
    get()ValueProducer< String >inlinevirtual
    get_config_schema()Configurablevirtual
    get_configuration(JsonBuffer &buf)Configurablevirtual
    get_transforms()TransformBaseinlinestatic
    getEnablePriority()Enableinline
    load_configuration()Configurableprotectedvirtual
    notify()Observable
    outputValueProducer< T >protected
    outputValueProducer< String >protected
    save_configuration()Configurablevirtual
    set_configuration(const JsonObject &config) override finalTimeStringvirtual
    set_input(time_t input, uint8_t inputChannel=0) override finalTimeStringvirtual
    set_sk_path(const String &path)SignalKSourceinline
    SignalKSource(String sk_path)SignalKSource
    sk_pathSignalKSourceprotected
    TimeString(String sk_path, String config_path="")TimeString
    Transform(String sk_path, String config_path="")Transform< T >inline
    TransformBase(String sk_path, String config_path="")TransformBase
    ValueProducer()ValueProducer< T >inline
    set_configuration(const JsonObject &config)Configurablevirtual
    set_input(time_t input, uint8_t inputChannel=0) overrideTimeStringvirtual
    setPriority(uint8_t priority)Enableinline
    TimeString(String config_path="")TimeString
    Transform(String config_path="")Transform< time_t, String >inline
    TransformBase(String config_path="")TransformBase
    ValueProducer()ValueProducer< String >inline
    diff --git a/docs/class_time_string.html b/docs/class_time_string.html index d5436ed12..3ca1043ec 100644 --- a/docs/class_time_string.html +++ b/docs/class_time_string.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -101,56 +101,41 @@
    Inheritance graph
    - - - - - - - - - + + + + + + + + +
    [legend]
    - - - - - - - - - - - - - - - - - - + + + + + + + + + - - - - - - - - - - - - - - + + + + + + + + @@ -160,24 +145,31 @@ - + + + + + + - + - + - - + + + + + + +

    Public Member Functions

     TimeString (String sk_path, String config_path="")
     
    virtual void set_input (time_t input, uint8_t inputChannel=0) override final
     
    String as_signalK () override final
     
    virtual JsonObject & get_configuration (JsonBuffer &buf) override final
     
    virtual bool set_configuration (const JsonObject &config) override final
     
    virtual String get_config_schema () override
     
    - Public Member Functions inherited from ValueConsumer< time_t >
    void connectFrom (ValueProducer< time_t > *pProducer, uint8_t inputChannel=0)
     
    - Public Member Functions inherited from Transform< T >
     Transform (String sk_path, String config_path="")
     
     TimeString (String config_path="")
     
    virtual void set_input (time_t input, uint8_t inputChannel=0) override
     
    - Public Member Functions inherited from Transform< time_t, String >
     Transform (String config_path="")
     
    Transform< time_t, String > * connectFrom (ValueProducer< String > *pProducer0, ValueProducer< String > *pProducer1=NULL, ValueProducer< String > *pProducer2=NULL, ValueProducer< String > *pProducer3=NULL, ValueProducer< String > *pProducer4=NULL)
     
    - Public Member Functions inherited from TransformBase
     TransformBase (String sk_path, String config_path="")
     
    - Public Member Functions inherited from SignalKSource
     SignalKSource (String sk_path)
     
    String & get_sk_path ()
     
    void set_sk_path (const String &path)
     
    - Public Member Functions inherited from Observable
    void notify ()
     
    void attach (std::function< void()> observer)
     
     TransformBase (String config_path="")
     
    - Public Member Functions inherited from Configurable
     Configurable (String config_path)
     
    virtual JsonObject & get_configuration (JsonBuffer &buf)
     
    virtual bool set_configuration (const JsonObject &config)
     
    virtual String get_config_schema ()
     
    virtual void save_configuration ()
     
    - Public Member Functions inherited from Enable
     
    const int8_t getEnablePriority ()
     
    - Public Member Functions inherited from ValueProducer< T >
    void setPriority (uint8_t priority)
     
    - Public Member Functions inherited from ValueConsumer< time_t >
    void connectFrom (ValueProducer< time_t > *pProducer, uint8_t inputChannel=0)
     
    - Public Member Functions inherited from ValueProducer< String >
     ValueProducer ()
     
    virtual const T & get ()
    virtual const String & get ()
     
    void connectTo (ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)
    void connectTo (ValueConsumer< String > *pConsumer, uint8_t inputChannel=0)
     
    SymmetricTransform< T > * connectTo (SymmetricTransform< T > *pProducerConsumer, uint8_t inputChannel=0)
     
    Transform< String, T2 > * connectTo (Transform< String, T2 > *pConsumerProducer, uint8_t inputChannel=0)
     
    - Public Member Functions inherited from Observable
    void notify ()
     
    void attach (std::function< void()> observer)
     
    - - - @@ -187,19 +179,17 @@ - - - - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from TransformBase
    static const std::set< TransformBase * > & get_transforms ()
     
    - Static Public Member Functions inherited from SignalKSource
    static const std::vector< SignalKSource * > & get_sources ()
     
    - Static Public Member Functions inherited from Enable
    static void enableAll ()
     
    - Protected Member Functions inherited from Configurable
    virtual void load_configuration ()
     
    - Protected Attributes inherited from SignalKSource
    String sk_path
     
    - Protected Attributes inherited from ValueProducer< T >
    output
    - Protected Attributes inherited from ValueProducer< String >
    String output
     

    Detailed Description

    -
    -

    Definition at line 9 of file timestring.h.

    +

    TimeString consumes a time_t time object and produces a human readable string of the time for UTC in ISO 8601 format.

    + +

    Definition at line 13 of file timestring.h.

    Constructor & Destructor Documentation

    - -

    ◆ TimeString()

    + +

    ◆ TimeString()

    Member Function Documentation

    - -

    ◆ as_signalK()

    - -
    -
    - - - - - -
    - - - - - - - -
    String TimeString::as_signalK ()
    -
    -finaloverridevirtual
    -
    -

    Returns the data to be reported to the server as a SignalK json string.

    - -

    Reimplemented from SignalKSource.

    - -

    Definition at line 17 of file timestring.cpp.

    - -
    -
    - -

    ◆ get_config_schema()

    - -
    -
    - - - - - -
    - - - - - - - -
    String TimeString::get_config_schema ()
    -
    -overridevirtual
    -
    -

    Returns a configuration schema that specifies the key/value pairs that can be expected when calling get_configuration(), or are expected by set_configuration(). The schema will be in JSON Schema format

    See also
    https://json-schema.org
    - -

    Reimplemented from Configurable.

    - -

    Definition at line 34 of file timestring.cpp.

    - -
    -
    - -

    ◆ get_configuration()

    - -
    -
    - - - - - -
    - - - - - - - - -
    JsonObject & TimeString::get_configuration (JsonBuffer & buf)
    -
    -finaloverridevirtual
    -
    -

    Returns the current configuration data as a JsonObject. In general, the current state of local member variables are saved to a new object created with JsonBuffer::createObject() and returned.

    - -

    Reimplemented from Configurable.

    - -

    Definition at line 27 of file timestring.cpp.

    - -
    -
    - -

    ◆ set_configuration()

    - -
    -
    - - - - - -
    - - - - - - - - -
    bool TimeString::set_configuration (const JsonObject & config)
    -
    -finaloverridevirtual
    -
    -

    Sets the current state of local member variables using the data stored in config.

    - -

    Reimplemented from Configurable.

    - -

    Definition at line 44 of file timestring.cpp.

    - -
    -
    - -

    ◆ set_input()

    + +

    ◆ set_input()

    @@ -394,12 +252,12 @@

    ValueConsumer< time_t >.

    -

    Definition at line 10 of file timestring.cpp.

    +

    Definition at line 9 of file timestring.cpp.

    Here is the call graph for this function:
    -
    - +
    + diff --git a/docs/class_time_string.js b/docs/class_time_string.js index 016e95fd4..ca6058c04 100644 --- a/docs/class_time_string.js +++ b/docs/class_time_string.js @@ -1,9 +1,5 @@ var class_time_string = [ - [ "TimeString", "class_time_string.html#a9f4690ed5017c87671cff921855ab473", null ], - [ "as_signalK", "class_time_string.html#af290f6820906cba8d628ac04aad09378", null ], - [ "get_config_schema", "class_time_string.html#adf45aade28b1e60657253aefe9a1b6f4", null ], - [ "get_configuration", "class_time_string.html#a266d69d7194eb2c4c3bcd1bbc7e5251c", null ], - [ "set_configuration", "class_time_string.html#a4fbc04b63761975f99f6a812501da0b1", null ], - [ "set_input", "class_time_string.html#a918b15a7599ec68ad8494ce77b08bde1", null ] + [ "TimeString", "class_time_string.html#adc18ed47c4b6d88acceec81741aab5c3", null ], + [ "set_input", "class_time_string.html#a631583475f42183fdc5cd02914a26320", null ] ]; \ No newline at end of file diff --git a/docs/class_time_string__inherit__graph.map b/docs/class_time_string__inherit__graph.map index 991efcb32..53fdfaed8 100644 --- a/docs/class_time_string__inherit__graph.map +++ b/docs/class_time_string__inherit__graph.map @@ -1,11 +1,11 @@ - - - - - - - - - + + + + + + + + + diff --git a/docs/class_time_string__inherit__graph.md5 b/docs/class_time_string__inherit__graph.md5 index 811b42ac2..9925b6eed 100644 --- a/docs/class_time_string__inherit__graph.md5 +++ b/docs/class_time_string__inherit__graph.md5 @@ -1 +1 @@ -f1e773edb50a7e8572ce15a863db4b05 \ No newline at end of file +cd12ccda328f283d9835d96244a73389 \ No newline at end of file diff --git a/docs/class_time_string__inherit__graph.png b/docs/class_time_string__inherit__graph.png index c11fded50..8801baf84 100644 Binary files a/docs/class_time_string__inherit__graph.png and b/docs/class_time_string__inherit__graph.png differ diff --git a/docs/class_time_string_a631583475f42183fdc5cd02914a26320_cgraph.map b/docs/class_time_string_a631583475f42183fdc5cd02914a26320_cgraph.map new file mode 100644 index 000000000..49d40cc0a --- /dev/null +++ b/docs/class_time_string_a631583475f42183fdc5cd02914a26320_cgraph.map @@ -0,0 +1,4 @@ + + + + diff --git a/docs/class_time_string_a631583475f42183fdc5cd02914a26320_cgraph.md5 b/docs/class_time_string_a631583475f42183fdc5cd02914a26320_cgraph.md5 new file mode 100644 index 000000000..dbc4f54d6 --- /dev/null +++ b/docs/class_time_string_a631583475f42183fdc5cd02914a26320_cgraph.md5 @@ -0,0 +1 @@ +c73dced3fd6cccc4880a2505703cd571 \ No newline at end of file diff --git a/docs/class_time_string_a631583475f42183fdc5cd02914a26320_cgraph.png b/docs/class_time_string_a631583475f42183fdc5cd02914a26320_cgraph.png new file mode 100644 index 000000000..da133a70f Binary files /dev/null and b/docs/class_time_string_a631583475f42183fdc5cd02914a26320_cgraph.png differ diff --git a/docs/class_transform-members.html b/docs/class_transform-members.html index 91332a112..ec248cf33 100644 --- a/docs/class_transform-members.html +++ b/docs/class_transform-members.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -88,39 +88,37 @@
    -
    Transform< T > Member List
    +
    Transform< C, P > Member List
    -

    This is the complete list of members for Transform< T >, including all inherited members.

    +

    This is the complete list of members for Transform< C, P >, including all inherited members.

    - - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + +
    as_signalK()SignalKSourceinlinevirtual
    attach(std::function< void()> observer)Observable
    config_pathConfigurable
    Configurable(String config_path)Configurable
    connectTo(ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)ValueProducer< T >inline
    connectTo(SymmetricTransform< T > *pProducerConsumer, uint8_t inputChannel=0)ValueProducer< T >inline
    Enable(uint8_t priority=0)Enable
    attach(std::function< void()> observer)Observable
    config_pathConfigurable
    Configurable(String config_path)Configurable
    connectFrom(ValueProducer< P > *pProducer0, ValueProducer< P > *pProducer1=NULL, ValueProducer< P > *pProducer2=NULL, ValueProducer< P > *pProducer3=NULL, ValueProducer< P > *pProducer4=NULL)Transform< C, P >inline
    ValueConsumer< C >::connectFrom(ValueProducer< C > *pProducer, uint8_t inputChannel=0)ValueConsumer< C >inline
    connectTo(ValueConsumer< P > *pConsumer, uint8_t inputChannel=0)ValueProducer< P >inline
    connectTo(Transform< P, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< P >inline
    enable()Enableinlinevirtual
    enableAll()Enablestatic
    get()ValueProducer< T >inlinevirtual
    get_config_schema()Configurablevirtual
    get_configuration(JsonBuffer &buf)Configurablevirtual
    get_sk_path()SignalKSourceinline
    get_sources()SignalKSourceinlinestatic
    get_transforms()TransformBaseinlinestatic
    getEnablePriority()Enableinline
    load_configuration()Configurableprotectedvirtual
    notify()Observable
    outputValueProducer< T >protected
    save_configuration()Configurablevirtual
    set_configuration(const JsonObject &config)Configurablevirtual
    set_sk_path(const String &path)SignalKSourceinline
    SignalKSource(String sk_path)SignalKSource
    sk_pathSignalKSourceprotected
    Transform(String sk_path, String config_path="")Transform< T >inline
    TransformBase(String sk_path, String config_path="")TransformBase
    ValueProducer()ValueProducer< T >inline
    Enable(uint8_t priority=0)Enable
    enableAll()Enablestatic
    get()ValueProducer< P >inlinevirtual
    get_config_schema()Configurablevirtual
    get_configuration(JsonBuffer &buf)Configurablevirtual
    get_transforms()TransformBaseinlinestatic
    getEnablePriority()Enableinline
    load_configuration()Configurableprotectedvirtual
    notify()Observable
    outputValueProducer< P >protected
    save_configuration()Configurablevirtual
    set_configuration(const JsonObject &config)Configurablevirtual
    set_input(C newValue, uint8_t inputChannel=0)ValueConsumer< C >inlinevirtual
    setPriority(uint8_t priority)Enableinline
    Transform(String config_path="")Transform< C, P >inline
    TransformBase(String config_path="")TransformBase
    ValueProducer()ValueProducer< P >inline

    diff --git a/docs/class_transform.html b/docs/class_transform.html index 1873ecba0..62d6cf2b4 100644 --- a/docs/class_transform.html +++ b/docs/class_transform.html @@ -5,7 +5,7 @@ -SensESP: Transform< T > Class Template Reference +SensESP: Transform< C, P > Class Template Reference @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -91,51 +91,35 @@ Public Member Functions | List of all members
    -
    Transform< T > Class Template Reference
    +
    Transform< C, P > Class Template Reference
    -

    #include <transform.h>

    +

    #include <valueproducer.h>

    -Inheritance diagram for Transform< T >:
    +Inheritance diagram for Transform< C, P >:
    -
    Inheritance graph
    - - - - - - - - - - - - +
    Inheritance graph
    + + + + + + + +
    [legend]
    - - + + + + - - - - - - - - - - - - - - - - + + @@ -154,24 +138,33 @@ - + + + + + + + + - + - + - - + + + + + + +

    Public Member Functions

     Transform (String sk_path, String config_path="")
     
     Transform (String config_path="")
     
    Transform< C, P > * connectFrom (ValueProducer< P > *pProducer0, ValueProducer< P > *pProducer1=NULL, ValueProducer< P > *pProducer2=NULL, ValueProducer< P > *pProducer3=NULL, ValueProducer< P > *pProducer4=NULL)
     
    - Public Member Functions inherited from TransformBase
     TransformBase (String sk_path, String config_path="")
     
    - Public Member Functions inherited from SignalKSource
     SignalKSource (String sk_path)
     
    virtual String as_signalK ()
     
    String & get_sk_path ()
     
    void set_sk_path (const String &path)
     
    - Public Member Functions inherited from Observable
    void notify ()
     
    void attach (std::function< void()> observer)
     
     TransformBase (String config_path="")
     
    - Public Member Functions inherited from Configurable
     Configurable (String config_path)
     
     
    const int8_t getEnablePriority ()
     
    - Public Member Functions inherited from ValueProducer< T >
    void setPriority (uint8_t priority)
     
    - Public Member Functions inherited from ValueConsumer< C >
    virtual void set_input (C newValue, uint8_t inputChannel=0)
     
    void connectFrom (ValueProducer< C > *pProducer, uint8_t inputChannel=0)
     
    - Public Member Functions inherited from ValueProducer< P >
     ValueProducer ()
     
    virtual const T & get ()
    virtual const P & get ()
     
    void connectTo (ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)
    void connectTo (ValueConsumer< P > *pConsumer, uint8_t inputChannel=0)
     
    SymmetricTransform< T > * connectTo (SymmetricTransform< T > *pProducerConsumer, uint8_t inputChannel=0)
     
    Transform< P, T2 > * connectTo (Transform< P, T2 > *pConsumerProducer, uint8_t inputChannel=0)
     
    - Public Member Functions inherited from Observable
    void notify ()
     
    void attach (std::function< void()> observer)
     
    - - - @@ -181,43 +174,89 @@ - - - - - + +

    Additional Inherited Members

    - Static Public Member Functions inherited from TransformBase
    static const std::set< TransformBase * > & get_transforms ()
     
    - Static Public Member Functions inherited from SignalKSource
    static const std::vector< SignalKSource * > & get_sources ()
     
    - Static Public Member Functions inherited from Enable
    static void enableAll ()
     
    - Protected Member Functions inherited from Configurable
    virtual void load_configuration ()
     
    - Protected Attributes inherited from SignalKSource
    String sk_path
     
    - Protected Attributes inherited from ValueProducer< T >
    output
    - Protected Attributes inherited from ValueProducer< P >
    output
     

    Detailed Description

    -

    template<typename T>
    -class Transform< T >

    +

    template<typename C, typename P>
    +class Transform< C, P >

    -

    The main Transform class. A transform is identified primarily by the type of value that is produces (i.e. a Transform<float> is a ValueProducer<float> that generates float values)

    +

    The main Transform class. A transform is identified primarily by the type of value that is produces (i.e. a Transform<float> is a ValueProducer<float> that generates float values)

    -

    Definition at line 53 of file transform.h.

    +

    Definition at line 10 of file valueproducer.h.

    Constructor & Destructor Documentation

    - -

    ◆ Transform()

    + +

    ◆ Transform()

    -template<typename T>
    +template<typename C, typename P>
    + + +
    - + - + + + +
    Transform< T >::Transform Transform< C, P >::Transform ( String sk_path, config_path = "")
    +
    +inline
    +
    + +

    Definition at line 56 of file transform.h.

    + +
    +
    +

    Member Function Documentation

    + +

    ◆ connectFrom()

    + +
    +
    +
    +template<typename C, typename P>
    + + + @@ -102,51 +102,39 @@
    Inheritance graph
    - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + +
    [legend]
    + + + + + + - - + + + + + + + + + + + + + + + + + + + + @@ -231,12 +270,14 @@

    +

    A convenience method that allows up to five producers to be quickly connected to the input of the ValueConsumer side of this transform. The first producer will be connected to input channel zero, the second one to input channel 1, etc. "this" is returned, which allows the ValueProducer side of this transform to then be wired to other transforms via a call to connectTo().

    -

    Definition at line 55 of file transform.h.

    +

    Definition at line 72 of file transform.h.

    -
    The documentation for this class was generated from the following file:
      +
      The documentation for this class was generated from the following files: diff --git a/docs/class_transform.js b/docs/class_transform.js index 8cda1d25c..c669d3d3e 100644 --- a/docs/class_transform.js +++ b/docs/class_transform.js @@ -1,4 +1,5 @@ var class_transform = [ - [ "Transform", "class_transform.html#a44b7bcef8cc3b89fd6bbdb6a2bd98593", null ] + [ "Transform", "class_transform.html#a764037842596e71f15621e3732dac75a", null ], + [ "connectFrom", "class_transform.html#a7721846cbfe5b3d95c6f1f40cb387c5d", null ] ]; \ No newline at end of file diff --git a/docs/class_transform__inherit__graph.map b/docs/class_transform__inherit__graph.map index 66d05a5a4..38c9716d5 100644 --- a/docs/class_transform__inherit__graph.map +++ b/docs/class_transform__inherit__graph.map @@ -1,13 +1,9 @@ - - - - - - - - - - - - + + + + + + + + diff --git a/docs/class_transform__inherit__graph.md5 b/docs/class_transform__inherit__graph.md5 index 6f348cda0..70c11e60f 100644 --- a/docs/class_transform__inherit__graph.md5 +++ b/docs/class_transform__inherit__graph.md5 @@ -1 +1 @@ -78c38e5465453bbcad9f4d9a40be33ce \ No newline at end of file +c14de503ff7c13d321f11108e2c46fbd \ No newline at end of file diff --git a/docs/class_transform__inherit__graph.png b/docs/class_transform__inherit__graph.png index 7ee2d57e6..d4209bfad 100644 Binary files a/docs/class_transform__inherit__graph.png and b/docs/class_transform__inherit__graph.png differ diff --git a/docs/class_transform_base-members.html b/docs/class_transform_base-members.html index bfc8229da..a99ce05c5 100644 --- a/docs/class_transform_base-members.html +++ b/docs/class_transform_base-members.html @@ -30,7 +30,7 @@

    @@ -94,8 +94,6 @@

    This is the complete list of members for TransformBase, including all inherited members.

    Transform<C, P>* Transform< C, P >::connectFrom (ValueProducer< P > * pProducer0,
    String config_path = "" ValueProducer< P > * pProducer1 = NULL,
    ValueProducer< P > * pProducer2 = NULL,
    ValueProducer< P > * pProducer3 = NULL,
    ValueProducer< P > * pProducer4 = NULL 
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    - - @@ -103,18 +101,13 @@ - - - - - - - - - + + + +
    as_signalK()SignalKSourceinlinevirtual
    attach(std::function< void()> observer)Observable
    config_pathConfigurable
    Configurable(String config_path)Configurable
    Enable(uint8_t priority=0)Enable
    enableAll()Enablestatic
    get_config_schema()Configurablevirtual
    get_configuration(JsonBuffer &buf)Configurablevirtual
    get_sk_path()SignalKSourceinline
    get_sources()SignalKSourceinlinestatic
    get_transforms()TransformBaseinlinestatic
    getEnablePriority()Enableinline
    load_configuration()Configurableprotectedvirtual
    notify()Observable
    save_configuration()Configurablevirtual
    set_configuration(const JsonObject &config)Configurablevirtual
    set_sk_path(const String &path)SignalKSourceinline
    SignalKSource(String sk_path)SignalKSource
    sk_pathSignalKSourceprotected
    TransformBase(String sk_path, String config_path="")TransformBase
    save_configuration()Configurablevirtual
    set_configuration(const JsonObject &config)Configurablevirtual
    setPriority(uint8_t priority)Enableinline
    TransformBase(String config_path="")TransformBase
    diff --git a/docs/class_transform_base.html b/docs/class_transform_base.html index f9f933fc7..8344b7f9d 100644 --- a/docs/class_transform_base.html +++ b/docs/class_transform_base.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    - - - - - - - - - - - - - - - - + + @@ -165,14 +153,13 @@ + +

    Public Member Functions

     TransformBase (String sk_path, String config_path="")
     
    - Public Member Functions inherited from SignalKSource
     SignalKSource (String sk_path)
     
    virtual String as_signalK ()
     
    String & get_sk_path ()
     
    void set_sk_path (const String &path)
     
    - Public Member Functions inherited from Observable
    void notify ()
     
    void attach (std::function< void()> observer)
     
     TransformBase (String config_path="")
     
    - Public Member Functions inherited from Configurable
     Configurable (String config_path)
     
     
    const int8_t getEnablePriority ()
     
    void setPriority (uint8_t priority)
     
    - - - @@ -185,17 +172,14 @@ - - -

    Static Public Member Functions

    static const std::set< TransformBase * > & get_transforms ()
     
    - Static Public Member Functions inherited from SignalKSource
    static const std::vector< SignalKSource * > & get_sources ()
     
    - Static Public Member Functions inherited from Enable
    static void enableAll ()
     
    - Protected Member Functions inherited from Configurable
    virtual void load_configuration ()
     
    - Protected Attributes inherited from SignalKSource
    String sk_path
     

    Detailed Description

    -

    The base class for all transforms. All transforms are can be subscribed to by calling attach() (inherited from Observable). They can have an optional persistence configuration by specifying an "id" to save the configuration data in.

    +

    The base class for all transforms. All transforms are can be subscribed to by calling attach() (inherited from Observable). They can have an optional persistence configuration by specifying an "id" to save the configuration data in.

    Definition at line 28 of file transform.h.

    Constructor & Destructor Documentation

    - -

    ◆ TransformBase()

    + +

    ◆ TransformBase()

    diff --git a/docs/class_transform_base.js b/docs/class_transform_base.js index 62677550c..5f5a7d6e5 100644 --- a/docs/class_transform_base.js +++ b/docs/class_transform_base.js @@ -1,4 +1,4 @@ var class_transform_base = [ - [ "TransformBase", "class_transform_base.html#ac5499a469190bd7d6efcc5bbec4f49d7", null ] + [ "TransformBase", "class_transform_base.html#a4f28a4ec27046ac3ef1546eda4b5b43b", null ] ]; \ No newline at end of file diff --git a/docs/class_transform_base__inherit__graph.map b/docs/class_transform_base__inherit__graph.map index 9431c50de..db274945c 100644 --- a/docs/class_transform_base__inherit__graph.map +++ b/docs/class_transform_base__inherit__graph.map @@ -1,26 +1,28 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/class_transform_base__inherit__graph.md5 b/docs/class_transform_base__inherit__graph.md5 index 3ffa8458d..7492985d5 100644 --- a/docs/class_transform_base__inherit__graph.md5 +++ b/docs/class_transform_base__inherit__graph.md5 @@ -1 +1 @@ -f4fc7b245b5f21cefc9e6639f0f88b6a \ No newline at end of file +fcd9d49d4486afecb01babd0a6d687f4 \ No newline at end of file diff --git a/docs/class_transform_base__inherit__graph.png b/docs/class_transform_base__inherit__graph.png index 77f76ab5a..282ceb653 100644 Binary files a/docs/class_transform_base__inherit__graph.png and b/docs/class_transform_base__inherit__graph.png differ diff --git a/docs/class_uptime-members.html b/docs/class_uptime-members.html index 516700cf1..03b7f3d03 100644 --- a/docs/class_uptime-members.html +++ b/docs/class_uptime-members.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -98,7 +98,7 @@ config_pathConfigurable Configurable(String config_path)Configurable connectTo(ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)ValueProducer< float >inline - connectTo(SymmetricTransform< float > *pProducerConsumer, uint8_t inputChannel=0)ValueProducer< float >inline + connectTo(Transform< float, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< float >inline Device(String config_path="")Device Enable(uint8_t priority=0)Enable enable() override finalUptimevirtual @@ -115,7 +115,8 @@ outputValueProducer< float >protected save_configuration()Configurablevirtual set_configuration(const JsonObject &config)Configurablevirtual - ValueProducer()ValueProducer< float >inline + setPriority(uint8_t priority)Enableinline + ValueProducer()ValueProducer< float >inline
    diff --git a/docs/class_uptime.html b/docs/class_uptime.html index aa183d660..39cb64a64 100644 --- a/docs/class_uptime.html +++ b/docs/class_uptime.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -144,6 +144,8 @@   const int8_t getEnablePriority ()   +void setPriority (uint8_t priority) +  - Public Member Functions inherited from ValueProducer< float >  ValueProducer ()   @@ -151,8 +153,8 @@   void connectTo (ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)   -SymmetricTransform< float > * connectTo (SymmetricTransform< float > *pProducerConsumer, uint8_t inputChannel=0) -  +Transform< float, T2 > * connectTo (Transform< float, T2 > *pConsumerProducer, uint8_t inputChannel=0) +  diff --git a/docs/class_value_consumer-members.html b/docs/class_value_consumer-members.html index 0cd7b8f83..e203053fe 100644 --- a/docs/class_value_consumer-members.html +++ b/docs/class_value_consumer-members.html @@ -30,7 +30,7 @@ diff --git a/docs/class_value_consumer.html b/docs/class_value_consumer.html index ee613a2bb..b42886bd0 100644 --- a/docs/class_value_consumer.html +++ b/docs/class_value_consumer.html @@ -30,7 +30,7 @@ @@ -101,11 +101,11 @@
    Inheritance graph
    - - - - - + + + + +
    [legend]

    Additional Inherited Members

    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -167,6 +167,15 @@

    Definition at line 39 of file valueconsumer.h.

    +
    +Here is the caller graph for this function:
    +
    +
    + + + + +
    @@ -213,7 +222,7 @@

    Interpolate, GNSSPosition, VoltageDividerR2, Passthrough< T >, MovingAverage, Integrator, TimeString, Difference, and Linear.

    +

    Reimplemented in CurveInterpolator, SKOutput< T >, SKOutput< Position >, VoltageDividerR2, TimeString, Frequency, MovingAverage, Integrator, Difference, and Linear.

    Definition at line 28 of file valueconsumer.h.

    @@ -222,7 +231,7 @@

    - + diff --git a/docs/class_value_consumer__inherit__graph.map b/docs/class_value_consumer__inherit__graph.map index bbfd1a0e8..91051d512 100644 --- a/docs/class_value_consumer__inherit__graph.map +++ b/docs/class_value_consumer__inherit__graph.map @@ -1,7 +1,7 @@ - - - - - + + + + + diff --git a/docs/class_value_consumer__inherit__graph.md5 b/docs/class_value_consumer__inherit__graph.md5 index 4ae7e761b..b7db27039 100644 --- a/docs/class_value_consumer__inherit__graph.md5 +++ b/docs/class_value_consumer__inherit__graph.md5 @@ -1 +1 @@ -bf6bfcbe22f801378a32145cd1a13154 \ No newline at end of file +774f68a2a58ace0bb2a522e207f56755 \ No newline at end of file diff --git a/docs/class_value_consumer__inherit__graph.png b/docs/class_value_consumer__inherit__graph.png index b4fcd1cdb..03bedfc1d 100644 Binary files a/docs/class_value_consumer__inherit__graph.png and b/docs/class_value_consumer__inherit__graph.png differ diff --git a/docs/class_value_consumer_a6adf62d8d87ffa3ce70bb85379a68715_icgraph.map b/docs/class_value_consumer_a6adf62d8d87ffa3ce70bb85379a68715_icgraph.map new file mode 100644 index 000000000..67c297cb5 --- /dev/null +++ b/docs/class_value_consumer_a6adf62d8d87ffa3ce70bb85379a68715_icgraph.map @@ -0,0 +1,4 @@ + + + + diff --git a/docs/class_value_consumer_a6adf62d8d87ffa3ce70bb85379a68715_icgraph.md5 b/docs/class_value_consumer_a6adf62d8d87ffa3ce70bb85379a68715_icgraph.md5 new file mode 100644 index 000000000..5f85da57d --- /dev/null +++ b/docs/class_value_consumer_a6adf62d8d87ffa3ce70bb85379a68715_icgraph.md5 @@ -0,0 +1 @@ +c04c155a1181bc43ae1bbdc514123cf4 \ No newline at end of file diff --git a/docs/class_value_consumer_a6adf62d8d87ffa3ce70bb85379a68715_icgraph.png b/docs/class_value_consumer_a6adf62d8d87ffa3ce70bb85379a68715_icgraph.png new file mode 100644 index 000000000..19ea7c2ea Binary files /dev/null and b/docs/class_value_consumer_a6adf62d8d87ffa3ce70bb85379a68715_icgraph.png differ diff --git a/docs/class_value_consumer_a7bf920e5ad5f171ec6e2aeda056ff01f_icgraph.map b/docs/class_value_consumer_a7bf920e5ad5f171ec6e2aeda056ff01f_icgraph.map index 2f9f8b583..0d3111b4d 100644 --- a/docs/class_value_consumer_a7bf920e5ad5f171ec6e2aeda056ff01f_icgraph.map +++ b/docs/class_value_consumer_a7bf920e5ad5f171ec6e2aeda056ff01f_icgraph.map @@ -1,5 +1,5 @@ - + diff --git a/docs/class_value_consumer_a7bf920e5ad5f171ec6e2aeda056ff01f_icgraph.md5 b/docs/class_value_consumer_a7bf920e5ad5f171ec6e2aeda056ff01f_icgraph.md5 index b5c7d96f2..8c2eb2aa2 100644 --- a/docs/class_value_consumer_a7bf920e5ad5f171ec6e2aeda056ff01f_icgraph.md5 +++ b/docs/class_value_consumer_a7bf920e5ad5f171ec6e2aeda056ff01f_icgraph.md5 @@ -1 +1 @@ -75323fc951071380540c8ca7b64b1b9a \ No newline at end of file +ac9e5a312281367a4edefea1ce169e6f \ No newline at end of file diff --git a/docs/class_value_consumer_a7bf920e5ad5f171ec6e2aeda056ff01f_icgraph.png b/docs/class_value_consumer_a7bf920e5ad5f171ec6e2aeda056ff01f_icgraph.png index ee64eb8cb..bc0749fcd 100644 Binary files a/docs/class_value_consumer_a7bf920e5ad5f171ec6e2aeda056ff01f_icgraph.png and b/docs/class_value_consumer_a7bf920e5ad5f171ec6e2aeda056ff01f_icgraph.png differ diff --git a/docs/class_value_producer-members.html b/docs/class_value_producer-members.html index cb6f5958b..d80c988ef 100644 --- a/docs/class_value_producer-members.html +++ b/docs/class_value_producer-members.html @@ -30,7 +30,7 @@

    @@ -96,7 +96,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    - + diff --git a/docs/class_value_producer.html b/docs/class_value_producer.html index 7b6be450e..1ca28a46a 100644 --- a/docs/class_value_producer.html +++ b/docs/class_value_producer.html @@ -30,7 +30,7 @@ @@ -105,12 +105,11 @@ - + - - - - + + +
    [legend]
    attach(std::function< void()> observer)Observable
    connectTo(ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)ValueProducer< T >inline
    connectTo(SymmetricTransform< T > *pProducerConsumer, uint8_t inputChannel=0)ValueProducer< T >inline
    connectTo(Transform< T, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< T >inline
    get()ValueProducer< T >inlinevirtual
    notify()Observable
    outputValueProducer< T >protected
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -122,8 +121,9 @@ - - + + + @@ -168,7 +168,7 @@

    -

    Definition at line 21 of file valueproducer.h.

    +

    Definition at line 23 of file valueproducer.h.

    @@ -216,35 +216,39 @@

    See also
    ValueConsumer::set_input()
    -

    Definition at line 39 of file valueproducer.h.

    +

    Definition at line 42 of file valueproducer.h.

    Here is the caller graph for this function:
    - + + +
    - -

    ◆ connectTo() [2/2]

    + +

    ◆ connectTo() [2/2]

    template<typename T>
    +
    +template<typename T2 >

     
    void connectTo (ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)
     
    SymmetricTransform< T > * connectTo (SymmetricTransform< T > *pProducerConsumer, uint8_t inputChannel=0)
     
    template<typename T2 >
    Transform< T, T2 > * connectTo (Transform< T, T2 > *pConsumerProducer, uint8_t inputChannel=0)
     
    - Public Member Functions inherited from Observable
    void notify ()
     
    @@ -94,40 +94,35 @@

    This is the complete list of members for VoltageDividerR2, including all inherited members.

    - + - - + + @@ -264,9 +268,15 @@

    -

    If the consumer this producer is connecting to is ALSO a producer of values of the same type, connectTo() calls can be chained together, as this specialized version returns the Producer/Consumer so this method can be called on THAT object.

    +

    If the consumer this producer is connecting to is ALSO a producer of values of the same type, connectTo() calls can be chained together, as this specialized version returns the producer/consumer being conencted to so connectTo() can be called on THAT object.

    Parameters
    +

    SymmetricTransform<T>* ValueProducer< T >::connectTo Transform<T, T2>* ValueProducer< T >::connectTo (SymmetricTransform< T > * pProducerConsumer, Transform< T, T2 > * pConsumerProducer,
    + +
    inputChannelConsumers can have one or more inputs feeding them This parameter allows you to specify which input number this producer is connecting to. For single input consumers, leave the index at zero.
    + + +
    See also
    ValueConsumer::set_input()
    -

    Definition at line 52 of file valueproducer.h.

    +

    Definition at line 62 of file valueproducer.h.

    @@ -296,7 +306,7 @@

    Returns the current value of this producer

    -

    Definition at line 27 of file valueproducer.h.

    +

    Definition at line 29 of file valueproducer.h.

    Here is the caller graph for this function:
    @@ -309,7 +319,7 @@

    - +

    @@ -340,7 +350,7 @@

    The current value of this producer is stored here in this output member (unless descendant classes override ValueProducer::get())

    -

    Definition at line 64 of file valueproducer.h.

    +

    Definition at line 74 of file valueproducer.h.

    diff --git a/docs/class_value_producer.js b/docs/class_value_producer.js index 5c5fd3b90..43c63d96b 100644 --- a/docs/class_value_producer.js +++ b/docs/class_value_producer.js @@ -2,7 +2,7 @@ var class_value_producer = [ [ "ValueProducer", "class_value_producer.html#a0ef05992883120f7202c14fd8e577103", null ], [ "connectTo", "class_value_producer.html#a1669282467997608ce6164fe4d729bb2", null ], - [ "connectTo", "class_value_producer.html#a64af7a373036743d912876475c566045", null ], + [ "connectTo", "class_value_producer.html#adfb3d9679b80c9fae0951ca13911344f", null ], [ "get", "class_value_producer.html#adaf30ea1027efa0c83c75dfe3afc0c1a", null ], [ "output", "class_value_producer.html#a9d3882f6de7ef8b05e78947cf9df2697", null ] ]; \ No newline at end of file diff --git a/docs/class_value_producer__inherit__graph.map b/docs/class_value_producer__inherit__graph.map index d1c98363e..65dd7ab5b 100644 --- a/docs/class_value_producer__inherit__graph.map +++ b/docs/class_value_producer__inherit__graph.map @@ -2,10 +2,9 @@ - + - - - - + + + diff --git a/docs/class_value_producer__inherit__graph.md5 b/docs/class_value_producer__inherit__graph.md5 index 37102c6d3..324ee9f6c 100644 --- a/docs/class_value_producer__inherit__graph.md5 +++ b/docs/class_value_producer__inherit__graph.md5 @@ -1 +1 @@ -db6c530a62438fbb4d47be1763d24b4f \ No newline at end of file +1cd347a31e5bd65ba91348b6feeeb4cf \ No newline at end of file diff --git a/docs/class_value_producer__inherit__graph.png b/docs/class_value_producer__inherit__graph.png index 2f2a7efc3..bdf5a4f8b 100644 Binary files a/docs/class_value_producer__inherit__graph.png and b/docs/class_value_producer__inherit__graph.png differ diff --git a/docs/class_value_producer_a1669282467997608ce6164fe4d729bb2_icgraph.map b/docs/class_value_producer_a1669282467997608ce6164fe4d729bb2_icgraph.map index 739d958de..2bd208da3 100644 --- a/docs/class_value_producer_a1669282467997608ce6164fe4d729bb2_icgraph.map +++ b/docs/class_value_producer_a1669282467997608ce6164fe4d729bb2_icgraph.map @@ -1,4 +1,6 @@ - + + + diff --git a/docs/class_value_producer_a1669282467997608ce6164fe4d729bb2_icgraph.md5 b/docs/class_value_producer_a1669282467997608ce6164fe4d729bb2_icgraph.md5 index 632c2b65f..fe34965df 100644 --- a/docs/class_value_producer_a1669282467997608ce6164fe4d729bb2_icgraph.md5 +++ b/docs/class_value_producer_a1669282467997608ce6164fe4d729bb2_icgraph.md5 @@ -1 +1 @@ -1c56550b10613194092b425974608c63 \ No newline at end of file +ae81d3e759cb4a64b798746fc406e8db \ No newline at end of file diff --git a/docs/class_value_producer_a1669282467997608ce6164fe4d729bb2_icgraph.png b/docs/class_value_producer_a1669282467997608ce6164fe4d729bb2_icgraph.png index 2325025eb..044c78d19 100644 Binary files a/docs/class_value_producer_a1669282467997608ce6164fe4d729bb2_icgraph.png and b/docs/class_value_producer_a1669282467997608ce6164fe4d729bb2_icgraph.png differ diff --git a/docs/class_value_producer_adaf30ea1027efa0c83c75dfe3afc0c1a_icgraph.map b/docs/class_value_producer_adaf30ea1027efa0c83c75dfe3afc0c1a_icgraph.map index ac499ad4a..2f8bb8885 100644 --- a/docs/class_value_producer_adaf30ea1027efa0c83c75dfe3afc0c1a_icgraph.map +++ b/docs/class_value_producer_adaf30ea1027efa0c83c75dfe3afc0c1a_icgraph.map @@ -6,6 +6,6 @@ - + diff --git a/docs/class_value_producer_adaf30ea1027efa0c83c75dfe3afc0c1a_icgraph.md5 b/docs/class_value_producer_adaf30ea1027efa0c83c75dfe3afc0c1a_icgraph.md5 index d471b4fe6..db438fc70 100644 --- a/docs/class_value_producer_adaf30ea1027efa0c83c75dfe3afc0c1a_icgraph.md5 +++ b/docs/class_value_producer_adaf30ea1027efa0c83c75dfe3afc0c1a_icgraph.md5 @@ -1 +1 @@ -d948586abf58c5d178fc2afa807acc9e \ No newline at end of file +bd7467b1c3befeb505765a23f3de584e \ No newline at end of file diff --git a/docs/class_value_producer_adaf30ea1027efa0c83c75dfe3afc0c1a_icgraph.png b/docs/class_value_producer_adaf30ea1027efa0c83c75dfe3afc0c1a_icgraph.png index a5c0dc885..10aeff2b2 100644 Binary files a/docs/class_value_producer_adaf30ea1027efa0c83c75dfe3afc0c1a_icgraph.png and b/docs/class_value_producer_adaf30ea1027efa0c83c75dfe3afc0c1a_icgraph.png differ diff --git a/docs/class_voltage_divider_r2-members.html b/docs/class_voltage_divider_r2-members.html index 55058e13e..8970ca7cf 100644 --- a/docs/class_voltage_divider_r2-members.html +++ b/docs/class_voltage_divider_r2-members.html @@ -30,7 +30,7 @@

    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    as_signalK() overrideVoltageDividerR2virtual
    attach(std::function< void()> observer)Observable
    config_pathConfigurable
    Configurable(String config_path)Configurable
    connectFrom(ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)SymmetricTransform< float >inline
    ValueConsumer< float >::connectFrom(ValueProducer< float > *pProducer, uint8_t inputChannel=0)ValueConsumer< float >inline
    connectTo(ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)ValueProducer< float >inline
    connectTo(SymmetricTransform< float > *pProducerConsumer, uint8_t inputChannel=0)ValueProducer< float >inline
    Enable(uint8_t priority=0)Enable
    enable()Enableinlinevirtual
    enableAll()Enablestatic
    get()ValueProducer< float >inlinevirtual
    get_config_schema() overrideVoltageDividerR2virtual
    get_configuration(JsonBuffer &buf) overrideVoltageDividerR2virtual
    get_sk_path()SignalKSourceinline
    get_sources()SignalKSourceinlinestatic
    get_transforms()TransformBaseinlinestatic
    getEnablePriority()Enableinline
    load_configuration()Configurableprotectedvirtual
    notify()Observable
    outputValueProducer< float >protected
    R1VoltageDividerR2protected
    save_configuration()Configurablevirtual
    set_configuration(const JsonObject &config) overrideVoltageDividerR2virtual
    set_input(float Vout, uint8_t ignored=0) overrideVoltageDividerR2virtual
    set_sk_path(const String &path)SignalKSourceinline
    SignalKSource(String sk_path)SignalKSource
    sk_pathSignalKSourceprotected
    SymmetricTransform(String sk_path, String config_path="")SymmetricTransform< float >inline
    Transform(String sk_path, String config_path="")Transform< float >inline
    TransformBase(String sk_path, String config_path="")TransformBase
    ValueProducer()ValueProducer< float >inline
    VinVoltageDividerR2protected
    VoltageDividerR2(float R1, float Vin=3.3, String sk_path="", String config_path="")VoltageDividerR2
    attach(std::function< void()> observer)Observable
    config_pathConfigurable
    Configurable(String config_path)Configurable
    connectFrom(ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)Transform< float, float >inline
    ValueConsumer< float >::connectFrom(ValueProducer< float > *pProducer, uint8_t inputChannel=0)ValueConsumer< float >inline
    connectTo(ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)ValueProducer< float >inline
    connectTo(Transform< float, T2 > *pConsumerProducer, uint8_t inputChannel=0)ValueProducer< float >inline
    Enable(uint8_t priority=0)Enable
    enable()Enableinlinevirtual
    enableAll()Enablestatic
    get()ValueProducer< float >inlinevirtual
    get_config_schema() overrideVoltageDividerR2virtual
    get_configuration(JsonBuffer &buf) overrideVoltageDividerR2virtual
    get_transforms()TransformBaseinlinestatic
    getEnablePriority()Enableinline
    load_configuration()Configurableprotectedvirtual
    notify()Observable
    outputValueProducer< float >protected
    R1VoltageDividerR2protected
    save_configuration()Configurablevirtual
    set_configuration(const JsonObject &config) overrideVoltageDividerR2virtual
    set_input(float Vout, uint8_t ignored=0) overrideVoltageDividerR2virtual
    setPriority(uint8_t priority)Enableinline
    SymmetricTransform(String config_path="")SymmetricTransform< float >inline
    Transform(String config_path="")Transform< float, float >inline
    TransformBase(String config_path="")TransformBase
    ValueProducer()ValueProducer< float >inline
    VinVoltageDividerR2protected
    VoltageDividerR2(float R1, float Vin=3.3, String config_path="")VoltageDividerR2
    diff --git a/docs/class_voltage_divider_r2.html b/docs/class_voltage_divider_r2.html index 809ad86cc..f852dacff 100644 --- a/docs/class_voltage_divider_r2.html +++ b/docs/class_voltage_divider_r2.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -102,27 +102,24 @@
    Inheritance graph
    - - - - - - - - - - + + + + + + + + +
    [legend]
    - - + + - - @@ -130,31 +127,16 @@ - - - - - - - - - - + + + + + + + - - - - - - - - - - - - - - + + @@ -167,6 +149,11 @@ + + + + + @@ -174,8 +161,13 @@ - - + + + + + + +

    Public Member Functions

     VoltageDividerR2 (float R1, float Vin=3.3, String sk_path="", String config_path="")
     
     VoltageDividerR2 (float R1, float Vin=3.3, String config_path="")
     
    virtual void set_input (float Vout, uint8_t ignored=0) override
     
    String as_signalK () override
     
    virtual JsonObject & get_configuration (JsonBuffer &buf) override
     
    virtual bool set_configuration (const JsonObject &config) override
    virtual String get_config_schema () override
     
    - Public Member Functions inherited from SymmetricTransform< float >
     SymmetricTransform (String sk_path, String config_path="")
     
    SymmetricTransform< float > * connectFrom (ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)
     
    - Public Member Functions inherited from ValueConsumer< float >
    void connectFrom (ValueProducer< float > *pProducer, uint8_t inputChannel=0)
     
    - Public Member Functions inherited from Transform< float >
     Transform (String sk_path, String config_path="")
     
     SymmetricTransform (String config_path="")
     
    - Public Member Functions inherited from Transform< float, float >
     Transform (String config_path="")
     
    Transform< float, float > * connectFrom (ValueProducer< float > *pProducer0, ValueProducer< float > *pProducer1=NULL, ValueProducer< float > *pProducer2=NULL, ValueProducer< float > *pProducer3=NULL, ValueProducer< float > *pProducer4=NULL)
     
    - Public Member Functions inherited from TransformBase
     TransformBase (String sk_path, String config_path="")
     
    - Public Member Functions inherited from SignalKSource
     SignalKSource (String sk_path)
     
    String & get_sk_path ()
     
    void set_sk_path (const String &path)
     
    - Public Member Functions inherited from Observable
    void notify ()
     
    void attach (std::function< void()> observer)
     
     TransformBase (String config_path="")
     
    - Public Member Functions inherited from Configurable
     Configurable (String config_path)
     
     
    const int8_t getEnablePriority ()
     
    void setPriority (uint8_t priority)
     
    - Public Member Functions inherited from ValueConsumer< float >
    void connectFrom (ValueProducer< float > *pProducer, uint8_t inputChannel=0)
     
    - Public Member Functions inherited from ValueProducer< float >
     ValueProducer ()
     
     
    void connectTo (ValueConsumer< float > *pConsumer, uint8_t inputChannel=0)
     
    SymmetricTransform< float > * connectTo (SymmetricTransform< float > *pProducerConsumer, uint8_t inputChannel=0)
     
    Transform< float, T2 > * connectTo (Transform< float, T2 > *pConsumerProducer, uint8_t inputChannel=0)
     
    - Public Member Functions inherited from Observable
    void notify ()
     
    void attach (std::function< void()> observer)
     
    @@ -183,9 +175,6 @@ - - - @@ -195,9 +184,6 @@ - - - @@ -213,8 +199,8 @@

    Definition at line 17 of file voltagedividerR2.h.

    Constructor & Destructor Documentation

    - -

    ◆ VoltageDividerR2()

    + +

    ◆ VoltageDividerR2()

    @@ -231,12 +217,6 @@

    float 

    - - - - - - @@ -256,36 +236,6 @@

    Member Function Documentation

    - -

    ◆ as_signalK()

    - -
    -
    -

    Protected Attributes

     
    float Vin
     
    - Protected Attributes inherited from SignalKSource
    String sk_path
     
    - Protected Attributes inherited from ValueProducer< float >
    float output
     
    - Static Public Member Functions inherited from TransformBase
    static const std::set< TransformBase * > & get_transforms ()
     
    - Static Public Member Functions inherited from SignalKSource
    static const std::vector< SignalKSource * > & get_sources ()
     
    - Static Public Member Functions inherited from Enable
    static void enableAll ()
     
    Vin = 3.3,
    String sk_path = "",
    - - - - -
    - - - - - - - -
    String VoltageDividerR2::as_signalK ()
    -
    -overridevirtual
    -
    -

    Returns the data to be reported to the server as a SignalK json string.

    - -

    Reimplemented from SignalKSource.

    - -

    Definition at line 12 of file voltagedividerR2.cpp.

    - -
    -

    ◆ get_config_schema()

    @@ -312,7 +262,7 @@

    Configurable.

    -

    Definition at line 32 of file voltagedividerR2.cpp.

    +

    Definition at line 28 of file voltagedividerR2.cpp.

    @@ -343,7 +293,7 @@

    Configurable.

    -

    Definition at line 23 of file voltagedividerR2.cpp.

    +

    Definition at line 13 of file voltagedividerR2.cpp.

    @@ -374,7 +324,7 @@

    Configurable.

    -

    Definition at line 44 of file voltagedividerR2.cpp.

    +

    Definition at line 32 of file voltagedividerR2.cpp.

    @@ -455,7 +405,7 @@

    -

    Definition at line 33 of file voltagedividerR2.h.

    +

    Definition at line 30 of file voltagedividerR2.h.

    @@ -479,7 +429,7 @@

    -

    Definition at line 34 of file voltagedividerR2.h.

    +

    Definition at line 31 of file voltagedividerR2.h.

    diff --git a/docs/class_voltage_divider_r2.js b/docs/class_voltage_divider_r2.js index ed0177311..604020615 100644 --- a/docs/class_voltage_divider_r2.js +++ b/docs/class_voltage_divider_r2.js @@ -1,7 +1,6 @@ var class_voltage_divider_r2 = [ - [ "VoltageDividerR2", "class_voltage_divider_r2.html#aa01015814dad17dd7db497a8c9209d44", null ], - [ "as_signalK", "class_voltage_divider_r2.html#a1d13a6e6ddac3468c3722dc884a64ffd", null ], + [ "VoltageDividerR2", "class_voltage_divider_r2.html#a609ab5e2db4122ddc875a94ba8f9d325", null ], [ "get_config_schema", "class_voltage_divider_r2.html#ae37065fd9bd093497ff74a9faf5b6cea", null ], [ "get_configuration", "class_voltage_divider_r2.html#a35275626b89244eb30f0c1be504dbdb6", null ], [ "set_configuration", "class_voltage_divider_r2.html#a805b64252dccfd3720ce5fc0f84964b3", null ], diff --git a/docs/class_voltage_divider_r2__inherit__graph.map b/docs/class_voltage_divider_r2__inherit__graph.map index 8f9017035..59fdb44b5 100644 --- a/docs/class_voltage_divider_r2__inherit__graph.map +++ b/docs/class_voltage_divider_r2__inherit__graph.map @@ -1,12 +1,11 @@ - - - - - - - - - - + + + + + + + + + diff --git a/docs/class_voltage_divider_r2__inherit__graph.md5 b/docs/class_voltage_divider_r2__inherit__graph.md5 index c39e574e4..571361a7a 100644 --- a/docs/class_voltage_divider_r2__inherit__graph.md5 +++ b/docs/class_voltage_divider_r2__inherit__graph.md5 @@ -1 +1 @@ -55974a791ed1bc879adc707a154290df \ No newline at end of file +c362edfa2d41f9999d2b6b89003f95c2 \ No newline at end of file diff --git a/docs/class_voltage_divider_r2__inherit__graph.png b/docs/class_voltage_divider_r2__inherit__graph.png index 02d88776e..446fb1f3a 100644 Binary files a/docs/class_voltage_divider_r2__inherit__graph.png and b/docs/class_voltage_divider_r2__inherit__graph.png differ diff --git a/docs/class_voltage_divider_r2_a43fa7bb9dc49c50de247aac272d7f697_cgraph.md5 b/docs/class_voltage_divider_r2_a43fa7bb9dc49c50de247aac272d7f697_cgraph.md5 index 3259cda94..3829621ee 100644 --- a/docs/class_voltage_divider_r2_a43fa7bb9dc49c50de247aac272d7f697_cgraph.md5 +++ b/docs/class_voltage_divider_r2_a43fa7bb9dc49c50de247aac272d7f697_cgraph.md5 @@ -1 +1 @@ -310e8cb1a45e4205f98df3d787bfd7ea \ No newline at end of file +e860cda13a3611398f4eadb6bbd2e031 \ No newline at end of file diff --git a/docs/class_w_s_client-members.html b/docs/class_w_s_client-members.html index 5480df993..0c7ae9bea 100644 --- a/docs/class_w_s_client-members.html +++ b/docs/class_w_s_client-members.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    diff --git a/docs/class_w_s_client.html b/docs/class_w_s_client.html index 3ccc04567..dc02d70c8 100644 --- a/docs/class_w_s_client.html +++ b/docs/class_w_s_client.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -294,7 +294,7 @@

    Configurable.

    -

    Definition at line 339 of file ws_client.cpp.

    +

    Definition at line 349 of file ws_client.cpp.

    @@ -585,7 +585,7 @@

    Configurable.

    -

    Definition at line 352 of file ws_client.cpp.

    +

    Definition at line 354 of file ws_client.cpp.

    diff --git a/docs/classes.html b/docs/classes.html index 5e7483f91..371f00e23 100644 --- a/docs/classes.html +++ b/docs/classes.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -94,44 +94,44 @@
    a | c | d | e | f | g | h | i | l | m | n | o | p | s | t | u | v | w
    + - - + + + - + + - - - - + + - - - - + + - - - + + - - + + + +
      a  
    -
    ENUVector   Interpolate   OneWireTemperature   TimeString   
    ENUVector   
      l  
    +
    PSTI030SentenceParser   Transform   
      f  
    -
    IPAddrDev   
      p  
    -
    Transform   
    AnalogInput   
      l  
    -
    TransformBase   
    AnalogVoltage   FreeMem   Passthrough   
      u  
    +
    PSTI032SentenceParser   TransformBase   
    AnalogInput   LedBlinker   PSTISentenceParser   
      u  
    AnalogVoltage   FreeMem   Linear   
      s  
    +
      c  
    -
    Frequency   LedBlinker   Position   
    Frequency   
      m  
    +
    Uptime   
      g  
    -
    Linear   PSTI030SentenceParser   Uptime   
    Configurable   
      m  
    -
    PSTI032SentenceParser   
      v  
    +
    CurveInterpolator::Sample   
      v  
    Configurable   MovingAverage   SensESPApp   
    CurveInterpolator   GPGGASentenceParser   
      n  
    +
    SentenceParser   ValueConsumer   
      d  
    -
    GNSSPosition   PSTISentenceParser   
    GPGGASentenceParser   MovingAverage   
      s  
    -
    ValueConsumer   
    DallasTemperatureSensors   GPGLLSentenceParser   
      n  
    -
    ValueProducer   
    Debounce   GPRMCSentenceParser   Interpolate::Sample   VoltageDividerR2   
    Device   GPSInput   Networking   SensESPApp   
      w  
    +
    GPGLLSentenceParser   SKDelta   ValueProducer   
    GPRMCSentenceParser   Networking   SKEmitter   VoltageDividerR2   
    DallasTemperatureSensors   GPSInput   NMEAData   SKOutput   
      w  
    Difference   
      h  
    -
    NMEAData   SentenceParser   
    DigitalInput   NMEAParser   SignalKSource   WSClient   
    DigitalInputCounter   HTTPServer   NumericDevice   SKDelta   
    DigitalInputValue   
      i  
    -
      o  
    +
    Debounce   
      h  
    +
    NMEAParser   SKOutputPosition   
    Device   NumericDevice   SKOutputTime   WSClient   
    Difference   HTTPServer   
      o  
    StringDevice   
      e  
    -
    SymmetricTransform   
    IntegerDevice   Observable   SystemHz   
    Enable   Integrator   ObservableValue   
      t  
    +
    DigitalInput   
      i  
    +
    SymmetricTransform   
    DigitalInputCounter   Observable   SystemHz   
    DigitalInputValue   IntegerDevice   ObservableValue   
      t  
    TemperatureInterpreter   
      e  
    +
    Integrator   OneWireTemperature   
    IPAddrDev   
      p  
    +
    TimeString   
    Enable   
    Position   
    a | c | d | e | f | g | h | i | l | m | n | o | p | s | t | u | v | w
    diff --git a/docs/configurable_8cpp.html b/docs/configurable_8cpp.html index 6ba1ba5ea..255d371e9 100644 --- a/docs/configurable_8cpp.html +++ b/docs/configurable_8cpp.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    diff --git a/docs/configurable_8cpp_source.html b/docs/configurable_8cpp_source.html index 45587e926..a071cda43 100644 --- a/docs/configurable_8cpp_source.html +++ b/docs/configurable_8cpp_source.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    diff --git a/docs/configurable_8h.html b/docs/configurable_8h.html index 4dcbd4c68..e96e25385 100644 --- a/docs/configurable_8h.html +++ b/docs/configurable_8h.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -113,56 +113,56 @@
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    diff --git a/docs/configurable_8h__dep__incl.map b/docs/configurable_8h__dep__incl.map index 2912de24c..3fd9a289f 100644 --- a/docs/configurable_8h__dep__incl.map +++ b/docs/configurable_8h__dep__incl.map @@ -1,52 +1,52 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/configurable_8h__dep__incl.md5 b/docs/configurable_8h__dep__incl.md5 index ec933927c..e99d68a52 100644 --- a/docs/configurable_8h__dep__incl.md5 +++ b/docs/configurable_8h__dep__incl.md5 @@ -1 +1 @@ -2b83ceb8f94cb0e140c0d5574bb4df8d \ No newline at end of file +f2aa50ebeab00cef39d043862cfa605e \ No newline at end of file diff --git a/docs/configurable_8h__dep__incl.png b/docs/configurable_8h__dep__incl.png index 7daec14d1..e4fe68140 100644 Binary files a/docs/configurable_8h__dep__incl.png and b/docs/configurable_8h__dep__incl.png differ diff --git a/docs/configurable_8h_source.html b/docs/configurable_8h_source.html index 92e43bc36..79282d39c 100644 --- a/docs/configurable_8h_source.html +++ b/docs/configurable_8h_source.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    diff --git a/docs/curveinterpolator_8cpp.html b/docs/curveinterpolator_8cpp.html new file mode 100644 index 000000000..d2af908b8 --- /dev/null +++ b/docs/curveinterpolator_8cpp.html @@ -0,0 +1,137 @@ + + + + + + + +SensESP: src/transforms/curveinterpolator.cpp File Reference + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SensESP +  0.4.0 +
    +
    Universal Signal K sensor framework for ESP8266 and ESP32
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    curveinterpolator.cpp File Reference
    +
    +
    +
    #include "curveinterpolator.h"
    +#include <RemoteDebug.h>
    +
    +Include dependency graph for curveinterpolator.cpp:
    +
    +
    + + + + + + + + + + + + + + + + + + + + + + +
    +
    +

    Go to the source code of this file.

    +
    +
    + + + + diff --git a/docs/curveinterpolator_8cpp__incl.map b/docs/curveinterpolator_8cpp__incl.map new file mode 100644 index 000000000..0c10e377d --- /dev/null +++ b/docs/curveinterpolator_8cpp__incl.map @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/curveinterpolator_8cpp__incl.md5 b/docs/curveinterpolator_8cpp__incl.md5 new file mode 100644 index 000000000..83a53fad4 --- /dev/null +++ b/docs/curveinterpolator_8cpp__incl.md5 @@ -0,0 +1 @@ +e0f77b64f54d9e8f96c201bd35be796c \ No newline at end of file diff --git a/docs/curveinterpolator_8cpp__incl.png b/docs/curveinterpolator_8cpp__incl.png new file mode 100644 index 000000000..e6d46a4e9 Binary files /dev/null and b/docs/curveinterpolator_8cpp__incl.png differ diff --git a/docs/curveinterpolator_8cpp_source.html b/docs/curveinterpolator_8cpp_source.html new file mode 100644 index 000000000..57072925e --- /dev/null +++ b/docs/curveinterpolator_8cpp_source.html @@ -0,0 +1,124 @@ + + + + + + + +SensESP: src/transforms/curveinterpolator.cpp Source File + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SensESP +  0.4.0 +
    +
    Universal Signal K sensor framework for ESP8266 and ESP32
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    curveinterpolator.cpp
    +
    +
    +Go to the documentation of this file.
    1 #include "curveinterpolator.h"
    2 
    3 #include <RemoteDebug.h>
    4 
    6 }
    7 
    8 CurveInterpolator::Sample::Sample(float input, float output) : input{input}, output{output} {
    9 }
    10 
    11 CurveInterpolator::Sample::Sample(JsonObject& obj) : input{obj["input"]}, output{obj["output"]} {
    12 
    13 }
    14 
    15 
    16 CurveInterpolator::CurveInterpolator(std::set<Sample>* defaults, String config_path)
    18 
    19  // Load default values if no configuration present...
    20  if (defaults != NULL) {
    21  samples.clear();
    22  samples = *defaults;
    23  }
    24 
    26 
    27 }
    28 
    29 
    30 void CurveInterpolator::set_input(float input, uint8_t inputChannel) {
    31 
    32  float x0 = 0.0;
    33  float y0 = 0.0;
    34 
    35  std::set<Sample>::iterator it = samples.begin();
    36 
    37  while (it != samples.end()) {
    38  auto& sample = *it;
    39 
    40  if (input > sample.input) {
    41  x0 = sample.input;
    42  y0 = sample.output;
    43  }
    44  else {
    45  break;
    46  }
    47 
    48  it++;
    49  }
    50 
    51  if (it != samples.end()) {
    52  // We found our range. "input" is between
    53  // minInput and it->input. CurveInterpolator the result
    54  Sample max = *it;
    55  float x1 = max.input;
    56  float y1 = max.output;
    57 
    58  output = (y0 * (x1 - input) + y1 * (input - x0)) / (x1 - x0);
    59  }
    60  else {
    61  // Hit the end of the table with no match.
    62  output = 9999.9;
    63 // debugW("Could not find sample interval for input %0f", input);
    64  }
    65 
    66  notify();
    67 }
    68 
    69 
    70 JsonObject& CurveInterpolator::get_configuration(JsonBuffer& buf) {
    71  JsonObject& root = buf.createObject();
    72 
    73  JsonArray& jSamples = root.createNestedArray("samples");
    74  for (auto& sample : samples) {
    75  JsonObject& entry = buf.createObject();
    76  entry["input"] = sample.input;
    77  entry["output"] = sample.output;
    78  jSamples.add(entry);
    79  }
    80  return root;
    81 }
    82 
    83 static const char SCHEMA[] PROGMEM = R"({
    84  "type": "object",
    85  "properties": {
    86  "samples": { "title": "Sample values",
    87  "type": "array",
    88  "items": { "title": "Sample",
    89  "type": "object",
    90  "properties": {
    91  "input": { "type": "number" },
    92  "output": { "type": "number" }
    93  }}}
    94  }
    95  })";
    96 
    98  return FPSTR(SCHEMA);
    99 }
    100 
    101 bool CurveInterpolator::set_configuration(const JsonObject& config) {
    102 
    103  String expected[] = { "samples" };
    104  for (auto str : expected) {
    105  if (!config.containsKey(str)) {
    106  debugE("Can not set CurveInterpolator configuration: missing json field %s\n", str.c_str());
    107  return false;
    108  }
    109  }
    110 
    111  JsonArray& arr = config["samples"];
    112  if (arr.size() > 0) {
    113  samples.clear();
    114  for (auto& jentry : arr) {
    115  Sample sample(jentry.as<JsonObject>());
    116  samples.insert(sample);
    117  }
    118 
    119  }
    120 
    121  return true;
    122 
    123 }
    124 
    126  samples.clear();
    127 }
    128 
    130  Sample* pSampleCopy = new Sample(sample);
    131  samples.insert(*pSampleCopy);
    132 }
    void addSample(const Sample &newSample)
    +
    void notify()
    Definition: observable.cpp:3
    +
    virtual JsonObject & get_configuration(JsonBuffer &buf) override
    +
    virtual bool set_configuration(const JsonObject &config) override
    +
    virtual void load_configuration()
    + + + + + + +
    const String config_path
    Definition: configurable.h:29
    +
    void set_input(float input, uint8_t inputChannel=0) override final
    + + +
    CurveInterpolator(std::set< Sample > *defaults=NULL, String config_path="")
    +
    virtual String get_config_schema() override
    +
    const char PAGE_index [] PROGMEM
    Definition: index.h:2
    +
    +
    + + + + diff --git a/docs/curveinterpolator_8h.html b/docs/curveinterpolator_8h.html new file mode 100644 index 000000000..0e0249c2a --- /dev/null +++ b/docs/curveinterpolator_8h.html @@ -0,0 +1,154 @@ + + + + + + + +SensESP: src/transforms/curveinterpolator.h File Reference + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SensESP +  0.4.0 +
    +
    Universal Signal K sensor framework for ESP8266 and ESP32
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    + +
    +
    curveinterpolator.h File Reference
    +
    +
    +
    +Include dependency graph for curveinterpolator.h:
    +
    +
    + + + + + + + + + + + + + + + + + + + + + +
    +
    +This graph shows which files directly or indirectly include this file:
    +
    +
    + + + + +
    +
    +

    Go to the source code of this file.

    + + + + + + +

    +Classes

    class  CurveInterpolator
     
    class  CurveInterpolator::Sample
     
    +
    +
    + + + + diff --git a/docs/curveinterpolator_8h__dep__incl.map b/docs/curveinterpolator_8h__dep__incl.map new file mode 100644 index 000000000..0fb8e1152 --- /dev/null +++ b/docs/curveinterpolator_8h__dep__incl.map @@ -0,0 +1,4 @@ + + + + diff --git a/docs/curveinterpolator_8h__dep__incl.md5 b/docs/curveinterpolator_8h__dep__incl.md5 new file mode 100644 index 000000000..656ec8a25 --- /dev/null +++ b/docs/curveinterpolator_8h__dep__incl.md5 @@ -0,0 +1 @@ +108cd7c430b37f09d0db56b5af8f44b8 \ No newline at end of file diff --git a/docs/curveinterpolator_8h__dep__incl.png b/docs/curveinterpolator_8h__dep__incl.png new file mode 100644 index 000000000..636712946 Binary files /dev/null and b/docs/curveinterpolator_8h__dep__incl.png differ diff --git a/docs/curveinterpolator_8h__incl.map b/docs/curveinterpolator_8h__incl.map new file mode 100644 index 000000000..dc3b2570d --- /dev/null +++ b/docs/curveinterpolator_8h__incl.map @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/curveinterpolator_8h__incl.md5 b/docs/curveinterpolator_8h__incl.md5 new file mode 100644 index 000000000..80bbeb34c --- /dev/null +++ b/docs/curveinterpolator_8h__incl.md5 @@ -0,0 +1 @@ +46c2ac4ec9ca780108da72763252b3ec \ No newline at end of file diff --git a/docs/curveinterpolator_8h__incl.png b/docs/curveinterpolator_8h__incl.png new file mode 100644 index 000000000..d7ef99226 Binary files /dev/null and b/docs/curveinterpolator_8h__incl.png differ diff --git a/docs/curveinterpolator_8h_source.html b/docs/curveinterpolator_8h_source.html new file mode 100644 index 000000000..db56ed6d8 --- /dev/null +++ b/docs/curveinterpolator_8h_source.html @@ -0,0 +1,122 @@ + + + + + + + +SensESP: src/transforms/curveinterpolator.h Source File + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SensESP +  0.4.0 +
    +
    Universal Signal K sensor framework for ESP8266 and ESP32
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    curveinterpolator.h
    +
    +
    +Go to the documentation of this file.
    1 #ifndef _CurveInterpolator_H_
    2 #define _CurveInterpolator_H_
    3 
    4 #include "transforms/transform.h"
    5 
    6 
    14 
    15  public:
    16  class Sample {
    17  public:
    18  float input;
    19  float output;
    20 
    21  Sample();
    22  Sample(float input, float output);
    23  Sample(JsonObject& obj);
    24 
    25  friend bool operator<(const Sample& lhs, const Sample& rhs) { return lhs.input < rhs.input; }
    26  };
    27 
    28  public:
    29  CurveInterpolator(std::set<Sample>* defaults = NULL, String config_path="");
    30 
    31  // Set and retrieve the transformed value
    32  void set_input(float input, uint8_t inputChannel = 0) override final;
    33 
    34 
    35  // For reading and writing the configuration of this transformation
    36  virtual JsonObject& get_configuration(JsonBuffer& buf) override;
    37  virtual bool set_configuration(const JsonObject& config) override;
    38  virtual String get_config_schema() override;
    39 
    40  // For manually adding sample points
    41  void clearSamples();
    42  void addSample(const Sample& newSample);
    43 
    44  private:
    45  std::set<Sample> samples;
    46 
    47 };
    48 
    49 #endif
    +
    void addSample(const Sample &newSample)
    +
    virtual JsonObject & get_configuration(JsonBuffer &buf) override
    +
    virtual bool set_configuration(const JsonObject &config) override
    + + + + + + + +
    const String config_path
    Definition: configurable.h:29
    +
    void set_input(float input, uint8_t inputChannel=0) override final
    +
    CurveInterpolator(std::set< Sample > *defaults=NULL, String config_path="")
    +
    virtual String get_config_schema() override
    +
    friend bool operator<(const Sample &lhs, const Sample &rhs)
    +
    +
    + + + + diff --git a/docs/debounce_8cpp.html b/docs/debounce_8cpp.html index 907768597..940d6f25a 100644 --- a/docs/debounce_8cpp.html +++ b/docs/debounce_8cpp.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -97,27 +97,26 @@
    - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + +
    diff --git a/docs/debounce_8cpp__incl.map b/docs/debounce_8cpp__incl.map index fa6a14e76..6f04c5a88 100644 --- a/docs/debounce_8cpp__incl.map +++ b/docs/debounce_8cpp__incl.map @@ -1,23 +1,22 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + diff --git a/docs/debounce_8cpp__incl.md5 b/docs/debounce_8cpp__incl.md5 index f52db0fbf..75f5a0f2d 100644 --- a/docs/debounce_8cpp__incl.md5 +++ b/docs/debounce_8cpp__incl.md5 @@ -1 +1 @@ -3b5aa99dcf02e204af69b336ccf6a728 \ No newline at end of file +d85c668bc9ade47ff34984a5db2a860b \ No newline at end of file diff --git a/docs/debounce_8cpp__incl.png b/docs/debounce_8cpp__incl.png index 75440e404..98be50114 100644 Binary files a/docs/debounce_8cpp__incl.png and b/docs/debounce_8cpp__incl.png differ diff --git a/docs/debounce_8cpp_source.html b/docs/debounce_8cpp_source.html index d014bc9dd..c57d072cb 100644 --- a/docs/debounce_8cpp_source.html +++ b/docs/debounce_8cpp_source.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -91,13 +91,13 @@
    debounce.cpp
    -Go to the documentation of this file.
    1 #include "debounce.h"
    2 
    3 Debounce::Debounce(int msMinDelay, String sk_path, String config_path) :
    4  SymmetricBooleanTransform(sk_path, config_path), msMinDelay{msMinDelay} {
    5 
    6  lastTime = millis();
    7 }
    8 
    9 
    10 void Debounce::set_input(bool newValue, uint8_t inputChannel) {
    11 
    12  int elapsed = millis() - lastTime;
    13  if (newValue != output || elapsed > msMinDelay) {
    14  output = newValue;
    15  lastTime = millis();
    16  notify();
    17  }
    18 }
    void notify()
    Definition: observable.cpp:3
    +Go to the documentation of this file.
    1 #include "debounce.h"
    2 
    3 Debounce::Debounce(int msMinDelay, String config_path) :
    4  BooleanTransform(config_path), msMinDelay{msMinDelay} {
    5 
    6  lastTime = millis();
    7 }
    8 
    9 
    10 void Debounce::set_input(bool newValue, uint8_t inputChannel) {
    11 
    12  int elapsed = millis() - lastTime;
    13  if (newValue != output || elapsed > msMinDelay) {
    14  output = newValue;
    15  lastTime = millis();
    16  notify();
    17  }
    18 }
    Debounce(int msMinDelay=200, String config_path="")
    Definition: debounce.cpp:3
    +
    void notify()
    Definition: observable.cpp:3
    int msMinDelay
    Definition: debounce.h:21
    -
    Debounce(int msMinDelay=200, String sk_path="", String config_path="")
    Definition: debounce.cpp:3
    virtual void set_input(bool newValue, uint8_t inputChannel=0) override
    Definition: debounce.cpp:10
    unsigned long lastTime
    Definition: debounce.h:20
    - - + +
    diff --git a/docs/debounce_8h.html b/docs/debounce_8h.html index 2941803fc..192fb59b4 100644 --- a/docs/debounce_8h.html +++ b/docs/debounce_8h.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -99,26 +99,25 @@
    - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + +
    diff --git a/docs/debounce_8h__dep__incl.md5 b/docs/debounce_8h__dep__incl.md5 index 718e7cf88..a47d81de2 100644 --- a/docs/debounce_8h__dep__incl.md5 +++ b/docs/debounce_8h__dep__incl.md5 @@ -1 +1 @@ -cbae79a9de6b3cfe0678aa7dbed949d3 \ No newline at end of file +fa6f864f394d04ed88ff91c09d6a5fc6 \ No newline at end of file diff --git a/docs/debounce_8h__incl.map b/docs/debounce_8h__incl.map index 45104d59b..edfcd0802 100644 --- a/docs/debounce_8h__incl.map +++ b/docs/debounce_8h__incl.map @@ -1,22 +1,21 @@ - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + diff --git a/docs/debounce_8h__incl.md5 b/docs/debounce_8h__incl.md5 index b7d231a54..bc771b028 100644 --- a/docs/debounce_8h__incl.md5 +++ b/docs/debounce_8h__incl.md5 @@ -1 +1 @@ -85cec0a96a158adb49778423309ceda7 \ No newline at end of file +999dc3ab387ed9c0a860c4421585a0e7 \ No newline at end of file diff --git a/docs/debounce_8h__incl.png b/docs/debounce_8h__incl.png index aa0086d7b..f378a0072 100644 Binary files a/docs/debounce_8h__incl.png and b/docs/debounce_8h__incl.png differ diff --git a/docs/debounce_8h_source.html b/docs/debounce_8h_source.html index fc51080e9..1dae5e540 100644 --- a/docs/debounce_8h_source.html +++ b/docs/debounce_8h_source.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -91,13 +91,12 @@
    debounce.h
    -Go to the documentation of this file.
    1 #ifndef debounce_H
    2 #define debounce_H
    3 
    4 
    5 #include "transforms/transform.h"
    6 
    13 
    14  public:
    15  Debounce(int msMinDelay = 200, String sk_path="", String config_path="");
    16 
    17  virtual void set_input(bool newValue, uint8_t inputChannel = 0) override;
    18 
    19  protected:
    20  unsigned long lastTime;
    22 };
    23 
    24 #endif
    int msMinDelay
    Definition: debounce.h:21
    -
    Debounce(int msMinDelay=200, String sk_path="", String config_path="")
    Definition: debounce.cpp:3
    +Go to the documentation of this file.
    1 #ifndef debounce_H
    2 #define debounce_H
    3 
    4 
    5 #include "transforms/transform.h"
    6 
    12 class Debounce : public BooleanTransform {
    13 
    14  public:
    15  Debounce(int msMinDelay = 200, String config_path="");
    16 
    17  virtual void set_input(bool newValue, uint8_t inputChannel = 0) override;
    18 
    19  protected:
    20  unsigned long lastTime;
    22 };
    23 
    24 #endif
    Debounce(int msMinDelay=200, String config_path="")
    Definition: debounce.cpp:3
    +
    int msMinDelay
    Definition: debounce.h:21
    virtual void set_input(bool newValue, uint8_t inputChannel=0) override
    Definition: debounce.cpp:10
    -
    unsigned long lastTime
    Definition: debounce.h:20
    - +
    const String config_path
    Definition: configurable.h:29
    diff --git a/docs/device_8cpp.html b/docs/device_8cpp.html index 4fb0474a6..94bbfae26 100644 --- a/docs/device_8cpp.html +++ b/docs/device_8cpp.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    diff --git a/docs/device_8cpp_source.html b/docs/device_8cpp_source.html index ce3563eee..f79b2421b 100644 --- a/docs/device_8cpp_source.html +++ b/docs/device_8cpp_source.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    diff --git a/docs/device_8h.html b/docs/device_8h.html index a1f52e63c..70184405e 100644 --- a/docs/device_8h.html +++ b/docs/device_8h.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -139,8 +139,8 @@ - - + + diff --git a/docs/device_8h__dep__incl.map b/docs/device_8h__dep__incl.map index 0ac29d1a4..e76aa966e 100644 --- a/docs/device_8h__dep__incl.map +++ b/docs/device_8h__dep__incl.map @@ -13,8 +13,8 @@ - - + + diff --git a/docs/device_8h__dep__incl.md5 b/docs/device_8h__dep__incl.md5 index fe7984cd0..f77bd62db 100644 --- a/docs/device_8h__dep__incl.md5 +++ b/docs/device_8h__dep__incl.md5 @@ -1 +1 @@ -48ada6a1f343c874218cfbba239866c7 \ No newline at end of file +99009c950ef01c7ca6b2cdbfdbb5b609 \ No newline at end of file diff --git a/docs/device_8h__dep__incl.png b/docs/device_8h__dep__incl.png index bc5f16394..a27a47965 100644 Binary files a/docs/device_8h__dep__incl.png and b/docs/device_8h__dep__incl.png differ diff --git a/docs/device_8h_source.html b/docs/device_8h_source.html index 2dac1c204..bfcfb552a 100644 --- a/docs/device_8h_source.html +++ b/docs/device_8h_source.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    diff --git a/docs/difference_8cpp.html b/docs/difference_8cpp.html index 0dd1a72cd..faf7b9d32 100644 --- a/docs/difference_8cpp.html +++ b/docs/difference_8cpp.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -97,27 +97,26 @@
    - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + +
    diff --git a/docs/difference_8cpp__incl.map b/docs/difference_8cpp__incl.map index be814f566..63f7747ef 100644 --- a/docs/difference_8cpp__incl.map +++ b/docs/difference_8cpp__incl.map @@ -1,23 +1,22 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + diff --git a/docs/difference_8cpp__incl.md5 b/docs/difference_8cpp__incl.md5 index c519e57d8..e8682f9de 100644 --- a/docs/difference_8cpp__incl.md5 +++ b/docs/difference_8cpp__incl.md5 @@ -1 +1 @@ -ea2313408b1cf00bf26a3a8a5be9271b \ No newline at end of file +e1f625960c1cbd23e473674718baea66 \ No newline at end of file diff --git a/docs/difference_8cpp__incl.png b/docs/difference_8cpp__incl.png index b49567143..46b6f91a0 100644 Binary files a/docs/difference_8cpp__incl.png and b/docs/difference_8cpp__incl.png differ diff --git a/docs/difference_8cpp_source.html b/docs/difference_8cpp_source.html index fad19b6cc..08f760b46 100644 --- a/docs/difference_8cpp_source.html +++ b/docs/difference_8cpp_source.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -91,18 +91,16 @@
    difference.cpp
    -Go to the documentation of this file.
    1 #include "difference.h"
    2 
    3 // Difference
    4 
    5 Difference::Difference(String path, float k1, float k2, String config_path)
    6  : SymmetricTransform<float>{ path, config_path },
    7  k1{ k1 },
    8  k2{ k2 } {
    9  load_configuration();
    10 }
    11 
    12 void Difference::set_input(float input, uint8_t inputChannel) {
    13  inputs[inputChannel] = input;
    14  received |= 1<<inputChannel;
    15  if (received==0b11) {
    16  output = k1 * inputs[0] - k2 * inputs[1];
    17  received = 0;
    18  notify();
    19  }
    20 }
    21 
    23  DynamicJsonBuffer jsonBuffer;
    24  String json;
    25  JsonObject& root = jsonBuffer.createObject();
    26  root.set("path", this->sk_path);
    27  root.set("value", output);
    28  root.printTo(json);
    29  return json;
    30 }
    31 
    32 JsonObject& Difference::get_configuration(JsonBuffer& buf) {
    33  JsonObject& root = buf.createObject();
    34  root["k1"] = k1;
    35  root["k2"] = k2;
    36  root["sk_path"] = sk_path;
    37  root["value"] = output;
    38  return root;
    39 }
    40 
    41 
    43  return R"({
    44  "type": "object",
    45  "properties": {
    46  "sk_path": { "title": "SignalK Path", "type": "string" },
    47  "k1": { "title": "Input #1 multiplier", "type": "number" },
    48  "k2": { "title": "Input #2 multiplier", "type": "number" },
    49  "value": { "title": "Last value", "type" : "number", "readOnly": true }
    50  }
    51  })";
    52 }
    53 
    54 
    55 bool Difference::set_configuration(const JsonObject& config) {
    56  String expected[] = {"k1", "k2", "sk_path"};
    57  for (auto str : expected) {
    58  if (!config.containsKey(str)) {
    59  return false;
    60  }
    61  }
    62  k1 = config["k1"];
    63  k2 = config["k2"];
    64  sk_path = config["sk_path"].as<String>();
    65  return true;
    66 }
    Difference(String sk_path, float k1, float k2, String config_path="")
    Definition: difference.cpp:5
    -
    virtual String as_signalK() override final
    Definition: difference.cpp:22
    +Go to the documentation of this file.
    1 #include "difference.h"
    2 
    3 // Difference
    4 
    5 Difference::Difference(float k1, float k2, String config_path)
    6  : NumericTransform(config_path),
    7  k1{ k1 },
    8  k2{ k2 } {
    9  load_configuration();
    10 }
    11 
    12 void Difference::set_input(float input, uint8_t inputChannel) {
    13  inputs[inputChannel] = input;
    14  received |= 1<<inputChannel;
    15  if (received==0b11) {
    16  output = k1 * inputs[0] - k2 * inputs[1];
    17  received = 0;
    18  notify();
    19  }
    20 }
    21 
    22 
    23 JsonObject& Difference::get_configuration(JsonBuffer& buf) {
    24  JsonObject& root = buf.createObject();
    25  root["k1"] = k1;
    26  root["k2"] = k2;
    27  root["value"] = output;
    28  return root;
    29 }
    30 
    31 static const char SCHEMA[] PROGMEM = R"({
    32  "type": "object",
    33  "properties": {
    34  "k1": { "title": "Input #1 multiplier", "type": "number" },
    35  "k2": { "title": "Input #2 multiplier", "type": "number" },
    36  "value": { "title": "Last value", "type" : "number", "readOnly": true }
    37  }
    38  })";
    39 
    41  return FPSTR(SCHEMA);
    42 }
    43 
    44 bool Difference::set_configuration(const JsonObject& config) {
    45  String expected[] = {"k1", "k2" };
    46  for (auto str : expected) {
    47  if (!config.containsKey(str)) {
    48  return false;
    49  }
    50  }
    51  k1 = config["k1"];
    52  k2 = config["k2"];
    53  return true;
    54 }
    virtual bool set_configuration(const JsonObject &config) override
    Definition: difference.cpp:44
    void notify()
    Definition: observable.cpp:3
    -
    virtual void set_input(float input, uint8_t inputChannel) override final
    Definition: difference.cpp:12
    - -
    virtual JsonObject & get_configuration(JsonBuffer &buf) override final
    Definition: difference.cpp:32
    - -
    const String config_path
    Definition: configurable.h:29
    +
    virtual void set_input(float input, uint8_t inputChannel) override
    Definition: difference.cpp:12
    + - -
    virtual bool set_configuration(const JsonObject &config) override final
    Definition: difference.cpp:55
    -
    virtual String get_config_schema() override
    Definition: difference.cpp:42
    +
    virtual JsonObject & get_configuration(JsonBuffer &buf) override
    Definition: difference.cpp:23
    + +
    Difference(float k1, float k2, String config_path="")
    Definition: difference.cpp:5
    +
    const char PAGE_index [] PROGMEM
    Definition: index.h:2
    +
    virtual String get_config_schema() override
    Definition: difference.cpp:40
    diff --git a/docs/difference_8h.html b/docs/difference_8h.html index c108020cc..2881628ca 100644 --- a/docs/difference_8h.html +++ b/docs/difference_8h.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -94,32 +94,30 @@
    #include "transform.h"
    -#include "system/valueconsumer.h"
    Include dependency graph for difference.h:
    - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + +
    diff --git a/docs/difference_8h__dep__incl.md5 b/docs/difference_8h__dep__incl.md5 index ec9d189b9..a14bbf82b 100644 --- a/docs/difference_8h__dep__incl.md5 +++ b/docs/difference_8h__dep__incl.md5 @@ -1 +1 @@ -688301144008ce674037ac01d3bafe94 \ No newline at end of file +53bff41c743ffa5c2592408d6d94e56d \ No newline at end of file diff --git a/docs/difference_8h__incl.map b/docs/difference_8h__incl.map index 27cbf28b7..cd621481c 100644 --- a/docs/difference_8h__incl.map +++ b/docs/difference_8h__incl.map @@ -1,22 +1,21 @@ - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + diff --git a/docs/difference_8h__incl.md5 b/docs/difference_8h__incl.md5 index 3106aa724..039180dca 100644 --- a/docs/difference_8h__incl.md5 +++ b/docs/difference_8h__incl.md5 @@ -1 +1 @@ -b57f44fcb6be74f23637081fe796292d \ No newline at end of file +953c8bce602b464e7119e0461d9157f7 \ No newline at end of file diff --git a/docs/difference_8h__incl.png b/docs/difference_8h__incl.png index d6844797a..fb0c63332 100644 Binary files a/docs/difference_8h__incl.png and b/docs/difference_8h__incl.png differ diff --git a/docs/difference_8h_source.html b/docs/difference_8h_source.html index 1a43ae83a..59cd9a956 100644 --- a/docs/difference_8h_source.html +++ b/docs/difference_8h_source.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -91,18 +91,15 @@
    difference.h
    -Go to the documentation of this file.
    1 #ifndef _difference_H_
    2 #define _difference_H_
    3 
    4 #include "transform.h"
    5 #include "system/valueconsumer.h"
    6 
    7 // y = k1 * x1 - k2 * x2
    8 class Difference : public SymmetricTransform<float> {
    9  public:
    10  Difference(String sk_path, float k1, float k2, String config_path="");
    11  virtual void set_input(float input, uint8_t inputChannel) override final;
    12  virtual String as_signalK() override final;
    13  virtual JsonObject& get_configuration(JsonBuffer& buf) override final;
    14  virtual bool set_configuration(const JsonObject& config) override final;
    15  virtual String get_config_schema() override;
    16 
    17  private:
    18  uint8_t received = 0;
    19  float inputs[2];
    20  float k1;
    21  float k2;
    22 };
    23 
    24 #endif
    Difference(String sk_path, float k1, float k2, String config_path="")
    Definition: difference.cpp:5
    -
    virtual String as_signalK() override final
    Definition: difference.cpp:22
    - - -
    virtual void set_input(float input, uint8_t inputChannel) override final
    Definition: difference.cpp:12
    - -
    virtual JsonObject & get_configuration(JsonBuffer &buf) override final
    Definition: difference.cpp:32
    +Go to the documentation of this file.
    1 #ifndef _difference_H_
    2 #define _difference_H_
    3 
    4 #include "transform.h"
    5 
    6 // y = k1 * x1 - k2 * x2
    7 class Difference : public NumericTransform {
    8  public:
    9  Difference(float k1, float k2, String config_path="");
    10  virtual void set_input(float input, uint8_t inputChannel) override;
    11  virtual JsonObject& get_configuration(JsonBuffer& buf) override;
    12  virtual bool set_configuration(const JsonObject& config) override;
    13  virtual String get_config_schema() override;
    14 
    15  private:
    16  uint8_t received = 0;
    17  float inputs[2];
    18  float k1;
    19  float k2;
    20 };
    21 
    22 #endif
    virtual bool set_configuration(const JsonObject &config) override
    Definition: difference.cpp:44
    + +
    virtual void set_input(float input, uint8_t inputChannel) override
    Definition: difference.cpp:12
    - +
    const String config_path
    Definition: configurable.h:29
    -
    virtual bool set_configuration(const JsonObject &config) override final
    Definition: difference.cpp:55
    -
    virtual String get_config_schema() override
    Definition: difference.cpp:42
    +
    virtual JsonObject & get_configuration(JsonBuffer &buf) override
    Definition: difference.cpp:23
    +
    Difference(float k1, float k2, String config_path="")
    Definition: difference.cpp:5
    +
    virtual String get_config_schema() override
    Definition: difference.cpp:40
    diff --git a/docs/digital__input_8cpp.html b/docs/digital__input_8cpp.html index 528622550..4864747d1 100644 --- a/docs/digital__input_8cpp.html +++ b/docs/digital__input_8cpp.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    diff --git a/docs/digital__input_8cpp_source.html b/docs/digital__input_8cpp_source.html index f0182372d..6488e73f0 100644 --- a/docs/digital__input_8cpp_source.html +++ b/docs/digital__input_8cpp_source.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -91,7 +91,7 @@
    digital_input.cpp
    -Go to the documentation of this file.
    1 #include "digital_input.h"
    2 
    3 #include <FunctionalInterrupt.h>
    4 
    5 #include "sensesp.h"
    6 
    8  uint8_t pin, int pin_mode, int interrupt_type,
    9  String config_path)
    10  : Device(config_path), pin{pin}, interrupt_type{interrupt_type} {
    11  pinMode(pin, pin_mode);
    12 }
    13 
    15  uint8_t pin, int pin_mode, int interrupt_type,
    16  String config_path) :
    18  BooleanProducer() {}
    19 
    21  app.onInterrupt(
    23  [this](){
    24  output = digitalRead(pin);
    25  triggered = true;
    26  });
    27  app.onTick(
    28  [this](){
    29  if (triggered) {
    30  triggered = false;
    31  notify();
    32  }
    33  }
    34  );
    35 }
    36 
    37 
    39  uint8_t pin, int pin_mode, int interrupt_type,
    40  uint read_delay,
    41  String config_path) :
    44  read_delay{read_delay} {}
    45 
    47  app.onInterrupt(pin, interrupt_type,
    48  [this](){
    49  this->counter++;
    50  });
    51 
    52  app.onRepeat(read_delay, [this](){
    53  noInterrupts();
    54  output = counter;
    55  counter = 0;
    56  interrupts();
    57  notify();
    58  });
    59 }
    ValueProducer< bool > BooleanProducer
    Definition: valueproducer.h:69
    +Go to the documentation of this file.
    1 #include "digital_input.h"
    2 
    3 #include <FunctionalInterrupt.h>
    4 
    5 #include "sensesp.h"
    6 
    8  uint8_t pin, int pin_mode, int interrupt_type,
    9  String config_path)
    10  : Device(config_path), pin{pin}, interrupt_type{interrupt_type} {
    11  pinMode(pin, pin_mode);
    12 }
    13 
    15  uint8_t pin, int pin_mode, int interrupt_type,
    16  String config_path) :
    18  BooleanProducer() {}
    19 
    21  app.onInterrupt(
    23  [this](){
    24  output = digitalRead(pin);
    25  triggered = true;
    26  });
    27  app.onTick(
    28  [this](){
    29  if (triggered) {
    30  triggered = false;
    31  notify();
    32  }
    33  }
    34  );
    35 }
    36 
    37 
    39  uint8_t pin, int pin_mode, int interrupt_type,
    40  uint read_delay,
    41  String config_path) :
    44  read_delay{read_delay} {}
    45 
    47  app.onInterrupt(pin, interrupt_type,
    48  [this](){
    49  this->counter++;
    50  });
    51 
    52  app.onRepeat(read_delay, [this](){
    53  noInterrupts();
    54  output = counter;
    55  counter = 0;
    56  interrupts();
    57  notify();
    58  });
    59 }
    ValueProducer< bool > BooleanProducer
    Definition: valueproducer.h:80
    void notify()
    Definition: observable.cpp:3
    Definition: device.h:15
    @@ -104,9 +104,9 @@
    const String config_path
    Definition: configurable.h:29
    virtual void enable() override final
    - + -
    ValueProducer< int > IntegerProducer
    Definition: valueproducer.h:68
    +
    ValueProducer< int > IntegerProducer
    Definition: valueproducer.h:79
    ReactESP app
    diff --git a/docs/digital__input_8h.html b/docs/digital__input_8h.html index aefb69b78..7ae44f2b0 100644 --- a/docs/digital__input_8h.html +++ b/docs/digital__input_8h.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    diff --git a/docs/digital__input_8h_source.html b/docs/digital__input_8h_source.html index e0b4671e5..3bc466b22 100644 --- a/docs/digital__input_8h_source.html +++ b/docs/digital__input_8h_source.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    diff --git a/docs/dir_000001_000005.html b/docs/dir_000001_000005.html new file mode 100644 index 000000000..cbf0347df --- /dev/null +++ b/docs/dir_000001_000005.html @@ -0,0 +1,102 @@ + + + + + + + +SensESP: src/devices -> system Relation + + + + + + + + + + + + + + +
    +
    + + + + + + +
    +
    SensESP +  0.4.0 +
    +
    Universal Signal K sensor framework for ESP8266 and ESP32
    +
    +
    + + + + + + + +
    +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +

    devices → system Relation

    File in src/devicesIncludes file in src/system
    device.hconfigurable.h
    device.henable.h
    device.hobservable.h
    device.hvalueproducer.h
    gps.hnmea_parser.h
    +
    + + + + diff --git a/docs/dir_000002_000003.html b/docs/dir_000002_000003.html index 39f51bdc2..ca0e977c9 100644 --- a/docs/dir_000002_000003.html +++ b/docs/dir_000002_000003.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    diff --git a/docs/dir_000002_000004.html b/docs/dir_000002_000004.html index 086ffda51..4e1bb941e 100644 --- a/docs/dir_000002_000004.html +++ b/docs/dir_000002_000004.html @@ -5,7 +5,7 @@ -SensESP: src/net -> system Relation +SensESP: src/net -> signalk Relation @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -87,7 +87,7 @@ +

    net → signalk Relation

    File in src/netIncludes file in src/signalk
    ws_client.hsignalk_delta.h
    @@ -87,12 +87,12 @@
    -

    transforms → devices Relation

    File in src/transformsIncludes file in src/devices
    gnss_position.hgps.h
    +

    signalk → devices Relation

    File in src/signalkIncludes file in src/devices
    signalk_position.hgps.h
    + + + + + + + + +
    + +
    +
    +
    + +
    + +
    +
    + + +
    + +
    + +
    +
    +
    signalk Directory Reference
    +
    +
    +
    +Directory dependency graph for signalk:
    +
    +
    src/signalk
    + + + + + + + + + + + + +
    + + + + + + + + + + + + + + + + + + + + +

    +Files

    file  signalk_delta.cpp [code]
     
    file  signalk_delta.h [code]
     
    file  signalk_emitter.cpp [code]
     
    file  signalk_emitter.h [code]
     
    file  signalk_output.h [code]
     
    file  signalk_position.cpp [code]
     
    file  signalk_position.h [code]
     
    file  signalk_time.cpp [code]
     
    file  signalk_time.h [code]
     
    +
    +
    + + + + diff --git a/docs/dir_846aa835ffd15ea225ad18b5b4aa0d4f.js b/docs/dir_846aa835ffd15ea225ad18b5b4aa0d4f.js new file mode 100644 index 000000000..27aebab6a --- /dev/null +++ b/docs/dir_846aa835ffd15ea225ad18b5b4aa0d4f.js @@ -0,0 +1,20 @@ +var dir_846aa835ffd15ea225ad18b5b4aa0d4f = +[ + [ "signalk_delta.cpp", "signalk__delta_8cpp.html", null ], + [ "signalk_delta.h", "signalk__delta_8h.html", [ + [ "SKDelta", "class_s_k_delta.html", "class_s_k_delta" ] + ] ], + [ "signalk_emitter.cpp", "signalk__emitter_8cpp.html", null ], + [ "signalk_emitter.h", "signalk__emitter_8h.html", [ + [ "SKEmitter", "class_s_k_emitter.html", "class_s_k_emitter" ] + ] ], + [ "signalk_output.h", "signalk__output_8h.html", "signalk__output_8h" ], + [ "signalk_position.cpp", "signalk__position_8cpp.html", null ], + [ "signalk_position.h", "signalk__position_8h.html", [ + [ "SKOutputPosition", "class_s_k_output_position.html", "class_s_k_output_position" ] + ] ], + [ "signalk_time.cpp", "signalk__time_8cpp.html", null ], + [ "signalk_time.h", "signalk__time_8h.html", [ + [ "SKOutputTime", "class_s_k_output_time.html", "class_s_k_output_time" ] + ] ] +]; \ No newline at end of file diff --git a/docs/dir_846aa835ffd15ea225ad18b5b4aa0d4f_dep.map b/docs/dir_846aa835ffd15ea225ad18b5b4aa0d4f_dep.map new file mode 100644 index 000000000..9de124b71 --- /dev/null +++ b/docs/dir_846aa835ffd15ea225ad18b5b4aa0d4f_dep.map @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/docs/dir_846aa835ffd15ea225ad18b5b4aa0d4f_dep.md5 b/docs/dir_846aa835ffd15ea225ad18b5b4aa0d4f_dep.md5 new file mode 100644 index 000000000..2f50fd71b --- /dev/null +++ b/docs/dir_846aa835ffd15ea225ad18b5b4aa0d4f_dep.md5 @@ -0,0 +1 @@ +461066e75dd5f848ac8f8b68eb348f9a \ No newline at end of file diff --git a/docs/dir_846aa835ffd15ea225ad18b5b4aa0d4f_dep.png b/docs/dir_846aa835ffd15ea225ad18b5b4aa0d4f_dep.png new file mode 100644 index 000000000..8c0a2209a Binary files /dev/null and b/docs/dir_846aa835ffd15ea225ad18b5b4aa0d4f_dep.png differ diff --git a/docs/dir_85858df28c9c737bf6d126646f545b97.html b/docs/dir_85858df28c9c737bf6d126646f545b97.html index 0120e5b80..54c952412 100644 --- a/docs/dir_85858df28c9c737bf6d126646f545b97.html +++ b/docs/dir_85858df28c9c737bf6d126646f545b97.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    diff --git a/docs/dir_859cad99e661c8c6c06da42378c04432.html b/docs/dir_859cad99e661c8c6c06da42378c04432.html index 4d938dbfd..5c6dc4f91 100644 --- a/docs/dir_859cad99e661c8c6c06da42378c04432.html +++ b/docs/dir_859cad99e661c8c6c06da42378c04432.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -97,11 +97,8 @@
    src/transforms
    - - - - - + + @@ -110,6 +107,10 @@ Files

    file  analogvoltage.h [code]   +file  curveinterpolator.cpp [code] +  +file  curveinterpolator.h [code] +  file  debounce.cpp [code]   file  debounce.h [code] @@ -122,18 +123,10 @@   file  frequency.h [code]   -file  gnss_position.cpp [code] -  -file  gnss_position.h [code] -  file  integrator.cpp [code]   file  integrator.h [code]   -file  interpolate.cpp [code] -  -file  interpolate.h [code] -  file  linear.cpp [code]   file  linear.h [code] @@ -142,12 +135,6 @@   file  moving_average.h [code]   -file  passthrough.h [code] -  -file  temperatureinterpreter.cpp [code] -  -file  temperatureinterpreter.h [code] -  file  timestring.cpp [code]   file  timestring.h [code] diff --git a/docs/dir_859cad99e661c8c6c06da42378c04432.js b/docs/dir_859cad99e661c8c6c06da42378c04432.js index 547916213..5143ec011 100644 --- a/docs/dir_859cad99e661c8c6c06da42378c04432.js +++ b/docs/dir_859cad99e661c8c6c06da42378c04432.js @@ -3,6 +3,11 @@ var dir_859cad99e661c8c6c06da42378c04432 = [ "analogvoltage.h", "analogvoltage_8h.html", [ [ "AnalogVoltage", "class_analog_voltage.html", "class_analog_voltage" ] ] ], + [ "curveinterpolator.cpp", "curveinterpolator_8cpp.html", null ], + [ "curveinterpolator.h", "curveinterpolator_8h.html", [ + [ "CurveInterpolator", "class_curve_interpolator.html", "class_curve_interpolator" ], + [ "Sample", "class_curve_interpolator_1_1_sample.html", "class_curve_interpolator_1_1_sample" ] + ] ], [ "debounce.cpp", "debounce_8cpp.html", null ], [ "debounce.h", "debounce_8h.html", [ [ "Debounce", "class_debounce.html", "class_debounce" ] @@ -15,19 +20,10 @@ var dir_859cad99e661c8c6c06da42378c04432 = [ "frequency.h", "frequency_8h.html", [ [ "Frequency", "class_frequency.html", "class_frequency" ] ] ], - [ "gnss_position.cpp", "gnss__position_8cpp.html", null ], - [ "gnss_position.h", "gnss__position_8h.html", [ - [ "GNSSPosition", "class_g_n_s_s_position.html", "class_g_n_s_s_position" ] - ] ], [ "integrator.cpp", "integrator_8cpp.html", null ], [ "integrator.h", "integrator_8h.html", [ [ "Integrator", "class_integrator.html", "class_integrator" ] ] ], - [ "interpolate.cpp", "interpolate_8cpp.html", null ], - [ "interpolate.h", "interpolate_8h.html", [ - [ "Interpolate", "class_interpolate.html", "class_interpolate" ], - [ "Sample", "class_interpolate_1_1_sample.html", "class_interpolate_1_1_sample" ] - ] ], [ "linear.cpp", "linear_8cpp.html", null ], [ "linear.h", "linear_8h.html", [ [ "Linear", "class_linear.html", "class_linear" ] @@ -36,13 +32,6 @@ var dir_859cad99e661c8c6c06da42378c04432 = [ "moving_average.h", "moving__average_8h.html", [ [ "MovingAverage", "class_moving_average.html", "class_moving_average" ] ] ], - [ "passthrough.h", "passthrough_8h.html", [ - [ "Passthrough", "class_passthrough.html", "class_passthrough" ] - ] ], - [ "temperatureinterpreter.cpp", "temperatureinterpreter_8cpp.html", null ], - [ "temperatureinterpreter.h", "temperatureinterpreter_8h.html", [ - [ "TemperatureInterpreter", "class_temperature_interpreter.html", "class_temperature_interpreter" ] - ] ], [ "timestring.cpp", "timestring_8cpp.html", null ], [ "timestring.h", "timestring_8h.html", [ [ "TimeString", "class_time_string.html", "class_time_string" ] diff --git a/docs/dir_859cad99e661c8c6c06da42378c04432_dep.map b/docs/dir_859cad99e661c8c6c06da42378c04432_dep.map index e55964b93..b1b2c383b 100644 --- a/docs/dir_859cad99e661c8c6c06da42378c04432_dep.map +++ b/docs/dir_859cad99e661c8c6c06da42378c04432_dep.map @@ -1,9 +1,6 @@ - - - - - + + diff --git a/docs/dir_859cad99e661c8c6c06da42378c04432_dep.md5 b/docs/dir_859cad99e661c8c6c06da42378c04432_dep.md5 index e8fcff52b..48bca77d0 100644 --- a/docs/dir_859cad99e661c8c6c06da42378c04432_dep.md5 +++ b/docs/dir_859cad99e661c8c6c06da42378c04432_dep.md5 @@ -1 +1 @@ -23318f45616b34c1c601e8379ab6eebd \ No newline at end of file +cc6635e9128b2304efa18366e6514bcb \ No newline at end of file diff --git a/docs/dir_859cad99e661c8c6c06da42378c04432_dep.png b/docs/dir_859cad99e661c8c6c06da42378c04432_dep.png index 971127354..0c50613a3 100644 Binary files a/docs/dir_859cad99e661c8c6c06da42378c04432_dep.png and b/docs/dir_859cad99e661c8c6c06da42378c04432_dep.png differ diff --git a/docs/dir_c72b25b75abe208498b36a3e44a3726c.html b/docs/dir_c72b25b75abe208498b36a3e44a3726c.html index 819379a5c..a238e6cee 100644 --- a/docs/dir_c72b25b75abe208498b36a3e44a3726c.html +++ b/docs/dir_c72b25b75abe208498b36a3e44a3726c.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -98,8 +98,11 @@ - - + + + + + diff --git a/docs/dir_c72b25b75abe208498b36a3e44a3726c_dep.map b/docs/dir_c72b25b75abe208498b36a3e44a3726c_dep.map index fbdb5a5f9..2193614b6 100644 --- a/docs/dir_c72b25b75abe208498b36a3e44a3726c_dep.map +++ b/docs/dir_c72b25b75abe208498b36a3e44a3726c_dep.map @@ -1,8 +1,11 @@ - - + + + + + diff --git a/docs/dir_c72b25b75abe208498b36a3e44a3726c_dep.md5 b/docs/dir_c72b25b75abe208498b36a3e44a3726c_dep.md5 index 2f9d0a0c2..a213bd614 100644 --- a/docs/dir_c72b25b75abe208498b36a3e44a3726c_dep.md5 +++ b/docs/dir_c72b25b75abe208498b36a3e44a3726c_dep.md5 @@ -1 +1 @@ -51a61a4512534cab3672887b1aa70917 \ No newline at end of file +8961073a3341a4b11b185d9d8c3a62ab \ No newline at end of file diff --git a/docs/dir_c72b25b75abe208498b36a3e44a3726c_dep.png b/docs/dir_c72b25b75abe208498b36a3e44a3726c_dep.png index bfd71026e..0a90d7bdd 100644 Binary files a/docs/dir_c72b25b75abe208498b36a3e44a3726c_dep.png and b/docs/dir_c72b25b75abe208498b36a3e44a3726c_dep.png differ diff --git a/docs/dir_d501334aeb1b78ad67cd3c72c37b1e87.html b/docs/dir_d501334aeb1b78ad67cd3c72c37b1e87.html index eac163e1e..689027f45 100644 --- a/docs/dir_d501334aeb1b78ad67cd3c72c37b1e87.html +++ b/docs/dir_d501334aeb1b78ad67cd3c72c37b1e87.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -125,14 +125,6 @@   file  observablevalue.h [code]   -file  signal_k.cpp [code] -  -file  signal_k.h [code] -  -file  signalksource.cpp [code] -  -file  signalksource.h [code] -  file  spiffs_storage.cpp [code]   file  spiffs_storage.h [code] diff --git a/docs/dir_d501334aeb1b78ad67cd3c72c37b1e87.js b/docs/dir_d501334aeb1b78ad67cd3c72c37b1e87.js index 9236598d5..7e83c40d1 100644 --- a/docs/dir_d501334aeb1b78ad67cd3c72c37b1e87.js +++ b/docs/dir_d501334aeb1b78ad67cd3c72c37b1e87.js @@ -19,14 +19,6 @@ var dir_d501334aeb1b78ad67cd3c72c37b1e87 = [ "observablevalue.h", "observablevalue_8h.html", [ [ "ObservableValue", "class_observable_value.html", "class_observable_value" ] ] ], - [ "signal_k.cpp", "signal__k_8cpp.html", null ], - [ "signal_k.h", "signal__k_8h.html", [ - [ "SKDelta", "class_s_k_delta.html", "class_s_k_delta" ] - ] ], - [ "signalksource.cpp", "signalksource_8cpp.html", null ], - [ "signalksource.h", "signalksource_8h.html", [ - [ "SignalKSource", "class_signal_k_source.html", "class_signal_k_source" ] - ] ], [ "spiffs_storage.cpp", "spiffs__storage_8cpp.html", "spiffs__storage_8cpp" ], [ "spiffs_storage.h", "spiffs__storage_8h.html", "spiffs__storage_8h" ], [ "valueconsumer.h", "valueconsumer_8h.html", "valueconsumer_8h" ], diff --git a/docs/discovery_8cpp.html b/docs/discovery_8cpp.html index 014e54c7c..e7b0c6074 100644 --- a/docs/discovery_8cpp.html +++ b/docs/discovery_8cpp.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    diff --git a/docs/discovery_8cpp_source.html b/docs/discovery_8cpp_source.html index da43a919a..78e9c7ade 100644 --- a/docs/discovery_8cpp_source.html +++ b/docs/discovery_8cpp_source.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    diff --git a/docs/discovery_8h.html b/docs/discovery_8h.html index e8805eaba..04c06eee0 100644 --- a/docs/discovery_8h.html +++ b/docs/discovery_8h.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    diff --git a/docs/discovery_8h_source.html b/docs/discovery_8h_source.html index 3b366a016..b5497fbce 100644 --- a/docs/discovery_8h_source.html +++ b/docs/discovery_8h_source.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    diff --git a/docs/enable_8cpp.html b/docs/enable_8cpp.html index cee72955b..3c2f17b98 100644 --- a/docs/enable_8cpp.html +++ b/docs/enable_8cpp.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    diff --git a/docs/enable_8cpp_source.html b/docs/enable_8cpp_source.html index 81c570006..3fdae1e22 100644 --- a/docs/enable_8cpp_source.html +++ b/docs/enable_8cpp_source.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    diff --git a/docs/enable_8h.html b/docs/enable_8h.html index 21c29483b..098368989 100644 --- a/docs/enable_8h.html +++ b/docs/enable_8h.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -110,52 +110,52 @@
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    diff --git a/docs/enable_8h__dep__incl.map b/docs/enable_8h__dep__incl.map index 742d02a67..6aa21f190 100644 --- a/docs/enable_8h__dep__incl.map +++ b/docs/enable_8h__dep__incl.map @@ -1,48 +1,48 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/enable_8h__dep__incl.md5 b/docs/enable_8h__dep__incl.md5 index 37cdf5994..1435799aa 100644 --- a/docs/enable_8h__dep__incl.md5 +++ b/docs/enable_8h__dep__incl.md5 @@ -1 +1 @@ -33328b091ea0bbe7cfba2672fb2e40b9 \ No newline at end of file +bca2f910aaa707a67dc7b82aab6744be \ No newline at end of file diff --git a/docs/enable_8h__dep__incl.png b/docs/enable_8h__dep__incl.png index b75c2723a..e86025daf 100644 Binary files a/docs/enable_8h__dep__incl.png and b/docs/enable_8h__dep__incl.png differ diff --git a/docs/enable_8h_source.html b/docs/enable_8h_source.html index 6e7da9723..0912e5e79 100644 --- a/docs/enable_8h_source.html +++ b/docs/enable_8h_source.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -91,9 +91,10 @@
    enable.h
    -Go to the documentation of this file.
    1 #ifndef _enable_H_
    2 #define _enable_H_
    3 
    4 #include <queue>
    5 #include <stdint.h>
    6 
    15 class Enable {
    16 
    17  public:
    18  Enable(uint8_t priority = 0);
    19 
    24  virtual void enable() {}
    25 
    26 
    27  const int8_t getEnablePriority() { return priority; }
    28 
    29 
    35  static void enableAll();
    36 
    37 
    38  friend bool operator<(const Enable& lhs, const Enable& rhs) { return lhs.priority < rhs.priority; }
    39 
    40  private:
    41  int8_t priority;
    42 
    43  static std::priority_queue<Enable*> enableList;
    44 };
    45 
    46 
    47 #endif
    static void enableAll()
    Definition: enable.cpp:11
    +Go to the documentation of this file.
    1 #ifndef _enable_H_
    2 #define _enable_H_
    3 
    4 #include <queue>
    5 #include <stdint.h>
    6 
    15 class Enable {
    16 
    17  public:
    18  Enable(uint8_t priority = 0);
    19 
    24  virtual void enable() {}
    25 
    26 
    27  const int8_t getEnablePriority() { return priority; }
    28 
    29 
    30  void setPriority(uint8_t priority) { this-> priority = priority; }
    31 
    32 
    38  static void enableAll();
    39 
    40 
    41  friend bool operator<(const Enable& lhs, const Enable& rhs) { return lhs.priority < rhs.priority; }
    42 
    43  private:
    44  int8_t priority;
    45 
    46  static std::priority_queue<Enable*> enableList;
    47 };
    48 
    49 
    50 #endif
    static void enableAll()
    Definition: enable.cpp:11
    +
    void setPriority(uint8_t priority)
    Definition: enable.h:30
    virtual void enable()
    Definition: enable.h:24
    -
    friend bool operator<(const Enable &lhs, const Enable &rhs)
    Definition: enable.h:38
    +
    friend bool operator<(const Enable &lhs, const Enable &rhs)
    Definition: enable.h:41
    Definition: enable.h:15
    const int8_t getEnablePriority()
    Definition: enable.h:27
    Enable(uint8_t priority=0)
    Definition: enable.cpp:6
    diff --git a/docs/files.html b/docs/files.html index 0c3548dd9..8b50096ea 100644 --- a/docs/files.html +++ b/docs/files.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -123,58 +123,59 @@  ota.h  ws_client.cpp  ws_client.h -  system - configurable.cpp - configurable.h - enable.cpp - enable.h - led_blinker.cpp - led_blinker.h - nmea_parser.cpp - nmea_parser.h - observable.cpp - observable.h - observablevalue.h - signal_k.cpp - signal_k.h - signalksource.cpp - signalksource.h - spiffs_storage.cpp - spiffs_storage.h - valueconsumer.h - valueproducer.h -  transforms - analogvoltage.h - debounce.cpp - debounce.h - difference.cpp - difference.h - frequency.cpp - frequency.h - gnss_position.cpp - gnss_position.h - integrator.cpp - integrator.h - interpolate.cpp - interpolate.h - linear.cpp - linear.h - moving_average.cpp - moving_average.h - passthrough.h - temperatureinterpreter.cpp - temperatureinterpreter.h - timestring.cpp - timestring.h - transform.cpp - transform.h - voltagedividerR2.cpp - voltagedividerR2.h - sensesp.h - sensesp_app.cpp - sensesp_app.h - wiring_helpers.cpp - wiring_helpers.h +  signalk + signalk_delta.cpp + signalk_delta.h + signalk_emitter.cpp + signalk_emitter.h + signalk_output.h + signalk_position.cpp + signalk_position.h + signalk_time.cpp + signalk_time.h +  system + configurable.cpp + configurable.h + enable.cpp + enable.h + led_blinker.cpp + led_blinker.h + nmea_parser.cpp + nmea_parser.h + observable.cpp + observable.h + observablevalue.h + spiffs_storage.cpp + spiffs_storage.h + valueconsumer.h + valueproducer.h +  transforms + analogvoltage.h + curveinterpolator.cpp + curveinterpolator.h + debounce.cpp + debounce.h + difference.cpp + difference.h + frequency.cpp + frequency.h + integrator.cpp + integrator.h + linear.cpp + linear.h + moving_average.cpp + moving_average.h + timestring.cpp + timestring.h + transform.cpp + transform.h + voltagedividerR2.cpp + voltagedividerR2.h + sensesp.h + sensesp_app.cpp + sensesp_app.h + wiring_helpers.cpp + wiring_helpers.h
    diff --git a/docs/frequency_8cpp.html b/docs/frequency_8cpp.html index 0b3c675a9..3b53ac84e 100644 --- a/docs/frequency_8cpp.html +++ b/docs/frequency_8cpp.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -97,27 +97,26 @@
    - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + +
    diff --git a/docs/frequency_8cpp__incl.map b/docs/frequency_8cpp__incl.map index c7b7cf5bd..af5197ce1 100644 --- a/docs/frequency_8cpp__incl.map +++ b/docs/frequency_8cpp__incl.map @@ -1,23 +1,22 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + diff --git a/docs/frequency_8cpp__incl.md5 b/docs/frequency_8cpp__incl.md5 index 76012ef63..204156748 100644 --- a/docs/frequency_8cpp__incl.md5 +++ b/docs/frequency_8cpp__incl.md5 @@ -1 +1 @@ -538df52ab423153da0fbdd6148d30feb \ No newline at end of file +5ce4b2b3c9fcf9aa441156ea19392400 \ No newline at end of file diff --git a/docs/frequency_8cpp__incl.png b/docs/frequency_8cpp__incl.png index 2c1603045..0a281dc5b 100644 Binary files a/docs/frequency_8cpp__incl.png and b/docs/frequency_8cpp__incl.png differ diff --git a/docs/frequency_8cpp_source.html b/docs/frequency_8cpp_source.html index 6b96415fa..62d18a861 100644 --- a/docs/frequency_8cpp_source.html +++ b/docs/frequency_8cpp_source.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -91,20 +91,17 @@
    frequency.cpp
    -Go to the documentation of this file.
    1 #include "frequency.h"
    2 
    3 // Frequency
    4 
    5 Frequency::Frequency(String sk_path, float k, String config_path) :
    8  //load_configuration();
    9 }
    10 
    12  last_update = millis();
    13 }
    14 
    15 void Frequency::set_input(int input, uint8_t inputChannel) {
    16  unsigned long cur_millis = millis();
    17  unsigned long elapsed_millis = cur_millis - last_update;
    18  output = k * input / (elapsed_millis / 1000.);
    19  last_update = cur_millis;
    20  notify();
    21 }
    22 
    24  DynamicJsonBuffer jsonBuffer;
    25  String json;
    26  JsonObject& root = jsonBuffer.createObject();
    27  root.set("path", this->sk_path);
    28  root.set("value", output);
    29  root.printTo(json);
    30  return json;
    31 }
    32 
    33 JsonObject& Frequency::get_configuration(JsonBuffer& buf) {
    34  JsonObject& root = buf.createObject();
    35  root["k"] = k;
    36  root["sk_path"] = sk_path;
    37  root["value"] = output;
    38  return root;
    39 }
    40 
    42  return R"({
    43  "type": "object",
    44  "properties": {
    45  "sk_path": { "title": "SignalK Path", "type": "string" },
    46  "k": { "title": "Multiplier", "type": "number" },
    47  "value": { "title": "Last value", "type" : "number", "readOnly": true }
    48  }
    49  })";
    50 }
    51 
    52 
    53 bool Frequency::set_configuration(const JsonObject& config) {
    54  String expected[] = {"k", "c", "sk_path"};
    55  for (auto str : expected) {
    56  if (!config.containsKey(str)) {
    57  return false;
    58  }
    59  }
    60  k = config["k"];
    61  sk_path = config["sk_path"].as<String>();
    62  return true;
    63 }
    +Go to the documentation of this file.
    1 #include "frequency.h"
    2 
    3 // Frequency
    4 
    5 Frequency::Frequency(float k, String config_path) :
    6  Transform<int, float>(config_path), k{k} {
    7  load_configuration();
    8 }
    9 
    11  last_update = millis();
    12 }
    13 
    14 void Frequency::set_input(int input, uint8_t inputChannel) {
    15  unsigned long cur_millis = millis();
    16  unsigned long elapsed_millis = cur_millis - last_update;
    17  output = k * input / (elapsed_millis / 1000.);
    18  last_update = cur_millis;
    19  notify();
    20 }
    21 
    22 
    23 JsonObject& Frequency::get_configuration(JsonBuffer& buf) {
    24  JsonObject& root = buf.createObject();
    25  root["k"] = k;
    26  root["value"] = output;
    27  return root;
    28 }
    29 
    30 static const char SCHEMA[] PROGMEM = R"###({
    31  "type": "object",
    32  "properties": {
    33  "k": { "title": "Multiplier", "type": "number" },
    34  "value": { "title": "Last value", "type" : "number", "readOnly": true }
    35  }
    36  })###";
    37 
    39  return FPSTR(SCHEMA);
    40 }
    41 
    42 bool Frequency::set_configuration(const JsonObject& config) {
    43  String expected[] = {"k"};
    44  for (auto str : expected) {
    45  if (!config.containsKey(str)) {
    46  return false;
    47  }
    48  }
    49  k = config["k"];
    50  return true;
    51 }
    +
    virtual void set_input(int input, uint8_t inputChannel=0) override
    Definition: frequency.cpp:14
    void notify()
    Definition: observable.cpp:3
    -
    virtual void set_input(int input, uint8_t inputChannel=0) override final
    Definition: frequency.cpp:15
    - - - -
    virtual String get_config_schema() override
    Definition: frequency.cpp:41
    -
    virtual String as_signalK() override final
    Definition: frequency.cpp:23
    -
    virtual void enable() override final
    Definition: frequency.cpp:11
    -
    const String config_path
    Definition: configurable.h:29
    - -
    virtual JsonObject & get_configuration(JsonBuffer &buf) override final
    Definition: frequency.cpp:33
    -
    Frequency(String sk_path, float k=1, String config_path="")
    Definition: frequency.cpp:5
    -
    virtual bool set_configuration(const JsonObject &config) override final
    Definition: frequency.cpp:53
    +
    virtual void enable() override
    Definition: frequency.cpp:10
    + +
    virtual String get_config_schema() override
    Definition: frequency.cpp:38
    +
    virtual bool set_configuration(const JsonObject &config) override
    Definition: frequency.cpp:42
    +
    virtual JsonObject & get_configuration(JsonBuffer &buf) override
    Definition: frequency.cpp:23
    + +
    const char PAGE_index [] PROGMEM
    Definition: index.h:2
    +
    Frequency(float k=1, String config_path="")
    Definition: frequency.cpp:5
    diff --git a/docs/frequency_8h.html b/docs/frequency_8h.html index 5c388573d..f439c52da 100644 --- a/docs/frequency_8h.html +++ b/docs/frequency_8h.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -99,26 +99,25 @@
    - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + +
    diff --git a/docs/frequency_8h__dep__incl.md5 b/docs/frequency_8h__dep__incl.md5 index f93173a67..17a855585 100644 --- a/docs/frequency_8h__dep__incl.md5 +++ b/docs/frequency_8h__dep__incl.md5 @@ -1 +1 @@ -0ac25cd6a5d5faceb9f020168703899c \ No newline at end of file +0830279be0132f287c2c74ad07061dd4 \ No newline at end of file diff --git a/docs/frequency_8h__incl.map b/docs/frequency_8h__incl.map index 56acf075a..1862a8372 100644 --- a/docs/frequency_8h__incl.map +++ b/docs/frequency_8h__incl.map @@ -1,22 +1,21 @@ - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + diff --git a/docs/frequency_8h__incl.md5 b/docs/frequency_8h__incl.md5 index 2cae3ee13..7232d67d7 100644 --- a/docs/frequency_8h__incl.md5 +++ b/docs/frequency_8h__incl.md5 @@ -1 +1 @@ -ad5565eaeb21380aa9ec33202370156a \ No newline at end of file +b345fcd6f6cbb3452f4966eae000682a \ No newline at end of file diff --git a/docs/frequency_8h__incl.png b/docs/frequency_8h__incl.png index 1355acd8a..518645bac 100644 Binary files a/docs/frequency_8h__incl.png and b/docs/frequency_8h__incl.png differ diff --git a/docs/frequency_8h_source.html b/docs/frequency_8h_source.html index a5ac9643b..32e220d04 100644 --- a/docs/frequency_8h_source.html +++ b/docs/frequency_8h_source.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -91,19 +91,16 @@
    frequency.h
    -Go to the documentation of this file.
    1 #ifndef _frequency_H_
    2 #define _frequency_H_
    3 
    4 #include "transform.h"
    5 
    6 
    7 // Frequency transform divides its input value by the time elapsed since
    8 // the last reading
    9 class Frequency : public IntegerConsumer, public NumericTransform {
    10  public:
    11  Frequency(String sk_path, float k=1, String config_path="");
    12  virtual void set_input(int input, uint8_t inputChannel = 0) override final;
    13  virtual String as_signalK() override final;
    14  virtual void enable() override final;
    15  virtual JsonObject& get_configuration(JsonBuffer& buf) override final;
    16  virtual bool set_configuration(const JsonObject& config) override final;
    17  virtual String get_config_schema() override;
    18 
    19  private:
    20  float k;
    21  int ticks = 0;
    22  uint last_update = 0;
    23 };
    24 
    25 #endif
    virtual void set_input(int input, uint8_t inputChannel=0) override final
    Definition: frequency.cpp:15
    - - - -
    virtual String get_config_schema() override
    Definition: frequency.cpp:41
    +Go to the documentation of this file.
    1 #ifndef _frequency_H_
    2 #define _frequency_H_
    3 
    4 #include "transform.h"
    5 
    6 
    7 // Frequency transform divides its input value by the time elapsed since
    8 // the last reading
    9 class Frequency : public Transform<int, float> {
    10 
    11  public:
    12  Frequency(float k=1, String config_path="");
    13  virtual void set_input(int input, uint8_t inputChannel = 0) override;
    14  virtual void enable() override;
    15  virtual JsonObject& get_configuration(JsonBuffer& buf) override;
    16  virtual bool set_configuration(const JsonObject& config) override;
    17  virtual String get_config_schema() override;
    18 
    19  private:
    20  float k;
    21  int ticks = 0;
    22  uint last_update = 0;
    23 };
    24 
    25 #endif
    virtual void set_input(int input, uint8_t inputChannel=0) override
    Definition: frequency.cpp:14
    +
    virtual void enable() override
    Definition: frequency.cpp:10
    + +
    virtual String get_config_schema() override
    Definition: frequency.cpp:38
    -
    virtual String as_signalK() override final
    Definition: frequency.cpp:23
    -
    virtual void enable() override final
    Definition: frequency.cpp:11
    +
    virtual bool set_configuration(const JsonObject &config) override
    Definition: frequency.cpp:42
    +
    virtual JsonObject & get_configuration(JsonBuffer &buf) override
    Definition: frequency.cpp:23
    const String config_path
    Definition: configurable.h:29
    -
    virtual JsonObject & get_configuration(JsonBuffer &buf) override final
    Definition: frequency.cpp:33
    -
    Frequency(String sk_path, float k=1, String config_path="")
    Definition: frequency.cpp:5
    -
    virtual bool set_configuration(const JsonObject &config) override final
    Definition: frequency.cpp:53
    +
    Frequency(float k=1, String config_path="")
    Definition: frequency.cpp:5
    diff --git a/docs/functions.html b/docs/functions.html index 9ed485c01..040b025b4 100644 --- a/docs/functions.html +++ b/docs/functions.html @@ -30,7 +30,7 @@
    SensESP -  0.3.0 +  0.4.0
    Universal Signal K sensor framework for ESP8266 and ESP32
    @@ -94,29 +94,22 @@

    - a -

      : NMEAParser
    • addSample() -: Interpolate +: CurveInterpolator
    • altitude : Position
    • AnalogVoltage() -: AnalogVoltage +: AnalogVoltage
    • append() : SKDelta
    • as_signalK() -: Difference -, Frequency -, GNSSPosition -, Integrator -, Interpolate -, Linear -, MovingAverage -, Passthrough< T > -, SignalKSource -, TimeString -, VoltageDividerR2 +: SKEmitter +, SKOutput< T > +, SKOutputPosition +, SKOutputTime
    • attach() : Observable diff --git a/docs/functions_b.html b/docs/functions_b.html index 36fc89697..cd9471e46 100644 --- a/docs/functions_b.html +++ b/docs/functions_b.html @@ -30,7 +30,7 @@
      SensESP -  0.3.0 +  0.4.0
      Universal Signal K sensor framework for ESP8266 and ESP32
      diff --git a/docs/functions_c.html b/docs/functions_c.html index 237ec88cf..3c6ebc39e 100644 --- a/docs/functions_c.html +++ b/docs/functions_c.html @@ -30,7 +30,7 @@
      SensESP -  0.3.0 +  0.4.0
      Universal Signal K sensor framework for ESP8266 and ESP32
      @@ -94,7 +94,7 @@

      - c -

        : Networking
      • clearSamples() -: Interpolate +: CurveInterpolator
      • config_path : Configurable @@ -106,21 +106,18 @@

        - c -

        diff --git a/docs/functions_d.html b/docs/functions_d.html index 668187c11..f93dfe0ab 100644 --- a/docs/functions_d.html +++ b/docs/functions_d.html @@ -30,7 +30,7 @@
        SensESP -  0.3.0 +  0.4.0
        Universal Signal K sensor framework for ESP8266 and ESP32
        @@ -100,7 +100,7 @@

        - d -

          : NMEAData
        • Debounce() -: Debounce +: Debounce
        • Device() : Device @@ -112,7 +112,7 @@

          - d -

            : NMEAData
          • Difference() -: Difference +: Difference
          • DigitalInput() : DigitalInput diff --git a/docs/functions_e.html b/docs/functions_e.html index 5708295a7..59619048a 100644 --- a/docs/functions_e.html +++ b/docs/functions_e.html @@ -30,7 +30,7 @@
            SensESP -  0.3.0 +  0.4.0
            Universal Signal K sensor framework for ESP8266 and ESP32
            @@ -105,7 +105,7 @@

            - e -

            • enable() : Enable , FreeMem -, Frequency +, Frequency , GPSInput , HTTPServer , Integrator diff --git a/docs/functions_f.html b/docs/functions_f.html index 2c7a51f03..4b79f0b53 100644 --- a/docs/functions_f.html +++ b/docs/functions_f.html @@ -30,7 +30,7 @@
              SensESP -  0.3.0 +  0.4.0
              Universal Signal K sensor framework for ESP8266 and ESP32
              @@ -94,7 +94,7 @@

              - f -

              diff --git a/docs/functions_func.html b/docs/functions_func.html index ba60dac3e..45b016eb5 100644 --- a/docs/functions_func.html +++ b/docs/functions_func.html @@ -30,7 +30,7 @@
              SensESP -  0.3.0 +  0.4.0
              Universal Signal K sensor framework for ESP8266 and ESP32
              @@ -94,26 +94,19 @@

              - a -

                : NMEAParser
              • addSample() -: Interpolate +: CurveInterpolator
              • AnalogVoltage() -: AnalogVoltage +: AnalogVoltage
              • append() : SKDelta
              • as_signalK() -: Difference -, Frequency -, GNSSPosition -, Integrator -, Interpolate -, Linear -, MovingAverage -, Passthrough< T > -, SignalKSource -, TimeString -, VoltageDividerR2 +: SKEmitter +, SKOutput< T > +, SKOutputPosition +, SKOutputTime
              • attach() : Observable diff --git a/docs/functions_func_c.html b/docs/functions_func_c.html index b61e55dc1..6a6b07a6c 100644 --- a/docs/functions_func_c.html +++ b/docs/functions_func_c.html @@ -30,7 +30,7 @@
                SensESP -  0.3.0 +  0.4.0
                Universal Signal K sensor framework for ESP8266 and ESP32
                @@ -94,7 +94,7 @@

                - c -

                  : Networking
                • clearSamples() -: Interpolate +: CurveInterpolator
                • Configurable() : Configurable @@ -103,21 +103,18 @@

                  - c -

                  diff --git a/docs/functions_func_d.html b/docs/functions_func_d.html index 8a5b4391b..08d316532 100644 --- a/docs/functions_func_d.html +++ b/docs/functions_func_d.html @@ -30,7 +30,7 @@
                  SensESP -  0.3.0 +  0.4.0
                  Universal Signal K sensor framework for ESP8266 and ESP32
                  @@ -97,13 +97,13 @@

                  - d -

                    : SKDelta
                  • Debounce() -: Debounce +: Debounce
                  • Device() : Device
                  • Difference() -: Difference +: Difference
                  • DigitalInput() : DigitalInput diff --git a/docs/functions_func_e.html b/docs/functions_func_e.html index 7b642a137..1093cd182 100644 --- a/docs/functions_func_e.html +++ b/docs/functions_func_e.html @@ -30,7 +30,7 @@
                    SensESP -  0.3.0 +  0.4.0
                    Universal Signal K sensor framework for ESP8266 and ESP32
                    @@ -102,7 +102,7 @@

                    - e -

                    • enable() : Enable , FreeMem -, Frequency +, Frequency , GPSInput , HTTPServer , Integrator diff --git a/docs/functions_func_f.html b/docs/functions_func_f.html index 068f9fff9..3616cf91c 100644 --- a/docs/functions_func_f.html +++ b/docs/functions_func_f.html @@ -30,7 +30,7 @@
                      SensESP -  0.3.0 +  0.4.0
                      Universal Signal K sensor framework for ESP8266 and ESP32
                      @@ -94,7 +94,7 @@

                      - f -

                      diff --git a/docs/functions_func_g.html b/docs/functions_func_g.html index 26d9217e7..4dbcfefed 100644 --- a/docs/functions_func_g.html +++ b/docs/functions_func_g.html @@ -30,7 +30,7 @@
                      SensESP -  0.3.0 +  0.4.0
                      Universal Signal K sensor framework for ESP8266 and ESP32
                      @@ -95,33 +95,33 @@

                      - g -

                      • get_config_schema() : Configurable +, CurveInterpolator , Difference , Frequency -, GNSSPosition , Integrator -, Interpolate , Linear , MovingAverage , Networking , OneWireTemperature -, Passthrough< T > -, TimeString +, SKOutput< T > +, SKOutputPosition +, SKOutputTime , VoltageDividerR2 , WSClient
                      • get_configuration() : Configurable -, Difference -, Frequency -, GNSSPosition +, CurveInterpolator +, Difference +, Frequency , Integrator -, Interpolate -, Linear -, MovingAverage +, Linear +, MovingAverage , Networking , OneWireTemperature -, Passthrough< T > -, TimeString +, SKOutput< T > +, SKOutputPosition +, SKOutputTime , VoltageDividerR2 , WSClient
                      • @@ -139,10 +139,10 @@

                        - g -

                          : DallasTemperatureSensors
                        • get_sk_path() -: SignalKSource +: SKEmitter
                        • get_sources() -: SignalKSource +: SKEmitter
                        • get_transforms() : TransformBase @@ -156,9 +156,6 @@

                          - g -

                          • getEnablePriority() : Enable
                          • -
                          • GNSSPosition() -: GNSSPosition -
                          • GPGGASentenceParser() : GPGGASentenceParser
                          • diff --git a/docs/functions_func_h.html b/docs/functions_func_h.html index f1157c167..d87ff96be 100644 --- a/docs/functions_func_h.html +++ b/docs/functions_func_h.html @@ -30,7 +30,7 @@
                            SensESP -  0.3.0 +  0.4.0
                            Universal Signal K sensor framework for ESP8266 and ESP32
                            diff --git a/docs/functions_func_i.html b/docs/functions_func_i.html index 48f6f2878..a400dcc25 100644 --- a/docs/functions_func_i.html +++ b/docs/functions_func_i.html @@ -30,7 +30,7 @@
                            SensESP -  0.3.0 +  0.4.0
                            Universal Signal K sensor framework for ESP8266 and ESP32
                            @@ -94,10 +94,7 @@

                            - i -

                              : IntegerDevice
                            • Integrator() -: Integrator -
                            • -
                            • Interpolate() -: Interpolate +: Integrator
                            • is_connected() : WSClient diff --git a/docs/functions_func_l.html b/docs/functions_func_l.html index c36c54df1..4203ae1a0 100644 --- a/docs/functions_func_l.html +++ b/docs/functions_func_l.html @@ -30,7 +30,7 @@
                              SensESP -  0.3.0 +  0.4.0
                              Universal Signal K sensor framework for ESP8266 and ESP32
                              @@ -94,7 +94,7 @@

                              - l -

                                : LedBlinker
                              • Linear() -: Linear +: Linear
                              • load_configuration() : Configurable diff --git a/docs/functions_func_m.html b/docs/functions_func_m.html index 6ea834cac..e51834124 100644 --- a/docs/functions_func_m.html +++ b/docs/functions_func_m.html @@ -30,7 +30,7 @@
                                SensESP -  0.3.0 +  0.4.0
                                Universal Signal K sensor framework for ESP8266 and ESP32
                                @@ -91,7 +91,7 @@

                                - m -

                                diff --git a/docs/functions_func_n.html b/docs/functions_func_n.html index fb231f209..87e65e60a 100644 --- a/docs/functions_func_n.html +++ b/docs/functions_func_n.html @@ -30,7 +30,7 @@
                                SensESP -  0.3.0 +  0.4.0
                                Universal Signal K sensor framework for ESP8266 and ESP32
                                diff --git a/docs/functions_func_o.html b/docs/functions_func_o.html index 48639bb3b..e1d3e817c 100644 --- a/docs/functions_func_o.html +++ b/docs/functions_func_o.html @@ -30,7 +30,7 @@
                                SensESP -  0.3.0 +  0.4.0
                                Universal Signal K sensor framework for ESP8266 and ESP32
                                diff --git a/docs/functions_func_p.html b/docs/functions_func_p.html index 022e27444..a9b880154 100644 --- a/docs/functions_func_p.html +++ b/docs/functions_func_p.html @@ -30,7 +30,7 @@
                                SensESP -  0.3.0 +  0.4.0
                                Universal Signal K sensor framework for ESP8266 and ESP32
                                @@ -99,9 +99,6 @@

                                - p -

                                  , PSTISentenceParser , SentenceParser -
                                • Passthrough() -: Passthrough< T > -
                                • PSTI030SentenceParser() : PSTI030SentenceParser
                                • diff --git a/docs/functions_func_r.html b/docs/functions_func_r.html index e42dff6af..ae2beaea5 100644 --- a/docs/functions_func_r.html +++ b/docs/functions_func_r.html @@ -30,7 +30,7 @@
                                  SensESP -  0.3.0 +  0.4.0
                                  Universal Signal K sensor framework for ESP8266 and ESP32
                                  diff --git a/docs/functions_func_s.html b/docs/functions_func_s.html index b692c7b1e..1ec3c7677 100644 --- a/docs/functions_func_s.html +++ b/docs/functions_func_s.html @@ -30,7 +30,7 @@
                                  SensESP -  0.3.0 +  0.4.0
                                  Universal Signal K sensor framework for ESP8266 and ESP32
                                  @@ -91,7 +91,7 @@

                                  - s -

                                  • Sample() -: Interpolate::Sample +: CurveInterpolator::Sample
                                  • save_configuration() : Configurable @@ -119,17 +119,17 @@

                                    - s -

                                    • set_configuration() : Configurable -, Difference -, Frequency -, GNSSPosition +, CurveInterpolator +, Difference +, Frequency , Integrator -, Interpolate -, Linear -, MovingAverage +, Linear +, MovingAverage , Networking , OneWireTemperature -, Passthrough< T > -, TimeString +, SKOutput< T > +, SKOutputPosition +, SKOutputTime , VoltageDividerR2 , WSClient
                                    • @@ -138,16 +138,15 @@

                                      - s -

                                        , SKDelta
                                      • set_input() -: Debounce -, Difference -, Frequency -, GNSSPosition +: CurveInterpolator +, Debounce +, Difference +, Frequency , Integrator -, Interpolate -, Linear -, MovingAverage -, Passthrough< T > -, TimeString +, Linear +, MovingAverage +, SKOutput< T > +, TimeString , ValueConsumer< T > , VoltageDividerR2
                                      • @@ -158,7 +157,7 @@

                                        - s -

                                          : LedBlinker
                                        • set_sk_path() -: SignalKSource +: SKEmitter
                                        • set_state() : LedBlinker @@ -169,20 +168,32 @@

                                          - s -

                                          diff --git a/docs/functions_func_t.html b/docs/functions_func_t.html index 09f37a208..fd68be3d3 100644 --- a/docs/functions_func_t.html +++ b/docs/functions_func_t.html @@ -30,7 +30,7 @@
                                          SensESP -  0.3.0 +  0.4.0
                                          Universal Signal K sensor framework for ESP8266 and ESP32
                                          @@ -90,17 +90,14 @@  

                                          - t -

                                          diff --git a/docs/functions_func_v.html b/docs/functions_func_v.html index 1059d5785..d1483e0e3 100644 --- a/docs/functions_func_v.html +++ b/docs/functions_func_v.html @@ -30,7 +30,7 @@
                                          SensESP -  0.3.0 +  0.4.0
                                          Universal Signal K sensor framework for ESP8266 and ESP32
                                          @@ -94,7 +94,7 @@

                                          - v -

                                          diff --git a/docs/functions_func_w.html b/docs/functions_func_w.html index 3094c51e2..78e2bc87c 100644 --- a/docs/functions_func_w.html +++ b/docs/functions_func_w.html @@ -30,7 +30,7 @@
                                          SensESP -  0.3.0 +  0.4.0
                                          Universal Signal K sensor framework for ESP8266 and ESP32
                                          diff --git a/docs/functions_func_~.html b/docs/functions_func_~.html index a6121057a..25a2c2b7b 100644 --- a/docs/functions_func_~.html +++ b/docs/functions_func_~.html @@ -30,7 +30,7 @@
                                          SensESP -  0.3.0 +  0.4.0
                                          Universal Signal K sensor framework for ESP8266 and ESP32
                                          diff --git a/docs/functions_g.html b/docs/functions_g.html index fda23c5d1..1da40683a 100644 --- a/docs/functions_g.html +++ b/docs/functions_g.html @@ -30,7 +30,7 @@
                                          SensESP -  0.3.0 +  0.4.0
                                          Universal Signal K sensor framework for ESP8266 and ESP32
                                          @@ -98,33 +98,33 @@

                                          - g -

                                          • get_config_schema() : Configurable +, CurveInterpolator , Difference , Frequency -, GNSSPosition , Integrator -, Interpolate , Linear , MovingAverage , Networking , OneWireTemperature -, Passthrough< T > -, TimeString +, SKOutput< T > +, SKOutputPosition +, SKOutputTime , VoltageDividerR2 , WSClient
                                          • get_configuration() : Configurable -, Difference -, Frequency -, GNSSPosition +, CurveInterpolator +, Difference +, Frequency , Integrator -, Interpolate -, Linear -, MovingAverage +, Linear +, MovingAverage , Networking , OneWireTemperature -, Passthrough< T > -, TimeString +, SKOutput< T > +, SKOutputPosition +, SKOutputTime , VoltageDividerR2 , WSClient
                                          • @@ -142,10 +142,10 @@

                                            - g -

                                              : DallasTemperatureSensors
                                            • get_sk_path() -: SignalKSource +: SKEmitter
                                            • get_sources() -: SignalKSource +: SKEmitter
                                            • get_transforms() : TransformBase @@ -162,9 +162,6 @@

                                              - g -

                                              • gnss_quality : NMEAData
                                              • -
                                              • GNSSPosition() -: GNSSPosition -
                                              • GPGGASentenceParser() : GPGGASentenceParser
                                              • diff --git a/docs/functions_h.html b/docs/functions_h.html index cc81bee5b..14a318bde 100644 --- a/docs/functions_h.html +++ b/docs/functions_h.html @@ -30,7 +30,7 @@
                                                SensESP -  0.3.0 +  0.4.0
                                                Universal Signal K sensor framework for ESP8266 and ESP32
                                                diff --git a/docs/functions_i.html b/docs/functions_i.html index 8bdbb73b9..6212313f9 100644 --- a/docs/functions_i.html +++ b/docs/functions_i.html @@ -30,7 +30,7 @@
                                                SensESP -  0.3.0 +  0.4.0
                                                Universal Signal K sensor framework for ESP8266 and ESP32
                                                @@ -91,16 +91,13 @@

                                                - i -

                                                • input -: Interpolate::Sample +: CurveInterpolator::Sample
                                                • IntegerDevice() : IntegerDevice
                                                • Integrator() -: Integrator -
                                                • -
                                                • Interpolate() -: Interpolate +: Integrator
                                                • interrupt_type : DigitalInput diff --git a/docs/functions_l.html b/docs/functions_l.html index e15401780..554d12189 100644 --- a/docs/functions_l.html +++ b/docs/functions_l.html @@ -30,7 +30,7 @@
                                                  SensESP -  0.3.0 +  0.4.0
                                                  Universal Signal K sensor framework for ESP8266 and ESP32
                                                  @@ -100,7 +100,7 @@

                                                  - l -

                                                    : LedBlinker
                                                  • Linear() -: Linear +: Linear
                                                  • load_configuration() : Configurable diff --git a/docs/functions_m.html b/docs/functions_m.html index 45913f23f..831408376 100644 --- a/docs/functions_m.html +++ b/docs/functions_m.html @@ -30,7 +30,7 @@
                                                    SensESP -  0.3.0 +  0.4.0
                                                    Universal Signal K sensor framework for ESP8266 and ESP32
                                                    @@ -91,7 +91,7 @@

                                                    - m -

                                                    • MovingAverage() -: MovingAverage +: MovingAverage
                                                    • msMinDelay : Debounce diff --git a/docs/functions_n.html b/docs/functions_n.html index ab8d21f79..25d885a23 100644 --- a/docs/functions_n.html +++ b/docs/functions_n.html @@ -30,7 +30,7 @@
                                                      SensESP -  0.3.0 +  0.4.0
                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                      diff --git a/docs/functions_o.html b/docs/functions_o.html index 35308edd7..caec5e9dd 100644 --- a/docs/functions_o.html +++ b/docs/functions_o.html @@ -30,7 +30,7 @@
                                                      SensESP -  0.3.0 +  0.4.0
                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                      @@ -109,14 +109,14 @@

                                                      - o -

                                                      diff --git a/docs/functions_p.html b/docs/functions_p.html index c96204309..53db9afdf 100644 --- a/docs/functions_p.html +++ b/docs/functions_p.html @@ -30,7 +30,7 @@
                                                      SensESP -  0.3.0 +  0.4.0
                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                      @@ -99,9 +99,6 @@

                                                      - p -

                                                        , PSTISentenceParser , SentenceParser -
                                                      • Passthrough() -: Passthrough< T > -
                                                      • pin : DigitalInput
                                                      • diff --git a/docs/functions_r.html b/docs/functions_r.html index f96b5f8ec..62d54556e 100644 --- a/docs/functions_r.html +++ b/docs/functions_r.html @@ -30,7 +30,7 @@
                                                        SensESP -  0.3.0 +  0.4.0
                                                        Universal Signal K sensor framework for ESP8266 and ESP32
                                                        diff --git a/docs/functions_rela.html b/docs/functions_rela.html index 293cab568..c04d5d9fe 100644 --- a/docs/functions_rela.html +++ b/docs/functions_rela.html @@ -30,7 +30,7 @@
                                                        SensESP -  0.3.0 +  0.4.0
                                                        Universal Signal K sensor framework for ESP8266 and ESP32
                                                        @@ -89,8 +89,8 @@ diff --git a/docs/functions_s.html b/docs/functions_s.html index 737ef93cf..7d4fc6787 100644 --- a/docs/functions_s.html +++ b/docs/functions_s.html @@ -30,7 +30,7 @@
                                                        SensESP -  0.3.0 +  0.4.0
                                                        Universal Signal K sensor framework for ESP8266 and ESP32
                                                        @@ -91,7 +91,7 @@

                                                        - s -

                                                        • Sample() -: Interpolate::Sample +: CurveInterpolator::Sample
                                                        • save_configuration() : Configurable @@ -122,17 +122,17 @@

                                                          - s -

                                                          • set_configuration() : Configurable -, Difference -, Frequency -, GNSSPosition +, CurveInterpolator +, Difference +, Frequency , Integrator -, Interpolate -, Linear -, MovingAverage +, Linear +, MovingAverage , Networking , OneWireTemperature -, Passthrough< T > -, TimeString +, SKOutput< T > +, SKOutputPosition +, SKOutputTime , VoltageDividerR2 , WSClient
                                                          • @@ -141,16 +141,15 @@

                                                            - s -

                                                              , SKDelta
                                                            • set_input() -: Debounce -, Difference -, Frequency -, GNSSPosition +: CurveInterpolator +, Debounce +, Difference +, Frequency , Integrator -, Interpolate -, Linear -, MovingAverage -, Passthrough< T > -, TimeString +, Linear +, MovingAverage +, SKOutput< T > +, TimeString , ValueConsumer< T > , VoltageDividerR2
                                                            • @@ -161,7 +160,7 @@

                                                              - s -

                                                                : LedBlinker
                                                              • set_sk_path() -: SignalKSource +: SKEmitter
                                                              • set_state() : LedBlinker @@ -172,18 +171,30 @@

                                                                - s -

                                                                • set_wifi_disconnected() : LedBlinker
                                                                • +
                                                                • setPriority() +: Enable +
                                                                • setup() : Networking
                                                                • -
                                                                • SignalKSource() -: SignalKSource -
                                                                • sk_path -: SignalKSource +: SKEmitter
                                                                • SKDelta() : SKDelta
                                                                • +
                                                                • SKEmitter() +: SKEmitter +
                                                                • +
                                                                • SKOutput() +: SKOutput< T > +
                                                                • +
                                                                • SKOutputPosition() +: SKOutputPosition +
                                                                • +
                                                                • SKOutputTime() +: SKOutputTime +
                                                                • speed : NMEAData
                                                                • @@ -191,7 +202,7 @@

                                                                  - s -

                                                                  diff --git a/docs/functions_t.html b/docs/functions_t.html index b7ae3245d..c8d4c6e05 100644 --- a/docs/functions_t.html +++ b/docs/functions_t.html @@ -30,7 +30,7 @@
                                                                  SensESP -  0.3.0 +  0.4.0
                                                                  Universal Signal K sensor framework for ESP8266 and ESP32
                                                                  @@ -90,17 +90,14 @@
                                                                  Here is a list of all class members with links to the classes they belong to:

                                                                  - t -

                                                                    -
                                                                  • TemperatureInterpreter() -: TemperatureInterpreter -
                                                                  • TimeString() -: TimeString +: TimeString
                                                                  • Transform() -: Transform< T > +: Transform< C, P >
                                                                  • TransformBase() -: TransformBase +: TransformBase
                                                                  • true_course : NMEAData diff --git a/docs/functions_u.html b/docs/functions_u.html index dd37756ea..f2668aa15 100644 --- a/docs/functions_u.html +++ b/docs/functions_u.html @@ -30,7 +30,7 @@
                                                                    SensESP -  0.3.0 +  0.4.0
                                                                    Universal Signal K sensor framework for ESP8266 and ESP32
                                                                    diff --git a/docs/functions_v.html b/docs/functions_v.html index af542b32d..f875be127 100644 --- a/docs/functions_v.html +++ b/docs/functions_v.html @@ -30,7 +30,7 @@
                                                                    SensESP -  0.3.0 +  0.4.0
                                                                    Universal Signal K sensor framework for ESP8266 and ESP32
                                                                    @@ -100,7 +100,7 @@

                                                                    - v -

                                                                    diff --git a/docs/functions_vars.html b/docs/functions_vars.html index f9cbd53be..061c5d722 100644 --- a/docs/functions_vars.html +++ b/docs/functions_vars.html @@ -30,7 +30,7 @@
                                                                    SensESP -  0.3.0 +  0.4.0
                                                                    Universal Signal K sensor framework for ESP8266 and ESP32
                                                                    @@ -158,7 +158,7 @@

                                                                    - h -

                                                                      - i -

                                                                      • input -: Interpolate::Sample +: CurveInterpolator::Sample
                                                                      • interrupt_type : DigitalInput @@ -202,7 +202,7 @@

                                                                        - n -

                                                                          - o -

                                                                          @@ -236,7 +236,7 @@

                                                                          - s -

                                                                            : DallasTemperatureSensors
                                                                          • sk_path -: SignalKSource +: SKEmitter
                                                                          • speed : NMEAData diff --git a/docs/functions_w.html b/docs/functions_w.html index b92629b36..a10c7a77b 100644 --- a/docs/functions_w.html +++ b/docs/functions_w.html @@ -30,7 +30,7 @@
                                                                            SensESP -  0.3.0 +  0.4.0
                                                                            Universal Signal K sensor framework for ESP8266 and ESP32
                                                                            diff --git a/docs/functions_~.html b/docs/functions_~.html index 1eb32607b..5e55ab5c4 100644 --- a/docs/functions_~.html +++ b/docs/functions_~.html @@ -30,7 +30,7 @@
                                                                            SensESP -  0.3.0 +  0.4.0
                                                                            Universal Signal K sensor framework for ESP8266 and ESP32
                                                                            diff --git a/docs/globals.html b/docs/globals.html index f5e390989..bcabd1f12 100644 --- a/docs/globals.html +++ b/docs/globals.html @@ -30,7 +30,7 @@
                                                                            SensESP -  0.3.0 +  0.4.0
                                                                            Universal Signal K sensor framework for ESP8266 and ESP32
                                                                            @@ -104,7 +104,7 @@

                                                                            - b -

                                                                            @@ -184,7 +184,7 @@

                                                                            - i -

                                                                            @@ -220,7 +220,7 @@

                                                                            - n -

                                                                            @@ -307,28 +307,24 @@

                                                                            - s -

                                                                              , sensesp_app.h
                                                                            • setup_analog_input() -: wiring_helpers.cpp -, wiring_helpers.h -
                                                                            • -
                                                                            • setup_digital_input() -: wiring_helpers.cpp -, wiring_helpers.h +: wiring_helpers.cpp +, wiring_helpers.h
                                                                            • setup_discovery() : discovery.cpp , discovery.h
                                                                            • setup_fuel_flow_meter() -: wiring_helpers.cpp -, wiring_helpers.h +: wiring_helpers.cpp +, wiring_helpers.h
                                                                            • setup_gps() -: wiring_helpers.cpp -, wiring_helpers.h +: wiring_helpers.cpp +, wiring_helpers.h
                                                                            • setup_onewire_temperature() : wiring_helpers.cpp -, wiring_helpers.h +, wiring_helpers.h
                                                                            • setup_OTA() : ota.cpp @@ -336,7 +332,7 @@

                                                                              - s -

                                                                              • setup_rpm_meter() : wiring_helpers.cpp -, wiring_helpers.h +, wiring_helpers.h
                                                                              • setup_spiffs_storage() : spiffs_storage.cpp @@ -348,6 +344,18 @@

                                                                                - s -

                                                                                • simulator_mode : nmea_parser.cpp
                                                                                • +
                                                                                • SKOutputBool +: signalk_output.h +
                                                                                • +
                                                                                • SKOutputInt +: signalk_output.h +
                                                                                • +
                                                                                • SKOutputNumber +: signalk_output.h +
                                                                                • +
                                                                                • SKOutputString +: signalk_output.h +
                                                                                • string_to_owda() : onewire_temperature.cpp
                                                                                • @@ -358,19 +366,7 @@

                                                                                  - s -

                                                                                  diff --git a/docs/globals_defs.html b/docs/globals_defs.html index 7a523bf35..0d943bbbb 100644 --- a/docs/globals_defs.html +++ b/docs/globals_defs.html @@ -30,7 +30,7 @@
                                                                                  SensESP -  0.3.0 +  0.4.0
                                                                                  Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                  diff --git a/docs/globals_enum.html b/docs/globals_enum.html index d8d8823a0..9c0fe3067 100644 --- a/docs/globals_enum.html +++ b/docs/globals_enum.html @@ -30,7 +30,7 @@
                                                                                  SensESP -  0.3.0 +  0.4.0
                                                                                  Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                  diff --git a/docs/globals_eval.html b/docs/globals_eval.html index d40ed8599..1c76ec247 100644 --- a/docs/globals_eval.html +++ b/docs/globals_eval.html @@ -30,7 +30,7 @@
                                                                                  SensESP -  0.3.0 +  0.4.0
                                                                                  Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                  diff --git a/docs/globals_func.html b/docs/globals_func.html index 11a7da983..55ec371de 100644 --- a/docs/globals_func.html +++ b/docs/globals_func.html @@ -30,7 +30,7 @@
                                                                                  SensESP -  0.3.0 +  0.4.0
                                                                                  Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                  @@ -156,28 +156,24 @@

                                                                                  - s -

                                                                                    : networking.cpp
                                                                                  • setup_analog_input() -: wiring_helpers.cpp -, wiring_helpers.h -
                                                                                  • -
                                                                                  • setup_digital_input() -: wiring_helpers.cpp -, wiring_helpers.h +: wiring_helpers.cpp +, wiring_helpers.h
                                                                                  • setup_discovery() : discovery.cpp , discovery.h
                                                                                  • setup_fuel_flow_meter() -: wiring_helpers.cpp -, wiring_helpers.h +: wiring_helpers.cpp +, wiring_helpers.h
                                                                                  • setup_gps() -: wiring_helpers.cpp -, wiring_helpers.h +: wiring_helpers.cpp +, wiring_helpers.h
                                                                                  • setup_onewire_temperature() : wiring_helpers.cpp -, wiring_helpers.h +, wiring_helpers.h
                                                                                  • setup_OTA() : ota.cpp @@ -185,7 +181,7 @@

                                                                                    - s -

                                                                                    • setup_rpm_meter() : wiring_helpers.cpp -, wiring_helpers.h +, wiring_helpers.h
                                                                                    • setup_spiffs_storage() : spiffs_storage.cpp diff --git a/docs/globals_type.html b/docs/globals_type.html index 8a74aaee2..6cd974034 100644 --- a/docs/globals_type.html +++ b/docs/globals_type.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -95,7 +95,7 @@ : valueproducer.h
                                                                                    • BooleanTransform -: transform.h +: transform.h
                                                                                    • IntegerConsumer : valueconsumer.h @@ -104,7 +104,7 @@ : valueproducer.h
                                                                                    • IntegerTransform -: transform.h +: transform.h
                                                                                    • NumericConsumer : valueconsumer.h @@ -113,11 +113,23 @@ : valueproducer.h
                                                                                    • NumericTransform -: transform.h +: transform.h
                                                                                    • OWDevAddr : onewire_temperature.h
                                                                                    • +
                                                                                    • SKOutputBool +: signalk_output.h +
                                                                                    • +
                                                                                    • SKOutputInt +: signalk_output.h +
                                                                                    • +
                                                                                    • SKOutputNumber +: signalk_output.h +
                                                                                    • +
                                                                                    • SKOutputString +: signalk_output.h +
                                                                                    • StringConsumer : valueconsumer.h
                                                                                    • @@ -125,19 +137,7 @@ : valueproducer.h
                                                                                    • StringTransform -: transform.h -
                                                                                    • -
                                                                                    • SymmetricBooleanTransform -: transform.h -
                                                                                    • -
                                                                                    • SymmetricIntegerTransform -: transform.h -
                                                                                    • -
                                                                                    • SymmetricNumericTransform -: transform.h -
                                                                                    • -
                                                                                    • SymmetricStringTransform -: transform.h +: transform.h
                                                                                    • void_cb_func : sensesp.h diff --git a/docs/globals_vars.html b/docs/globals_vars.html index 11c905a45..5a1ac24cc 100644 --- a/docs/globals_vars.html +++ b/docs/globals_vars.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/gps_8cpp.html b/docs/gps_8cpp.html index 80f771954..61402b264 100644 --- a/docs/gps_8cpp.html +++ b/docs/gps_8cpp.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/gps_8cpp_source.html b/docs/gps_8cpp_source.html index 0c0a90f38..7e3987811 100644 --- a/docs/gps_8cpp_source.html +++ b/docs/gps_8cpp_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/gps_8h.html b/docs/gps_8h.html index 253a071f8..160c9625f 100644 --- a/docs/gps_8h.html +++ b/docs/gps_8h.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -126,11 +126,11 @@
                                                                                      - + - - - + + +
                                                                                      diff --git a/docs/gps_8h__dep__incl.map b/docs/gps_8h__dep__incl.map index d18c0386e..e7774949d 100644 --- a/docs/gps_8h__dep__incl.map +++ b/docs/gps_8h__dep__incl.map @@ -1,7 +1,7 @@ - + - - - + + + diff --git a/docs/gps_8h__dep__incl.md5 b/docs/gps_8h__dep__incl.md5 index 8672ef53f..32e38c0f9 100644 --- a/docs/gps_8h__dep__incl.md5 +++ b/docs/gps_8h__dep__incl.md5 @@ -1 +1 @@ -bbf429c489165418fe8d78fc8e933e77 \ No newline at end of file +64a72240f15efdbd8df2b4579c328b03 \ No newline at end of file diff --git a/docs/gps_8h__dep__incl.png b/docs/gps_8h__dep__incl.png index 4b1a3320b..d3d73b059 100644 Binary files a/docs/gps_8h__dep__incl.png and b/docs/gps_8h__dep__incl.png differ diff --git a/docs/gps_8h_source.html b/docs/gps_8h_source.html index 55d0de607..d373e7e32 100644 --- a/docs/gps_8h_source.html +++ b/docs/gps_8h_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/graph_legend.html b/docs/graph_legend.html index b25ea3365..7b52f596e 100644 --- a/docs/graph_legend.html +++ b/docs/graph_legend.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/hierarchy.html b/docs/hierarchy.html index e9fdc5b69..1a5859f5e 100644 --- a/docs/hierarchy.html +++ b/docs/hierarchy.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -113,25 +113,29 @@  CIPAddrDev  CNetworking  CTransformBase - CTransform< T > - CSymmetricTransform< T > - CDebounce - CPassthrough< T > - CTimeString - CTransform< float > - CFrequency - CSymmetricTransform< float > - CDifference - CIntegrator - CInterpolate - CTemperatureInterpreter - CLinear - CAnalogVoltage - CMovingAverage - CVoltageDividerR2 - CTransform< Position > - CSymmetricTransform< Position > - CGNSSPosition + CTransform< C, P > + CTransform< float, float > + CSymmetricTransform< float > + CCurveInterpolator + CDifference + CIntegrator + CLinear + CAnalogVoltage + CMovingAverage + CVoltageDividerR2 + CTransform< int, float > + CFrequency + CTransform< Position, Position > + CSymmetricTransform< Position > + CSKOutput< Position > + CSKOutputPosition + CTransform< T, T > + CSymmetricTransform< T > + CDebounce + CSKOutput< T > + CTransform< time_t, String > + CTimeString + CSKOutputTime  CWSClient  CEnable  CDevice @@ -143,34 +147,40 @@  CNMEAParser  CObservable  CDevice - CSignalKSource - CTransformBase + CSKEmitter + CSKOutput< T > + CSKOutput< Position > + CSKOutputTime  CValueProducer< T >  CDigitalInputValue  CObservableValue< T > - CTransform< T > + CTransform< T, T >  CValueProducer< ENUVector >  CObservableValue< ENUVector >  CValueProducer< float >  CNumericDevice  CObservableValue< float > - CTransform< float > - CValueProducer< int > - CDigitalInputCounter - CIntegerDevice - CObservableValue< int > - CValueProducer< Position > - CObservableValue< Position > - CTransform< Position > - CValueProducer< String > - CObservableValue< String > - CStringDevice - CValueProducer< time_t > - CObservableValue< time_t > - CValueProducer< uint32_t > - CFreeMem + CTransform< float, float > + CTransform< int, float > + CValueProducer< int > + CDigitalInputCounter + CIntegerDevice + CObservableValue< int > + CValueProducer< P > + CTransform< C, P > + CValueProducer< Position > + CObservableValue< Position > + CTransform< Position, Position > + CValueProducer< String > + CObservableValue< String > + CStringDevice + CTransform< time_t, String > + CValueProducer< time_t > + CObservableValue< time_t > + CValueProducer< uint32_t > + CFreeMem  CPosition - CInterpolate::Sample + CCurveInterpolator::Sample  CSensESPApp  CSentenceParser  CGPGGASentenceParser @@ -181,14 +191,17 @@  CPSTISentenceParser  CSKDelta  CValueConsumer< T > - CFrequency - CSymmetricTransform< T > - CValueConsumer< float > - CSymmetricTransform< float > - CValueConsumer< Position > - CSymmetricTransform< Position > - CValueConsumer< time_t > - CTimeString + CTransform< T, T > + CValueConsumer< C > + CTransform< C, P > + CValueConsumer< float > + CTransform< float, float > + CValueConsumer< int > + CTransform< int, float > + CValueConsumer< Position > + CTransform< Position, Position > + CValueConsumer< time_t > + CTransform< time_t, String > diff --git a/docs/hierarchy.js b/docs/hierarchy.js index 2eec1f6aa..f5084cf33 100644 --- a/docs/hierarchy.js +++ b/docs/hierarchy.js @@ -22,21 +22,12 @@ var hierarchy = ] ], [ "Networking", "class_networking.html", null ], [ "TransformBase", "class_transform_base.html", [ - [ "Transform< T >", "class_transform.html", [ - [ "SymmetricTransform< T >", "class_symmetric_transform.html", [ - [ "Debounce", "class_debounce.html", null ], - [ "Passthrough< T >", "class_passthrough.html", null ] - ] ], - [ "TimeString", "class_time_string.html", null ] - ] ], - [ "Transform< float >", "class_transform.html", [ - [ "Frequency", "class_frequency.html", null ], + [ "Transform< C, P >", "class_transform.html", null ], + [ "Transform< float, float >", "class_transform.html", [ [ "SymmetricTransform< float >", "class_symmetric_transform.html", [ + [ "CurveInterpolator", "class_curve_interpolator.html", null ], [ "Difference", "class_difference.html", null ], [ "Integrator", "class_integrator.html", null ], - [ "Interpolate", "class_interpolate.html", [ - [ "TemperatureInterpreter", "class_temperature_interpreter.html", null ] - ] ], [ "Linear", "class_linear.html", [ [ "AnalogVoltage", "class_analog_voltage.html", null ] ] ], @@ -44,9 +35,25 @@ var hierarchy = [ "VoltageDividerR2", "class_voltage_divider_r2.html", null ] ] ] ] ], - [ "Transform< Position >", "class_transform.html", [ + [ "Transform< int, float >", "class_transform.html", [ + [ "Frequency", "class_frequency.html", null ] + ] ], + [ "Transform< Position, Position >", "class_transform.html", [ [ "SymmetricTransform< Position >", "class_symmetric_transform.html", [ - [ "GNSSPosition", "class_g_n_s_s_position.html", null ] + [ "SKOutput< Position >", "class_s_k_output.html", [ + [ "SKOutputPosition", "class_s_k_output_position.html", null ] + ] ] + ] ] + ] ], + [ "Transform< T, T >", "class_transform.html", [ + [ "SymmetricTransform< T >", "class_symmetric_transform.html", [ + [ "Debounce", "class_debounce.html", null ], + [ "SKOutput< T >", "class_s_k_output.html", null ] + ] ] + ] ], + [ "Transform< time_t, String >", "class_transform.html", [ + [ "TimeString", "class_time_string.html", [ + [ "SKOutputTime", "class_s_k_output_time.html", null ] ] ] ] ] ] ], @@ -63,13 +70,15 @@ var hierarchy = [ "NMEAParser", "class_n_m_e_a_parser.html", null ], [ "Observable", "class_observable.html", [ [ "Device", "class_device.html", null ], - [ "SignalKSource", "class_signal_k_source.html", [ - [ "TransformBase", "class_transform_base.html", null ] + [ "SKEmitter", "class_s_k_emitter.html", [ + [ "SKOutput< T >", "class_s_k_output.html", null ], + [ "SKOutput< Position >", "class_s_k_output.html", null ], + [ "SKOutputTime", "class_s_k_output_time.html", null ] ] ], [ "ValueProducer< T >", "class_value_producer.html", [ [ "DigitalInputValue", "class_digital_input_value.html", null ], [ "ObservableValue< T >", "class_observable_value.html", null ], - [ "Transform< T >", "class_transform.html", null ] + [ "Transform< T, T >", "class_transform.html", null ] ] ], [ "ValueProducer< ENUVector >", "class_value_producer.html", [ [ "ObservableValue< ENUVector >", "class_observable_value.html", null ] @@ -77,20 +86,25 @@ var hierarchy = [ "ValueProducer< float >", "class_value_producer.html", [ [ "NumericDevice", "class_numeric_device.html", null ], [ "ObservableValue< float >", "class_observable_value.html", null ], - [ "Transform< float >", "class_transform.html", null ] + [ "Transform< float, float >", "class_transform.html", null ], + [ "Transform< int, float >", "class_transform.html", null ] ] ], [ "ValueProducer< int >", "class_value_producer.html", [ [ "DigitalInputCounter", "class_digital_input_counter.html", null ], [ "IntegerDevice", "class_integer_device.html", null ], [ "ObservableValue< int >", "class_observable_value.html", null ] ] ], + [ "ValueProducer< P >", "class_value_producer.html", [ + [ "Transform< C, P >", "class_transform.html", null ] + ] ], [ "ValueProducer< Position >", "class_value_producer.html", [ [ "ObservableValue< Position >", "class_observable_value.html", null ], - [ "Transform< Position >", "class_transform.html", null ] + [ "Transform< Position, Position >", "class_transform.html", null ] ] ], [ "ValueProducer< String >", "class_value_producer.html", [ [ "ObservableValue< String >", "class_observable_value.html", null ], - [ "StringDevice", "class_string_device.html", null ] + [ "StringDevice", "class_string_device.html", null ], + [ "Transform< time_t, String >", "class_transform.html", null ] ] ], [ "ValueProducer< time_t >", "class_value_producer.html", [ [ "ObservableValue< time_t >", "class_observable_value.html", null ] @@ -100,7 +114,7 @@ var hierarchy = ] ] ] ], [ "Position", "struct_position.html", null ], - [ "Interpolate::Sample", "class_interpolate_1_1_sample.html", null ], + [ "CurveInterpolator::Sample", "class_curve_interpolator_1_1_sample.html", null ], [ "SensESPApp", "class_sens_e_s_p_app.html", null ], [ "SentenceParser", "class_sentence_parser.html", [ [ "GPGGASentenceParser", "class_g_p_g_g_a_sentence_parser.html", null ], @@ -112,16 +126,21 @@ var hierarchy = ] ], [ "SKDelta", "class_s_k_delta.html", null ], [ "ValueConsumer< T >", "class_value_consumer.html", [ - [ "Frequency", "class_frequency.html", null ], - [ "SymmetricTransform< T >", "class_symmetric_transform.html", null ] + [ "Transform< T, T >", "class_transform.html", null ] + ] ], + [ "ValueConsumer< C >", "class_value_consumer.html", [ + [ "Transform< C, P >", "class_transform.html", null ] ] ], [ "ValueConsumer< float >", "class_value_consumer.html", [ - [ "SymmetricTransform< float >", "class_symmetric_transform.html", null ] + [ "Transform< float, float >", "class_transform.html", null ] + ] ], + [ "ValueConsumer< int >", "class_value_consumer.html", [ + [ "Transform< int, float >", "class_transform.html", null ] ] ], [ "ValueConsumer< Position >", "class_value_consumer.html", [ - [ "SymmetricTransform< Position >", "class_symmetric_transform.html", null ] + [ "Transform< Position, Position >", "class_transform.html", null ] ] ], [ "ValueConsumer< time_t >", "class_value_consumer.html", [ - [ "TimeString", "class_time_string.html", null ] + [ "Transform< time_t, String >", "class_transform.html", null ] ] ] ]; \ No newline at end of file diff --git a/docs/http_8cpp.html b/docs/http_8cpp.html index 24ef8b628..47d0181ec 100644 --- a/docs/http_8cpp.html +++ b/docs/http_8cpp.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -115,34 +115,34 @@ - + - - + + - - + + - + - - - - + + + + - - - + + + diff --git a/docs/http_8cpp__incl.map b/docs/http_8cpp__incl.map index e88101ef5..c91ce985a 100644 --- a/docs/http_8cpp__incl.map +++ b/docs/http_8cpp__incl.map @@ -6,33 +6,33 @@ - + - - + + - - + + - + - - - - + + + + - - - + + + diff --git a/docs/http_8cpp__incl.md5 b/docs/http_8cpp__incl.md5 index ccad32904..c1244c6d1 100644 --- a/docs/http_8cpp__incl.md5 +++ b/docs/http_8cpp__incl.md5 @@ -1 +1 @@ -9654c1bb737ee1f5ee16561cf7d698c6 \ No newline at end of file +3df076811f1f31fa8e6ed6b5a2c6f07a \ No newline at end of file diff --git a/docs/http_8cpp__incl.png b/docs/http_8cpp__incl.png index 12d191712..a1ff75fe0 100644 Binary files a/docs/http_8cpp__incl.png and b/docs/http_8cpp__incl.png differ diff --git a/docs/http_8cpp_source.html b/docs/http_8cpp_source.html index 98333d878..9353cf86b 100644 --- a/docs/http_8cpp_source.html +++ b/docs/http_8cpp_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/http_8h.html b/docs/http_8h.html index 8661b02fb..6e4c4b56f 100644 --- a/docs/http_8h.html +++ b/docs/http_8h.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/http_8h_source.html b/docs/http_8h_source.html index ff4099ae4..6902018f5 100644 --- a/docs/http_8h_source.html +++ b/docs/http_8h_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/index.html b/docs/index.html index 9a57461e9..4403dcada 100644 --- a/docs/index.html +++ b/docs/index.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/index_8h.html b/docs/index_8h.html index 2e73112ea..9530daaa0 100644 --- a/docs/index_8h.html +++ b/docs/index_8h.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/index_8h_source.html b/docs/index_8h_source.html index 00cdb800c..d42bd6098 100644 --- a/docs/index_8h_source.html +++ b/docs/index_8h_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/inherit_graph_0.map b/docs/inherit_graph_0.map index 0d9a0a463..78617f4e6 100644 --- a/docs/inherit_graph_0.map +++ b/docs/inherit_graph_0.map @@ -1,3 +1,3 @@ - + diff --git a/docs/inherit_graph_0.md5 b/docs/inherit_graph_0.md5 index 556adc103..78e2d7a83 100644 --- a/docs/inherit_graph_0.md5 +++ b/docs/inherit_graph_0.md5 @@ -1 +1 @@ -e1765d45a134284eb7c574e9f25b71a6 \ No newline at end of file +f7c2f8b4006576aab2337e01a81e5935 \ No newline at end of file diff --git a/docs/inherit_graph_0.png b/docs/inherit_graph_0.png index 308e6e84d..1bbd66937 100644 Binary files a/docs/inherit_graph_0.png and b/docs/inherit_graph_0.png differ diff --git a/docs/inherit_graph_1.map b/docs/inherit_graph_1.map index 0910e1d0a..0d9a0a463 100644 --- a/docs/inherit_graph_1.map +++ b/docs/inherit_graph_1.map @@ -1,3 +1,3 @@ - + diff --git a/docs/inherit_graph_1.md5 b/docs/inherit_graph_1.md5 index db893dfad..556adc103 100644 --- a/docs/inherit_graph_1.md5 +++ b/docs/inherit_graph_1.md5 @@ -1 +1 @@ -e611bc74ad1ce7da7fa535ba83ac362c \ No newline at end of file +e1765d45a134284eb7c574e9f25b71a6 \ No newline at end of file diff --git a/docs/inherit_graph_1.png b/docs/inherit_graph_1.png index 5c8c79b04..308e6e84d 100644 Binary files a/docs/inherit_graph_1.png and b/docs/inherit_graph_1.png differ diff --git a/docs/inherit_graph_10.map b/docs/inherit_graph_10.map index d21743962..f638f6947 100644 --- a/docs/inherit_graph_10.map +++ b/docs/inherit_graph_10.map @@ -1,62 +1,69 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/inherit_graph_10.md5 b/docs/inherit_graph_10.md5 index 2e7e40e66..860898d1f 100644 --- a/docs/inherit_graph_10.md5 +++ b/docs/inherit_graph_10.md5 @@ -1 +1 @@ -144bd77edb8fc15d293e321d6281be59 \ No newline at end of file +d3f2438ccbcc28ab1cb4a623afb3c5f8 \ No newline at end of file diff --git a/docs/inherit_graph_10.png b/docs/inherit_graph_10.png index ad2f25f1a..f1bd9e829 100644 Binary files a/docs/inherit_graph_10.png and b/docs/inherit_graph_10.png differ diff --git a/docs/inherit_graph_2.map b/docs/inherit_graph_2.map index bf91942d8..0910e1d0a 100644 --- a/docs/inherit_graph_2.map +++ b/docs/inherit_graph_2.map @@ -1,3 +1,3 @@ - + diff --git a/docs/inherit_graph_2.md5 b/docs/inherit_graph_2.md5 index 01789463f..db893dfad 100644 --- a/docs/inherit_graph_2.md5 +++ b/docs/inherit_graph_2.md5 @@ -1 +1 @@ -c30fa436b1f6ca1d2304ffa576c8475e \ No newline at end of file +e611bc74ad1ce7da7fa535ba83ac362c \ No newline at end of file diff --git a/docs/inherit_graph_2.png b/docs/inherit_graph_2.png index 90da87572..5c8c79b04 100644 Binary files a/docs/inherit_graph_2.png and b/docs/inherit_graph_2.png differ diff --git a/docs/inherits.html b/docs/inherits.html index ae22f8a2b..6211d065b 100644 --- a/docs/inherits.html +++ b/docs/inherits.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -94,21 +94,21 @@ - + - -
                                                                                      +
                                                                                      + + + +
                                                                                      +
                                                                                      - - - -
                                                                                      @@ -152,66 +152,73 @@
                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                      diff --git a/docs/integrator_8cpp.html b/docs/integrator_8cpp.html index ccf40e3a6..b3b815022 100644 --- a/docs/integrator_8cpp.html +++ b/docs/integrator_8cpp.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -93,45 +93,43 @@
                                                                                      #include "integrator.h"
                                                                                      #include "sensesp_app.h"
                                                                                      -#include "system/valueproducer.h"
                                                                                      Include dependency graph for integrator.cpp:
                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                      diff --git a/docs/integrator_8cpp__incl.map b/docs/integrator_8cpp__incl.map index 5457d17f7..794b2928c 100644 --- a/docs/integrator_8cpp__incl.map +++ b/docs/integrator_8cpp__incl.map @@ -1,35 +1,34 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/integrator_8cpp__incl.md5 b/docs/integrator_8cpp__incl.md5 index 1e08f8416..9a40350ff 100644 --- a/docs/integrator_8cpp__incl.md5 +++ b/docs/integrator_8cpp__incl.md5 @@ -1 +1 @@ -8a52583d07402d323180466b2d5b390c \ No newline at end of file +3d3dc375afe94f489853f99e50a429f2 \ No newline at end of file diff --git a/docs/integrator_8cpp__incl.png b/docs/integrator_8cpp__incl.png index 3e42fd09e..f4b061e68 100644 Binary files a/docs/integrator_8cpp__incl.png and b/docs/integrator_8cpp__incl.png differ diff --git a/docs/integrator_8cpp_source.html b/docs/integrator_8cpp_source.html index a26538c8b..076964cc5 100644 --- a/docs/integrator_8cpp_source.html +++ b/docs/integrator_8cpp_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -91,21 +91,18 @@
                                                                                      integrator.cpp
                                                                                      -Go to the documentation of this file.
                                                                                      1 #include "integrator.h"
                                                                                      2 
                                                                                      3 #include "sensesp_app.h"
                                                                                      4 #include "system/valueproducer.h"
                                                                                      5 
                                                                                      6 // Integrator
                                                                                      7 
                                                                                      8 Integrator::Integrator(String path, float k, float value, String config_path) :
                                                                                      9  SymmetricTransform<float>{ path, config_path },
                                                                                      10  k{ k } {
                                                                                      11  output = value;
                                                                                      12  load_configuration();
                                                                                      13 }
                                                                                      14 
                                                                                      15 
                                                                                      17  // save the integrator value every 10 s
                                                                                      18  // NOTE: Disabled for now because interrupts start throwing
                                                                                      19  // exceptions.
                                                                                      20  //app.onRepeat(10000, [this](){ this->save_configuration(); });
                                                                                      21 }
                                                                                      22 
                                                                                      23 void Integrator::set_input(float input, uint8_t inputChannel) {
                                                                                      24  output += input;
                                                                                      25  notify();
                                                                                      26 }
                                                                                      27 
                                                                                      29  DynamicJsonBuffer jsonBuffer;
                                                                                      30  String json;
                                                                                      31  JsonObject& root = jsonBuffer.createObject();
                                                                                      32  root.set("path", this->sk_path);
                                                                                      33  root.set("value", output);
                                                                                      34  root.printTo(json);
                                                                                      35  return json;
                                                                                      36 }
                                                                                      37 
                                                                                      38 JsonObject& Integrator::get_configuration(JsonBuffer& buf) {
                                                                                      39  JsonObject& root = buf.createObject();
                                                                                      40  root["k"] = k;
                                                                                      41  root["sk_path"] = sk_path;
                                                                                      42  root["value"] = output;
                                                                                      43  return root;
                                                                                      44 }
                                                                                      45 
                                                                                      46 
                                                                                      48  return R"({
                                                                                      49  "type": "object",
                                                                                      50  "properties": {
                                                                                      51  "sk_path": { "title": "SignalK Path", "type": "string" },
                                                                                      52  "k": { "title": "Multiplier", "type": "number" },
                                                                                      53  "value": { "title": "Current value", "type" : "number", "readOnly": false }
                                                                                      54  }
                                                                                      55  })";
                                                                                      56 }
                                                                                      57 
                                                                                      58 
                                                                                      59 bool Integrator::set_configuration(const JsonObject& config) {
                                                                                      60  String expected[] = {"k", "sk_path"};
                                                                                      61  for (auto str : expected) {
                                                                                      62  if (!config.containsKey(str)) {
                                                                                      63  return false;
                                                                                      64  }
                                                                                      65  }
                                                                                      66  k = config["k"];
                                                                                      67  output = config["value"];
                                                                                      68  sk_path = config["sk_path"].as<String>();
                                                                                      69  return true;
                                                                                      70 }
                                                                                      Integrator(String sk_path, float k=1, float value=0, String config_path="")
                                                                                      Definition: integrator.cpp:8
                                                                                      -
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override final
                                                                                      Definition: integrator.cpp:38
                                                                                      +Go to the documentation of this file.
                                                                                      1 #include "integrator.h"
                                                                                      2 
                                                                                      3 #include "sensesp_app.h"
                                                                                      4 
                                                                                      5 // Integrator
                                                                                      6 
                                                                                      7 Integrator::Integrator(float k, float value, String config_path) :
                                                                                      8  NumericTransform(config_path),
                                                                                      9  k{ k } {
                                                                                      10  output = value;
                                                                                      11  load_configuration();
                                                                                      12 }
                                                                                      13 
                                                                                      14 
                                                                                      16  // save the integrator value every 10 s
                                                                                      17  // NOTE: Disabled for now because interrupts start throwing
                                                                                      18  // exceptions.
                                                                                      19  //app.onRepeat(10000, [this](){ this->save_configuration(); });
                                                                                      20 }
                                                                                      21 
                                                                                      22 void Integrator::set_input(float input, uint8_t inputChannel) {
                                                                                      23  output += input;
                                                                                      24  notify();
                                                                                      25 }
                                                                                      26 
                                                                                      27 
                                                                                      28 JsonObject& Integrator::get_configuration(JsonBuffer& buf) {
                                                                                      29  JsonObject& root = buf.createObject();
                                                                                      30  root["k"] = k;
                                                                                      31  root["value"] = output;
                                                                                      32  return root;
                                                                                      33 }
                                                                                      34 
                                                                                      35 static const char SCHEMA[] PROGMEM = R"({
                                                                                      36  "type": "object",
                                                                                      37  "properties": {
                                                                                      38  "k": { "title": "Multiplier", "type": "number" },
                                                                                      39  "value": { "title": "Current value", "type" : "number", "readOnly": false }
                                                                                      40  }
                                                                                      41  })";
                                                                                      42 
                                                                                      44  return FPSTR(SCHEMA);
                                                                                      45 }
                                                                                      46 
                                                                                      47 bool Integrator::set_configuration(const JsonObject& config) {
                                                                                      48  String expected[] = {"k" };
                                                                                      49  for (auto str : expected) {
                                                                                      50  if (!config.containsKey(str)) {
                                                                                      51  return false;
                                                                                      52  }
                                                                                      53  }
                                                                                      54  k = config["k"];
                                                                                      55  output = config["value"];
                                                                                      56  return true;
                                                                                      57 }
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override final
                                                                                      Definition: integrator.cpp:28
                                                                                      void notify()
                                                                                      Definition: observable.cpp:3
                                                                                      -
                                                                                      virtual void set_input(float input, uint8_t inputChannel=0) override final
                                                                                      Definition: integrator.cpp:23
                                                                                      - -
                                                                                      virtual bool set_configuration(const JsonObject &config) override final
                                                                                      Definition: integrator.cpp:59
                                                                                      -
                                                                                      virtual void enable() override final
                                                                                      Definition: integrator.cpp:16
                                                                                      - +
                                                                                      virtual void set_input(float input, uint8_t inputChannel=0) override final
                                                                                      Definition: integrator.cpp:22
                                                                                      +
                                                                                      virtual bool set_configuration(const JsonObject &config) override final
                                                                                      Definition: integrator.cpp:47
                                                                                      +
                                                                                      virtual void enable() override final
                                                                                      Definition: integrator.cpp:15
                                                                                      + -
                                                                                      const String config_path
                                                                                      Definition: configurable.h:29
                                                                                      -
                                                                                      virtual String get_config_schema() override
                                                                                      Definition: integrator.cpp:47
                                                                                      +
                                                                                      virtual String get_config_schema() override
                                                                                      Definition: integrator.cpp:43
                                                                                      - - -
                                                                                      String as_signalK() override final
                                                                                      Definition: integrator.cpp:28
                                                                                      + +
                                                                                      Integrator(float k=1, float value=0, String config_path="")
                                                                                      Definition: integrator.cpp:7
                                                                                      +
                                                                                      const char PAGE_index [] PROGMEM
                                                                                      Definition: index.h:2
                                                                                      diff --git a/docs/integrator_8h.html b/docs/integrator_8h.html index 6ecaf52a9..6fc19ec33 100644 --- a/docs/integrator_8h.html +++ b/docs/integrator_8h.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -94,32 +94,30 @@
                                                                                      #include "transform.h"
                                                                                      -#include <system/valueconsumer.h>
                                                                                      Include dependency graph for integrator.h:
                                                                                      - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + +
                                                                                      diff --git a/docs/integrator_8h__dep__incl.md5 b/docs/integrator_8h__dep__incl.md5 index 96936e6db..27e27a224 100644 --- a/docs/integrator_8h__dep__incl.md5 +++ b/docs/integrator_8h__dep__incl.md5 @@ -1 +1 @@ -9011ddb4387cb6f98a461a178d1b4521 \ No newline at end of file +bd9f78b21bfd1f3f3516f0098a5c922e \ No newline at end of file diff --git a/docs/integrator_8h__incl.map b/docs/integrator_8h__incl.map index 1db95edb5..69cd28272 100644 --- a/docs/integrator_8h__incl.map +++ b/docs/integrator_8h__incl.map @@ -1,22 +1,21 @@ - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + diff --git a/docs/integrator_8h__incl.md5 b/docs/integrator_8h__incl.md5 index d1ea13091..340352227 100644 --- a/docs/integrator_8h__incl.md5 +++ b/docs/integrator_8h__incl.md5 @@ -1 +1 @@ -e604dc00454319a06676961ac7407b6f \ No newline at end of file +3360b43e6174edce9f32784b742f3521 \ No newline at end of file diff --git a/docs/integrator_8h__incl.png b/docs/integrator_8h__incl.png index 3269557b1..2ee82e127 100644 Binary files a/docs/integrator_8h__incl.png and b/docs/integrator_8h__incl.png differ diff --git a/docs/integrator_8h_source.html b/docs/integrator_8h_source.html index 7eb04ea92..512d3e2a5 100644 --- a/docs/integrator_8h_source.html +++ b/docs/integrator_8h_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -91,19 +91,16 @@
                                                                                      integrator.h
                                                                                      -Go to the documentation of this file.
                                                                                      1 #ifndef _integrator_H_
                                                                                      2 #define _integrator_H_
                                                                                      3 
                                                                                      4 #include "transform.h"
                                                                                      5 #include <system/valueconsumer.h>
                                                                                      6 
                                                                                      7 // y = k * sum(x_t)
                                                                                      8 class Integrator : public SymmetricTransform<float> {
                                                                                      9  public:
                                                                                      10  Integrator(String sk_path, float k=1, float value=0, String config_path="");
                                                                                      11  virtual void enable() override final;
                                                                                      12  virtual void set_input(float input, uint8_t inputChannel = 0) override final;
                                                                                      13  String as_signalK() override final;
                                                                                      14  virtual JsonObject& get_configuration(JsonBuffer& buf) override final;
                                                                                      15  virtual bool set_configuration(const JsonObject& config) override final;
                                                                                      16  virtual String get_config_schema() override;
                                                                                      17 
                                                                                      18  private:
                                                                                      19  float k;
                                                                                      20 };
                                                                                      21 
                                                                                      22 #endif
                                                                                      Integrator(String sk_path, float k=1, float value=0, String config_path="")
                                                                                      Definition: integrator.cpp:8
                                                                                      -
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override final
                                                                                      Definition: integrator.cpp:38
                                                                                      - -
                                                                                      virtual void set_input(float input, uint8_t inputChannel=0) override final
                                                                                      Definition: integrator.cpp:23
                                                                                      - -
                                                                                      virtual bool set_configuration(const JsonObject &config) override final
                                                                                      Definition: integrator.cpp:59
                                                                                      -
                                                                                      virtual void enable() override final
                                                                                      Definition: integrator.cpp:16
                                                                                      - +Go to the documentation of this file.
                                                                                      1 #ifndef _integrator_H_
                                                                                      2 #define _integrator_H_
                                                                                      3 
                                                                                      4 #include "transform.h"
                                                                                      5 
                                                                                      6 // y = k * sum(x_t)
                                                                                      7 class Integrator : public NumericTransform {
                                                                                      8  public:
                                                                                      9  Integrator(float k=1, float value=0, String config_path="");
                                                                                      10  virtual void enable() override final;
                                                                                      11  virtual void set_input(float input, uint8_t inputChannel = 0) override final;
                                                                                      12  virtual JsonObject& get_configuration(JsonBuffer& buf) override final;
                                                                                      13  virtual bool set_configuration(const JsonObject& config) override final;
                                                                                      14  virtual String get_config_schema() override;
                                                                                      15 
                                                                                      16  private:
                                                                                      17  float k;
                                                                                      18 };
                                                                                      19 
                                                                                      20 #endif
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override final
                                                                                      Definition: integrator.cpp:28
                                                                                      +
                                                                                      virtual void set_input(float input, uint8_t inputChannel=0) override final
                                                                                      Definition: integrator.cpp:22
                                                                                      +
                                                                                      virtual bool set_configuration(const JsonObject &config) override final
                                                                                      Definition: integrator.cpp:47
                                                                                      +
                                                                                      virtual void enable() override final
                                                                                      Definition: integrator.cpp:15
                                                                                      + - +
                                                                                      const String config_path
                                                                                      Definition: configurable.h:29
                                                                                      -
                                                                                      virtual String get_config_schema() override
                                                                                      Definition: integrator.cpp:47
                                                                                      -
                                                                                      String as_signalK() override final
                                                                                      Definition: integrator.cpp:28
                                                                                      +
                                                                                      virtual String get_config_schema() override
                                                                                      Definition: integrator.cpp:43
                                                                                      +
                                                                                      Integrator(float k=1, float value=0, String config_path="")
                                                                                      Definition: integrator.cpp:7
                                                                                      diff --git a/docs/js__jsoneditor_8h.html b/docs/js__jsoneditor_8h.html index dc74dc0e8..2e4945e0f 100644 --- a/docs/js__jsoneditor_8h.html +++ b/docs/js__jsoneditor_8h.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/js__jsoneditor_8h_source.html b/docs/js__jsoneditor_8h_source.html index 114c08f6b..eedc83f0f 100644 --- a/docs/js__jsoneditor_8h_source.html +++ b/docs/js__jsoneditor_8h_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/js__sensesp_8h.html b/docs/js__sensesp_8h.html index 92a4d2b5e..c88800d40 100644 --- a/docs/js__sensesp_8h.html +++ b/docs/js__sensesp_8h.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/js__sensesp_8h_source.html b/docs/js__sensesp_8h_source.html index 1575a9e77..c5d534e1e 100644 --- a/docs/js__sensesp_8h_source.html +++ b/docs/js__sensesp_8h_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/led__blinker_8cpp.html b/docs/led__blinker_8cpp.html index c10a09b8b..bd3f697e1 100644 --- a/docs/led__blinker_8cpp.html +++ b/docs/led__blinker_8cpp.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/led__blinker_8cpp_source.html b/docs/led__blinker_8cpp_source.html index b315506ec..cb2b95b98 100644 --- a/docs/led__blinker_8cpp_source.html +++ b/docs/led__blinker_8cpp_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/led__blinker_8h.html b/docs/led__blinker_8h.html index 7843a13d6..ad506acfe 100644 --- a/docs/led__blinker_8h.html +++ b/docs/led__blinker_8h.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/led__blinker_8h_source.html b/docs/led__blinker_8h_source.html index 0eb776061..269187172 100644 --- a/docs/led__blinker_8h_source.html +++ b/docs/led__blinker_8h_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/linear_8cpp.html b/docs/linear_8cpp.html index 964333583..c9ca61aaa 100644 --- a/docs/linear_8cpp.html +++ b/docs/linear_8cpp.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -97,27 +97,26 @@
                                                                                      - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + +
                                                                                      diff --git a/docs/linear_8cpp__incl.map b/docs/linear_8cpp__incl.map index 0e125a924..034e3d3d7 100644 --- a/docs/linear_8cpp__incl.map +++ b/docs/linear_8cpp__incl.map @@ -1,23 +1,22 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + diff --git a/docs/linear_8cpp__incl.md5 b/docs/linear_8cpp__incl.md5 index dc29ad2ec..63d8ce328 100644 --- a/docs/linear_8cpp__incl.md5 +++ b/docs/linear_8cpp__incl.md5 @@ -1 +1 @@ -c5fb58b07e4648105bf05e030a40e0fd \ No newline at end of file +6aece24b476464a9f38153487a2b41dd \ No newline at end of file diff --git a/docs/linear_8cpp__incl.png b/docs/linear_8cpp__incl.png index dee9b26de..5d3831679 100644 Binary files a/docs/linear_8cpp__incl.png and b/docs/linear_8cpp__incl.png differ diff --git a/docs/linear_8cpp_source.html b/docs/linear_8cpp_source.html index 0327a68bc..08815c96a 100644 --- a/docs/linear_8cpp_source.html +++ b/docs/linear_8cpp_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -91,18 +91,16 @@
                                                                                      linear.cpp
                                                                                      -Go to the documentation of this file.
                                                                                      1 #include "linear.h"
                                                                                      2 
                                                                                      3 // Linear
                                                                                      4 
                                                                                      5 Linear::Linear(String path, float k, float c, String config_path) :
                                                                                      6  SymmetricTransform<float>{ path, config_path },
                                                                                      7  k{ k },
                                                                                      8  c{ c } {
                                                                                      9  load_configuration();
                                                                                      10 }
                                                                                      11 
                                                                                      12 
                                                                                      13 void Linear::set_input(float input, uint8_t inputChannel) {
                                                                                      14  output = k * input + c;
                                                                                      15  notify();
                                                                                      16 }
                                                                                      17 
                                                                                      19  DynamicJsonBuffer jsonBuffer;
                                                                                      20  String json;
                                                                                      21  JsonObject& root = jsonBuffer.createObject();
                                                                                      22  root.set("path", this->sk_path);
                                                                                      23  root.set("value", output);
                                                                                      24  root.printTo(json);
                                                                                      25  return json;
                                                                                      26 }
                                                                                      27 
                                                                                      28 JsonObject& Linear::get_configuration(JsonBuffer& buf) {
                                                                                      29  JsonObject& root = buf.createObject();
                                                                                      30  root["k"] = k;
                                                                                      31  root["c"] = c;
                                                                                      32  root["sk_path"] = sk_path;
                                                                                      33  root["value"] = output;
                                                                                      34  return root;
                                                                                      35 }
                                                                                      36 
                                                                                      37 
                                                                                      39  return R"({
                                                                                      40  "type": "object",
                                                                                      41  "properties": {
                                                                                      42  "sk_path": { "title": "SignalK Path", "type": "string" },
                                                                                      43  "k": { "title": "Multiplier", "type": "number" },
                                                                                      44  "c": { "title": "Constant offset", "type": "number" },
                                                                                      45  "value": { "title": "Last value", "type" : "number", "readOnly": true }
                                                                                      46  }
                                                                                      47  })";
                                                                                      48 }
                                                                                      49 
                                                                                      50 
                                                                                      51 bool Linear::set_configuration(const JsonObject& config) {
                                                                                      52  String expected[] = {"k", "c", "sk_path"};
                                                                                      53  for (auto str : expected) {
                                                                                      54  if (!config.containsKey(str)) {
                                                                                      55  return false;
                                                                                      56  }
                                                                                      57  }
                                                                                      58  k = config["k"];
                                                                                      59  c = config["c"];
                                                                                      60  sk_path = config["sk_path"].as<String>();
                                                                                      61  return true;
                                                                                      62 }
                                                                                      63 
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override final
                                                                                      Definition: linear.cpp:28
                                                                                      -
                                                                                      void notify()
                                                                                      Definition: observable.cpp:3
                                                                                      +Go to the documentation of this file.
                                                                                      1 #include "linear.h"
                                                                                      2 
                                                                                      3 // Linear
                                                                                      4 
                                                                                      5 Linear::Linear(float k, float c, String config_path) :
                                                                                      6  NumericTransform(config_path),
                                                                                      7  k{ k },
                                                                                      8  c{ c } {
                                                                                      9  load_configuration();
                                                                                      10 }
                                                                                      11 
                                                                                      12 
                                                                                      13 void Linear::set_input(float input, uint8_t inputChannel) {
                                                                                      14  output = k * input + c;
                                                                                      15  notify();
                                                                                      16 }
                                                                                      17 
                                                                                      18 
                                                                                      19 JsonObject& Linear::get_configuration(JsonBuffer& buf) {
                                                                                      20  JsonObject& root = buf.createObject();
                                                                                      21  root["k"] = k;
                                                                                      22  root["c"] = c;
                                                                                      23  root["value"] = output;
                                                                                      24  return root;
                                                                                      25 }
                                                                                      26 
                                                                                      27 static const char SCHEMA[] PROGMEM = R"({
                                                                                      28  "type": "object",
                                                                                      29  "properties": {
                                                                                      30  "k": { "title": "Multiplier", "type": "number" },
                                                                                      31  "c": { "title": "Constant offset", "type": "number" },
                                                                                      32  "value": { "title": "Last value", "type" : "number", "readOnly": true }
                                                                                      33  }
                                                                                      34  })";
                                                                                      35 
                                                                                      37  return FPSTR(SCHEMA);
                                                                                      38 }
                                                                                      39 
                                                                                      40 bool Linear::set_configuration(const JsonObject& config) {
                                                                                      41  String expected[] = {"k", "c" };
                                                                                      42  for (auto str : expected) {
                                                                                      43  if (!config.containsKey(str)) {
                                                                                      44  return false;
                                                                                      45  }
                                                                                      46  }
                                                                                      47  k = config["k"];
                                                                                      48  c = config["c"];
                                                                                      49  return true;
                                                                                      50 }
                                                                                      void notify()
                                                                                      Definition: observable.cpp:3
                                                                                      +
                                                                                      virtual bool set_configuration(const JsonObject &config) override
                                                                                      Definition: linear.cpp:40
                                                                                      - -
                                                                                      Linear(String sk_path, float k, float c, String config_path="")
                                                                                      Definition: linear.cpp:5
                                                                                      -
                                                                                      virtual void set_input(float input, uint8_t inputChannel=0) override final
                                                                                      Definition: linear.cpp:13
                                                                                      -
                                                                                      virtual String as_signalK() override final
                                                                                      Definition: linear.cpp:18
                                                                                      -
                                                                                      virtual bool set_configuration(const JsonObject &config) override final
                                                                                      Definition: linear.cpp:51
                                                                                      - -
                                                                                      const String config_path
                                                                                      Definition: configurable.h:29
                                                                                      -
                                                                                      virtual String get_config_schema() override
                                                                                      Definition: linear.cpp:38
                                                                                      - +
                                                                                      virtual void set_input(float input, uint8_t inputChannel=0) override
                                                                                      Definition: linear.cpp:13
                                                                                      +
                                                                                      Linear(float k, float c, String config_path="")
                                                                                      Definition: linear.cpp:5
                                                                                      + +
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override
                                                                                      Definition: linear.cpp:19
                                                                                      +
                                                                                      virtual String get_config_schema() override
                                                                                      Definition: linear.cpp:36
                                                                                      + +
                                                                                      const char PAGE_index [] PROGMEM
                                                                                      Definition: index.h:2
                                                                                      diff --git a/docs/linear_8h.html b/docs/linear_8h.html index 70735a85e..3ca825ba9 100644 --- a/docs/linear_8h.html +++ b/docs/linear_8h.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -94,32 +94,30 @@
                                                                                      #include "transform.h"
                                                                                      -#include "system/valueconsumer.h"
                                                                                      Include dependency graph for linear.h:
                                                                                      - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + +
                                                                                      diff --git a/docs/linear_8h__dep__incl.md5 b/docs/linear_8h__dep__incl.md5 index d05f28d7b..262d520e8 100644 --- a/docs/linear_8h__dep__incl.md5 +++ b/docs/linear_8h__dep__incl.md5 @@ -1 +1 @@ -f636f89a0f4e0ca23de44e82b628bddb \ No newline at end of file +051be945d963712dcc656342f984d5c4 \ No newline at end of file diff --git a/docs/linear_8h__incl.map b/docs/linear_8h__incl.map index a644fd37f..c4dd31c7d 100644 --- a/docs/linear_8h__incl.map +++ b/docs/linear_8h__incl.map @@ -1,22 +1,21 @@ - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + diff --git a/docs/linear_8h__incl.md5 b/docs/linear_8h__incl.md5 index 17d5d555a..0d67519fb 100644 --- a/docs/linear_8h__incl.md5 +++ b/docs/linear_8h__incl.md5 @@ -1 +1 @@ -7b7857d0b0e96f91acb91e7aec0916d5 \ No newline at end of file +066eb7020e0cfc0a0c3dbf3c15ef6d6d \ No newline at end of file diff --git a/docs/linear_8h__incl.png b/docs/linear_8h__incl.png index ad6652911..899653f95 100644 Binary files a/docs/linear_8h__incl.png and b/docs/linear_8h__incl.png differ diff --git a/docs/linear_8h_source.html b/docs/linear_8h_source.html index 0f095fd68..e9862f96a 100644 --- a/docs/linear_8h_source.html +++ b/docs/linear_8h_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -91,18 +91,15 @@
                                                                                      linear.h
                                                                                      -Go to the documentation of this file.
                                                                                      1 #ifndef _linear_H_
                                                                                      2 #define _linear_H_
                                                                                      3 
                                                                                      4 #include "transform.h"
                                                                                      5 #include "system/valueconsumer.h"
                                                                                      6 
                                                                                      7 // y = k * x + c
                                                                                      8 class Linear : public SymmetricTransform<float> {
                                                                                      9  public:
                                                                                      10  Linear(String sk_path, float k, float c, String config_path="");
                                                                                      11  virtual void set_input(float input, uint8_t inputChannel = 0) override final;
                                                                                      12  virtual String as_signalK() override final;
                                                                                      13  virtual JsonObject& get_configuration(JsonBuffer& buf) override final;
                                                                                      14  virtual bool set_configuration(const JsonObject& config) override final;
                                                                                      15  virtual String get_config_schema() override;
                                                                                      16 
                                                                                      17  private:
                                                                                      18  float k;
                                                                                      19  float c;
                                                                                      20 };
                                                                                      21 
                                                                                      22 #endif
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override final
                                                                                      Definition: linear.cpp:28
                                                                                      - -
                                                                                      Definition: linear.h:8
                                                                                      - -
                                                                                      Linear(String sk_path, float k, float c, String config_path="")
                                                                                      Definition: linear.cpp:5
                                                                                      -
                                                                                      virtual void set_input(float input, uint8_t inputChannel=0) override final
                                                                                      Definition: linear.cpp:13
                                                                                      -
                                                                                      virtual String as_signalK() override final
                                                                                      Definition: linear.cpp:18
                                                                                      +Go to the documentation of this file.
                                                                                      1 #ifndef _linear_H_
                                                                                      2 #define _linear_H_
                                                                                      3 
                                                                                      4 #include "transform.h"
                                                                                      5 
                                                                                      6 // y = k * x + c
                                                                                      7 class Linear : public NumericTransform {
                                                                                      8  public:
                                                                                      9  Linear(float k, float c, String config_path="");
                                                                                      10  virtual void set_input(float input, uint8_t inputChannel = 0) override;
                                                                                      11  virtual JsonObject& get_configuration(JsonBuffer& buf) override;
                                                                                      12  virtual bool set_configuration(const JsonObject& config) override;
                                                                                      13  virtual String get_config_schema() override;
                                                                                      14 
                                                                                      15  private:
                                                                                      16  float k;
                                                                                      17  float c;
                                                                                      18 };
                                                                                      19 
                                                                                      20 #endif
                                                                                      virtual bool set_configuration(const JsonObject &config) override
                                                                                      Definition: linear.cpp:40
                                                                                      +
                                                                                      virtual void set_input(float input, uint8_t inputChannel=0) override
                                                                                      Definition: linear.cpp:13
                                                                                      +
                                                                                      Definition: linear.h:7
                                                                                      +
                                                                                      Linear(float k, float c, String config_path="")
                                                                                      Definition: linear.cpp:5
                                                                                      -
                                                                                      virtual bool set_configuration(const JsonObject &config) override final
                                                                                      Definition: linear.cpp:51
                                                                                      - + +
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override
                                                                                      Definition: linear.cpp:19
                                                                                      const String config_path
                                                                                      Definition: configurable.h:29
                                                                                      -
                                                                                      virtual String get_config_schema() override
                                                                                      Definition: linear.cpp:38
                                                                                      +
                                                                                      virtual String get_config_schema() override
                                                                                      Definition: linear.cpp:36
                                                                                      diff --git a/docs/moving__average_8cpp.html b/docs/moving__average_8cpp.html index 1b3ac2db9..6ddc8c6be 100644 --- a/docs/moving__average_8cpp.html +++ b/docs/moving__average_8cpp.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -97,27 +97,26 @@
                                                                                      - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + +
                                                                                      diff --git a/docs/moving__average_8cpp__incl.map b/docs/moving__average_8cpp__incl.map index 13d4de24f..67fe1e92e 100644 --- a/docs/moving__average_8cpp__incl.map +++ b/docs/moving__average_8cpp__incl.map @@ -1,23 +1,22 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + diff --git a/docs/moving__average_8cpp__incl.md5 b/docs/moving__average_8cpp__incl.md5 index e40b3da73..3fba7c6e8 100644 --- a/docs/moving__average_8cpp__incl.md5 +++ b/docs/moving__average_8cpp__incl.md5 @@ -1 +1 @@ -610b6bbc9da3fa1ed0f536cdabddd61d \ No newline at end of file +edfa63f7af02175cc8ba93aabb5e419b \ No newline at end of file diff --git a/docs/moving__average_8cpp__incl.png b/docs/moving__average_8cpp__incl.png index c2eb592bf..9621f83e9 100644 Binary files a/docs/moving__average_8cpp__incl.png and b/docs/moving__average_8cpp__incl.png differ diff --git a/docs/moving__average_8cpp_source.html b/docs/moving__average_8cpp_source.html index 815106dcd..2764af909 100644 --- a/docs/moving__average_8cpp_source.html +++ b/docs/moving__average_8cpp_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -91,18 +91,16 @@
                                                                                      moving_average.cpp
                                                                                      -Go to the documentation of this file.
                                                                                      1 #include "moving_average.h"
                                                                                      2 
                                                                                      3 // MovingAverage
                                                                                      4 
                                                                                      5 MovingAverage::MovingAverage(String path, int n, float k, String config_path) :
                                                                                      6  SymmetricTransform<float>{ path, config_path },
                                                                                      7  n{ n },
                                                                                      8  k{ k } {
                                                                                      9  buf.resize(n, 0);
                                                                                      10  load_configuration();
                                                                                      11 }
                                                                                      12 
                                                                                      13 void MovingAverage::set_input(float input, uint8_t inputChannel) {
                                                                                      14  output += -k*buf[ptr]/n;
                                                                                      15  buf[ptr] = input;
                                                                                      16  ptr = (ptr+1) % n;
                                                                                      17  output += k * input/n;
                                                                                      18  notify();
                                                                                      19 }
                                                                                      20 
                                                                                      22  DynamicJsonBuffer jsonBuffer;
                                                                                      23  String json;
                                                                                      24  JsonObject& root = jsonBuffer.createObject();
                                                                                      25  root.set("path", this->sk_path);
                                                                                      26  root.set("value", output);
                                                                                      27  root.printTo(json);
                                                                                      28  return json;
                                                                                      29 }
                                                                                      30 
                                                                                      31 JsonObject& MovingAverage::get_configuration(JsonBuffer& buf) {
                                                                                      32  JsonObject& root = buf.createObject();
                                                                                      33  root["k"] = k;
                                                                                      34  root["n"] = n;
                                                                                      35  root["sk_path"] = sk_path;
                                                                                      36  root["value"] = output;
                                                                                      37  return root;
                                                                                      38 }
                                                                                      39 
                                                                                      41  return R"({
                                                                                      42  "type": "object",
                                                                                      43  "properties": {
                                                                                      44  "sk_path": { "title": "SignalK Path", "type": "string" },
                                                                                      45  "n": { "title": "Number of samples in average", "type": "integer" }
                                                                                      46  "k": { "title": "Multiplier", "type": "number" }
                                                                                      47  }
                                                                                      48  })";
                                                                                      49 }
                                                                                      50 
                                                                                      51 
                                                                                      52 bool MovingAverage::set_configuration(const JsonObject& config) {
                                                                                      53  String expected[] = {"k", "sk_path"};
                                                                                      54  for (auto str : expected) {
                                                                                      55  if (!config.containsKey(str)) {
                                                                                      56  return false;
                                                                                      57  }
                                                                                      58  }
                                                                                      59  k = config["k"];
                                                                                      60  int n_new = config["n"];
                                                                                      61  // need to reset the ring buffer if size changes
                                                                                      62  if (n != n_new) {
                                                                                      63  buf.assign(n, 0);
                                                                                      64  ptr = 0;
                                                                                      65  output = 0;
                                                                                      66  }
                                                                                      67  sk_path = config["sk_path"].as<String>();
                                                                                      68  return true;
                                                                                      69 }
                                                                                      70 
                                                                                      -
                                                                                      MovingAverage(String sk_path, int n, float k=1., String config_path="")
                                                                                      +Go to the documentation of this file.
                                                                                      1 #include "moving_average.h"
                                                                                      2 
                                                                                      3 // MovingAverage
                                                                                      4 
                                                                                      5 MovingAverage::MovingAverage(int n, float k, String config_path) :
                                                                                      6  NumericTransform(config_path),
                                                                                      7  n{ n },
                                                                                      8  k{ k } {
                                                                                      9  buf.resize(n, 0);
                                                                                      10  load_configuration();
                                                                                      11 }
                                                                                      12 
                                                                                      13 void MovingAverage::set_input(float input, uint8_t inputChannel) {
                                                                                      14  output += -k*buf[ptr]/n;
                                                                                      15  buf[ptr] = input;
                                                                                      16  ptr = (ptr+1) % n;
                                                                                      17  output += k * input/n;
                                                                                      18  notify();
                                                                                      19 }
                                                                                      20 
                                                                                      21 
                                                                                      22 JsonObject& MovingAverage::get_configuration(JsonBuffer& buf) {
                                                                                      23  JsonObject& root = buf.createObject();
                                                                                      24  root["k"] = k;
                                                                                      25  root["n"] = n;
                                                                                      26  root["value"] = output;
                                                                                      27  return root;
                                                                                      28 }
                                                                                      29 
                                                                                      30 static const char SCHEMA[] PROGMEM = R"({
                                                                                      31  "type": "object",
                                                                                      32  "properties": {
                                                                                      33  "n": { "title": "Number of samples in average", "type": "integer" },
                                                                                      34  "k": { "title": "Multiplier", "type": "number" }
                                                                                      35  }
                                                                                      36  })";
                                                                                      37 
                                                                                      39  return FPSTR(SCHEMA);
                                                                                      40 }
                                                                                      41 
                                                                                      42 
                                                                                      43 bool MovingAverage::set_configuration(const JsonObject& config) {
                                                                                      44  String expected[] = {"k", "n"};
                                                                                      45  for (auto str : expected) {
                                                                                      46  if (!config.containsKey(str)) {
                                                                                      47  return false;
                                                                                      48  }
                                                                                      49  }
                                                                                      50  k = config["k"];
                                                                                      51  int n_new = config["n"];
                                                                                      52  // need to reset the ring buffer if size changes
                                                                                      53  if (n != n_new) {
                                                                                      54  buf.assign(n, 0);
                                                                                      55  ptr = 0;
                                                                                      56  output = 0;
                                                                                      57  }
                                                                                      58  return true;
                                                                                      59 }
                                                                                      void notify()
                                                                                      Definition: observable.cpp:3
                                                                                      - -
                                                                                      virtual bool set_configuration(const JsonObject &config) override final
                                                                                      -
                                                                                      virtual String get_config_schema() override
                                                                                      - -
                                                                                      const String config_path
                                                                                      Definition: configurable.h:29
                                                                                      -
                                                                                      virtual void set_input(float input, uint8_t inputChannel=0) override final
                                                                                      -
                                                                                      virtual String as_signalK() override final
                                                                                      - -
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override final
                                                                                      +
                                                                                      MovingAverage(int n, float k=1., String config_path="")
                                                                                      +
                                                                                      virtual void set_input(float input, uint8_t inputChannel=0) override
                                                                                      +
                                                                                      virtual bool set_configuration(const JsonObject &config) override
                                                                                      +
                                                                                      virtual String get_config_schema() override
                                                                                      + +
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override
                                                                                      + +
                                                                                      const char PAGE_index [] PROGMEM
                                                                                      Definition: index.h:2
                                                                                      diff --git a/docs/moving__average_8h.html b/docs/moving__average_8h.html index c932895d4..d84b8ee48 100644 --- a/docs/moving__average_8h.html +++ b/docs/moving__average_8h.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -100,26 +100,25 @@
                                                                                      - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + +
                                                                                      diff --git a/docs/moving__average_8h__dep__incl.md5 b/docs/moving__average_8h__dep__incl.md5 index 5821dd8f6..744be57a0 100644 --- a/docs/moving__average_8h__dep__incl.md5 +++ b/docs/moving__average_8h__dep__incl.md5 @@ -1 +1 @@ -4b4d37953e51d6c54b5e007a7375b8bc \ No newline at end of file +510e07770ab3079725c33d11f1ebc04b \ No newline at end of file diff --git a/docs/moving__average_8h__incl.map b/docs/moving__average_8h__incl.map index 83fd15821..fadff94f9 100644 --- a/docs/moving__average_8h__incl.map +++ b/docs/moving__average_8h__incl.map @@ -1,22 +1,21 @@ - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + diff --git a/docs/moving__average_8h__incl.md5 b/docs/moving__average_8h__incl.md5 index 7fe990414..956b140d8 100644 --- a/docs/moving__average_8h__incl.md5 +++ b/docs/moving__average_8h__incl.md5 @@ -1 +1 @@ -1307493947a4f8ce8ec7a2ceb561f692 \ No newline at end of file +c2c2789badd709c9e0ed03d3af0b2974 \ No newline at end of file diff --git a/docs/moving__average_8h__incl.png b/docs/moving__average_8h__incl.png index ff8609a0e..00eedeb1e 100644 Binary files a/docs/moving__average_8h__incl.png and b/docs/moving__average_8h__incl.png differ diff --git a/docs/moving__average_8h_source.html b/docs/moving__average_8h_source.html index 15af5788e..ee0827754 100644 --- a/docs/moving__average_8h_source.html +++ b/docs/moving__average_8h_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -91,17 +91,15 @@
                                                                                      moving_average.h
                                                                                      -Go to the documentation of this file.
                                                                                      1 #ifndef _moving_average_H_
                                                                                      2 #define _moving_average_H_
                                                                                      3 
                                                                                      4 #include <vector>
                                                                                      5 
                                                                                      6 #include "transform.h"
                                                                                      7 
                                                                                      8 // y = k * 1/n * \sum_k=1^n(x_k)
                                                                                      9 class MovingAverage : public SymmetricTransform<float> {
                                                                                      10 
                                                                                      11  public:
                                                                                      12  MovingAverage(String sk_path, int n, float k=1., String config_path="");
                                                                                      13  virtual void set_input(float input, uint8_t inputChannel = 0) override final;
                                                                                      14  virtual String as_signalK() override final;
                                                                                      15  virtual JsonObject& get_configuration(JsonBuffer& buf) override final;
                                                                                      16  virtual bool set_configuration(const JsonObject& config) override final;
                                                                                      17  virtual String get_config_schema() override;
                                                                                      18 
                                                                                      19  private:
                                                                                      20  std::vector<float> buf;
                                                                                      21  int ptr = 0;
                                                                                      22  const int n;
                                                                                      23  float k;
                                                                                      24 };
                                                                                      25 
                                                                                      26 #endif
                                                                                      -
                                                                                      MovingAverage(String sk_path, int n, float k=1., String config_path="")
                                                                                      - -
                                                                                      virtual bool set_configuration(const JsonObject &config) override final
                                                                                      +Go to the documentation of this file.
                                                                                      1 #ifndef _moving_average_H_
                                                                                      2 #define _moving_average_H_
                                                                                      3 
                                                                                      4 #include <vector>
                                                                                      5 
                                                                                      6 #include "transform.h"
                                                                                      7 
                                                                                      8 // y = k * 1/n * \sum_k=1^n(x_k)
                                                                                      10 
                                                                                      11  public:
                                                                                      12  MovingAverage(int n, float k=1., String config_path="");
                                                                                      13  virtual void set_input(float input, uint8_t inputChannel = 0) override;
                                                                                      14  virtual JsonObject& get_configuration(JsonBuffer& buf) override;
                                                                                      15  virtual bool set_configuration(const JsonObject& config) override;
                                                                                      16  virtual String get_config_schema() override;
                                                                                      17 
                                                                                      18  private:
                                                                                      19  std::vector<float> buf;
                                                                                      20  int ptr = 0;
                                                                                      21  const int n;
                                                                                      22  float k;
                                                                                      23 };
                                                                                      24 
                                                                                      25 #endif
                                                                                      +
                                                                                      MovingAverage(int n, float k=1., String config_path="")
                                                                                      +
                                                                                      virtual void set_input(float input, uint8_t inputChannel=0) override
                                                                                      +
                                                                                      virtual bool set_configuration(const JsonObject &config) override
                                                                                      -
                                                                                      virtual String get_config_schema() override
                                                                                      - +
                                                                                      virtual String get_config_schema() override
                                                                                      +
                                                                                      const String config_path
                                                                                      Definition: configurable.h:29
                                                                                      -
                                                                                      virtual void set_input(float input, uint8_t inputChannel=0) override final
                                                                                      -
                                                                                      virtual String as_signalK() override final
                                                                                      -
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override final
                                                                                      +
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override
                                                                                      diff --git a/docs/navtreedata.js b/docs/navtreedata.js index 2dceceef2..dcc1f8974 100644 --- a/docs/navtreedata.js +++ b/docs/navtreedata.js @@ -53,8 +53,8 @@ var NAVTREE = var NAVTREEINDEX = [ "analog__input_8cpp.html", -"class_uptime.html#a43cdcac661b684e1c746fcdf7224e68f", -"setup_8h_source.html" +"class_value_producer.html#a9d3882f6de7ef8b05e78947cf9df2697", +"signalk__output_8h_source.html" ]; var SYNCONMSG = 'click to disable panel synchronisation'; diff --git a/docs/navtreeindex0.js b/docs/navtreeindex0.js index 8b2884b45..3baa562bc 100644 --- a/docs/navtreeindex0.js +++ b/docs/navtreeindex0.js @@ -4,13 +4,13 @@ var NAVTREEINDEX0 = "analog__input_8cpp_source.html":[1,0,0,0,0], "analog__input_8h.html":[1,0,0,0,1], "analog__input_8h_source.html":[1,0,0,0,1], -"analogvoltage_8h.html":[1,0,0,3,0], -"analogvoltage_8h_source.html":[1,0,0,3,0], +"analogvoltage_8h.html":[1,0,0,4,0], +"analogvoltage_8h_source.html":[1,0,0,4,0], "annotated.html":[0,0], "class_analog_input.html":[0,0,0], "class_analog_input.html#a34942eae263f68e8f44fa3f405d057fb":[0,0,0,0], "class_analog_voltage.html":[0,0,1], -"class_analog_voltage.html#aa685c09a7c29bec4ed7b89e6317ee127":[0,0,1,0], +"class_analog_voltage.html#a22cee4790f99a391a883370cac00894a":[0,0,1,0], "class_configurable.html":[0,0,2], "class_configurable.html#a657419f13060caa20c45a41935b9d53a":[0,0,2,4], "class_configurable.html#a6e0281fe25cfbdf024bdb05147ffb52b":[0,0,2,5], @@ -19,59 +19,66 @@ var NAVTREEINDEX0 = "class_configurable.html#a8972a439fb9b734ff68d27c699640f78":[0,0,2,0], "class_configurable.html#aaa54fa6156d9c7f5848d670bd9b18aa9":[0,0,2,6], "class_configurable.html#ac2ba4044c81acc2fc6bf95cce411f6a4":[0,0,2,3], -"class_dallas_temperature_sensors.html":[0,0,3], -"class_dallas_temperature_sensors.html#a020ae149bf4372f926d4414ac5c67f5a":[0,0,3,3], -"class_dallas_temperature_sensors.html#a1e1b9cd3dd2bde0d51ef657a490881eb":[0,0,3,2], -"class_dallas_temperature_sensors.html#a778aa28e0e329028f2811c5ed71cb11d":[0,0,3,0], -"class_dallas_temperature_sensors.html#abd79995496fd66d416e6d9cd1ff56342":[0,0,3,4], -"class_dallas_temperature_sensors.html#ae30b8206143d488a4d887b4294da6bb2":[0,0,3,1], -"class_debounce.html":[0,0,4], -"class_debounce.html#a3e1dca3d133fdef71d95b58a922c478a":[0,0,4,3], -"class_debounce.html#a41ba3a24ea3490fc0717fa4d5f7fae0b":[0,0,4,1], -"class_debounce.html#a52075b35c5a7036ea7a06813a71117ea":[0,0,4,2], -"class_debounce.html#ae99846a27be1f2d4046cb5d11cb921cd":[0,0,4,0], -"class_device.html":[0,0,5], -"class_device.html#a170bb69c9bf69109815c18a70a77a875":[0,0,5,0], -"class_difference.html":[0,0,6], -"class_difference.html#a2c34de951c3653ecf75d7edff833f2e0":[0,0,6,4], -"class_difference.html#a6a9d692bfdc1c5bbabe5535d3d951834":[0,0,6,0], -"class_difference.html#abf5c7d23d414d2971ddeca8c6bf6b9a7":[0,0,6,5], -"class_difference.html#ac5b6559e3820f2f58bed5d120a440a55":[0,0,6,2], -"class_difference.html#ad4ba9de084c2ae21cda13101911ab086":[0,0,6,3], -"class_difference.html#ae997bff433d26706bf892a9e62a4f16e":[0,0,6,1], -"class_digital_input.html":[0,0,7], -"class_digital_input.html#a92b46ff35c6b0fcf13644727c0a6b61f":[0,0,7,2], -"class_digital_input.html#aa4e30fc0836ce2d0934b9eb5d507f116":[0,0,7,1], -"class_digital_input.html#ac87da1c4d7b53427d71d71b34d25c6eb":[0,0,7,0], -"class_digital_input_counter.html":[0,0,8], -"class_digital_input_counter.html#a9848278592225d90ff71b99ce940771e":[0,0,8,1], -"class_digital_input_counter.html#adde82c1aeae1f8f452b3bbb31a3114a5":[0,0,8,0], -"class_digital_input_value.html":[0,0,9], -"class_digital_input_value.html#a04759be73328ea38d11eb7ec63517761":[0,0,9,0], -"class_digital_input_value.html#a504c6c9ad6578156df7eb524f9635912":[0,0,9,1], -"class_enable.html":[0,0,10], -"class_enable.html#a12a65d666c56d9909c2a1958b7cfda40":[0,0,10,2], -"class_enable.html#a5e6385aea4a61b890368ce0b411f690c":[0,0,10,3], -"class_enable.html#a62d0a37863086502e168bfa8ab94ebc0":[0,0,10,0], -"class_enable.html#a62ea021bf8d986150be346977a8eede3":[0,0,10,1], -"class_free_mem.html":[0,0,12], -"class_free_mem.html#a114359cfbb1cffce40e545bf00889757":[0,0,12,1], -"class_free_mem.html#aa3487ef2dff96a33778881da391b2129":[0,0,12,0], -"class_frequency.html":[0,0,13], -"class_frequency.html#a2f0884295031b687dadd09add8acb877":[0,0,13,2], -"class_frequency.html#a40efa67350036f8bdc07be9fd4a94e42":[0,0,13,4], -"class_frequency.html#a52099d6dbece2eab9ec8b053ab28cdf4":[0,0,13,5], -"class_frequency.html#a8854a4f94e59b2f057655e18a62131ab":[0,0,13,6], -"class_frequency.html#a8c800e44383c952c3afb3653713e9f82":[0,0,13,1], -"class_frequency.html#a93e3f28917f7faa7411b95745171f6af":[0,0,13,3], -"class_frequency.html#acea1b0044fbbbdf51eaaea887e6b0d39":[0,0,13,0], -"class_g_n_s_s_position.html":[0,0,14], -"class_g_n_s_s_position.html#a070948f5a4729aa16c2943ba90e6760e":[0,0,14,1], -"class_g_n_s_s_position.html#a0b1570b2bf0da3deb2f4d20a9bb9ea71":[0,0,14,5], -"class_g_n_s_s_position.html#a142b7c97d1ff603c513c8e63598c4aef":[0,0,14,4], -"class_g_n_s_s_position.html#a261e90fc05b828e9539c6622ec3aafe3":[0,0,14,3], -"class_g_n_s_s_position.html#acef3d8d8eefb6e60cc21096d3cad1cbd":[0,0,14,0], -"class_g_n_s_s_position.html#ae8a6a06700255194de45b4188fe6d08a":[0,0,14,2], +"class_curve_interpolator.html":[0,0,3], +"class_curve_interpolator.html#a09bdf144307f1264c36d5afaea5c96a3":[0,0,3,1], +"class_curve_interpolator.html#a274cd3426b3e379db1538c71bebad9c8":[0,0,3,5], +"class_curve_interpolator.html#a314df8dc54dc73798197c9c9ce6859ac":[0,0,3,2], +"class_curve_interpolator.html#a6e4fcb3bb046ecacbe1855d74cdc47bb":[0,0,3,7], +"class_curve_interpolator.html#a6f9c593782d05c95ba92810b8f70f287":[0,0,3,4], +"class_curve_interpolator.html#acfda195c475a261d2e2a3af365fd6c19":[0,0,3,6], +"class_curve_interpolator.html#afb1dbb8e85015e2909dff8495875f8f5":[0,0,3,3], +"class_curve_interpolator_1_1_sample.html":[0,0,3,0], +"class_curve_interpolator_1_1_sample.html#a1cf03a106b3a98056fdb448df6fb9c17":[0,0,3,0,3], +"class_curve_interpolator_1_1_sample.html#a43dd7cc1fd950a03a6674056194e935b":[0,0,3,0,4], +"class_curve_interpolator_1_1_sample.html#a5f69567a227e29b795b68e4310a9da40":[0,0,3,0,2], +"class_curve_interpolator_1_1_sample.html#a7ad23733bf31c9a8ccbe9689b55f6d67":[0,0,3,0,0], +"class_curve_interpolator_1_1_sample.html#aa2ed35560a823ced306ef02a50d95cac":[0,0,3,0,1], +"class_curve_interpolator_1_1_sample.html#ada14a8de02c7cc737db52aa3a54a330b":[0,0,3,0,5], +"class_dallas_temperature_sensors.html":[0,0,4], +"class_dallas_temperature_sensors.html#a020ae149bf4372f926d4414ac5c67f5a":[0,0,4,3], +"class_dallas_temperature_sensors.html#a1e1b9cd3dd2bde0d51ef657a490881eb":[0,0,4,2], +"class_dallas_temperature_sensors.html#a778aa28e0e329028f2811c5ed71cb11d":[0,0,4,0], +"class_dallas_temperature_sensors.html#abd79995496fd66d416e6d9cd1ff56342":[0,0,4,4], +"class_dallas_temperature_sensors.html#ae30b8206143d488a4d887b4294da6bb2":[0,0,4,1], +"class_debounce.html":[0,0,5], +"class_debounce.html#a1cf5653ecaffe84d03202cd9f002bba4":[0,0,5,0], +"class_debounce.html#a3e1dca3d133fdef71d95b58a922c478a":[0,0,5,3], +"class_debounce.html#a41ba3a24ea3490fc0717fa4d5f7fae0b":[0,0,5,1], +"class_debounce.html#a52075b35c5a7036ea7a06813a71117ea":[0,0,5,2], +"class_device.html":[0,0,6], +"class_device.html#a170bb69c9bf69109815c18a70a77a875":[0,0,6,0], +"class_difference.html":[0,0,7], +"class_difference.html#a432ef87751c6bee8e5dadc610dfcb4ff":[0,0,7,4], +"class_difference.html#a57e134a00cd6688d147f93c662520040":[0,0,7,3], +"class_difference.html#a70f6832fd0b14c5eb5c2c05188757b72":[0,0,7,2], +"class_difference.html#ab37fbe4fe6592f7591a124c1b90f8f48":[0,0,7,0], +"class_difference.html#ac5b6559e3820f2f58bed5d120a440a55":[0,0,7,1], +"class_digital_input.html":[0,0,8], +"class_digital_input.html#a92b46ff35c6b0fcf13644727c0a6b61f":[0,0,8,2], +"class_digital_input.html#aa4e30fc0836ce2d0934b9eb5d507f116":[0,0,8,1], +"class_digital_input.html#ac87da1c4d7b53427d71d71b34d25c6eb":[0,0,8,0], +"class_digital_input_counter.html":[0,0,9], +"class_digital_input_counter.html#a9848278592225d90ff71b99ce940771e":[0,0,9,1], +"class_digital_input_counter.html#adde82c1aeae1f8f452b3bbb31a3114a5":[0,0,9,0], +"class_digital_input_value.html":[0,0,10], +"class_digital_input_value.html#a04759be73328ea38d11eb7ec63517761":[0,0,10,0], +"class_digital_input_value.html#a504c6c9ad6578156df7eb524f9635912":[0,0,10,1], +"class_enable.html":[0,0,11], +"class_enable.html#a12a65d666c56d9909c2a1958b7cfda40":[0,0,11,2], +"class_enable.html#a5e6385aea4a61b890368ce0b411f690c":[0,0,11,4], +"class_enable.html#a62d0a37863086502e168bfa8ab94ebc0":[0,0,11,0], +"class_enable.html#a62ea021bf8d986150be346977a8eede3":[0,0,11,1], +"class_enable.html#ab4ca14d496a85788896df6c78143994c":[0,0,11,3], +"class_free_mem.html":[0,0,13], +"class_free_mem.html#a114359cfbb1cffce40e545bf00889757":[0,0,13,1], +"class_free_mem.html#aa3487ef2dff96a33778881da391b2129":[0,0,13,0], +"class_frequency.html":[0,0,14], +"class_frequency.html#a0d6846952b3295809421ac18633e397e":[0,0,14,1], +"class_frequency.html#a87d16c67ce064b9b0f671747808c3963":[0,0,14,4], +"class_frequency.html#a93e3f28917f7faa7411b95745171f6af":[0,0,14,2], +"class_frequency.html#a99df388f446a8aa46f465fe464023f55":[0,0,14,5], +"class_frequency.html#abbaff61b74433bb8a990685be24c3c8b":[0,0,14,0], +"class_frequency.html#ae121e43d37643d390bc607def68e0e02":[0,0,14,3], "class_g_p_g_g_a_sentence_parser.html":[0,0,15], "class_g_p_g_g_a_sentence_parser.html#a1a3a77042194bd6ef59b7960c0f35fd1":[0,0,15,0], "class_g_p_g_g_a_sentence_parser.html#a6bce986c2fb84af7c54477cd7d43f1b1":[0,0,15,1], @@ -97,157 +104,150 @@ var NAVTREEINDEX0 = "class_h_t_t_p_server.html#ac854fa80c31eba36ad3f2dd5f02d4a14":[0,0,19,6], "class_h_t_t_p_server.html#adacba9a090d5b0465da86dd6c82953a9":[0,0,19,0], "class_h_t_t_p_server.html#af09066b05417f9a9ce9f1cd8e5ad9e18":[0,0,19,1], -"class_i_p_addr_dev.html":[0,0,23], -"class_i_p_addr_dev.html#aad770ae7db264bfc4bc33d3d1dca71fb":[0,0,23,1], -"class_i_p_addr_dev.html#afd8dec59375d39cf785819f8ea3685a1":[0,0,23,0], +"class_i_p_addr_dev.html":[0,0,22], +"class_i_p_addr_dev.html#aad770ae7db264bfc4bc33d3d1dca71fb":[0,0,22,1], +"class_i_p_addr_dev.html#afd8dec59375d39cf785819f8ea3685a1":[0,0,22,0], "class_integer_device.html":[0,0,20], "class_integer_device.html#a57f03b477830429220d0f48604bcc6f8":[0,0,20,0], "class_integrator.html":[0,0,21], -"class_integrator.html#a1b4cfd7f598d8456a582865a88d768e7":[0,0,21,4], -"class_integrator.html#a3d6851037fee19338eac9ea2441f51ef":[0,0,21,0], -"class_integrator.html#a513afaf30460fee68abd295780527d05":[0,0,21,3], -"class_integrator.html#a7fb38d2d19aa3e918dbee34b9096f7a6":[0,0,21,6], -"class_integrator.html#aa53205d3211635dad0a035adf5d511a6":[0,0,21,5], -"class_integrator.html#ad0444330433ed9e46f55050da21f0ea5":[0,0,21,1], -"class_integrator.html#ad52503a30ef9abf171209988d256ec22":[0,0,21,2], -"class_interpolate.html":[0,0,22], -"class_interpolate.html#a1af1c1b5f19dbddae28827b771a69cbf":[0,0,22,1], -"class_interpolate.html#a403cf307fbec7e985b8b736f8d25cd43":[0,0,22,2], -"class_interpolate.html#a428a74bba411c87ffbe5bedefb383733":[0,0,22,6], -"class_interpolate.html#a628bd039d46e3a5a70730e9d04914154":[0,0,22,8], -"class_interpolate.html#a7e1899424a81663d61951d976518e400":[0,0,22,5], -"class_interpolate.html#ad1b5b270b694b351248a78186769a114":[0,0,22,7], -"class_interpolate.html#ad8ce06fa260129a286e01650c5b47ea9":[0,0,22,4], -"class_interpolate.html#ade58a8591eb935cb5577ed40435fb4d4":[0,0,22,3], -"class_interpolate_1_1_sample.html":[0,0,22,0], -"class_interpolate_1_1_sample.html#a1cf03a106b3a98056fdb448df6fb9c17":[0,0,22,0,3], -"class_interpolate_1_1_sample.html#a25964bd499e52498f179cd07a7f3876c":[0,0,22,0,2], -"class_interpolate_1_1_sample.html#a42fda1c13a9f2b8106e65ea85be62b60":[0,0,22,0,4], -"class_interpolate_1_1_sample.html#a7e8ee6d431c14a31b87b8fe6607178e1":[0,0,22,0,0], -"class_interpolate_1_1_sample.html#ab243b190bf17260998dbff5878e3955c":[0,0,22,0,5], -"class_interpolate_1_1_sample.html#ada1514b7936ed3e5f7d1a941c3672d1c":[0,0,22,0,1], -"class_led_blinker.html":[0,0,24], -"class_led_blinker.html#a0cdd9d7e8cc453edd234ce2785ce28ea":[0,0,24,2], -"class_led_blinker.html#a394a529a52a7ee1e0321498de017f788":[0,0,24,5], -"class_led_blinker.html#a7e774b60394cf16d0be68cfd38197199":[0,0,24,0], -"class_led_blinker.html#a9c0b4f9aaacc14ab555df6abb43e8ae5":[0,0,24,6], -"class_led_blinker.html#aa9870e4cb1a35a175edcd710142b8595":[0,0,24,4], -"class_led_blinker.html#ab0f765b76f30406a7b53d4360c897d64":[0,0,24,3], -"class_led_blinker.html#af00270a463b74c855dfc95d98c7bfd7e":[0,0,24,1], -"class_linear.html":[0,0,25], -"class_linear.html#a0135f75a32f4ee0ae76383f10bb5e74b":[0,0,25,4], -"class_linear.html#a03c3950e9baabef8f54eb31d65b752fd":[0,0,25,1], -"class_linear.html#a084b09a0486056030c80b0f4dfb7cb1f":[0,0,25,0], -"class_linear.html#a8d3a1f72738efeb83ed913590105e615":[0,0,25,3], -"class_linear.html#aca76127ec02b9e354b0f891d73f24b37":[0,0,25,5], -"class_linear.html#afc896eaed1df40409ea3ce17d81929cc":[0,0,25,2], -"class_moving_average.html":[0,0,26], -"class_moving_average.html#a0ffb04a59f74c1e58920de64a8136e5f":[0,0,26,0], -"class_moving_average.html#a36b9fbfa38ae531a86efa19ccda45e99":[0,0,26,3], -"class_moving_average.html#ac8d53bded62d48de3533bea218e86d66":[0,0,26,4], -"class_moving_average.html#ac953bfbae65b9acde7a2a770b029c5bd":[0,0,26,5], -"class_moving_average.html#ad6f06b147a017e528e3d8b991cec2763":[0,0,26,2], -"class_moving_average.html#afb4db64f5dbaae11bc4d3cd09b8b8af0":[0,0,26,1], -"class_n_m_e_a_parser.html":[0,0,29], -"class_n_m_e_a_parser.html#a0f7e6a8f7ee6d7f2ab69a0b05341861b":[0,0,29,2], -"class_n_m_e_a_parser.html#a438b3fd8f8587b55a3785656651f73a6":[0,0,29,1], -"class_n_m_e_a_parser.html#acf7b68ddc8fc466324abede2dd592ad0":[0,0,29,0], -"class_networking.html":[0,0,27], -"class_networking.html#a207f306c10b8f65ca0904cc26a9ef15c":[0,0,27,5], -"class_networking.html#a253025ed2a3c36eb998e7b900155359e":[0,0,27,2], -"class_networking.html#a2b8f2f52b332dc0af375113a64881a8a":[0,0,27,3], -"class_networking.html#a4b8c4d193f59be9aea6b09fd36b4f956":[0,0,27,0], -"class_networking.html#a500aa01c7d7da3d823a43c40212353f5":[0,0,27,7], -"class_networking.html#a59d475a2f12b88ef8334274a9a0b1cee":[0,0,27,6], -"class_networking.html#a7a3cac2e878aa2c513451f235c70aff7":[0,0,27,4], -"class_networking.html#a94815dd34af734e9fc3839cbe6279355":[0,0,27,8], -"class_networking.html#ae4b12924970227730df3377144301a7c":[0,0,27,1], -"class_numeric_device.html":[0,0,30], -"class_numeric_device.html#a0e1774421ac0182e58dd259521ad76bd":[0,0,30,0], -"class_observable.html":[0,0,31], -"class_observable.html#a099bf851e05bb8c1a25e83f2a1389e58":[0,0,31,1], -"class_observable.html#af72ed9c9cf7157a33caad4b930232e69":[0,0,31,0], -"class_observable_value.html":[0,0,32], -"class_observable_value.html#a51cf25d4951d3214021da0c25985838d":[0,0,32,3], -"class_observable_value.html#a900b99ef37a8d31e84c48a97b8eff10d":[0,0,32,2], -"class_observable_value.html#a92bc2f2646592dc209717bb546d86a2c":[0,0,32,0], -"class_observable_value.html#adaf97ca440787ba883915603056f002b":[0,0,32,1], -"class_one_wire_temperature.html":[0,0,33], -"class_one_wire_temperature.html#a4331b2b91d6c7d000454e741cdce9d0a":[0,0,33,2], -"class_one_wire_temperature.html#a4a1058669383f507ed70bd46f9f0d2f0":[0,0,33,3], -"class_one_wire_temperature.html#a6ceb584282ee0949f76a35ca5ae40a51":[0,0,33,0], -"class_one_wire_temperature.html#a83bce20a52e396dbd97a43a6e72b2824":[0,0,33,4], -"class_one_wire_temperature.html#a86817f083dfb5e9373b48d8fd1f8d165":[0,0,33,1], -"class_p_s_t_i030_sentence_parser.html":[0,0,36], -"class_p_s_t_i030_sentence_parser.html#aa368abaa7d559a9a0893d3846a01fdb7":[0,0,36,0], -"class_p_s_t_i030_sentence_parser.html#adf5b386bffd76b1055d70aa59615d493":[0,0,36,2], -"class_p_s_t_i030_sentence_parser.html#aee500dadf0a5ff089d8281c642cdb9bc":[0,0,36,1], -"class_p_s_t_i032_sentence_parser.html":[0,0,37], -"class_p_s_t_i032_sentence_parser.html#ac25a7c9f31987ce7a01ce499f045a6a9":[0,0,37,1], -"class_p_s_t_i032_sentence_parser.html#acbe297f07ea6729d870ec8222535b1ce":[0,0,37,2], -"class_p_s_t_i032_sentence_parser.html#af44c303ec78c3a24a18eacb265cee013":[0,0,37,0], -"class_p_s_t_i_sentence_parser.html":[0,0,38], -"class_p_s_t_i_sentence_parser.html#a308af730f992717a0d1e84416396ae38":[0,0,38,1], -"class_p_s_t_i_sentence_parser.html#a4bb2246e947c443d5bca3706e2853cd0":[0,0,38,0], -"class_p_s_t_i_sentence_parser.html#a94f6b75ee9ad9965c4a5cf27e44a12e5":[0,0,38,2], -"class_p_s_t_i_sentence_parser.html#add6764d7c0579101840b82a86f6bd2ef":[0,0,38,3], -"class_passthrough.html":[0,0,34], -"class_passthrough.html#a401a7f308b76eac7ed7d90a618d997db":[0,0,34,6], -"class_passthrough.html#a63f4217398589b274a2a2c4b7f48c8e5":[0,0,34,1], -"class_passthrough.html#aa19d8446db1373f48ca644f3463580a8":[0,0,34,3], -"class_passthrough.html#acc3e3b30c646d1e49bc9b003e7edb97e":[0,0,34,2], -"class_passthrough.html#ad4c60e8f46012deb4643f2ad7871df72":[0,0,34,0], -"class_passthrough.html#ae3a80dd8daac718da3c75eb9eb45197a":[0,0,34,5], -"class_passthrough.html#aecaa7961190394983b550495da47ee9c":[0,0,34,4], -"class_s_k_delta.html":[0,0,42], -"class_s_k_delta.html#a3d4825fc72903feaebe635dc643d2b16":[0,0,42,0], -"class_s_k_delta.html#a74ab20a661a4f80a336b50fccc4bd9bc":[0,0,42,2], -"class_s_k_delta.html#ab1592b494b343964703102a4797d3bbc":[0,0,42,3], -"class_s_k_delta.html#acd3c98ae0fe75f92d5d9c1e6a216a8dd":[0,0,42,4], -"class_s_k_delta.html#afacfa3952be6179d0e96960575f393a8":[0,0,42,1], -"class_sens_e_s_p_app.html":[0,0,39], -"class_sens_e_s_p_app.html#a092f600dda1a51189bc2c9fd5de360e8":[0,0,39,0], -"class_sens_e_s_p_app.html#a0a499dc1d52fa2115d314149bb41259f":[0,0,39,2], -"class_sens_e_s_p_app.html#a0f7605a2c63a3ed250e1c742608956b2":[0,0,39,9], -"class_sens_e_s_p_app.html#a15f6e0569533b417e9724540d758c884":[0,0,39,8], -"class_sens_e_s_p_app.html#a3d70c22bfd1bf842f6daa83ab2f50f79":[0,0,39,5], -"class_sens_e_s_p_app.html#a5c4d4d6581822017e942421c833f27f3":[0,0,39,4], -"class_sens_e_s_p_app.html#a8875ca27de5c10c1b2931c3c41e1f9b5":[0,0,39,3], -"class_sens_e_s_p_app.html#ac068882b9e9f6092da0818c5e42b48b8":[0,0,39,6], -"class_sens_e_s_p_app.html#ac53d90429563f50e4aca5224a1e85afd":[0,0,39,1], -"class_sens_e_s_p_app.html#adee3f53bc75ae6d5d73a8707dd75600e":[0,0,39,7], -"class_sentence_parser.html":[0,0,40], -"class_sentence_parser.html#a20be85c734aab87cf783aaa6a999a29a":[0,0,40,0], -"class_sentence_parser.html#a74ed90a9386887e9ff2c13dbb12a556e":[0,0,40,2], -"class_sentence_parser.html#a77a87f5f20ac471591d2110856e8232b":[0,0,40,4], -"class_sentence_parser.html#aa079d8ee1b96e2f03a9c7a1f2ddf7519":[0,0,40,3], -"class_sentence_parser.html#ad92490af20d92f942b2e52abfc26007f":[0,0,40,1], -"class_signal_k_source.html":[0,0,41], -"class_signal_k_source.html#a664b8607effbf53c9443ec7acc49e505":[0,0,41,3], -"class_signal_k_source.html#a859f4e84f2d96b019ccaf5fdcba35661":[0,0,41,2], -"class_signal_k_source.html#aadf429c623392e8717957bc3c09852d0":[0,0,41,1], -"class_signal_k_source.html#ac9416b56a4a8fc0e741ec537b2411177":[0,0,41,4], -"class_signal_k_source.html#af2ba130c1d59658c144ac3841d967ac8":[0,0,41,0], -"class_string_device.html":[0,0,43], -"class_string_device.html#a6aca962377f5ac96ff960f9bcb7ff948":[0,0,43,0], -"class_symmetric_transform.html":[0,0,44], -"class_symmetric_transform.html#add5f3e15e1956bde08508240e1031722":[0,0,44,0], -"class_symmetric_transform.html#aefde059b7d9b753b11a33dd4bac6972b":[0,0,44,1], -"class_system_hz.html":[0,0,45], -"class_system_hz.html#a2f2337dcbe45cce879392f28579e233d":[0,0,45,0], -"class_system_hz.html#aafe9250142a6c4b234f3d8e64771ce95":[0,0,45,1], -"class_temperature_interpreter.html":[0,0,46], -"class_temperature_interpreter.html#a261da73de9ecca813741fc0f69a99053":[0,0,46,0], +"class_integrator.html#a1b4cfd7f598d8456a582865a88d768e7":[0,0,21,3], +"class_integrator.html#a513afaf30460fee68abd295780527d05":[0,0,21,2], +"class_integrator.html#a787de1dd45b1ced5607e6209f0e01dd0":[0,0,21,0], +"class_integrator.html#a7fb38d2d19aa3e918dbee34b9096f7a6":[0,0,21,5], +"class_integrator.html#aa53205d3211635dad0a035adf5d511a6":[0,0,21,4], +"class_integrator.html#ad52503a30ef9abf171209988d256ec22":[0,0,21,1], +"class_led_blinker.html":[0,0,23], +"class_led_blinker.html#a0cdd9d7e8cc453edd234ce2785ce28ea":[0,0,23,2], +"class_led_blinker.html#a394a529a52a7ee1e0321498de017f788":[0,0,23,5], +"class_led_blinker.html#a7e774b60394cf16d0be68cfd38197199":[0,0,23,0], +"class_led_blinker.html#a9c0b4f9aaacc14ab555df6abb43e8ae5":[0,0,23,6], +"class_led_blinker.html#aa9870e4cb1a35a175edcd710142b8595":[0,0,23,4], +"class_led_blinker.html#ab0f765b76f30406a7b53d4360c897d64":[0,0,23,3], +"class_led_blinker.html#af00270a463b74c855dfc95d98c7bfd7e":[0,0,23,1], +"class_linear.html":[0,0,24], +"class_linear.html#a057c8519f6eb7dd28392073010a2cfc3":[0,0,24,4], +"class_linear.html#a98f7cf12073c2aa89bbb7f89b13f6299":[0,0,24,2], +"class_linear.html#ab12c626261e763892d4253f48478771a":[0,0,24,3], +"class_linear.html#ad9477f54820b5a234339d342836e9869":[0,0,24,0], +"class_linear.html#afc896eaed1df40409ea3ce17d81929cc":[0,0,24,1], +"class_moving_average.html":[0,0,25], +"class_moving_average.html#a1cac9948f8ca32b8d4446e419b09cccb":[0,0,25,2], +"class_moving_average.html#a22a08de98351ed805b49beecb234ab0b":[0,0,25,4], +"class_moving_average.html#a9f02a3c253c6456e4d5c063ea5f6d364":[0,0,25,3], +"class_moving_average.html#ad6f06b147a017e528e3d8b991cec2763":[0,0,25,1], +"class_moving_average.html#adda127d69bc5441a3f4ca98d51c87f4b":[0,0,25,0], +"class_n_m_e_a_parser.html":[0,0,28], +"class_n_m_e_a_parser.html#a0f7e6a8f7ee6d7f2ab69a0b05341861b":[0,0,28,2], +"class_n_m_e_a_parser.html#a438b3fd8f8587b55a3785656651f73a6":[0,0,28,1], +"class_n_m_e_a_parser.html#acf7b68ddc8fc466324abede2dd592ad0":[0,0,28,0], +"class_networking.html":[0,0,26], +"class_networking.html#a207f306c10b8f65ca0904cc26a9ef15c":[0,0,26,5], +"class_networking.html#a253025ed2a3c36eb998e7b900155359e":[0,0,26,2], +"class_networking.html#a2b8f2f52b332dc0af375113a64881a8a":[0,0,26,3], +"class_networking.html#a4b8c4d193f59be9aea6b09fd36b4f956":[0,0,26,0], +"class_networking.html#a500aa01c7d7da3d823a43c40212353f5":[0,0,26,7], +"class_networking.html#a59d475a2f12b88ef8334274a9a0b1cee":[0,0,26,6], +"class_networking.html#a7a3cac2e878aa2c513451f235c70aff7":[0,0,26,4], +"class_networking.html#a94815dd34af734e9fc3839cbe6279355":[0,0,26,8], +"class_networking.html#ae4b12924970227730df3377144301a7c":[0,0,26,1], +"class_numeric_device.html":[0,0,29], +"class_numeric_device.html#a0e1774421ac0182e58dd259521ad76bd":[0,0,29,0], +"class_observable.html":[0,0,30], +"class_observable.html#a099bf851e05bb8c1a25e83f2a1389e58":[0,0,30,1], +"class_observable.html#af72ed9c9cf7157a33caad4b930232e69":[0,0,30,0], +"class_observable_value.html":[0,0,31], +"class_observable_value.html#a51cf25d4951d3214021da0c25985838d":[0,0,31,3], +"class_observable_value.html#a900b99ef37a8d31e84c48a97b8eff10d":[0,0,31,2], +"class_observable_value.html#a92bc2f2646592dc209717bb546d86a2c":[0,0,31,0], +"class_observable_value.html#adaf97ca440787ba883915603056f002b":[0,0,31,1], +"class_one_wire_temperature.html":[0,0,32], +"class_one_wire_temperature.html#a4331b2b91d6c7d000454e741cdce9d0a":[0,0,32,2], +"class_one_wire_temperature.html#a4a1058669383f507ed70bd46f9f0d2f0":[0,0,32,3], +"class_one_wire_temperature.html#a6ceb584282ee0949f76a35ca5ae40a51":[0,0,32,0], +"class_one_wire_temperature.html#a83bce20a52e396dbd97a43a6e72b2824":[0,0,32,4], +"class_one_wire_temperature.html#a86817f083dfb5e9373b48d8fd1f8d165":[0,0,32,1], +"class_p_s_t_i030_sentence_parser.html":[0,0,34], +"class_p_s_t_i030_sentence_parser.html#aa368abaa7d559a9a0893d3846a01fdb7":[0,0,34,0], +"class_p_s_t_i030_sentence_parser.html#adf5b386bffd76b1055d70aa59615d493":[0,0,34,2], +"class_p_s_t_i030_sentence_parser.html#aee500dadf0a5ff089d8281c642cdb9bc":[0,0,34,1], +"class_p_s_t_i032_sentence_parser.html":[0,0,35], +"class_p_s_t_i032_sentence_parser.html#ac25a7c9f31987ce7a01ce499f045a6a9":[0,0,35,1], +"class_p_s_t_i032_sentence_parser.html#acbe297f07ea6729d870ec8222535b1ce":[0,0,35,2], +"class_p_s_t_i032_sentence_parser.html#af44c303ec78c3a24a18eacb265cee013":[0,0,35,0], +"class_p_s_t_i_sentence_parser.html":[0,0,36], +"class_p_s_t_i_sentence_parser.html#a308af730f992717a0d1e84416396ae38":[0,0,36,1], +"class_p_s_t_i_sentence_parser.html#a4bb2246e947c443d5bca3706e2853cd0":[0,0,36,0], +"class_p_s_t_i_sentence_parser.html#a94f6b75ee9ad9965c4a5cf27e44a12e5":[0,0,36,2], +"class_p_s_t_i_sentence_parser.html#add6764d7c0579101840b82a86f6bd2ef":[0,0,36,3], +"class_s_k_delta.html":[0,0,39], +"class_s_k_delta.html#a3d4825fc72903feaebe635dc643d2b16":[0,0,39,0], +"class_s_k_delta.html#a74ab20a661a4f80a336b50fccc4bd9bc":[0,0,39,2], +"class_s_k_delta.html#ab1592b494b343964703102a4797d3bbc":[0,0,39,3], +"class_s_k_delta.html#acd3c98ae0fe75f92d5d9c1e6a216a8dd":[0,0,39,4], +"class_s_k_delta.html#afacfa3952be6179d0e96960575f393a8":[0,0,39,1], +"class_s_k_emitter.html":[0,0,40], +"class_s_k_emitter.html#a06dbe70e930074437b12b86ac4e2464c":[0,0,40,4], +"class_s_k_emitter.html#a670348fb1ef1bf3d5e1ba49660fc15d9":[0,0,40,3], +"class_s_k_emitter.html#aa08f537c7d7b1782fea4d381a65cf521":[0,0,40,1], +"class_s_k_emitter.html#ab619d4a66c7683bf06350809e8c2153f":[0,0,40,2], +"class_s_k_emitter.html#aeba0ccd27a8b6bad1e2ddbf2603a5d8d":[0,0,40,0], +"class_s_k_output.html":[0,0,41], +"class_s_k_output.html#a07b3524ca9ffa1dff03f4bf522d9e3d2":[0,0,41,2], +"class_s_k_output.html#a0f29018517bcb51943dae1dd7bbace0a":[0,0,41,3], +"class_s_k_output.html#a1020f0eb3e0eb6bc10f57034c7fbc0c6":[0,0,41,4], +"class_s_k_output.html#a406e7e56220dd41bd567c56c0e6b9a4d":[0,0,41,5], +"class_s_k_output.html#a43d76eef72e8dad90ee13a001c265be8":[0,0,41,6], +"class_s_k_output.html#a811a99c30626b6840000b0c152aa1f37":[0,0,41,1], +"class_s_k_output.html#a88f9638dd4779818b41a62738ba44876":[0,0,41,0], +"class_s_k_output_position.html":[0,0,42], +"class_s_k_output_position.html#a00764a4cad14b5a2ccb6a6c484552229":[0,0,42,4], +"class_s_k_output_position.html#a1296489a2e57b3ee5740b4f7f1cca6e2":[0,0,42,2], +"class_s_k_output_position.html#a1e1dfc32c80fe7e541b9342ef62275b9":[0,0,42,3], +"class_s_k_output_position.html#a84591bf7fb62356a76b0a6838eb19aa6":[0,0,42,0], +"class_s_k_output_position.html#a8738584e0866f15b75748e902834c547":[0,0,42,1], +"class_s_k_output_time.html":[0,0,43], +"class_s_k_output_time.html#a03982e7159ac7e6d44b8f7c6976617c4":[0,0,43,3], +"class_s_k_output_time.html#a09b9f813788470bd06891f34ba58d84b":[0,0,43,1], +"class_s_k_output_time.html#a41ad61c700a444916873e908612eca63":[0,0,43,4], +"class_s_k_output_time.html#aa283f508ef59103626c835cd37b9bfb3":[0,0,43,2], +"class_s_k_output_time.html#ab77e9bdfeb69fd37c6fc87ac247146e4":[0,0,43,0], +"class_sens_e_s_p_app.html":[0,0,37], +"class_sens_e_s_p_app.html#a092f600dda1a51189bc2c9fd5de360e8":[0,0,37,0], +"class_sens_e_s_p_app.html#a0f7605a2c63a3ed250e1c742608956b2":[0,0,37,7], +"class_sens_e_s_p_app.html#a15f6e0569533b417e9724540d758c884":[0,0,37,6], +"class_sens_e_s_p_app.html#a3d70c22bfd1bf842f6daa83ab2f50f79":[0,0,37,3], +"class_sens_e_s_p_app.html#a8875ca27de5c10c1b2931c3c41e1f9b5":[0,0,37,2], +"class_sens_e_s_p_app.html#ac068882b9e9f6092da0818c5e42b48b8":[0,0,37,4], +"class_sens_e_s_p_app.html#ac53d90429563f50e4aca5224a1e85afd":[0,0,37,1], +"class_sens_e_s_p_app.html#adee3f53bc75ae6d5d73a8707dd75600e":[0,0,37,5], +"class_sentence_parser.html":[0,0,38], +"class_sentence_parser.html#a20be85c734aab87cf783aaa6a999a29a":[0,0,38,0], +"class_sentence_parser.html#a74ed90a9386887e9ff2c13dbb12a556e":[0,0,38,2], +"class_sentence_parser.html#a77a87f5f20ac471591d2110856e8232b":[0,0,38,4], +"class_sentence_parser.html#aa079d8ee1b96e2f03a9c7a1f2ddf7519":[0,0,38,3], +"class_sentence_parser.html#ad92490af20d92f942b2e52abfc26007f":[0,0,38,1], +"class_string_device.html":[0,0,44], +"class_string_device.html#a6aca962377f5ac96ff960f9bcb7ff948":[0,0,44,0], +"class_symmetric_transform.html":[0,0,45], +"class_symmetric_transform.html#a77383aeb8a2dc0e27a2fbc24b451bc90":[0,0,45,0], +"class_system_hz.html":[0,0,46], +"class_system_hz.html#a2f2337dcbe45cce879392f28579e233d":[0,0,46,0], +"class_system_hz.html#aafe9250142a6c4b234f3d8e64771ce95":[0,0,46,1], "class_time_string.html":[0,0,47], -"class_time_string.html#a266d69d7194eb2c4c3bcd1bbc7e5251c":[0,0,47,3], -"class_time_string.html#a4fbc04b63761975f99f6a812501da0b1":[0,0,47,4], -"class_time_string.html#a918b15a7599ec68ad8494ce77b08bde1":[0,0,47,5], -"class_time_string.html#a9f4690ed5017c87671cff921855ab473":[0,0,47,0], -"class_time_string.html#adf45aade28b1e60657253aefe9a1b6f4":[0,0,47,2], -"class_time_string.html#af290f6820906cba8d628ac04aad09378":[0,0,47,1], +"class_time_string.html#a631583475f42183fdc5cd02914a26320":[0,0,47,1], +"class_time_string.html#adc18ed47c4b6d88acceec81741aab5c3":[0,0,47,0], "class_transform.html":[0,0,48], -"class_transform.html#a44b7bcef8cc3b89fd6bbdb6a2bd98593":[0,0,48,0], +"class_transform.html#a764037842596e71f15621e3732dac75a":[0,0,48,0], +"class_transform.html#a7721846cbfe5b3d95c6f1f40cb387c5d":[0,0,48,1], "class_transform_base.html":[0,0,49], -"class_transform_base.html#ac5499a469190bd7d6efcc5bbec4f49d7":[0,0,49,0], -"class_uptime.html":[0,0,50] +"class_transform_base.html#a4f28a4ec27046ac3ef1546eda4b5b43b":[0,0,49,0], +"class_uptime.html":[0,0,50], +"class_uptime.html#a43cdcac661b684e1c746fcdf7224e68f":[0,0,50,1], +"class_uptime.html#a677ab855187348527ccdb0725552e02a":[0,0,50,0], +"class_value_consumer.html":[0,0,51], +"class_value_consumer.html#a6adf62d8d87ffa3ce70bb85379a68715":[0,0,51,0], +"class_value_consumer.html#a7bf920e5ad5f171ec6e2aeda056ff01f":[0,0,51,1], +"class_value_producer.html":[0,0,52], +"class_value_producer.html#a0ef05992883120f7202c14fd8e577103":[0,0,52,0], +"class_value_producer.html#a1669282467997608ce6164fe4d729bb2":[0,0,52,1] }; diff --git a/docs/navtreeindex1.js b/docs/navtreeindex1.js index 38f1dbf46..23d278d67 100644 --- a/docs/navtreeindex1.js +++ b/docs/navtreeindex1.js @@ -1,25 +1,16 @@ var NAVTREEINDEX1 = { -"class_uptime.html#a43cdcac661b684e1c746fcdf7224e68f":[0,0,50,1], -"class_uptime.html#a677ab855187348527ccdb0725552e02a":[0,0,50,0], -"class_value_consumer.html":[0,0,51], -"class_value_consumer.html#a6adf62d8d87ffa3ce70bb85379a68715":[0,0,51,0], -"class_value_consumer.html#a7bf920e5ad5f171ec6e2aeda056ff01f":[0,0,51,1], -"class_value_producer.html":[0,0,52], -"class_value_producer.html#a0ef05992883120f7202c14fd8e577103":[0,0,52,0], -"class_value_producer.html#a1669282467997608ce6164fe4d729bb2":[0,0,52,1], -"class_value_producer.html#a64af7a373036743d912876475c566045":[0,0,52,2], "class_value_producer.html#a9d3882f6de7ef8b05e78947cf9df2697":[0,0,52,4], "class_value_producer.html#adaf30ea1027efa0c83c75dfe3afc0c1a":[0,0,52,3], +"class_value_producer.html#adfb3d9679b80c9fae0951ca13911344f":[0,0,52,2], "class_voltage_divider_r2.html":[0,0,53], -"class_voltage_divider_r2.html#a1d13a6e6ddac3468c3722dc884a64ffd":[0,0,53,1], -"class_voltage_divider_r2.html#a35275626b89244eb30f0c1be504dbdb6":[0,0,53,3], -"class_voltage_divider_r2.html#a43fa7bb9dc49c50de247aac272d7f697":[0,0,53,5], -"class_voltage_divider_r2.html#a482239a7e4031b16091886109efd2296":[0,0,53,7], -"class_voltage_divider_r2.html#a805b64252dccfd3720ce5fc0f84964b3":[0,0,53,4], -"class_voltage_divider_r2.html#a927b6c4d26bc24dfd326f63a0a127f66":[0,0,53,6], -"class_voltage_divider_r2.html#aa01015814dad17dd7db497a8c9209d44":[0,0,53,0], -"class_voltage_divider_r2.html#ae37065fd9bd093497ff74a9faf5b6cea":[0,0,53,2], +"class_voltage_divider_r2.html#a35275626b89244eb30f0c1be504dbdb6":[0,0,53,2], +"class_voltage_divider_r2.html#a43fa7bb9dc49c50de247aac272d7f697":[0,0,53,4], +"class_voltage_divider_r2.html#a482239a7e4031b16091886109efd2296":[0,0,53,6], +"class_voltage_divider_r2.html#a609ab5e2db4122ddc875a94ba8f9d325":[0,0,53,0], +"class_voltage_divider_r2.html#a805b64252dccfd3720ce5fc0f84964b3":[0,0,53,3], +"class_voltage_divider_r2.html#a927b6c4d26bc24dfd326f63a0a127f66":[0,0,53,5], +"class_voltage_divider_r2.html#ae37065fd9bd093497ff74a9faf5b6cea":[0,0,53,1], "class_w_s_client.html":[0,0,54], "class_w_s_client.html#a1313d063fd61739f7e3ca9b2c126b048":[0,0,54,2], "class_w_s_client.html#a1612670a5dccbc8a39518ae972fbae90":[0,0,54,1], @@ -36,49 +27,54 @@ var NAVTREEINDEX1 = "class_w_s_client.html#ae23657a7da08a9413a09e9054495904e":[0,0,54,6], "class_w_s_client.html#af921852d17f75f46999c2cc1442c4723":[0,0,54,9], "classes.html":[0,1], -"configurable_8cpp.html":[1,0,0,2,0], -"configurable_8cpp.html#a19ac563e52fea3af6b643155f9d258b6":[1,0,0,2,0,0], -"configurable_8cpp_source.html":[1,0,0,2,0], -"configurable_8h.html":[1,0,0,2,1], -"configurable_8h.html#a19ac563e52fea3af6b643155f9d258b6":[1,0,0,2,1,1], -"configurable_8h_source.html":[1,0,0,2,1], -"debounce_8cpp.html":[1,0,0,3,1], -"debounce_8cpp_source.html":[1,0,0,3,1], -"debounce_8h.html":[1,0,0,3,2], -"debounce_8h_source.html":[1,0,0,3,2], +"configurable_8cpp.html":[1,0,0,3,0], +"configurable_8cpp.html#a19ac563e52fea3af6b643155f9d258b6":[1,0,0,3,0,0], +"configurable_8cpp_source.html":[1,0,0,3,0], +"configurable_8h.html":[1,0,0,3,1], +"configurable_8h.html#a19ac563e52fea3af6b643155f9d258b6":[1,0,0,3,1,1], +"configurable_8h_source.html":[1,0,0,3,1], +"curveinterpolator_8cpp.html":[1,0,0,4,1], +"curveinterpolator_8cpp_source.html":[1,0,0,4,1], +"curveinterpolator_8h.html":[1,0,0,4,2], +"curveinterpolator_8h_source.html":[1,0,0,4,2], +"debounce_8cpp.html":[1,0,0,4,3], +"debounce_8cpp_source.html":[1,0,0,4,3], +"debounce_8h.html":[1,0,0,4,4], +"debounce_8h_source.html":[1,0,0,4,4], "device_8cpp.html":[1,0,0,0,2], "device_8cpp_source.html":[1,0,0,0,2], "device_8h.html":[1,0,0,0,3], "device_8h_source.html":[1,0,0,0,3], -"difference_8cpp.html":[1,0,0,3,3], -"difference_8cpp_source.html":[1,0,0,3,3], -"difference_8h.html":[1,0,0,3,4], -"difference_8h_source.html":[1,0,0,3,4], +"difference_8cpp.html":[1,0,0,4,5], +"difference_8cpp_source.html":[1,0,0,4,5], +"difference_8h.html":[1,0,0,4,6], +"difference_8h_source.html":[1,0,0,4,6], "digital__input_8cpp.html":[1,0,0,0,4], "digital__input_8cpp_source.html":[1,0,0,0,4], "digital__input_8h.html":[1,0,0,0,5], "digital__input_8h_source.html":[1,0,0,0,5], "dir_68267d1309a1af8e8297ef4c3efbcdba.html":[1,0,0], "dir_6fac9273c1f4413d2ee63ba6cd0b0eb2.html":[1,0,0,0], +"dir_846aa835ffd15ea225ad18b5b4aa0d4f.html":[1,0,0,2], "dir_85858df28c9c737bf6d126646f545b97.html":[1,0,0,1,0], -"dir_859cad99e661c8c6c06da42378c04432.html":[1,0,0,3], +"dir_859cad99e661c8c6c06da42378c04432.html":[1,0,0,4], "dir_c72b25b75abe208498b36a3e44a3726c.html":[1,0,0,1], -"dir_d501334aeb1b78ad67cd3c72c37b1e87.html":[1,0,0,2], +"dir_d501334aeb1b78ad67cd3c72c37b1e87.html":[1,0,0,3], "discovery_8cpp.html":[1,0,0,1,1], "discovery_8cpp.html#aeea49ee803402167d8d79ca58268363e":[1,0,0,1,1,0], "discovery_8cpp_source.html":[1,0,0,1,1], "discovery_8h.html":[1,0,0,1,2], "discovery_8h.html#aeea49ee803402167d8d79ca58268363e":[1,0,0,1,2,0], "discovery_8h_source.html":[1,0,0,1,2], -"enable_8cpp.html":[1,0,0,2,2], -"enable_8cpp_source.html":[1,0,0,2,2], -"enable_8h.html":[1,0,0,2,3], -"enable_8h_source.html":[1,0,0,2,3], +"enable_8cpp.html":[1,0,0,3,2], +"enable_8cpp_source.html":[1,0,0,3,2], +"enable_8h.html":[1,0,0,3,3], +"enable_8h_source.html":[1,0,0,3,3], "files.html":[1,0], -"frequency_8cpp.html":[1,0,0,3,5], -"frequency_8cpp_source.html":[1,0,0,3,5], -"frequency_8h.html":[1,0,0,3,6], -"frequency_8h_source.html":[1,0,0,3,6], +"frequency_8cpp.html":[1,0,0,4,7], +"frequency_8cpp_source.html":[1,0,0,4,7], +"frequency_8h.html":[1,0,0,4,8], +"frequency_8h_source.html":[1,0,0,4,8], "functions.html":[0,3,0], "functions.html":[0,3,0,0], "functions_b.html":[0,3,0,1], @@ -130,10 +126,6 @@ var NAVTREEINDEX1 = "globals_func.html":[1,1,1], "globals_type.html":[1,1,3], "globals_vars.html":[1,1,2], -"gnss__position_8cpp.html":[1,0,0,3,7], -"gnss__position_8cpp_source.html":[1,0,0,3,7], -"gnss__position_8h.html":[1,0,0,3,8], -"gnss__position_8h_source.html":[1,0,0,3,8], "gps_8cpp.html":[1,0,0,0,6], "gps_8cpp_source.html":[1,0,0,0,6], "gps_8h.html":[1,0,0,0,7], @@ -148,33 +140,29 @@ var NAVTREEINDEX1 = "index_8h.html":[1,0,0,1,0,0], "index_8h.html#a9e09bea0eddc6841460f6654d2ba1a5f":[1,0,0,1,0,0,0], "index_8h_source.html":[1,0,0,1,0,0], -"integrator_8cpp.html":[1,0,0,3,9], -"integrator_8cpp_source.html":[1,0,0,3,9], -"integrator_8h.html":[1,0,0,3,10], -"integrator_8h_source.html":[1,0,0,3,10], -"interpolate_8cpp.html":[1,0,0,3,11], -"interpolate_8cpp_source.html":[1,0,0,3,11], -"interpolate_8h.html":[1,0,0,3,12], -"interpolate_8h_source.html":[1,0,0,3,12], +"integrator_8cpp.html":[1,0,0,4,9], +"integrator_8cpp_source.html":[1,0,0,4,9], +"integrator_8h.html":[1,0,0,4,10], +"integrator_8h_source.html":[1,0,0,4,10], "js__jsoneditor_8h.html":[1,0,0,1,0,1], "js__jsoneditor_8h.html#a53fb277b2065a969013a1bc4b071abd1":[1,0,0,1,0,1,0], "js__jsoneditor_8h_source.html":[1,0,0,1,0,1], "js__sensesp_8h.html":[1,0,0,1,0,2], "js__sensesp_8h.html#a8de262bdd3fe0e74c591a5174112011f":[1,0,0,1,0,2,0], "js__sensesp_8h_source.html":[1,0,0,1,0,2], -"led__blinker_8cpp.html":[1,0,0,2,4], -"led__blinker_8cpp.html#ab4553be4db9860d940f81d7447173b2f":[1,0,0,2,4,0], -"led__blinker_8cpp_source.html":[1,0,0,2,4], -"led__blinker_8h.html":[1,0,0,2,5], -"led__blinker_8h_source.html":[1,0,0,2,5], -"linear_8cpp.html":[1,0,0,3,13], -"linear_8cpp_source.html":[1,0,0,3,13], -"linear_8h.html":[1,0,0,3,14], -"linear_8h_source.html":[1,0,0,3,14], -"moving__average_8cpp.html":[1,0,0,3,15], -"moving__average_8cpp_source.html":[1,0,0,3,15], -"moving__average_8h.html":[1,0,0,3,16], -"moving__average_8h_source.html":[1,0,0,3,16], +"led__blinker_8cpp.html":[1,0,0,3,4], +"led__blinker_8cpp.html#ab4553be4db9860d940f81d7447173b2f":[1,0,0,3,4,0], +"led__blinker_8cpp_source.html":[1,0,0,3,4], +"led__blinker_8h.html":[1,0,0,3,5], +"led__blinker_8h_source.html":[1,0,0,3,5], +"linear_8cpp.html":[1,0,0,4,11], +"linear_8cpp_source.html":[1,0,0,4,11], +"linear_8h.html":[1,0,0,4,12], +"linear_8h_source.html":[1,0,0,4,12], +"moving__average_8cpp.html":[1,0,0,4,13], +"moving__average_8cpp_source.html":[1,0,0,4,13], +"moving__average_8h.html":[1,0,0,4,14], +"moving__average_8h_source.html":[1,0,0,4,14], "networking_8cpp.html":[1,0,0,1,5], "networking_8cpp.html#a6beb3d9ab4141921e87c56b399230fce":[1,0,0,1,5,0], "networking_8cpp.html#a7930cb24915efc348611f4c48d1d5e4c":[1,0,0,1,5,1], @@ -182,41 +170,41 @@ var NAVTREEINDEX1 = "networking_8cpp_source.html":[1,0,0,1,5], "networking_8h.html":[1,0,0,1,6], "networking_8h_source.html":[1,0,0,1,6], -"nmea__parser_8cpp.html":[1,0,0,2,6], -"nmea__parser_8cpp.html#a113615295f150c16f895c9e2525bbd6e":[1,0,0,2,6,4], -"nmea__parser_8cpp.html#a18bf596259e1849f3b6bdbdd765ab606":[1,0,0,2,6,9], -"nmea__parser_8cpp.html#a202c8d748e820b33d2fb1a324710698b":[1,0,0,2,6,11], -"nmea__parser_8cpp.html#a21e8f85a497e58ad08d5c473e89a8463":[1,0,0,2,6,7], -"nmea__parser_8cpp.html#a29c34542d9842302271bb6a0380d4d4d":[1,0,0,2,6,2], -"nmea__parser_8cpp.html#a37bce694f34f625b2c3e29a1a74c1570":[1,0,0,2,6,10], -"nmea__parser_8cpp.html#a3f3c4d059e6d6bcc7040f624486d37ae":[1,0,0,2,6,3], -"nmea__parser_8cpp.html#a4021e9ad227b156bfdedaa8fd938590b":[1,0,0,2,6,8], -"nmea__parser_8cpp.html#a4de8e35130646cbb488072ff8e457126":[1,0,0,2,6,6], -"nmea__parser_8cpp.html#a78e0374f91eaf4035ec29121f7e40064":[1,0,0,2,6,12], -"nmea__parser_8cpp.html#ac534d920f6775ddb34453e554699e1b4":[1,0,0,2,6,5], -"nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520":[1,0,0,2,6,0], -"nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520a05e849a8cef5c44456bd54132f622ef2":[1,0,0,2,6,0,4], -"nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520a1b64cc0e9a9ebc1afccab8e472ed2e3c":[1,0,0,2,6,0,5], -"nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520a32b763dac1af6b0b08ab952ea202f6a3":[1,0,0,2,6,0,8], -"nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520a4692e23f3770a255f880456f7fbec485":[1,0,0,2,6,0,7], -"nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520a59f188885f9974ee947a7e5af4b9f5bc":[1,0,0,2,6,0,6], -"nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520a8d26d1fa1d0cda42a29843162786a0b6":[1,0,0,2,6,0,2], -"nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520acad07a79b4226b1e51ce24a510e6aef0":[1,0,0,2,6,0,0], -"nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520ad606e435413ea0944dd00d49e901e4ed":[1,0,0,2,6,0,9], -"nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520adea098971e394461267006ddf5d2d4b0":[1,0,0,2,6,0,1], -"nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520afa0a09a3165e3cc313372a0b424b149c":[1,0,0,2,6,0,3], -"nmea__parser_8cpp.html#af394f12d9ff6fb97e4c158dac1eb6dc0":[1,0,0,2,6,1], -"nmea__parser_8cpp_source.html":[1,0,0,2,6], -"nmea__parser_8h.html":[1,0,0,2,7], -"nmea__parser_8h.html#a6088978b66925a9ff44bbdf302f00726":[1,0,0,2,7,11], -"nmea__parser_8h.html#a6487a496a45b3acfe263589909cfc101":[1,0,0,2,7,12], -"nmea__parser_8h_source.html":[1,0,0,2,7], -"observable_8cpp.html":[1,0,0,2,8], -"observable_8cpp_source.html":[1,0,0,2,8], -"observable_8h.html":[1,0,0,2,9], -"observable_8h_source.html":[1,0,0,2,9], -"observablevalue_8h.html":[1,0,0,2,10], -"observablevalue_8h_source.html":[1,0,0,2,10], +"nmea__parser_8cpp.html":[1,0,0,3,6], +"nmea__parser_8cpp.html#a113615295f150c16f895c9e2525bbd6e":[1,0,0,3,6,4], +"nmea__parser_8cpp.html#a18bf596259e1849f3b6bdbdd765ab606":[1,0,0,3,6,9], +"nmea__parser_8cpp.html#a202c8d748e820b33d2fb1a324710698b":[1,0,0,3,6,11], +"nmea__parser_8cpp.html#a21e8f85a497e58ad08d5c473e89a8463":[1,0,0,3,6,7], +"nmea__parser_8cpp.html#a29c34542d9842302271bb6a0380d4d4d":[1,0,0,3,6,2], +"nmea__parser_8cpp.html#a37bce694f34f625b2c3e29a1a74c1570":[1,0,0,3,6,10], +"nmea__parser_8cpp.html#a3f3c4d059e6d6bcc7040f624486d37ae":[1,0,0,3,6,3], +"nmea__parser_8cpp.html#a4021e9ad227b156bfdedaa8fd938590b":[1,0,0,3,6,8], +"nmea__parser_8cpp.html#a4de8e35130646cbb488072ff8e457126":[1,0,0,3,6,6], +"nmea__parser_8cpp.html#a78e0374f91eaf4035ec29121f7e40064":[1,0,0,3,6,12], +"nmea__parser_8cpp.html#ac534d920f6775ddb34453e554699e1b4":[1,0,0,3,6,5], +"nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520":[1,0,0,3,6,0], +"nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520a05e849a8cef5c44456bd54132f622ef2":[1,0,0,3,6,0,4], +"nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520a1b64cc0e9a9ebc1afccab8e472ed2e3c":[1,0,0,3,6,0,5], +"nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520a32b763dac1af6b0b08ab952ea202f6a3":[1,0,0,3,6,0,8], +"nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520a4692e23f3770a255f880456f7fbec485":[1,0,0,3,6,0,7], +"nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520a59f188885f9974ee947a7e5af4b9f5bc":[1,0,0,3,6,0,6], +"nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520a8d26d1fa1d0cda42a29843162786a0b6":[1,0,0,3,6,0,2], +"nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520acad07a79b4226b1e51ce24a510e6aef0":[1,0,0,3,6,0,0], +"nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520ad606e435413ea0944dd00d49e901e4ed":[1,0,0,3,6,0,9], +"nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520adea098971e394461267006ddf5d2d4b0":[1,0,0,3,6,0,1], +"nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520afa0a09a3165e3cc313372a0b424b149c":[1,0,0,3,6,0,3], +"nmea__parser_8cpp.html#af394f12d9ff6fb97e4c158dac1eb6dc0":[1,0,0,3,6,1], +"nmea__parser_8cpp_source.html":[1,0,0,3,6], +"nmea__parser_8h.html":[1,0,0,3,7], +"nmea__parser_8h.html#a6088978b66925a9ff44bbdf302f00726":[1,0,0,3,7,11], +"nmea__parser_8h.html#a6487a496a45b3acfe263589909cfc101":[1,0,0,3,7,12], +"nmea__parser_8h_source.html":[1,0,0,3,7], +"observable_8cpp.html":[1,0,0,3,8], +"observable_8cpp_source.html":[1,0,0,3,8], +"observable_8h.html":[1,0,0,3,9], +"observable_8h_source.html":[1,0,0,3,9], +"observablevalue_8h.html":[1,0,0,3,10], +"observablevalue_8h_source.html":[1,0,0,3,10], "onewire__temperature_8cpp.html":[1,0,0,0,8], "onewire__temperature_8cpp.html#a2ea2a536fdbbb476ae3fb824d73d3e1a":[1,0,0,0,8,1], "onewire__temperature_8cpp.html#ad0134b3041182b5f8c3004025183e6eb":[1,0,0,0,8,0], @@ -233,21 +221,33 @@ var NAVTREEINDEX1 = "ota_8h.html#a29c2aa13f2bbaccceeb33ed39a6ece11":[1,0,0,1,8,0], "ota_8h_source.html":[1,0,0,1,8], "pages.html":[], -"passthrough_8h.html":[1,0,0,3,17], -"passthrough_8h_source.html":[1,0,0,3,17], -"sensesp_8h.html":[1,0,0,4], -"sensesp_8h.html#a5ae2f374710d648c2027c78237f5df01":[1,0,0,4,2], -"sensesp_8h.html#aaa2ffd80e6f851dc6bb43c95a2c7d26f":[1,0,0,4,1], -"sensesp_8h.html#abb3668fa85a914138ab7c0c4329681ec":[1,0,0,4,0], -"sensesp_8h_source.html":[1,0,0,4], -"sensesp__app_8cpp.html":[1,0,0,5], -"sensesp__app_8cpp.html#a5ae2f374710d648c2027c78237f5df01":[1,0,0,5,0], -"sensesp__app_8cpp.html#a9b53af60ecde971876d66994134fbfff":[1,0,0,5,1], -"sensesp__app_8cpp_source.html":[1,0,0,5], -"sensesp__app_8h.html":[1,0,0,6], -"sensesp__app_8h.html#a8abe44af131f55591035d3587ca9484d":[1,0,0,6,1], -"sensesp__app_8h.html#a9b53af60ecde971876d66994134fbfff":[1,0,0,6,2], -"sensesp__app_8h_source.html":[1,0,0,6], +"sensesp_8h.html":[1,0,0,5], +"sensesp_8h.html#a5ae2f374710d648c2027c78237f5df01":[1,0,0,5,2], +"sensesp_8h.html#aaa2ffd80e6f851dc6bb43c95a2c7d26f":[1,0,0,5,1], +"sensesp_8h.html#abb3668fa85a914138ab7c0c4329681ec":[1,0,0,5,0], +"sensesp_8h_source.html":[1,0,0,5], +"sensesp__app_8cpp.html":[1,0,0,6], +"sensesp__app_8cpp.html#a5ae2f374710d648c2027c78237f5df01":[1,0,0,6,0], +"sensesp__app_8cpp.html#a9b53af60ecde971876d66994134fbfff":[1,0,0,6,1], +"sensesp__app_8cpp_source.html":[1,0,0,6], +"sensesp__app_8h.html":[1,0,0,7], +"sensesp__app_8h.html#a8abe44af131f55591035d3587ca9484d":[1,0,0,7,1], +"sensesp__app_8h.html#a9b53af60ecde971876d66994134fbfff":[1,0,0,7,2], +"sensesp__app_8h_source.html":[1,0,0,7], "setup_8h.html":[1,0,0,1,0,3], -"setup_8h.html#a183306764a8509f2c9635a13289ea64f":[1,0,0,1,0,3,0] +"setup_8h.html#a183306764a8509f2c9635a13289ea64f":[1,0,0,1,0,3,0], +"setup_8h_source.html":[1,0,0,1,0,3], +"signalk__delta_8cpp.html":[1,0,0,2,0], +"signalk__delta_8cpp_source.html":[1,0,0,2,0], +"signalk__delta_8h.html":[1,0,0,2,1], +"signalk__delta_8h_source.html":[1,0,0,2,1], +"signalk__emitter_8cpp.html":[1,0,0,2,2], +"signalk__emitter_8cpp_source.html":[1,0,0,2,2], +"signalk__emitter_8h.html":[1,0,0,2,3], +"signalk__emitter_8h_source.html":[1,0,0,2,3], +"signalk__output_8h.html":[1,0,0,2,4], +"signalk__output_8h.html#a008f63a91ea787950cb6c17e4c031859":[1,0,0,2,4,4], +"signalk__output_8h.html#a1a26c344db2dff33a77cf620aafa6c0c":[1,0,0,2,4,1], +"signalk__output_8h.html#a2a0e216e5ada5e31f7a6d995d2c52642":[1,0,0,2,4,2], +"signalk__output_8h.html#a6c84656f504f6de21c63c1d54d6f39e1":[1,0,0,2,4,3] }; diff --git a/docs/navtreeindex2.js b/docs/navtreeindex2.js index 527e6e2a1..11920e189 100644 --- a/docs/navtreeindex2.js +++ b/docs/navtreeindex2.js @@ -1,108 +1,98 @@ var NAVTREEINDEX2 = { -"setup_8h_source.html":[1,0,0,1,0,3], -"signal__k_8cpp.html":[1,0,0,2,11], -"signal__k_8cpp_source.html":[1,0,0,2,11], -"signal__k_8h.html":[1,0,0,2,12], -"signal__k_8h_source.html":[1,0,0,2,12], -"signalksource_8cpp.html":[1,0,0,2,13], -"signalksource_8cpp_source.html":[1,0,0,2,13], -"signalksource_8h.html":[1,0,0,2,14], -"signalksource_8h_source.html":[1,0,0,2,14], -"spiffs__storage_8cpp.html":[1,0,0,2,15], -"spiffs__storage_8cpp.html#a1dfee751479797b385c81cacb151c115":[1,0,0,2,15,1], -"spiffs__storage_8cpp.html#a7429780969e66149e25ea6088bf65b7a":[1,0,0,2,15,0], -"spiffs__storage_8cpp.html#ae1cd66733f6f724334874c5ff65b958b":[1,0,0,2,15,2], -"spiffs__storage_8cpp_source.html":[1,0,0,2,15], -"spiffs__storage_8h.html":[1,0,0,2,16], -"spiffs__storage_8h.html#a1dfee751479797b385c81cacb151c115":[1,0,0,2,16,2], -"spiffs__storage_8h.html#a7429780969e66149e25ea6088bf65b7a":[1,0,0,2,16,1], -"spiffs__storage_8h.html#ae1cd66733f6f724334874c5ff65b958b":[1,0,0,2,16,4], -"spiffs__storage_8h.html#aeb6c893649f188e378de0c76055b1f01":[1,0,0,2,16,0], -"spiffs__storage_8h.html#afc3e0da568f2f14c9954eeab665ab9cd":[1,0,0,2,16,3], -"spiffs__storage_8h_source.html":[1,0,0,2,16], -"struct_e_n_u_vector.html":[0,0,11], -"struct_e_n_u_vector.html#a4cf8b3abdd2edd2f9a463fc6394dbb50":[0,0,11,1], -"struct_e_n_u_vector.html#ac4254f925ae071868c7961a006cdf768":[0,0,11,2], -"struct_e_n_u_vector.html#affaf84db367ff8259448116fe4c75370":[0,0,11,0], -"struct_n_m_e_a_data.html":[0,0,28], -"struct_n_m_e_a_data.html#a1b62fa2b8b0b62d9cef48f7576e0da30":[0,0,28,6], -"struct_n_m_e_a_data.html#a249d831d604857b04284d4c33719005e":[0,0,28,11], -"struct_n_m_e_a_data.html#a3acdff78f354082419d01ebfe8846f7f":[0,0,28,7], -"struct_n_m_e_a_data.html#a3ae9e3d23c088e1c435acf4c232d6a5c":[0,0,28,2], -"struct_n_m_e_a_data.html#a5271f014cd9d9b7ebcfa64d772006044":[0,0,28,12], -"struct_n_m_e_a_data.html#a590b94e1133efeaa9a05456da0dab2dd":[0,0,28,13], -"struct_n_m_e_a_data.html#a8048e071ffb9f37ff425305525f2223a":[0,0,28,8], -"struct_n_m_e_a_data.html#a91263e0aa16f47a7535d8d4a09b2ffca":[0,0,28,15], -"struct_n_m_e_a_data.html#a96cce54518c05c611d50c159ea5122d6":[0,0,28,1], -"struct_n_m_e_a_data.html#a99328058cfe4cf26b5025511d64ce576":[0,0,28,5], -"struct_n_m_e_a_data.html#aa6d1ee7ee222393032e1f57cde891b31":[0,0,28,9], -"struct_n_m_e_a_data.html#aae3cb7b0e14cc41ad1c271b9afaae27d":[0,0,28,3], -"struct_n_m_e_a_data.html#ab5b508669ea5109f812b28cdba65c402":[0,0,28,16], -"struct_n_m_e_a_data.html#ac5e91779da683f23c11da42c1db41b60":[0,0,28,10], -"struct_n_m_e_a_data.html#ad752076d48c74317d72a26643fef7fef":[0,0,28,0], -"struct_n_m_e_a_data.html#af61e9824ffaf9b43c1a95d8d7a93bc10":[0,0,28,4], -"struct_n_m_e_a_data.html#afe6efa0ec62ce332673ab98b282990c8":[0,0,28,14], -"struct_position.html":[0,0,35], -"struct_position.html#a76a87a4287c53ae7e53eba716e740c12":[0,0,35,2], -"struct_position.html#ac6606384ff43b39b8614dd3b590d6b36":[0,0,35,1], -"struct_position.html#add1df8470102854f3950fc9dd2fee06d":[0,0,35,0], +"signalk__output_8h_source.html":[1,0,0,2,4], +"signalk__position_8cpp.html":[1,0,0,2,5], +"signalk__position_8cpp_source.html":[1,0,0,2,5], +"signalk__position_8h.html":[1,0,0,2,6], +"signalk__position_8h_source.html":[1,0,0,2,6], +"signalk__time_8cpp.html":[1,0,0,2,7], +"signalk__time_8cpp_source.html":[1,0,0,2,7], +"signalk__time_8h.html":[1,0,0,2,8], +"signalk__time_8h_source.html":[1,0,0,2,8], +"spiffs__storage_8cpp.html":[1,0,0,3,11], +"spiffs__storage_8cpp.html#a1dfee751479797b385c81cacb151c115":[1,0,0,3,11,1], +"spiffs__storage_8cpp.html#a7429780969e66149e25ea6088bf65b7a":[1,0,0,3,11,0], +"spiffs__storage_8cpp.html#ae1cd66733f6f724334874c5ff65b958b":[1,0,0,3,11,2], +"spiffs__storage_8cpp_source.html":[1,0,0,3,11], +"spiffs__storage_8h.html":[1,0,0,3,12], +"spiffs__storage_8h.html#a1dfee751479797b385c81cacb151c115":[1,0,0,3,12,2], +"spiffs__storage_8h.html#a7429780969e66149e25ea6088bf65b7a":[1,0,0,3,12,1], +"spiffs__storage_8h.html#ae1cd66733f6f724334874c5ff65b958b":[1,0,0,3,12,4], +"spiffs__storage_8h.html#aeb6c893649f188e378de0c76055b1f01":[1,0,0,3,12,0], +"spiffs__storage_8h.html#afc3e0da568f2f14c9954eeab665ab9cd":[1,0,0,3,12,3], +"spiffs__storage_8h_source.html":[1,0,0,3,12], +"struct_e_n_u_vector.html":[0,0,12], +"struct_e_n_u_vector.html#a4cf8b3abdd2edd2f9a463fc6394dbb50":[0,0,12,1], +"struct_e_n_u_vector.html#ac4254f925ae071868c7961a006cdf768":[0,0,12,2], +"struct_e_n_u_vector.html#affaf84db367ff8259448116fe4c75370":[0,0,12,0], +"struct_n_m_e_a_data.html":[0,0,27], +"struct_n_m_e_a_data.html#a1b62fa2b8b0b62d9cef48f7576e0da30":[0,0,27,6], +"struct_n_m_e_a_data.html#a249d831d604857b04284d4c33719005e":[0,0,27,11], +"struct_n_m_e_a_data.html#a3acdff78f354082419d01ebfe8846f7f":[0,0,27,7], +"struct_n_m_e_a_data.html#a3ae9e3d23c088e1c435acf4c232d6a5c":[0,0,27,2], +"struct_n_m_e_a_data.html#a5271f014cd9d9b7ebcfa64d772006044":[0,0,27,12], +"struct_n_m_e_a_data.html#a590b94e1133efeaa9a05456da0dab2dd":[0,0,27,13], +"struct_n_m_e_a_data.html#a8048e071ffb9f37ff425305525f2223a":[0,0,27,8], +"struct_n_m_e_a_data.html#a91263e0aa16f47a7535d8d4a09b2ffca":[0,0,27,15], +"struct_n_m_e_a_data.html#a96cce54518c05c611d50c159ea5122d6":[0,0,27,1], +"struct_n_m_e_a_data.html#a99328058cfe4cf26b5025511d64ce576":[0,0,27,5], +"struct_n_m_e_a_data.html#aa6d1ee7ee222393032e1f57cde891b31":[0,0,27,9], +"struct_n_m_e_a_data.html#aae3cb7b0e14cc41ad1c271b9afaae27d":[0,0,27,3], +"struct_n_m_e_a_data.html#ab5b508669ea5109f812b28cdba65c402":[0,0,27,16], +"struct_n_m_e_a_data.html#ac5e91779da683f23c11da42c1db41b60":[0,0,27,10], +"struct_n_m_e_a_data.html#ad752076d48c74317d72a26643fef7fef":[0,0,27,0], +"struct_n_m_e_a_data.html#af61e9824ffaf9b43c1a95d8d7a93bc10":[0,0,27,4], +"struct_n_m_e_a_data.html#afe6efa0ec62ce332673ab98b282990c8":[0,0,27,14], +"struct_position.html":[0,0,33], +"struct_position.html#a76a87a4287c53ae7e53eba716e740c12":[0,0,33,2], +"struct_position.html#ac6606384ff43b39b8614dd3b590d6b36":[0,0,33,1], +"struct_position.html#add1df8470102854f3950fc9dd2fee06d":[0,0,33,0], "system__info_8cpp.html":[1,0,0,0,10], "system__info_8cpp_source.html":[1,0,0,0,10], "system__info_8h.html":[1,0,0,0,11], "system__info_8h_source.html":[1,0,0,0,11], -"temperatureinterpreter_8cpp.html":[1,0,0,3,18], -"temperatureinterpreter_8cpp_source.html":[1,0,0,3,18], -"temperatureinterpreter_8h.html":[1,0,0,3,19], -"temperatureinterpreter_8h_source.html":[1,0,0,3,19], -"timestring_8cpp.html":[1,0,0,3,20], -"timestring_8cpp_source.html":[1,0,0,3,20], -"timestring_8h.html":[1,0,0,3,21], -"timestring_8h_source.html":[1,0,0,3,21], -"transform_8cpp.html":[1,0,0,3,22], -"transform_8cpp_source.html":[1,0,0,3,22], -"transform_8h.html":[1,0,0,3,23], -"transform_8h.html#a13777cad82c84559093e2ecf1e2955f2":[1,0,0,3,23,10], -"transform_8h.html#a31aa97c726949c94bf788285a702cd23":[1,0,0,3,23,7], -"transform_8h.html#a3be75a3cb354d5f1fe245410c4d92948":[1,0,0,3,23,5], -"transform_8h.html#a9b6f203fb2d7cf6bb03ef36075e68f19":[1,0,0,3,23,6], -"transform_8h.html#aacd7283062f2280bf82cc3eb48284f5b":[1,0,0,3,23,9], -"transform_8h.html#acbd22cace30bc4704b42c76e0d1b5baf":[1,0,0,3,23,3], -"transform_8h.html#ae89d78453e476b19db8b903f80c90c5a":[1,0,0,3,23,4], -"transform_8h.html#af9018e893038605790282f34ef1a9475":[1,0,0,3,23,8], -"transform_8h_source.html":[1,0,0,3,23], -"valueconsumer_8h.html":[1,0,0,2,17], -"valueconsumer_8h.html#a1220e1ddede7c4512fde395262841b74":[1,0,0,2,17,4], -"valueconsumer_8h.html#a1d91b84157f6818bb8b8b04caede8a02":[1,0,0,2,17,5], -"valueconsumer_8h.html#a45a844f7269f830a1f708f965627248c":[1,0,0,2,17,3], -"valueconsumer_8h.html#abea8a189967941972b3e7c5a329c4963":[1,0,0,2,17,2], -"valueconsumer_8h_source.html":[1,0,0,2,17], -"valueproducer_8h.html":[1,0,0,2,18], -"valueproducer_8h.html#a79edc4b65652f6948d690891bb6d7e0c":[1,0,0,2,18,2], -"valueproducer_8h.html#aaf22f94e9cc9067637cd0625ad9fe352":[1,0,0,2,18,4], -"valueproducer_8h.html#ab74ca4be7de22a21f73128ea38a4cbbb":[1,0,0,2,18,3], -"valueproducer_8h.html#ab845e985974e3ae4c050b8f221337b0d":[1,0,0,2,18,5], -"valueproducer_8h_source.html":[1,0,0,2,18], -"voltagedivider_r2_8cpp.html":[1,0,0,3,24], -"voltagedivider_r2_8cpp_source.html":[1,0,0,3,24], -"voltagedivider_r2_8h.html":[1,0,0,3,25], -"voltagedivider_r2_8h_source.html":[1,0,0,3,25], -"wiring__helpers_8cpp.html":[1,0,0,7], -"wiring__helpers_8cpp.html#a013f0fccc349c462c3a1d1a692e0cc23":[1,0,0,7,3], -"wiring__helpers_8cpp.html#a17220137bcd65b6f922f5a14165a8fcf":[1,0,0,7,4], -"wiring__helpers_8cpp.html#a9da3379a0c7725b0d2c7202810b76be3":[1,0,0,7,1], -"wiring__helpers_8cpp.html#aa6279a7bab0b61c448263a90303bb7e0":[1,0,0,7,5], -"wiring__helpers_8cpp.html#adfc99a40e14ac9cd0b83ee26e2ea2427":[1,0,0,7,2], -"wiring__helpers_8cpp.html#aeef272bff92e31ecb7e38c53e8c9d217":[1,0,0,7,0], -"wiring__helpers_8cpp_source.html":[1,0,0,7], -"wiring__helpers_8h.html":[1,0,0,8], -"wiring__helpers_8h.html#a013f0fccc349c462c3a1d1a692e0cc23":[1,0,0,8,3], -"wiring__helpers_8h.html#aa6279a7bab0b61c448263a90303bb7e0":[1,0,0,8,5], -"wiring__helpers_8h.html#ad76896b776ebaa3509b6cc91f017e86c":[1,0,0,8,4], -"wiring__helpers_8h.html#adea719867d33321e725bf045de32076c":[1,0,0,8,0], -"wiring__helpers_8h.html#adfc99a40e14ac9cd0b83ee26e2ea2427":[1,0,0,8,2], -"wiring__helpers_8h.html#af8491f1a9541b35d11c13f5c2ec8dc46":[1,0,0,8,1], -"wiring__helpers_8h_source.html":[1,0,0,8], +"timestring_8cpp.html":[1,0,0,4,15], +"timestring_8cpp_source.html":[1,0,0,4,15], +"timestring_8h.html":[1,0,0,4,16], +"timestring_8h_source.html":[1,0,0,4,16], +"transform_8cpp.html":[1,0,0,4,17], +"transform_8cpp_source.html":[1,0,0,4,17], +"transform_8h.html":[1,0,0,4,18], +"transform_8h.html#a463af5c6e30307ac67004d67dd014030":[1,0,0,4,18,6], +"transform_8h.html#ac1617ff234bef4e8a50341c1d6943246":[1,0,0,4,18,3], +"transform_8h.html#ac62af394caec478e4d32c254c96af25b":[1,0,0,4,18,5], +"transform_8h.html#ae9c0b5d70ecdf35d4bd3a0a4bd4e0d17":[1,0,0,4,18,4], +"transform_8h_source.html":[1,0,0,4,18], +"valueconsumer_8h.html":[1,0,0,3,13], +"valueconsumer_8h.html#a1220e1ddede7c4512fde395262841b74":[1,0,0,3,13,4], +"valueconsumer_8h.html#a1d91b84157f6818bb8b8b04caede8a02":[1,0,0,3,13,5], +"valueconsumer_8h.html#a45a844f7269f830a1f708f965627248c":[1,0,0,3,13,3], +"valueconsumer_8h.html#abea8a189967941972b3e7c5a329c4963":[1,0,0,3,13,2], +"valueconsumer_8h_source.html":[1,0,0,3,13], +"valueproducer_8h.html":[1,0,0,3,14], +"valueproducer_8h.html#a79edc4b65652f6948d690891bb6d7e0c":[1,0,0,3,14,2], +"valueproducer_8h.html#aaf22f94e9cc9067637cd0625ad9fe352":[1,0,0,3,14,4], +"valueproducer_8h.html#ab74ca4be7de22a21f73128ea38a4cbbb":[1,0,0,3,14,3], +"valueproducer_8h.html#ab845e985974e3ae4c050b8f221337b0d":[1,0,0,3,14,5], +"valueproducer_8h_source.html":[1,0,0,3,14], +"voltagedivider_r2_8cpp.html":[1,0,0,4,19], +"voltagedivider_r2_8cpp_source.html":[1,0,0,4,19], +"voltagedivider_r2_8h.html":[1,0,0,4,20], +"voltagedivider_r2_8h_source.html":[1,0,0,4,20], +"wiring__helpers_8cpp.html":[1,0,0,8], +"wiring__helpers_8cpp.html#a17220137bcd65b6f922f5a14165a8fcf":[1,0,0,8,3], +"wiring__helpers_8cpp.html#a2ef51129a7e0e59a4efe2d031141d82f":[1,0,0,8,2], +"wiring__helpers_8cpp.html#a3a4bbd0371b8285dbb7b8666d50a53a3":[1,0,0,8,0], +"wiring__helpers_8cpp.html#aa6279a7bab0b61c448263a90303bb7e0":[1,0,0,8,4], +"wiring__helpers_8cpp.html#ae36e0604b36693bd720bffcf4145baf9":[1,0,0,8,1], +"wiring__helpers_8cpp_source.html":[1,0,0,8], +"wiring__helpers_8h.html":[1,0,0,9], +"wiring__helpers_8h.html#a2ef51129a7e0e59a4efe2d031141d82f":[1,0,0,9,2], +"wiring__helpers_8h.html#a37c83d7d3ac2abb00e8f9e86c1da52d3":[1,0,0,9,3], +"wiring__helpers_8h.html#a70ac1c40d730c9e0f9b93b1f4dd5f0f9":[1,0,0,9,0], +"wiring__helpers_8h.html#a99ed20d80aca90bb060c88019c5f739f":[1,0,0,9,4], +"wiring__helpers_8h.html#ae36e0604b36693bd720bffcf4145baf9":[1,0,0,9,1], +"wiring__helpers_8h_source.html":[1,0,0,9], "ws__client_8cpp.html":[1,0,0,1,9], "ws__client_8cpp.html#a4d8d7cfce2bd21646b059e9aa4d0349b":[1,0,0,1,9,1], "ws__client_8cpp.html#a5e74f160471b58a262cceef5edaea7e0":[1,0,0,1,9,0], diff --git a/docs/networking_8cpp.html b/docs/networking_8cpp.html index b438cda68..2d6d1420c 100644 --- a/docs/networking_8cpp.html +++ b/docs/networking_8cpp.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/networking_8cpp_source.html b/docs/networking_8cpp_source.html index 416ba5b6e..8e6213730 100644 --- a/docs/networking_8cpp_source.html +++ b/docs/networking_8cpp_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -91,24 +91,24 @@
                                                                                      networking.cpp
                                                                                      -Go to the documentation of this file.
                                                                                      1 #include "networking.h"
                                                                                      2 
                                                                                      3 #include "sensesp.h"
                                                                                      4 #include "system/led_blinker.h"
                                                                                      5 
                                                                                      6 // Wifi config portal timeout (seconds). The smaller the value, the faster
                                                                                      7 // the device will attempt to reconnect. If set too small, it might
                                                                                      8 // become impossible to actually configure the Wifi settings in the captive
                                                                                      9 // portal.
                                                                                      10 #ifndef WIFI_CONFIG_PORTAL_TIMEOUT
                                                                                      11 #define WIFI_CONFIG_PORTAL_TIMEOUT 180
                                                                                      12 #endif
                                                                                      13 
                                                                                      14 bool should_save_config = false;
                                                                                      15 
                                                                                      17  should_save_config = true;
                                                                                      18 }
                                                                                      19 
                                                                                      20 Networking::Networking(String config_path)
                                                                                      22  hostname = new ObservableValue<String>(String("unknown"));
                                                                                      23  load_configuration();
                                                                                      24  server = new AsyncWebServer(80);
                                                                                      25  dns = new DNSServer();
                                                                                      26  wifi_manager = new AsyncWiFiManager(server, dns);
                                                                                      27 }
                                                                                      28 
                                                                                      30  if (WiFi.status() != WL_CONNECTED) {
                                                                                      31  // if connection is lost, simply restart
                                                                                      32  ESP.restart();
                                                                                      33  }
                                                                                      34 }
                                                                                      35 
                                                                                      36 void Networking::setup(std::function<void(bool)> connection_cb) {
                                                                                      37  should_save_config = false;
                                                                                      38 
                                                                                      39  //set config save notify callback
                                                                                      40  wifi_manager->setSaveConfigCallback(save_config_callback);
                                                                                      41 
                                                                                      42  wifi_manager->setConfigPortalTimeout(WIFI_CONFIG_PORTAL_TIMEOUT);
                                                                                      43 
                                                                                      44  #ifdef SERIAL_DEBUG_DISABLED
                                                                                      45  wifi_manager->setDebugOutput(false);
                                                                                      46  #endif
                                                                                      47  AsyncWiFiManagerParameter custom_hostname(
                                                                                      48  "hostname", "Set hostname", this->hostname->get().c_str(), 20);
                                                                                      49  wifi_manager->addParameter(&custom_hostname);
                                                                                      50 
                                                                                      51  if (!wifi_manager->autoConnect("Unconfigured Sensor")) {
                                                                                      52  debugE("Failed to connect to wifi and config timed out.");
                                                                                      53  ESP.restart();
                                                                                      54  }
                                                                                      55 
                                                                                      56  debugI("Connected to Wifi.");
                                                                                      57  connection_cb(true);
                                                                                      58 
                                                                                      59  if (should_save_config) {
                                                                                      60  String new_hostname = custom_hostname.getValue();
                                                                                      61  debugI("Got new hostname: %s", new_hostname.c_str());
                                                                                      62  this->hostname->set(new_hostname);
                                                                                      64  debugW("Restarting in 500ms");
                                                                                      65  app.onDelay(500, [](){ ESP.restart(); });
                                                                                      66  }
                                                                                      67 
                                                                                      68  app.onRepeat(1000, std::bind(&Networking::check_connection, this));
                                                                                      69 }
                                                                                      70 
                                                                                      72  return this->hostname;
                                                                                      73 }
                                                                                      74 
                                                                                      75 void Networking::set_hostname(String hostname) {
                                                                                      76  debugD("Setting hostname");
                                                                                      77  this->hostname->set(hostname);
                                                                                      78 }
                                                                                      79 
                                                                                      80 
                                                                                      82  return R"({
                                                                                      83  "type": "object",
                                                                                      84  "properties": {
                                                                                      85  "hostname": { "title": "Network SSID", "type": "string" }
                                                                                      86  }
                                                                                      87  })";
                                                                                      88 }
                                                                                      89 
                                                                                      90 
                                                                                      91 JsonObject& Networking::get_configuration(JsonBuffer& buf) {
                                                                                      92  JsonObject& root = buf.createObject();
                                                                                      93  root["hostname"] = this->hostname->get();
                                                                                      94  return root;
                                                                                      95 }
                                                                                      96 
                                                                                      97 bool Networking::set_configuration(const JsonObject& config) {
                                                                                      98  if (!config.containsKey("hostname")) {
                                                                                      99  return false;
                                                                                      100  }
                                                                                      101  this->hostname->set(config["hostname"].as<String>());
                                                                                      102  return true;
                                                                                      103 }
                                                                                      104 
                                                                                      106  wifi_manager->resetSettings();
                                                                                      107 }
                                                                                      void reset_settings()
                                                                                      Definition: networking.cpp:105
                                                                                      -
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override final
                                                                                      Definition: networking.cpp:91
                                                                                      +Go to the documentation of this file.
                                                                                      1 #include "networking.h"
                                                                                      2 
                                                                                      3 #include "sensesp.h"
                                                                                      4 #include "system/led_blinker.h"
                                                                                      5 
                                                                                      6 // Wifi config portal timeout (seconds). The smaller the value, the faster
                                                                                      7 // the device will attempt to reconnect. If set too small, it might
                                                                                      8 // become impossible to actually configure the Wifi settings in the captive
                                                                                      9 // portal.
                                                                                      10 #ifndef WIFI_CONFIG_PORTAL_TIMEOUT
                                                                                      11 #define WIFI_CONFIG_PORTAL_TIMEOUT 180
                                                                                      12 #endif
                                                                                      13 
                                                                                      14 bool should_save_config = false;
                                                                                      15 
                                                                                      17  should_save_config = true;
                                                                                      18 }
                                                                                      19 
                                                                                      20 Networking::Networking(String config_path)
                                                                                      22  hostname = new ObservableValue<String>(String("unknown"));
                                                                                      23  load_configuration();
                                                                                      24  server = new AsyncWebServer(80);
                                                                                      25  dns = new DNSServer();
                                                                                      26  wifi_manager = new AsyncWiFiManager(server, dns);
                                                                                      27 }
                                                                                      28 
                                                                                      30  if (WiFi.status() != WL_CONNECTED) {
                                                                                      31  // if connection is lost, simply restart
                                                                                      32  debugD("Wifi disconnected: restarting...");
                                                                                      33  ESP.restart();
                                                                                      34  }
                                                                                      35 }
                                                                                      36 
                                                                                      37 void Networking::setup(std::function<void(bool)> connection_cb) {
                                                                                      38  should_save_config = false;
                                                                                      39 
                                                                                      40  //set config save notify callback
                                                                                      41  wifi_manager->setSaveConfigCallback(save_config_callback);
                                                                                      42 
                                                                                      43  wifi_manager->setConfigPortalTimeout(WIFI_CONFIG_PORTAL_TIMEOUT);
                                                                                      44 
                                                                                      45  #ifdef SERIAL_DEBUG_DISABLED
                                                                                      46  wifi_manager->setDebugOutput(false);
                                                                                      47  #endif
                                                                                      48  AsyncWiFiManagerParameter custom_hostname(
                                                                                      49  "hostname", "Set ESP device hostname", this->hostname->get().c_str(), 20);
                                                                                      50  wifi_manager->addParameter(&custom_hostname);
                                                                                      51 
                                                                                      52  if (!wifi_manager->autoConnect("Unconfigured SensESP Device")) {
                                                                                      53  debugE("Failed to connect to wifi and config timed out. Restarting...");
                                                                                      54  ESP.restart();
                                                                                      55  }
                                                                                      56 
                                                                                      57  debugI("Connected to wifi, SSID: %s", WiFi.SSID().c_str());
                                                                                      58  connection_cb(true);
                                                                                      59 
                                                                                      60  if (should_save_config) {
                                                                                      61  String new_hostname = custom_hostname.getValue();
                                                                                      62  debugI("Got new hostname: %s", new_hostname.c_str());
                                                                                      63  this->hostname->set(new_hostname);
                                                                                      65  debugW("Restarting in 500ms");
                                                                                      66  app.onDelay(500, [](){ ESP.restart(); });
                                                                                      67  }
                                                                                      68 
                                                                                      69  app.onRepeat(1000, std::bind(&Networking::check_connection, this));
                                                                                      70 }
                                                                                      71 
                                                                                      73  return this->hostname;
                                                                                      74 }
                                                                                      75 
                                                                                      76 void Networking::set_hostname(String hostname) {
                                                                                      77  debugD("Setting hostname");
                                                                                      78  this->hostname->set(hostname);
                                                                                      79 }
                                                                                      80 
                                                                                      81 static const char SCHEMA[] PROGMEM = R"({
                                                                                      82  "type": "object",
                                                                                      83  "properties": {
                                                                                      84  "hostname": { "title": "ESP device hostname", "type": "string" }
                                                                                      85  }
                                                                                      86  })";
                                                                                      87 
                                                                                      89  return FPSTR(SCHEMA);
                                                                                      90 }
                                                                                      91 
                                                                                      92 JsonObject& Networking::get_configuration(JsonBuffer& buf) {
                                                                                      93  JsonObject& root = buf.createObject();
                                                                                      94  root["hostname"] = this->hostname->get();
                                                                                      95  return root;
                                                                                      96 }
                                                                                      97 
                                                                                      98 bool Networking::set_configuration(const JsonObject& config) {
                                                                                      99  if (!config.containsKey("hostname")) {
                                                                                      100  return false;
                                                                                      101  }
                                                                                      102  this->hostname->set(config["hostname"].as<String>());
                                                                                      103  return true;
                                                                                      104 }
                                                                                      105 
                                                                                      107  wifi_manager->resetSettings();
                                                                                      108 }
                                                                                      void reset_settings()
                                                                                      Definition: networking.cpp:106
                                                                                      +
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override final
                                                                                      Definition: networking.cpp:92
                                                                                      -
                                                                                      ObservableValue< String > * get_hostname()
                                                                                      Definition: networking.cpp:71
                                                                                      -
                                                                                      virtual String get_config_schema() override
                                                                                      Definition: networking.cpp:81
                                                                                      +
                                                                                      ObservableValue< String > * get_hostname()
                                                                                      Definition: networking.cpp:72
                                                                                      +
                                                                                      virtual String get_config_schema() override
                                                                                      Definition: networking.cpp:88
                                                                                      #define WIFI_CONFIG_PORTAL_TIMEOUT
                                                                                      Definition: networking.cpp:11
                                                                                      -
                                                                                      virtual const T & get()
                                                                                      Definition: valueproducer.h:27
                                                                                      -
                                                                                      void set_hostname(String hostname)
                                                                                      Definition: networking.cpp:75
                                                                                      +
                                                                                      virtual const T & get()
                                                                                      Definition: valueproducer.h:29
                                                                                      +
                                                                                      void set_hostname(String hostname)
                                                                                      Definition: networking.cpp:76
                                                                                      virtual void save_configuration()
                                                                                      void save_config_callback()
                                                                                      Definition: networking.cpp:16
                                                                                      const String config_path
                                                                                      Definition: configurable.h:29
                                                                                      Networking(String config_path)
                                                                                      Definition: networking.cpp:20
                                                                                      -
                                                                                      virtual bool set_configuration(const JsonObject &config) override final
                                                                                      Definition: networking.cpp:97
                                                                                      +
                                                                                      virtual bool set_configuration(const JsonObject &config) override final
                                                                                      Definition: networking.cpp:98
                                                                                      void check_connection()
                                                                                      Definition: networking.cpp:29
                                                                                      -
                                                                                      void setup(std::function< void(bool)> connection_cb)
                                                                                      Definition: networking.cpp:36
                                                                                      +
                                                                                      void setup(std::function< void(bool)> connection_cb)
                                                                                      Definition: networking.cpp:37
                                                                                      void set(const T &value)
                                                                                      bool should_save_config
                                                                                      Definition: networking.cpp:14
                                                                                      diff --git a/docs/networking_8h.html b/docs/networking_8h.html index 4a26758d3..b92c59b4d 100644 --- a/docs/networking_8h.html +++ b/docs/networking_8h.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/networking_8h_source.html b/docs/networking_8h_source.html index 42b435109..ec99149a7 100644 --- a/docs/networking_8h_source.html +++ b/docs/networking_8h_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -91,21 +91,21 @@
                                                                                      networking.h
                                                                                      -Go to the documentation of this file.
                                                                                      1 #ifndef _networking_H_
                                                                                      2 #define _networking_H_
                                                                                      3 
                                                                                      4 #include "Arduino.h"
                                                                                      5 
                                                                                      6 // Local WebServer used to serve the configuration portal
                                                                                      7 #include <ESPAsyncWebServer.h>
                                                                                      8 #include <ESPAsyncWiFiManager.h>
                                                                                      9 
                                                                                      10 #include "system/configurable.h"
                                                                                      11 #include "system/observablevalue.h"
                                                                                      12 
                                                                                      13 class Networking : public Configurable {
                                                                                      14  public:
                                                                                      15  Networking(String config_path);
                                                                                      16  void setup(std::function<void(bool)> connection_cb);
                                                                                      18  virtual JsonObject& get_configuration(JsonBuffer& buf) override final;
                                                                                      19  virtual bool set_configuration(const JsonObject& config) override final;
                                                                                      20  virtual String get_config_schema() override;
                                                                                      21 
                                                                                      22  void set_hostname(String hostname);
                                                                                      23 
                                                                                      24  void reset_settings();
                                                                                      25 
                                                                                      26  protected:
                                                                                      27  void check_connection();
                                                                                      28  private:
                                                                                      29  AsyncWebServer* server;
                                                                                      30  DNSServer* dns;
                                                                                      31  AsyncWiFiManager* wifi_manager;
                                                                                      32  ObservableValue<String>* hostname;
                                                                                      33 };
                                                                                      34 
                                                                                      35 #endif
                                                                                      void reset_settings()
                                                                                      Definition: networking.cpp:105
                                                                                      -
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override final
                                                                                      Definition: networking.cpp:91
                                                                                      -
                                                                                      ObservableValue< String > * get_hostname()
                                                                                      Definition: networking.cpp:71
                                                                                      -
                                                                                      virtual String get_config_schema() override
                                                                                      Definition: networking.cpp:81
                                                                                      +Go to the documentation of this file.
                                                                                      1 #ifndef _networking_H_
                                                                                      2 #define _networking_H_
                                                                                      3 
                                                                                      4 #include "Arduino.h"
                                                                                      5 
                                                                                      6 // Local WebServer used to serve the configuration portal
                                                                                      7 #include <ESPAsyncWebServer.h>
                                                                                      8 #include <ESPAsyncWiFiManager.h>
                                                                                      9 
                                                                                      10 #include "system/configurable.h"
                                                                                      11 #include "system/observablevalue.h"
                                                                                      12 
                                                                                      13 class Networking : public Configurable {
                                                                                      14  public:
                                                                                      15  Networking(String config_path);
                                                                                      16  void setup(std::function<void(bool)> connection_cb);
                                                                                      18  virtual JsonObject& get_configuration(JsonBuffer& buf) override final;
                                                                                      19  virtual bool set_configuration(const JsonObject& config) override final;
                                                                                      20  virtual String get_config_schema() override;
                                                                                      21 
                                                                                      22  void set_hostname(String hostname);
                                                                                      23 
                                                                                      24  void reset_settings();
                                                                                      25 
                                                                                      26  protected:
                                                                                      27  void check_connection();
                                                                                      28  private:
                                                                                      29  AsyncWebServer* server;
                                                                                      30  DNSServer* dns;
                                                                                      31  AsyncWiFiManager* wifi_manager;
                                                                                      32  ObservableValue<String>* hostname;
                                                                                      33 };
                                                                                      34 
                                                                                      35 #endif
                                                                                      void reset_settings()
                                                                                      Definition: networking.cpp:106
                                                                                      +
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override final
                                                                                      Definition: networking.cpp:92
                                                                                      +
                                                                                      ObservableValue< String > * get_hostname()
                                                                                      Definition: networking.cpp:72
                                                                                      +
                                                                                      virtual String get_config_schema() override
                                                                                      Definition: networking.cpp:88
                                                                                      -
                                                                                      void set_hostname(String hostname)
                                                                                      Definition: networking.cpp:75
                                                                                      +
                                                                                      void set_hostname(String hostname)
                                                                                      Definition: networking.cpp:76
                                                                                      const String config_path
                                                                                      Definition: configurable.h:29
                                                                                      Networking(String config_path)
                                                                                      Definition: networking.cpp:20
                                                                                      -
                                                                                      virtual bool set_configuration(const JsonObject &config) override final
                                                                                      Definition: networking.cpp:97
                                                                                      +
                                                                                      virtual bool set_configuration(const JsonObject &config) override final
                                                                                      Definition: networking.cpp:98
                                                                                      void check_connection()
                                                                                      Definition: networking.cpp:29
                                                                                      -
                                                                                      void setup(std::function< void(bool)> connection_cb)
                                                                                      Definition: networking.cpp:36
                                                                                      +
                                                                                      void setup(std::function< void(bool)> connection_cb)
                                                                                      Definition: networking.cpp:37
                                                                                      diff --git a/docs/nmea__parser_8cpp.html b/docs/nmea__parser_8cpp.html index 268a62c95..7fe9fd8e4 100644 --- a/docs/nmea__parser_8cpp.html +++ b/docs/nmea__parser_8cpp.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/nmea__parser_8cpp_source.html b/docs/nmea__parser_8cpp_source.html index 7fb590619..c7c599db8 100644 --- a/docs/nmea__parser_8cpp_source.html +++ b/docs/nmea__parser_8cpp_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/nmea__parser_8h.html b/docs/nmea__parser_8h.html index acb8e23fd..8843c5c80 100644 --- a/docs/nmea__parser_8h.html +++ b/docs/nmea__parser_8h.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -121,13 +121,13 @@
                                                                                      - - - + + + - - - + + +
                                                                                      diff --git a/docs/nmea__parser_8h__dep__incl.map b/docs/nmea__parser_8h__dep__incl.map index 18f758f60..5d4c75ce0 100644 --- a/docs/nmea__parser_8h__dep__incl.map +++ b/docs/nmea__parser_8h__dep__incl.map @@ -1,9 +1,9 @@ - - - + + + - - - + + + diff --git a/docs/nmea__parser_8h__dep__incl.md5 b/docs/nmea__parser_8h__dep__incl.md5 index 4a99eeb15..3d07c6a25 100644 --- a/docs/nmea__parser_8h__dep__incl.md5 +++ b/docs/nmea__parser_8h__dep__incl.md5 @@ -1 +1 @@ -dac0c91389ed4226e6b3295be5dd6d38 \ No newline at end of file +39f34dfb494d09a8299a339e7d4e05f2 \ No newline at end of file diff --git a/docs/nmea__parser_8h__dep__incl.png b/docs/nmea__parser_8h__dep__incl.png index 6f87e6d08..bc6c65e2c 100644 Binary files a/docs/nmea__parser_8h__dep__incl.png and b/docs/nmea__parser_8h__dep__incl.png differ diff --git a/docs/nmea__parser_8h_source.html b/docs/nmea__parser_8h_source.html index f3e4415de..76271811d 100644 --- a/docs/nmea__parser_8h_source.html +++ b/docs/nmea__parser_8h_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/observable_8cpp.html b/docs/observable_8cpp.html index a3672879b..f24e153ea 100644 --- a/docs/observable_8cpp.html +++ b/docs/observable_8cpp.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/observable_8cpp_source.html b/docs/observable_8cpp_source.html index 20f78daef..e913b2a5b 100644 --- a/docs/observable_8cpp_source.html +++ b/docs/observable_8cpp_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/observable_8h.html b/docs/observable_8h.html index 24d14599f..626a15643 100644 --- a/docs/observable_8h.html +++ b/docs/observable_8h.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -112,56 +112,56 @@
                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                      diff --git a/docs/observable_8h__dep__incl.map b/docs/observable_8h__dep__incl.map index 95cee01da..a94cb0389 100644 --- a/docs/observable_8h__dep__incl.map +++ b/docs/observable_8h__dep__incl.map @@ -1,52 +1,52 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/observable_8h__dep__incl.md5 b/docs/observable_8h__dep__incl.md5 index 9a37450d6..85ef4e0ed 100644 --- a/docs/observable_8h__dep__incl.md5 +++ b/docs/observable_8h__dep__incl.md5 @@ -1 +1 @@ -08efb3371e10cd089add42ab16216f32 \ No newline at end of file +e462f49990c4ecfd57fb092015129dff \ No newline at end of file diff --git a/docs/observable_8h__dep__incl.png b/docs/observable_8h__dep__incl.png index 7d938bb03..af8ad67d6 100644 Binary files a/docs/observable_8h__dep__incl.png and b/docs/observable_8h__dep__incl.png differ diff --git a/docs/observable_8h_source.html b/docs/observable_8h_source.html index 9786c0ac0..135de3d87 100644 --- a/docs/observable_8h_source.html +++ b/docs/observable_8h_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/observablevalue_8h.html b/docs/observablevalue_8h.html index aa34bacbd..087303930 100644 --- a/docs/observablevalue_8h.html +++ b/docs/observablevalue_8h.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -130,8 +130,8 @@ - - + + diff --git a/docs/observablevalue_8h__dep__incl.map b/docs/observablevalue_8h__dep__incl.map index 967165df1..f7602fd1f 100644 --- a/docs/observablevalue_8h__dep__incl.map +++ b/docs/observablevalue_8h__dep__incl.map @@ -13,6 +13,6 @@ - - + + diff --git a/docs/observablevalue_8h__dep__incl.md5 b/docs/observablevalue_8h__dep__incl.md5 index 8151c18c6..985b7123a 100644 --- a/docs/observablevalue_8h__dep__incl.md5 +++ b/docs/observablevalue_8h__dep__incl.md5 @@ -1 +1 @@ -60376e786fafcb0be4cab9701db5222d \ No newline at end of file +9900600bfb1df8cc0d284beb04d6d556 \ No newline at end of file diff --git a/docs/observablevalue_8h__dep__incl.png b/docs/observablevalue_8h__dep__incl.png index 129dda384..6fa213ccc 100644 Binary files a/docs/observablevalue_8h__dep__incl.png and b/docs/observablevalue_8h__dep__incl.png differ diff --git a/docs/observablevalue_8h_source.html b/docs/observablevalue_8h_source.html index 6d2e8e869..8f2f0acff 100644 --- a/docs/observablevalue_8h_source.html +++ b/docs/observablevalue_8h_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/onewire__temperature_8cpp.html b/docs/onewire__temperature_8cpp.html index 6215aab50..16924ca03 100644 --- a/docs/onewire__temperature_8cpp.html +++ b/docs/onewire__temperature_8cpp.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/onewire__temperature_8cpp_source.html b/docs/onewire__temperature_8cpp_source.html index 6bfd19d3f..7db529f9f 100644 --- a/docs/onewire__temperature_8cpp_source.html +++ b/docs/onewire__temperature_8cpp_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -91,8 +91,8 @@
                                                                                      onewire_temperature.cpp
                                                                                      -Go to the documentation of this file.
                                                                                      1 #include "onewire_temperature.h"
                                                                                      2 
                                                                                      3 #include <algorithm>
                                                                                      4 
                                                                                      5 #include <DallasTemperature.h>
                                                                                      6 #include <OneWire.h>
                                                                                      7 
                                                                                      8 #include "device.h"
                                                                                      9 #include "sensesp.h"
                                                                                      10 
                                                                                      11 const OWDevAddr null_ow_addr = {0, 0, 0, 0, 0, 0, 0, 0};
                                                                                      12 
                                                                                      13 void owda_to_string(char* str, const OWDevAddr& addr) {
                                                                                      14  // brute force it
                                                                                      15  sprintf(str,
                                                                                      16  "%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x",
                                                                                      17  addr[0], addr[1], addr[2], addr[3],
                                                                                      18  addr[4], addr[5], addr[6], addr[7]);
                                                                                      19 }
                                                                                      20 
                                                                                      21 bool string_to_owda(OWDevAddr* addr, const char* str) {
                                                                                      22  // brute force it
                                                                                      23  uint vals[8];
                                                                                      24  int num_items = sscanf(str,
                                                                                      25  "%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x",
                                                                                      26  &vals[0], &vals[1], &vals[2], &vals[3],
                                                                                      27  &vals[4], &vals[5], &vals[6], &vals[7]);
                                                                                      28  for (int i=0; i<8; i++) {
                                                                                      29  (*addr)[i] = vals[i];
                                                                                      30  }
                                                                                      31  return num_items==8;
                                                                                      32 }
                                                                                      33 
                                                                                      35  int pin, String config_path)
                                                                                      36  : Device(config_path) {
                                                                                      37  onewire = new OneWire(pin);
                                                                                      38  sensors = new DallasTemperature(onewire);
                                                                                      39  sensors->begin();
                                                                                      40 
                                                                                      41  int num_devices = sensors->getDeviceCount();
                                                                                      42  debugI("OneWire devices found: %d", num_devices);
                                                                                      43 
                                                                                      44  DeviceAddress addr;
                                                                                      45  OWDevAddr owda;
                                                                                      46  for (int i=0; i<num_devices; i++) {
                                                                                      47  sensors->getAddress(addr, i);
                                                                                      48  std::copy(std::begin(addr), std::end(addr), std::begin(owda));
                                                                                      49  known_addresses.insert(owda);
                                                                                      50  #ifndef DEBUG_DISABLED
                                                                                      51  char addrstr[24];
                                                                                      52  owda_to_string(addrstr, owda);
                                                                                      53  debugI("Found OneWire device %s", addrstr);
                                                                                      54  #endif
                                                                                      55  }
                                                                                      56 
                                                                                      57  // all conversions will by async
                                                                                      58  sensors->setWaitForConversion(false);
                                                                                      59  // always use maximum resolution
                                                                                      60  sensors->setResolution(12);
                                                                                      61 }
                                                                                      62 
                                                                                      64  auto search_known = known_addresses.find(addr);
                                                                                      65  if (search_known == known_addresses.end()) {
                                                                                      66  // address is not known
                                                                                      67  return false;
                                                                                      68  }
                                                                                      69  auto search_reg = registered_addresses.find(addr);
                                                                                      70  if (search_reg != registered_addresses.end()) {
                                                                                      71  // address is already registered
                                                                                      72  return false;
                                                                                      73  }
                                                                                      74 
                                                                                      75  registered_addresses.insert(addr);
                                                                                      76  return true;
                                                                                      77 }
                                                                                      78 
                                                                                      80  // find the next address from known_addresses which is
                                                                                      81  // not present in registered_addresses
                                                                                      82  for (auto known : known_addresses) {
                                                                                      83  auto reg_it = registered_addresses.find(known);
                                                                                      84  if (reg_it == registered_addresses.end()) {
                                                                                      85  *addr = known;
                                                                                      86  return true;
                                                                                      87  }
                                                                                      88  }
                                                                                      89  return false;
                                                                                      90 }
                                                                                      91 
                                                                                      93  DallasTemperatureSensors* dts, String config_path)
                                                                                      94  : NumericDevice(config_path), dts{dts} {
                                                                                      95  load_configuration();
                                                                                      96  if (address==null_ow_addr) {
                                                                                      97  // previously unconfigured device
                                                                                      98  bool success = dts->get_next_address(&address);
                                                                                      99  if (!success) {
                                                                                      100  debugE("FATAL: Could not find an available OneWire device");
                                                                                      101  failed = true;
                                                                                      102  } else {
                                                                                      103  dts->register_address(address);
                                                                                      104  }
                                                                                      105  } else {
                                                                                      106  bool success = dts->register_address(address);
                                                                                      107  if (!success) {
                                                                                      108  debugE("FATAL: Unable to register OneWire device");
                                                                                      109  failed = true;
                                                                                      110  }
                                                                                      111  }
                                                                                      112 }
                                                                                      113 
                                                                                      115  if (!failed) {
                                                                                      116  app.onRepeat(1000, [this](){ this->update(); });
                                                                                      117  }
                                                                                      118 }
                                                                                      119 
                                                                                      120 
                                                                                      121 void OneWireTemperature::update() {
                                                                                      122  dts->sensors->requestTemperaturesByAddress(address.data());
                                                                                      123 
                                                                                      124  app.onDelay(750, [this](){ this->read_value(); });
                                                                                      125 }
                                                                                      126 
                                                                                      127 void OneWireTemperature::read_value() {
                                                                                      128  output = dts->sensors->getTempC(address.data());
                                                                                      129  this->notify();
                                                                                      130 }
                                                                                      131 
                                                                                      132 JsonObject& OneWireTemperature::get_configuration(JsonBuffer& buf) {
                                                                                      133  JsonObject& root = buf.createObject();
                                                                                      134  root.set("value", output);
                                                                                      135  char addr_str[24];
                                                                                      136  owda_to_string(addr_str, address);
                                                                                      137  root.set("address", addr_str);
                                                                                      138  root.set("failed", failed);
                                                                                      139  return root;
                                                                                      140 }
                                                                                      141 
                                                                                      142 
                                                                                      144  return R"({
                                                                                      145  "type": "object",
                                                                                      146  "properties": {
                                                                                      147  "address": { "title": "OneWire address", "type": "string" },
                                                                                      148  "value": { "title": "Last value", "type" : "number", "readOnly": true }
                                                                                      149  }
                                                                                      150  })";
                                                                                      151 }
                                                                                      152 
                                                                                      153 
                                                                                      154 
                                                                                      155 bool OneWireTemperature::set_configuration(const JsonObject& config) {
                                                                                      156  if (!config.containsKey("address")) {
                                                                                      157  return false;
                                                                                      158  }
                                                                                      159  string_to_owda(&address, config["address"]);
                                                                                      160  return true;
                                                                                      161 }
                                                                                      DallasTemperatureSensors(int pin, String config_path="")
                                                                                      -
                                                                                      virtual String get_config_schema() override
                                                                                      +Go to the documentation of this file.
                                                                                      1 #include "onewire_temperature.h"
                                                                                      2 
                                                                                      3 #include <algorithm>
                                                                                      4 
                                                                                      5 #include <DallasTemperature.h>
                                                                                      6 #include <OneWire.h>
                                                                                      7 
                                                                                      8 #include "device.h"
                                                                                      9 #include "sensesp.h"
                                                                                      10 
                                                                                      11 const OWDevAddr null_ow_addr = {0, 0, 0, 0, 0, 0, 0, 0};
                                                                                      12 
                                                                                      13 void owda_to_string(char* str, const OWDevAddr& addr) {
                                                                                      14  // brute force it
                                                                                      15  sprintf(str,
                                                                                      16  "%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x",
                                                                                      17  addr[0], addr[1], addr[2], addr[3],
                                                                                      18  addr[4], addr[5], addr[6], addr[7]);
                                                                                      19 }
                                                                                      20 
                                                                                      21 bool string_to_owda(OWDevAddr* addr, const char* str) {
                                                                                      22  // brute force it
                                                                                      23  uint vals[8];
                                                                                      24  int num_items = sscanf(str,
                                                                                      25  "%02x:%02x:%02x:%02x:%02x:%02x:%02x:%02x",
                                                                                      26  &vals[0], &vals[1], &vals[2], &vals[3],
                                                                                      27  &vals[4], &vals[5], &vals[6], &vals[7]);
                                                                                      28  for (int i=0; i<8; i++) {
                                                                                      29  (*addr)[i] = vals[i];
                                                                                      30  }
                                                                                      31  return num_items==8;
                                                                                      32 }
                                                                                      33 
                                                                                      35  int pin, String config_path)
                                                                                      36  : Device(config_path) {
                                                                                      37  onewire = new OneWire(pin);
                                                                                      38  sensors = new DallasTemperature(onewire);
                                                                                      39  sensors->begin();
                                                                                      40 
                                                                                      41  int num_devices = sensors->getDeviceCount();
                                                                                      42  debugI("OneWire devices found: %d", num_devices);
                                                                                      43 
                                                                                      44  DeviceAddress addr;
                                                                                      45  OWDevAddr owda;
                                                                                      46  for (int i=0; i<num_devices; i++) {
                                                                                      47  sensors->getAddress(addr, i);
                                                                                      48  std::copy(std::begin(addr), std::end(addr), std::begin(owda));
                                                                                      49  known_addresses.insert(owda);
                                                                                      50  #ifndef DEBUG_DISABLED
                                                                                      51  char addrstr[24];
                                                                                      52  owda_to_string(addrstr, owda);
                                                                                      53  debugI("Found OneWire device %s", addrstr);
                                                                                      54  #endif
                                                                                      55  }
                                                                                      56 
                                                                                      57  // all conversions will by async
                                                                                      58  sensors->setWaitForConversion(false);
                                                                                      59  // always use maximum resolution
                                                                                      60  sensors->setResolution(12);
                                                                                      61 }
                                                                                      62 
                                                                                      64  auto search_known = known_addresses.find(addr);
                                                                                      65  if (search_known == known_addresses.end()) {
                                                                                      66  // address is not known
                                                                                      67  return false;
                                                                                      68  }
                                                                                      69  auto search_reg = registered_addresses.find(addr);
                                                                                      70  if (search_reg != registered_addresses.end()) {
                                                                                      71  // address is already registered
                                                                                      72  return false;
                                                                                      73  }
                                                                                      74 
                                                                                      75  registered_addresses.insert(addr);
                                                                                      76  return true;
                                                                                      77 }
                                                                                      78 
                                                                                      80  // find the next address from known_addresses which is
                                                                                      81  // not present in registered_addresses
                                                                                      82  for (auto known : known_addresses) {
                                                                                      83  auto reg_it = registered_addresses.find(known);
                                                                                      84  if (reg_it == registered_addresses.end()) {
                                                                                      85  *addr = known;
                                                                                      86  return true;
                                                                                      87  }
                                                                                      88  }
                                                                                      89  return false;
                                                                                      90 }
                                                                                      91 
                                                                                      93  DallasTemperatureSensors* dts, String config_path)
                                                                                      94  : NumericDevice(config_path), dts{dts} {
                                                                                      95  load_configuration();
                                                                                      96  if (address==null_ow_addr) {
                                                                                      97  // previously unconfigured device
                                                                                      98  bool success = dts->get_next_address(&address);
                                                                                      99  if (!success) {
                                                                                      100  debugE("FATAL: No more unregistered OneWire devices left");
                                                                                      101  found = false;
                                                                                      102  } else {
                                                                                      103  debugD("Registered previously unconfigured OneWire device");
                                                                                      104  dts->register_address(address);
                                                                                      105  }
                                                                                      106  } else {
                                                                                      107  bool success = dts->register_address(address);
                                                                                      108  if (!success) {
                                                                                      109  debugE("FATAL: Previously saved OneWire device could no longer be found");
                                                                                      110  found = false;
                                                                                      111  }
                                                                                      112  }
                                                                                      113 }
                                                                                      114 
                                                                                      116  if (found) {
                                                                                      117  app.onRepeat(1000, [this](){ this->update(); });
                                                                                      118  }
                                                                                      119 }
                                                                                      120 
                                                                                      121 void OneWireTemperature::update() {
                                                                                      122  dts->sensors->requestTemperaturesByAddress(address.data());
                                                                                      123 
                                                                                      124  app.onDelay(750, [this](){ this->read_value(); });
                                                                                      125 }
                                                                                      126 
                                                                                      127 void OneWireTemperature::read_value() {
                                                                                      128  output = dts->sensors->getTempC(address.data());
                                                                                      129  this->notify();
                                                                                      130 }
                                                                                      131 
                                                                                      132 JsonObject& OneWireTemperature::get_configuration(JsonBuffer& buf) {
                                                                                      133  JsonObject& root = buf.createObject();
                                                                                      134  root.set("value", output);
                                                                                      135  char addr_str[24];
                                                                                      136  owda_to_string(addr_str, address);
                                                                                      137  root.set("address", addr_str);
                                                                                      138  root.set("found", found);
                                                                                      139  return root;
                                                                                      140 }
                                                                                      141 
                                                                                      142 static const char SCHEMA[] PROGMEM = R"({
                                                                                      143  "type": "object",
                                                                                      144  "properties": {
                                                                                      145  "address": { "title": "OneWire address", "type": "string" },
                                                                                      146  "found": { "title": "Device found", "type": "boolean", "readOnly": true },
                                                                                      147  "value": { "title": "Last value", "type" : "number", "readOnly": true }
                                                                                      148  }
                                                                                      149  })";
                                                                                      150 
                                                                                      152  return FPSTR(SCHEMA);
                                                                                      153 }
                                                                                      154 
                                                                                      155 bool OneWireTemperature::set_configuration(const JsonObject& config) {
                                                                                      156  if (!config.containsKey("address")) {
                                                                                      157  return false;
                                                                                      158  }
                                                                                      159  string_to_owda(&address, config["address"]);
                                                                                      160  return true;
                                                                                      161 }
                                                                                      DallasTemperatureSensors(int pin, String config_path="")
                                                                                      +
                                                                                      virtual String get_config_schema() override
                                                                                      bool string_to_owda(OWDevAddr *addr, const char *str)
                                                                                      bool get_next_address(OWDevAddr *addr)
                                                                                      virtual bool set_configuration(const JsonObject &config) override final
                                                                                      @@ -107,9 +107,9 @@ - +
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override final
                                                                                      -
                                                                                      void enable() override final
                                                                                      +
                                                                                      void enable() override final
                                                                                      ReactESP app
                                                                                      std::array< uint8_t, 8 > OWDevAddr
                                                                                      diff --git a/docs/onewire__temperature_8h.html b/docs/onewire__temperature_8h.html index 902f18198..153fb9a0b 100644 --- a/docs/onewire__temperature_8h.html +++ b/docs/onewire__temperature_8h.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/onewire__temperature_8h_source.html b/docs/onewire__temperature_8h_source.html index 9d7c55cc7..c5053161a 100644 --- a/docs/onewire__temperature_8h_source.html +++ b/docs/onewire__temperature_8h_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -91,8 +91,8 @@
                                                                                      onewire_temperature.h
                                                                                      -Go to the documentation of this file.
                                                                                      1 #ifndef _onewire_H_
                                                                                      2 #define _onewire_H_
                                                                                      3 
                                                                                      4 #include <set>
                                                                                      5 
                                                                                      6 #include <DallasTemperature.h>
                                                                                      7 #include <OneWire.h>
                                                                                      8 
                                                                                      9 #include "device.h"
                                                                                      10 
                                                                                      11 typedef std::array<uint8_t, 8> OWDevAddr;
                                                                                      12 
                                                                                      14  public:
                                                                                      15  DallasTemperatureSensors(int pin, String config_path="");
                                                                                      16  void enable() override final {}
                                                                                      17  bool register_address(const OWDevAddr& addr);
                                                                                      18  bool get_next_address(OWDevAddr* addr);
                                                                                      19  DallasTemperature* sensors;
                                                                                      20  private:
                                                                                      21  OneWire* onewire;
                                                                                      22  uint8_t next_device = 0;
                                                                                      23  std::set<OWDevAddr> known_addresses;
                                                                                      24  std::set<OWDevAddr> registered_addresses;
                                                                                      25 };
                                                                                      26 
                                                                                      28  public:
                                                                                      30  String config_path="");
                                                                                      31  void enable() override final;
                                                                                      32  virtual JsonObject& get_configuration(JsonBuffer& buf) override final;
                                                                                      33  virtual bool set_configuration(const JsonObject& config) override final;
                                                                                      34  virtual String get_config_schema() override;
                                                                                      35 
                                                                                      36  private:
                                                                                      37  OneWire* onewire;
                                                                                      39  bool failed=false;
                                                                                      40  OWDevAddr address = {};
                                                                                      41  void update();
                                                                                      42  void read_value();
                                                                                      43 };
                                                                                      44 
                                                                                      45 #endif
                                                                                      DallasTemperatureSensors(int pin, String config_path="")
                                                                                      -
                                                                                      virtual String get_config_schema() override
                                                                                      +Go to the documentation of this file.
                                                                                      1 #ifndef _onewire_H_
                                                                                      2 #define _onewire_H_
                                                                                      3 
                                                                                      4 #include <set>
                                                                                      5 
                                                                                      6 #include <DallasTemperature.h>
                                                                                      7 #include <OneWire.h>
                                                                                      8 
                                                                                      9 #include "device.h"
                                                                                      10 
                                                                                      11 typedef std::array<uint8_t, 8> OWDevAddr;
                                                                                      12 
                                                                                      14  public:
                                                                                      15  DallasTemperatureSensors(int pin, String config_path="");
                                                                                      16  void enable() override final {}
                                                                                      17  bool register_address(const OWDevAddr& addr);
                                                                                      18  bool get_next_address(OWDevAddr* addr);
                                                                                      19  DallasTemperature* sensors;
                                                                                      20  private:
                                                                                      21  OneWire* onewire;
                                                                                      22  uint8_t next_device = 0;
                                                                                      23  std::set<OWDevAddr> known_addresses;
                                                                                      24  std::set<OWDevAddr> registered_addresses;
                                                                                      25 };
                                                                                      26 
                                                                                      28  public:
                                                                                      30  String config_path="");
                                                                                      31  void enable() override final;
                                                                                      32  virtual JsonObject& get_configuration(JsonBuffer& buf) override final;
                                                                                      33  virtual bool set_configuration(const JsonObject& config) override final;
                                                                                      34  virtual String get_config_schema() override;
                                                                                      35 
                                                                                      36  private:
                                                                                      37  OneWire* onewire;
                                                                                      39  bool found = true;
                                                                                      40  OWDevAddr address = {};
                                                                                      41  void update();
                                                                                      42  void read_value();
                                                                                      43 };
                                                                                      44 
                                                                                      45 #endif
                                                                                      DallasTemperatureSensors(int pin, String config_path="")
                                                                                      +
                                                                                      virtual String get_config_schema() override
                                                                                      bool get_next_address(OWDevAddr *addr)
                                                                                      virtual bool set_configuration(const JsonObject &config) override final
                                                                                      Definition: device.h:15
                                                                                      @@ -106,7 +106,7 @@
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override final
                                                                                      -
                                                                                      void enable() override final
                                                                                      +
                                                                                      void enable() override final
                                                                                      std::array< uint8_t, 8 > OWDevAddr
                                                                                      diff --git a/docs/ota_8cpp.html b/docs/ota_8cpp.html index ad14833ce..7c42ecd7c 100644 --- a/docs/ota_8cpp.html +++ b/docs/ota_8cpp.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/ota_8cpp_source.html b/docs/ota_8cpp_source.html index 675304ca0..dee99578b 100644 --- a/docs/ota_8cpp_source.html +++ b/docs/ota_8cpp_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/ota_8h.html b/docs/ota_8h.html index 737955721..ed38817fb 100644 --- a/docs/ota_8h.html +++ b/docs/ota_8h.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/ota_8h_source.html b/docs/ota_8h_source.html index c6c14f425..4255363e8 100644 --- a/docs/ota_8h_source.html +++ b/docs/ota_8h_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/search/all_0.js b/docs/search/all_0.js index 9498f5c8e..f8ca08153 100644 --- a/docs/search/all_0.js +++ b/docs/search/all_0.js @@ -1,15 +1,15 @@ var searchData= [ ['add_5fsentence_5fparser',['add_sentence_parser',['../class_n_m_e_a_parser.html#a438b3fd8f8587b55a3785656651f73a6',1,'NMEAParser']]], - ['addsample',['addSample',['../class_interpolate.html#a403cf307fbec7e985b8b736f8d25cd43',1,'Interpolate']]], + ['addsample',['addSample',['../class_curve_interpolator.html#a314df8dc54dc73798197c9c9ce6859ac',1,'CurveInterpolator']]], ['altitude',['altitude',['../struct_position.html#add1df8470102854f3950fc9dd2fee06d',1,'Position']]], ['analog_5finput_2ecpp',['analog_input.cpp',['../analog__input_8cpp.html',1,'']]], ['analog_5finput_2eh',['analog_input.h',['../analog__input_8h.html',1,'']]], ['analoginput',['AnalogInput',['../class_analog_input.html',1,'']]], - ['analogvoltage',['AnalogVoltage',['../class_analog_voltage.html',1,'AnalogVoltage'],['../class_analog_voltage.html#aa685c09a7c29bec4ed7b89e6317ee127',1,'AnalogVoltage::AnalogVoltage()']]], + ['analogvoltage',['AnalogVoltage',['../class_analog_voltage.html',1,'AnalogVoltage'],['../class_analog_voltage.html#a22cee4790f99a391a883370cac00894a',1,'AnalogVoltage::AnalogVoltage()']]], ['analogvoltage_2eh',['analogvoltage.h',['../analogvoltage_8h.html',1,'']]], ['app',['app',['../sensesp_8h.html#aaa2ffd80e6f851dc6bb43c95a2c7d26f',1,'sensesp.h']]], ['append',['append',['../class_s_k_delta.html#afacfa3952be6179d0e96960575f393a8',1,'SKDelta']]], - ['as_5fsignalk',['as_signalK',['../class_signal_k_source.html#aadf429c623392e8717957bc3c09852d0',1,'SignalKSource::as_signalK()'],['../class_difference.html#ae997bff433d26706bf892a9e62a4f16e',1,'Difference::as_signalK()'],['../class_frequency.html#a8c800e44383c952c3afb3653713e9f82',1,'Frequency::as_signalK()'],['../class_g_n_s_s_position.html#a070948f5a4729aa16c2943ba90e6760e',1,'GNSSPosition::as_signalK()'],['../class_integrator.html#ad0444330433ed9e46f55050da21f0ea5',1,'Integrator::as_signalK()'],['../class_interpolate.html#ade58a8591eb935cb5577ed40435fb4d4',1,'Interpolate::as_signalK()'],['../class_linear.html#a03c3950e9baabef8f54eb31d65b752fd',1,'Linear::as_signalK()'],['../class_moving_average.html#afb4db64f5dbaae11bc4d3cd09b8b8af0',1,'MovingAverage::as_signalK()'],['../class_passthrough.html#acc3e3b30c646d1e49bc9b003e7edb97e',1,'Passthrough::as_signalK()'],['../class_time_string.html#af290f6820906cba8d628ac04aad09378',1,'TimeString::as_signalK()'],['../class_voltage_divider_r2.html#a1d13a6e6ddac3468c3722dc884a64ffd',1,'VoltageDividerR2::as_signalK()']]], + ['as_5fsignalk',['as_signalK',['../class_s_k_emitter.html#aa08f537c7d7b1782fea4d381a65cf521',1,'SKEmitter::as_signalK()'],['../class_s_k_output.html#a07b3524ca9ffa1dff03f4bf522d9e3d2',1,'SKOutput::as_signalK()'],['../class_s_k_output_position.html#a8738584e0866f15b75748e902834c547',1,'SKOutputPosition::as_signalK()'],['../class_s_k_output_time.html#a09b9f813788470bd06891f34ba58d84b',1,'SKOutputTime::as_signalK()']]], ['attach',['attach',['../class_observable.html#af72ed9c9cf7157a33caad4b930232e69',1,'Observable']]] ]; diff --git a/docs/search/all_1.js b/docs/search/all_1.js index 20af72fda..a9b5514cd 100644 --- a/docs/search/all_1.js +++ b/docs/search/all_1.js @@ -5,5 +5,5 @@ var searchData= ['baseline_5fprojection',['baseline_projection',['../struct_n_m_e_a_data.html#a3ae9e3d23c088e1c435acf4c232d6a5c',1,'NMEAData']]], ['booleanconsumer',['BooleanConsumer',['../valueconsumer_8h.html#abea8a189967941972b3e7c5a329c4963',1,'valueconsumer.h']]], ['booleanproducer',['BooleanProducer',['../valueproducer_8h.html#a79edc4b65652f6948d690891bb6d7e0c',1,'valueproducer.h']]], - ['booleantransform',['BooleanTransform',['../transform_8h.html#acbd22cace30bc4704b42c76e0d1b5baf',1,'transform.h']]] + ['booleantransform',['BooleanTransform',['../transform_8h.html#ac1617ff234bef4e8a50341c1d6943246',1,'transform.h']]] ]; diff --git a/docs/search/all_10.js b/docs/search/all_10.js index 5ffb4db39..97b5f7776 100644 --- a/docs/search/all_10.js +++ b/docs/search/all_10.js @@ -1,6 +1,6 @@ var searchData= [ - ['sample',['Sample',['../class_interpolate_1_1_sample.html',1,'Interpolate::Sample'],['../class_interpolate_1_1_sample.html#a7e8ee6d431c14a31b87b8fe6607178e1',1,'Interpolate::Sample::Sample()'],['../class_interpolate_1_1_sample.html#ada1514b7936ed3e5f7d1a941c3672d1c',1,'Interpolate::Sample::Sample(float input, float output)'],['../class_interpolate_1_1_sample.html#a25964bd499e52498f179cd07a7f3876c',1,'Interpolate::Sample::Sample(JsonObject &obj)']]], + ['sample',['Sample',['../class_curve_interpolator_1_1_sample.html',1,'CurveInterpolator::Sample'],['../class_curve_interpolator_1_1_sample.html#a7ad23733bf31c9a8ccbe9689b55f6d67',1,'CurveInterpolator::Sample::Sample()'],['../class_curve_interpolator_1_1_sample.html#aa2ed35560a823ced306ef02a50d95cac',1,'CurveInterpolator::Sample::Sample(float input, float output)'],['../class_curve_interpolator_1_1_sample.html#a5f69567a227e29b795b68e4310a9da40',1,'CurveInterpolator::Sample::Sample(JsonObject &obj)']]], ['save_5fconfig_5fcallback',['save_config_callback',['../networking_8cpp.html#a7930cb24915efc348611f4c48d1d5e4c',1,'networking.cpp']]], ['save_5fconfiguration',['save_configuration',['../class_configurable.html#a657419f13060caa20c45a41935b9d53a',1,'Configurable']]], ['send_5fdelta',['send_delta',['../class_w_s_client.html#ab6bcc3fb4cfe71aff3929480fab9bd5a',1,'WSClient']]], @@ -13,35 +13,48 @@ var searchData= ['sentence',['sentence',['../class_sentence_parser.html#aa079d8ee1b96e2f03a9c7a1f2ddf7519',1,'SentenceParser::sentence()'],['../class_g_p_g_g_a_sentence_parser.html#ac70d60b587cd0e48479c397bb30983a3',1,'GPGGASentenceParser::sentence()'],['../class_g_p_g_l_l_sentence_parser.html#acbee347184ae22343a9af2515ae57c98',1,'GPGLLSentenceParser::sentence()'],['../class_g_p_r_m_c_sentence_parser.html#a75afdae2ce4e8a27676d86ef2f5cbf9f',1,'GPRMCSentenceParser::sentence()'],['../class_p_s_t_i_sentence_parser.html#add6764d7c0579101840b82a86f6bd2ef',1,'PSTISentenceParser::sentence()'],['../class_p_s_t_i030_sentence_parser.html#adf5b386bffd76b1055d70aa59615d493',1,'PSTI030SentenceParser::sentence()'],['../class_p_s_t_i032_sentence_parser.html#acbe297f07ea6729d870ec8222535b1ce',1,'PSTI032SentenceParser::sentence()']]], ['sentenceparser',['SentenceParser',['../class_sentence_parser.html',1,'SentenceParser'],['../class_sentence_parser.html#a20be85c734aab87cf783aaa6a999a29a',1,'SentenceParser::SentenceParser()']]], ['set',['set',['../class_observable_value.html#a51cf25d4951d3214021da0c25985838d',1,'ObservableValue']]], - ['set_5fconfiguration',['set_configuration',['../class_one_wire_temperature.html#a83bce20a52e396dbd97a43a6e72b2824',1,'OneWireTemperature::set_configuration()'],['../class_networking.html#a59d475a2f12b88ef8334274a9a0b1cee',1,'Networking::set_configuration()'],['../class_w_s_client.html#ad099870379ee102fa4f5b3b584b50658',1,'WSClient::set_configuration()'],['../class_configurable.html#a6e0281fe25cfbdf024bdb05147ffb52b',1,'Configurable::set_configuration()'],['../class_difference.html#a2c34de951c3653ecf75d7edff833f2e0',1,'Difference::set_configuration()'],['../class_frequency.html#a52099d6dbece2eab9ec8b053ab28cdf4',1,'Frequency::set_configuration()'],['../class_g_n_s_s_position.html#a142b7c97d1ff603c513c8e63598c4aef',1,'GNSSPosition::set_configuration()'],['../class_integrator.html#aa53205d3211635dad0a035adf5d511a6',1,'Integrator::set_configuration()'],['../class_interpolate.html#ad1b5b270b694b351248a78186769a114',1,'Interpolate::set_configuration()'],['../class_linear.html#a0135f75a32f4ee0ae76383f10bb5e74b',1,'Linear::set_configuration()'],['../class_moving_average.html#ac8d53bded62d48de3533bea218e86d66',1,'MovingAverage::set_configuration()'],['../class_passthrough.html#ae3a80dd8daac718da3c75eb9eb45197a',1,'Passthrough::set_configuration()'],['../class_time_string.html#a4fbc04b63761975f99f6a812501da0b1',1,'TimeString::set_configuration()'],['../class_voltage_divider_r2.html#a805b64252dccfd3720ce5fc0f84964b3',1,'VoltageDividerR2::set_configuration()']]], + ['set_5fconfiguration',['set_configuration',['../class_one_wire_temperature.html#a83bce20a52e396dbd97a43a6e72b2824',1,'OneWireTemperature::set_configuration()'],['../class_networking.html#a59d475a2f12b88ef8334274a9a0b1cee',1,'Networking::set_configuration()'],['../class_w_s_client.html#ad099870379ee102fa4f5b3b584b50658',1,'WSClient::set_configuration()'],['../class_s_k_output.html#a406e7e56220dd41bd567c56c0e6b9a4d',1,'SKOutput::set_configuration()'],['../class_s_k_output_position.html#a00764a4cad14b5a2ccb6a6c484552229',1,'SKOutputPosition::set_configuration()'],['../class_s_k_output_time.html#a41ad61c700a444916873e908612eca63',1,'SKOutputTime::set_configuration()'],['../class_configurable.html#a6e0281fe25cfbdf024bdb05147ffb52b',1,'Configurable::set_configuration()'],['../class_curve_interpolator.html#acfda195c475a261d2e2a3af365fd6c19',1,'CurveInterpolator::set_configuration()'],['../class_difference.html#a57e134a00cd6688d147f93c662520040',1,'Difference::set_configuration()'],['../class_frequency.html#a87d16c67ce064b9b0f671747808c3963',1,'Frequency::set_configuration()'],['../class_integrator.html#aa53205d3211635dad0a035adf5d511a6',1,'Integrator::set_configuration()'],['../class_linear.html#ab12c626261e763892d4253f48478771a',1,'Linear::set_configuration()'],['../class_moving_average.html#a9f02a3c253c6456e4d5c063ea5f6d364',1,'MovingAverage::set_configuration()'],['../class_voltage_divider_r2.html#a805b64252dccfd3720ce5fc0f84964b3',1,'VoltageDividerR2::set_configuration()']]], ['set_5fhostname',['set_hostname',['../class_networking.html#a500aa01c7d7da3d823a43c40212353f5',1,'Networking::set_hostname()'],['../class_s_k_delta.html#acd3c98ae0fe75f92d5d9c1e6a216a8dd',1,'SKDelta::set_hostname()']]], - ['set_5finput',['set_input',['../class_value_consumer.html#a7bf920e5ad5f171ec6e2aeda056ff01f',1,'ValueConsumer::set_input()'],['../class_debounce.html#a41ba3a24ea3490fc0717fa4d5f7fae0b',1,'Debounce::set_input()'],['../class_difference.html#abf5c7d23d414d2971ddeca8c6bf6b9a7',1,'Difference::set_input()'],['../class_frequency.html#a8854a4f94e59b2f057655e18a62131ab',1,'Frequency::set_input()'],['../class_g_n_s_s_position.html#a0b1570b2bf0da3deb2f4d20a9bb9ea71',1,'GNSSPosition::set_input()'],['../class_integrator.html#a7fb38d2d19aa3e918dbee34b9096f7a6',1,'Integrator::set_input()'],['../class_interpolate.html#a628bd039d46e3a5a70730e9d04914154',1,'Interpolate::set_input()'],['../class_linear.html#aca76127ec02b9e354b0f891d73f24b37',1,'Linear::set_input()'],['../class_moving_average.html#ac953bfbae65b9acde7a2a770b029c5bd',1,'MovingAverage::set_input()'],['../class_passthrough.html#a401a7f308b76eac7ed7d90a618d997db',1,'Passthrough::set_input()'],['../class_time_string.html#a918b15a7599ec68ad8494ce77b08bde1',1,'TimeString::set_input()'],['../class_voltage_divider_r2.html#a43fa7bb9dc49c50de247aac272d7f697',1,'VoltageDividerR2::set_input()']]], + ['set_5finput',['set_input',['../class_s_k_output.html#a43d76eef72e8dad90ee13a001c265be8',1,'SKOutput::set_input()'],['../class_value_consumer.html#a7bf920e5ad5f171ec6e2aeda056ff01f',1,'ValueConsumer::set_input()'],['../class_curve_interpolator.html#a6e4fcb3bb046ecacbe1855d74cdc47bb',1,'CurveInterpolator::set_input()'],['../class_debounce.html#a41ba3a24ea3490fc0717fa4d5f7fae0b',1,'Debounce::set_input()'],['../class_difference.html#a432ef87751c6bee8e5dadc610dfcb4ff',1,'Difference::set_input()'],['../class_frequency.html#a99df388f446a8aa46f465fe464023f55',1,'Frequency::set_input()'],['../class_integrator.html#a7fb38d2d19aa3e918dbee34b9096f7a6',1,'Integrator::set_input()'],['../class_linear.html#a057c8519f6eb7dd28392073010a2cfc3',1,'Linear::set_input()'],['../class_moving_average.html#a22a08de98351ed805b49beecb234ab0b',1,'MovingAverage::set_input()'],['../class_time_string.html#a631583475f42183fdc5cd02914a26320',1,'TimeString::set_input()'],['../class_voltage_divider_r2.html#a43fa7bb9dc49c50de247aac272d7f697',1,'VoltageDividerR2::set_input()']]], ['set_5fserver_5fconnected',['set_server_connected',['../class_led_blinker.html#a0cdd9d7e8cc453edd234ce2785ce28ea',1,'LedBlinker']]], ['set_5fserver_5fdisconnected',['set_server_disconnected',['../class_led_blinker.html#ab0f765b76f30406a7b53d4360c897d64',1,'LedBlinker']]], - ['set_5fsk_5fpath',['set_sk_path',['../class_signal_k_source.html#a664b8607effbf53c9443ec7acc49e505',1,'SignalKSource']]], + ['set_5fsk_5fpath',['set_sk_path',['../class_s_k_emitter.html#a670348fb1ef1bf3d5e1ba49660fc15d9',1,'SKEmitter']]], ['set_5fstate',['set_state',['../class_led_blinker.html#aa9870e4cb1a35a175edcd710142b8595',1,'LedBlinker']]], ['set_5fwifi_5fconnected',['set_wifi_connected',['../class_led_blinker.html#a394a529a52a7ee1e0321498de017f788',1,'LedBlinker']]], ['set_5fwifi_5fdisconnected',['set_wifi_disconnected',['../class_led_blinker.html#a9c0b4f9aaacc14ab555df6abb43e8ae5',1,'LedBlinker']]], + ['setpriority',['setPriority',['../class_enable.html#ab4ca14d496a85788896df6c78143994c',1,'Enable']]], ['setup',['setup',['../class_networking.html#a94815dd34af734e9fc3839cbe6279355',1,'Networking']]], ['setup_2eh',['setup.h',['../setup_8h.html',1,'']]], - ['setup_5fanalog_5finput',['setup_analog_input',['../wiring__helpers_8cpp.html#aeef272bff92e31ecb7e38c53e8c9d217',1,'setup_analog_input(SensESPApp *seapp, String sk_path, float k, float c, String config_path): wiring_helpers.cpp'],['../wiring__helpers_8h.html#adea719867d33321e725bf045de32076c',1,'setup_analog_input(SensESPApp *seapp, String sk_path, float k=1, float c=0, String config_path=""): wiring_helpers.cpp']]], - ['setup_5fdigital_5finput',['setup_digital_input',['../wiring__helpers_8cpp.html#a9da3379a0c7725b0d2c7202810b76be3',1,'setup_digital_input(SensESPApp *seapp, int digital_pin, String sk_path, float k, float c, String config_path): wiring_helpers.cpp'],['../wiring__helpers_8h.html#af8491f1a9541b35d11c13f5c2ec8dc46',1,'setup_digital_input(SensESPApp *seapp, int digital_pin, String sk_path, float k=1, float c=0, String config_path=""): wiring_helpers.cpp']]], + ['setup_5fanalog_5finput',['setup_analog_input',['../wiring__helpers_8cpp.html#a3a4bbd0371b8285dbb7b8666d50a53a3',1,'setup_analog_input(String sk_path, float k, float c, String config_path): wiring_helpers.cpp'],['../wiring__helpers_8h.html#a70ac1c40d730c9e0f9b93b1f4dd5f0f9',1,'setup_analog_input(String sk_path, float k=1, float c=0, String config_path=""): wiring_helpers.cpp']]], ['setup_5fdiscovery',['setup_discovery',['../discovery_8cpp.html#aeea49ee803402167d8d79ca58268363e',1,'setup_discovery(const char *hostname): discovery.cpp'],['../discovery_8h.html#aeea49ee803402167d8d79ca58268363e',1,'setup_discovery(const char *hostname): discovery.cpp']]], - ['setup_5ffuel_5fflow_5fmeter',['setup_fuel_flow_meter',['../wiring__helpers_8cpp.html#adfc99a40e14ac9cd0b83ee26e2ea2427',1,'setup_fuel_flow_meter(SensESPApp *seapp, int inflow_pin, int return_flow_pin): wiring_helpers.cpp'],['../wiring__helpers_8h.html#adfc99a40e14ac9cd0b83ee26e2ea2427',1,'setup_fuel_flow_meter(SensESPApp *seapp, int inflow_pin, int return_flow_pin): wiring_helpers.cpp']]], - ['setup_5fgps',['setup_gps',['../wiring__helpers_8cpp.html#a013f0fccc349c462c3a1d1a692e0cc23',1,'setup_gps(SensESPApp *seapp, int serial_input_pin): wiring_helpers.cpp'],['../wiring__helpers_8h.html#a013f0fccc349c462c3a1d1a692e0cc23',1,'setup_gps(SensESPApp *seapp, int serial_input_pin): wiring_helpers.cpp']]], - ['setup_5fonewire_5ftemperature',['setup_onewire_temperature',['../wiring__helpers_8cpp.html#a17220137bcd65b6f922f5a14165a8fcf',1,'setup_onewire_temperature(SensESPApp *seapp, DallasTemperatureSensors *dts, String sk_path, String config_path, String schema): wiring_helpers.cpp'],['../wiring__helpers_8h.html#ad76896b776ebaa3509b6cc91f017e86c',1,'setup_onewire_temperature(SensESPApp *seapp, DallasTemperatureSensors *dts, String sk_path, String config_path): wiring_helpers.h']]], + ['setup_5ffuel_5fflow_5fmeter',['setup_fuel_flow_meter',['../wiring__helpers_8cpp.html#ae36e0604b36693bd720bffcf4145baf9',1,'setup_fuel_flow_meter(int inflow_pin, int return_flow_pin): wiring_helpers.cpp'],['../wiring__helpers_8h.html#ae36e0604b36693bd720bffcf4145baf9',1,'setup_fuel_flow_meter(int inflow_pin, int return_flow_pin): wiring_helpers.cpp']]], + ['setup_5fgps',['setup_gps',['../wiring__helpers_8cpp.html#a2ef51129a7e0e59a4efe2d031141d82f',1,'setup_gps(int serial_input_pin): wiring_helpers.cpp'],['../wiring__helpers_8h.html#a2ef51129a7e0e59a4efe2d031141d82f',1,'setup_gps(int serial_input_pin): wiring_helpers.cpp']]], + ['setup_5fonewire_5ftemperature',['setup_onewire_temperature',['../wiring__helpers_8cpp.html#a17220137bcd65b6f922f5a14165a8fcf',1,'setup_onewire_temperature(SensESPApp *seapp, DallasTemperatureSensors *dts, String sk_path, String config_path, String schema): wiring_helpers.cpp'],['../wiring__helpers_8h.html#a37c83d7d3ac2abb00e8f9e86c1da52d3',1,'setup_onewire_temperature(DallasTemperatureSensors *dts, String sk_path, String config_path): wiring_helpers.h']]], ['setup_5fota',['setup_OTA',['../ota_8cpp.html#a29c2aa13f2bbaccceeb33ed39a6ece11',1,'setup_OTA(): ota.cpp'],['../ota_8h.html#a29c2aa13f2bbaccceeb33ed39a6ece11',1,'setup_OTA(): ota.cpp']]], - ['setup_5frpm_5fmeter',['setup_rpm_meter',['../wiring__helpers_8cpp.html#aa6279a7bab0b61c448263a90303bb7e0',1,'setup_rpm_meter(SensESPApp *seapp, int input_pin): wiring_helpers.cpp'],['../wiring__helpers_8h.html#aa6279a7bab0b61c448263a90303bb7e0',1,'setup_rpm_meter(SensESPApp *seapp, int input_pin): wiring_helpers.cpp']]], + ['setup_5frpm_5fmeter',['setup_rpm_meter',['../wiring__helpers_8cpp.html#aa6279a7bab0b61c448263a90303bb7e0',1,'setup_rpm_meter(SensESPApp *seapp, int input_pin): wiring_helpers.cpp'],['../wiring__helpers_8h.html#a99ed20d80aca90bb060c88019c5f739f',1,'setup_rpm_meter(int input_pin): wiring_helpers.h']]], ['setup_5fspiffs_5fstorage',['setup_spiffs_storage',['../spiffs__storage_8cpp.html#a1dfee751479797b385c81cacb151c115',1,'setup_spiffs_storage(): spiffs_storage.cpp'],['../spiffs__storage_8h.html#a1dfee751479797b385c81cacb151c115',1,'setup_spiffs_storage(): spiffs_storage.cpp']]], ['should_5fsave_5fconfig',['should_save_config',['../networking_8cpp.html#ade4bb65788e7b6ea2d2e3e026baf7310',1,'networking.cpp']]], - ['signal_5fk_2ecpp',['signal_k.cpp',['../signal__k_8cpp.html',1,'']]], - ['signal_5fk_2eh',['signal_k.h',['../signal__k_8h.html',1,'']]], - ['signalksource',['SignalKSource',['../class_signal_k_source.html',1,'SignalKSource'],['../class_signal_k_source.html#af2ba130c1d59658c144ac3841d967ac8',1,'SignalKSource::SignalKSource()']]], - ['signalksource_2ecpp',['signalksource.cpp',['../signalksource_8cpp.html',1,'']]], - ['signalksource_2eh',['signalksource.h',['../signalksource_8h.html',1,'']]], + ['signalk_5fdelta_2ecpp',['signalk_delta.cpp',['../signalk__delta_8cpp.html',1,'']]], + ['signalk_5fdelta_2eh',['signalk_delta.h',['../signalk__delta_8h.html',1,'']]], + ['signalk_5femitter_2ecpp',['signalk_emitter.cpp',['../signalk__emitter_8cpp.html',1,'']]], + ['signalk_5femitter_2eh',['signalk_emitter.h',['../signalk__emitter_8h.html',1,'']]], + ['signalk_5foutput_2eh',['signalk_output.h',['../signalk__output_8h.html',1,'']]], + ['signalk_5fposition_2ecpp',['signalk_position.cpp',['../signalk__position_8cpp.html',1,'']]], + ['signalk_5fposition_2eh',['signalk_position.h',['../signalk__position_8h.html',1,'']]], + ['signalk_5ftime_2ecpp',['signalk_time.cpp',['../signalk__time_8cpp.html',1,'']]], + ['signalk_5ftime_2eh',['signalk_time.h',['../signalk__time_8h.html',1,'']]], ['simulator_5fmode',['simulator_mode',['../nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520a32b763dac1af6b0b08ab952ea202f6a3',1,'nmea_parser.cpp']]], - ['sk_5fpath',['sk_path',['../class_signal_k_source.html#ac9416b56a4a8fc0e741ec537b2411177',1,'SignalKSource']]], + ['sk_5fpath',['sk_path',['../class_s_k_emitter.html#a06dbe70e930074437b12b86ac4e2464c',1,'SKEmitter']]], ['skdelta',['SKDelta',['../class_s_k_delta.html',1,'SKDelta'],['../class_s_k_delta.html#a3d4825fc72903feaebe635dc643d2b16',1,'SKDelta::SKDelta()']]], + ['skemitter',['SKEmitter',['../class_s_k_emitter.html',1,'SKEmitter'],['../class_s_k_emitter.html#aeba0ccd27a8b6bad1e2ddbf2603a5d8d',1,'SKEmitter::SKEmitter()']]], + ['skoutput',['SKOutput',['../class_s_k_output.html',1,'SKOutput< T >'],['../class_s_k_output.html#a88f9638dd4779818b41a62738ba44876',1,'SKOutput::SKOutput()'],['../class_s_k_output.html#a811a99c30626b6840000b0c152aa1f37',1,'SKOutput::SKOutput(String sk_path, String config_path="")']]], + ['skoutput_3c_20position_20_3e',['SKOutput< Position >',['../class_s_k_output.html',1,'']]], + ['skoutputbool',['SKOutputBool',['../signalk__output_8h.html#a1a26c344db2dff33a77cf620aafa6c0c',1,'signalk_output.h']]], + ['skoutputint',['SKOutputInt',['../signalk__output_8h.html#a2a0e216e5ada5e31f7a6d995d2c52642',1,'signalk_output.h']]], + ['skoutputnumber',['SKOutputNumber',['../signalk__output_8h.html#a6c84656f504f6de21c63c1d54d6f39e1',1,'signalk_output.h']]], + ['skoutputposition',['SKOutputPosition',['../class_s_k_output_position.html',1,'SKOutputPosition'],['../class_s_k_output_position.html#a84591bf7fb62356a76b0a6838eb19aa6',1,'SKOutputPosition::SKOutputPosition()']]], + ['skoutputstring',['SKOutputString',['../signalk__output_8h.html#a008f63a91ea787950cb6c17e4c031859',1,'signalk_output.h']]], + ['skoutputtime',['SKOutputTime',['../class_s_k_output_time.html',1,'SKOutputTime'],['../class_s_k_output_time.html#ab77e9bdfeb69fd37c6fc87ac247146e4',1,'SKOutputTime::SKOutputTime()']]], ['speed',['speed',['../struct_n_m_e_a_data.html#afe6efa0ec62ce332673ab98b282990c8',1,'NMEAData']]], ['spiffs_5fstorage_2ecpp',['spiffs_storage.cpp',['../spiffs__storage_8cpp.html',1,'']]], ['spiffs_5fstorage_2eh',['spiffs_storage.h',['../spiffs__storage_8h.html',1,'']]], @@ -49,12 +62,8 @@ var searchData= ['stringconsumer',['StringConsumer',['../valueconsumer_8h.html#a1d91b84157f6818bb8b8b04caede8a02',1,'valueconsumer.h']]], ['stringdevice',['StringDevice',['../class_string_device.html',1,'StringDevice'],['../class_string_device.html#a6aca962377f5ac96ff960f9bcb7ff948',1,'StringDevice::StringDevice()']]], ['stringproducer',['StringProducer',['../valueproducer_8h.html#ab845e985974e3ae4c050b8f221337b0d',1,'valueproducer.h']]], - ['stringtransform',['StringTransform',['../transform_8h.html#a9b6f203fb2d7cf6bb03ef36075e68f19',1,'transform.h']]], - ['symmetricbooleantransform',['SymmetricBooleanTransform',['../transform_8h.html#a31aa97c726949c94bf788285a702cd23',1,'transform.h']]], - ['symmetricintegertransform',['SymmetricIntegerTransform',['../transform_8h.html#af9018e893038605790282f34ef1a9475',1,'transform.h']]], - ['symmetricnumerictransform',['SymmetricNumericTransform',['../transform_8h.html#aacd7283062f2280bf82cc3eb48284f5b',1,'transform.h']]], - ['symmetricstringtransform',['SymmetricStringTransform',['../transform_8h.html#a13777cad82c84559093e2ecf1e2955f2',1,'transform.h']]], - ['symmetrictransform',['SymmetricTransform',['../class_symmetric_transform.html',1,'SymmetricTransform< T >'],['../class_symmetric_transform.html#add5f3e15e1956bde08508240e1031722',1,'SymmetricTransform::SymmetricTransform()']]], + ['stringtransform',['StringTransform',['../transform_8h.html#a463af5c6e30307ac67004d67dd014030',1,'transform.h']]], + ['symmetrictransform',['SymmetricTransform',['../class_symmetric_transform.html',1,'SymmetricTransform< T >'],['../class_symmetric_transform.html#a77383aeb8a2dc0e27a2fbc24b451bc90',1,'SymmetricTransform::SymmetricTransform()']]], ['symmetrictransform_3c_20float_20_3e',['SymmetricTransform< float >',['../class_symmetric_transform.html',1,'']]], ['symmetrictransform_3c_20position_20_3e',['SymmetricTransform< Position >',['../class_symmetric_transform.html',1,'']]], ['system_5finfo_2ecpp',['system_info.cpp',['../system__info_8cpp.html',1,'']]], diff --git a/docs/search/all_11.js b/docs/search/all_11.js index d85c2be87..d24404ecb 100644 --- a/docs/search/all_11.js +++ b/docs/search/all_11.js @@ -1,16 +1,16 @@ var searchData= [ - ['temperatureinterpreter',['TemperatureInterpreter',['../class_temperature_interpreter.html',1,'TemperatureInterpreter'],['../class_temperature_interpreter.html#a261da73de9ecca813741fc0f69a99053',1,'TemperatureInterpreter::TemperatureInterpreter()']]], - ['temperatureinterpreter_2ecpp',['temperatureinterpreter.cpp',['../temperatureinterpreter_8cpp.html',1,'']]], - ['temperatureinterpreter_2eh',['temperatureinterpreter.h',['../temperatureinterpreter_8h.html',1,'']]], - ['timestring',['TimeString',['../class_time_string.html',1,'TimeString'],['../class_time_string.html#a9f4690ed5017c87671cff921855ab473',1,'TimeString::TimeString()']]], + ['timestring',['TimeString',['../class_time_string.html',1,'TimeString'],['../class_time_string.html#adc18ed47c4b6d88acceec81741aab5c3',1,'TimeString::TimeString()']]], ['timestring_2ecpp',['timestring.cpp',['../timestring_8cpp.html',1,'']]], ['timestring_2eh',['timestring.h',['../timestring_8h.html',1,'']]], - ['transform',['Transform',['../class_transform.html',1,'Transform< T >'],['../class_transform.html#a44b7bcef8cc3b89fd6bbdb6a2bd98593',1,'Transform::Transform()']]], + ['transform',['Transform',['../class_transform.html',1,'Transform< C, P >'],['../class_transform.html#a764037842596e71f15621e3732dac75a',1,'Transform::Transform()']]], ['transform_2ecpp',['transform.cpp',['../transform_8cpp.html',1,'']]], ['transform_2eh',['transform.h',['../transform_8h.html',1,'']]], - ['transform_3c_20float_20_3e',['Transform< float >',['../class_transform.html',1,'']]], - ['transform_3c_20position_20_3e',['Transform< Position >',['../class_transform.html',1,'']]], - ['transformbase',['TransformBase',['../class_transform_base.html',1,'TransformBase'],['../class_transform_base.html#ac5499a469190bd7d6efcc5bbec4f49d7',1,'TransformBase::TransformBase()']]], + ['transform_3c_20float_2c_20float_20_3e',['Transform< float, float >',['../class_transform.html',1,'']]], + ['transform_3c_20int_2c_20float_20_3e',['Transform< int, float >',['../class_transform.html',1,'']]], + ['transform_3c_20position_2c_20position_20_3e',['Transform< Position, Position >',['../class_transform.html',1,'']]], + ['transform_3c_20t_2c_20t_20_3e',['Transform< T, T >',['../class_transform.html',1,'']]], + ['transform_3c_20time_5ft_2c_20string_20_3e',['Transform< time_t, String >',['../class_transform.html',1,'']]], + ['transformbase',['TransformBase',['../class_transform_base.html',1,'TransformBase'],['../class_transform_base.html#a4f28a4ec27046ac3ef1546eda4b5b43b',1,'TransformBase::TransformBase()']]], ['true_5fcourse',['true_course',['../struct_n_m_e_a_data.html#a91263e0aa16f47a7535d8d4a09b2ffca',1,'NMEAData']]] ]; diff --git a/docs/search/all_13.js b/docs/search/all_13.js index 661e88b93..01aa83426 100644 --- a/docs/search/all_13.js +++ b/docs/search/all_13.js @@ -2,7 +2,9 @@ var searchData= [ ['valueconsumer',['ValueConsumer',['../class_value_consumer.html',1,'']]], ['valueconsumer_2eh',['valueconsumer.h',['../valueconsumer_8h.html',1,'']]], + ['valueconsumer_3c_20c_20_3e',['ValueConsumer< C >',['../class_value_consumer.html',1,'']]], ['valueconsumer_3c_20float_20_3e',['ValueConsumer< float >',['../class_value_consumer.html',1,'']]], + ['valueconsumer_3c_20int_20_3e',['ValueConsumer< int >',['../class_value_consumer.html',1,'']]], ['valueconsumer_3c_20position_20_3e',['ValueConsumer< Position >',['../class_value_consumer.html',1,'']]], ['valueconsumer_3c_20time_5ft_20_3e',['ValueConsumer< time_t >',['../class_value_consumer.html',1,'']]], ['valueproducer',['ValueProducer',['../class_value_producer.html',1,'ValueProducer< T >'],['../class_value_producer.html#a0ef05992883120f7202c14fd8e577103',1,'ValueProducer::ValueProducer()']]], @@ -10,6 +12,7 @@ var searchData= ['valueproducer_3c_20enuvector_20_3e',['ValueProducer< ENUVector >',['../class_value_producer.html',1,'']]], ['valueproducer_3c_20float_20_3e',['ValueProducer< float >',['../class_value_producer.html',1,'']]], ['valueproducer_3c_20int_20_3e',['ValueProducer< int >',['../class_value_producer.html',1,'']]], + ['valueproducer_3c_20p_20_3e',['ValueProducer< P >',['../class_value_producer.html',1,'']]], ['valueproducer_3c_20position_20_3e',['ValueProducer< Position >',['../class_value_producer.html',1,'']]], ['valueproducer_3c_20string_20_3e',['ValueProducer< String >',['../class_value_producer.html',1,'']]], ['valueproducer_3c_20time_5ft_20_3e',['ValueProducer< time_t >',['../class_value_producer.html',1,'']]], @@ -17,7 +20,7 @@ var searchData= ['variation',['variation',['../struct_n_m_e_a_data.html#ab5b508669ea5109f812b28cdba65c402',1,'NMEAData']]], ['vin',['Vin',['../class_voltage_divider_r2.html#a482239a7e4031b16091886109efd2296',1,'VoltageDividerR2']]], ['void_5fcb_5ffunc',['void_cb_func',['../sensesp_8h.html#abb3668fa85a914138ab7c0c4329681ec',1,'sensesp.h']]], - ['voltagedividerr2',['VoltageDividerR2',['../class_voltage_divider_r2.html',1,'VoltageDividerR2'],['../class_voltage_divider_r2.html#aa01015814dad17dd7db497a8c9209d44',1,'VoltageDividerR2::VoltageDividerR2()']]], + ['voltagedividerr2',['VoltageDividerR2',['../class_voltage_divider_r2.html',1,'VoltageDividerR2'],['../class_voltage_divider_r2.html#a609ab5e2db4122ddc875a94ba8f9d325',1,'VoltageDividerR2::VoltageDividerR2()']]], ['voltagedividerr2_2ecpp',['voltagedividerR2.cpp',['../voltagedivider_r2_8cpp.html',1,'']]], ['voltagedividerr2_2eh',['voltagedividerR2.h',['../voltagedivider_r2_8h.html',1,'']]] ]; diff --git a/docs/search/all_2.js b/docs/search/all_2.js index 06a8cc9d3..2d2445de5 100644 --- a/docs/search/all_2.js +++ b/docs/search/all_2.js @@ -1,19 +1,20 @@ var searchData= [ ['check_5fconnection',['check_connection',['../class_networking.html#ae4b12924970227730df3377144301a7c',1,'Networking']]], - ['clearsamples',['clearSamples',['../class_interpolate.html#ad8ce06fa260129a286e01650c5b47ea9',1,'Interpolate']]], + ['clearsamples',['clearSamples',['../class_curve_interpolator.html#afb1dbb8e85015e2909dff8495875f8f5',1,'CurveInterpolator']]], ['config_5fpath',['config_path',['../class_configurable.html#aaa54fa6156d9c7f5848d670bd9b18aa9',1,'Configurable']]], ['configurable',['Configurable',['../class_configurable.html',1,'Configurable'],['../class_configurable.html#a8972a439fb9b734ff68d27c699640f78',1,'Configurable::Configurable()']]], ['configurable_2ecpp',['configurable.cpp',['../configurable_8cpp.html',1,'']]], ['configurable_2eh',['configurable.h',['../configurable_8h.html',1,'']]], ['configurables',['configurables',['../configurable_8cpp.html#a19ac563e52fea3af6b643155f9d258b6',1,'configurables(): configurable.cpp'],['../configurable_8h.html#a19ac563e52fea3af6b643155f9d258b6',1,'configurables(): configurable.cpp']]], ['connect',['connect',['../class_w_s_client.html#a1612670a5dccbc8a39518ae972fbae90',1,'WSClient::connect()'],['../class_sens_e_s_p_app.html#ac53d90429563f50e4aca5224a1e85afd',1,'SensESPApp::connect()']]], - ['connect_5f1to1',['connect_1to1',['../class_sens_e_s_p_app.html#a0a499dc1d52fa2115d314149bb41259f',1,'SensESPApp']]], ['connect_5f1to1_5fh',['connect_1to1_h',['../class_sens_e_s_p_app.html#a8875ca27de5c10c1b2931c3c41e1f9b5',1,'SensESPApp']]], - ['connect_5f2to1',['connect_2to1',['../class_sens_e_s_p_app.html#a5c4d4d6581822017e942421c833f27f3',1,'SensESPApp']]], ['connected',['connected',['../ws__client_8h.html#acdd867d72142510ce53521a63a062f9ba8ba3de7243211c98f5ec24395c73d65b',1,'ws_client.h']]], - ['connectfrom',['connectFrom',['../class_value_consumer.html#a6adf62d8d87ffa3ce70bb85379a68715',1,'ValueConsumer::connectFrom()'],['../class_symmetric_transform.html#aefde059b7d9b753b11a33dd4bac6972b',1,'SymmetricTransform::connectFrom()']]], + ['connectfrom',['connectFrom',['../class_value_consumer.html#a6adf62d8d87ffa3ce70bb85379a68715',1,'ValueConsumer::connectFrom()'],['../class_transform.html#a7721846cbfe5b3d95c6f1f40cb387c5d',1,'Transform::connectFrom()']]], ['connecting',['connecting',['../ws__client_8h.html#acdd867d72142510ce53521a63a062f9bab4dbdd36e3f602f54d0024fd818e12d6',1,'ws_client.h']]], ['connectionstate',['ConnectionState',['../ws__client_8h.html#acdd867d72142510ce53521a63a062f9b',1,'ws_client.h']]], - ['connectto',['connectTo',['../class_value_producer.html#a1669282467997608ce6164fe4d729bb2',1,'ValueProducer::connectTo(ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)'],['../class_value_producer.html#a64af7a373036743d912876475c566045',1,'ValueProducer::connectTo(SymmetricTransform< T > *pProducerConsumer, uint8_t inputChannel=0)']]] + ['connectto',['connectTo',['../class_value_producer.html#a1669282467997608ce6164fe4d729bb2',1,'ValueProducer::connectTo(ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)'],['../class_value_producer.html#adfb3d9679b80c9fae0951ca13911344f',1,'ValueProducer::connectTo(Transform< T, T2 > *pConsumerProducer, uint8_t inputChannel=0)']]], + ['curveinterpolator',['CurveInterpolator',['../class_curve_interpolator.html',1,'CurveInterpolator'],['../class_curve_interpolator.html#a09bdf144307f1264c36d5afaea5c96a3',1,'CurveInterpolator::CurveInterpolator()']]], + ['curveinterpolator_2ecpp',['curveinterpolator.cpp',['../curveinterpolator_8cpp.html',1,'']]], + ['curveinterpolator_2eh',['curveinterpolator.h',['../curveinterpolator_8h.html',1,'']]] ]; diff --git a/docs/search/all_3.js b/docs/search/all_3.js index 6371ad9c9..df522f636 100644 --- a/docs/search/all_3.js +++ b/docs/search/all_3.js @@ -3,7 +3,7 @@ var searchData= ['dallastemperaturesensors',['DallasTemperatureSensors',['../class_dallas_temperature_sensors.html',1,'DallasTemperatureSensors'],['../class_dallas_temperature_sensors.html#a778aa28e0e329028f2811c5ed71cb11d',1,'DallasTemperatureSensors::DallasTemperatureSensors()']]], ['data_5favailable',['data_available',['../class_s_k_delta.html#a74ab20a661a4f80a336b50fccc4bd9bc',1,'SKDelta']]], ['datetime',['datetime',['../struct_n_m_e_a_data.html#aae3cb7b0e14cc41ad1c271b9afaae27d',1,'NMEAData']]], - ['debounce',['Debounce',['../class_debounce.html',1,'Debounce'],['../class_debounce.html#ae99846a27be1f2d4046cb5d11cb921cd',1,'Debounce::Debounce()']]], + ['debounce',['Debounce',['../class_debounce.html',1,'Debounce'],['../class_debounce.html#a1cf5653ecaffe84d03202cd9f002bba4',1,'Debounce::Debounce()']]], ['debounce_2ecpp',['debounce.cpp',['../debounce_8cpp.html',1,'']]], ['debounce_2eh',['debounce.h',['../debounce_8h.html',1,'']]], ['debug',['Debug',['../sensesp_8h.html#a5ae2f374710d648c2027c78237f5df01',1,'Debug(): sensesp_app.cpp'],['../sensesp__app_8cpp.html#a5ae2f374710d648c2027c78237f5df01',1,'Debug(): sensesp_app.cpp']]], @@ -13,7 +13,7 @@ var searchData= ['dgnss_5ffix',['dgnss_fix',['../nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520a8d26d1fa1d0cda42a29843162786a0b6',1,'nmea_parser.cpp']]], ['dgps_5fage',['dgps_age',['../struct_n_m_e_a_data.html#af61e9824ffaf9b43c1a95d8d7a93bc10',1,'NMEAData']]], ['dgps_5fid',['dgps_id',['../struct_n_m_e_a_data.html#a99328058cfe4cf26b5025511d64ce576',1,'NMEAData']]], - ['difference',['Difference',['../class_difference.html',1,'Difference'],['../class_difference.html#a6a9d692bfdc1c5bbabe5535d3d951834',1,'Difference::Difference()']]], + ['difference',['Difference',['../class_difference.html',1,'Difference'],['../class_difference.html#ab37fbe4fe6592f7591a124c1b90f8f48',1,'Difference::Difference()']]], ['difference_2ecpp',['difference.cpp',['../difference_8cpp.html',1,'']]], ['difference_2eh',['difference.h',['../difference_8h.html',1,'']]], ['digital_5finput_2ecpp',['digital_input.cpp',['../digital__input_8cpp.html',1,'']]], diff --git a/docs/search/all_4.js b/docs/search/all_4.js index bc2db9620..26d805cdc 100644 --- a/docs/search/all_4.js +++ b/docs/search/all_4.js @@ -1,7 +1,7 @@ var searchData= [ ['east',['east',['../struct_e_n_u_vector.html#affaf84db367ff8259448116fe4c75370',1,'ENUVector']]], - ['enable',['Enable',['../class_enable.html',1,'Enable'],['../class_enable.html#a62d0a37863086502e168bfa8ab94ebc0',1,'Enable::Enable()'],['../class_analog_input.html#a34942eae263f68e8f44fa3f405d057fb',1,'AnalogInput::enable()'],['../class_digital_input_value.html#a504c6c9ad6578156df7eb524f9635912',1,'DigitalInputValue::enable()'],['../class_digital_input_counter.html#a9848278592225d90ff71b99ce940771e',1,'DigitalInputCounter::enable()'],['../class_g_p_s_input.html#af94497b920d346ed5ccad18bd4dbfd9c',1,'GPSInput::enable()'],['../class_dallas_temperature_sensors.html#ae30b8206143d488a4d887b4294da6bb2',1,'DallasTemperatureSensors::enable()'],['../class_one_wire_temperature.html#a86817f083dfb5e9373b48d8fd1f8d165',1,'OneWireTemperature::enable()'],['../class_system_hz.html#a2f2337dcbe45cce879392f28579e233d',1,'SystemHz::enable()'],['../class_free_mem.html#aa3487ef2dff96a33778881da391b2129',1,'FreeMem::enable()'],['../class_uptime.html#a677ab855187348527ccdb0725552e02a',1,'Uptime::enable()'],['../class_i_p_addr_dev.html#afd8dec59375d39cf785819f8ea3685a1',1,'IPAddrDev::enable()'],['../class_h_t_t_p_server.html#a6f5600d8187ec82cb83e84252a387c38',1,'HTTPServer::enable()'],['../class_w_s_client.html#a1313d063fd61739f7e3ca9b2c126b048',1,'WSClient::enable()'],['../class_sens_e_s_p_app.html#a3d70c22bfd1bf842f6daa83ab2f50f79',1,'SensESPApp::enable()'],['../class_enable.html#a62ea021bf8d986150be346977a8eede3',1,'Enable::enable()'],['../class_frequency.html#a2f0884295031b687dadd09add8acb877',1,'Frequency::enable()'],['../class_integrator.html#ad52503a30ef9abf171209988d256ec22',1,'Integrator::enable()']]], + ['enable',['Enable',['../class_enable.html',1,'Enable'],['../class_enable.html#a62d0a37863086502e168bfa8ab94ebc0',1,'Enable::Enable()'],['../class_analog_input.html#a34942eae263f68e8f44fa3f405d057fb',1,'AnalogInput::enable()'],['../class_digital_input_value.html#a504c6c9ad6578156df7eb524f9635912',1,'DigitalInputValue::enable()'],['../class_digital_input_counter.html#a9848278592225d90ff71b99ce940771e',1,'DigitalInputCounter::enable()'],['../class_g_p_s_input.html#af94497b920d346ed5ccad18bd4dbfd9c',1,'GPSInput::enable()'],['../class_dallas_temperature_sensors.html#ae30b8206143d488a4d887b4294da6bb2',1,'DallasTemperatureSensors::enable()'],['../class_one_wire_temperature.html#a86817f083dfb5e9373b48d8fd1f8d165',1,'OneWireTemperature::enable()'],['../class_system_hz.html#a2f2337dcbe45cce879392f28579e233d',1,'SystemHz::enable()'],['../class_free_mem.html#aa3487ef2dff96a33778881da391b2129',1,'FreeMem::enable()'],['../class_uptime.html#a677ab855187348527ccdb0725552e02a',1,'Uptime::enable()'],['../class_i_p_addr_dev.html#afd8dec59375d39cf785819f8ea3685a1',1,'IPAddrDev::enable()'],['../class_h_t_t_p_server.html#a6f5600d8187ec82cb83e84252a387c38',1,'HTTPServer::enable()'],['../class_w_s_client.html#a1313d063fd61739f7e3ca9b2c126b048',1,'WSClient::enable()'],['../class_sens_e_s_p_app.html#a3d70c22bfd1bf842f6daa83ab2f50f79',1,'SensESPApp::enable()'],['../class_enable.html#a62ea021bf8d986150be346977a8eede3',1,'Enable::enable()'],['../class_frequency.html#a0d6846952b3295809421ac18633e397e',1,'Frequency::enable()'],['../class_integrator.html#ad52503a30ef9abf171209988d256ec22',1,'Integrator::enable()']]], ['enable_2ecpp',['enable.cpp',['../enable_8cpp.html',1,'']]], ['enable_2eh',['enable.h',['../enable_8h.html',1,'']]], ['enableall',['enableAll',['../class_enable.html#ab55d4552f3b66d7a198377b2d3fc7fa2',1,'Enable']]], diff --git a/docs/search/all_5.js b/docs/search/all_5.js index 6d1157b48..d47be8f40 100644 --- a/docs/search/all_5.js +++ b/docs/search/all_5.js @@ -2,7 +2,7 @@ var searchData= [ ['flip',['flip',['../class_led_blinker.html#af00270a463b74c855dfc95d98c7bfd7e',1,'LedBlinker']]], ['freemem',['FreeMem',['../class_free_mem.html',1,'']]], - ['frequency',['Frequency',['../class_frequency.html',1,'Frequency'],['../class_frequency.html#acea1b0044fbbbdf51eaaea887e6b0d39',1,'Frequency::Frequency()']]], + ['frequency',['Frequency',['../class_frequency.html',1,'Frequency'],['../class_frequency.html#abbaff61b74433bb8a990685be24c3c8b',1,'Frequency::Frequency()']]], ['frequency_2ecpp',['frequency.cpp',['../frequency_8cpp.html',1,'']]], ['frequency_2eh',['frequency.h',['../frequency_8h.html',1,'']]] ]; diff --git a/docs/search/all_6.js b/docs/search/all_6.js index 3e5d03cac..2ffc9779a 100644 --- a/docs/search/all_6.js +++ b/docs/search/all_6.js @@ -2,22 +2,19 @@ var searchData= [ ['geoidal_5fseparation',['geoidal_separation',['../struct_n_m_e_a_data.html#a3acdff78f354082419d01ebfe8846f7f',1,'NMEAData']]], ['get',['get',['../class_value_producer.html#adaf30ea1027efa0c83c75dfe3afc0c1a',1,'ValueProducer']]], - ['get_5fconfig_5fschema',['get_config_schema',['../class_one_wire_temperature.html#a4331b2b91d6c7d000454e741cdce9d0a',1,'OneWireTemperature::get_config_schema()'],['../class_networking.html#a253025ed2a3c36eb998e7b900155359e',1,'Networking::get_config_schema()'],['../class_w_s_client.html#a78fbe2ccf0f84423abbf9d1047aff0bc',1,'WSClient::get_config_schema()'],['../class_configurable.html#a73131c4e7dd8134f23a93de861e1c0e4',1,'Configurable::get_config_schema()'],['../class_difference.html#ac5b6559e3820f2f58bed5d120a440a55',1,'Difference::get_config_schema()'],['../class_frequency.html#a93e3f28917f7faa7411b95745171f6af',1,'Frequency::get_config_schema()'],['../class_g_n_s_s_position.html#ae8a6a06700255194de45b4188fe6d08a',1,'GNSSPosition::get_config_schema()'],['../class_integrator.html#a513afaf30460fee68abd295780527d05',1,'Integrator::get_config_schema()'],['../class_interpolate.html#a7e1899424a81663d61951d976518e400',1,'Interpolate::get_config_schema()'],['../class_linear.html#afc896eaed1df40409ea3ce17d81929cc',1,'Linear::get_config_schema()'],['../class_moving_average.html#ad6f06b147a017e528e3d8b991cec2763',1,'MovingAverage::get_config_schema()'],['../class_passthrough.html#aa19d8446db1373f48ca644f3463580a8',1,'Passthrough::get_config_schema()'],['../class_time_string.html#adf45aade28b1e60657253aefe9a1b6f4',1,'TimeString::get_config_schema()'],['../class_voltage_divider_r2.html#ae37065fd9bd093497ff74a9faf5b6cea',1,'VoltageDividerR2::get_config_schema()']]], - ['get_5fconfiguration',['get_configuration',['../class_one_wire_temperature.html#a4a1058669383f507ed70bd46f9f0d2f0',1,'OneWireTemperature::get_configuration()'],['../class_networking.html#a2b8f2f52b332dc0af375113a64881a8a',1,'Networking::get_configuration()'],['../class_w_s_client.html#a2a41e313d8d3be52cd7bb53e6bbf3117',1,'WSClient::get_configuration()'],['../class_configurable.html#a787559a1a907f909d6088d2ec6825b44',1,'Configurable::get_configuration()'],['../class_difference.html#ad4ba9de084c2ae21cda13101911ab086',1,'Difference::get_configuration()'],['../class_frequency.html#a40efa67350036f8bdc07be9fd4a94e42',1,'Frequency::get_configuration()'],['../class_g_n_s_s_position.html#a261e90fc05b828e9539c6622ec3aafe3',1,'GNSSPosition::get_configuration()'],['../class_integrator.html#a1b4cfd7f598d8456a582865a88d768e7',1,'Integrator::get_configuration()'],['../class_interpolate.html#a428a74bba411c87ffbe5bedefb383733',1,'Interpolate::get_configuration()'],['../class_linear.html#a8d3a1f72738efeb83ed913590105e615',1,'Linear::get_configuration()'],['../class_moving_average.html#a36b9fbfa38ae531a86efa19ccda45e99',1,'MovingAverage::get_configuration()'],['../class_passthrough.html#aecaa7961190394983b550495da47ee9c',1,'Passthrough::get_configuration()'],['../class_time_string.html#a266d69d7194eb2c4c3bcd1bbc7e5251c',1,'TimeString::get_configuration()'],['../class_voltage_divider_r2.html#a35275626b89244eb30f0c1be504dbdb6',1,'VoltageDividerR2::get_configuration()']]], + ['get_5fconfig_5fschema',['get_config_schema',['../class_one_wire_temperature.html#a4331b2b91d6c7d000454e741cdce9d0a',1,'OneWireTemperature::get_config_schema()'],['../class_networking.html#a253025ed2a3c36eb998e7b900155359e',1,'Networking::get_config_schema()'],['../class_w_s_client.html#a78fbe2ccf0f84423abbf9d1047aff0bc',1,'WSClient::get_config_schema()'],['../class_s_k_output.html#a0f29018517bcb51943dae1dd7bbace0a',1,'SKOutput::get_config_schema()'],['../class_s_k_output_position.html#a1296489a2e57b3ee5740b4f7f1cca6e2',1,'SKOutputPosition::get_config_schema()'],['../class_s_k_output_time.html#aa283f508ef59103626c835cd37b9bfb3',1,'SKOutputTime::get_config_schema()'],['../class_configurable.html#a73131c4e7dd8134f23a93de861e1c0e4',1,'Configurable::get_config_schema()'],['../class_curve_interpolator.html#a6f9c593782d05c95ba92810b8f70f287',1,'CurveInterpolator::get_config_schema()'],['../class_difference.html#ac5b6559e3820f2f58bed5d120a440a55',1,'Difference::get_config_schema()'],['../class_frequency.html#a93e3f28917f7faa7411b95745171f6af',1,'Frequency::get_config_schema()'],['../class_integrator.html#a513afaf30460fee68abd295780527d05',1,'Integrator::get_config_schema()'],['../class_linear.html#afc896eaed1df40409ea3ce17d81929cc',1,'Linear::get_config_schema()'],['../class_moving_average.html#ad6f06b147a017e528e3d8b991cec2763',1,'MovingAverage::get_config_schema()'],['../class_voltage_divider_r2.html#ae37065fd9bd093497ff74a9faf5b6cea',1,'VoltageDividerR2::get_config_schema()']]], + ['get_5fconfiguration',['get_configuration',['../class_one_wire_temperature.html#a4a1058669383f507ed70bd46f9f0d2f0',1,'OneWireTemperature::get_configuration()'],['../class_networking.html#a2b8f2f52b332dc0af375113a64881a8a',1,'Networking::get_configuration()'],['../class_w_s_client.html#a2a41e313d8d3be52cd7bb53e6bbf3117',1,'WSClient::get_configuration()'],['../class_s_k_output.html#a1020f0eb3e0eb6bc10f57034c7fbc0c6',1,'SKOutput::get_configuration()'],['../class_s_k_output_position.html#a1e1dfc32c80fe7e541b9342ef62275b9',1,'SKOutputPosition::get_configuration()'],['../class_s_k_output_time.html#a03982e7159ac7e6d44b8f7c6976617c4',1,'SKOutputTime::get_configuration()'],['../class_configurable.html#a787559a1a907f909d6088d2ec6825b44',1,'Configurable::get_configuration()'],['../class_curve_interpolator.html#a274cd3426b3e379db1538c71bebad9c8',1,'CurveInterpolator::get_configuration()'],['../class_difference.html#a70f6832fd0b14c5eb5c2c05188757b72',1,'Difference::get_configuration()'],['../class_frequency.html#ae121e43d37643d390bc607def68e0e02',1,'Frequency::get_configuration()'],['../class_integrator.html#a1b4cfd7f598d8456a582865a88d768e7',1,'Integrator::get_configuration()'],['../class_linear.html#a98f7cf12073c2aa89bbb7f89b13f6299',1,'Linear::get_configuration()'],['../class_moving_average.html#a1cac9948f8ca32b8d4446e419b09cccb',1,'MovingAverage::get_configuration()'],['../class_voltage_divider_r2.html#a35275626b89244eb30f0c1be504dbdb6',1,'VoltageDividerR2::get_configuration()']]], ['get_5fdelta',['get_delta',['../class_s_k_delta.html#ab1592b494b343964703102a4797d3bbc',1,'SKDelta']]], ['get_5fdevices',['get_devices',['../class_device.html#a784e4de986feeca3770ba9ea58b722cd',1,'Device']]], ['get_5fhostname',['get_hostname',['../class_networking.html#a7a3cac2e878aa2c513451f235c70aff7',1,'Networking::get_hostname()'],['../class_sens_e_s_p_app.html#ac068882b9e9f6092da0818c5e42b48b8',1,'SensESPApp::get_hostname()']]], ['get_5fnext_5faddress',['get_next_address',['../class_dallas_temperature_sensors.html#a1e1b9cd3dd2bde0d51ef657a490881eb',1,'DallasTemperatureSensors']]], - ['get_5fsk_5fpath',['get_sk_path',['../class_signal_k_source.html#a859f4e84f2d96b019ccaf5fdcba35661',1,'SignalKSource']]], - ['get_5fsources',['get_sources',['../class_signal_k_source.html#ab89067dab50ab4583f2bc9678be16650',1,'SignalKSource']]], + ['get_5fsk_5fpath',['get_sk_path',['../class_s_k_emitter.html#ab619d4a66c7683bf06350809e8c2153f',1,'SKEmitter']]], + ['get_5fsources',['get_sources',['../class_s_k_emitter.html#a14e45e259c78d1e4ab7bdcce94fc8b02',1,'SKEmitter']]], ['get_5ftransforms',['get_transforms',['../class_transform_base.html#a17bfeb1e7a836b7bc597aa7d7c4ac116',1,'TransformBase']]], ['get_5fvalue_5fname',['get_value_name',['../class_system_hz.html#aafe9250142a6c4b234f3d8e64771ce95',1,'SystemHz::get_value_name()'],['../class_free_mem.html#a114359cfbb1cffce40e545bf00889757',1,'FreeMem::get_value_name()'],['../class_uptime.html#a43cdcac661b684e1c746fcdf7224e68f',1,'Uptime::get_value_name()'],['../class_i_p_addr_dev.html#aad770ae7db264bfc4bc33d3d1dca71fb',1,'IPAddrDev::get_value_name()']]], ['getenablepriority',['getEnablePriority',['../class_enable.html#a12a65d666c56d9909c2a1958b7cfda40',1,'Enable']]], ['gnss_5ffix',['gnss_fix',['../nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520adea098971e394461267006ddf5d2d4b0',1,'nmea_parser.cpp']]], - ['gnss_5fposition_2ecpp',['gnss_position.cpp',['../gnss__position_8cpp.html',1,'']]], - ['gnss_5fposition_2eh',['gnss_position.h',['../gnss__position_8h.html',1,'']]], ['gnss_5fquality',['gnss_quality',['../struct_n_m_e_a_data.html#a8048e071ffb9f37ff425305525f2223a',1,'NMEAData']]], - ['gnssposition',['GNSSPosition',['../class_g_n_s_s_position.html',1,'GNSSPosition'],['../class_g_n_s_s_position.html#acef3d8d8eefb6e60cc21096d3cad1cbd',1,'GNSSPosition::GNSSPosition()']]], ['gnssquality',['GNSSQuality',['../nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520',1,'nmea_parser.cpp']]], ['gnssqualitystrings',['gnssQualityStrings',['../nmea__parser_8cpp.html#a78e0374f91eaf4035ec29121f7e40064',1,'nmea_parser.cpp']]], ['gpggasentenceparser',['GPGGASentenceParser',['../class_g_p_g_g_a_sentence_parser.html',1,'GPGGASentenceParser'],['../class_g_p_g_g_a_sentence_parser.html#a1a3a77042194bd6ef59b7960c0f35fd1',1,'GPGGASentenceParser::GPGGASentenceParser()']]], diff --git a/docs/search/all_8.js b/docs/search/all_8.js index 4208efd03..11d896152 100644 --- a/docs/search/all_8.js +++ b/docs/search/all_8.js @@ -1,18 +1,15 @@ var searchData= [ ['index_2eh',['index.h',['../index_8h.html',1,'']]], - ['input',['input',['../class_interpolate_1_1_sample.html#a42fda1c13a9f2b8106e65ea85be62b60',1,'Interpolate::Sample']]], + ['input',['input',['../class_curve_interpolator_1_1_sample.html#a43dd7cc1fd950a03a6674056194e935b',1,'CurveInterpolator::Sample']]], ['input_5fbuffer_5flength',['INPUT_BUFFER_LENGTH',['../nmea__parser_8h.html#a6088978b66925a9ff44bbdf302f00726',1,'nmea_parser.h']]], ['integerconsumer',['IntegerConsumer',['../valueconsumer_8h.html#a45a844f7269f830a1f708f965627248c',1,'valueconsumer.h']]], ['integerdevice',['IntegerDevice',['../class_integer_device.html',1,'IntegerDevice'],['../class_integer_device.html#a57f03b477830429220d0f48604bcc6f8',1,'IntegerDevice::IntegerDevice()']]], ['integerproducer',['IntegerProducer',['../valueproducer_8h.html#ab74ca4be7de22a21f73128ea38a4cbbb',1,'valueproducer.h']]], - ['integertransform',['IntegerTransform',['../transform_8h.html#ae89d78453e476b19db8b903f80c90c5a',1,'transform.h']]], - ['integrator',['Integrator',['../class_integrator.html',1,'Integrator'],['../class_integrator.html#a3d6851037fee19338eac9ea2441f51ef',1,'Integrator::Integrator()']]], + ['integertransform',['IntegerTransform',['../transform_8h.html#ae9c0b5d70ecdf35d4bd3a0a4bd4e0d17',1,'transform.h']]], + ['integrator',['Integrator',['../class_integrator.html',1,'Integrator'],['../class_integrator.html#a787de1dd45b1ced5607e6209f0e01dd0',1,'Integrator::Integrator()']]], ['integrator_2ecpp',['integrator.cpp',['../integrator_8cpp.html',1,'']]], ['integrator_2eh',['integrator.h',['../integrator_8h.html',1,'']]], - ['interpolate',['Interpolate',['../class_interpolate.html',1,'Interpolate'],['../class_interpolate.html#a1af1c1b5f19dbddae28827b771a69cbf',1,'Interpolate::Interpolate()']]], - ['interpolate_2ecpp',['interpolate.cpp',['../interpolate_8cpp.html',1,'']]], - ['interpolate_2eh',['interpolate.h',['../interpolate_8h.html',1,'']]], ['interrupt_5ftype',['interrupt_type',['../class_digital_input.html#aa4e30fc0836ce2d0934b9eb5d507f116',1,'DigitalInput']]], ['ipaddrdev',['IPAddrDev',['../class_i_p_addr_dev.html',1,'']]], ['is_5fconnected',['is_connected',['../class_w_s_client.html#a6ae43b80f511194b43b0dff2763d68b1',1,'WSClient']]], diff --git a/docs/search/all_a.js b/docs/search/all_a.js index 893325d88..043bc8fdf 100644 --- a/docs/search/all_a.js +++ b/docs/search/all_a.js @@ -6,7 +6,7 @@ var searchData= ['led_5fblinker_2eh',['led_blinker.h',['../led__blinker_8h.html',1,'']]], ['led_5fpin',['LED_PIN',['../led__blinker_8cpp.html#ab4553be4db9860d940f81d7447173b2f',1,'led_blinker.cpp']]], ['ledblinker',['LedBlinker',['../class_led_blinker.html',1,'LedBlinker'],['../class_led_blinker.html#a7e774b60394cf16d0be68cfd38197199',1,'LedBlinker::LedBlinker()']]], - ['linear',['Linear',['../class_linear.html',1,'Linear'],['../class_linear.html#a084b09a0486056030c80b0f4dfb7cb1f',1,'Linear::Linear()']]], + ['linear',['Linear',['../class_linear.html',1,'Linear'],['../class_linear.html#ad9477f54820b5a234339d342836e9869',1,'Linear::Linear()']]], ['linear_2ecpp',['linear.cpp',['../linear_8cpp.html',1,'']]], ['linear_2eh',['linear.h',['../linear_8h.html',1,'']]], ['load_5fconfiguration',['load_configuration',['../class_configurable.html#ac2ba4044c81acc2fc6bf95cce411f6a4',1,'Configurable']]], diff --git a/docs/search/all_b.js b/docs/search/all_b.js index 6e067a384..225480fe7 100644 --- a/docs/search/all_b.js +++ b/docs/search/all_b.js @@ -4,6 +4,6 @@ var searchData= ['max_5fterms',['MAX_TERMS',['../nmea__parser_8h.html#a6487a496a45b3acfe263589909cfc101',1,'nmea_parser.h']]], ['moving_5faverage_2ecpp',['moving_average.cpp',['../moving__average_8cpp.html',1,'']]], ['moving_5faverage_2eh',['moving_average.h',['../moving__average_8h.html',1,'']]], - ['movingaverage',['MovingAverage',['../class_moving_average.html',1,'MovingAverage'],['../class_moving_average.html#a0ffb04a59f74c1e58920de64a8136e5f',1,'MovingAverage::MovingAverage()']]], + ['movingaverage',['MovingAverage',['../class_moving_average.html',1,'MovingAverage'],['../class_moving_average.html#adda127d69bc5441a3f4ca98d51c87f4b',1,'MovingAverage::MovingAverage()']]], ['msmindelay',['msMinDelay',['../class_debounce.html#a3e1dca3d133fdef71d95b58a922c478a',1,'Debounce']]] ]; diff --git a/docs/search/all_c.js b/docs/search/all_c.js index e6eb4fcbc..f3f7bf587 100644 --- a/docs/search/all_c.js +++ b/docs/search/all_c.js @@ -16,5 +16,5 @@ var searchData= ['numericconsumer',['NumericConsumer',['../valueconsumer_8h.html#a1220e1ddede7c4512fde395262841b74',1,'valueconsumer.h']]], ['numericdevice',['NumericDevice',['../class_numeric_device.html',1,'NumericDevice'],['../class_numeric_device.html#a0e1774421ac0182e58dd259521ad76bd',1,'NumericDevice::NumericDevice()']]], ['numericproducer',['NumericProducer',['../valueproducer_8h.html#aaf22f94e9cc9067637cd0625ad9fe352',1,'valueproducer.h']]], - ['numerictransform',['NumericTransform',['../transform_8h.html#a3be75a3cb354d5f1fe245410c4d92948',1,'transform.h']]] + ['numerictransform',['NumericTransform',['../transform_8h.html#ac62af394caec478e4d32c254c96af25b',1,'transform.h']]] ]; diff --git a/docs/search/all_d.js b/docs/search/all_d.js index 14a83fe3f..32f42bf75 100644 --- a/docs/search/all_d.js +++ b/docs/search/all_d.js @@ -18,11 +18,11 @@ var searchData= ['onewire_5ftemperature_2ecpp',['onewire_temperature.cpp',['../onewire__temperature_8cpp.html',1,'']]], ['onewire_5ftemperature_2eh',['onewire_temperature.h',['../onewire__temperature_8h.html',1,'']]], ['onewiretemperature',['OneWireTemperature',['../class_one_wire_temperature.html',1,'OneWireTemperature'],['../class_one_wire_temperature.html#a6ceb584282ee0949f76a35ca5ae40a51',1,'OneWireTemperature::OneWireTemperature()']]], - ['operator_3c',['operator<',['../class_enable.html#a5e6385aea4a61b890368ce0b411f690c',1,'Enable::operator<()'],['../class_interpolate_1_1_sample.html#a1cf03a106b3a98056fdb448df6fb9c17',1,'Interpolate::Sample::operator<()']]], + ['operator_3c',['operator<',['../class_enable.html#a5e6385aea4a61b890368ce0b411f690c',1,'Enable::operator<()'],['../class_curve_interpolator_1_1_sample.html#a1cf03a106b3a98056fdb448df6fb9c17',1,'CurveInterpolator::Sample::operator<()']]], ['operator_3d',['operator=',['../class_observable_value.html#a900b99ef37a8d31e84c48a97b8eff10d',1,'ObservableValue']]], ['ota_2ecpp',['ota.cpp',['../ota_8cpp.html',1,'']]], ['ota_2eh',['ota.h',['../ota_8h.html',1,'']]], - ['output',['output',['../class_value_producer.html#a9d3882f6de7ef8b05e78947cf9df2697',1,'ValueProducer::output()'],['../class_interpolate_1_1_sample.html#ab243b190bf17260998dbff5878e3955c',1,'Interpolate::Sample::output()']]], + ['output',['output',['../class_value_producer.html#a9d3882f6de7ef8b05e78947cf9df2697',1,'ValueProducer::output()'],['../class_curve_interpolator_1_1_sample.html#ada14a8de02c7cc737db52aa3a54a330b',1,'CurveInterpolator::Sample::output()']]], ['owda_5fto_5fstring',['owda_to_string',['../onewire__temperature_8cpp.html#ad0134b3041182b5f8c3004025183e6eb',1,'onewire_temperature.cpp']]], ['owdevaddr',['OWDevAddr',['../onewire__temperature_8h.html#aaada9c625aab143feda6189e26144775',1,'onewire_temperature.h']]] ]; diff --git a/docs/search/all_e.js b/docs/search/all_e.js index 64fab3d53..41f62317b 100644 --- a/docs/search/all_e.js +++ b/docs/search/all_e.js @@ -12,8 +12,6 @@ var searchData= ['parse_5fns',['parse_NS',['../nmea__parser_8cpp.html#a18bf596259e1849f3b6bdbdd765ab606',1,'nmea_parser.cpp']]], ['parse_5fpsti030_5fmode',['parse_PSTI030_mode',['../nmea__parser_8cpp.html#a37bce694f34f625b2c3e29a1a74c1570',1,'nmea_parser.cpp']]], ['parse_5ftime',['parse_time',['../nmea__parser_8cpp.html#a202c8d748e820b33d2fb1a324710698b',1,'nmea_parser.cpp']]], - ['passthrough',['Passthrough',['../class_passthrough.html',1,'Passthrough< T >'],['../class_passthrough.html#ad4c60e8f46012deb4643f2ad7871df72',1,'Passthrough::Passthrough()'],['../class_passthrough.html#a63f4217398589b274a2a2c4b7f48c8e5',1,'Passthrough::Passthrough(String sk_path, String config_path="")']]], - ['passthrough_2eh',['passthrough.h',['../passthrough_8h.html',1,'']]], ['pin',['pin',['../class_digital_input.html#a92b46ff35c6b0fcf13644727c0a6b61f',1,'DigitalInput']]], ['position',['Position',['../struct_position.html',1,'Position'],['../struct_n_m_e_a_data.html#a249d831d604857b04284d4c33719005e',1,'NMEAData::position()']]], ['precise_5fgnss',['precise_gnss',['../nmea__parser_8cpp.html#ae6214acf1027a76f58e3b83767cc4520afa0a09a3165e3cc313372a0b424b149c',1,'nmea_parser.cpp']]], diff --git a/docs/search/classes_1.js b/docs/search/classes_1.js index 1e834c828..d968cf05c 100644 --- a/docs/search/classes_1.js +++ b/docs/search/classes_1.js @@ -1,4 +1,5 @@ var searchData= [ - ['configurable',['Configurable',['../class_configurable.html',1,'']]] + ['configurable',['Configurable',['../class_configurable.html',1,'']]], + ['curveinterpolator',['CurveInterpolator',['../class_curve_interpolator.html',1,'']]] ]; diff --git a/docs/search/classes_10.js b/docs/search/classes_10.js index 2d3de9f0c..e2763f4b9 100644 --- a/docs/search/classes_10.js +++ b/docs/search/classes_10.js @@ -1,13 +1,16 @@ var searchData= [ ['valueconsumer',['ValueConsumer',['../class_value_consumer.html',1,'']]], + ['valueconsumer_3c_20c_20_3e',['ValueConsumer< C >',['../class_value_consumer.html',1,'']]], ['valueconsumer_3c_20float_20_3e',['ValueConsumer< float >',['../class_value_consumer.html',1,'']]], + ['valueconsumer_3c_20int_20_3e',['ValueConsumer< int >',['../class_value_consumer.html',1,'']]], ['valueconsumer_3c_20position_20_3e',['ValueConsumer< Position >',['../class_value_consumer.html',1,'']]], ['valueconsumer_3c_20time_5ft_20_3e',['ValueConsumer< time_t >',['../class_value_consumer.html',1,'']]], ['valueproducer',['ValueProducer',['../class_value_producer.html',1,'']]], ['valueproducer_3c_20enuvector_20_3e',['ValueProducer< ENUVector >',['../class_value_producer.html',1,'']]], ['valueproducer_3c_20float_20_3e',['ValueProducer< float >',['../class_value_producer.html',1,'']]], ['valueproducer_3c_20int_20_3e',['ValueProducer< int >',['../class_value_producer.html',1,'']]], + ['valueproducer_3c_20p_20_3e',['ValueProducer< P >',['../class_value_producer.html',1,'']]], ['valueproducer_3c_20position_20_3e',['ValueProducer< Position >',['../class_value_producer.html',1,'']]], ['valueproducer_3c_20string_20_3e',['ValueProducer< String >',['../class_value_producer.html',1,'']]], ['valueproducer_3c_20time_5ft_20_3e',['ValueProducer< time_t >',['../class_value_producer.html',1,'']]], diff --git a/docs/search/classes_5.js b/docs/search/classes_5.js index 7f21f321a..69c7f6494 100644 --- a/docs/search/classes_5.js +++ b/docs/search/classes_5.js @@ -1,6 +1,5 @@ var searchData= [ - ['gnssposition',['GNSSPosition',['../class_g_n_s_s_position.html',1,'']]], ['gpggasentenceparser',['GPGGASentenceParser',['../class_g_p_g_g_a_sentence_parser.html',1,'']]], ['gpgllsentenceparser',['GPGLLSentenceParser',['../class_g_p_g_l_l_sentence_parser.html',1,'']]], ['gprmcsentenceparser',['GPRMCSentenceParser',['../class_g_p_r_m_c_sentence_parser.html',1,'']]], diff --git a/docs/search/classes_7.js b/docs/search/classes_7.js index 9093857c5..2719cb4a7 100644 --- a/docs/search/classes_7.js +++ b/docs/search/classes_7.js @@ -2,6 +2,5 @@ var searchData= [ ['integerdevice',['IntegerDevice',['../class_integer_device.html',1,'']]], ['integrator',['Integrator',['../class_integrator.html',1,'']]], - ['interpolate',['Interpolate',['../class_interpolate.html',1,'']]], ['ipaddrdev',['IPAddrDev',['../class_i_p_addr_dev.html',1,'']]] ]; diff --git a/docs/search/classes_c.js b/docs/search/classes_c.js index 9e693b8d4..cd142a849 100644 --- a/docs/search/classes_c.js +++ b/docs/search/classes_c.js @@ -1,6 +1,5 @@ var searchData= [ - ['passthrough',['Passthrough',['../class_passthrough.html',1,'']]], ['position',['Position',['../struct_position.html',1,'']]], ['psti030sentenceparser',['PSTI030SentenceParser',['../class_p_s_t_i030_sentence_parser.html',1,'']]], ['psti032sentenceparser',['PSTI032SentenceParser',['../class_p_s_t_i032_sentence_parser.html',1,'']]], diff --git a/docs/search/classes_d.js b/docs/search/classes_d.js index 2369b3a88..e9b39d1b6 100644 --- a/docs/search/classes_d.js +++ b/docs/search/classes_d.js @@ -1,10 +1,14 @@ var searchData= [ - ['sample',['Sample',['../class_interpolate_1_1_sample.html',1,'Interpolate']]], + ['sample',['Sample',['../class_curve_interpolator_1_1_sample.html',1,'CurveInterpolator']]], ['sensespapp',['SensESPApp',['../class_sens_e_s_p_app.html',1,'']]], ['sentenceparser',['SentenceParser',['../class_sentence_parser.html',1,'']]], - ['signalksource',['SignalKSource',['../class_signal_k_source.html',1,'']]], ['skdelta',['SKDelta',['../class_s_k_delta.html',1,'']]], + ['skemitter',['SKEmitter',['../class_s_k_emitter.html',1,'']]], + ['skoutput',['SKOutput',['../class_s_k_output.html',1,'']]], + ['skoutput_3c_20position_20_3e',['SKOutput< Position >',['../class_s_k_output.html',1,'']]], + ['skoutputposition',['SKOutputPosition',['../class_s_k_output_position.html',1,'']]], + ['skoutputtime',['SKOutputTime',['../class_s_k_output_time.html',1,'']]], ['stringdevice',['StringDevice',['../class_string_device.html',1,'']]], ['symmetrictransform',['SymmetricTransform',['../class_symmetric_transform.html',1,'']]], ['symmetrictransform_3c_20float_20_3e',['SymmetricTransform< float >',['../class_symmetric_transform.html',1,'']]], diff --git a/docs/search/classes_e.js b/docs/search/classes_e.js index ac48f3096..80571a6fd 100644 --- a/docs/search/classes_e.js +++ b/docs/search/classes_e.js @@ -1,9 +1,11 @@ var searchData= [ - ['temperatureinterpreter',['TemperatureInterpreter',['../class_temperature_interpreter.html',1,'']]], ['timestring',['TimeString',['../class_time_string.html',1,'']]], ['transform',['Transform',['../class_transform.html',1,'']]], - ['transform_3c_20float_20_3e',['Transform< float >',['../class_transform.html',1,'']]], - ['transform_3c_20position_20_3e',['Transform< Position >',['../class_transform.html',1,'']]], + ['transform_3c_20float_2c_20float_20_3e',['Transform< float, float >',['../class_transform.html',1,'']]], + ['transform_3c_20int_2c_20float_20_3e',['Transform< int, float >',['../class_transform.html',1,'']]], + ['transform_3c_20position_2c_20position_20_3e',['Transform< Position, Position >',['../class_transform.html',1,'']]], + ['transform_3c_20t_2c_20t_20_3e',['Transform< T, T >',['../class_transform.html',1,'']]], + ['transform_3c_20time_5ft_2c_20string_20_3e',['Transform< time_t, String >',['../class_transform.html',1,'']]], ['transformbase',['TransformBase',['../class_transform_base.html',1,'']]] ]; diff --git a/docs/search/files_1.js b/docs/search/files_1.js index 7369e3668..e7d980e90 100644 --- a/docs/search/files_1.js +++ b/docs/search/files_1.js @@ -1,5 +1,7 @@ var searchData= [ ['configurable_2ecpp',['configurable.cpp',['../configurable_8cpp.html',1,'']]], - ['configurable_2eh',['configurable.h',['../configurable_8h.html',1,'']]] + ['configurable_2eh',['configurable.h',['../configurable_8h.html',1,'']]], + ['curveinterpolator_2ecpp',['curveinterpolator.cpp',['../curveinterpolator_8cpp.html',1,'']]], + ['curveinterpolator_2eh',['curveinterpolator.h',['../curveinterpolator_8h.html',1,'']]] ]; diff --git a/docs/search/files_10.js b/docs/search/files_10.js index 839d94562..06700036a 100644 --- a/docs/search/files_10.js +++ b/docs/search/files_10.js @@ -1,7 +1,7 @@ var searchData= [ - ['valueconsumer_2eh',['valueconsumer.h',['../valueconsumer_8h.html',1,'']]], - ['valueproducer_2eh',['valueproducer.h',['../valueproducer_8h.html',1,'']]], - ['voltagedividerr2_2ecpp',['voltagedividerR2.cpp',['../voltagedivider_r2_8cpp.html',1,'']]], - ['voltagedividerr2_2eh',['voltagedividerR2.h',['../voltagedivider_r2_8h.html',1,'']]] + ['wiring_5fhelpers_2ecpp',['wiring_helpers.cpp',['../wiring__helpers_8cpp.html',1,'']]], + ['wiring_5fhelpers_2eh',['wiring_helpers.h',['../wiring__helpers_8h.html',1,'']]], + ['ws_5fclient_2ecpp',['ws_client.cpp',['../ws__client_8cpp.html',1,'']]], + ['ws_5fclient_2eh',['ws_client.h',['../ws__client_8h.html',1,'']]] ]; diff --git a/docs/search/files_5.js b/docs/search/files_5.js index a694e6739..130ac12d0 100644 --- a/docs/search/files_5.js +++ b/docs/search/files_5.js @@ -1,7 +1,5 @@ var searchData= [ - ['gnss_5fposition_2ecpp',['gnss_position.cpp',['../gnss__position_8cpp.html',1,'']]], - ['gnss_5fposition_2eh',['gnss_position.h',['../gnss__position_8h.html',1,'']]], ['gps_2ecpp',['gps.cpp',['../gps_8cpp.html',1,'']]], ['gps_2eh',['gps.h',['../gps_8h.html',1,'']]] ]; diff --git a/docs/search/files_7.js b/docs/search/files_7.js index 667e8cd19..9ee53dd2d 100644 --- a/docs/search/files_7.js +++ b/docs/search/files_7.js @@ -2,7 +2,5 @@ var searchData= [ ['index_2eh',['index.h',['../index_8h.html',1,'']]], ['integrator_2ecpp',['integrator.cpp',['../integrator_8cpp.html',1,'']]], - ['integrator_2eh',['integrator.h',['../integrator_8h.html',1,'']]], - ['interpolate_2ecpp',['interpolate.cpp',['../interpolate_8cpp.html',1,'']]], - ['interpolate_2eh',['interpolate.h',['../interpolate_8h.html',1,'']]] + ['integrator_2eh',['integrator.h',['../integrator_8h.html',1,'']]] ]; diff --git a/docs/search/files_d.js b/docs/search/files_d.js index e29e3838b..0035b96b8 100644 --- a/docs/search/files_d.js +++ b/docs/search/files_d.js @@ -1,4 +1,20 @@ var searchData= [ - ['passthrough_2eh',['passthrough.h',['../passthrough_8h.html',1,'']]] + ['sensesp_2eh',['sensesp.h',['../sensesp_8h.html',1,'']]], + ['sensesp_5fapp_2ecpp',['sensesp_app.cpp',['../sensesp__app_8cpp.html',1,'']]], + ['sensesp_5fapp_2eh',['sensesp_app.h',['../sensesp__app_8h.html',1,'']]], + ['setup_2eh',['setup.h',['../setup_8h.html',1,'']]], + ['signalk_5fdelta_2ecpp',['signalk_delta.cpp',['../signalk__delta_8cpp.html',1,'']]], + ['signalk_5fdelta_2eh',['signalk_delta.h',['../signalk__delta_8h.html',1,'']]], + ['signalk_5femitter_2ecpp',['signalk_emitter.cpp',['../signalk__emitter_8cpp.html',1,'']]], + ['signalk_5femitter_2eh',['signalk_emitter.h',['../signalk__emitter_8h.html',1,'']]], + ['signalk_5foutput_2eh',['signalk_output.h',['../signalk__output_8h.html',1,'']]], + ['signalk_5fposition_2ecpp',['signalk_position.cpp',['../signalk__position_8cpp.html',1,'']]], + ['signalk_5fposition_2eh',['signalk_position.h',['../signalk__position_8h.html',1,'']]], + ['signalk_5ftime_2ecpp',['signalk_time.cpp',['../signalk__time_8cpp.html',1,'']]], + ['signalk_5ftime_2eh',['signalk_time.h',['../signalk__time_8h.html',1,'']]], + ['spiffs_5fstorage_2ecpp',['spiffs_storage.cpp',['../spiffs__storage_8cpp.html',1,'']]], + ['spiffs_5fstorage_2eh',['spiffs_storage.h',['../spiffs__storage_8h.html',1,'']]], + ['system_5finfo_2ecpp',['system_info.cpp',['../system__info_8cpp.html',1,'']]], + ['system_5finfo_2eh',['system_info.h',['../system__info_8h.html',1,'']]] ]; diff --git a/docs/search/files_e.js b/docs/search/files_e.js index eb017858d..348b1ee15 100644 --- a/docs/search/files_e.js +++ b/docs/search/files_e.js @@ -1,15 +1,7 @@ var searchData= [ - ['sensesp_2eh',['sensesp.h',['../sensesp_8h.html',1,'']]], - ['sensesp_5fapp_2ecpp',['sensesp_app.cpp',['../sensesp__app_8cpp.html',1,'']]], - ['sensesp_5fapp_2eh',['sensesp_app.h',['../sensesp__app_8h.html',1,'']]], - ['setup_2eh',['setup.h',['../setup_8h.html',1,'']]], - ['signal_5fk_2ecpp',['signal_k.cpp',['../signal__k_8cpp.html',1,'']]], - ['signal_5fk_2eh',['signal_k.h',['../signal__k_8h.html',1,'']]], - ['signalksource_2ecpp',['signalksource.cpp',['../signalksource_8cpp.html',1,'']]], - ['signalksource_2eh',['signalksource.h',['../signalksource_8h.html',1,'']]], - ['spiffs_5fstorage_2ecpp',['spiffs_storage.cpp',['../spiffs__storage_8cpp.html',1,'']]], - ['spiffs_5fstorage_2eh',['spiffs_storage.h',['../spiffs__storage_8h.html',1,'']]], - ['system_5finfo_2ecpp',['system_info.cpp',['../system__info_8cpp.html',1,'']]], - ['system_5finfo_2eh',['system_info.h',['../system__info_8h.html',1,'']]] + ['timestring_2ecpp',['timestring.cpp',['../timestring_8cpp.html',1,'']]], + ['timestring_2eh',['timestring.h',['../timestring_8h.html',1,'']]], + ['transform_2ecpp',['transform.cpp',['../transform_8cpp.html',1,'']]], + ['transform_2eh',['transform.h',['../transform_8h.html',1,'']]] ]; diff --git a/docs/search/files_f.js b/docs/search/files_f.js index 234790c89..839d94562 100644 --- a/docs/search/files_f.js +++ b/docs/search/files_f.js @@ -1,9 +1,7 @@ var searchData= [ - ['temperatureinterpreter_2ecpp',['temperatureinterpreter.cpp',['../temperatureinterpreter_8cpp.html',1,'']]], - ['temperatureinterpreter_2eh',['temperatureinterpreter.h',['../temperatureinterpreter_8h.html',1,'']]], - ['timestring_2ecpp',['timestring.cpp',['../timestring_8cpp.html',1,'']]], - ['timestring_2eh',['timestring.h',['../timestring_8h.html',1,'']]], - ['transform_2ecpp',['transform.cpp',['../transform_8cpp.html',1,'']]], - ['transform_2eh',['transform.h',['../transform_8h.html',1,'']]] + ['valueconsumer_2eh',['valueconsumer.h',['../valueconsumer_8h.html',1,'']]], + ['valueproducer_2eh',['valueproducer.h',['../valueproducer_8h.html',1,'']]], + ['voltagedividerr2_2ecpp',['voltagedividerR2.cpp',['../voltagedivider_r2_8cpp.html',1,'']]], + ['voltagedividerr2_2eh',['voltagedividerR2.h',['../voltagedivider_r2_8h.html',1,'']]] ]; diff --git a/docs/search/functions_0.js b/docs/search/functions_0.js index 467474f68..8b3e65faf 100644 --- a/docs/search/functions_0.js +++ b/docs/search/functions_0.js @@ -1,9 +1,9 @@ var searchData= [ ['add_5fsentence_5fparser',['add_sentence_parser',['../class_n_m_e_a_parser.html#a438b3fd8f8587b55a3785656651f73a6',1,'NMEAParser']]], - ['addsample',['addSample',['../class_interpolate.html#a403cf307fbec7e985b8b736f8d25cd43',1,'Interpolate']]], - ['analogvoltage',['AnalogVoltage',['../class_analog_voltage.html#aa685c09a7c29bec4ed7b89e6317ee127',1,'AnalogVoltage']]], + ['addsample',['addSample',['../class_curve_interpolator.html#a314df8dc54dc73798197c9c9ce6859ac',1,'CurveInterpolator']]], + ['analogvoltage',['AnalogVoltage',['../class_analog_voltage.html#a22cee4790f99a391a883370cac00894a',1,'AnalogVoltage']]], ['append',['append',['../class_s_k_delta.html#afacfa3952be6179d0e96960575f393a8',1,'SKDelta']]], - ['as_5fsignalk',['as_signalK',['../class_signal_k_source.html#aadf429c623392e8717957bc3c09852d0',1,'SignalKSource::as_signalK()'],['../class_difference.html#ae997bff433d26706bf892a9e62a4f16e',1,'Difference::as_signalK()'],['../class_frequency.html#a8c800e44383c952c3afb3653713e9f82',1,'Frequency::as_signalK()'],['../class_g_n_s_s_position.html#a070948f5a4729aa16c2943ba90e6760e',1,'GNSSPosition::as_signalK()'],['../class_integrator.html#ad0444330433ed9e46f55050da21f0ea5',1,'Integrator::as_signalK()'],['../class_interpolate.html#ade58a8591eb935cb5577ed40435fb4d4',1,'Interpolate::as_signalK()'],['../class_linear.html#a03c3950e9baabef8f54eb31d65b752fd',1,'Linear::as_signalK()'],['../class_moving_average.html#afb4db64f5dbaae11bc4d3cd09b8b8af0',1,'MovingAverage::as_signalK()'],['../class_passthrough.html#acc3e3b30c646d1e49bc9b003e7edb97e',1,'Passthrough::as_signalK()'],['../class_time_string.html#af290f6820906cba8d628ac04aad09378',1,'TimeString::as_signalK()'],['../class_voltage_divider_r2.html#a1d13a6e6ddac3468c3722dc884a64ffd',1,'VoltageDividerR2::as_signalK()']]], + ['as_5fsignalk',['as_signalK',['../class_s_k_emitter.html#aa08f537c7d7b1782fea4d381a65cf521',1,'SKEmitter::as_signalK()'],['../class_s_k_output.html#a07b3524ca9ffa1dff03f4bf522d9e3d2',1,'SKOutput::as_signalK()'],['../class_s_k_output_position.html#a8738584e0866f15b75748e902834c547',1,'SKOutputPosition::as_signalK()'],['../class_s_k_output_time.html#a09b9f813788470bd06891f34ba58d84b',1,'SKOutputTime::as_signalK()']]], ['attach',['attach',['../class_observable.html#af72ed9c9cf7157a33caad4b930232e69',1,'Observable']]] ]; diff --git a/docs/search/functions_1.js b/docs/search/functions_1.js index 1bcc30c56..cc35370a2 100644 --- a/docs/search/functions_1.js +++ b/docs/search/functions_1.js @@ -1,12 +1,11 @@ var searchData= [ ['check_5fconnection',['check_connection',['../class_networking.html#ae4b12924970227730df3377144301a7c',1,'Networking']]], - ['clearsamples',['clearSamples',['../class_interpolate.html#ad8ce06fa260129a286e01650c5b47ea9',1,'Interpolate']]], + ['clearsamples',['clearSamples',['../class_curve_interpolator.html#afb1dbb8e85015e2909dff8495875f8f5',1,'CurveInterpolator']]], ['configurable',['Configurable',['../class_configurable.html#a8972a439fb9b734ff68d27c699640f78',1,'Configurable']]], ['connect',['connect',['../class_w_s_client.html#a1612670a5dccbc8a39518ae972fbae90',1,'WSClient::connect()'],['../class_sens_e_s_p_app.html#ac53d90429563f50e4aca5224a1e85afd',1,'SensESPApp::connect()']]], - ['connect_5f1to1',['connect_1to1',['../class_sens_e_s_p_app.html#a0a499dc1d52fa2115d314149bb41259f',1,'SensESPApp']]], ['connect_5f1to1_5fh',['connect_1to1_h',['../class_sens_e_s_p_app.html#a8875ca27de5c10c1b2931c3c41e1f9b5',1,'SensESPApp']]], - ['connect_5f2to1',['connect_2to1',['../class_sens_e_s_p_app.html#a5c4d4d6581822017e942421c833f27f3',1,'SensESPApp']]], - ['connectfrom',['connectFrom',['../class_value_consumer.html#a6adf62d8d87ffa3ce70bb85379a68715',1,'ValueConsumer::connectFrom()'],['../class_symmetric_transform.html#aefde059b7d9b753b11a33dd4bac6972b',1,'SymmetricTransform::connectFrom()']]], - ['connectto',['connectTo',['../class_value_producer.html#a1669282467997608ce6164fe4d729bb2',1,'ValueProducer::connectTo(ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)'],['../class_value_producer.html#a64af7a373036743d912876475c566045',1,'ValueProducer::connectTo(SymmetricTransform< T > *pProducerConsumer, uint8_t inputChannel=0)']]] + ['connectfrom',['connectFrom',['../class_value_consumer.html#a6adf62d8d87ffa3ce70bb85379a68715',1,'ValueConsumer::connectFrom()'],['../class_transform.html#a7721846cbfe5b3d95c6f1f40cb387c5d',1,'Transform::connectFrom()']]], + ['connectto',['connectTo',['../class_value_producer.html#a1669282467997608ce6164fe4d729bb2',1,'ValueProducer::connectTo(ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)'],['../class_value_producer.html#adfb3d9679b80c9fae0951ca13911344f',1,'ValueProducer::connectTo(Transform< T, T2 > *pConsumerProducer, uint8_t inputChannel=0)']]], + ['curveinterpolator',['CurveInterpolator',['../class_curve_interpolator.html#a09bdf144307f1264c36d5afaea5c96a3',1,'CurveInterpolator']]] ]; diff --git a/docs/search/functions_10.js b/docs/search/functions_10.js index 9da604c8e..d1f67275e 100644 --- a/docs/search/functions_10.js +++ b/docs/search/functions_10.js @@ -1,5 +1,5 @@ var searchData= [ ['valueproducer',['ValueProducer',['../class_value_producer.html#a0ef05992883120f7202c14fd8e577103',1,'ValueProducer']]], - ['voltagedividerr2',['VoltageDividerR2',['../class_voltage_divider_r2.html#aa01015814dad17dd7db497a8c9209d44',1,'VoltageDividerR2']]] + ['voltagedividerr2',['VoltageDividerR2',['../class_voltage_divider_r2.html#a609ab5e2db4122ddc875a94ba8f9d325',1,'VoltageDividerR2']]] ]; diff --git a/docs/search/functions_2.js b/docs/search/functions_2.js index d6052e945..7cc092560 100644 --- a/docs/search/functions_2.js +++ b/docs/search/functions_2.js @@ -2,9 +2,9 @@ var searchData= [ ['dallastemperaturesensors',['DallasTemperatureSensors',['../class_dallas_temperature_sensors.html#a778aa28e0e329028f2811c5ed71cb11d',1,'DallasTemperatureSensors']]], ['data_5favailable',['data_available',['../class_s_k_delta.html#a74ab20a661a4f80a336b50fccc4bd9bc',1,'SKDelta']]], - ['debounce',['Debounce',['../class_debounce.html#ae99846a27be1f2d4046cb5d11cb921cd',1,'Debounce']]], + ['debounce',['Debounce',['../class_debounce.html#a1cf5653ecaffe84d03202cd9f002bba4',1,'Debounce']]], ['device',['Device',['../class_device.html#a170bb69c9bf69109815c18a70a77a875',1,'Device']]], - ['difference',['Difference',['../class_difference.html#a6a9d692bfdc1c5bbabe5535d3d951834',1,'Difference']]], + ['difference',['Difference',['../class_difference.html#ab37fbe4fe6592f7591a124c1b90f8f48',1,'Difference']]], ['digitalinput',['DigitalInput',['../class_digital_input.html#ac87da1c4d7b53427d71d71b34d25c6eb',1,'DigitalInput']]], ['digitalinputcounter',['DigitalInputCounter',['../class_digital_input_counter.html#adde82c1aeae1f8f452b3bbb31a3114a5',1,'DigitalInputCounter']]], ['digitalinputvalue',['DigitalInputValue',['../class_digital_input_value.html#a04759be73328ea38d11eb7ec63517761',1,'DigitalInputValue']]] diff --git a/docs/search/functions_3.js b/docs/search/functions_3.js index 2ed33a1c6..58a48d5ed 100644 --- a/docs/search/functions_3.js +++ b/docs/search/functions_3.js @@ -1,5 +1,5 @@ var searchData= [ - ['enable',['Enable',['../class_enable.html#a62d0a37863086502e168bfa8ab94ebc0',1,'Enable::Enable()'],['../class_analog_input.html#a34942eae263f68e8f44fa3f405d057fb',1,'AnalogInput::enable()'],['../class_digital_input_value.html#a504c6c9ad6578156df7eb524f9635912',1,'DigitalInputValue::enable()'],['../class_digital_input_counter.html#a9848278592225d90ff71b99ce940771e',1,'DigitalInputCounter::enable()'],['../class_g_p_s_input.html#af94497b920d346ed5ccad18bd4dbfd9c',1,'GPSInput::enable()'],['../class_dallas_temperature_sensors.html#ae30b8206143d488a4d887b4294da6bb2',1,'DallasTemperatureSensors::enable()'],['../class_one_wire_temperature.html#a86817f083dfb5e9373b48d8fd1f8d165',1,'OneWireTemperature::enable()'],['../class_system_hz.html#a2f2337dcbe45cce879392f28579e233d',1,'SystemHz::enable()'],['../class_free_mem.html#aa3487ef2dff96a33778881da391b2129',1,'FreeMem::enable()'],['../class_uptime.html#a677ab855187348527ccdb0725552e02a',1,'Uptime::enable()'],['../class_i_p_addr_dev.html#afd8dec59375d39cf785819f8ea3685a1',1,'IPAddrDev::enable()'],['../class_h_t_t_p_server.html#a6f5600d8187ec82cb83e84252a387c38',1,'HTTPServer::enable()'],['../class_w_s_client.html#a1313d063fd61739f7e3ca9b2c126b048',1,'WSClient::enable()'],['../class_sens_e_s_p_app.html#a3d70c22bfd1bf842f6daa83ab2f50f79',1,'SensESPApp::enable()'],['../class_enable.html#a62ea021bf8d986150be346977a8eede3',1,'Enable::enable()'],['../class_frequency.html#a2f0884295031b687dadd09add8acb877',1,'Frequency::enable()'],['../class_integrator.html#ad52503a30ef9abf171209988d256ec22',1,'Integrator::enable()']]], + ['enable',['Enable',['../class_enable.html#a62d0a37863086502e168bfa8ab94ebc0',1,'Enable::Enable()'],['../class_analog_input.html#a34942eae263f68e8f44fa3f405d057fb',1,'AnalogInput::enable()'],['../class_digital_input_value.html#a504c6c9ad6578156df7eb524f9635912',1,'DigitalInputValue::enable()'],['../class_digital_input_counter.html#a9848278592225d90ff71b99ce940771e',1,'DigitalInputCounter::enable()'],['../class_g_p_s_input.html#af94497b920d346ed5ccad18bd4dbfd9c',1,'GPSInput::enable()'],['../class_dallas_temperature_sensors.html#ae30b8206143d488a4d887b4294da6bb2',1,'DallasTemperatureSensors::enable()'],['../class_one_wire_temperature.html#a86817f083dfb5e9373b48d8fd1f8d165',1,'OneWireTemperature::enable()'],['../class_system_hz.html#a2f2337dcbe45cce879392f28579e233d',1,'SystemHz::enable()'],['../class_free_mem.html#aa3487ef2dff96a33778881da391b2129',1,'FreeMem::enable()'],['../class_uptime.html#a677ab855187348527ccdb0725552e02a',1,'Uptime::enable()'],['../class_i_p_addr_dev.html#afd8dec59375d39cf785819f8ea3685a1',1,'IPAddrDev::enable()'],['../class_h_t_t_p_server.html#a6f5600d8187ec82cb83e84252a387c38',1,'HTTPServer::enable()'],['../class_w_s_client.html#a1313d063fd61739f7e3ca9b2c126b048',1,'WSClient::enable()'],['../class_sens_e_s_p_app.html#a3d70c22bfd1bf842f6daa83ab2f50f79',1,'SensESPApp::enable()'],['../class_enable.html#a62ea021bf8d986150be346977a8eede3',1,'Enable::enable()'],['../class_frequency.html#a0d6846952b3295809421ac18633e397e',1,'Frequency::enable()'],['../class_integrator.html#ad52503a30ef9abf171209988d256ec22',1,'Integrator::enable()']]], ['enableall',['enableAll',['../class_enable.html#ab55d4552f3b66d7a198377b2d3fc7fa2',1,'Enable']]] ]; diff --git a/docs/search/functions_4.js b/docs/search/functions_4.js index b9c2c28e6..217d7ef92 100644 --- a/docs/search/functions_4.js +++ b/docs/search/functions_4.js @@ -1,5 +1,5 @@ var searchData= [ ['flip',['flip',['../class_led_blinker.html#af00270a463b74c855dfc95d98c7bfd7e',1,'LedBlinker']]], - ['frequency',['Frequency',['../class_frequency.html#acea1b0044fbbbdf51eaaea887e6b0d39',1,'Frequency']]] + ['frequency',['Frequency',['../class_frequency.html#abbaff61b74433bb8a990685be24c3c8b',1,'Frequency']]] ]; diff --git a/docs/search/functions_5.js b/docs/search/functions_5.js index 41b3bba7a..3a65c0a10 100644 --- a/docs/search/functions_5.js +++ b/docs/search/functions_5.js @@ -1,18 +1,17 @@ var searchData= [ ['get',['get',['../class_value_producer.html#adaf30ea1027efa0c83c75dfe3afc0c1a',1,'ValueProducer']]], - ['get_5fconfig_5fschema',['get_config_schema',['../class_one_wire_temperature.html#a4331b2b91d6c7d000454e741cdce9d0a',1,'OneWireTemperature::get_config_schema()'],['../class_networking.html#a253025ed2a3c36eb998e7b900155359e',1,'Networking::get_config_schema()'],['../class_w_s_client.html#a78fbe2ccf0f84423abbf9d1047aff0bc',1,'WSClient::get_config_schema()'],['../class_configurable.html#a73131c4e7dd8134f23a93de861e1c0e4',1,'Configurable::get_config_schema()'],['../class_difference.html#ac5b6559e3820f2f58bed5d120a440a55',1,'Difference::get_config_schema()'],['../class_frequency.html#a93e3f28917f7faa7411b95745171f6af',1,'Frequency::get_config_schema()'],['../class_g_n_s_s_position.html#ae8a6a06700255194de45b4188fe6d08a',1,'GNSSPosition::get_config_schema()'],['../class_integrator.html#a513afaf30460fee68abd295780527d05',1,'Integrator::get_config_schema()'],['../class_interpolate.html#a7e1899424a81663d61951d976518e400',1,'Interpolate::get_config_schema()'],['../class_linear.html#afc896eaed1df40409ea3ce17d81929cc',1,'Linear::get_config_schema()'],['../class_moving_average.html#ad6f06b147a017e528e3d8b991cec2763',1,'MovingAverage::get_config_schema()'],['../class_passthrough.html#aa19d8446db1373f48ca644f3463580a8',1,'Passthrough::get_config_schema()'],['../class_time_string.html#adf45aade28b1e60657253aefe9a1b6f4',1,'TimeString::get_config_schema()'],['../class_voltage_divider_r2.html#ae37065fd9bd093497ff74a9faf5b6cea',1,'VoltageDividerR2::get_config_schema()']]], - ['get_5fconfiguration',['get_configuration',['../class_one_wire_temperature.html#a4a1058669383f507ed70bd46f9f0d2f0',1,'OneWireTemperature::get_configuration()'],['../class_networking.html#a2b8f2f52b332dc0af375113a64881a8a',1,'Networking::get_configuration()'],['../class_w_s_client.html#a2a41e313d8d3be52cd7bb53e6bbf3117',1,'WSClient::get_configuration()'],['../class_configurable.html#a787559a1a907f909d6088d2ec6825b44',1,'Configurable::get_configuration()'],['../class_difference.html#ad4ba9de084c2ae21cda13101911ab086',1,'Difference::get_configuration()'],['../class_frequency.html#a40efa67350036f8bdc07be9fd4a94e42',1,'Frequency::get_configuration()'],['../class_g_n_s_s_position.html#a261e90fc05b828e9539c6622ec3aafe3',1,'GNSSPosition::get_configuration()'],['../class_integrator.html#a1b4cfd7f598d8456a582865a88d768e7',1,'Integrator::get_configuration()'],['../class_interpolate.html#a428a74bba411c87ffbe5bedefb383733',1,'Interpolate::get_configuration()'],['../class_linear.html#a8d3a1f72738efeb83ed913590105e615',1,'Linear::get_configuration()'],['../class_moving_average.html#a36b9fbfa38ae531a86efa19ccda45e99',1,'MovingAverage::get_configuration()'],['../class_passthrough.html#aecaa7961190394983b550495da47ee9c',1,'Passthrough::get_configuration()'],['../class_time_string.html#a266d69d7194eb2c4c3bcd1bbc7e5251c',1,'TimeString::get_configuration()'],['../class_voltage_divider_r2.html#a35275626b89244eb30f0c1be504dbdb6',1,'VoltageDividerR2::get_configuration()']]], + ['get_5fconfig_5fschema',['get_config_schema',['../class_one_wire_temperature.html#a4331b2b91d6c7d000454e741cdce9d0a',1,'OneWireTemperature::get_config_schema()'],['../class_networking.html#a253025ed2a3c36eb998e7b900155359e',1,'Networking::get_config_schema()'],['../class_w_s_client.html#a78fbe2ccf0f84423abbf9d1047aff0bc',1,'WSClient::get_config_schema()'],['../class_s_k_output.html#a0f29018517bcb51943dae1dd7bbace0a',1,'SKOutput::get_config_schema()'],['../class_s_k_output_position.html#a1296489a2e57b3ee5740b4f7f1cca6e2',1,'SKOutputPosition::get_config_schema()'],['../class_s_k_output_time.html#aa283f508ef59103626c835cd37b9bfb3',1,'SKOutputTime::get_config_schema()'],['../class_configurable.html#a73131c4e7dd8134f23a93de861e1c0e4',1,'Configurable::get_config_schema()'],['../class_curve_interpolator.html#a6f9c593782d05c95ba92810b8f70f287',1,'CurveInterpolator::get_config_schema()'],['../class_difference.html#ac5b6559e3820f2f58bed5d120a440a55',1,'Difference::get_config_schema()'],['../class_frequency.html#a93e3f28917f7faa7411b95745171f6af',1,'Frequency::get_config_schema()'],['../class_integrator.html#a513afaf30460fee68abd295780527d05',1,'Integrator::get_config_schema()'],['../class_linear.html#afc896eaed1df40409ea3ce17d81929cc',1,'Linear::get_config_schema()'],['../class_moving_average.html#ad6f06b147a017e528e3d8b991cec2763',1,'MovingAverage::get_config_schema()'],['../class_voltage_divider_r2.html#ae37065fd9bd093497ff74a9faf5b6cea',1,'VoltageDividerR2::get_config_schema()']]], + ['get_5fconfiguration',['get_configuration',['../class_one_wire_temperature.html#a4a1058669383f507ed70bd46f9f0d2f0',1,'OneWireTemperature::get_configuration()'],['../class_networking.html#a2b8f2f52b332dc0af375113a64881a8a',1,'Networking::get_configuration()'],['../class_w_s_client.html#a2a41e313d8d3be52cd7bb53e6bbf3117',1,'WSClient::get_configuration()'],['../class_s_k_output.html#a1020f0eb3e0eb6bc10f57034c7fbc0c6',1,'SKOutput::get_configuration()'],['../class_s_k_output_position.html#a1e1dfc32c80fe7e541b9342ef62275b9',1,'SKOutputPosition::get_configuration()'],['../class_s_k_output_time.html#a03982e7159ac7e6d44b8f7c6976617c4',1,'SKOutputTime::get_configuration()'],['../class_configurable.html#a787559a1a907f909d6088d2ec6825b44',1,'Configurable::get_configuration()'],['../class_curve_interpolator.html#a274cd3426b3e379db1538c71bebad9c8',1,'CurveInterpolator::get_configuration()'],['../class_difference.html#a70f6832fd0b14c5eb5c2c05188757b72',1,'Difference::get_configuration()'],['../class_frequency.html#ae121e43d37643d390bc607def68e0e02',1,'Frequency::get_configuration()'],['../class_integrator.html#a1b4cfd7f598d8456a582865a88d768e7',1,'Integrator::get_configuration()'],['../class_linear.html#a98f7cf12073c2aa89bbb7f89b13f6299',1,'Linear::get_configuration()'],['../class_moving_average.html#a1cac9948f8ca32b8d4446e419b09cccb',1,'MovingAverage::get_configuration()'],['../class_voltage_divider_r2.html#a35275626b89244eb30f0c1be504dbdb6',1,'VoltageDividerR2::get_configuration()']]], ['get_5fdelta',['get_delta',['../class_s_k_delta.html#ab1592b494b343964703102a4797d3bbc',1,'SKDelta']]], ['get_5fdevices',['get_devices',['../class_device.html#a784e4de986feeca3770ba9ea58b722cd',1,'Device']]], ['get_5fhostname',['get_hostname',['../class_networking.html#a7a3cac2e878aa2c513451f235c70aff7',1,'Networking::get_hostname()'],['../class_sens_e_s_p_app.html#ac068882b9e9f6092da0818c5e42b48b8',1,'SensESPApp::get_hostname()']]], ['get_5fnext_5faddress',['get_next_address',['../class_dallas_temperature_sensors.html#a1e1b9cd3dd2bde0d51ef657a490881eb',1,'DallasTemperatureSensors']]], - ['get_5fsk_5fpath',['get_sk_path',['../class_signal_k_source.html#a859f4e84f2d96b019ccaf5fdcba35661',1,'SignalKSource']]], - ['get_5fsources',['get_sources',['../class_signal_k_source.html#ab89067dab50ab4583f2bc9678be16650',1,'SignalKSource']]], + ['get_5fsk_5fpath',['get_sk_path',['../class_s_k_emitter.html#ab619d4a66c7683bf06350809e8c2153f',1,'SKEmitter']]], + ['get_5fsources',['get_sources',['../class_s_k_emitter.html#a14e45e259c78d1e4ab7bdcce94fc8b02',1,'SKEmitter']]], ['get_5ftransforms',['get_transforms',['../class_transform_base.html#a17bfeb1e7a836b7bc597aa7d7c4ac116',1,'TransformBase']]], ['get_5fvalue_5fname',['get_value_name',['../class_system_hz.html#aafe9250142a6c4b234f3d8e64771ce95',1,'SystemHz::get_value_name()'],['../class_free_mem.html#a114359cfbb1cffce40e545bf00889757',1,'FreeMem::get_value_name()'],['../class_uptime.html#a43cdcac661b684e1c746fcdf7224e68f',1,'Uptime::get_value_name()'],['../class_i_p_addr_dev.html#aad770ae7db264bfc4bc33d3d1dca71fb',1,'IPAddrDev::get_value_name()']]], ['getenablepriority',['getEnablePriority',['../class_enable.html#a12a65d666c56d9909c2a1958b7cfda40',1,'Enable']]], - ['gnssposition',['GNSSPosition',['../class_g_n_s_s_position.html#acef3d8d8eefb6e60cc21096d3cad1cbd',1,'GNSSPosition']]], ['gpggasentenceparser',['GPGGASentenceParser',['../class_g_p_g_g_a_sentence_parser.html#a1a3a77042194bd6ef59b7960c0f35fd1',1,'GPGGASentenceParser']]], ['gpgllsentenceparser',['GPGLLSentenceParser',['../class_g_p_g_l_l_sentence_parser.html#af4335548b0e919cb23ec9149bc2e8012',1,'GPGLLSentenceParser']]], ['gprmcsentenceparser',['GPRMCSentenceParser',['../class_g_p_r_m_c_sentence_parser.html#a8ea0212728334cc4b6fa4aa650fa2e58',1,'GPRMCSentenceParser']]], diff --git a/docs/search/functions_7.js b/docs/search/functions_7.js index 238ab58b0..014076aed 100644 --- a/docs/search/functions_7.js +++ b/docs/search/functions_7.js @@ -1,8 +1,7 @@ var searchData= [ ['integerdevice',['IntegerDevice',['../class_integer_device.html#a57f03b477830429220d0f48604bcc6f8',1,'IntegerDevice']]], - ['integrator',['Integrator',['../class_integrator.html#a3d6851037fee19338eac9ea2441f51ef',1,'Integrator']]], - ['interpolate',['Interpolate',['../class_interpolate.html#a1af1c1b5f19dbddae28827b771a69cbf',1,'Interpolate']]], + ['integrator',['Integrator',['../class_integrator.html#a787de1dd45b1ced5607e6209f0e01dd0',1,'Integrator']]], ['is_5fconnected',['is_connected',['../class_w_s_client.html#a6ae43b80f511194b43b0dff2763d68b1',1,'WSClient']]], ['issignalkconnected',['isSignalKConnected',['../class_sens_e_s_p_app.html#adee3f53bc75ae6d5d73a8707dd75600e',1,'SensESPApp']]], ['iswificonnected',['isWifiConnected',['../class_sens_e_s_p_app.html#a15f6e0569533b417e9724540d758c884',1,'SensESPApp']]] diff --git a/docs/search/functions_8.js b/docs/search/functions_8.js index 7061bb14b..9b734ebdf 100644 --- a/docs/search/functions_8.js +++ b/docs/search/functions_8.js @@ -1,7 +1,7 @@ var searchData= [ ['ledblinker',['LedBlinker',['../class_led_blinker.html#a7e774b60394cf16d0be68cfd38197199',1,'LedBlinker']]], - ['linear',['Linear',['../class_linear.html#a084b09a0486056030c80b0f4dfb7cb1f',1,'Linear']]], + ['linear',['Linear',['../class_linear.html#ad9477f54820b5a234339d342836e9869',1,'Linear']]], ['load_5fconfiguration',['load_configuration',['../class_configurable.html#ac2ba4044c81acc2fc6bf95cce411f6a4',1,'Configurable']]], ['loop',['loop',['../class_w_s_client.html#ae23657a7da08a9413a09e9054495904e',1,'WSClient']]] ]; diff --git a/docs/search/functions_9.js b/docs/search/functions_9.js index 0fe01a43f..660321996 100644 --- a/docs/search/functions_9.js +++ b/docs/search/functions_9.js @@ -1,4 +1,4 @@ var searchData= [ - ['movingaverage',['MovingAverage',['../class_moving_average.html#a0ffb04a59f74c1e58920de64a8136e5f',1,'MovingAverage']]] + ['movingaverage',['MovingAverage',['../class_moving_average.html#adda127d69bc5441a3f4ca98d51c87f4b',1,'MovingAverage']]] ]; diff --git a/docs/search/functions_c.js b/docs/search/functions_c.js index ebc0eeb0e..164b78294 100644 --- a/docs/search/functions_c.js +++ b/docs/search/functions_c.js @@ -12,7 +12,6 @@ var searchData= ['parse_5fns',['parse_NS',['../nmea__parser_8cpp.html#a18bf596259e1849f3b6bdbdd765ab606',1,'nmea_parser.cpp']]], ['parse_5fpsti030_5fmode',['parse_PSTI030_mode',['../nmea__parser_8cpp.html#a37bce694f34f625b2c3e29a1a74c1570',1,'nmea_parser.cpp']]], ['parse_5ftime',['parse_time',['../nmea__parser_8cpp.html#a202c8d748e820b33d2fb1a324710698b',1,'nmea_parser.cpp']]], - ['passthrough',['Passthrough',['../class_passthrough.html#ad4c60e8f46012deb4643f2ad7871df72',1,'Passthrough::Passthrough()'],['../class_passthrough.html#a63f4217398589b274a2a2c4b7f48c8e5',1,'Passthrough::Passthrough(String sk_path, String config_path="")']]], ['psti030sentenceparser',['PSTI030SentenceParser',['../class_p_s_t_i030_sentence_parser.html#aa368abaa7d559a9a0893d3846a01fdb7',1,'PSTI030SentenceParser']]], ['psti032sentenceparser',['PSTI032SentenceParser',['../class_p_s_t_i032_sentence_parser.html#af44c303ec78c3a24a18eacb265cee013',1,'PSTI032SentenceParser']]], ['pstisentenceparser',['PSTISentenceParser',['../class_p_s_t_i_sentence_parser.html#a4bb2246e947c443d5bca3706e2853cd0',1,'PSTISentenceParser']]] diff --git a/docs/search/functions_e.js b/docs/search/functions_e.js index c9b81fd3f..d359c6438 100644 --- a/docs/search/functions_e.js +++ b/docs/search/functions_e.js @@ -1,6 +1,6 @@ var searchData= [ - ['sample',['Sample',['../class_interpolate_1_1_sample.html#a7e8ee6d431c14a31b87b8fe6607178e1',1,'Interpolate::Sample::Sample()'],['../class_interpolate_1_1_sample.html#ada1514b7936ed3e5f7d1a941c3672d1c',1,'Interpolate::Sample::Sample(float input, float output)'],['../class_interpolate_1_1_sample.html#a25964bd499e52498f179cd07a7f3876c',1,'Interpolate::Sample::Sample(JsonObject &obj)']]], + ['sample',['Sample',['../class_curve_interpolator_1_1_sample.html#a7ad23733bf31c9a8ccbe9689b55f6d67',1,'CurveInterpolator::Sample::Sample()'],['../class_curve_interpolator_1_1_sample.html#aa2ed35560a823ced306ef02a50d95cac',1,'CurveInterpolator::Sample::Sample(float input, float output)'],['../class_curve_interpolator_1_1_sample.html#a5f69567a227e29b795b68e4310a9da40',1,'CurveInterpolator::Sample::Sample(JsonObject &obj)']]], ['save_5fconfig_5fcallback',['save_config_callback',['../networking_8cpp.html#a7930cb24915efc348611f4c48d1d5e4c',1,'networking.cpp']]], ['save_5fconfiguration',['save_configuration',['../class_configurable.html#a657419f13060caa20c45a41935b9d53a',1,'Configurable']]], ['send_5fdelta',['send_delta',['../class_w_s_client.html#ab6bcc3fb4cfe71aff3929480fab9bd5a',1,'WSClient']]], @@ -8,28 +8,31 @@ var searchData= ['sentence',['sentence',['../class_sentence_parser.html#aa079d8ee1b96e2f03a9c7a1f2ddf7519',1,'SentenceParser::sentence()'],['../class_g_p_g_g_a_sentence_parser.html#ac70d60b587cd0e48479c397bb30983a3',1,'GPGGASentenceParser::sentence()'],['../class_g_p_g_l_l_sentence_parser.html#acbee347184ae22343a9af2515ae57c98',1,'GPGLLSentenceParser::sentence()'],['../class_g_p_r_m_c_sentence_parser.html#a75afdae2ce4e8a27676d86ef2f5cbf9f',1,'GPRMCSentenceParser::sentence()'],['../class_p_s_t_i_sentence_parser.html#add6764d7c0579101840b82a86f6bd2ef',1,'PSTISentenceParser::sentence()'],['../class_p_s_t_i030_sentence_parser.html#adf5b386bffd76b1055d70aa59615d493',1,'PSTI030SentenceParser::sentence()'],['../class_p_s_t_i032_sentence_parser.html#acbe297f07ea6729d870ec8222535b1ce',1,'PSTI032SentenceParser::sentence()']]], ['sentenceparser',['SentenceParser',['../class_sentence_parser.html#a20be85c734aab87cf783aaa6a999a29a',1,'SentenceParser']]], ['set',['set',['../class_observable_value.html#a51cf25d4951d3214021da0c25985838d',1,'ObservableValue']]], - ['set_5fconfiguration',['set_configuration',['../class_one_wire_temperature.html#a83bce20a52e396dbd97a43a6e72b2824',1,'OneWireTemperature::set_configuration()'],['../class_networking.html#a59d475a2f12b88ef8334274a9a0b1cee',1,'Networking::set_configuration()'],['../class_w_s_client.html#ad099870379ee102fa4f5b3b584b50658',1,'WSClient::set_configuration()'],['../class_configurable.html#a6e0281fe25cfbdf024bdb05147ffb52b',1,'Configurable::set_configuration()'],['../class_difference.html#a2c34de951c3653ecf75d7edff833f2e0',1,'Difference::set_configuration()'],['../class_frequency.html#a52099d6dbece2eab9ec8b053ab28cdf4',1,'Frequency::set_configuration()'],['../class_g_n_s_s_position.html#a142b7c97d1ff603c513c8e63598c4aef',1,'GNSSPosition::set_configuration()'],['../class_integrator.html#aa53205d3211635dad0a035adf5d511a6',1,'Integrator::set_configuration()'],['../class_interpolate.html#ad1b5b270b694b351248a78186769a114',1,'Interpolate::set_configuration()'],['../class_linear.html#a0135f75a32f4ee0ae76383f10bb5e74b',1,'Linear::set_configuration()'],['../class_moving_average.html#ac8d53bded62d48de3533bea218e86d66',1,'MovingAverage::set_configuration()'],['../class_passthrough.html#ae3a80dd8daac718da3c75eb9eb45197a',1,'Passthrough::set_configuration()'],['../class_time_string.html#a4fbc04b63761975f99f6a812501da0b1',1,'TimeString::set_configuration()'],['../class_voltage_divider_r2.html#a805b64252dccfd3720ce5fc0f84964b3',1,'VoltageDividerR2::set_configuration()']]], + ['set_5fconfiguration',['set_configuration',['../class_one_wire_temperature.html#a83bce20a52e396dbd97a43a6e72b2824',1,'OneWireTemperature::set_configuration()'],['../class_networking.html#a59d475a2f12b88ef8334274a9a0b1cee',1,'Networking::set_configuration()'],['../class_w_s_client.html#ad099870379ee102fa4f5b3b584b50658',1,'WSClient::set_configuration()'],['../class_s_k_output.html#a406e7e56220dd41bd567c56c0e6b9a4d',1,'SKOutput::set_configuration()'],['../class_s_k_output_position.html#a00764a4cad14b5a2ccb6a6c484552229',1,'SKOutputPosition::set_configuration()'],['../class_s_k_output_time.html#a41ad61c700a444916873e908612eca63',1,'SKOutputTime::set_configuration()'],['../class_configurable.html#a6e0281fe25cfbdf024bdb05147ffb52b',1,'Configurable::set_configuration()'],['../class_curve_interpolator.html#acfda195c475a261d2e2a3af365fd6c19',1,'CurveInterpolator::set_configuration()'],['../class_difference.html#a57e134a00cd6688d147f93c662520040',1,'Difference::set_configuration()'],['../class_frequency.html#a87d16c67ce064b9b0f671747808c3963',1,'Frequency::set_configuration()'],['../class_integrator.html#aa53205d3211635dad0a035adf5d511a6',1,'Integrator::set_configuration()'],['../class_linear.html#ab12c626261e763892d4253f48478771a',1,'Linear::set_configuration()'],['../class_moving_average.html#a9f02a3c253c6456e4d5c063ea5f6d364',1,'MovingAverage::set_configuration()'],['../class_voltage_divider_r2.html#a805b64252dccfd3720ce5fc0f84964b3',1,'VoltageDividerR2::set_configuration()']]], ['set_5fhostname',['set_hostname',['../class_networking.html#a500aa01c7d7da3d823a43c40212353f5',1,'Networking::set_hostname()'],['../class_s_k_delta.html#acd3c98ae0fe75f92d5d9c1e6a216a8dd',1,'SKDelta::set_hostname()']]], - ['set_5finput',['set_input',['../class_value_consumer.html#a7bf920e5ad5f171ec6e2aeda056ff01f',1,'ValueConsumer::set_input()'],['../class_debounce.html#a41ba3a24ea3490fc0717fa4d5f7fae0b',1,'Debounce::set_input()'],['../class_difference.html#abf5c7d23d414d2971ddeca8c6bf6b9a7',1,'Difference::set_input()'],['../class_frequency.html#a8854a4f94e59b2f057655e18a62131ab',1,'Frequency::set_input()'],['../class_g_n_s_s_position.html#a0b1570b2bf0da3deb2f4d20a9bb9ea71',1,'GNSSPosition::set_input()'],['../class_integrator.html#a7fb38d2d19aa3e918dbee34b9096f7a6',1,'Integrator::set_input()'],['../class_interpolate.html#a628bd039d46e3a5a70730e9d04914154',1,'Interpolate::set_input()'],['../class_linear.html#aca76127ec02b9e354b0f891d73f24b37',1,'Linear::set_input()'],['../class_moving_average.html#ac953bfbae65b9acde7a2a770b029c5bd',1,'MovingAverage::set_input()'],['../class_passthrough.html#a401a7f308b76eac7ed7d90a618d997db',1,'Passthrough::set_input()'],['../class_time_string.html#a918b15a7599ec68ad8494ce77b08bde1',1,'TimeString::set_input()'],['../class_voltage_divider_r2.html#a43fa7bb9dc49c50de247aac272d7f697',1,'VoltageDividerR2::set_input()']]], + ['set_5finput',['set_input',['../class_s_k_output.html#a43d76eef72e8dad90ee13a001c265be8',1,'SKOutput::set_input()'],['../class_value_consumer.html#a7bf920e5ad5f171ec6e2aeda056ff01f',1,'ValueConsumer::set_input()'],['../class_curve_interpolator.html#a6e4fcb3bb046ecacbe1855d74cdc47bb',1,'CurveInterpolator::set_input()'],['../class_debounce.html#a41ba3a24ea3490fc0717fa4d5f7fae0b',1,'Debounce::set_input()'],['../class_difference.html#a432ef87751c6bee8e5dadc610dfcb4ff',1,'Difference::set_input()'],['../class_frequency.html#a99df388f446a8aa46f465fe464023f55',1,'Frequency::set_input()'],['../class_integrator.html#a7fb38d2d19aa3e918dbee34b9096f7a6',1,'Integrator::set_input()'],['../class_linear.html#a057c8519f6eb7dd28392073010a2cfc3',1,'Linear::set_input()'],['../class_moving_average.html#a22a08de98351ed805b49beecb234ab0b',1,'MovingAverage::set_input()'],['../class_time_string.html#a631583475f42183fdc5cd02914a26320',1,'TimeString::set_input()'],['../class_voltage_divider_r2.html#a43fa7bb9dc49c50de247aac272d7f697',1,'VoltageDividerR2::set_input()']]], ['set_5fserver_5fconnected',['set_server_connected',['../class_led_blinker.html#a0cdd9d7e8cc453edd234ce2785ce28ea',1,'LedBlinker']]], ['set_5fserver_5fdisconnected',['set_server_disconnected',['../class_led_blinker.html#ab0f765b76f30406a7b53d4360c897d64',1,'LedBlinker']]], - ['set_5fsk_5fpath',['set_sk_path',['../class_signal_k_source.html#a664b8607effbf53c9443ec7acc49e505',1,'SignalKSource']]], + ['set_5fsk_5fpath',['set_sk_path',['../class_s_k_emitter.html#a670348fb1ef1bf3d5e1ba49660fc15d9',1,'SKEmitter']]], ['set_5fstate',['set_state',['../class_led_blinker.html#aa9870e4cb1a35a175edcd710142b8595',1,'LedBlinker']]], ['set_5fwifi_5fconnected',['set_wifi_connected',['../class_led_blinker.html#a394a529a52a7ee1e0321498de017f788',1,'LedBlinker']]], ['set_5fwifi_5fdisconnected',['set_wifi_disconnected',['../class_led_blinker.html#a9c0b4f9aaacc14ab555df6abb43e8ae5',1,'LedBlinker']]], + ['setpriority',['setPriority',['../class_enable.html#ab4ca14d496a85788896df6c78143994c',1,'Enable']]], ['setup',['setup',['../class_networking.html#a94815dd34af734e9fc3839cbe6279355',1,'Networking']]], - ['setup_5fanalog_5finput',['setup_analog_input',['../wiring__helpers_8cpp.html#aeef272bff92e31ecb7e38c53e8c9d217',1,'setup_analog_input(SensESPApp *seapp, String sk_path, float k, float c, String config_path): wiring_helpers.cpp'],['../wiring__helpers_8h.html#adea719867d33321e725bf045de32076c',1,'setup_analog_input(SensESPApp *seapp, String sk_path, float k=1, float c=0, String config_path=""): wiring_helpers.cpp']]], - ['setup_5fdigital_5finput',['setup_digital_input',['../wiring__helpers_8cpp.html#a9da3379a0c7725b0d2c7202810b76be3',1,'setup_digital_input(SensESPApp *seapp, int digital_pin, String sk_path, float k, float c, String config_path): wiring_helpers.cpp'],['../wiring__helpers_8h.html#af8491f1a9541b35d11c13f5c2ec8dc46',1,'setup_digital_input(SensESPApp *seapp, int digital_pin, String sk_path, float k=1, float c=0, String config_path=""): wiring_helpers.cpp']]], + ['setup_5fanalog_5finput',['setup_analog_input',['../wiring__helpers_8cpp.html#a3a4bbd0371b8285dbb7b8666d50a53a3',1,'setup_analog_input(String sk_path, float k, float c, String config_path): wiring_helpers.cpp'],['../wiring__helpers_8h.html#a70ac1c40d730c9e0f9b93b1f4dd5f0f9',1,'setup_analog_input(String sk_path, float k=1, float c=0, String config_path=""): wiring_helpers.cpp']]], ['setup_5fdiscovery',['setup_discovery',['../discovery_8cpp.html#aeea49ee803402167d8d79ca58268363e',1,'setup_discovery(const char *hostname): discovery.cpp'],['../discovery_8h.html#aeea49ee803402167d8d79ca58268363e',1,'setup_discovery(const char *hostname): discovery.cpp']]], - ['setup_5ffuel_5fflow_5fmeter',['setup_fuel_flow_meter',['../wiring__helpers_8cpp.html#adfc99a40e14ac9cd0b83ee26e2ea2427',1,'setup_fuel_flow_meter(SensESPApp *seapp, int inflow_pin, int return_flow_pin): wiring_helpers.cpp'],['../wiring__helpers_8h.html#adfc99a40e14ac9cd0b83ee26e2ea2427',1,'setup_fuel_flow_meter(SensESPApp *seapp, int inflow_pin, int return_flow_pin): wiring_helpers.cpp']]], - ['setup_5fgps',['setup_gps',['../wiring__helpers_8cpp.html#a013f0fccc349c462c3a1d1a692e0cc23',1,'setup_gps(SensESPApp *seapp, int serial_input_pin): wiring_helpers.cpp'],['../wiring__helpers_8h.html#a013f0fccc349c462c3a1d1a692e0cc23',1,'setup_gps(SensESPApp *seapp, int serial_input_pin): wiring_helpers.cpp']]], - ['setup_5fonewire_5ftemperature',['setup_onewire_temperature',['../wiring__helpers_8cpp.html#a17220137bcd65b6f922f5a14165a8fcf',1,'setup_onewire_temperature(SensESPApp *seapp, DallasTemperatureSensors *dts, String sk_path, String config_path, String schema): wiring_helpers.cpp'],['../wiring__helpers_8h.html#ad76896b776ebaa3509b6cc91f017e86c',1,'setup_onewire_temperature(SensESPApp *seapp, DallasTemperatureSensors *dts, String sk_path, String config_path): wiring_helpers.h']]], + ['setup_5ffuel_5fflow_5fmeter',['setup_fuel_flow_meter',['../wiring__helpers_8cpp.html#ae36e0604b36693bd720bffcf4145baf9',1,'setup_fuel_flow_meter(int inflow_pin, int return_flow_pin): wiring_helpers.cpp'],['../wiring__helpers_8h.html#ae36e0604b36693bd720bffcf4145baf9',1,'setup_fuel_flow_meter(int inflow_pin, int return_flow_pin): wiring_helpers.cpp']]], + ['setup_5fgps',['setup_gps',['../wiring__helpers_8cpp.html#a2ef51129a7e0e59a4efe2d031141d82f',1,'setup_gps(int serial_input_pin): wiring_helpers.cpp'],['../wiring__helpers_8h.html#a2ef51129a7e0e59a4efe2d031141d82f',1,'setup_gps(int serial_input_pin): wiring_helpers.cpp']]], + ['setup_5fonewire_5ftemperature',['setup_onewire_temperature',['../wiring__helpers_8cpp.html#a17220137bcd65b6f922f5a14165a8fcf',1,'setup_onewire_temperature(SensESPApp *seapp, DallasTemperatureSensors *dts, String sk_path, String config_path, String schema): wiring_helpers.cpp'],['../wiring__helpers_8h.html#a37c83d7d3ac2abb00e8f9e86c1da52d3',1,'setup_onewire_temperature(DallasTemperatureSensors *dts, String sk_path, String config_path): wiring_helpers.h']]], ['setup_5fota',['setup_OTA',['../ota_8cpp.html#a29c2aa13f2bbaccceeb33ed39a6ece11',1,'setup_OTA(): ota.cpp'],['../ota_8h.html#a29c2aa13f2bbaccceeb33ed39a6ece11',1,'setup_OTA(): ota.cpp']]], - ['setup_5frpm_5fmeter',['setup_rpm_meter',['../wiring__helpers_8cpp.html#aa6279a7bab0b61c448263a90303bb7e0',1,'setup_rpm_meter(SensESPApp *seapp, int input_pin): wiring_helpers.cpp'],['../wiring__helpers_8h.html#aa6279a7bab0b61c448263a90303bb7e0',1,'setup_rpm_meter(SensESPApp *seapp, int input_pin): wiring_helpers.cpp']]], + ['setup_5frpm_5fmeter',['setup_rpm_meter',['../wiring__helpers_8cpp.html#aa6279a7bab0b61c448263a90303bb7e0',1,'setup_rpm_meter(SensESPApp *seapp, int input_pin): wiring_helpers.cpp'],['../wiring__helpers_8h.html#a99ed20d80aca90bb060c88019c5f739f',1,'setup_rpm_meter(int input_pin): wiring_helpers.h']]], ['setup_5fspiffs_5fstorage',['setup_spiffs_storage',['../spiffs__storage_8cpp.html#a1dfee751479797b385c81cacb151c115',1,'setup_spiffs_storage(): spiffs_storage.cpp'],['../spiffs__storage_8h.html#a1dfee751479797b385c81cacb151c115',1,'setup_spiffs_storage(): spiffs_storage.cpp']]], - ['signalksource',['SignalKSource',['../class_signal_k_source.html#af2ba130c1d59658c144ac3841d967ac8',1,'SignalKSource']]], ['skdelta',['SKDelta',['../class_s_k_delta.html#a3d4825fc72903feaebe635dc643d2b16',1,'SKDelta']]], + ['skemitter',['SKEmitter',['../class_s_k_emitter.html#aeba0ccd27a8b6bad1e2ddbf2603a5d8d',1,'SKEmitter']]], + ['skoutput',['SKOutput',['../class_s_k_output.html#a88f9638dd4779818b41a62738ba44876',1,'SKOutput::SKOutput()'],['../class_s_k_output.html#a811a99c30626b6840000b0c152aa1f37',1,'SKOutput::SKOutput(String sk_path, String config_path="")']]], + ['skoutputposition',['SKOutputPosition',['../class_s_k_output_position.html#a84591bf7fb62356a76b0a6838eb19aa6',1,'SKOutputPosition']]], + ['skoutputtime',['SKOutputTime',['../class_s_k_output_time.html#ab77e9bdfeb69fd37c6fc87ac247146e4',1,'SKOutputTime']]], ['string_5fto_5fowda',['string_to_owda',['../onewire__temperature_8cpp.html#a2ea2a536fdbbb476ae3fb824d73d3e1a',1,'onewire_temperature.cpp']]], ['stringdevice',['StringDevice',['../class_string_device.html#a6aca962377f5ac96ff960f9bcb7ff948',1,'StringDevice']]], - ['symmetrictransform',['SymmetricTransform',['../class_symmetric_transform.html#add5f3e15e1956bde08508240e1031722',1,'SymmetricTransform']]] + ['symmetrictransform',['SymmetricTransform',['../class_symmetric_transform.html#a77383aeb8a2dc0e27a2fbc24b451bc90',1,'SymmetricTransform']]] ]; diff --git a/docs/search/functions_f.js b/docs/search/functions_f.js index 6c8e37aaa..0e790af74 100644 --- a/docs/search/functions_f.js +++ b/docs/search/functions_f.js @@ -1,7 +1,6 @@ var searchData= [ - ['temperatureinterpreter',['TemperatureInterpreter',['../class_temperature_interpreter.html#a261da73de9ecca813741fc0f69a99053',1,'TemperatureInterpreter']]], - ['timestring',['TimeString',['../class_time_string.html#a9f4690ed5017c87671cff921855ab473',1,'TimeString']]], - ['transform',['Transform',['../class_transform.html#a44b7bcef8cc3b89fd6bbdb6a2bd98593',1,'Transform']]], - ['transformbase',['TransformBase',['../class_transform_base.html#ac5499a469190bd7d6efcc5bbec4f49d7',1,'TransformBase']]] + ['timestring',['TimeString',['../class_time_string.html#adc18ed47c4b6d88acceec81741aab5c3',1,'TimeString']]], + ['transform',['Transform',['../class_transform.html#a764037842596e71f15621e3732dac75a',1,'Transform']]], + ['transformbase',['TransformBase',['../class_transform_base.html#a4f28a4ec27046ac3ef1546eda4b5b43b',1,'TransformBase']]] ]; diff --git a/docs/search/related_0.js b/docs/search/related_0.js index 9df9d69cd..2406161cd 100644 --- a/docs/search/related_0.js +++ b/docs/search/related_0.js @@ -1,4 +1,4 @@ var searchData= [ - ['operator_3c',['operator<',['../class_enable.html#a5e6385aea4a61b890368ce0b411f690c',1,'Enable::operator<()'],['../class_interpolate_1_1_sample.html#a1cf03a106b3a98056fdb448df6fb9c17',1,'Interpolate::Sample::operator<()']]] + ['operator_3c',['operator<',['../class_enable.html#a5e6385aea4a61b890368ce0b411f690c',1,'Enable::operator<()'],['../class_curve_interpolator_1_1_sample.html#a1cf03a106b3a98056fdb448df6fb9c17',1,'CurveInterpolator::Sample::operator<()']]] ]; diff --git a/docs/search/searchdata.js b/docs/search/searchdata.js index 725cc6f5f..a7f17d52f 100644 --- a/docs/search/searchdata.js +++ b/docs/search/searchdata.js @@ -2,7 +2,7 @@ var indexSectionsWithContent = { 0: "abcdefghijlmnoprstuvw~", 1: "acdefghilmnopstuvw", - 2: "acdefghijlmnopstvw", + 2: "acdefghijlmnostvw", 3: "acdefghilmnoprstvw~", 4: "abcdeghilmnoprstuvw", 5: "binosv", diff --git a/docs/search/typedefs_0.js b/docs/search/typedefs_0.js index 1133173b7..a38643c63 100644 --- a/docs/search/typedefs_0.js +++ b/docs/search/typedefs_0.js @@ -2,5 +2,5 @@ var searchData= [ ['booleanconsumer',['BooleanConsumer',['../valueconsumer_8h.html#abea8a189967941972b3e7c5a329c4963',1,'valueconsumer.h']]], ['booleanproducer',['BooleanProducer',['../valueproducer_8h.html#a79edc4b65652f6948d690891bb6d7e0c',1,'valueproducer.h']]], - ['booleantransform',['BooleanTransform',['../transform_8h.html#acbd22cace30bc4704b42c76e0d1b5baf',1,'transform.h']]] + ['booleantransform',['BooleanTransform',['../transform_8h.html#ac1617ff234bef4e8a50341c1d6943246',1,'transform.h']]] ]; diff --git a/docs/search/typedefs_1.js b/docs/search/typedefs_1.js index 46d7dc54f..5060236ae 100644 --- a/docs/search/typedefs_1.js +++ b/docs/search/typedefs_1.js @@ -2,5 +2,5 @@ var searchData= [ ['integerconsumer',['IntegerConsumer',['../valueconsumer_8h.html#a45a844f7269f830a1f708f965627248c',1,'valueconsumer.h']]], ['integerproducer',['IntegerProducer',['../valueproducer_8h.html#ab74ca4be7de22a21f73128ea38a4cbbb',1,'valueproducer.h']]], - ['integertransform',['IntegerTransform',['../transform_8h.html#ae89d78453e476b19db8b903f80c90c5a',1,'transform.h']]] + ['integertransform',['IntegerTransform',['../transform_8h.html#ae9c0b5d70ecdf35d4bd3a0a4bd4e0d17',1,'transform.h']]] ]; diff --git a/docs/search/typedefs_2.js b/docs/search/typedefs_2.js index 10d02b564..982923fcc 100644 --- a/docs/search/typedefs_2.js +++ b/docs/search/typedefs_2.js @@ -2,5 +2,5 @@ var searchData= [ ['numericconsumer',['NumericConsumer',['../valueconsumer_8h.html#a1220e1ddede7c4512fde395262841b74',1,'valueconsumer.h']]], ['numericproducer',['NumericProducer',['../valueproducer_8h.html#aaf22f94e9cc9067637cd0625ad9fe352',1,'valueproducer.h']]], - ['numerictransform',['NumericTransform',['../transform_8h.html#a3be75a3cb354d5f1fe245410c4d92948',1,'transform.h']]] + ['numerictransform',['NumericTransform',['../transform_8h.html#ac62af394caec478e4d32c254c96af25b',1,'transform.h']]] ]; diff --git a/docs/search/typedefs_4.js b/docs/search/typedefs_4.js index b3e8e8934..efa3c3ffd 100644 --- a/docs/search/typedefs_4.js +++ b/docs/search/typedefs_4.js @@ -1,10 +1,10 @@ var searchData= [ + ['skoutputbool',['SKOutputBool',['../signalk__output_8h.html#a1a26c344db2dff33a77cf620aafa6c0c',1,'signalk_output.h']]], + ['skoutputint',['SKOutputInt',['../signalk__output_8h.html#a2a0e216e5ada5e31f7a6d995d2c52642',1,'signalk_output.h']]], + ['skoutputnumber',['SKOutputNumber',['../signalk__output_8h.html#a6c84656f504f6de21c63c1d54d6f39e1',1,'signalk_output.h']]], + ['skoutputstring',['SKOutputString',['../signalk__output_8h.html#a008f63a91ea787950cb6c17e4c031859',1,'signalk_output.h']]], ['stringconsumer',['StringConsumer',['../valueconsumer_8h.html#a1d91b84157f6818bb8b8b04caede8a02',1,'valueconsumer.h']]], ['stringproducer',['StringProducer',['../valueproducer_8h.html#ab845e985974e3ae4c050b8f221337b0d',1,'valueproducer.h']]], - ['stringtransform',['StringTransform',['../transform_8h.html#a9b6f203fb2d7cf6bb03ef36075e68f19',1,'transform.h']]], - ['symmetricbooleantransform',['SymmetricBooleanTransform',['../transform_8h.html#a31aa97c726949c94bf788285a702cd23',1,'transform.h']]], - ['symmetricintegertransform',['SymmetricIntegerTransform',['../transform_8h.html#af9018e893038605790282f34ef1a9475',1,'transform.h']]], - ['symmetricnumerictransform',['SymmetricNumericTransform',['../transform_8h.html#aacd7283062f2280bf82cc3eb48284f5b',1,'transform.h']]], - ['symmetricstringtransform',['SymmetricStringTransform',['../transform_8h.html#a13777cad82c84559093e2ecf1e2955f2',1,'transform.h']]] + ['stringtransform',['StringTransform',['../transform_8h.html#a463af5c6e30307ac67004d67dd014030',1,'transform.h']]] ]; diff --git a/docs/search/variables_7.js b/docs/search/variables_7.js index 0a8d4a573..c10401bd0 100644 --- a/docs/search/variables_7.js +++ b/docs/search/variables_7.js @@ -1,6 +1,6 @@ var searchData= [ - ['input',['input',['../class_interpolate_1_1_sample.html#a42fda1c13a9f2b8106e65ea85be62b60',1,'Interpolate::Sample']]], + ['input',['input',['../class_curve_interpolator_1_1_sample.html#a43dd7cc1fd950a03a6674056194e935b',1,'CurveInterpolator::Sample']]], ['input_5fbuffer_5flength',['INPUT_BUFFER_LENGTH',['../nmea__parser_8h.html#a6088978b66925a9ff44bbdf302f00726',1,'nmea_parser.h']]], ['interrupt_5ftype',['interrupt_type',['../class_digital_input.html#aa4e30fc0836ce2d0934b9eb5d507f116',1,'DigitalInput']]] ]; diff --git a/docs/search/variables_b.js b/docs/search/variables_b.js index 74d134e35..ef2961150 100644 --- a/docs/search/variables_b.js +++ b/docs/search/variables_b.js @@ -1,4 +1,4 @@ var searchData= [ - ['output',['output',['../class_value_producer.html#a9d3882f6de7ef8b05e78947cf9df2697',1,'ValueProducer::output()'],['../class_interpolate_1_1_sample.html#ab243b190bf17260998dbff5878e3955c',1,'Interpolate::Sample::output()']]] + ['output',['output',['../class_value_producer.html#a9d3882f6de7ef8b05e78947cf9df2697',1,'ValueProducer::output()'],['../class_curve_interpolator_1_1_sample.html#ada14a8de02c7cc737db52aa3a54a330b',1,'CurveInterpolator::Sample::output()']]] ]; diff --git a/docs/search/variables_e.js b/docs/search/variables_e.js index 735cca928..2ea69a061 100644 --- a/docs/search/variables_e.js +++ b/docs/search/variables_e.js @@ -3,6 +3,6 @@ var searchData= ['sensesp_5fapp',['sensesp_app',['../sensesp__app_8cpp.html#a9b53af60ecde971876d66994134fbfff',1,'sensesp_app(): sensesp_app.cpp'],['../sensesp__app_8h.html#a9b53af60ecde971876d66994134fbfff',1,'sensesp_app(): sensesp_app.cpp']]], ['sensors',['sensors',['../class_dallas_temperature_sensors.html#abd79995496fd66d416e6d9cd1ff56342',1,'DallasTemperatureSensors']]], ['should_5fsave_5fconfig',['should_save_config',['../networking_8cpp.html#ade4bb65788e7b6ea2d2e3e026baf7310',1,'networking.cpp']]], - ['sk_5fpath',['sk_path',['../class_signal_k_source.html#ac9416b56a4a8fc0e741ec537b2411177',1,'SignalKSource']]], + ['sk_5fpath',['sk_path',['../class_s_k_emitter.html#a06dbe70e930074437b12b86ac4e2464c',1,'SKEmitter']]], ['speed',['speed',['../struct_n_m_e_a_data.html#afe6efa0ec62ce332673ab98b282990c8',1,'NMEAData']]] ]; diff --git a/docs/sensesp_8h.html b/docs/sensesp_8h.html index edeaff125..bf145ea20 100644 --- a/docs/sensesp_8h.html +++ b/docs/sensesp_8h.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -111,54 +111,54 @@
                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                      diff --git a/docs/sensesp_8h__dep__incl.map b/docs/sensesp_8h__dep__incl.map index 985856866..aeb82d76d 100644 --- a/docs/sensesp_8h__dep__incl.map +++ b/docs/sensesp_8h__dep__incl.map @@ -1,50 +1,50 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/sensesp_8h__dep__incl.md5 b/docs/sensesp_8h__dep__incl.md5 index 6a26e2267..fa15c241b 100644 --- a/docs/sensesp_8h__dep__incl.md5 +++ b/docs/sensesp_8h__dep__incl.md5 @@ -1 +1 @@ -a357a03c4df9259765cbf21270212532 \ No newline at end of file +6c7da6ea1694f0282b8ad4c66f12ebb5 \ No newline at end of file diff --git a/docs/sensesp_8h__dep__incl.png b/docs/sensesp_8h__dep__incl.png index 2aac22660..e7ac98612 100644 Binary files a/docs/sensesp_8h__dep__incl.png and b/docs/sensesp_8h__dep__incl.png differ diff --git a/docs/sensesp_8h_source.html b/docs/sensesp_8h_source.html index 04ed75d68..079edc4f3 100644 --- a/docs/sensesp_8h_source.html +++ b/docs/sensesp_8h_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/sensesp__app_8cpp.html b/docs/sensesp__app_8cpp.html index 79c0b6ce4..fc43dd682 100644 --- a/docs/sensesp__app_8cpp.html +++ b/docs/sensesp__app_8cpp.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -106,55 +106,55 @@ #include "transforms/difference.h"
                                                                                      #include "transforms/frequency.h"
                                                                                      #include "transforms/linear.h"
                                                                                      -#include "transforms/passthrough.h"
                                                                                      +#include "signalk/signalk_output.h"
                                                                                      Include dependency graph for sensesp_app.cpp:
                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                      @@ -196,7 +196,7 @@

                                                                                      -

                                                                                      Definition at line 166 of file sensesp_app.cpp.

                                                                                      +

                                                                                      Definition at line 172 of file sensesp_app.cpp.

                                                                                      diff --git a/docs/sensesp__app_8cpp__incl.map b/docs/sensesp__app_8cpp__incl.map index 172c6f250..9e1322b45 100644 --- a/docs/sensesp__app_8cpp__incl.map +++ b/docs/sensesp__app_8cpp__incl.map @@ -1,45 +1,45 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/sensesp__app_8cpp__incl.md5 b/docs/sensesp__app_8cpp__incl.md5 index c74d69519..2fcd1e6a0 100644 --- a/docs/sensesp__app_8cpp__incl.md5 +++ b/docs/sensesp__app_8cpp__incl.md5 @@ -1 +1 @@ -576fc7b119d23e0e26beed8c4c66c203 \ No newline at end of file +edd22b59886ca641435bcdc7f87a69bb \ No newline at end of file diff --git a/docs/sensesp__app_8cpp__incl.png b/docs/sensesp__app_8cpp__incl.png index 427c54545..4e48cb20f 100644 Binary files a/docs/sensesp__app_8cpp__incl.png and b/docs/sensesp__app_8cpp__incl.png differ diff --git a/docs/sensesp__app_8cpp_source.html b/docs/sensesp__app_8cpp_source.html index e5896c6c7..faac9e878 100644 --- a/docs/sensesp__app_8cpp_source.html +++ b/docs/sensesp__app_8cpp_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -91,36 +91,35 @@
                                                                                      sensesp_app.cpp
                                                                                      -Go to the documentation of this file.
                                                                                      1 #include "sensesp_app.h"
                                                                                      2 
                                                                                      3 #include "FS.h"
                                                                                      4 
                                                                                      5 #include "devices/analog_input.h"
                                                                                      7 #include "devices/system_info.h"
                                                                                      8 #include "net/discovery.h"
                                                                                      9 #include "net/ota.h"
                                                                                      10 #include "net/networking.h"
                                                                                      11 #include "system/spiffs_storage.h"
                                                                                      12 #include "transforms/transform.h"
                                                                                      13 #include "transforms/difference.h"
                                                                                      14 #include "transforms/frequency.h"
                                                                                      15 #include "transforms/linear.h"
                                                                                      16 #include "transforms/passthrough.h"
                                                                                      17 
                                                                                      18 #ifndef DEBUG_DISABLED
                                                                                      19 RemoteDebug Debug;
                                                                                      20 #endif
                                                                                      21 
                                                                                      22 // FIXME: Setting up the system is too verbose and repetitive
                                                                                      23 
                                                                                      25  // initialize filesystem
                                                                                      26 
                                                                                      27  if (!SPIFFS.begin()) {
                                                                                      28  debugE("FATAL: Filesystem initialization failed.");
                                                                                      29  ESP.restart();
                                                                                      30  }
                                                                                      31 
                                                                                      32  // create the networking object
                                                                                      33  networking = new Networking("/system/networking");
                                                                                      34  ObservableValue<String>* hostname = networking->get_hostname();
                                                                                      35 
                                                                                      36  // setup standard devices and their transforms
                                                                                      37 
                                                                                      38  setup_standard_devices(hostname);
                                                                                      39 
                                                                                      40  // create the SK delta object
                                                                                      41 
                                                                                      42  sk_delta = new SKDelta(hostname->get());
                                                                                      43 
                                                                                      44  // listen for hostname updates
                                                                                      45 
                                                                                      46  hostname->attach([hostname, this](){
                                                                                      47  this->sk_delta->set_hostname(hostname->get());
                                                                                      48  });
                                                                                      49 
                                                                                      50  // create the HTTP server
                                                                                      51 
                                                                                      52  this->http_server = new HTTPServer(std::bind(&SensESPApp::reset, this));
                                                                                      53 
                                                                                      54  // create the websocket client
                                                                                      55 
                                                                                      56  auto ws_connected_cb = [this](bool connected){
                                                                                      57  if (connected) {
                                                                                      58  this->led_blinker.set_server_connected();
                                                                                      59  } else {
                                                                                      60  this->led_blinker.set_server_disconnected();
                                                                                      61  }
                                                                                      62  };
                                                                                      63  auto ws_delta_cb = [this](){
                                                                                      64  this->led_blinker.flip();
                                                                                      65  };
                                                                                      66  this->ws_client = new WSClient(
                                                                                      67  "/system/sk",
                                                                                      68  sk_delta, ws_connected_cb, ws_delta_cb);
                                                                                      69 }
                                                                                      70 
                                                                                      71 void SensESPApp::setup_standard_devices(ObservableValue<String>* hostname) {
                                                                                      72 
                                                                                      73  // connect systemhz
                                                                                      74 
                                                                                      75  connect_1to1_h<SystemHz, Passthrough<float>>(
                                                                                      76  new SystemHz(),
                                                                                      77  new Passthrough<float>(),
                                                                                      78  hostname
                                                                                      79  );
                                                                                      80 
                                                                                      81  String hostname_str = hostname->get();
                                                                                      82 
                                                                                      83  // connect freemem
                                                                                      84 
                                                                                      85  connect_1to1_h<FreeMem, Passthrough<float>>(
                                                                                      86  new FreeMem(),
                                                                                      87  new Passthrough<float>(),
                                                                                      88  hostname
                                                                                      89  );
                                                                                      90 
                                                                                      91  // connect uptime
                                                                                      92 
                                                                                      93  connect_1to1_h<Uptime, Passthrough<float>>(
                                                                                      94  new Uptime(),
                                                                                      95  new Passthrough<float>(),
                                                                                      96  hostname
                                                                                      97  );
                                                                                      98 
                                                                                      99  // connect ip address
                                                                                      100 
                                                                                      101  connect_1to1_h<IPAddrDev, Passthrough<String>>(
                                                                                      102  new IPAddrDev(),
                                                                                      103  new Passthrough<String>(),
                                                                                      104  hostname
                                                                                      105  );
                                                                                      106 }
                                                                                      107 
                                                                                      109  this->led_blinker.set_wifi_disconnected();
                                                                                      110 
                                                                                      111  // connect all transforms to the Signal K delta output
                                                                                      112 
                                                                                      113  ObservableValue<String>* hostname = networking->get_hostname();
                                                                                      114 
                                                                                      115  for (auto const& sigkSource : SignalKSource::get_sources()) {
                                                                                      116  if (sigkSource->get_sk_path() != "") {
                                                                                      117  debugI("Connecting SignalK source %s", sigkSource->get_sk_path().c_str());
                                                                                      118  sigkSource->attach([sigkSource, this](){
                                                                                      119  this->sk_delta->append(sigkSource->as_signalK());
                                                                                      120  });
                                                                                      121  }
                                                                                      122  }
                                                                                      123 
                                                                                      124  debugI("Enabling subsystems");
                                                                                      125 
                                                                                      126  networking->setup([this](bool connected) {
                                                                                      127  if (connected) {
                                                                                      128  this->led_blinker.set_wifi_connected();
                                                                                      129  } else {
                                                                                      130  this->led_blinker.set_wifi_disconnected();
                                                                                      131  }
                                                                                      132  });
                                                                                      133 
                                                                                      134  setup_OTA();
                                                                                      135  setup_discovery(networking->get_hostname()->get().c_str());
                                                                                      136 
                                                                                      137  this->http_server->enable();
                                                                                      138  this->ws_client->enable();
                                                                                      139 
                                                                                      140  debugI("WS client enabled");
                                                                                      141 
                                                                                      142  // initialize remote debugging
                                                                                      143 
                                                                                      144  #ifndef DEBUG_DISABLED
                                                                                      145  Debug.begin(networking->get_hostname()->get());
                                                                                      146  Debug.setResetCmdEnabled(true);
                                                                                      147  app.onRepeat(1, [](){ Debug.handle(); });
                                                                                      148  #endif
                                                                                      149 
                                                                                      151  debugI("All devices and transforms enabled");
                                                                                      152 
                                                                                      153 }
                                                                                      154 
                                                                                      156  debugW("Resetting the device configuration.");
                                                                                      157  networking->reset_settings();
                                                                                      158  SPIFFS.format();
                                                                                      159  app.onDelay(1000, [](){ ESP.reset(); });
                                                                                      160 }
                                                                                      161 
                                                                                      163  return networking->get_hostname()->get();
                                                                                      164 }
                                                                                      165 
                                                                                      void reset_settings()
                                                                                      Definition: networking.cpp:105
                                                                                      -
                                                                                      static const std::vector< SignalKSource * > & get_sources()
                                                                                      Definition: signalksource.h:50
                                                                                      +Go to the documentation of this file.
                                                                                      1 #include "sensesp_app.h"
                                                                                      2 
                                                                                      3 #include "FS.h"
                                                                                      4 
                                                                                      5 #include "devices/analog_input.h"
                                                                                      7 #include "devices/system_info.h"
                                                                                      8 #include "net/discovery.h"
                                                                                      9 #include "net/ota.h"
                                                                                      10 #include "net/networking.h"
                                                                                      11 #include "system/spiffs_storage.h"
                                                                                      12 #include "transforms/transform.h"
                                                                                      13 #include "transforms/difference.h"
                                                                                      14 #include "transforms/frequency.h"
                                                                                      15 #include "transforms/linear.h"
                                                                                      16 #include "signalk/signalk_output.h"
                                                                                      17 
                                                                                      18 #ifndef DEBUG_DISABLED
                                                                                      19 RemoteDebug Debug;
                                                                                      20 #endif
                                                                                      21 
                                                                                      22 // FIXME: Setting up the system is too verbose and repetitive
                                                                                      23 
                                                                                      25  // initialize filesystem
                                                                                      26 
                                                                                      27  if (!SPIFFS.begin()) {
                                                                                      28  debugE("FATAL: Filesystem initialization failed.");
                                                                                      29  ESP.restart();
                                                                                      30  }
                                                                                      31 
                                                                                      32  // create the networking object
                                                                                      33  networking = new Networking("/system/networking");
                                                                                      34  ObservableValue<String>* hostname = networking->get_hostname();
                                                                                      35 
                                                                                      36  // setup standard devices and their transforms
                                                                                      37 
                                                                                      38  setup_standard_devices(hostname);
                                                                                      39 
                                                                                      40  // create the SK delta object
                                                                                      41 
                                                                                      42  sk_delta = new SKDelta(hostname->get());
                                                                                      43 
                                                                                      44  // listen for hostname updates
                                                                                      45 
                                                                                      46  hostname->attach([hostname, this](){
                                                                                      47  this->sk_delta->set_hostname(hostname->get());
                                                                                      48  });
                                                                                      49 
                                                                                      50  // create the HTTP server
                                                                                      51 
                                                                                      52  this->http_server = new HTTPServer(std::bind(&SensESPApp::reset, this));
                                                                                      53 
                                                                                      54  // create the websocket client
                                                                                      55 
                                                                                      56  auto ws_connected_cb = [this](bool connected){
                                                                                      57  if (connected) {
                                                                                      58  this->led_blinker.set_server_connected();
                                                                                      59  } else {
                                                                                      60  this->led_blinker.set_server_disconnected();
                                                                                      61  }
                                                                                      62  };
                                                                                      63  auto ws_delta_cb = [this](){
                                                                                      64  this->led_blinker.flip();
                                                                                      65  };
                                                                                      66  this->ws_client = new WSClient(
                                                                                      67  "/system/sk",
                                                                                      68  sk_delta, ws_connected_cb, ws_delta_cb);
                                                                                      69 }
                                                                                      70 
                                                                                      71 void SensESPApp::setup_standard_devices(ObservableValue<String>* hostname) {
                                                                                      72 
                                                                                      73  // connect systemhz
                                                                                      74 
                                                                                      75  connect_1to1_h<SystemHz, SKOutput<float>>(
                                                                                      76  new SystemHz(),
                                                                                      77  new SKOutput<float>(),
                                                                                      78  hostname
                                                                                      79  );
                                                                                      80 
                                                                                      81  String hostname_str = hostname->get();
                                                                                      82 
                                                                                      83  // connect freemem
                                                                                      84 
                                                                                      85  connect_1to1_h<FreeMem, SKOutput<float>>(
                                                                                      86  new FreeMem(),
                                                                                      87  new SKOutput<float>(),
                                                                                      88  hostname
                                                                                      89  );
                                                                                      90 
                                                                                      91  // connect uptime
                                                                                      92 
                                                                                      93  connect_1to1_h<Uptime, SKOutput<float>>(
                                                                                      94  new Uptime(),
                                                                                      95  new SKOutput<float>(),
                                                                                      96  hostname
                                                                                      97  );
                                                                                      98 
                                                                                      99  // connect ip address
                                                                                      100 
                                                                                      101  connect_1to1_h<IPAddrDev, SKOutput<String>>(
                                                                                      102  new IPAddrDev(),
                                                                                      103  new SKOutput<String>(),
                                                                                      104  hostname
                                                                                      105  );
                                                                                      106 }
                                                                                      107 
                                                                                      109  this->led_blinker.set_wifi_disconnected();
                                                                                      110 
                                                                                      111  // connect all transforms to the Signal K delta output
                                                                                      112 
                                                                                      113  ObservableValue<String>* hostname = networking->get_hostname();
                                                                                      114 
                                                                                      115  for (auto const& sigkSource : SKEmitter::get_sources()) {
                                                                                      116  if (sigkSource->get_sk_path() != "") {
                                                                                      117  debugI("Connecting SignalK source %s", sigkSource->get_sk_path().c_str());
                                                                                      118  sigkSource->attach([sigkSource, this](){
                                                                                      119  this->sk_delta->append(sigkSource->as_signalK());
                                                                                      120  });
                                                                                      121  }
                                                                                      122  }
                                                                                      123 
                                                                                      124  debugI("Enabling subsystems");
                                                                                      125 
                                                                                      126  debugI("Subsystem: networking->setup()");
                                                                                      127  networking->setup([this](bool connected) {
                                                                                      128  if (connected) {
                                                                                      129  this->led_blinker.set_wifi_connected();
                                                                                      130  } else {
                                                                                      131  this->led_blinker.set_wifi_disconnected();
                                                                                      132  debugD("Not connected to wifi");
                                                                                      133  }
                                                                                      134  });
                                                                                      135 
                                                                                      136  debugI("Subsystem: setup_OTA()");
                                                                                      137  setup_OTA();
                                                                                      138  debugI("Subsystem: setup_discovery()");
                                                                                      139  setup_discovery(networking->get_hostname()->get().c_str());
                                                                                      140 
                                                                                      141  debugI("Subsystem: http_server()");
                                                                                      142  this->http_server->enable();
                                                                                      143  debugI("Subsystem: ws_client()");
                                                                                      144  this->ws_client->enable();
                                                                                      145 
                                                                                      146  debugI("WS client enabled");
                                                                                      147 
                                                                                      148  // initialize remote debugging
                                                                                      149 
                                                                                      150  #ifndef DEBUG_DISABLED
                                                                                      151  Debug.begin(networking->get_hostname()->get());
                                                                                      152  Debug.setResetCmdEnabled(true);
                                                                                      153  app.onRepeat(1, [](){ Debug.handle(); });
                                                                                      154  #endif
                                                                                      155 
                                                                                      157  debugI("All devices and transforms enabled");
                                                                                      158 
                                                                                      159 }
                                                                                      160 
                                                                                      162  debugW("Resetting the device configuration.");
                                                                                      163  networking->reset_settings();
                                                                                      164  SPIFFS.format();
                                                                                      165  app.onDelay(1000, [](){ ESP.reset(); });
                                                                                      166 }
                                                                                      167 
                                                                                      169  return networking->get_hostname()->get();
                                                                                      170 }
                                                                                      171 
                                                                                      void reset_settings()
                                                                                      Definition: networking.cpp:106
                                                                                      -
                                                                                      SensESPApp * sensesp_app
                                                                                      +
                                                                                      SensESPApp * sensesp_app
                                                                                      static void enableAll()
                                                                                      Definition: enable.cpp:11
                                                                                      -
                                                                                      ObservableValue< String > * get_hostname()
                                                                                      Definition: networking.cpp:71
                                                                                      +
                                                                                      ObservableValue< String > * get_hostname()
                                                                                      Definition: networking.cpp:72
                                                                                      +
                                                                                      void enable()
                                                                                      Definition: ws_client.cpp:51
                                                                                      RemoteDebug Debug
                                                                                      Definition: sensesp_app.cpp:19
                                                                                      -
                                                                                      void reset()
                                                                                      +
                                                                                      void reset()
                                                                                      - -
                                                                                      virtual const T & get()
                                                                                      Definition: valueproducer.h:27
                                                                                      - + +
                                                                                      virtual const T & get()
                                                                                      Definition: valueproducer.h:29
                                                                                      void enable()
                                                                                      -
                                                                                      void append(const String val)
                                                                                      Definition: signal_k.cpp:10
                                                                                      +
                                                                                      void append(const String val)
                                                                                      -
                                                                                      String get_hostname()
                                                                                      +
                                                                                      String get_hostname()
                                                                                      void set_server_disconnected()
                                                                                      Definition: led_blinker.h:17
                                                                                      void setup_OTA()
                                                                                      Definition: ota.cpp:17
                                                                                      -
                                                                                      void set_hostname(String hostname)
                                                                                      Definition: signal_k.h:17
                                                                                      +
                                                                                      void set_hostname(String hostname)
                                                                                      Definition: signalk_delta.h:17
                                                                                      void attach(std::function< void()> observer)
                                                                                      Definition: observable.cpp:9
                                                                                      void enable()
                                                                                      Definition: http.h:12
                                                                                      @@ -128,7 +127,6 @@
                                                                                      void set_wifi_connected()
                                                                                      Definition: led_blinker.cpp:41
                                                                                      -
                                                                                      Definition: http.h:8
                                                                                      @@ -136,9 +134,11 @@ -
                                                                                      void setup(std::function< void(bool)> connection_cb)
                                                                                      Definition: networking.cpp:36
                                                                                      +
                                                                                      void setup(std::function< void(bool)> connection_cb)
                                                                                      Definition: networking.cpp:37
                                                                                      void set_server_connected()
                                                                                      Definition: led_blinker.cpp:48
                                                                                      void set_wifi_disconnected()
                                                                                      Definition: led_blinker.cpp:31
                                                                                      +
                                                                                      static const std::vector< SKEmitter * > & get_sources()
                                                                                      +
                                                                                      ReactESP app
                                                                                      void flip()
                                                                                      Definition: led_blinker.cpp:27
                                                                                      diff --git a/docs/sensesp__app_8h.html b/docs/sensesp__app_8h.html index a72288f3b..9075e4d66 100644 --- a/docs/sensesp__app_8h.html +++ b/docs/sensesp__app_8h.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -101,7 +101,7 @@ #include "net/ws_client.h"
                                                                                      #include "sensesp.h"
                                                                                      #include "system/led_blinker.h"
                                                                                      -#include "system/signal_k.h"
                                                                                      +#include "signalk/signalk_delta.h"
                                                                                      #include "system/valueproducer.h"
                                                                                      #include "system/valueconsumer.h"
                                                                                      #include "system/observablevalue.h"
                                                                                      @@ -117,10 +117,10 @@ - - - - + + + + @@ -135,9 +135,9 @@ - - - + + +
                                                                                      @@ -203,7 +203,7 @@

                                                                                      -

                                                                                      Definition at line 166 of file sensesp_app.cpp.

                                                                                      +

                                                                                      Definition at line 172 of file sensesp_app.cpp.

                                                                                      diff --git a/docs/sensesp__app_8h__incl.map b/docs/sensesp__app_8h__incl.map index eab1bfbdd..c07388f19 100644 --- a/docs/sensesp__app_8h__incl.map +++ b/docs/sensesp__app_8h__incl.map @@ -6,10 +6,10 @@ - - - - + + + + @@ -24,8 +24,8 @@ - - - + + + diff --git a/docs/sensesp__app_8h__incl.md5 b/docs/sensesp__app_8h__incl.md5 index 7c7a47722..690006e5c 100644 --- a/docs/sensesp__app_8h__incl.md5 +++ b/docs/sensesp__app_8h__incl.md5 @@ -1 +1 @@ -1787cacd303abf337ae075245d34895b \ No newline at end of file +4ecf285b7c0e8e096b0604f791f665ec \ No newline at end of file diff --git a/docs/sensesp__app_8h__incl.png b/docs/sensesp__app_8h__incl.png index 274800fd7..383078a13 100644 Binary files a/docs/sensesp__app_8h__incl.png and b/docs/sensesp__app_8h__incl.png differ diff --git a/docs/sensesp__app_8h_source.html b/docs/sensesp__app_8h_source.html index b67bc605b..f1ad3a24d 100644 --- a/docs/sensesp__app_8h_source.html +++ b/docs/sensesp__app_8h_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -91,38 +91,36 @@
                                                                                      sensesp_app.h
                                                                                      -Go to the documentation of this file.
                                                                                      1 #ifndef _app_H_
                                                                                      2 #define _app_H_
                                                                                      3 
                                                                                      4 // Required for RemoteDebug
                                                                                      5 #define USE_LIB_WEBSOCKET true
                                                                                      6 
                                                                                      7 #include "devices/device.h"
                                                                                      8 #include "net/http.h"
                                                                                      9 #include "net/networking.h"
                                                                                      10 #include "net/ws_client.h"
                                                                                      11 #include "sensesp.h"
                                                                                      12 #include "system/led_blinker.h"
                                                                                      13 #include "system/signal_k.h"
                                                                                      14 #include "system/valueproducer.h"
                                                                                      15 #include "system/valueconsumer.h"
                                                                                      16 #include "system/observablevalue.h"
                                                                                      17 
                                                                                      18 class SensESPApp {
                                                                                      19  public:
                                                                                      20  SensESPApp();
                                                                                      21  void enable();
                                                                                      22  void reset();
                                                                                      23  String get_hostname();
                                                                                      24 
                                                                                      25 
                                                                                      26  template<typename T>
                                                                                      27  void connect(ValueProducer<T>* pProducer, ValueConsumer<T>* pConsumer, uint8_t inputChannel = 0) {
                                                                                      28  pProducer->connectTo(pConsumer, inputChannel);
                                                                                      29  }
                                                                                      30 
                                                                                      31 
                                                                                      32  template<typename T, typename U>
                                                                                      33  void connect_1to1(T* obs, U* transform) {
                                                                                      34  obs->attach([obs, transform](){
                                                                                      35  transform->set_input(obs->get());
                                                                                      36  });
                                                                                      37  }
                                                                                      38 
                                                                                      39  template<typename T, typename U>
                                                                                      40  void connect_2to1(T* obs1, T* obs2, U* transform) {
                                                                                      41  obs1->attach([obs1, transform]() {
                                                                                      42  transform->set_input(obs1->get(), 0);
                                                                                      43  });
                                                                                      44  obs2->attach([obs2, transform]() {
                                                                                      45  transform->set_input(obs2->get(), 1);
                                                                                      46  });
                                                                                      47  }
                                                                                      48 
                                                                                      49  template<typename T, typename U>
                                                                                      50  void connect_1to1_h(T* device, U* transform,
                                                                                      51  ObservableValue<String>* hostname) {
                                                                                      52  String hostname_str = hostname->get();
                                                                                      53  String value_name = device->get_value_name();
                                                                                      54  String sk_path = "sensors." + hostname_str + "." + value_name;
                                                                                      55  auto comp_set_sk_path = [hostname, transform, value_name](){
                                                                                      56  transform->set_sk_path(
                                                                                      57  "sensors." + hostname->get() + "." + value_name);
                                                                                      58  };
                                                                                      59  comp_set_sk_path();
                                                                                      60  device->attach([device, transform](){
                                                                                      61  transform->set_input(device->get());
                                                                                      62  });
                                                                                      63  hostname->attach(comp_set_sk_path);
                                                                                      64  }
                                                                                      65 
                                                                                      69  bool isWifiConnected() {
                                                                                      70  return WiFi.status() == WL_CONNECTED;
                                                                                      71  }
                                                                                      72 
                                                                                      73 
                                                                                      78  return ws_client->is_connected();
                                                                                      79  }
                                                                                      80 
                                                                                      81 
                                                                                      82  private:
                                                                                      83  void setup_standard_devices(ObservableValue<String>* hostname);
                                                                                      84 
                                                                                      85  HTTPServer* http_server;
                                                                                      86  LedBlinker led_blinker;
                                                                                      87  Networking* networking;
                                                                                      88  SKDelta* sk_delta;
                                                                                      89  WSClient* ws_client;
                                                                                      90 
                                                                                      91 };
                                                                                      92 
                                                                                      93 extern SensESPApp* sensesp_app;
                                                                                      94 
                                                                                      95 #endif
                                                                                      void connect_1to1(T *obs, U *transform)
                                                                                      Definition: sensesp_app.h:33
                                                                                      +Go to the documentation of this file.
                                                                                      1 #ifndef _app_H_
                                                                                      2 #define _app_H_
                                                                                      3 
                                                                                      4 // Required for RemoteDebug
                                                                                      5 #define USE_LIB_WEBSOCKET true
                                                                                      6 
                                                                                      7 #include "devices/device.h"
                                                                                      8 #include "net/http.h"
                                                                                      9 #include "net/networking.h"
                                                                                      10 #include "net/ws_client.h"
                                                                                      11 #include "sensesp.h"
                                                                                      12 #include "system/led_blinker.h"
                                                                                      13 #include "signalk/signalk_delta.h"
                                                                                      14 #include "system/valueproducer.h"
                                                                                      15 #include "system/valueconsumer.h"
                                                                                      16 #include "system/observablevalue.h"
                                                                                      17 
                                                                                      18 class SensESPApp {
                                                                                      19  public:
                                                                                      20  SensESPApp();
                                                                                      21  void enable();
                                                                                      22  void reset();
                                                                                      23  String get_hostname();
                                                                                      24 
                                                                                      25 
                                                                                      26  template<typename T>
                                                                                      27  void connect(ValueProducer<T>* pProducer, ValueConsumer<T>* pConsumer, uint8_t inputChannel = 0) {
                                                                                      28  pProducer->connectTo(pConsumer, inputChannel);
                                                                                      29  }
                                                                                      30 
                                                                                      31  template<typename T, typename U>
                                                                                      32  void connect_1to1_h(T* device, U* transform,
                                                                                      33  ObservableValue<String>* hostname) {
                                                                                      34  String hostname_str = hostname->get();
                                                                                      35  String value_name = device->get_value_name();
                                                                                      36  String sk_path = "sensors." + hostname_str + "." + value_name;
                                                                                      37  auto comp_set_sk_path = [hostname, transform, value_name](){
                                                                                      38  transform->set_sk_path(
                                                                                      39  "sensors." + hostname->get() + "." + value_name);
                                                                                      40  };
                                                                                      41  comp_set_sk_path();
                                                                                      42  device->attach([device, transform](){
                                                                                      43  transform->set_input(device->get());
                                                                                      44  });
                                                                                      45  hostname->attach(comp_set_sk_path);
                                                                                      46  }
                                                                                      47 
                                                                                      51  bool isWifiConnected() {
                                                                                      52  return WiFi.status() == WL_CONNECTED;
                                                                                      53  }
                                                                                      54 
                                                                                      55 
                                                                                      60  return ws_client->is_connected();
                                                                                      61  }
                                                                                      62 
                                                                                      63 
                                                                                      64  private:
                                                                                      65  void setup_standard_devices(ObservableValue<String>* hostname);
                                                                                      66 
                                                                                      67  HTTPServer* http_server;
                                                                                      68  LedBlinker led_blinker;
                                                                                      69  Networking* networking;
                                                                                      70  SKDelta* sk_delta;
                                                                                      71  WSClient* ws_client;
                                                                                      72 
                                                                                      73 };
                                                                                      74 
                                                                                      75 extern SensESPApp* sensesp_app;
                                                                                      76 
                                                                                      77 #endif
                                                                                      -
                                                                                      SensESPApp * sensesp_app
                                                                                      -
                                                                                      void reset()
                                                                                      +
                                                                                      SensESPApp * sensesp_app
                                                                                      +
                                                                                      void reset()
                                                                                      - -
                                                                                      virtual const T & get()
                                                                                      Definition: valueproducer.h:27
                                                                                      + +
                                                                                      virtual const T & get()
                                                                                      Definition: valueproducer.h:29
                                                                                      void connect(ValueProducer< T > *pProducer, ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)
                                                                                      Definition: sensesp_app.h:27
                                                                                      void enable()
                                                                                      -
                                                                                      String get_hostname()
                                                                                      +
                                                                                      String get_hostname()
                                                                                      -
                                                                                      bool isSignalKConnected()
                                                                                      Definition: sensesp_app.h:77
                                                                                      +
                                                                                      bool isSignalKConnected()
                                                                                      Definition: sensesp_app.h:59
                                                                                      void attach(std::function< void()> observer)
                                                                                      Definition: observable.cpp:9
                                                                                      -
                                                                                      bool isWifiConnected()
                                                                                      Definition: sensesp_app.h:69
                                                                                      +
                                                                                      bool isWifiConnected()
                                                                                      Definition: sensesp_app.h:51
                                                                                      -
                                                                                      void connect_2to1(T *obs1, T *obs2, U *transform)
                                                                                      Definition: sensesp_app.h:40
                                                                                      Definition: http.h:8
                                                                                      -
                                                                                      void connect_1to1_h(T *device, U *transform, ObservableValue< String > *hostname)
                                                                                      Definition: sensesp_app.h:50
                                                                                      - +
                                                                                      void connect_1to1_h(T *device, U *transform, ObservableValue< String > *hostname)
                                                                                      Definition: sensesp_app.h:32
                                                                                      bool is_connected()
                                                                                      Definition: ws_client.cpp:306
                                                                                      -
                                                                                      void connectTo(ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)
                                                                                      Definition: valueproducer.h:39
                                                                                      +
                                                                                      void connectTo(ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)
                                                                                      Definition: valueproducer.h:42
                                                                                      diff --git a/docs/setup_8h.html b/docs/setup_8h.html index 82f11a0da..950c754af 100644 --- a/docs/setup_8h.html +++ b/docs/setup_8h.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/setup_8h_source.html b/docs/setup_8h_source.html index 10c181c69..00cc20eae 100644 --- a/docs/setup_8h_source.html +++ b/docs/setup_8h_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/signalk__delta_8cpp.html b/docs/signalk__delta_8cpp.html new file mode 100644 index 000000000..6a2c917c6 --- /dev/null +++ b/docs/signalk__delta_8cpp.html @@ -0,0 +1,123 @@ + + + + + + + +SensESP: src/signalk/signalk_delta.cpp File Reference + + + + + + + + + + + + + + +
                                                                                      +
                                                                                      + + + + + + +
                                                                                      +
                                                                                      SensESP +  0.4.0 +
                                                                                      +
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + +
                                                                                      +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      + + +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      signalk_delta.cpp File Reference
                                                                                      +
                                                                                      +
                                                                                      +
                                                                                      #include "signalk_delta.h"
                                                                                      +#include "Arduino.h"
                                                                                      +#include "ArduinoJson.h"
                                                                                      +
                                                                                      +Include dependency graph for signalk_delta.cpp:
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + +
                                                                                      +
                                                                                      +

                                                                                      Go to the source code of this file.

                                                                                      +
                                                                                      +
                                                                                      + + + + diff --git a/docs/signalk__delta_8cpp__incl.map b/docs/signalk__delta_8cpp__incl.map new file mode 100644 index 000000000..b47ca4b49 --- /dev/null +++ b/docs/signalk__delta_8cpp__incl.map @@ -0,0 +1,7 @@ + + + + + + + diff --git a/docs/signalk__delta_8cpp__incl.md5 b/docs/signalk__delta_8cpp__incl.md5 new file mode 100644 index 000000000..19a17a436 --- /dev/null +++ b/docs/signalk__delta_8cpp__incl.md5 @@ -0,0 +1 @@ +b41ae35d880fbda781ec34dfc65b02b9 \ No newline at end of file diff --git a/docs/signalk__delta_8cpp__incl.png b/docs/signalk__delta_8cpp__incl.png new file mode 100644 index 000000000..e1c947ce9 Binary files /dev/null and b/docs/signalk__delta_8cpp__incl.png differ diff --git a/docs/signalk__delta_8cpp_source.html b/docs/signalk__delta_8cpp_source.html new file mode 100644 index 000000000..9f60e4b63 --- /dev/null +++ b/docs/signalk__delta_8cpp_source.html @@ -0,0 +1,111 @@ + + + + + + + +SensESP: src/signalk/signalk_delta.cpp Source File + + + + + + + + + + + + + + +
                                                                                      +
                                                                                      + + + + + + +
                                                                                      +
                                                                                      SensESP +  0.4.0 +
                                                                                      +
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + +
                                                                                      +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      + + +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      signalk_delta.cpp
                                                                                      +
                                                                                      +
                                                                                      +Go to the documentation of this file.
                                                                                      1 #include "signalk_delta.h"
                                                                                      2 
                                                                                      3 #include "Arduino.h"
                                                                                      4 #include "ArduinoJson.h"
                                                                                      5 
                                                                                      6 SKDelta::SKDelta(const String& hostname, unsigned int max_buffer_size)
                                                                                      7 : hostname{hostname},
                                                                                      8  max_buffer_size{max_buffer_size} {}
                                                                                      9 
                                                                                      10 void SKDelta::append(const String val) {
                                                                                      11  if (buffer.size() >= max_buffer_size) {
                                                                                      12  buffer.pop_back();
                                                                                      13  }
                                                                                      14  buffer.push_front(val);
                                                                                      15 }
                                                                                      16 
                                                                                      18  return buffer.size() > 0;
                                                                                      19 }
                                                                                      20 
                                                                                      21 void SKDelta::get_delta(String& output) {
                                                                                      22  DynamicJsonBuffer jsonBuffer;
                                                                                      23 
                                                                                      24  JsonObject& delta = jsonBuffer.createObject();
                                                                                      25  JsonArray& updates = delta.createNestedArray("updates");
                                                                                      26 
                                                                                      27  JsonObject& current = updates.createNestedObject();
                                                                                      28  JsonObject& source = current.createNestedObject("source");
                                                                                      29  source["label"] = hostname;
                                                                                      30  JsonArray& values = current.createNestedArray("values");
                                                                                      31 
                                                                                      32  while (!buffer.empty()) {
                                                                                      33  values.add(RawJson(buffer.back()));
                                                                                      34  buffer.pop_back();
                                                                                      35  }
                                                                                      36 
                                                                                      37  delta.printTo(output);
                                                                                      38 }
                                                                                      39 
                                                                                      +
                                                                                      SKDelta(const String &hostname, unsigned int max_buffer_size=20)
                                                                                      +
                                                                                      void append(const String val)
                                                                                      +
                                                                                      bool data_available()
                                                                                      +
                                                                                      void get_delta(String &output)
                                                                                      +
                                                                                      +
                                                                                      + + + + diff --git a/docs/signalk__delta_8h.html b/docs/signalk__delta_8h.html new file mode 100644 index 000000000..21aaead78 --- /dev/null +++ b/docs/signalk__delta_8h.html @@ -0,0 +1,145 @@ + + + + + + + +SensESP: src/signalk/signalk_delta.h File Reference + + + + + + + + + + + + + + +
                                                                                      +
                                                                                      + + + + + + +
                                                                                      +
                                                                                      SensESP +  0.4.0 +
                                                                                      +
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + +
                                                                                      +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      + + +
                                                                                      + +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      signalk_delta.h File Reference
                                                                                      +
                                                                                      +
                                                                                      +
                                                                                      #include <list>
                                                                                      +#include "ArduinoJson.h"
                                                                                      +
                                                                                      +Include dependency graph for signalk_delta.h:
                                                                                      +
                                                                                      +
                                                                                      + + + + + +
                                                                                      +
                                                                                      +This graph shows which files directly or indirectly include this file:
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + + + + + + +
                                                                                      +
                                                                                      +

                                                                                      Go to the source code of this file.

                                                                                      + + + + +

                                                                                      +Classes

                                                                                      class  SKDelta
                                                                                       
                                                                                      +
                                                                                      +
                                                                                      + + + + diff --git a/docs/signalk__delta_8h__dep__incl.map b/docs/signalk__delta_8h__dep__incl.map new file mode 100644 index 000000000..dd205de09 --- /dev/null +++ b/docs/signalk__delta_8h__dep__incl.map @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/docs/signalk__delta_8h__dep__incl.md5 b/docs/signalk__delta_8h__dep__incl.md5 new file mode 100644 index 000000000..641da3c53 --- /dev/null +++ b/docs/signalk__delta_8h__dep__incl.md5 @@ -0,0 +1 @@ +d28cdb265f1bd1db609c18919e239f0e \ No newline at end of file diff --git a/docs/signalk__delta_8h__dep__incl.png b/docs/signalk__delta_8h__dep__incl.png new file mode 100644 index 000000000..c373e509c Binary files /dev/null and b/docs/signalk__delta_8h__dep__incl.png differ diff --git a/docs/signalk__delta_8h__incl.map b/docs/signalk__delta_8h__incl.map new file mode 100644 index 000000000..ee3923931 --- /dev/null +++ b/docs/signalk__delta_8h__incl.map @@ -0,0 +1,5 @@ + + + + + diff --git a/docs/signalk__delta_8h__incl.md5 b/docs/signalk__delta_8h__incl.md5 new file mode 100644 index 000000000..24ad063ff --- /dev/null +++ b/docs/signalk__delta_8h__incl.md5 @@ -0,0 +1 @@ +f87dfcdf3190a2984bf31fc1d5c58046 \ No newline at end of file diff --git a/docs/signalk__delta_8h__incl.png b/docs/signalk__delta_8h__incl.png new file mode 100644 index 000000000..89deefe58 Binary files /dev/null and b/docs/signalk__delta_8h__incl.png differ diff --git a/docs/signalk__delta_8h_source.html b/docs/signalk__delta_8h_source.html new file mode 100644 index 000000000..210bfd767 --- /dev/null +++ b/docs/signalk__delta_8h_source.html @@ -0,0 +1,112 @@ + + + + + + + +SensESP: src/signalk/signalk_delta.h Source File + + + + + + + + + + + + + + +
                                                                                      +
                                                                                      + + + + + + +
                                                                                      +
                                                                                      SensESP +  0.4.0 +
                                                                                      +
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + +
                                                                                      +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      + + +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      signalk_delta.h
                                                                                      +
                                                                                      +
                                                                                      +Go to the documentation of this file.
                                                                                      1 #ifndef _signalk_delta_H_
                                                                                      2 #define _signalk_delta_H_
                                                                                      3 
                                                                                      4 #include <list>
                                                                                      5 
                                                                                      6 #include "ArduinoJson.h"
                                                                                      7 
                                                                                      9 // Signal K delta message representation
                                                                                      10 
                                                                                      11 class SKDelta {
                                                                                      12  public:
                                                                                      13  SKDelta(const String& hostname, unsigned int max_buffer_size=20);
                                                                                      14  void append(const String val);
                                                                                      15  bool data_available();
                                                                                      16  void get_delta(String& output);
                                                                                      17  void set_hostname(String hostname) { this->hostname = hostname; }
                                                                                      18  private:
                                                                                      19  String hostname;
                                                                                      20  unsigned int max_buffer_size;
                                                                                      21  std::list<String> buffer;
                                                                                      22 };
                                                                                      23 
                                                                                      24 #endif
                                                                                      SKDelta(const String &hostname, unsigned int max_buffer_size=20)
                                                                                      + +
                                                                                      void append(const String val)
                                                                                      +
                                                                                      bool data_available()
                                                                                      +
                                                                                      void set_hostname(String hostname)
                                                                                      Definition: signalk_delta.h:17
                                                                                      +
                                                                                      void get_delta(String &output)
                                                                                      +
                                                                                      +
                                                                                      + + + + diff --git a/docs/signalk__emitter_8cpp.html b/docs/signalk__emitter_8cpp.html new file mode 100644 index 000000000..96b95b7af --- /dev/null +++ b/docs/signalk__emitter_8cpp.html @@ -0,0 +1,133 @@ + + + + + + + +SensESP: src/signalk/signalk_emitter.cpp File Reference + + + + + + + + + + + + + + +
                                                                                      +
                                                                                      + + + + + + +
                                                                                      +
                                                                                      SensESP +  0.4.0 +
                                                                                      +
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + +
                                                                                      +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      + + +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      signalk_emitter.cpp File Reference
                                                                                      +
                                                                                      +
                                                                                      +
                                                                                      #include "signalk_emitter.h"
                                                                                      +
                                                                                      +Include dependency graph for signalk_emitter.cpp:
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + + + + + + + + + + + + + +
                                                                                      +
                                                                                      +

                                                                                      Go to the source code of this file.

                                                                                      +
                                                                                      +
                                                                                      + + + + diff --git a/docs/signalk__emitter_8cpp__incl.map b/docs/signalk__emitter_8cpp__incl.map new file mode 100644 index 000000000..775433165 --- /dev/null +++ b/docs/signalk__emitter_8cpp__incl.map @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/docs/signalk__emitter_8cpp__incl.md5 b/docs/signalk__emitter_8cpp__incl.md5 new file mode 100644 index 000000000..0eaf43cf7 --- /dev/null +++ b/docs/signalk__emitter_8cpp__incl.md5 @@ -0,0 +1 @@ +9a948dfe2c49b212bd6ae4de2ab99deb \ No newline at end of file diff --git a/docs/signalk__emitter_8cpp__incl.png b/docs/signalk__emitter_8cpp__incl.png new file mode 100644 index 000000000..f76ea6580 Binary files /dev/null and b/docs/signalk__emitter_8cpp__incl.png differ diff --git a/docs/signalk__emitter_8cpp_source.html b/docs/signalk__emitter_8cpp_source.html new file mode 100644 index 000000000..57684dd56 --- /dev/null +++ b/docs/signalk__emitter_8cpp_source.html @@ -0,0 +1,109 @@ + + + + + + + +SensESP: src/signalk/signalk_emitter.cpp Source File + + + + + + + + + + + + + + +
                                                                                      +
                                                                                      + + + + + + +
                                                                                      +
                                                                                      SensESP +  0.4.0 +
                                                                                      +
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + +
                                                                                      +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      + + +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      signalk_emitter.cpp
                                                                                      +
                                                                                      +
                                                                                      +Go to the documentation of this file.
                                                                                      1 #include "signalk_emitter.h"
                                                                                      2 
                                                                                      3 std::vector<SKEmitter*> SKEmitter::sources;
                                                                                      4 
                                                                                      5 SKEmitter::SKEmitter(String sk_path) : sk_path{sk_path} {
                                                                                      6  sources.push_back(this);
                                                                                      7 }
                                                                                      SKEmitter(String sk_path)
                                                                                      + +
                                                                                      String sk_path
                                                                                      +
                                                                                      +
                                                                                      + + + + diff --git a/docs/signalk__emitter_8h.html b/docs/signalk__emitter_8h.html new file mode 100644 index 000000000..c03b8507e --- /dev/null +++ b/docs/signalk__emitter_8h.html @@ -0,0 +1,162 @@ + + + + + + + +SensESP: src/signalk/signalk_emitter.h File Reference + + + + + + + + + + + + + + +
                                                                                      +
                                                                                      + + + + + + +
                                                                                      +
                                                                                      SensESP +  0.4.0 +
                                                                                      +
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + +
                                                                                      +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      + + +
                                                                                      + +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      signalk_emitter.h File Reference
                                                                                      +
                                                                                      +
                                                                                      +
                                                                                      #include <set>
                                                                                      +#include "Arduino.h"
                                                                                      +#include <ArduinoJson.h>
                                                                                      +#include "system/configurable.h"
                                                                                      +#include "system/observable.h"
                                                                                      +#include "system/valueproducer.h"
                                                                                      +#include "sensesp.h"
                                                                                      +
                                                                                      +Include dependency graph for signalk_emitter.h:
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + + + + + + + + + + + + +
                                                                                      +
                                                                                      +This graph shows which files directly or indirectly include this file:
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + + + + + +
                                                                                      +
                                                                                      +

                                                                                      Go to the source code of this file.

                                                                                      + + + + +

                                                                                      +Classes

                                                                                      class  SKEmitter
                                                                                       
                                                                                      +
                                                                                      +
                                                                                      + + + + diff --git a/docs/signalk__emitter_8h__dep__incl.map b/docs/signalk__emitter_8h__dep__incl.map new file mode 100644 index 000000000..5daf686d1 --- /dev/null +++ b/docs/signalk__emitter_8h__dep__incl.map @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/docs/signalk__emitter_8h__dep__incl.md5 b/docs/signalk__emitter_8h__dep__incl.md5 new file mode 100644 index 000000000..bf8d56518 --- /dev/null +++ b/docs/signalk__emitter_8h__dep__incl.md5 @@ -0,0 +1 @@ +ee1bdfc4a33a739940354619c8d37c33 \ No newline at end of file diff --git a/docs/signalk__emitter_8h__dep__incl.png b/docs/signalk__emitter_8h__dep__incl.png new file mode 100644 index 000000000..3b4905d73 Binary files /dev/null and b/docs/signalk__emitter_8h__dep__incl.png differ diff --git a/docs/signalk__emitter_8h__incl.map b/docs/signalk__emitter_8h__incl.map new file mode 100644 index 000000000..594628a94 --- /dev/null +++ b/docs/signalk__emitter_8h__incl.map @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/docs/signalk__emitter_8h__incl.md5 b/docs/signalk__emitter_8h__incl.md5 new file mode 100644 index 000000000..efee93a42 --- /dev/null +++ b/docs/signalk__emitter_8h__incl.md5 @@ -0,0 +1 @@ +85ab95e5123c0de3f5cdd812fa8bc49e \ No newline at end of file diff --git a/docs/signalk__emitter_8h__incl.png b/docs/signalk__emitter_8h__incl.png new file mode 100644 index 000000000..d910b57cd Binary files /dev/null and b/docs/signalk__emitter_8h__incl.png differ diff --git a/docs/signalk__emitter_8h_source.html b/docs/signalk__emitter_8h_source.html new file mode 100644 index 000000000..0503b553b --- /dev/null +++ b/docs/signalk__emitter_8h_source.html @@ -0,0 +1,118 @@ + + + + + + + +SensESP: src/signalk/signalk_emitter.h Source File + + + + + + + + + + + + + + +
                                                                                      +
                                                                                      + + + + + + +
                                                                                      +
                                                                                      SensESP +  0.4.0 +
                                                                                      +
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + +
                                                                                      +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      + + +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      signalk_emitter.h
                                                                                      +
                                                                                      +
                                                                                      +Go to the documentation of this file.
                                                                                      1 #ifndef _signalk_emitter_H_
                                                                                      2 #define _signalk_emitter_H_
                                                                                      3 
                                                                                      4 #include <set>
                                                                                      5 
                                                                                      6 #include "Arduino.h"
                                                                                      7 #include <ArduinoJson.h>
                                                                                      8 
                                                                                      9 #include "system/configurable.h"
                                                                                      10 #include "system/observable.h"
                                                                                      11 #include "system/valueproducer.h"
                                                                                      12 #include "sensesp.h"
                                                                                      13 
                                                                                      19 class SKEmitter : virtual public Observable {
                                                                                      20 
                                                                                      21  public:
                                                                                      27  SKEmitter(String sk_path);
                                                                                      28 
                                                                                      29 
                                                                                      34  virtual String as_signalK() { return "not implemented"; }
                                                                                      35 
                                                                                      36 
                                                                                      42  String& get_sk_path() {
                                                                                      43  return sk_path;
                                                                                      44  }
                                                                                      45 
                                                                                      46  void set_sk_path(const String& path) {
                                                                                      47  sk_path = path;
                                                                                      48  }
                                                                                      49 
                                                                                      50  static const std::vector<SKEmitter*>& get_sources() {
                                                                                      51  return sources;
                                                                                      52  }
                                                                                      53 
                                                                                      54  protected:
                                                                                      55  String sk_path;
                                                                                      56 
                                                                                      57  private:
                                                                                      58  static std::vector<SKEmitter*> sources;
                                                                                      59 
                                                                                      60 };
                                                                                      61 
                                                                                      62 #endif
                                                                                      SKEmitter(String sk_path)
                                                                                      +
                                                                                      void set_sk_path(const String &path)
                                                                                      + +
                                                                                      virtual String as_signalK()
                                                                                      + +
                                                                                      String sk_path
                                                                                      + + + + +
                                                                                      static const std::vector< SKEmitter * > & get_sources()
                                                                                      +
                                                                                      String & get_sk_path()
                                                                                      +
                                                                                      +
                                                                                      + + + + diff --git a/docs/signalk__output_8h.html b/docs/signalk__output_8h.html new file mode 100644 index 000000000..5ab80b719 --- /dev/null +++ b/docs/signalk__output_8h.html @@ -0,0 +1,234 @@ + + + + + + + +SensESP: src/signalk/signalk_output.h File Reference + + + + + + + + + + + + + + +
                                                                                      +
                                                                                      + + + + + + +
                                                                                      +
                                                                                      SensESP +  0.4.0 +
                                                                                      +
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + +
                                                                                      +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      + + +
                                                                                      + +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      signalk_output.h File Reference
                                                                                      +
                                                                                      +
                                                                                      +
                                                                                      +Include dependency graph for signalk_output.h:
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + + + + + + + + + + + + + + + + +
                                                                                      +
                                                                                      +This graph shows which files directly or indirectly include this file:
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + +
                                                                                      +
                                                                                      +

                                                                                      Go to the source code of this file.

                                                                                      + + + + +

                                                                                      +Classes

                                                                                      class  SKOutput< T >
                                                                                       
                                                                                      + + + + + + + + + +

                                                                                      +Typedefs

                                                                                      typedef SKOutput< float > SKOutputNumber
                                                                                       
                                                                                      typedef SKOutput< int > SKOutputInt
                                                                                       
                                                                                      typedef SKOutput< bool > SKOutputBool
                                                                                       
                                                                                      typedef SKOutput< String > SKOutputString
                                                                                       
                                                                                      +

                                                                                      Typedef Documentation

                                                                                      + +

                                                                                      ◆ SKOutputBool

                                                                                      + +
                                                                                      +
                                                                                      + + + + +
                                                                                      typedef SKOutput<bool> SKOutputBool
                                                                                      +
                                                                                      + +

                                                                                      Definition at line 65 of file signalk_output.h.

                                                                                      + +
                                                                                      +
                                                                                      + +

                                                                                      ◆ SKOutputInt

                                                                                      + +
                                                                                      +
                                                                                      + + + + +
                                                                                      typedef SKOutput<int> SKOutputInt
                                                                                      +
                                                                                      + +

                                                                                      Definition at line 64 of file signalk_output.h.

                                                                                      + +
                                                                                      +
                                                                                      + +

                                                                                      ◆ SKOutputNumber

                                                                                      + +
                                                                                      +
                                                                                      + + + + +
                                                                                      typedef SKOutput<float> SKOutputNumber
                                                                                      +
                                                                                      + +

                                                                                      Definition at line 63 of file signalk_output.h.

                                                                                      + +
                                                                                      +
                                                                                      + +

                                                                                      ◆ SKOutputString

                                                                                      + +
                                                                                      +
                                                                                      + + + + +
                                                                                      typedef SKOutput<String> SKOutputString
                                                                                      +
                                                                                      + +

                                                                                      Definition at line 66 of file signalk_output.h.

                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      +
                                                                                      + + + + diff --git a/docs/signalk__output_8h.js b/docs/signalk__output_8h.js new file mode 100644 index 000000000..310e7c02c --- /dev/null +++ b/docs/signalk__output_8h.js @@ -0,0 +1,8 @@ +var signalk__output_8h = +[ + [ "SKOutput", "class_s_k_output.html", "class_s_k_output" ], + [ "SKOutputBool", "signalk__output_8h.html#a1a26c344db2dff33a77cf620aafa6c0c", null ], + [ "SKOutputInt", "signalk__output_8h.html#a2a0e216e5ada5e31f7a6d995d2c52642", null ], + [ "SKOutputNumber", "signalk__output_8h.html#a6c84656f504f6de21c63c1d54d6f39e1", null ], + [ "SKOutputString", "signalk__output_8h.html#a008f63a91ea787950cb6c17e4c031859", null ] +]; \ No newline at end of file diff --git a/docs/signalk__output_8h__dep__incl.map b/docs/signalk__output_8h__dep__incl.map new file mode 100644 index 000000000..6f134a586 --- /dev/null +++ b/docs/signalk__output_8h__dep__incl.map @@ -0,0 +1,7 @@ + + + + + + + diff --git a/docs/signalk__output_8h__dep__incl.md5 b/docs/signalk__output_8h__dep__incl.md5 new file mode 100644 index 000000000..11944c8e0 --- /dev/null +++ b/docs/signalk__output_8h__dep__incl.md5 @@ -0,0 +1 @@ +55443e35126f267e6dbf964c1ceb9283 \ No newline at end of file diff --git a/docs/signalk__output_8h__dep__incl.png b/docs/signalk__output_8h__dep__incl.png new file mode 100644 index 000000000..923f210b8 Binary files /dev/null and b/docs/signalk__output_8h__dep__incl.png differ diff --git a/docs/signalk__output_8h__incl.map b/docs/signalk__output_8h__incl.map new file mode 100644 index 000000000..34e35a879 --- /dev/null +++ b/docs/signalk__output_8h__incl.map @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/signalk__output_8h__incl.md5 b/docs/signalk__output_8h__incl.md5 new file mode 100644 index 000000000..9766869a4 --- /dev/null +++ b/docs/signalk__output_8h__incl.md5 @@ -0,0 +1 @@ +b9b2fcc2f9b0d1d2b401d4bfc8c07d2d \ No newline at end of file diff --git a/docs/signalk__output_8h__incl.png b/docs/signalk__output_8h__incl.png new file mode 100644 index 000000000..594303703 Binary files /dev/null and b/docs/signalk__output_8h__incl.png differ diff --git a/docs/signalk__output_8h_source.html b/docs/signalk__output_8h_source.html new file mode 100644 index 000000000..5c3741680 --- /dev/null +++ b/docs/signalk__output_8h_source.html @@ -0,0 +1,130 @@ + + + + + + + +SensESP: src/signalk/signalk_output.h Source File + + + + + + + + + + + + + + +
                                                                                      +
                                                                                      + + + + + + +
                                                                                      +
                                                                                      SensESP +  0.4.0 +
                                                                                      +
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + +
                                                                                      +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      + + +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      signalk_output.h
                                                                                      +
                                                                                      +
                                                                                      +Go to the documentation of this file.
                                                                                      1 #ifndef _signalk_output_H_
                                                                                      2 #define _signalk_output_H_
                                                                                      3 
                                                                                      5 #include "transforms/transform.h"
                                                                                      6 
                                                                                      7 static const char SIGNALKOUTPUT_SCHEMA[] PROGMEM = R"({
                                                                                      8  "type": "object",
                                                                                      9  "properties": {
                                                                                      10  "sk_path": { "title": "SignalK Path", "type": "string" }
                                                                                      11  }
                                                                                      12  })";
                                                                                      13 
                                                                                      14 // SKOutput is a specialized transform whose primary purpose is
                                                                                      15 // to output SignalK data on the SignalK network.
                                                                                      16 template <typename T>
                                                                                      17 class SKOutput : public SKEmitter,
                                                                                      18  public SymmetricTransform<T> {
                                                                                      19  public:
                                                                                      20  SKOutput() : SKOutput("") {}
                                                                                      21 
                                                                                      22  SKOutput(String sk_path, String config_path="")
                                                                                      25  }
                                                                                      26 
                                                                                      27 
                                                                                      28  virtual void set_input(T newValue, uint8_t inputChannel = 0) override {
                                                                                      29  ValueProducer<T>::output = newValue;
                                                                                      30  this->notify();
                                                                                      31  }
                                                                                      32 
                                                                                      33 
                                                                                      34  virtual String as_signalK() override {
                                                                                      35  DynamicJsonBuffer jsonBuffer;
                                                                                      36  String json;
                                                                                      37  JsonObject& root = jsonBuffer.createObject();
                                                                                      38  root.set("path", this->get_sk_path());
                                                                                      39  root.printTo(json);
                                                                                      40  return json;
                                                                                      41  }
                                                                                      42 
                                                                                      43  virtual JsonObject& get_configuration(JsonBuffer& buf) override {
                                                                                      44  JsonObject& root = buf.createObject();
                                                                                      45  root["sk_path"] = this->get_sk_path();
                                                                                      46  return root;
                                                                                      47  }
                                                                                      48 
                                                                                      49  String get_config_schema() override {
                                                                                      50  return FPSTR(SIGNALKOUTPUT_SCHEMA);
                                                                                      51  }
                                                                                      52 
                                                                                      53  virtual bool set_configuration(const JsonObject& config) override {
                                                                                      54  if (!config.containsKey("sk_path")) {
                                                                                      55  return false;
                                                                                      56  }
                                                                                      57  this->set_sk_path(config["sk_path"].as<String>());
                                                                                      58  return true;
                                                                                      59  }
                                                                                      60 
                                                                                      61 };
                                                                                      62 
                                                                                      67 
                                                                                      68 #endif
                                                                                      SKOutput(String sk_path, String config_path="")
                                                                                      +
                                                                                      SKOutput< String > SKOutputString
                                                                                      +
                                                                                      virtual String as_signalK() override
                                                                                      +
                                                                                      void set_sk_path(const String &path)
                                                                                      +
                                                                                      void setPriority(uint8_t priority)
                                                                                      Definition: enable.h:30
                                                                                      +
                                                                                      SKOutput< bool > SKOutputBool
                                                                                      +
                                                                                      void notify()
                                                                                      Definition: observable.cpp:3
                                                                                      +
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override
                                                                                      +
                                                                                      virtual bool set_configuration(const JsonObject &config) override
                                                                                      + +
                                                                                      virtual void set_input(T newValue, uint8_t inputChannel=0) override
                                                                                      + + +
                                                                                      String sk_path
                                                                                      +
                                                                                      SKOutput< float > SKOutputNumber
                                                                                      + + +
                                                                                      SKOutput< int > SKOutputInt
                                                                                      +
                                                                                      const String config_path
                                                                                      Definition: configurable.h:29
                                                                                      +
                                                                                      String get_config_schema() override
                                                                                      +
                                                                                      const char PAGE_index [] PROGMEM
                                                                                      Definition: index.h:2
                                                                                      + + +
                                                                                      String & get_sk_path()
                                                                                      +
                                                                                      +
                                                                                      + + + + diff --git a/docs/signalk__position_8cpp.html b/docs/signalk__position_8cpp.html new file mode 100644 index 000000000..36319dd1f --- /dev/null +++ b/docs/signalk__position_8cpp.html @@ -0,0 +1,142 @@ + + + + + + + +SensESP: src/signalk/signalk_position.cpp File Reference + + + + + + + + + + + + + + +
                                                                                      +
                                                                                      + + + + + + +
                                                                                      +
                                                                                      SensESP +  0.4.0 +
                                                                                      +
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + +
                                                                                      +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      + + +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      signalk_position.cpp File Reference
                                                                                      +
                                                                                      +
                                                                                      +
                                                                                      #include "signalk_position.h"
                                                                                      +
                                                                                      +Include dependency graph for signalk_position.cpp:
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                      +
                                                                                      +

                                                                                      Go to the source code of this file.

                                                                                      +
                                                                                      +
                                                                                      + + + + diff --git a/docs/signalk__position_8cpp__incl.map b/docs/signalk__position_8cpp__incl.map new file mode 100644 index 000000000..82cc137e6 --- /dev/null +++ b/docs/signalk__position_8cpp__incl.map @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/signalk__position_8cpp__incl.md5 b/docs/signalk__position_8cpp__incl.md5 new file mode 100644 index 000000000..e92ecbb47 --- /dev/null +++ b/docs/signalk__position_8cpp__incl.md5 @@ -0,0 +1 @@ +b912df45d78febc36a11c2751eece9b2 \ No newline at end of file diff --git a/docs/signalk__position_8cpp__incl.png b/docs/signalk__position_8cpp__incl.png new file mode 100644 index 000000000..6c6fae3f4 Binary files /dev/null and b/docs/signalk__position_8cpp__incl.png differ diff --git a/docs/signalk__position_8cpp_source.html b/docs/signalk__position_8cpp_source.html new file mode 100644 index 000000000..6894b8ce6 --- /dev/null +++ b/docs/signalk__position_8cpp_source.html @@ -0,0 +1,118 @@ + + + + + + + +SensESP: src/signalk/signalk_position.cpp Source File + + + + + + + + + + + + + + +
                                                                                      +
                                                                                      + + + + + + +
                                                                                      +
                                                                                      SensESP +  0.4.0 +
                                                                                      +
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + +
                                                                                      +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      + + +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      signalk_position.cpp
                                                                                      +
                                                                                      +
                                                                                      +Go to the documentation of this file.
                                                                                      1 
                                                                                      2 #include "signalk_position.h"
                                                                                      3 
                                                                                      5  DynamicJsonBuffer jsonBuffer;
                                                                                      6  String json;
                                                                                      7  JsonObject& root = jsonBuffer.createObject();
                                                                                      8  root.set("path", this->get_sk_path());
                                                                                      9  JsonObject& value = root.createNestedObject("value");
                                                                                      10  value.set("latitude", output.latitude);
                                                                                      11  value.set("longitude", output.longitude);
                                                                                      12  if (output.altitude > -10000) {
                                                                                      13  value.set("altitude", output.altitude);
                                                                                      14  }
                                                                                      15  root.printTo(json);
                                                                                      16  return json;
                                                                                      17 }
                                                                                      18 
                                                                                      19 JsonObject& SKOutputPosition::get_configuration(JsonBuffer& buf) {
                                                                                      20  JsonObject& root = buf.createObject();
                                                                                      21  root["sk_path"] = this->get_sk_path();
                                                                                      22  return root;
                                                                                      23 }
                                                                                      24 
                                                                                      25 static const char SCHEMA[] PROGMEM = R"({
                                                                                      26  "type": "object",
                                                                                      27  "properties": {
                                                                                      28  "sk_path": { "title": "SignalK Path", "type": "string" }
                                                                                      29  }
                                                                                      30  })";
                                                                                      31 
                                                                                      33  return FPSTR(SCHEMA);
                                                                                      34 }
                                                                                      35 
                                                                                      36 bool SKOutputPosition::set_configuration(const JsonObject& config) {
                                                                                      37  if (!config.containsKey("sk_path")) {
                                                                                      38  return false;
                                                                                      39  }
                                                                                      40  this->set_sk_path(config["sk_path"].as<String>());
                                                                                      41  return true;
                                                                                      42 }
                                                                                      void set_sk_path(const String &path)
                                                                                      + +
                                                                                      virtual String get_config_schema() override
                                                                                      +
                                                                                      float altitude
                                                                                      Definition: nmea_parser.h:16
                                                                                      +
                                                                                      virtual String as_signalK() override
                                                                                      +
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override
                                                                                      +
                                                                                      double longitude
                                                                                      Definition: nmea_parser.h:15
                                                                                      +
                                                                                      double latitude
                                                                                      Definition: nmea_parser.h:14
                                                                                      + +
                                                                                      virtual bool set_configuration(const JsonObject &config) override
                                                                                      +
                                                                                      const char PAGE_index [] PROGMEM
                                                                                      Definition: index.h:2
                                                                                      +
                                                                                      String & get_sk_path()
                                                                                      +
                                                                                      +
                                                                                      + + + + diff --git a/docs/signalk__position_8h.html b/docs/signalk__position_8h.html new file mode 100644 index 000000000..74143d56b --- /dev/null +++ b/docs/signalk__position_8h.html @@ -0,0 +1,164 @@ + + + + + + + +SensESP: src/signalk/signalk_position.h File Reference + + + + + + + + + + + + + + +
                                                                                      +
                                                                                      + + + + + + +
                                                                                      +
                                                                                      SensESP +  0.4.0 +
                                                                                      +
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + +
                                                                                      +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      + + +
                                                                                      + +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      signalk_position.h File Reference
                                                                                      +
                                                                                      +
                                                                                      +
                                                                                      #include <set>
                                                                                      +#include "Arduino.h"
                                                                                      +#include <ArduinoJson.h>
                                                                                      +#include "devices/gps.h"
                                                                                      +#include "sensesp.h"
                                                                                      +#include "signalk_output.h"
                                                                                      +
                                                                                      +Include dependency graph for signalk_position.h:
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                      +
                                                                                      +This graph shows which files directly or indirectly include this file:
                                                                                      +
                                                                                      +
                                                                                      + + + + + +
                                                                                      +
                                                                                      +

                                                                                      Go to the source code of this file.

                                                                                      + + + + +

                                                                                      +Classes

                                                                                      class  SKOutputPosition
                                                                                       
                                                                                      +
                                                                                      +
                                                                                      + + + + diff --git a/docs/signalk__position_8h__dep__incl.map b/docs/signalk__position_8h__dep__incl.map new file mode 100644 index 000000000..22b6fa443 --- /dev/null +++ b/docs/signalk__position_8h__dep__incl.map @@ -0,0 +1,5 @@ + + + + + diff --git a/docs/signalk__position_8h__dep__incl.md5 b/docs/signalk__position_8h__dep__incl.md5 new file mode 100644 index 000000000..d98b52720 --- /dev/null +++ b/docs/signalk__position_8h__dep__incl.md5 @@ -0,0 +1 @@ +16b891aee7f82b43ddc2ba2082a61e65 \ No newline at end of file diff --git a/docs/signalk__position_8h__dep__incl.png b/docs/signalk__position_8h__dep__incl.png new file mode 100644 index 000000000..5cdd7f36a Binary files /dev/null and b/docs/signalk__position_8h__dep__incl.png differ diff --git a/docs/signalk__position_8h__incl.map b/docs/signalk__position_8h__incl.map new file mode 100644 index 000000000..86f036da4 --- /dev/null +++ b/docs/signalk__position_8h__incl.map @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/signalk__position_8h__incl.md5 b/docs/signalk__position_8h__incl.md5 new file mode 100644 index 000000000..edfcb41fe --- /dev/null +++ b/docs/signalk__position_8h__incl.md5 @@ -0,0 +1 @@ +42996dad901cedc213d92a408664b75f \ No newline at end of file diff --git a/docs/signalk__position_8h__incl.png b/docs/signalk__position_8h__incl.png new file mode 100644 index 000000000..0ea6e68e5 Binary files /dev/null and b/docs/signalk__position_8h__incl.png differ diff --git a/docs/signalk__position_8h_source.html b/docs/signalk__position_8h_source.html new file mode 100644 index 000000000..4351a4fdc --- /dev/null +++ b/docs/signalk__position_8h_source.html @@ -0,0 +1,119 @@ + + + + + + + +SensESP: src/signalk/signalk_position.h Source File + + + + + + + + + + + + + + +
                                                                                      +
                                                                                      + + + + + + +
                                                                                      +
                                                                                      SensESP +  0.4.0 +
                                                                                      +
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + +
                                                                                      +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      + + +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      signalk_position.h
                                                                                      +
                                                                                      +
                                                                                      +Go to the documentation of this file.
                                                                                      1 #ifndef _signalk_position_H_
                                                                                      2 #define _signalk_position_H_
                                                                                      3 
                                                                                      4 #include <set>
                                                                                      5 
                                                                                      6 #include "Arduino.h"
                                                                                      7 #include <ArduinoJson.h>
                                                                                      8 
                                                                                      9 #include "devices/gps.h"
                                                                                      10 #include "sensesp.h"
                                                                                      11 #include "signalk_output.h"
                                                                                      12 
                                                                                      14 // provide correct output formatting for GNSS position
                                                                                      15 
                                                                                      16 class SKOutputPosition : public SKOutput<Position> {
                                                                                      17  public:
                                                                                      18  SKOutputPosition(String sk_path, String config_path="") :
                                                                                      20  }
                                                                                      21 
                                                                                      22  virtual String as_signalK() override;
                                                                                      23 
                                                                                      24  virtual JsonObject& get_configuration(JsonBuffer& buf) override;
                                                                                      25 
                                                                                      26  virtual bool set_configuration(const JsonObject& config) override;
                                                                                      27  virtual String get_config_schema() override;
                                                                                      28 
                                                                                      29 };
                                                                                      30 
                                                                                      31 #endif
                                                                                      +
                                                                                      virtual String get_config_schema() override
                                                                                      + +
                                                                                      virtual String as_signalK() override
                                                                                      +
                                                                                      String sk_path
                                                                                      +
                                                                                      SKOutputPosition(String sk_path, String config_path="")
                                                                                      + + +
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override
                                                                                      +
                                                                                      const String config_path
                                                                                      Definition: configurable.h:29
                                                                                      +
                                                                                      virtual bool set_configuration(const JsonObject &config) override
                                                                                      + + +
                                                                                      +
                                                                                      + + + + diff --git a/docs/signalk__time_8cpp.html b/docs/signalk__time_8cpp.html new file mode 100644 index 000000000..a851061ab --- /dev/null +++ b/docs/signalk__time_8cpp.html @@ -0,0 +1,139 @@ + + + + + + + +SensESP: src/signalk/signalk_time.cpp File Reference + + + + + + + + + + + + + + +
                                                                                      +
                                                                                      + + + + + + +
                                                                                      +
                                                                                      SensESP +  0.4.0 +
                                                                                      +
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + +
                                                                                      +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      + + +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      signalk_time.cpp File Reference
                                                                                      +
                                                                                      +
                                                                                      +
                                                                                      #include "signalk_time.h"
                                                                                      +
                                                                                      +Include dependency graph for signalk_time.cpp:
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                      +
                                                                                      +

                                                                                      Go to the source code of this file.

                                                                                      +
                                                                                      +
                                                                                      + + + + diff --git a/docs/signalk__time_8cpp__incl.map b/docs/signalk__time_8cpp__incl.map new file mode 100644 index 000000000..547ebdb7b --- /dev/null +++ b/docs/signalk__time_8cpp__incl.map @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/signalk__time_8cpp__incl.md5 b/docs/signalk__time_8cpp__incl.md5 new file mode 100644 index 000000000..69b55824a --- /dev/null +++ b/docs/signalk__time_8cpp__incl.md5 @@ -0,0 +1 @@ +3d8ef9b01b000a07dd36681066cb3e2b \ No newline at end of file diff --git a/docs/signalk__time_8cpp__incl.png b/docs/signalk__time_8cpp__incl.png new file mode 100644 index 000000000..e752c29d1 Binary files /dev/null and b/docs/signalk__time_8cpp__incl.png differ diff --git a/docs/signalk__time_8cpp_source.html b/docs/signalk__time_8cpp_source.html new file mode 100644 index 000000000..1d44696ad --- /dev/null +++ b/docs/signalk__time_8cpp_source.html @@ -0,0 +1,118 @@ + + + + + + + +SensESP: src/signalk/signalk_time.cpp Source File + + + + + + + + + + + + + + +
                                                                                      +
                                                                                      + + + + + + +
                                                                                      +
                                                                                      SensESP +  0.4.0 +
                                                                                      +
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + +
                                                                                      +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      + + +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      signalk_time.cpp
                                                                                      +
                                                                                      +
                                                                                      +Go to the documentation of this file.
                                                                                      1 
                                                                                      2 #include "signalk_time.h"
                                                                                      3 
                                                                                      4 
                                                                                      5 SKOutputTime::SKOutputTime(String sk_path, String config_path) :
                                                                                      6  TimeString(config_path),
                                                                                      7  SKEmitter(sk_path) {
                                                                                      9 }
                                                                                      10 
                                                                                      11 
                                                                                      13  DynamicJsonBuffer jsonBuffer;
                                                                                      14  String json;
                                                                                      15  JsonObject& root = jsonBuffer.createObject();
                                                                                      16  root.set("path", this->sk_path);
                                                                                      17  root.set("value", output);
                                                                                      18  root.printTo(json);
                                                                                      19  return json;
                                                                                      20 }
                                                                                      21 
                                                                                      22 JsonObject& SKOutputTime::get_configuration(JsonBuffer& buf) {
                                                                                      23  JsonObject& root = buf.createObject();
                                                                                      24  root["sk_path"] = sk_path;
                                                                                      25  root["value"] = output;
                                                                                      26  return root;
                                                                                      27 }
                                                                                      28 
                                                                                      29 static const char SCHEMA[] PROGMEM = R"({
                                                                                      30  "type": "object",
                                                                                      31  "properties": {
                                                                                      32  "sk_path": { "title": "SignalK Path", "type": "string" },
                                                                                      33  "value": { "title": "Last value", "type" : "string", "readOnly": true }
                                                                                      34  }
                                                                                      35  })";
                                                                                      36 
                                                                                      38  return FPSTR(SCHEMA);
                                                                                      39 }
                                                                                      40 
                                                                                      41 bool SKOutputTime::set_configuration(const JsonObject& config) {
                                                                                      42  String expected[] = {"sk_path"};
                                                                                      43  for (auto str : expected) {
                                                                                      44  if (!config.containsKey(str)) {
                                                                                      45  return false;
                                                                                      46  }
                                                                                      47  }
                                                                                      48  sk_path = config["sk_path"].as<String>();
                                                                                      49  return true;
                                                                                      50 }
                                                                                      virtual bool set_configuration(const JsonObject &config) override
                                                                                      + + +
                                                                                      virtual void load_configuration()
                                                                                      +
                                                                                      String sk_path
                                                                                      +
                                                                                      SKOutputTime(String sk_path, String config_path="")
                                                                                      Definition: signalk_time.cpp:5
                                                                                      +
                                                                                      virtual String as_signalK() override
                                                                                      +
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override
                                                                                      + +
                                                                                      const char PAGE_index [] PROGMEM
                                                                                      Definition: index.h:2
                                                                                      +
                                                                                      virtual String get_config_schema() override
                                                                                      + +
                                                                                      +
                                                                                      + + + + diff --git a/docs/signalk__time_8h.html b/docs/signalk__time_8h.html new file mode 100644 index 000000000..feaa43d27 --- /dev/null +++ b/docs/signalk__time_8h.html @@ -0,0 +1,157 @@ + + + + + + + +SensESP: src/signalk/signalk_time.h File Reference + + + + + + + + + + + + + + +
                                                                                      +
                                                                                      + + + + + + +
                                                                                      +
                                                                                      SensESP +  0.4.0 +
                                                                                      +
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + +
                                                                                      +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      + + +
                                                                                      + +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      signalk_time.h File Reference
                                                                                      +
                                                                                      +
                                                                                      +
                                                                                      +Include dependency graph for signalk_time.h:
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                      +
                                                                                      +This graph shows which files directly or indirectly include this file:
                                                                                      +
                                                                                      +
                                                                                      + + + + + +
                                                                                      +
                                                                                      +

                                                                                      Go to the source code of this file.

                                                                                      + + + + +

                                                                                      +Classes

                                                                                      class  SKOutputTime
                                                                                       
                                                                                      +
                                                                                      +
                                                                                      + + + + diff --git a/docs/signalk__time_8h__dep__incl.map b/docs/signalk__time_8h__dep__incl.map new file mode 100644 index 000000000..24b5c59b3 --- /dev/null +++ b/docs/signalk__time_8h__dep__incl.map @@ -0,0 +1,5 @@ + + + + + diff --git a/docs/signalk__time_8h__dep__incl.md5 b/docs/signalk__time_8h__dep__incl.md5 new file mode 100644 index 000000000..882c07c5f --- /dev/null +++ b/docs/signalk__time_8h__dep__incl.md5 @@ -0,0 +1 @@ +c7a5a2113f9520232507230c13020e7d \ No newline at end of file diff --git a/docs/signalk__time_8h__dep__incl.png b/docs/signalk__time_8h__dep__incl.png new file mode 100644 index 000000000..d3613dbe4 Binary files /dev/null and b/docs/signalk__time_8h__dep__incl.png differ diff --git a/docs/signalk__time_8h__incl.map b/docs/signalk__time_8h__incl.map new file mode 100644 index 000000000..042c1e8cb --- /dev/null +++ b/docs/signalk__time_8h__incl.map @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/signalk__time_8h__incl.md5 b/docs/signalk__time_8h__incl.md5 new file mode 100644 index 000000000..59e3118b9 --- /dev/null +++ b/docs/signalk__time_8h__incl.md5 @@ -0,0 +1 @@ +6d0c051feb22c1c348c911cd5b5054ac \ No newline at end of file diff --git a/docs/signalk__time_8h__incl.png b/docs/signalk__time_8h__incl.png new file mode 100644 index 000000000..9f744dee5 Binary files /dev/null and b/docs/signalk__time_8h__incl.png differ diff --git a/docs/signalk__time_8h_source.html b/docs/signalk__time_8h_source.html new file mode 100644 index 000000000..f273fe31d --- /dev/null +++ b/docs/signalk__time_8h_source.html @@ -0,0 +1,118 @@ + + + + + + + +SensESP: src/signalk/signalk_time.h Source File + + + + + + + + + + + + + + +
                                                                                      +
                                                                                      + + + + + + +
                                                                                      +
                                                                                      SensESP +  0.4.0 +
                                                                                      +
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      +
                                                                                      +
                                                                                      + + + + + + + +
                                                                                      +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      + + +
                                                                                      + +
                                                                                      + +
                                                                                      +
                                                                                      +
                                                                                      signalk_time.h
                                                                                      +
                                                                                      +
                                                                                      +Go to the documentation of this file.
                                                                                      1 #ifndef _signalk_time_H_
                                                                                      2 #define _signalk_time_H_
                                                                                      3 
                                                                                      5 #include "signalk_emitter.h"
                                                                                      6 
                                                                                      7 class SKOutputTime : public TimeString,
                                                                                      8  public SKEmitter {
                                                                                      9  public:
                                                                                      10  SKOutputTime(String sk_path, String config_path="");
                                                                                      11  virtual String as_signalK() override;
                                                                                      12  virtual JsonObject& get_configuration(JsonBuffer& buf) override;
                                                                                      13  virtual bool set_configuration(const JsonObject& config) override;
                                                                                      14  virtual String get_config_schema() override;
                                                                                      15 };
                                                                                      16 
                                                                                      17 #endif
                                                                                      virtual bool set_configuration(const JsonObject &config) override
                                                                                      + + + + +
                                                                                      String sk_path
                                                                                      +
                                                                                      SKOutputTime(String sk_path, String config_path="")
                                                                                      Definition: signalk_time.cpp:5
                                                                                      +
                                                                                      const String config_path
                                                                                      Definition: configurable.h:29
                                                                                      +
                                                                                      virtual String as_signalK() override
                                                                                      + +
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override
                                                                                      +
                                                                                      virtual String get_config_schema() override
                                                                                      +
                                                                                      +
                                                                                      + + + + diff --git a/docs/spiffs__storage_8cpp.html b/docs/spiffs__storage_8cpp.html index 1b14227b4..e690f32d1 100644 --- a/docs/spiffs__storage_8cpp.html +++ b/docs/spiffs__storage_8cpp.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/spiffs__storage_8cpp_source.html b/docs/spiffs__storage_8cpp_source.html index f9a947fa3..95f173fd0 100644 --- a/docs/spiffs__storage_8cpp_source.html +++ b/docs/spiffs__storage_8cpp_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/spiffs__storage_8h.html b/docs/spiffs__storage_8h.html index 925a77199..95d56a30e 100644 --- a/docs/spiffs__storage_8h.html +++ b/docs/spiffs__storage_8h.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/spiffs__storage_8h_source.html b/docs/spiffs__storage_8h_source.html index c8275779f..338038d10 100644 --- a/docs/spiffs__storage_8h_source.html +++ b/docs/spiffs__storage_8h_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/struct_e_n_u_vector-members.html b/docs/struct_e_n_u_vector-members.html index af165742b..4e3a3965a 100644 --- a/docs/struct_e_n_u_vector-members.html +++ b/docs/struct_e_n_u_vector-members.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/struct_e_n_u_vector.html b/docs/struct_e_n_u_vector.html index 9f78a6015..80465ba34 100644 --- a/docs/struct_e_n_u_vector.html +++ b/docs/struct_e_n_u_vector.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/struct_n_m_e_a_data-members.html b/docs/struct_n_m_e_a_data-members.html index 325bcfdb2..7e1906576 100644 --- a/docs/struct_n_m_e_a_data-members.html +++ b/docs/struct_n_m_e_a_data-members.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/struct_n_m_e_a_data.html b/docs/struct_n_m_e_a_data.html index 0466f8fcb..bb203ca09 100644 --- a/docs/struct_n_m_e_a_data.html +++ b/docs/struct_n_m_e_a_data.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/struct_position-members.html b/docs/struct_position-members.html index e647ae7b0..27d098fcd 100644 --- a/docs/struct_position-members.html +++ b/docs/struct_position-members.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/struct_position.html b/docs/struct_position.html index a30d238a4..e48713544 100644 --- a/docs/struct_position.html +++ b/docs/struct_position.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/system__info_8cpp.html b/docs/system__info_8cpp.html index d613828c6..72932aa43 100644 --- a/docs/system__info_8cpp.html +++ b/docs/system__info_8cpp.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/system__info_8cpp_source.html b/docs/system__info_8cpp_source.html index e06b82133..6a46f71a9 100644 --- a/docs/system__info_8cpp_source.html +++ b/docs/system__info_8cpp_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -96,7 +96,7 @@
                                                                                      void enable() override final
                                                                                      Definition: system_info.cpp:52
                                                                                      void enable() override final
                                                                                      Definition: system_info.cpp:29
                                                                                      - +
                                                                                      void enable() override final
                                                                                      Definition: system_info.cpp:62
                                                                                      ReactESP app
                                                                                      diff --git a/docs/system__info_8h.html b/docs/system__info_8h.html index a112e6011..e9440b4ed 100644 --- a/docs/system__info_8h.html +++ b/docs/system__info_8h.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/system__info_8h_source.html b/docs/system__info_8h_source.html index 1930c7f57..84202ca1c 100644 --- a/docs/system__info_8h_source.html +++ b/docs/system__info_8h_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      diff --git a/docs/timestring_8cpp.html b/docs/timestring_8cpp.html index 8136749c1..48e317f49 100644 --- a/docs/timestring_8cpp.html +++ b/docs/timestring_8cpp.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -97,28 +97,27 @@
                                                                                      - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + +
                                                                                      diff --git a/docs/timestring_8cpp__incl.map b/docs/timestring_8cpp__incl.map index c248976a5..818be5c1f 100644 --- a/docs/timestring_8cpp__incl.map +++ b/docs/timestring_8cpp__incl.map @@ -1,24 +1,23 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/timestring_8cpp__incl.md5 b/docs/timestring_8cpp__incl.md5 index 53e96bd2d..b05c86803 100644 --- a/docs/timestring_8cpp__incl.md5 +++ b/docs/timestring_8cpp__incl.md5 @@ -1 +1 @@ -bc15b4342147788b0b67b4127554e4eb \ No newline at end of file +632d40be774dc0def18385a5b07d3459 \ No newline at end of file diff --git a/docs/timestring_8cpp__incl.png b/docs/timestring_8cpp__incl.png index 3f66d85e6..6964bbac0 100644 Binary files a/docs/timestring_8cpp__incl.png and b/docs/timestring_8cpp__incl.png differ diff --git a/docs/timestring_8cpp_source.html b/docs/timestring_8cpp_source.html index 00c39b505..a90c22a47 100644 --- a/docs/timestring_8cpp_source.html +++ b/docs/timestring_8cpp_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -91,19 +91,12 @@
                                                                                      timestring.cpp
                                                                                      -Go to the documentation of this file.
                                                                                      1 #include "timestring.h"
                                                                                      2 
                                                                                      3 
                                                                                      4 TimeString::TimeString(String path, String config_path) :
                                                                                      5  ValueConsumer<time_t>(),
                                                                                      7  load_configuration();
                                                                                      8 }
                                                                                      9 
                                                                                      10 void TimeString::set_input(time_t input, uint8_t inputChannel) {
                                                                                      11  char buf[sizeof "2011-10-08T07:07:09Z"];
                                                                                      12  strftime(buf, sizeof buf, "%FT%TZ", gmtime(&input));
                                                                                      13  output = String(buf);
                                                                                      14  notify();
                                                                                      15 }
                                                                                      16 
                                                                                      18  DynamicJsonBuffer jsonBuffer;
                                                                                      19  String json;
                                                                                      20  JsonObject& root = jsonBuffer.createObject();
                                                                                      21  root.set("path", this->sk_path);
                                                                                      22  root.set("value", output);
                                                                                      23  root.printTo(json);
                                                                                      24  return json;
                                                                                      25 }
                                                                                      26 
                                                                                      27 JsonObject& TimeString::get_configuration(JsonBuffer& buf) {
                                                                                      28  JsonObject& root = buf.createObject();
                                                                                      29  root["sk_path"] = sk_path;
                                                                                      30  root["value"] = output;
                                                                                      31  return root;
                                                                                      32 }
                                                                                      33 
                                                                                      35  return R"({
                                                                                      36  "type": "object",
                                                                                      37  "properties": {
                                                                                      38  "sk_path": { "title": "SignalK Path", "type": "string" },
                                                                                      39  "value": { "title": "Last value", "type" : "string", "readOnly": true }
                                                                                      40  }
                                                                                      41  })";
                                                                                      42 }
                                                                                      43 
                                                                                      44 bool TimeString::set_configuration(const JsonObject& config) {
                                                                                      45  String expected[] = {"sk_path"};
                                                                                      46  for (auto str : expected) {
                                                                                      47  if (!config.containsKey(str)) {
                                                                                      48  return false;
                                                                                      49  }
                                                                                      50  }
                                                                                      51  sk_path = config["sk_path"].as<String>();
                                                                                      52  return true;
                                                                                      53 }
                                                                                      54 
                                                                                      TimeString(String sk_path, String config_path="")
                                                                                      Definition: timestring.cpp:4
                                                                                      +Go to the documentation of this file.
                                                                                      1 
                                                                                      2 #include "timestring.h"
                                                                                      3 
                                                                                      4 
                                                                                      5 TimeString::TimeString(String config_path) :
                                                                                      6  Transform<time_t, String>(config_path) {
                                                                                      7 }
                                                                                      8 
                                                                                      9 void TimeString::set_input(time_t input, uint8_t inputChannel) {
                                                                                      10  char buf[sizeof "2011-10-08T07:07:09Z"];
                                                                                      11  strftime(buf, sizeof buf, "%FT%TZ", gmtime(&input));
                                                                                      12  output = String(buf);
                                                                                      13  notify();
                                                                                      14 }
                                                                                      TimeString(String config_path="")
                                                                                      Definition: timestring.cpp:5
                                                                                      void notify()
                                                                                      Definition: observable.cpp:3
                                                                                      -
                                                                                      virtual void set_input(time_t input, uint8_t inputChannel=0) override final
                                                                                      Definition: timestring.cpp:10
                                                                                      - - - -
                                                                                      virtual bool set_configuration(const JsonObject &config) override final
                                                                                      Definition: timestring.cpp:44
                                                                                      -
                                                                                      String as_signalK() override final
                                                                                      Definition: timestring.cpp:17
                                                                                      -
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override final
                                                                                      Definition: timestring.cpp:27
                                                                                      -
                                                                                      const String config_path
                                                                                      Definition: configurable.h:29
                                                                                      -
                                                                                      virtual String get_config_schema() override
                                                                                      Definition: timestring.cpp:34
                                                                                      - + +
                                                                                      virtual void set_input(time_t input, uint8_t inputChannel=0) override
                                                                                      Definition: timestring.cpp:9
                                                                                      +
                                                                                      diff --git a/docs/timestring_8h.html b/docs/timestring_8h.html index 0bafd3498..059e65b17 100644 --- a/docs/timestring_8h.html +++ b/docs/timestring_8h.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -101,27 +101,26 @@
                                                                                      - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + +
                                                                                      @@ -129,9 +128,11 @@
                                                                                      - - - + + + + +
                                                                                      diff --git a/docs/timestring_8h__dep__incl.map b/docs/timestring_8h__dep__incl.map index eef8d003f..a55da2b87 100644 --- a/docs/timestring_8h__dep__incl.map +++ b/docs/timestring_8h__dep__incl.map @@ -1,5 +1,7 @@ - - - + + + + + diff --git a/docs/timestring_8h__dep__incl.md5 b/docs/timestring_8h__dep__incl.md5 index dc4e8d969..b243feb10 100644 --- a/docs/timestring_8h__dep__incl.md5 +++ b/docs/timestring_8h__dep__incl.md5 @@ -1 +1 @@ -d2fa56fca3e3f1f2cf94d36f3b8ce715 \ No newline at end of file +b8a4d63124f5e9dd181cecec4b669175 \ No newline at end of file diff --git a/docs/timestring_8h__dep__incl.png b/docs/timestring_8h__dep__incl.png index 64cc28cc9..e8d7e01ec 100644 Binary files a/docs/timestring_8h__dep__incl.png and b/docs/timestring_8h__dep__incl.png differ diff --git a/docs/timestring_8h__incl.map b/docs/timestring_8h__incl.map index 0012b1859..abb164926 100644 --- a/docs/timestring_8h__incl.map +++ b/docs/timestring_8h__incl.map @@ -1,23 +1,22 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + diff --git a/docs/timestring_8h__incl.md5 b/docs/timestring_8h__incl.md5 index 81d31bb92..3cf13a4bb 100644 --- a/docs/timestring_8h__incl.md5 +++ b/docs/timestring_8h__incl.md5 @@ -1 +1 @@ -f97704c702b59f40557a5baaec710e73 \ No newline at end of file +4bfd7b149cb5a6f700f38e7edd390379 \ No newline at end of file diff --git a/docs/timestring_8h__incl.png b/docs/timestring_8h__incl.png index 4f07b9538..ea8158e3a 100644 Binary files a/docs/timestring_8h__incl.png and b/docs/timestring_8h__incl.png differ diff --git a/docs/timestring_8h_source.html b/docs/timestring_8h_source.html index f91d248fc..5fbb80511 100644 --- a/docs/timestring_8h_source.html +++ b/docs/timestring_8h_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -91,19 +91,13 @@
                                                                                      timestring.h
                                                                                      -Go to the documentation of this file.
                                                                                      1 #ifndef _timestring_H_
                                                                                      2 #define _timestring_H_
                                                                                      3 
                                                                                      4 #include <ctime>
                                                                                      5 
                                                                                      6 #include "transform.h"
                                                                                      7 #include "system/valueconsumer.h"
                                                                                      8 
                                                                                      9 class TimeString : public ValueConsumer<time_t>, public StringTransform {
                                                                                      10  public:
                                                                                      11  TimeString(String sk_path, String config_path="");
                                                                                      12  virtual void set_input(time_t input, uint8_t inputChannel = 0) override final;
                                                                                      13  String as_signalK() override final;
                                                                                      14  virtual JsonObject& get_configuration(JsonBuffer& buf) override final;
                                                                                      15  virtual bool set_configuration(const JsonObject& config) override final;
                                                                                      16  virtual String get_config_schema() override;
                                                                                      17 };
                                                                                      18 
                                                                                      19 #endif
                                                                                      TimeString(String sk_path, String config_path="")
                                                                                      Definition: timestring.cpp:4
                                                                                      - +Go to the documentation of this file.
                                                                                      1 #ifndef _timestring_H_
                                                                                      2 #define _timestring_H_
                                                                                      3 
                                                                                      4 #include <ctime>
                                                                                      5 
                                                                                      6 #include "transform.h"
                                                                                      7 #include "system/valueconsumer.h"
                                                                                      8 
                                                                                      13 class TimeString : public Transform<time_t, String> {
                                                                                      14 
                                                                                      15  public:
                                                                                      16  TimeString(String config_path="");
                                                                                      17  virtual void set_input(time_t input, uint8_t inputChannel = 0) override;
                                                                                      18 
                                                                                      19 };
                                                                                      20 
                                                                                      21 #endif
                                                                                      TimeString(String config_path="")
                                                                                      Definition: timestring.cpp:5
                                                                                      + -
                                                                                      virtual void set_input(time_t input, uint8_t inputChannel=0) override final
                                                                                      Definition: timestring.cpp:10
                                                                                      - - - -
                                                                                      virtual bool set_configuration(const JsonObject &config) override final
                                                                                      Definition: timestring.cpp:44
                                                                                      + -
                                                                                      String as_signalK() override final
                                                                                      Definition: timestring.cpp:17
                                                                                      -
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override final
                                                                                      Definition: timestring.cpp:27
                                                                                      const String config_path
                                                                                      Definition: configurable.h:29
                                                                                      -
                                                                                      virtual String get_config_schema() override
                                                                                      Definition: timestring.cpp:34
                                                                                      +
                                                                                      virtual void set_input(time_t input, uint8_t inputChannel=0) override
                                                                                      Definition: timestring.cpp:9
                                                                                      diff --git a/docs/transform_8cpp.html b/docs/transform_8cpp.html index f406890af..10577f06f 100644 --- a/docs/transform_8cpp.html +++ b/docs/transform_8cpp.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -99,26 +99,25 @@
                                                                                      - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + +
                                                                                      diff --git a/docs/transform_8cpp__incl.map b/docs/transform_8cpp__incl.map index e093a1a64..6b6521b36 100644 --- a/docs/transform_8cpp__incl.map +++ b/docs/transform_8cpp__incl.map @@ -1,22 +1,21 @@ - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + diff --git a/docs/transform_8cpp__incl.md5 b/docs/transform_8cpp__incl.md5 index 5c658ce0b..4e19e5415 100644 --- a/docs/transform_8cpp__incl.md5 +++ b/docs/transform_8cpp__incl.md5 @@ -1 +1 @@ -ed17b58cb799d411951c2585a3147b80 \ No newline at end of file +03c799c80b885b27a0b1019febb16bc7 \ No newline at end of file diff --git a/docs/transform_8cpp__incl.png b/docs/transform_8cpp__incl.png index 6d12e267d..46a40f19d 100644 Binary files a/docs/transform_8cpp__incl.png and b/docs/transform_8cpp__incl.png differ diff --git a/docs/transform_8cpp_source.html b/docs/transform_8cpp_source.html index 685c76075..e3fe39b87 100644 --- a/docs/transform_8cpp_source.html +++ b/docs/transform_8cpp_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -91,10 +91,9 @@
                                                                                      transform.cpp
                                                                                      -Go to the documentation of this file.
                                                                                      1 #include "transform.h"
                                                                                      2 
                                                                                      3 #include "ArduinoJson.h"
                                                                                      4 
                                                                                      5 #include "sensesp.h"
                                                                                      6 
                                                                                      7 // Transform
                                                                                      8 
                                                                                      9 std::set<TransformBase*> TransformBase::transforms;
                                                                                      10 
                                                                                      11 TransformBase::TransformBase(String sk_path, String config_path) :
                                                                                      13  transforms.insert(this);
                                                                                      14 }
                                                                                      +Go to the documentation of this file.
                                                                                      1 #include "transform.h"
                                                                                      2 
                                                                                      3 #include "ArduinoJson.h"
                                                                                      4 
                                                                                      5 #include "sensesp.h"
                                                                                      6 
                                                                                      7 // Transform
                                                                                      8 
                                                                                      9 std::set<TransformBase*> TransformBase::transforms;
                                                                                      10 
                                                                                      11 TransformBase::TransformBase(String config_path) :
                                                                                      13  transforms.insert(this);
                                                                                      14 }
                                                                                      15 
                                                                                      TransformBase(String config_path="")
                                                                                      Definition: transform.cpp:11
                                                                                      Definition: enable.h:15
                                                                                      -
                                                                                      TransformBase(String sk_path, String config_path="")
                                                                                      Definition: transform.cpp:11
                                                                                      const String config_path
                                                                                      Definition: configurable.h:29
                                                                                      diff --git a/docs/transform_8h.html b/docs/transform_8h.html index c3cf13c92..cb9ac4875 100644 --- a/docs/transform_8h.html +++ b/docs/transform_8h.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -99,34 +99,33 @@ #include <ArduinoJson.h>
                                                                                      #include "system/configurable.h"
                                                                                      #include "system/observable.h"
                                                                                      +#include "system/valueconsumer.h"
                                                                                      #include "system/valueproducer.h"
                                                                                      #include "system/enable.h"
                                                                                      -#include "system/signalksource.h"
                                                                                      #include "sensesp.h"
                                                                                      Include dependency graph for transform.h:
                                                                                      - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + +
                                                                                      @@ -134,34 +133,34 @@
                                                                                      - - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + +
                                                                                      @@ -171,103 +170,31 @@ Classes

                                                                                      class  TransformBase   -class  Transform< T > +class  Transform< C, P >   class  SymmetricTransform< T >   - - - - - - - - - - - - - - - - + + + + + + + +

                                                                                      Typedefs

                                                                                      typedef Transform< bool > BooleanTransform
                                                                                       
                                                                                      typedef Transform< float > NumericTransform
                                                                                       
                                                                                      typedef Transform< int > IntegerTransform
                                                                                       
                                                                                      typedef Transform< String > StringTransform
                                                                                       
                                                                                      typedef SymmetricTransform< float > SymmetricNumericTransform
                                                                                       
                                                                                      typedef SymmetricTransform< int > SymmetricIntegerTransform
                                                                                       
                                                                                      typedef SymmetricTransform< bool > SymmetricBooleanTransform
                                                                                       
                                                                                      typedef SymmetricTransform< String > SymmetricStringTransform
                                                                                       
                                                                                      typedef SymmetricTransform< float > NumericTransform
                                                                                       
                                                                                      typedef SymmetricTransform< int > IntegerTransform
                                                                                       
                                                                                      typedef SymmetricTransform< bool > BooleanTransform
                                                                                       
                                                                                      typedef SymmetricTransform< String > StringTransform
                                                                                       

                                                                                      Typedef Documentation

                                                                                      - -

                                                                                      ◆ BooleanTransform

                                                                                      + +

                                                                                      ◆ BooleanTransform

                                                                                      - - -
                                                                                      typedef Transform<bool> BooleanTransform
                                                                                      -
                                                                                      - -

                                                                                      Definition at line 61 of file transform.h.

                                                                                      - -
                                                                                      -
                                                                                      - -

                                                                                      ◆ IntegerTransform

                                                                                      - -
                                                                                      -
                                                                                      - - - - -
                                                                                      typedef Transform<int> IntegerTransform
                                                                                      -
                                                                                      - -

                                                                                      Definition at line 63 of file transform.h.

                                                                                      - -
                                                                                      -
                                                                                      - -

                                                                                      ◆ NumericTransform

                                                                                      - -
                                                                                      -
                                                                                      - - - - -
                                                                                      typedef Transform<float> NumericTransform
                                                                                      -
                                                                                      - -

                                                                                      Definition at line 62 of file transform.h.

                                                                                      - -
                                                                                      -
                                                                                      - -

                                                                                      ◆ StringTransform

                                                                                      - -
                                                                                      -
                                                                                      - - - - -
                                                                                      typedef Transform<String> StringTransform
                                                                                      -
                                                                                      - -

                                                                                      Definition at line 64 of file transform.h.

                                                                                      - -
                                                                                      -
                                                                                      - -

                                                                                      ◆ SymmetricBooleanTransform

                                                                                      - -
                                                                                      -
                                                                                      @@ -276,14 +203,14 @@

                                                                                      -

                                                                                      ◆ SymmetricIntegerTransform

                                                                                      + +

                                                                                      ◆ IntegerTransform

                                                                                      @@ -292,14 +219,14 @@

                                                                                      -

                                                                                      ◆ SymmetricNumericTransform

                                                                                      + +

                                                                                      ◆ NumericTransform

                                                                                      @@ -308,14 +235,14 @@

                                                                                      -

                                                                                      ◆ SymmetricStringTransform

                                                                                      + +

                                                                                      ◆ StringTransform

                                                                                      diff --git a/docs/transform_8h.js b/docs/transform_8h.js index 812ce647d..ca798d9e4 100644 --- a/docs/transform_8h.js +++ b/docs/transform_8h.js @@ -3,12 +3,8 @@ var transform_8h = [ "TransformBase", "class_transform_base.html", "class_transform_base" ], [ "Transform", "class_transform.html", "class_transform" ], [ "SymmetricTransform", "class_symmetric_transform.html", "class_symmetric_transform" ], - [ "BooleanTransform", "transform_8h.html#acbd22cace30bc4704b42c76e0d1b5baf", null ], - [ "IntegerTransform", "transform_8h.html#ae89d78453e476b19db8b903f80c90c5a", null ], - [ "NumericTransform", "transform_8h.html#a3be75a3cb354d5f1fe245410c4d92948", null ], - [ "StringTransform", "transform_8h.html#a9b6f203fb2d7cf6bb03ef36075e68f19", null ], - [ "SymmetricBooleanTransform", "transform_8h.html#a31aa97c726949c94bf788285a702cd23", null ], - [ "SymmetricIntegerTransform", "transform_8h.html#af9018e893038605790282f34ef1a9475", null ], - [ "SymmetricNumericTransform", "transform_8h.html#aacd7283062f2280bf82cc3eb48284f5b", null ], - [ "SymmetricStringTransform", "transform_8h.html#a13777cad82c84559093e2ecf1e2955f2", null ] + [ "BooleanTransform", "transform_8h.html#ac1617ff234bef4e8a50341c1d6943246", null ], + [ "IntegerTransform", "transform_8h.html#ae9c0b5d70ecdf35d4bd3a0a4bd4e0d17", null ], + [ "NumericTransform", "transform_8h.html#ac62af394caec478e4d32c254c96af25b", null ], + [ "StringTransform", "transform_8h.html#a463af5c6e30307ac67004d67dd014030", null ] ]; \ No newline at end of file diff --git a/docs/transform_8h__dep__incl.map b/docs/transform_8h__dep__incl.map index 6913c723b..1c6fd8bf6 100644 --- a/docs/transform_8h__dep__incl.map +++ b/docs/transform_8h__dep__incl.map @@ -1,30 +1,30 @@ - - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + + diff --git a/docs/transform_8h__dep__incl.md5 b/docs/transform_8h__dep__incl.md5 index 9a6890b1e..879e4df49 100644 --- a/docs/transform_8h__dep__incl.md5 +++ b/docs/transform_8h__dep__incl.md5 @@ -1 +1 @@ -58e36c59858207bf3eee30cc714b3b7c \ No newline at end of file +eedcb70478c45e6f8be31cc83dac590c \ No newline at end of file diff --git a/docs/transform_8h__dep__incl.png b/docs/transform_8h__dep__incl.png index 9635deb58..0f390eea5 100644 Binary files a/docs/transform_8h__dep__incl.png and b/docs/transform_8h__dep__incl.png differ diff --git a/docs/transform_8h__incl.map b/docs/transform_8h__incl.map index e00b6c0ac..341bef852 100644 --- a/docs/transform_8h__incl.map +++ b/docs/transform_8h__incl.map @@ -1,21 +1,20 @@ - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + diff --git a/docs/transform_8h__incl.md5 b/docs/transform_8h__incl.md5 index b9cdc6723..a1b4ee62a 100644 --- a/docs/transform_8h__incl.md5 +++ b/docs/transform_8h__incl.md5 @@ -1 +1 @@ -c2d2cb459c06de0d5e63397c8a48dfd3 \ No newline at end of file +dfb85a11ad393beaf0550cb74c4aa673 \ No newline at end of file diff --git a/docs/transform_8h__incl.png b/docs/transform_8h__incl.png index 555177ceb..7ea708784 100644 Binary files a/docs/transform_8h__incl.png and b/docs/transform_8h__incl.png differ diff --git a/docs/transform_8h_source.html b/docs/transform_8h_source.html index 2a1e430f3..4ff4e26ca 100644 --- a/docs/transform_8h_source.html +++ b/docs/transform_8h_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -91,35 +91,30 @@
                                                                                      transform.h
                                                                                      -Go to the documentation of this file.
                                                                                      1 #ifndef _transform_H_
                                                                                      2 #define _transform_H_
                                                                                      3 
                                                                                      4 #include <set>
                                                                                      5 
                                                                                      6 #include "Arduino.h"
                                                                                      7 #include <ArduinoJson.h>
                                                                                      8 
                                                                                      9 #include "system/configurable.h"
                                                                                      10 #include "system/observable.h"
                                                                                      11 #include "system/valueproducer.h"
                                                                                      12 #include "system/enable.h"
                                                                                      13 #include "system/signalksource.h"
                                                                                      14 #include "sensesp.h"
                                                                                      15 
                                                                                      16 
                                                                                      17 // TODO: Split into multiple files
                                                                                      18 
                                                                                      20 // Transforms transform raw device readouts into useful sensor values.
                                                                                      21 
                                                                                      29  public Configurable,
                                                                                      30  public Enable {
                                                                                      31  public:
                                                                                      32  TransformBase(String sk_path, String config_path="");
                                                                                      33 
                                                                                      34 
                                                                                      35  // Primary purpose of this was to supply SignalK sources
                                                                                      36  // (now handled by SignalKSource::get_sources). Should
                                                                                      37  // this be deprecated?
                                                                                      38  static const std::set<TransformBase*>& get_transforms() {
                                                                                      39  return transforms;
                                                                                      40  }
                                                                                      41 
                                                                                      42  private:
                                                                                      43  static std::set<TransformBase*> transforms;
                                                                                      44 };
                                                                                      45 
                                                                                      46 
                                                                                      52 template <typename T>
                                                                                      53 class Transform : public TransformBase, public ValueProducer<T> {
                                                                                      54  public:
                                                                                      55  Transform(String sk_path, String config_path="") :
                                                                                      57  }
                                                                                      58 };
                                                                                      59 
                                                                                      60 
                                                                                      65 
                                                                                      66 
                                                                                      71 template <typename T>
                                                                                      72 class SymmetricTransform : public ValueConsumer<T>, public Transform<T> {
                                                                                      73 
                                                                                      74  public:
                                                                                      75  SymmetricTransform(String sk_path, String config_path="") :
                                                                                      76  ValueConsumer<T>(),
                                                                                      78  }
                                                                                      79 
                                                                                      90  ValueProducer<T>* pProducer1 = NULL,
                                                                                      91  ValueProducer<T>* pProducer2 = NULL,
                                                                                      92  ValueProducer<T>* pProducer3 = NULL,
                                                                                      93  ValueProducer<T>* pProducer4 = NULL) {
                                                                                      94 
                                                                                      95  this->connectFrom(pProducer0, 0);
                                                                                      96  if (pProducer1 != NULL) {
                                                                                      97  this->connectFrom(pProducer1, 1);
                                                                                      98  }
                                                                                      99  if (pProducer2 != NULL) {
                                                                                      100  this->connectFrom(pProducer2, 2);
                                                                                      101  }
                                                                                      102  if (pProducer3 != NULL) {
                                                                                      103  this->connectFrom(pProducer3, 3);
                                                                                      104  }
                                                                                      105  if (pProducer4 != NULL) {
                                                                                      106  this->connectFrom(pProducer4, 4);
                                                                                      107  }
                                                                                      108  return this;
                                                                                      109  }
                                                                                      110 };
                                                                                      111 
                                                                                      116 
                                                                                      117 #endif
                                                                                      SymmetricTransform(String sk_path, String config_path="")
                                                                                      Definition: transform.h:75
                                                                                      -
                                                                                      Transform< bool > BooleanTransform
                                                                                      Definition: transform.h:61
                                                                                      +Go to the documentation of this file.
                                                                                      1 #ifndef _transform_H_
                                                                                      2 #define _transform_H_
                                                                                      3 
                                                                                      4 #include <set>
                                                                                      5 
                                                                                      6 #include "Arduino.h"
                                                                                      7 #include <ArduinoJson.h>
                                                                                      8 
                                                                                      9 #include "system/configurable.h"
                                                                                      10 #include "system/observable.h"
                                                                                      11 #include "system/valueconsumer.h"
                                                                                      12 #include "system/valueproducer.h"
                                                                                      13 #include "system/enable.h"
                                                                                      14 #include "sensesp.h"
                                                                                      15 
                                                                                      16 
                                                                                      17 // TODO: Split into multiple files
                                                                                      18 
                                                                                      20 // Transforms transform raw device readouts into useful sensor values.
                                                                                      21 
                                                                                      28 class TransformBase : public Configurable,
                                                                                      29  public Enable {
                                                                                      30  public:
                                                                                      31  TransformBase(String config_path="");
                                                                                      32 
                                                                                      33 
                                                                                      34  // Primary purpose of this was to supply SignalK sources
                                                                                      35  // (now handled by SKEmitter::get_sources). Should
                                                                                      36  // this be deprecated?
                                                                                      37  static const std::set<TransformBase*>& get_transforms() {
                                                                                      38  return transforms;
                                                                                      39  }
                                                                                      40 
                                                                                      41  private:
                                                                                      42  static std::set<TransformBase*> transforms;
                                                                                      43 };
                                                                                      44 
                                                                                      45 
                                                                                      51 template <typename C, typename P>
                                                                                      52 class Transform : public TransformBase,
                                                                                      53  public ValueConsumer<C>,
                                                                                      54  public ValueProducer<P> {
                                                                                      55  public:
                                                                                      56  Transform(String config_path="") :
                                                                                      58  ValueConsumer<C>(),
                                                                                      59  ValueProducer<P>() {
                                                                                      60  }
                                                                                      61 
                                                                                      62 
                                                                                      73  ValueProducer<P>* pProducer1 = NULL,
                                                                                      74  ValueProducer<P>* pProducer2 = NULL,
                                                                                      75  ValueProducer<P>* pProducer3 = NULL,
                                                                                      76  ValueProducer<P>* pProducer4 = NULL) {
                                                                                      77 
                                                                                      78  this->ValueConsumer<C>::connectFrom(pProducer0);
                                                                                      79  if (pProducer1 != NULL) {
                                                                                      80  this->ValueConsumer<C>::connectFrom(pProducer1, 1);
                                                                                      81  }
                                                                                      82  if (pProducer2 != NULL) {
                                                                                      83  this->ValueConsumer<C>::connectFrom(pProducer2, 2);
                                                                                      84  }
                                                                                      85  if (pProducer3 != NULL) {
                                                                                      86  this->ValueConsumer<C>::connectFrom(pProducer3, 3);
                                                                                      87  }
                                                                                      88  if (pProducer4 != NULL) {
                                                                                      89  this->ValueConsumer<C>::connectFrom(pProducer4, 4);
                                                                                      90  }
                                                                                      91  return this;
                                                                                      92  }
                                                                                      93 
                                                                                      94 };
                                                                                      95 
                                                                                      96 
                                                                                      97 
                                                                                      102 template <typename T>
                                                                                      103 class SymmetricTransform : public Transform<T, T> {
                                                                                      104 
                                                                                      105  public:
                                                                                      107  Transform<T, T>(config_path) {
                                                                                      108  }
                                                                                      109 
                                                                                      110 };
                                                                                      111 
                                                                                      116 
                                                                                      117 #endif
                                                                                      void connectFrom(ValueProducer< T > *pProducer, uint8_t inputChannel=0)
                                                                                      Definition: valueconsumer.h:39
                                                                                      +
                                                                                      Transform(String config_path="")
                                                                                      Definition: transform.h:56
                                                                                      -
                                                                                      SymmetricTransform< float > SymmetricNumericTransform
                                                                                      Definition: transform.h:112
                                                                                      - + -
                                                                                      SymmetricTransform< String > SymmetricStringTransform
                                                                                      Definition: transform.h:115
                                                                                      -
                                                                                      Transform< float > NumericTransform
                                                                                      Definition: transform.h:62
                                                                                      -
                                                                                      SymmetricTransform< bool > SymmetricBooleanTransform
                                                                                      Definition: transform.h:114
                                                                                      -
                                                                                      static const std::set< TransformBase * > & get_transforms()
                                                                                      Definition: transform.h:38
                                                                                      - +
                                                                                      SymmetricTransform< float > NumericTransform
                                                                                      Definition: transform.h:112
                                                                                      +
                                                                                      static const std::set< TransformBase * > & get_transforms()
                                                                                      Definition: transform.h:37
                                                                                      +
                                                                                      SymmetricTransform< int > IntegerTransform
                                                                                      Definition: transform.h:113
                                                                                      + +
                                                                                      SymmetricTransform< String > StringTransform
                                                                                      Definition: transform.h:115
                                                                                      +
                                                                                      TransformBase(String config_path="")
                                                                                      Definition: transform.cpp:11
                                                                                      +
                                                                                      Transform< C, P > * connectFrom(ValueProducer< P > *pProducer0, ValueProducer< P > *pProducer1=NULL, ValueProducer< P > *pProducer2=NULL, ValueProducer< P > *pProducer3=NULL, ValueProducer< P > *pProducer4=NULL)
                                                                                      Definition: transform.h:72
                                                                                      -
                                                                                      Definition: enable.h:15
                                                                                      -
                                                                                      Transform< String > StringTransform
                                                                                      Definition: transform.h:64
                                                                                      - -
                                                                                      Transform< int > IntegerTransform
                                                                                      Definition: transform.h:63
                                                                                      -
                                                                                      TransformBase(String sk_path, String config_path="")
                                                                                      Definition: transform.cpp:11
                                                                                      +
                                                                                      const String config_path
                                                                                      Definition: configurable.h:29
                                                                                      -
                                                                                      SymmetricTransform< int > SymmetricIntegerTransform
                                                                                      Definition: transform.h:113
                                                                                      +
                                                                                      SymmetricTransform(String config_path="")
                                                                                      Definition: transform.h:106
                                                                                      +
                                                                                      SymmetricTransform< bool > BooleanTransform
                                                                                      Definition: transform.h:114
                                                                                      -
                                                                                      Transform(String sk_path, String config_path="")
                                                                                      Definition: transform.h:55
                                                                                      -
                                                                                      SymmetricTransform< T > * connectFrom(ValueProducer< T > *pProducer0, ValueProducer< T > *pProducer1=NULL, ValueProducer< T > *pProducer2=NULL, ValueProducer< T > *pProducer3=NULL, ValueProducer< T > *pProducer4=NULL)
                                                                                      Definition: transform.h:89
                                                                                      -
                                                                                      diff --git a/docs/valueconsumer_8h.html b/docs/valueconsumer_8h.html index a44c0d32e..08adf7a83 100644 --- a/docs/valueconsumer_8h.html +++ b/docs/valueconsumer_8h.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -111,56 +111,56 @@
                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

                                                                                      diff --git a/docs/valueconsumer_8h__dep__incl.map b/docs/valueconsumer_8h__dep__incl.map index e133cce60..7c9325e52 100644 --- a/docs/valueconsumer_8h__dep__incl.map +++ b/docs/valueconsumer_8h__dep__incl.map @@ -1,52 +1,52 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/valueconsumer_8h__dep__incl.md5 b/docs/valueconsumer_8h__dep__incl.md5 index 20de639e0..4f153e65f 100644 --- a/docs/valueconsumer_8h__dep__incl.md5 +++ b/docs/valueconsumer_8h__dep__incl.md5 @@ -1 +1 @@ -03edaece79cfd2a7c4f016d47800bc6a \ No newline at end of file +8c53d3fe8f55db6416a22313a95d50af \ No newline at end of file diff --git a/docs/valueconsumer_8h__dep__incl.png b/docs/valueconsumer_8h__dep__incl.png index 02a1cc6f1..cdbee4545 100644 Binary files a/docs/valueconsumer_8h__dep__incl.png and b/docs/valueconsumer_8h__dep__incl.png differ diff --git a/docs/valueconsumer_8h_source.html b/docs/valueconsumer_8h_source.html index c5d3f352c..eac26a327 100644 --- a/docs/valueconsumer_8h_source.html +++ b/docs/valueconsumer_8h_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -93,7 +93,7 @@
                                                                                      Go to the documentation of this file.
                                                                                      1 #ifndef _value_consumer_H_
                                                                                      2 #define _value_consumer_H_
                                                                                      3 
                                                                                      4 #include <stdint.h>
                                                                                      5 #include <ArduinoJson.h>
                                                                                      6 
                                                                                      7 template <typename T> class ValueProducer;
                                                                                      8 
                                                                                      16 template <typename T>
                                                                                      18 
                                                                                      19  public:
                                                                                      28  virtual void set_input(T newValue, uint8_t inputChannel = 0) {
                                                                                      29  }
                                                                                      30 
                                                                                      39  void connectFrom(ValueProducer<T>* pProducer, uint8_t inputChannel = 0) {
                                                                                      40  pProducer->attach([pProducer, this, inputChannel](){
                                                                                      41  this->set_input(pProducer->get(), inputChannel);
                                                                                      42  });
                                                                                      43  }
                                                                                      44 
                                                                                      45 };
                                                                                      46 
                                                                                      47 
                                                                                      52 
                                                                                      53 #endif
                                                                                      void connectFrom(ValueProducer< T > *pProducer, uint8_t inputChannel=0)
                                                                                      Definition: valueconsumer.h:39
                                                                                      ValueConsumer< String > StringConsumer
                                                                                      Definition: valueconsumer.h:51
                                                                                      -
                                                                                      virtual const T & get()
                                                                                      Definition: valueproducer.h:27
                                                                                      +
                                                                                      virtual const T & get()
                                                                                      Definition: valueproducer.h:29
                                                                                      ValueConsumer< int > IntegerConsumer
                                                                                      Definition: valueconsumer.h:49
                                                                                      virtual void set_input(T newValue, uint8_t inputChannel=0)
                                                                                      Definition: valueconsumer.h:28
                                                                                      diff --git a/docs/valueproducer_8h.html b/docs/valueproducer_8h.html index 7b2bf0523..31daa959f 100644 --- a/docs/valueproducer_8h.html +++ b/docs/valueproducer_8h.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -117,56 +117,56 @@
                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                      @@ -174,7 +174,7 @@ - + @@ -203,7 +203,7 @@

                                                                                      -

                                                                                      Definition at line 69 of file valueproducer.h.

                                                                                      +

                                                                                      Definition at line 80 of file valueproducer.h.

                                                                                      @@ -219,7 +219,7 @@

                                                                                      -

                                                                                      Definition at line 68 of file valueproducer.h.

                                                                                      +

                                                                                      Definition at line 79 of file valueproducer.h.

                                                                                      @@ -235,7 +235,7 @@

                                                                                      -

                                                                                      Definition at line 67 of file valueproducer.h.

                                                                                      +

                                                                                      Definition at line 78 of file valueproducer.h.

                                                                                      @@ -251,7 +251,7 @@

                                                                                      -

                                                                                      Definition at line 70 of file valueproducer.h.

                                                                                      +

                                                                                      Definition at line 81 of file valueproducer.h.

                                                                                      diff --git a/docs/valueproducer_8h.js b/docs/valueproducer_8h.js index 4b16445d7..91c1be545 100644 --- a/docs/valueproducer_8h.js +++ b/docs/valueproducer_8h.js @@ -1,6 +1,6 @@ var valueproducer_8h = [ - [ "SymmetricTransform", "class_symmetric_transform.html", "class_symmetric_transform" ], + [ "Transform", "class_transform.html", "class_transform" ], [ "ValueProducer", "class_value_producer.html", "class_value_producer" ], [ "BooleanProducer", "valueproducer_8h.html#a79edc4b65652f6948d690891bb6d7e0c", null ], [ "IntegerProducer", "valueproducer_8h.html#ab74ca4be7de22a21f73128ea38a4cbbb", null ], diff --git a/docs/valueproducer_8h__dep__incl.map b/docs/valueproducer_8h__dep__incl.map index e08c1b132..95cc1e58b 100644 --- a/docs/valueproducer_8h__dep__incl.map +++ b/docs/valueproducer_8h__dep__incl.map @@ -1,52 +1,52 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/valueproducer_8h__dep__incl.md5 b/docs/valueproducer_8h__dep__incl.md5 index d9a020624..b3c8c1735 100644 --- a/docs/valueproducer_8h__dep__incl.md5 +++ b/docs/valueproducer_8h__dep__incl.md5 @@ -1 +1 @@ -dd915fda59cd5563a9a900110489d6da \ No newline at end of file +cde40fcd5c46535db0e224bd8549376c \ No newline at end of file diff --git a/docs/valueproducer_8h__dep__incl.png b/docs/valueproducer_8h__dep__incl.png index 35d569ac0..58ea68794 100644 Binary files a/docs/valueproducer_8h__dep__incl.png and b/docs/valueproducer_8h__dep__incl.png differ diff --git a/docs/valueproducer_8h_source.html b/docs/valueproducer_8h_source.html index f217ccd06..765e3ca58 100644 --- a/docs/valueproducer_8h_source.html +++ b/docs/valueproducer_8h_source.html @@ -30,7 +30,7 @@

                                                                                      @@ -91,23 +91,23 @@
                                                                                      valueproducer.h
                                                                                      -Go to the documentation of this file.
                                                                                      1 #ifndef _value_producer_H_
                                                                                      2 #define _value_producer_H_
                                                                                      3 
                                                                                      4 #include "observable.h"
                                                                                      5 #include <ArduinoJson.h>
                                                                                      6 #include "valueconsumer.h"
                                                                                      7 
                                                                                      8 // SymmetricTransform is defined in transforms/transform.h
                                                                                      9 template <typename T> class SymmetricTransform;
                                                                                      10 
                                                                                      17 template <typename T>
                                                                                      18 class ValueProducer : virtual public Observable {
                                                                                      19 
                                                                                      20  public:
                                                                                      22 
                                                                                      23 
                                                                                      27  virtual const T& get() { return output; }
                                                                                      28 
                                                                                      29 
                                                                                      39  void connectTo(ValueConsumer<T>* pConsumer, uint8_t inputChannel = 0) {
                                                                                      40  this->attach([this, pConsumer, inputChannel](){
                                                                                      41  pConsumer->set_input(this->get(), inputChannel);
                                                                                      42  });
                                                                                      43  }
                                                                                      44 
                                                                                      45 
                                                                                      52  SymmetricTransform<T>* connectTo(SymmetricTransform<T>* pProducerConsumer, uint8_t inputChannel = 0) {
                                                                                      53  this->attach([this, pProducerConsumer, inputChannel](){
                                                                                      54  pProducerConsumer->set_input(this->get(), inputChannel);
                                                                                      55  });
                                                                                      56  return pProducerConsumer;
                                                                                      57  }
                                                                                      58 
                                                                                      59  protected:
                                                                                      64  T output;
                                                                                      65 };
                                                                                      66 
                                                                                      71 
                                                                                      72 #endif
                                                                                      -
                                                                                      ValueProducer< bool > BooleanProducer
                                                                                      Definition: valueproducer.h:69
                                                                                      +Go to the documentation of this file.
                                                                                      1 #ifndef _value_producer_H_
                                                                                      2 #define _value_producer_H_
                                                                                      3 
                                                                                      4 #include "observable.h"
                                                                                      5 #include <ArduinoJson.h>
                                                                                      6 #include "valueconsumer.h"
                                                                                      7 
                                                                                      8 
                                                                                      9 // The Transform class is defined in transforms/transform.h
                                                                                      10 template <typename C, typename P> class Transform;
                                                                                      11 
                                                                                      12 
                                                                                      19 template <typename T>
                                                                                      20 class ValueProducer : virtual public Observable {
                                                                                      21 
                                                                                      22  public:
                                                                                      24 
                                                                                      25 
                                                                                      29  virtual const T& get() { return output; }
                                                                                      30 
                                                                                      31 
                                                                                      32 
                                                                                      42  void connectTo(ValueConsumer<T>* pConsumer, uint8_t inputChannel = 0) {
                                                                                      43  this->attach([this, pConsumer, inputChannel](){
                                                                                      44  pConsumer->set_input(this->get(), inputChannel);
                                                                                      45  });
                                                                                      46  }
                                                                                      47 
                                                                                      48 
                                                                                      49 
                                                                                      61  template <typename T2>
                                                                                      62  Transform<T, T2>* connectTo(Transform<T, T2>* pConsumerProducer, uint8_t inputChannel = 0) {
                                                                                      63  this->attach([this, pConsumerProducer, inputChannel](){
                                                                                      64  pConsumerProducer->set_input(this->get(), inputChannel);
                                                                                      65  });
                                                                                      66  return pConsumerProducer;
                                                                                      67  }
                                                                                      68 
                                                                                      69  protected:
                                                                                      74  T output;
                                                                                      75 };
                                                                                      76 
                                                                                      77 
                                                                                      82 
                                                                                      83 #endif
                                                                                      +
                                                                                      ValueProducer< bool > BooleanProducer
                                                                                      Definition: valueproducer.h:80
                                                                                      -
                                                                                      virtual const T & get()
                                                                                      Definition: valueproducer.h:27
                                                                                      +
                                                                                      virtual const T & get()
                                                                                      Definition: valueproducer.h:29
                                                                                      -
                                                                                      ValueProducer< String > StringProducer
                                                                                      Definition: valueproducer.h:70
                                                                                      +
                                                                                      ValueProducer< String > StringProducer
                                                                                      Definition: valueproducer.h:81
                                                                                      virtual void set_input(T newValue, uint8_t inputChannel=0)
                                                                                      Definition: valueconsumer.h:28
                                                                                      + -
                                                                                      SymmetricTransform< T > * connectTo(SymmetricTransform< T > *pProducerConsumer, uint8_t inputChannel=0)
                                                                                      Definition: valueproducer.h:52
                                                                                      void attach(std::function< void()> observer)
                                                                                      Definition: observable.cpp:9
                                                                                      - - - -
                                                                                      void connectTo(ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)
                                                                                      Definition: valueproducer.h:39
                                                                                      -
                                                                                      ValueProducer< int > IntegerProducer
                                                                                      Definition: valueproducer.h:68
                                                                                      -
                                                                                      ValueProducer< float > NumericProducer
                                                                                      Definition: valueproducer.h:67
                                                                                      +
                                                                                      Transform< T, T2 > * connectTo(Transform< T, T2 > *pConsumerProducer, uint8_t inputChannel=0)
                                                                                      Definition: valueproducer.h:62
                                                                                      + + +
                                                                                      void connectTo(ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)
                                                                                      Definition: valueproducer.h:42
                                                                                      +
                                                                                      ValueProducer< int > IntegerProducer
                                                                                      Definition: valueproducer.h:79
                                                                                      +
                                                                                      ValueProducer< float > NumericProducer
                                                                                      Definition: valueproducer.h:78
                                                                                      diff --git a/docs/voltagedivider_r2_8cpp.html b/docs/voltagedivider_r2_8cpp.html index 4d4f73f6b..eaeec8a91 100644 --- a/docs/voltagedivider_r2_8cpp.html +++ b/docs/voltagedivider_r2_8cpp.html @@ -30,7 +30,7 @@ @@ -97,27 +97,26 @@
                                                                                      - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + +
                                                                                      diff --git a/docs/voltagedivider_r2_8cpp__incl.map b/docs/voltagedivider_r2_8cpp__incl.map index 91560f57a..c59dab39e 100644 --- a/docs/voltagedivider_r2_8cpp__incl.map +++ b/docs/voltagedivider_r2_8cpp__incl.map @@ -1,23 +1,22 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + diff --git a/docs/voltagedivider_r2_8cpp__incl.md5 b/docs/voltagedivider_r2_8cpp__incl.md5 index b594d8b8f..53ec243fc 100644 --- a/docs/voltagedivider_r2_8cpp__incl.md5 +++ b/docs/voltagedivider_r2_8cpp__incl.md5 @@ -1 +1 @@ -0e195f24e83f302297f1d895a8afa846 \ No newline at end of file +410d2a76abf5e9017bef1699540cfb2c \ No newline at end of file diff --git a/docs/voltagedivider_r2_8cpp__incl.png b/docs/voltagedivider_r2_8cpp__incl.png index 108434cf9..b381769d3 100644 Binary files a/docs/voltagedivider_r2_8cpp__incl.png and b/docs/voltagedivider_r2_8cpp__incl.png differ diff --git a/docs/voltagedivider_r2_8cpp_source.html b/docs/voltagedivider_r2_8cpp_source.html index 5dc457e1e..2713464fd 100644 --- a/docs/voltagedivider_r2_8cpp_source.html +++ b/docs/voltagedivider_r2_8cpp_source.html @@ -30,7 +30,7 @@ @@ -91,19 +91,18 @@
                                                                                      voltagedividerR2.cpp
                                                                                      -Go to the documentation of this file.
                                                                                      1 #include "voltagedividerR2.h"
                                                                                      2 
                                                                                      3 VoltageDividerR2::VoltageDividerR2(float R1, float Vin, String sk_path, String config_path) :
                                                                                      4  SymmetricTransform<float>(sk_path, config_path ), R1{R1}, Vin{Vin} {
                                                                                      5 }
                                                                                      6 
                                                                                      7 void VoltageDividerR2::set_input(float Vout, uint8_t ignored) {
                                                                                      8  output = (Vout * R1) / (Vin - Vout);
                                                                                      9  notify();
                                                                                      10 }
                                                                                      11 
                                                                                      13  DynamicJsonBuffer jsonBuffer;
                                                                                      14  String json;
                                                                                      15  JsonObject& root = jsonBuffer.createObject();
                                                                                      16  root.set("path", this->sk_path);
                                                                                      17  root.set("value", output);
                                                                                      18  root.printTo(json);
                                                                                      19  return json;
                                                                                      20 }
                                                                                      21 
                                                                                      22 
                                                                                      23 JsonObject& VoltageDividerR2::get_configuration(JsonBuffer& buf) {
                                                                                      24  JsonObject& root = buf.createObject();
                                                                                      25  root["sk_path"] = sk_path;
                                                                                      26  root["Vin"] = Vin;
                                                                                      27  root["R1"] = R1;
                                                                                      28  return root;
                                                                                      29 }
                                                                                      30 
                                                                                      31 
                                                                                      33  return R"({
                                                                                      34  "type": "object",
                                                                                      35  "properties": {
                                                                                      36  "sk_path": { "title": "SignalK Path", "type": "string" },
                                                                                      37  "Vin": { "title": "Voltage in", "type": "number" },
                                                                                      38  "R1": { "title": "Resistance (ohms) of R1", "type": "number" }
                                                                                      39  }
                                                                                      40  })";
                                                                                      41 }
                                                                                      42 
                                                                                      43 
                                                                                      44 bool VoltageDividerR2::set_configuration(const JsonObject& config) {
                                                                                      45 
                                                                                      46  String expected[] = { "sk_path", "Vin", "R1" };
                                                                                      47  for (auto str : expected) {
                                                                                      48  if (!config.containsKey(str)) {
                                                                                      49  debugE("Can not set VoltageDividerR2: configuration: missing json field %s\n", str.c_str());
                                                                                      50  return false;
                                                                                      51  }
                                                                                      52  }
                                                                                      53 
                                                                                      54  sk_path = config["sk_path"].as<String>();
                                                                                      55  Vin = config["Vin"];
                                                                                      56  R1 = config["R1"];
                                                                                      57 
                                                                                      58  return true;
                                                                                      59 
                                                                                      60 }
                                                                                      void notify()
                                                                                      Definition: observable.cpp:3
                                                                                      -
                                                                                      String as_signalK() override
                                                                                      - +Go to the documentation of this file.
                                                                                      1 #include "voltagedividerR2.h"
                                                                                      2 
                                                                                      3 VoltageDividerR2::VoltageDividerR2(float R1, float Vin, String config_path) :
                                                                                      4  SymmetricTransform<float>(config_path ), R1{R1}, Vin{Vin} {
                                                                                      5 }
                                                                                      6 
                                                                                      7 void VoltageDividerR2::set_input(float Vout, uint8_t ignored) {
                                                                                      8  output = (Vout * R1) / (Vin - Vout);
                                                                                      9  notify();
                                                                                      10 }
                                                                                      11 
                                                                                      12 
                                                                                      13 JsonObject& VoltageDividerR2::get_configuration(JsonBuffer& buf) {
                                                                                      14  JsonObject& root = buf.createObject();
                                                                                      15  root["Vin"] = Vin;
                                                                                      16  root["R1"] = R1;
                                                                                      17  return root;
                                                                                      18 }
                                                                                      19 
                                                                                      20 static const char SCHEMA[] PROGMEM = R"({
                                                                                      21  "type": "object",
                                                                                      22  "properties": {
                                                                                      23  "Vin": { "title": "Voltage in", "type": "number" },
                                                                                      24  "R1": { "title": "Resistance (ohms) of R1", "type": "number" }
                                                                                      25  }
                                                                                      26  })";
                                                                                      27 
                                                                                      29  return FPSTR(SCHEMA);
                                                                                      30 }
                                                                                      31 
                                                                                      32 bool VoltageDividerR2::set_configuration(const JsonObject& config) {
                                                                                      33 
                                                                                      34  String expected[] = { "Vin", "R1" };
                                                                                      35  for (auto str : expected) {
                                                                                      36  if (!config.containsKey(str)) {
                                                                                      37  debugE("Can not set VoltageDividerR2: configuration: missing json field %s\n", str.c_str());
                                                                                      38  return false;
                                                                                      39  }
                                                                                      40  }
                                                                                      41 
                                                                                      42  Vin = config["Vin"];
                                                                                      43  R1 = config["R1"];
                                                                                      44 
                                                                                      45  return true;
                                                                                      46 
                                                                                      47 }
                                                                                      void notify()
                                                                                      Definition: observable.cpp:3
                                                                                      +
                                                                                      VoltageDividerR2(float R1, float Vin=3.3, String config_path="")
                                                                                      -
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override
                                                                                      - -
                                                                                      virtual bool set_configuration(const JsonObject &config) override
                                                                                      -
                                                                                      VoltageDividerR2(float R1, float Vin=3.3, String sk_path="", String config_path="")
                                                                                      +
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override
                                                                                      + +
                                                                                      virtual bool set_configuration(const JsonObject &config) override
                                                                                      virtual void set_input(float Vout, uint8_t ignored=0) override
                                                                                      -
                                                                                      virtual String get_config_schema() override
                                                                                      - - - +
                                                                                      virtual String get_config_schema() override
                                                                                      + + + +
                                                                                      const char PAGE_index [] PROGMEM
                                                                                      Definition: index.h:2
                                                                                      diff --git a/docs/voltagedivider_r2_8h.html b/docs/voltagedivider_r2_8h.html index c135dc992..9ebd4ea7c 100644 --- a/docs/voltagedivider_r2_8h.html +++ b/docs/voltagedivider_r2_8h.html @@ -30,7 +30,7 @@ @@ -99,26 +99,25 @@
                                                                                      - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + +
                                                                                      diff --git a/docs/voltagedivider_r2_8h__dep__incl.md5 b/docs/voltagedivider_r2_8h__dep__incl.md5 index 09748e968..2de1e3bd5 100644 --- a/docs/voltagedivider_r2_8h__dep__incl.md5 +++ b/docs/voltagedivider_r2_8h__dep__incl.md5 @@ -1 +1 @@ -c59b6237b810413b96fb634f2e13699c \ No newline at end of file +82bbfa391a8c73262d2f191fd553f899 \ No newline at end of file diff --git a/docs/voltagedivider_r2_8h__incl.map b/docs/voltagedivider_r2_8h__incl.map index 0913c7279..754fb3b02 100644 --- a/docs/voltagedivider_r2_8h__incl.map +++ b/docs/voltagedivider_r2_8h__incl.map @@ -1,22 +1,21 @@ - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + diff --git a/docs/voltagedivider_r2_8h__incl.md5 b/docs/voltagedivider_r2_8h__incl.md5 index f5d0f3fac..39c6f5e07 100644 --- a/docs/voltagedivider_r2_8h__incl.md5 +++ b/docs/voltagedivider_r2_8h__incl.md5 @@ -1 +1 @@ -2facf29776b4c67a5dbc6f45bffe6588 \ No newline at end of file +fbcd33900d15f0c858f427a8676e1523 \ No newline at end of file diff --git a/docs/voltagedivider_r2_8h__incl.png b/docs/voltagedivider_r2_8h__incl.png index 19cea692b..1d98bbba9 100644 Binary files a/docs/voltagedivider_r2_8h__incl.png and b/docs/voltagedivider_r2_8h__incl.png differ diff --git a/docs/voltagedivider_r2_8h_source.html b/docs/voltagedivider_r2_8h_source.html index b31ac692c..5d1e1f595 100644 --- a/docs/voltagedivider_r2_8h_source.html +++ b/docs/voltagedivider_r2_8h_source.html @@ -30,7 +30,7 @@
                                                                                      @@ -91,19 +91,17 @@
                                                                                      voltagedividerR2.h
                                                                                      -Go to the documentation of this file.
                                                                                      1 #ifndef _voltage_divider_H
                                                                                      2 #define _voltage_divider_H
                                                                                      3 
                                                                                      4 #include "transforms/transform.h"
                                                                                      5 
                                                                                      6 
                                                                                      17 class VoltageDividerR2 : public SymmetricTransform<float> {
                                                                                      18 
                                                                                      19  public:
                                                                                      20  VoltageDividerR2(float R1, float Vin = 3.3, String sk_path="", String config_path="");
                                                                                      21 
                                                                                      22  virtual void set_input(float Vout, uint8_t ignored = 0) override;
                                                                                      23 
                                                                                      24  // For outputting the results as SignalK
                                                                                      25  String as_signalK() override;
                                                                                      26 
                                                                                      27  // For reading and writing the configuration of this transformation
                                                                                      28  virtual JsonObject& get_configuration(JsonBuffer& buf) override;
                                                                                      29  virtual bool set_configuration(const JsonObject& config) override;
                                                                                      30  virtual String get_config_schema() override;
                                                                                      31 
                                                                                      32  protected:
                                                                                      33  float R1;
                                                                                      34  float Vin;
                                                                                      35 
                                                                                      36 };
                                                                                      37 
                                                                                      38 #endif
                                                                                      -
                                                                                      String as_signalK() override
                                                                                      - -
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override
                                                                                      +Go to the documentation of this file.
                                                                                      1 #ifndef _voltage_divider_H
                                                                                      2 #define _voltage_divider_H
                                                                                      3 
                                                                                      4 #include "transforms/transform.h"
                                                                                      5 
                                                                                      6 
                                                                                      17 class VoltageDividerR2 : public SymmetricTransform<float> {
                                                                                      18 
                                                                                      19  public:
                                                                                      20  VoltageDividerR2(float R1, float Vin = 3.3, String config_path="");
                                                                                      21 
                                                                                      22  virtual void set_input(float Vout, uint8_t ignored = 0) override;
                                                                                      23 
                                                                                      24  // For reading and writing the configuration of this transformation
                                                                                      25  virtual JsonObject& get_configuration(JsonBuffer& buf) override;
                                                                                      26  virtual bool set_configuration(const JsonObject& config) override;
                                                                                      27  virtual String get_config_schema() override;
                                                                                      28 
                                                                                      29  protected:
                                                                                      30  float R1;
                                                                                      31  float Vin;
                                                                                      32 
                                                                                      33 };
                                                                                      34 
                                                                                      35 #endif
                                                                                      +
                                                                                      VoltageDividerR2(float R1, float Vin=3.3, String config_path="")
                                                                                      +
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override
                                                                                      - -
                                                                                      virtual bool set_configuration(const JsonObject &config) override
                                                                                      + +
                                                                                      virtual bool set_configuration(const JsonObject &config) override
                                                                                      const String config_path
                                                                                      Definition: configurable.h:29
                                                                                      -
                                                                                      VoltageDividerR2(float R1, float Vin=3.3, String sk_path="", String config_path="")
                                                                                      virtual void set_input(float Vout, uint8_t ignored=0) override
                                                                                      -
                                                                                      virtual String get_config_schema() override
                                                                                      - - +
                                                                                      virtual String get_config_schema() override
                                                                                      + +
                                                                                      diff --git a/docs/wiring__helpers_8cpp.html b/docs/wiring__helpers_8cpp.html index f113a80ba..2809857ae 100644 --- a/docs/wiring__helpers_8cpp.html +++ b/docs/wiring__helpers_8cpp.html @@ -30,7 +30,7 @@ @@ -100,67 +100,68 @@ #include "devices/gps.h"
                                                                                      #include "transforms/difference.h"
                                                                                      #include "transforms/frequency.h"
                                                                                      -#include "transforms/gnss_position.h"
                                                                                      +#include "signalk/signalk_output.h"
                                                                                      +#include "signalk/signalk_position.h"
                                                                                      +#include "signalk/signalk_time.h"
                                                                                      #include "transforms/integrator.h"
                                                                                      #include "transforms/linear.h"
                                                                                      #include "transforms/moving_average.h"
                                                                                      -#include "transforms/timestring.h"
                                                                                      #include "transforms/transform.h"
                                                                                      -#include "transforms/passthrough.h"
                                                                                      Include dependency graph for wiring_helpers.cpp:
                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                                                                                      @@ -168,22 +169,20 @@

                                                                                      Classes

                                                                                      class  SymmetricTransform< T >
                                                                                      class  Transform< C, P >
                                                                                       
                                                                                      class  ValueProducer< T >
                                                                                       
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      - - - - - - - - + + + + + +

                                                                                      Functions

                                                                                      void setup_analog_input (SensESPApp *seapp, String sk_path, float k, float c, String config_path)
                                                                                       
                                                                                      void setup_digital_input (SensESPApp *seapp, int digital_pin, String sk_path, float k, float c, String config_path)
                                                                                       
                                                                                      void setup_fuel_flow_meter (SensESPApp *seapp, int inflow_pin, int return_flow_pin)
                                                                                       
                                                                                      void setup_gps (SensESPApp *seapp, int serial_input_pin)
                                                                                       
                                                                                      void setup_analog_input (String sk_path, float k, float c, String config_path)
                                                                                       
                                                                                      void setup_fuel_flow_meter (int inflow_pin, int return_flow_pin)
                                                                                       
                                                                                      void setup_gps (int serial_input_pin)
                                                                                       
                                                                                      void setup_onewire_temperature (SensESPApp *seapp, DallasTemperatureSensors *dts, String sk_path, String config_path, String schema)
                                                                                       
                                                                                      void setup_rpm_meter (SensESPApp *seapp, int input_pin)
                                                                                       

                                                                                      Function Documentation

                                                                                      - -

                                                                                      ◆ setup_analog_input()

                                                                                      + +

                                                                                      ◆ setup_analog_input()

                                                                                      @@ -191,12 +190,6 @@

                                                                                      void setup_analog_input ( - SensESPApp *  - seapp, - - - - String  sk_path, @@ -227,83 +220,11 @@

                                                                                      Definition at line 19 of file wiring_helpers.cpp.

                                                                                      -
                                                                                      -Here is the call graph for this function:
                                                                                      -
                                                                                      -
                                                                                      - - - - -

                                                                                      - -

                                                                                      ◆ setup_digital_input()

                                                                                      - -
                                                                                      -
                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                      void setup_digital_input (SensESPAppseapp,
                                                                                      int digital_pin,
                                                                                      String sk_path,
                                                                                      float k,
                                                                                      float c,
                                                                                      String config_path 
                                                                                      )
                                                                                      -
                                                                                      - -

                                                                                      Definition at line 30 of file wiring_helpers.cpp.

                                                                                      -
                                                                                      -Here is the call graph for this function:
                                                                                      -
                                                                                      -
                                                                                      - - - - -
                                                                                      - -
                                                                                      -
                                                                                      - -

                                                                                      ◆ setup_fuel_flow_meter()

                                                                                      + +

                                                                                      ◆ setup_fuel_flow_meter()

                                                                                      @@ -311,12 +232,6 @@

                                                                                      void setup_fuel_flow_meter ( - SensESPApp *  - seapp, - - - - int  inflow_pin, @@ -334,22 +249,21 @@

                                                                                      -

                                                                                      Definition at line 43 of file wiring_helpers.cpp.

                                                                                      +

                                                                                      Definition at line 28 of file wiring_helpers.cpp.

                                                                                      Here is the call graph for this function:
                                                                                      -
                                                                                      - - - - +
                                                                                      + + +

                                                                                      - -

                                                                                      ◆ setup_gps()

                                                                                      + +

                                                                                      ◆ setup_gps()

                                                                                      @@ -357,31 +271,21 @@

                                                                                      void setup_gps ( - SensESPApp *  - seapp, - - - - int  - serial_input_pin  - - + serial_input_pin) - ) -

                                                                                      -

                                                                                      Definition at line 102 of file wiring_helpers.cpp.

                                                                                      +

                                                                                      Definition at line 78 of file wiring_helpers.cpp.

                                                                                      Here is the call graph for this function:
                                                                                      -
                                                                                      - +
                                                                                      + - +
                                                                                      @@ -431,16 +335,7 @@

                                                                                      -

                                                                                      Definition at line 181 of file wiring_helpers.cpp.

                                                                                      -
                                                                                      -Here is the call graph for this function:
                                                                                      -
                                                                                      -
                                                                                      - - - - -
                                                                                      +

                                                                                      Definition at line 112 of file wiring_helpers.cpp.

                                                                                      @@ -470,16 +365,7 @@

                                                                                      -

                                                                                      Definition at line 193 of file wiring_helpers.cpp.

                                                                                      -
                                                                                      -Here is the call graph for this function:
                                                                                      -
                                                                                      -
                                                                                      - - - - -
                                                                                      +

                                                                                      Definition at line 123 of file wiring_helpers.cpp.

                                                                                      diff --git a/docs/wiring__helpers_8cpp.js b/docs/wiring__helpers_8cpp.js index f1578c889..7815bb002 100644 --- a/docs/wiring__helpers_8cpp.js +++ b/docs/wiring__helpers_8cpp.js @@ -1,9 +1,8 @@ var wiring__helpers_8cpp = [ - [ "setup_analog_input", "wiring__helpers_8cpp.html#aeef272bff92e31ecb7e38c53e8c9d217", null ], - [ "setup_digital_input", "wiring__helpers_8cpp.html#a9da3379a0c7725b0d2c7202810b76be3", null ], - [ "setup_fuel_flow_meter", "wiring__helpers_8cpp.html#adfc99a40e14ac9cd0b83ee26e2ea2427", null ], - [ "setup_gps", "wiring__helpers_8cpp.html#a013f0fccc349c462c3a1d1a692e0cc23", null ], + [ "setup_analog_input", "wiring__helpers_8cpp.html#a3a4bbd0371b8285dbb7b8666d50a53a3", null ], + [ "setup_fuel_flow_meter", "wiring__helpers_8cpp.html#ae36e0604b36693bd720bffcf4145baf9", null ], + [ "setup_gps", "wiring__helpers_8cpp.html#a2ef51129a7e0e59a4efe2d031141d82f", null ], [ "setup_onewire_temperature", "wiring__helpers_8cpp.html#a17220137bcd65b6f922f5a14165a8fcf", null ], [ "setup_rpm_meter", "wiring__helpers_8cpp.html#aa6279a7bab0b61c448263a90303bb7e0", null ] ]; \ No newline at end of file diff --git a/docs/wiring__helpers_8cpp__incl.map b/docs/wiring__helpers_8cpp__incl.map index 38deff699..4a739ec85 100644 --- a/docs/wiring__helpers_8cpp__incl.map +++ b/docs/wiring__helpers_8cpp__incl.map @@ -1,51 +1,52 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/wiring__helpers_8cpp__incl.md5 b/docs/wiring__helpers_8cpp__incl.md5 index 79e584e0a..5b1ed5deb 100644 --- a/docs/wiring__helpers_8cpp__incl.md5 +++ b/docs/wiring__helpers_8cpp__incl.md5 @@ -1 +1 @@ -2aa1959ec2ffc02cfe82ebd3eb9ba8e4 \ No newline at end of file +038f21766af9e9f8855e8fb630213542 \ No newline at end of file diff --git a/docs/wiring__helpers_8cpp__incl.png b/docs/wiring__helpers_8cpp__incl.png index ab2f0b4ba..2f01b9cc5 100644 Binary files a/docs/wiring__helpers_8cpp__incl.png and b/docs/wiring__helpers_8cpp__incl.png differ diff --git a/docs/wiring__helpers_8cpp_a2ef51129a7e0e59a4efe2d031141d82f_cgraph.map b/docs/wiring__helpers_8cpp_a2ef51129a7e0e59a4efe2d031141d82f_cgraph.map new file mode 100644 index 000000000..de00b94cf --- /dev/null +++ b/docs/wiring__helpers_8cpp_a2ef51129a7e0e59a4efe2d031141d82f_cgraph.map @@ -0,0 +1,4 @@ + + + + diff --git a/docs/wiring__helpers_8cpp_a2ef51129a7e0e59a4efe2d031141d82f_cgraph.md5 b/docs/wiring__helpers_8cpp_a2ef51129a7e0e59a4efe2d031141d82f_cgraph.md5 new file mode 100644 index 000000000..cbab26aef --- /dev/null +++ b/docs/wiring__helpers_8cpp_a2ef51129a7e0e59a4efe2d031141d82f_cgraph.md5 @@ -0,0 +1 @@ +046c71b81657c4c6dd37f443c064b3a8 \ No newline at end of file diff --git a/docs/wiring__helpers_8cpp_a2ef51129a7e0e59a4efe2d031141d82f_cgraph.png b/docs/wiring__helpers_8cpp_a2ef51129a7e0e59a4efe2d031141d82f_cgraph.png new file mode 100644 index 000000000..283ff827e Binary files /dev/null and b/docs/wiring__helpers_8cpp_a2ef51129a7e0e59a4efe2d031141d82f_cgraph.png differ diff --git a/docs/wiring__helpers_8cpp_ae36e0604b36693bd720bffcf4145baf9_cgraph.map b/docs/wiring__helpers_8cpp_ae36e0604b36693bd720bffcf4145baf9_cgraph.map new file mode 100644 index 000000000..722aa53b3 --- /dev/null +++ b/docs/wiring__helpers_8cpp_ae36e0604b36693bd720bffcf4145baf9_cgraph.map @@ -0,0 +1,4 @@ + + + + diff --git a/docs/wiring__helpers_8cpp_ae36e0604b36693bd720bffcf4145baf9_cgraph.md5 b/docs/wiring__helpers_8cpp_ae36e0604b36693bd720bffcf4145baf9_cgraph.md5 new file mode 100644 index 000000000..1cb228857 --- /dev/null +++ b/docs/wiring__helpers_8cpp_ae36e0604b36693bd720bffcf4145baf9_cgraph.md5 @@ -0,0 +1 @@ +9dca1da1e7c1b6abe544eba0373fc8d6 \ No newline at end of file diff --git a/docs/wiring__helpers_8cpp_ae36e0604b36693bd720bffcf4145baf9_cgraph.png b/docs/wiring__helpers_8cpp_ae36e0604b36693bd720bffcf4145baf9_cgraph.png new file mode 100644 index 000000000..83856eb7a Binary files /dev/null and b/docs/wiring__helpers_8cpp_ae36e0604b36693bd720bffcf4145baf9_cgraph.png differ diff --git a/docs/wiring__helpers_8cpp_source.html b/docs/wiring__helpers_8cpp_source.html index 6d03044ac..7d4f75a78 100644 --- a/docs/wiring__helpers_8cpp_source.html +++ b/docs/wiring__helpers_8cpp_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -91,59 +91,57 @@
                                                                                      wiring_helpers.cpp

                                                                                      -Go to the documentation of this file.
                                                                                      1 #include "wiring_helpers.h"
                                                                                      2 
                                                                                      3 #include "sensesp_app.h"
                                                                                      4 #include "devices/analog_input.h"
                                                                                      6 #include "devices/gps.h"
                                                                                      9 #include "transforms/frequency.h"
                                                                                      11 #include "transforms/integrator.h"
                                                                                      12 #include "transforms/linear.h"
                                                                                      14 #include "transforms/timestring.h"
                                                                                      15 #include "transforms/transform.h"
                                                                                      16 #include "transforms/passthrough.h"
                                                                                      17 
                                                                                      18 
                                                                                      20  SensESPApp* seapp,
                                                                                      21  String sk_path, float k, float c,
                                                                                      22  String config_path) {
                                                                                      24  new AnalogInput(),
                                                                                      25  new Linear(
                                                                                      26  sk_path, k, c,
                                                                                      27  config_path));
                                                                                      28 }
                                                                                      29 
                                                                                      31  SensESPApp* seapp,
                                                                                      32  int digital_pin,
                                                                                      33  String sk_path, float k, float c,
                                                                                      34  String config_path) {
                                                                                      35  // expose a slowly changing (button-type) digital input
                                                                                      37  new DigitalInputValue(digital_pin, INPUT_PULLUP, RISING),
                                                                                      38  new Linear(
                                                                                      39  sk_path, k, c,
                                                                                      40  config_path));
                                                                                      41 }
                                                                                      42 
                                                                                      44  SensESPApp* seapp,
                                                                                      45  int inflow_pin,
                                                                                      46  int return_flow_pin
                                                                                      47 ) {
                                                                                      49  // connect a fuel flow meter with return line
                                                                                      50 
                                                                                      51  Frequency* f1 = new Frequency("sensors.inflow.frequency");
                                                                                      52  Frequency* f2 = new Frequency("sensors.outflow.frequency");
                                                                                      54  new DigitalInputCounter(inflow_pin, INPUT_PULLUP, CHANGE, 1000),
                                                                                      55  f1
                                                                                      56  );
                                                                                      57 
                                                                                      59  new DigitalInputCounter(return_flow_pin, INPUT_PULLUP, CHANGE, 1000),
                                                                                      60  f2
                                                                                      61  );
                                                                                      62 
                                                                                      63  // Here, each pulse of a flow sensor represents 0.46ml of flow
                                                                                      64  // for both inflow and outflow
                                                                                      65  Difference* diff = new Difference("propulsion.left.fuel.rate",
                                                                                      66  0.46/1e6, 0.46/1e6,
                                                                                      67  "/sensors/fuel_rate");
                                                                                      69  f1, f2,
                                                                                      70  diff
                                                                                      71  );
                                                                                      72 
                                                                                      73  // this is the same as above, but averaged over 10 s
                                                                                      75  diff,
                                                                                      76  new MovingAverage("propulsion.left.fuel.averageRate", 10, 1., "/sensors/fuel_average_rate")
                                                                                      77  );
                                                                                      78 
                                                                                      79 
                                                                                      80  // Integrate the net flow over time. The output is dependent
                                                                                      81  // on the the input counter update rate!
                                                                                      83  diff,
                                                                                      84  new Integrator("propulsion.left.fuel.used", 1., 0., "/sensors/fuel_used")
                                                                                      85  );
                                                                                      86 
                                                                                      87  // Integrate the total outflow over time. The output is dependent
                                                                                      88  // on the the input counter update rate!
                                                                                      90  f1,
                                                                                      91  new Integrator("propulsion.left.fuel.usedGross", 0.46/1e6, 0., "/sensors/fuel_in_used")
                                                                                      92  );
                                                                                      93 
                                                                                      94  // Integrate the net fuel flow over time. The output is dependent
                                                                                      95  // on the the input counter update rate!
                                                                                      97  f2,
                                                                                      98  new Integrator("propulsion.left.fuel.usedReturn", 0.46/1e6, 0., "/sensors/fuel_out_used")
                                                                                      99  );
                                                                                      100 }
                                                                                      101 
                                                                                      102 void setup_gps(SensESPApp* seapp, int serial_input_pin) {
                                                                                      103  GPSInput* gps = new GPSInput(serial_input_pin);
                                                                                      104 
                                                                                      106  &(gps->nmea_data.position),
                                                                                      107  new GNSSPosition("navigation.position", "")
                                                                                      108  );
                                                                                      109 
                                                                                      111  &(gps->nmea_data.gnss_quality),
                                                                                      112  new Passthrough<String>("navigation.methodQuality", "")
                                                                                      113  );
                                                                                      114 
                                                                                      116  &(gps->nmea_data.num_satellites),
                                                                                      117  new Passthrough<int>("navigation.satellites", "")
                                                                                      118  );
                                                                                      119 
                                                                                      122  new Passthrough<float>("navigation.horizontalDilution", "")
                                                                                      123  );
                                                                                      124 
                                                                                      127  new Passthrough<float>("navigation.geoidalSeparation", "")
                                                                                      128  );
                                                                                      129 
                                                                                      131  &(gps->nmea_data.dgps_age),
                                                                                      132  new Passthrough<float>("navigation.differentialAge", "")
                                                                                      133  );
                                                                                      134 
                                                                                      136  &(gps->nmea_data.dgps_id),
                                                                                      137  new Passthrough<float>("navigation.differentialReference", "")
                                                                                      138  );
                                                                                      139 
                                                                                      141  &(gps->nmea_data.datetime),
                                                                                      142  new TimeString("navigation.datetime", "")
                                                                                      143  );
                                                                                      144 
                                                                                      146  &(gps->nmea_data.speed),
                                                                                      147  new Passthrough<float>("navigation.speedOverGround", "")
                                                                                      148  );
                                                                                      149 
                                                                                      151  &(gps->nmea_data.true_course),
                                                                                      152  new Passthrough<float>("navigation.courseOverGroundTrue", "")
                                                                                      153  );
                                                                                      154 
                                                                                      156  &(gps->nmea_data.variation),
                                                                                      157  new Passthrough<float>("navigation.magneticVariation", "")
                                                                                      158  );
                                                                                      159 
                                                                                      161  &(gps->nmea_data.rtk_age),
                                                                                      162  new Passthrough<float>("navigation.rtkAge", "")
                                                                                      163  );
                                                                                      164 
                                                                                      166  &(gps->nmea_data.rtk_ratio),
                                                                                      167  new Passthrough<float>("navigation.rtkRatio", "")
                                                                                      168  );
                                                                                      169 
                                                                                      171  &(gps->nmea_data.baseline_length),
                                                                                      172  new Passthrough<float>("navigation.rtkBaselineLength", "")
                                                                                      173  );
                                                                                      174 
                                                                                      176  &(gps->nmea_data.baseline_course),
                                                                                      177  new Passthrough<float>("navigation.rtkBaselineCourse", "")
                                                                                      178  );
                                                                                      179 }
                                                                                      180 
                                                                                      182  SensESPApp* seapp,
                                                                                      184  String sk_path,
                                                                                      185  String config_path,
                                                                                      186  String schema
                                                                                      187 ) {
                                                                                      189  new OneWireTemperature(dts),
                                                                                      190  new Passthrough<float>(sk_path, config_path));
                                                                                      191 }
                                                                                      192 
                                                                                      193 void setup_rpm_meter(SensESPApp* seapp, int input_pin) {
                                                                                      195  // connect a RPM meter. A DigitalInputCounter counts pulses
                                                                                      196  // and reports the readings every read_delay ms
                                                                                      197  // (500 in the example). A Frequency
                                                                                      198  // transform takes a number of pulses and converts that into
                                                                                      199  // a frequency. The sample multiplier converts the 97 tooth
                                                                                      200  // tach output into Hz, SK native units.
                                                                                      201 
                                                                                      203  new DigitalInputCounter(input_pin, INPUT_PULLUP, RISING, 500),
                                                                                      204  new Frequency("propulsion.left.revolutions", 1./97., "/sensors/engine_rpm")
                                                                                      205  );
                                                                                      206 }
                                                                                      void connect_1to1(T *obs, U *transform)
                                                                                      Definition: sensesp_app.h:33
                                                                                      - +Go to the documentation of this file.
                                                                                      1 #include "wiring_helpers.h"
                                                                                      2 
                                                                                      3 #include "sensesp_app.h"
                                                                                      4 #include "devices/analog_input.h"
                                                                                      6 #include "devices/gps.h"
                                                                                      9 #include "transforms/frequency.h"
                                                                                      10 #include "signalk/signalk_output.h"
                                                                                      12 #include "signalk/signalk_time.h"
                                                                                      13 #include "transforms/integrator.h"
                                                                                      14 #include "transforms/linear.h"
                                                                                      16 #include "transforms/transform.h"
                                                                                      17 
                                                                                      18 
                                                                                      20  String sk_path, float k, float c,
                                                                                      21  String config_path) {
                                                                                      22  (new AnalogInput())
                                                                                      23  -> connectTo(new Linear(k, c, config_path + "/calibrate"))
                                                                                      24  -> connectTo(new SKOutputNumber(sk_path, config_path + "/sk"));
                                                                                      25 }
                                                                                      26 
                                                                                      27 
                                                                                      29  int inflow_pin,
                                                                                      30  int return_flow_pin
                                                                                      31 ) {
                                                                                      33  // connect a fuel flow meter with return line
                                                                                      34 
                                                                                      35  auto* dic1 = new DigitalInputCounter(inflow_pin, INPUT_PULLUP, CHANGE, 1000);
                                                                                      36  auto* dic2 = new DigitalInputCounter(return_flow_pin, INPUT_PULLUP, CHANGE, 1000);
                                                                                      37 
                                                                                      38  Frequency* freq1;
                                                                                      39  Frequency* freq2;
                                                                                      40 
                                                                                      41  dic1->connectTo(freq1 = new Frequency())
                                                                                      42  -> connectTo(new SKOutputNumber("sensors.inflow.frequency"));
                                                                                      43 
                                                                                      44  dic2->connectTo(freq2 = new Frequency())
                                                                                      45  -> connectTo(new SKOutputNumber("sensors.outflow.frequency"));
                                                                                      46 
                                                                                      47 
                                                                                      48  // Here, each pulse of a flow sensor represents 0.46ml of flow
                                                                                      49  // for both inflow and outflow
                                                                                      50  auto* diff = new Difference(0.46/1e6, 0.46/1e6,
                                                                                      51  "/sensors/fuel/rate/calibrate");
                                                                                      52 
                                                                                      53  diff->connectFrom(freq1, freq2)
                                                                                      54  -> connectTo(new SKOutputNumber("propulsion.0.fuel.rate", "/sensors/fuel/rate/sk"))
                                                                                      55  -> connectTo(new MovingAverage(10, 1., "/sensors/fuel/average/calibrate")) // this is the same as above, but averaged over 10 s
                                                                                      56  -> connectTo(new SKOutputNumber("propulsion.0.fuel.averageRate", "/sensors/fuel/average/sk"));
                                                                                      57 
                                                                                      58 
                                                                                      59  // Integrate the net flow over time. The output is dependent
                                                                                      60  // on the the input counter update rate!
                                                                                      61  diff->connectTo(new Integrator(1., 0.))
                                                                                      62  -> connectTo(new SKOutputNumber("propulsion.left.fuel.used", "/sensors/fuel/used/sk"));
                                                                                      63 
                                                                                      64 
                                                                                      65  // Integrate the total outflow over time. The output is dependent
                                                                                      66  // on the the input counter update rate!
                                                                                      67  freq1-> connectTo(new Integrator(0.46/1e6, 0., "/sensors/fuel/in_used/calibrate"))
                                                                                      68  -> connectTo(new SKOutputNumber("propulsion.left.fuel.usedGross", "/sensors/fuel/in_used/sk"));
                                                                                      69 
                                                                                      70 
                                                                                      71  // Integrate the net fuel flow over time. The output is dependent
                                                                                      72  // on the the input counter update rate!
                                                                                      73  freq2->connectTo(new Integrator(0.46/1e6, 0., "/sensors/fuel/out_used/calibrate"))
                                                                                      74  -> connectTo(new SKOutputNumber("propulsion.left.fuel.usedReturn", "/sensors/fuel/out_used/sk"));
                                                                                      75 }
                                                                                      76 
                                                                                      77 
                                                                                      78 void setup_gps(int serial_input_pin) {
                                                                                      79  GPSInput* gps = new GPSInput(serial_input_pin);
                                                                                      81  new SKOutputPosition("navigation.position", ""));
                                                                                      83  new SKOutputString("navigation.methodQuality", ""));
                                                                                      85  new SKOutputInt("navigation.satellites", ""));
                                                                                      87  new SKOutputNumber("navigation.horizontalDilution", ""));
                                                                                      89  new SKOutputNumber("navigation.geoidalSeparation", ""));
                                                                                      91  new SKOutputNumber("navigation.differentialAge", ""));
                                                                                      93  new SKOutputNumber("navigation.differentialReference", ""));
                                                                                      95  new SKOutputTime("navigation.datetime", ""));
                                                                                      97  new SKOutputNumber("navigation.speedOverGround", ""));
                                                                                      99  new SKOutputNumber("navigation.courseOverGroundTrue", ""));
                                                                                      101  new SKOutputNumber("navigation.magneticVariation", ""));
                                                                                      103  new SKOutputNumber("navigation.rtkAge", ""));
                                                                                      105  new SKOutputNumber("navigation.rtkRatio", ""));
                                                                                      107  new SKOutputNumber("navigation.rtkBaselineLength", ""));
                                                                                      109  new SKOutputNumber("navigation.rtkBaselineCourse", ""));
                                                                                      110 }
                                                                                      111 
                                                                                      113  SensESPApp* seapp,
                                                                                      115  String sk_path,
                                                                                      116  String config_path,
                                                                                      117  String schema
                                                                                      118 ) {
                                                                                      119  (new OneWireTemperature(dts))->connectTo(
                                                                                      120  new SKOutputNumber(sk_path, config_path));
                                                                                      121 }
                                                                                      122 
                                                                                      123 void setup_rpm_meter(SensESPApp* seapp, int input_pin) {
                                                                                      125  // connect a RPM meter. A DigitalInputCounter counts pulses
                                                                                      126  // and reports the readings every read_delay ms
                                                                                      127  // (500 in the example). A Frequency
                                                                                      128  // transform takes a number of pulses and converts that into
                                                                                      129  // a frequency. The sample multiplier converts the 97 tooth
                                                                                      130  // tach output into Hz, SK native units.
                                                                                      131 
                                                                                      132  (new DigitalInputCounter(input_pin, INPUT_PULLUP, RISING, 500))
                                                                                      133  -> connectTo<float>(new Frequency(1./97., "/sensors/engine_rpm/calibrate"))
                                                                                      134  -> connectTo(new SKOutputNumber("propulsion.left.revolutions", "/sensors/engine_rpm/sk"));
                                                                                      135 
                                                                                      136 }
                                                                                      SKOutput< String > SKOutputString
                                                                                      - - + + +
                                                                                      ObservableValue< float > rtk_ratio
                                                                                      Definition: nmea_parser.h:39
                                                                                      - - +
                                                                                      void setup_fuel_flow_meter(int inflow_pin, int return_flow_pin)
                                                                                      +
                                                                                      ObservableValue< float > dgps_age
                                                                                      Definition: nmea_parser.h:31
                                                                                      -
                                                                                      void setup_rpm_meter(SensESPApp *seapp, int input_pin)
                                                                                      +
                                                                                      void setup_rpm_meter(SensESPApp *seapp, int input_pin)
                                                                                      ObservableValue< float > horizontal_dilution
                                                                                      Definition: nmea_parser.h:29
                                                                                      ObservableValue< int > num_satellites
                                                                                      Definition: nmea_parser.h:28
                                                                                      ObservableValue< Position > position
                                                                                      Definition: nmea_parser.h:26
                                                                                      -
                                                                                      Definition: linear.h:8
                                                                                      - +
                                                                                      Definition: linear.h:7
                                                                                      ObservableValue< float > dgps_id
                                                                                      Definition: nmea_parser.h:32
                                                                                      -
                                                                                      void setup_fuel_flow_meter(SensESPApp *seapp, int inflow_pin, int return_flow_pin)
                                                                                      ObservableValue< float > baseline_course
                                                                                      Definition: nmea_parser.h:42
                                                                                      -
                                                                                      void setup_gps(SensESPApp *seapp, int serial_input_pin)
                                                                                      - +
                                                                                      ObservableValue< float > variation
                                                                                      Definition: nmea_parser.h:36
                                                                                      +
                                                                                      SKOutput< float > SKOutputNumber
                                                                                      -
                                                                                      void setup_digital_input(SensESPApp *seapp, int digital_pin, String sk_path, float k, float c, String config_path)
                                                                                      - +
                                                                                      void setup_analog_input(String sk_path, float k, float c, String config_path)
                                                                                      NMEAData nmea_data
                                                                                      Definition: gps.h:16
                                                                                      - +
                                                                                      SKOutput< int > SKOutputInt
                                                                                      ObservableValue< String > gnss_quality
                                                                                      Definition: nmea_parser.h:27
                                                                                      -
                                                                                      void connect_2to1(T *obs1, T *obs2, U *transform)
                                                                                      Definition: sensesp_app.h:40
                                                                                      -
                                                                                      ObservableValue< float > geoidal_separation
                                                                                      Definition: nmea_parser.h:30
                                                                                      +
                                                                                      void setup_gps(int serial_input_pin)
                                                                                      ObservableValue< float > baseline_length
                                                                                      Definition: nmea_parser.h:41
                                                                                      -
                                                                                      void setup_analog_input(SensESPApp *seapp, String sk_path, float k, float c, String config_path)
                                                                                      +
                                                                                      Definition: gps.h:12
                                                                                      ObservableValue< float > true_course
                                                                                      Definition: nmea_parser.h:35
                                                                                      -
                                                                                      void setup_onewire_temperature(SensESPApp *seapp, DallasTemperatureSensors *dts, String sk_path, String config_path, String schema)
                                                                                      +
                                                                                      void setup_onewire_temperature(SensESPApp *seapp, DallasTemperatureSensors *dts, String sk_path, String config_path, String schema)
                                                                                      ObservableValue< float > speed
                                                                                      Definition: nmea_parser.h:34
                                                                                      +
                                                                                      void connectTo(ValueConsumer< T > *pConsumer, uint8_t inputChannel=0)
                                                                                      Definition: valueproducer.h:42
                                                                                      ObservableValue< time_t > datetime
                                                                                      Definition: nmea_parser.h:33
                                                                                      +
                                                                                      ObservableValue< float > rtk_age
                                                                                      Definition: nmea_parser.h:38
                                                                                      diff --git a/docs/wiring__helpers_8h.html b/docs/wiring__helpers_8h.html index 0548d5278..9518357b2 100644 --- a/docs/wiring__helpers_8h.html +++ b/docs/wiring__helpers_8h.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -111,7 +111,7 @@ - + @@ -130,7 +130,7 @@ - + @@ -149,22 +149,20 @@ - - - - - - - - - - - - + + + + + + + + + +

                                                                                      Functions

                                                                                      void setup_analog_input (SensESPApp *seapp, String sk_path, float k=1, float c=0, String config_path="")
                                                                                       
                                                                                      void setup_digital_input (SensESPApp *seapp, int digital_pin, String sk_path, float k=1, float c=0, String config_path="")
                                                                                       
                                                                                      void setup_fuel_flow_meter (SensESPApp *seapp, int inflow_pin, int return_flow_pin)
                                                                                       
                                                                                      void setup_gps (SensESPApp *seapp, int serial_input_pin)
                                                                                       
                                                                                      void setup_onewire_temperature (SensESPApp *seapp, DallasTemperatureSensors *dts, String sk_path, String config_path)
                                                                                       
                                                                                      void setup_rpm_meter (SensESPApp *seapp, int input_pin)
                                                                                       
                                                                                      void setup_analog_input (String sk_path, float k=1, float c=0, String config_path="")
                                                                                       
                                                                                      void setup_fuel_flow_meter (int inflow_pin, int return_flow_pin)
                                                                                       
                                                                                      void setup_gps (int serial_input_pin)
                                                                                       
                                                                                      void setup_onewire_temperature (DallasTemperatureSensors *dts, String sk_path, String config_path)
                                                                                       
                                                                                      void setup_rpm_meter (int input_pin)
                                                                                       

                                                                                      Function Documentation

                                                                                      - -

                                                                                      ◆ setup_analog_input()

                                                                                      + +

                                                                                      ◆ setup_analog_input()

                                                                                      @@ -172,12 +170,6 @@

                                                                                      void setup_analog_input ( - SensESPApp *  - seapp, - - - - String  sk_path, @@ -208,83 +200,11 @@

                                                                                      Definition at line 19 of file wiring_helpers.cpp.

                                                                                      -
                                                                                      -Here is the call graph for this function:
                                                                                      -
                                                                                      -
                                                                                      - - - - -

                                                                                      - -

                                                                                      ◆ setup_digital_input()

                                                                                      - -
                                                                                      -
                                                                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                                                                      void setup_digital_input (SensESPAppseapp,
                                                                                      int digital_pin,
                                                                                      String sk_path,
                                                                                      float k = 1,
                                                                                      float c = 0,
                                                                                      String config_path = "" 
                                                                                      )
                                                                                      -
                                                                                      - -

                                                                                      Definition at line 30 of file wiring_helpers.cpp.

                                                                                      -
                                                                                      -Here is the call graph for this function:
                                                                                      -
                                                                                      -
                                                                                      - - - - -
                                                                                      - -
                                                                                      -
                                                                                      - -

                                                                                      ◆ setup_fuel_flow_meter()

                                                                                      + +

                                                                                      ◆ setup_fuel_flow_meter()

                                                                                      @@ -292,12 +212,6 @@

                                                                                      void setup_fuel_flow_meter ( - SensESPApp *  - seapp, - - - - int  inflow_pin, @@ -315,22 +229,21 @@

                                                                                      -

                                                                                      Definition at line 43 of file wiring_helpers.cpp.

                                                                                      +

                                                                                      Definition at line 28 of file wiring_helpers.cpp.

                                                                                      Here is the call graph for this function:
                                                                                      -
                                                                                      - - - - +
                                                                                      + + +

                                                                                      - -

                                                                                      ◆ setup_gps()

                                                                                      + +

                                                                                      ◆ setup_gps()

                                                                                      @@ -338,38 +251,28 @@

                                                                                      void setup_gps ( - SensESPApp *  - seapp, - - - - int  - serial_input_pin  - - + serial_input_pin) - ) -

                                                                                      -

                                                                                      Definition at line 102 of file wiring_helpers.cpp.

                                                                                      +

                                                                                      Definition at line 78 of file wiring_helpers.cpp.

                                                                                      Here is the call graph for this function:
                                                                                      -
                                                                                      - +
                                                                                      + - +
                                                                                      - -

                                                                                      ◆ setup_onewire_temperature()

                                                                                      + +

                                                                                      ◆ setup_onewire_temperature()

                                                                                      @@ -377,12 +280,6 @@

                                                                                      void setup_onewire_temperature ( - SensESPApp *  - seapp, - - - - DallasTemperatureSensorsdts, @@ -408,8 +305,8 @@

                                                                                      -

                                                                                      ◆ setup_rpm_meter()

                                                                                      + +

                                                                                      ◆ setup_rpm_meter()

                                                                                      @@ -417,34 +314,13 @@

                                                                                      void setup_rpm_meter ( - SensESPApp *  - seapp, - - - - int  - input_pin  - - + input_pin) - ) -

                                                                                      -

                                                                                      Definition at line 193 of file wiring_helpers.cpp.

                                                                                      -
                                                                                      -Here is the call graph for this function:
                                                                                      -
                                                                                      -
                                                                                      - - - - -
                                                                                      -

                                                                                      diff --git a/docs/wiring__helpers_8h.js b/docs/wiring__helpers_8h.js index 7aee6d651..ffff1b488 100644 --- a/docs/wiring__helpers_8h.js +++ b/docs/wiring__helpers_8h.js @@ -1,9 +1,8 @@ var wiring__helpers_8h = [ - [ "setup_analog_input", "wiring__helpers_8h.html#adea719867d33321e725bf045de32076c", null ], - [ "setup_digital_input", "wiring__helpers_8h.html#af8491f1a9541b35d11c13f5c2ec8dc46", null ], - [ "setup_fuel_flow_meter", "wiring__helpers_8h.html#adfc99a40e14ac9cd0b83ee26e2ea2427", null ], - [ "setup_gps", "wiring__helpers_8h.html#a013f0fccc349c462c3a1d1a692e0cc23", null ], - [ "setup_onewire_temperature", "wiring__helpers_8h.html#ad76896b776ebaa3509b6cc91f017e86c", null ], - [ "setup_rpm_meter", "wiring__helpers_8h.html#aa6279a7bab0b61c448263a90303bb7e0", null ] + [ "setup_analog_input", "wiring__helpers_8h.html#a70ac1c40d730c9e0f9b93b1f4dd5f0f9", null ], + [ "setup_fuel_flow_meter", "wiring__helpers_8h.html#ae36e0604b36693bd720bffcf4145baf9", null ], + [ "setup_gps", "wiring__helpers_8h.html#a2ef51129a7e0e59a4efe2d031141d82f", null ], + [ "setup_onewire_temperature", "wiring__helpers_8h.html#a37c83d7d3ac2abb00e8f9e86c1da52d3", null ], + [ "setup_rpm_meter", "wiring__helpers_8h.html#a99ed20d80aca90bb060c88019c5f739f", null ] ]; \ No newline at end of file diff --git a/docs/wiring__helpers_8h__incl.map b/docs/wiring__helpers_8h__incl.map index a81e853c9..38025f109 100644 --- a/docs/wiring__helpers_8h__incl.map +++ b/docs/wiring__helpers_8h__incl.map @@ -10,7 +10,7 @@ - + @@ -29,7 +29,7 @@ - + diff --git a/docs/wiring__helpers_8h__incl.md5 b/docs/wiring__helpers_8h__incl.md5 index 9875b3337..50d527ff6 100644 --- a/docs/wiring__helpers_8h__incl.md5 +++ b/docs/wiring__helpers_8h__incl.md5 @@ -1 +1 @@ -e66733720f2ac554a882cd3d298869f6 \ No newline at end of file +dc9d6368c8a67e389b39cc5c9a96f2e7 \ No newline at end of file diff --git a/docs/wiring__helpers_8h__incl.png b/docs/wiring__helpers_8h__incl.png index 79a01a555..523a5b1e9 100644 Binary files a/docs/wiring__helpers_8h__incl.png and b/docs/wiring__helpers_8h__incl.png differ diff --git a/docs/wiring__helpers_8h_a2ef51129a7e0e59a4efe2d031141d82f_cgraph.map b/docs/wiring__helpers_8h_a2ef51129a7e0e59a4efe2d031141d82f_cgraph.map new file mode 100644 index 000000000..de00b94cf --- /dev/null +++ b/docs/wiring__helpers_8h_a2ef51129a7e0e59a4efe2d031141d82f_cgraph.map @@ -0,0 +1,4 @@ + + + + diff --git a/docs/wiring__helpers_8h_a2ef51129a7e0e59a4efe2d031141d82f_cgraph.md5 b/docs/wiring__helpers_8h_a2ef51129a7e0e59a4efe2d031141d82f_cgraph.md5 new file mode 100644 index 000000000..cbab26aef --- /dev/null +++ b/docs/wiring__helpers_8h_a2ef51129a7e0e59a4efe2d031141d82f_cgraph.md5 @@ -0,0 +1 @@ +046c71b81657c4c6dd37f443c064b3a8 \ No newline at end of file diff --git a/docs/wiring__helpers_8h_a2ef51129a7e0e59a4efe2d031141d82f_cgraph.png b/docs/wiring__helpers_8h_a2ef51129a7e0e59a4efe2d031141d82f_cgraph.png new file mode 100644 index 000000000..283ff827e Binary files /dev/null and b/docs/wiring__helpers_8h_a2ef51129a7e0e59a4efe2d031141d82f_cgraph.png differ diff --git a/docs/wiring__helpers_8h_ae36e0604b36693bd720bffcf4145baf9_cgraph.map b/docs/wiring__helpers_8h_ae36e0604b36693bd720bffcf4145baf9_cgraph.map new file mode 100644 index 000000000..722aa53b3 --- /dev/null +++ b/docs/wiring__helpers_8h_ae36e0604b36693bd720bffcf4145baf9_cgraph.map @@ -0,0 +1,4 @@ + + + + diff --git a/docs/wiring__helpers_8h_ae36e0604b36693bd720bffcf4145baf9_cgraph.md5 b/docs/wiring__helpers_8h_ae36e0604b36693bd720bffcf4145baf9_cgraph.md5 new file mode 100644 index 000000000..1cb228857 --- /dev/null +++ b/docs/wiring__helpers_8h_ae36e0604b36693bd720bffcf4145baf9_cgraph.md5 @@ -0,0 +1 @@ +9dca1da1e7c1b6abe544eba0373fc8d6 \ No newline at end of file diff --git a/docs/wiring__helpers_8h_ae36e0604b36693bd720bffcf4145baf9_cgraph.png b/docs/wiring__helpers_8h_ae36e0604b36693bd720bffcf4145baf9_cgraph.png new file mode 100644 index 000000000..83856eb7a Binary files /dev/null and b/docs/wiring__helpers_8h_ae36e0604b36693bd720bffcf4145baf9_cgraph.png differ diff --git a/docs/wiring__helpers_8h_source.html b/docs/wiring__helpers_8h_source.html index 272274672..b5bdfeea9 100644 --- a/docs/wiring__helpers_8h_source.html +++ b/docs/wiring__helpers_8h_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -91,16 +91,14 @@
                                                                                      wiring_helpers.h

                                                                                      -Go to the documentation of this file.
                                                                                      1 #ifndef _wiring_helpers_H_
                                                                                      2 #define _wiring_helpers_H_
                                                                                      3 
                                                                                      4 #include "sensesp_app.h"
                                                                                      6 
                                                                                      8  SensESPApp* seapp,
                                                                                      9  String sk_path, float k=1, float c=0,
                                                                                      10  String config_path="");
                                                                                      11 
                                                                                      13  SensESPApp* seapp,
                                                                                      14  int digital_pin,
                                                                                      15  String sk_path, float k=1, float c=0,
                                                                                      16  String config_path="");
                                                                                      17 
                                                                                      19  SensESPApp* seapp,
                                                                                      20  int inflow_pin,
                                                                                      21  int return_flow_pin
                                                                                      22 );
                                                                                      23 
                                                                                      24 void setup_gps(SensESPApp* seapp, int serial_input_pin);
                                                                                      25 
                                                                                      27  SensESPApp* seapp,
                                                                                      29  String sk_path,
                                                                                      30  String config_path
                                                                                      31 );
                                                                                      32 
                                                                                      33 void setup_rpm_meter(SensESPApp* seapp, int input_pin);
                                                                                      34 
                                                                                      35 
                                                                                      36 #endif
                                                                                      void setup_onewire_temperature(SensESPApp *seapp, DallasTemperatureSensors *dts, String sk_path, String config_path)
                                                                                      -
                                                                                      void setup_gps(SensESPApp *seapp, int serial_input_pin)
                                                                                      -
                                                                                      void setup_analog_input(SensESPApp *seapp, String sk_path, float k=1, float c=0, String config_path="")
                                                                                      +Go to the documentation of this file.
                                                                                      1 #ifndef _wiring_helpers_H_
                                                                                      2 #define _wiring_helpers_H_
                                                                                      3 
                                                                                      4 #include "sensesp_app.h"
                                                                                      6 
                                                                                      8  String sk_path, float k=1, float c=0,
                                                                                      9  String config_path="");
                                                                                      10 
                                                                                      12  int inflow_pin,
                                                                                      13  int return_flow_pin
                                                                                      14 );
                                                                                      15 
                                                                                      16 void setup_gps(int serial_input_pin);
                                                                                      17 
                                                                                      20  String sk_path,
                                                                                      21  String config_path
                                                                                      22 );
                                                                                      23 
                                                                                      24 void setup_rpm_meter(int input_pin);
                                                                                      25 
                                                                                      26 
                                                                                      27 #endif
                                                                                      void setup_onewire_temperature(DallasTemperatureSensors *dts, String sk_path, String config_path)
                                                                                      +
                                                                                      void setup_rpm_meter(int input_pin)
                                                                                      +
                                                                                      void setup_analog_input(String sk_path, float k=1, float c=0, String config_path="")
                                                                                      +
                                                                                      void setup_fuel_flow_meter(int inflow_pin, int return_flow_pin)
                                                                                      -
                                                                                      void setup_digital_input(SensESPApp *seapp, int digital_pin, String sk_path, float k=1, float c=0, String config_path="")
                                                                                      - -
                                                                                      void setup_fuel_flow_meter(SensESPApp *seapp, int inflow_pin, int return_flow_pin)
                                                                                      -
                                                                                      void setup_rpm_meter(SensESPApp *seapp, int input_pin)
                                                                                      +
                                                                                      void setup_gps(int serial_input_pin)
                                                                                      diff --git a/docs/ws__client_8cpp.html b/docs/ws__client_8cpp.html index cd4a4fa82..64a035a79 100644 --- a/docs/ws__client_8cpp.html +++ b/docs/ws__client_8cpp.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -106,19 +106,19 @@
                                                                                      - - + + - - - + + + - + - + diff --git a/docs/ws__client_8cpp__incl.map b/docs/ws__client_8cpp__incl.map index dccb3013a..8770bd817 100644 --- a/docs/ws__client_8cpp__incl.map +++ b/docs/ws__client_8cpp__incl.map @@ -1,17 +1,17 @@ - - + + - - - + + + - + - + diff --git a/docs/ws__client_8cpp__incl.md5 b/docs/ws__client_8cpp__incl.md5 index 6e71b1d22..c197ef4ec 100644 --- a/docs/ws__client_8cpp__incl.md5 +++ b/docs/ws__client_8cpp__incl.md5 @@ -1 +1 @@ -102a1c30bb43d758b3ec820128a45e02 \ No newline at end of file +c455e1f8f8da9f2735bb909c610a6695 \ No newline at end of file diff --git a/docs/ws__client_8cpp__incl.png b/docs/ws__client_8cpp__incl.png index 270b1ad92..be2c60589 100644 Binary files a/docs/ws__client_8cpp__incl.png and b/docs/ws__client_8cpp__incl.png differ diff --git a/docs/ws__client_8cpp_source.html b/docs/ws__client_8cpp_source.html index 0219de704..93b85b9f7 100644 --- a/docs/ws__client_8cpp_source.html +++ b/docs/ws__client_8cpp_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -91,22 +91,22 @@
                                                                                      ws_client.cpp
                                                                                      -Go to the documentation of this file.
                                                                                      1 #include "ws_client.h"
                                                                                      2 
                                                                                      3 #include "Arduino.h"
                                                                                      4 
                                                                                      5 #include <ArduinoJson.h>
                                                                                      6 #include <ESP8266HTTPClient.h>
                                                                                      7 #ifdef ESP8266
                                                                                      8  #include <ESP8266mDNS.h> // Include the mDNS library
                                                                                      9 #elif defined(ESP32)
                                                                                      10  #include <ESPmDNS.h>
                                                                                      11 #endif
                                                                                      12 
                                                                                      13 #include <ESP8266TrueRandom.h>
                                                                                      14 
                                                                                      15 #include <WiFiClient.h>
                                                                                      16 
                                                                                      17 #include "sensesp_app.h"
                                                                                      18 
                                                                                      20 
                                                                                      21 void webSocketClientEvent(WStype_t type, uint8_t * payload, size_t length) {
                                                                                      22  switch(type) {
                                                                                      23  case WStype_DISCONNECTED:
                                                                                      25  break;
                                                                                      26  case WStype_ERROR:
                                                                                      28  break;
                                                                                      29  case WStype_CONNECTED:
                                                                                      30  ws_client->on_connected(payload);
                                                                                      31  break;
                                                                                      32  case WStype_TEXT:
                                                                                      33  ws_client->on_receive_delta(payload);
                                                                                      34  break;
                                                                                      35  }
                                                                                      36 }
                                                                                      37 
                                                                                      38 WSClient::WSClient(String config_path, SKDelta* sk_delta,
                                                                                      39  std::function<void(bool)> connected_cb,
                                                                                      41  this->sk_delta = sk_delta;
                                                                                      42  this->connected_cb = connected_cb;
                                                                                      43  this->delta_cb = delta_cb;
                                                                                      44 
                                                                                      45  // set the singleton object pointer
                                                                                      46  ws_client = this;
                                                                                      47 
                                                                                      48  load_configuration();
                                                                                      49 }
                                                                                      50 
                                                                                      52  app.onDelay(0, [this](){ this->connect(); });
                                                                                      53  app.onRepeat(20, [this](){ this->loop(); });
                                                                                      54  app.onRepeat(100, [this](){ this->send_delta(); });
                                                                                      55  app.onRepeat(10000, [this](){ this->connect_loop(); });
                                                                                      56 }
                                                                                      57 
                                                                                      58 void WSClient::connect_loop() {
                                                                                      59  if (this->connection_state==disconnected) {
                                                                                      60  this->connect();
                                                                                      61  }
                                                                                      62 }
                                                                                      63 
                                                                                      65  if (this->connection_state == connecting && server_detected) {
                                                                                      66  // Going from connecting directly to disconnect when we
                                                                                      67  // know we have found and talked to the server usually means
                                                                                      68  // the authentication token is bad.
                                                                                      69  debugW("Bad access token detected.");
                                                                                      70  auth_token = Null_Auth_Token;
                                                                                      72  }
                                                                                      73  this->connection_state = disconnected;
                                                                                      74  server_detected = false;
                                                                                      75  this->connected_cb(false);
                                                                                      76 }
                                                                                      77 
                                                                                      79  this->connection_state = disconnected;
                                                                                      80  debugW("Websocket client error.");
                                                                                      81  this->connected_cb(false);
                                                                                      82 }
                                                                                      83 
                                                                                      84 void WSClient::on_connected(uint8_t * payload) {
                                                                                      85  this->connection_state = connected;
                                                                                      86  debugI("Websocket client connected to URL: %s\n", payload);
                                                                                      87  this->connected_cb(true);
                                                                                      88 }
                                                                                      89 
                                                                                      90 void WSClient::on_receive_delta(uint8_t * payload) {
                                                                                      91  debugD("Received payload: %s", (char*)payload);
                                                                                      92 }
                                                                                      93 
                                                                                      94 bool WSClient::get_mdns_service(String& host, uint16_t& port) {
                                                                                      95  // get IP address using an mDNS query
                                                                                      96  int n = MDNS.queryService("signalk-ws", "tcp");
                                                                                      97  if (n==0) {
                                                                                      98  // no service found
                                                                                      99  return false;
                                                                                      100  } else {
                                                                                      101  host = MDNS.IP(0).toString();
                                                                                      102  port = MDNS.port(0);
                                                                                      103  debugI("Found server with IP/Port: %s:%d", host.c_str(), port);
                                                                                      104  return true;
                                                                                      105  }
                                                                                      106 }
                                                                                      107 
                                                                                      109  if (connection_state!=disconnected) {
                                                                                      110  return;
                                                                                      111  }
                                                                                      112  debugD("Initiating connection");
                                                                                      113 
                                                                                      114  connection_state = connecting;
                                                                                      115 
                                                                                      116  String host = "";
                                                                                      117  uint16_t port = 80;
                                                                                      118 
                                                                                      119  if (this->host.length() == 0) {
                                                                                      120  get_mdns_service(host, port);
                                                                                      121  } else {
                                                                                      122  host = this->host;
                                                                                      123  port = this->port;
                                                                                      124  }
                                                                                      125 
                                                                                      126  if ((host.length() > 0) && (port > 0)) {
                                                                                      127  debugD("Websocket client starting");
                                                                                      128  } else {
                                                                                      129  // host and port not defined - wait for mDNS
                                                                                      130  connection_state = disconnected;
                                                                                      131  return;
                                                                                      132  }
                                                                                      133 
                                                                                      134  if (this->polling_href != "") {
                                                                                      135  // existing pending request
                                                                                      136  this->poll_access_request(host, port, this->polling_href);
                                                                                      137  return;
                                                                                      138  }
                                                                                      139 
                                                                                      140  if (this->auth_token == Null_Auth_Token || this->auth_token == "") {
                                                                                      141  // initiate HTTP authentication
                                                                                      142  debugD("No prior authorization token present.");
                                                                                      143  this->send_access_request(host, port);
                                                                                      144  return;
                                                                                      145  }
                                                                                      146  this->test_token(host, port);
                                                                                      147 }
                                                                                      148 
                                                                                      149 void WSClient::test_token(const String host, const uint16_t port) {
                                                                                      150 
                                                                                      151  // FIXME: implement async HTTP client!
                                                                                      152  WiFiClient client;
                                                                                      153  HTTPClient http;
                                                                                      154 
                                                                                      155  debugD("Testing token");
                                                                                      156 
                                                                                      157  String url = String("http://") + host + ":" + port + "/signalk/v1/api/";
                                                                                      158  http.begin(client, url);
                                                                                      159  String full_token = String("JWT ") + auth_token;
                                                                                      160  http.addHeader("Authorization", full_token.c_str());
                                                                                      161  int httpCode = http.GET();
                                                                                      162  String payload = http.getString();
                                                                                      163  http.end();
                                                                                      164  debugD("Testing resulted in http status %d", httpCode);
                                                                                      165  debugD("%s", payload.c_str());
                                                                                      166  if (httpCode == 200) {
                                                                                      167  // our token is valid, go ahead and connect
                                                                                      168  server_detected = true;
                                                                                      169  this->connect_ws(host, port);
                                                                                      170  } else if (httpCode == 401) {
                                                                                      171  this->send_access_request(host, port);
                                                                                      172  } else {
                                                                                      173  connection_state = disconnected;
                                                                                      174  }
                                                                                      175 }
                                                                                      176 
                                                                                      177 void WSClient::send_access_request(const String host, const uint16_t port) {
                                                                                      178  debugD("Preparing a new access request");
                                                                                      179  if (client_id == "") {
                                                                                      180  // generate a client ID
                                                                                      181  byte uuidNumber[16];
                                                                                      182  ESP8266TrueRandom.uuid(uuidNumber);
                                                                                      183  client_id = ESP8266TrueRandom.uuidToString(uuidNumber);
                                                                                      185  }
                                                                                      186 
                                                                                      187  // create a new access request
                                                                                      188  DynamicJsonBuffer buf;
                                                                                      189  JsonObject& req = buf.createObject();
                                                                                      190  req["clientId"] = client_id;
                                                                                      191  req["description"] =
                                                                                      192  String("SensESP sensor: ") + sensesp_app->get_hostname();
                                                                                      193  String json_req = "";
                                                                                      194  req.printTo(json_req);
                                                                                      195 
                                                                                      196  WiFiClient client;
                                                                                      197  HTTPClient http;
                                                                                      198 
                                                                                      199  String url = String("http://") + host + ":" + port
                                                                                      200  + "/signalk/v1/access/requests";
                                                                                      201  http.begin(client, url);
                                                                                      202  http.addHeader("Content-Type", "application/json");
                                                                                      203  int httpCode = http.POST(json_req);
                                                                                      204  String payload = http.getString();
                                                                                      205  http.end();
                                                                                      206 
                                                                                      207  // if we get a response we can't handle, try to reconnect later
                                                                                      208  if (httpCode != 202) {
                                                                                      209  debugW("Can't handle response %d to access request.", httpCode);
                                                                                      210  debugD("%s", payload.c_str());
                                                                                      211  connection_state = disconnected;
                                                                                      212  return;
                                                                                      213  }
                                                                                      214 
                                                                                      215  // http status code 202
                                                                                      216 
                                                                                      217  JsonObject& resp = buf.parseObject(payload);
                                                                                      218  String state = resp["state"];
                                                                                      219 
                                                                                      220  if (state != "PENDING") {
                                                                                      221  debugW("Got unknown state: %s", state.c_str());
                                                                                      222  connection_state = disconnected;
                                                                                      223  return;
                                                                                      224  }
                                                                                      225 
                                                                                      226  String href = resp["href"];
                                                                                      227  polling_href = href;
                                                                                      229 
                                                                                      230  debugD("Polling %s in 5 seconds", polling_href.c_str());
                                                                                      231  app.onDelay(5000, [this, host, port](){
                                                                                      232  this->poll_access_request(host, port, this->polling_href);
                                                                                      233  });
                                                                                      234 }
                                                                                      235 
                                                                                      236 void WSClient::poll_access_request(const String host, const uint16_t port, const String href) {
                                                                                      237  debugD("Polling");
                                                                                      238 
                                                                                      239  WiFiClient client;
                                                                                      240  HTTPClient http;
                                                                                      241 
                                                                                      242  String url = String("http://") + host + ":" + port + href;
                                                                                      243  http.begin(client, url);
                                                                                      244  int httpCode = http.GET();
                                                                                      245  if (httpCode == 200 or httpCode == 202) {
                                                                                      246  String payload = http.getString();
                                                                                      247  http.end();
                                                                                      248  DynamicJsonBuffer buf;
                                                                                      249  JsonObject& resp = buf.parseObject(payload);
                                                                                      250  String state = resp["state"];
                                                                                      251  debugD("%s", state.c_str());
                                                                                      252  if (state == "PENDING") {
                                                                                      253  app.onDelay(5000, [this, host, port, href](){ this->poll_access_request(host, port, href); });
                                                                                      254  return;
                                                                                      255  } else if (state == "COMPLETED") {
                                                                                      256  JsonObject& access_req = resp["accessRequest"];
                                                                                      257  String permission = access_req["permission"];
                                                                                      258  polling_href = "";
                                                                                      260 
                                                                                      261  if (permission == "DENIED") {
                                                                                      262  debugW("Permission denied");
                                                                                      263  connection_state = disconnected;
                                                                                      264  return;
                                                                                      265  } else if (permission == "APPROVED") {
                                                                                      266  debugI("Permission granted");
                                                                                      267  String token = access_req["token"];
                                                                                      268  auth_token = token;
                                                                                      270  app.onDelay(0, [this, host, port](){ this->connect_ws(host, port); });
                                                                                      271  return;
                                                                                      272  }
                                                                                      273  }
                                                                                      274  } else {
                                                                                      275  http.end();
                                                                                      276  if (httpCode==500) {
                                                                                      277  // this is probably the server barfing due to
                                                                                      278  // us polling a non-existing request. Just
                                                                                      279  // delete the polling href.
                                                                                      280  debugD("Got 500, probably a non-existing request.");
                                                                                      281  polling_href = "";
                                                                                      283  connection_state = disconnected;
                                                                                      284  return;
                                                                                      285  }
                                                                                      286  // any other HTTP status code
                                                                                      287  debugW("Can't handle response %d to pending access request.\n", httpCode);
                                                                                      288  connection_state = disconnected;
                                                                                      289  return;
                                                                                      290  }
                                                                                      291 }
                                                                                      292 
                                                                                      293 void WSClient::connect_ws(const String host, const uint16_t port) {
                                                                                      294  String path = "/signalk/v1/stream?subscribe=none";
                                                                                      295 
                                                                                      296  this->client.begin(host, port, path);
                                                                                      297  this->client.onEvent(webSocketClientEvent);
                                                                                      298  String full_token = String("JWT ") + auth_token;
                                                                                      299  this->client.setAuthorization(full_token.c_str());
                                                                                      300 }
                                                                                      301 
                                                                                      303  this->client.loop();
                                                                                      304 }
                                                                                      305 
                                                                                      307  return connection_state==connected;
                                                                                      308 }
                                                                                      309 
                                                                                      311  if (connection_state==connected) {
                                                                                      312  this->client.disconnect();
                                                                                      313  connection_state = disconnected;
                                                                                      314  }
                                                                                      315 }
                                                                                      316 
                                                                                      318  String output;
                                                                                      319  if (sk_delta->data_available()) {
                                                                                      320  sk_delta->get_delta(output);
                                                                                      321  if (connection_state==connected) {
                                                                                      322  this->client.sendTXT(output);
                                                                                      323  this->delta_cb();
                                                                                      324  }
                                                                                      325  }
                                                                                      326 }
                                                                                      327 
                                                                                      328 JsonObject& WSClient::get_configuration(JsonBuffer& buf) {
                                                                                      329  JsonObject& root = buf.createObject();
                                                                                      330  root["sk_host"] = this->host;
                                                                                      331  root["sk_port"] = this->port;
                                                                                      332  root["token"] = this->auth_token;
                                                                                      333  root["client_id"] = this->client_id;
                                                                                      334  root["polling_href"] = this->polling_href;
                                                                                      335  return root;
                                                                                      336 }
                                                                                      337 
                                                                                      338 
                                                                                      340  return R"({
                                                                                      341  "type": "object",
                                                                                      342  "properties": {
                                                                                      343  "sk_host": { "title": "SignalK Host", "type": "string" },
                                                                                      344  "sk_port": { "title": "SignalK host port", "type": "integer" },
                                                                                      345  "client_id": { "title": "Client id", "type": "string" },
                                                                                      346  "polling_href": { "title": "Server authorization polling href", "type": "string" }
                                                                                      347  }
                                                                                      348  })";
                                                                                      349 }
                                                                                      350 
                                                                                      351 
                                                                                      352 bool WSClient::set_configuration(const JsonObject& config) {
                                                                                      353  String expected[] = {"sk_host", "sk_port", "token"};
                                                                                      354  for (auto str : expected) {
                                                                                      355  if (!config.containsKey(str)) {
                                                                                      356  return false;
                                                                                      357  }
                                                                                      358  }
                                                                                      359  this->host = config["sk_host"].as<String>();
                                                                                      360  this->port = config["sk_port"].as<int>();
                                                                                      361  // FIXME: setting the token should not be allowed via the REST API.
                                                                                      362  this->auth_token = config["token"].as<String>();
                                                                                      363  this->client_id = config["client_id"].as<String>();
                                                                                      364  this->polling_href = config["polling_href"].as<String>();
                                                                                      365  return true;
                                                                                      366 }
                                                                                      void webSocketClientEvent(WStype_t type, uint8_t *payload, size_t length)
                                                                                      Definition: ws_client.cpp:21
                                                                                      +Go to the documentation of this file.
                                                                                      1 #include "ws_client.h"
                                                                                      2 
                                                                                      3 #include "Arduino.h"
                                                                                      4 
                                                                                      5 #include <ArduinoJson.h>
                                                                                      6 #include <ESP8266HTTPClient.h>
                                                                                      7 #ifdef ESP8266
                                                                                      8  #include <ESP8266mDNS.h> // Include the mDNS library
                                                                                      9 #elif defined(ESP32)
                                                                                      10  #include <ESPmDNS.h>
                                                                                      11 #endif
                                                                                      12 
                                                                                      13 #include <ESP8266TrueRandom.h>
                                                                                      14 
                                                                                      15 #include <WiFiClient.h>
                                                                                      16 
                                                                                      17 #include "sensesp_app.h"
                                                                                      18 
                                                                                      20 
                                                                                      21 void webSocketClientEvent(WStype_t type, uint8_t * payload, size_t length) {
                                                                                      22  switch(type) {
                                                                                      23  case WStype_DISCONNECTED:
                                                                                      25  break;
                                                                                      26  case WStype_ERROR:
                                                                                      28  break;
                                                                                      29  case WStype_CONNECTED:
                                                                                      30  ws_client->on_connected(payload);
                                                                                      31  break;
                                                                                      32  case WStype_TEXT:
                                                                                      33  ws_client->on_receive_delta(payload);
                                                                                      34  break;
                                                                                      35  }
                                                                                      36 }
                                                                                      37 
                                                                                      38 WSClient::WSClient(String config_path, SKDelta* sk_delta,
                                                                                      39  std::function<void(bool)> connected_cb,
                                                                                      41  this->sk_delta = sk_delta;
                                                                                      42  this->connected_cb = connected_cb;
                                                                                      43  this->delta_cb = delta_cb;
                                                                                      44 
                                                                                      45  // set the singleton object pointer
                                                                                      46  ws_client = this;
                                                                                      47 
                                                                                      48  load_configuration();
                                                                                      49 }
                                                                                      50 
                                                                                      52  app.onDelay(0, [this](){ this->connect(); });
                                                                                      53  app.onRepeat(20, [this](){ this->loop(); });
                                                                                      54  app.onRepeat(100, [this](){ this->send_delta(); });
                                                                                      55  app.onRepeat(10000, [this](){ this->connect_loop(); });
                                                                                      56 }
                                                                                      57 
                                                                                      58 void WSClient::connect_loop() {
                                                                                      59  if (this->connection_state==disconnected) {
                                                                                      60  this->connect();
                                                                                      61  }
                                                                                      62 }
                                                                                      63 
                                                                                      65  if (this->connection_state == connecting && server_detected) {
                                                                                      66  // Going from connecting directly to disconnect when we
                                                                                      67  // know we have found and talked to the server usually means
                                                                                      68  // the authentication token is bad.
                                                                                      69  debugW("Bad access token detected. Setting token to null.");
                                                                                      70  auth_token = NULL_AUTH_TOKEN;
                                                                                      72  }
                                                                                      73  this->connection_state = disconnected;
                                                                                      74  server_detected = false;
                                                                                      75  this->connected_cb(false);
                                                                                      76 }
                                                                                      77 
                                                                                      79  this->connection_state = disconnected;
                                                                                      80  debugW("Websocket client error.");
                                                                                      81  this->connected_cb(false);
                                                                                      82 }
                                                                                      83 
                                                                                      84 void WSClient::on_connected(uint8_t * payload) {
                                                                                      85  this->connection_state = connected;
                                                                                      86  debugI("Websocket client connected to URL: %s\n", payload);
                                                                                      87  this->connected_cb(true);
                                                                                      88 }
                                                                                      89 
                                                                                      90 void WSClient::on_receive_delta(uint8_t * payload) {
                                                                                      91  debugD("Websocket payload received: %s", (char*)payload);
                                                                                      92 }
                                                                                      93 
                                                                                      94 bool WSClient::get_mdns_service(String& server_address, uint16_t& server_port) {
                                                                                      95  // get IP address using an mDNS query
                                                                                      96  int n = MDNS.queryService("signalk-ws", "tcp");
                                                                                      97  if (n==0) {
                                                                                      98  // no service found
                                                                                      99  return false;
                                                                                      100  } else {
                                                                                      101  server_address = MDNS.IP(0).toString();
                                                                                      102  server_port = MDNS.port(0);
                                                                                      103  debugI("Found server %s (port %d)", server_address.c_str(), server_port);
                                                                                      104  return true;
                                                                                      105  }
                                                                                      106 }
                                                                                      107 
                                                                                      109  if (connection_state!=disconnected) {
                                                                                      110  return;
                                                                                      111  }
                                                                                      112  debugD("Initiating connection");
                                                                                      113 
                                                                                      114  connection_state = connecting;
                                                                                      115 
                                                                                      116  String server_address = "";
                                                                                      117  uint16_t server_port = 80;
                                                                                      118 
                                                                                      119  if (this->server_address.length() == 0) {
                                                                                      120  get_mdns_service(server_address, server_port);
                                                                                      121  } else {
                                                                                      122  server_address = this->server_address;
                                                                                      123  server_port = this->server_port;
                                                                                      124  }
                                                                                      125 
                                                                                      126  if ((server_address.length() > 0) && (server_port > 0)) {
                                                                                      127  debugD("Websocket client starting");
                                                                                      128  } else {
                                                                                      129  // host and port not defined - wait for mDNS
                                                                                      130  connection_state = disconnected;
                                                                                      131  return;
                                                                                      132  }
                                                                                      133 
                                                                                      134  if (this->polling_href != "") {
                                                                                      135  // existing pending request
                                                                                      136  this->poll_access_request(server_address, server_port, this->polling_href);
                                                                                      137  return;
                                                                                      138  }
                                                                                      139 
                                                                                      140  if (this->auth_token == NULL_AUTH_TOKEN) {
                                                                                      141  // initiate HTTP authentication
                                                                                      142  debugD("No prior authorization token present.");
                                                                                      143  this->send_access_request(server_address, server_port);
                                                                                      144  return;
                                                                                      145  }
                                                                                      146  this->test_token(server_address, server_port);
                                                                                      147 }
                                                                                      148 
                                                                                      149 void WSClient::test_token(const String server_address, const uint16_t server_port) {
                                                                                      150 
                                                                                      151  // FIXME: implement async HTTP client!
                                                                                      152  WiFiClient client;
                                                                                      153  HTTPClient http;
                                                                                      154 
                                                                                      155  debugD("Testing token");
                                                                                      156 
                                                                                      157  String url = String("http://") + server_address + ":" + server_port + "/signalk/v1/api/";
                                                                                      158  http.begin(client, url);
                                                                                      159  String full_token = String("JWT ") + auth_token;
                                                                                      160  http.addHeader("Authorization", full_token.c_str());
                                                                                      161  int httpCode = http.GET();
                                                                                      162  String payload = http.getString();
                                                                                      163  http.end();
                                                                                      164  debugD("Testing resulted in http status %d", httpCode);
                                                                                      165  debugD("%s", payload.c_str());
                                                                                      166  if (httpCode == 200) {
                                                                                      167  // our token is valid, go ahead and connect
                                                                                      168  server_detected = true;
                                                                                      169  this->connect_ws(server_address, server_port);
                                                                                      170  } else if (httpCode == 401) {
                                                                                      171  this->send_access_request(server_address, server_port);
                                                                                      172  } else {
                                                                                      173  connection_state = disconnected;
                                                                                      174  }
                                                                                      175 }
                                                                                      176 
                                                                                      177 void WSClient::send_access_request(const String server_address, const uint16_t server_port) {
                                                                                      178  debugD("Preparing a new access request");
                                                                                      179  if (client_id == "") {
                                                                                      180  // generate a client ID
                                                                                      181  byte uuidNumber[16];
                                                                                      182  ESP8266TrueRandom.uuid(uuidNumber);
                                                                                      183  client_id = ESP8266TrueRandom.uuidToString(uuidNumber);
                                                                                      185  }
                                                                                      186 
                                                                                      187  // create a new access request
                                                                                      188  DynamicJsonBuffer buf;
                                                                                      189  JsonObject& req = buf.createObject();
                                                                                      190  req["clientId"] = client_id;
                                                                                      191  req["description"] =
                                                                                      192  String("SensESP device: ") + sensesp_app->get_hostname();
                                                                                      193  String json_req = "";
                                                                                      194  req.printTo(json_req);
                                                                                      195 
                                                                                      196  WiFiClient client;
                                                                                      197  HTTPClient http;
                                                                                      198 
                                                                                      199  String url = String("http://") + server_address + ":" + server_port
                                                                                      200  + "/signalk/v1/access/requests";
                                                                                      201  http.begin(client, url);
                                                                                      202  http.addHeader("Content-Type", "application/json");
                                                                                      203  int httpCode = http.POST(json_req);
                                                                                      204  String payload = http.getString();
                                                                                      205  http.end();
                                                                                      206 
                                                                                      207  // if we get a response we can't handle, try to reconnect later
                                                                                      208  if (httpCode != 202) {
                                                                                      209  debugW("Can't handle response %d to access request.", httpCode);
                                                                                      210  debugD("%s", payload.c_str());
                                                                                      211  connection_state = disconnected;
                                                                                      212  return;
                                                                                      213  }
                                                                                      214 
                                                                                      215  // http status code 202
                                                                                      216 
                                                                                      217  JsonObject& resp = buf.parseObject(payload);
                                                                                      218  String state = resp["state"];
                                                                                      219 
                                                                                      220  if (state != "PENDING") {
                                                                                      221  debugW("Got unknown state: %s", state.c_str());
                                                                                      222  connection_state = disconnected;
                                                                                      223  return;
                                                                                      224  }
                                                                                      225 
                                                                                      226  String href = resp["href"];
                                                                                      227  polling_href = href;
                                                                                      229 
                                                                                      230  debugD("Polling %s in 5 seconds", polling_href.c_str());
                                                                                      231  app.onDelay(5000, [this, server_address, server_port](){
                                                                                      232  this->poll_access_request(server_address, server_port, this->polling_href);
                                                                                      233  });
                                                                                      234 }
                                                                                      235 
                                                                                      236 void WSClient::poll_access_request(const String server_address, const uint16_t server_port, const String href) {
                                                                                      237  debugD("Polling SK Server for authentication token");
                                                                                      238 
                                                                                      239  WiFiClient client;
                                                                                      240  HTTPClient http;
                                                                                      241 
                                                                                      242  String url = String("http://") + server_address + ":" + server_port + href;
                                                                                      243  http.begin(client, url);
                                                                                      244  int httpCode = http.GET();
                                                                                      245  if (httpCode == 200 or httpCode == 202) {
                                                                                      246  String payload = http.getString();
                                                                                      247  http.end();
                                                                                      248  DynamicJsonBuffer buf;
                                                                                      249  JsonObject& resp = buf.parseObject(payload);
                                                                                      250  String state = resp["state"];
                                                                                      251  debugD("%s", state.c_str());
                                                                                      252  if (state == "PENDING") {
                                                                                      253  app.onDelay(5000, [this, server_address, server_port, href](){ this->poll_access_request(server_address, server_port, href); });
                                                                                      254  return;
                                                                                      255  } else if (state == "COMPLETED") {
                                                                                      256  JsonObject& access_req = resp["accessRequest"];
                                                                                      257  String permission = access_req["permission"];
                                                                                      258  polling_href = "";
                                                                                      260 
                                                                                      261  if (permission == "DENIED") {
                                                                                      262  debugW("Permission denied");
                                                                                      263  connection_state = disconnected;
                                                                                      264  return;
                                                                                      265  } else if (permission == "APPROVED") {
                                                                                      266  debugI("Permission granted");
                                                                                      267  String token = access_req["token"];
                                                                                      268  auth_token = token;
                                                                                      270  app.onDelay(0, [this, server_address, server_port](){ this->connect_ws(server_address, server_port); });
                                                                                      271  return;
                                                                                      272  }
                                                                                      273  }
                                                                                      274  } else {
                                                                                      275  http.end();
                                                                                      276  if (httpCode==500) {
                                                                                      277  // this is probably the server barfing due to
                                                                                      278  // us polling a non-existing request. Just
                                                                                      279  // delete the polling href.
                                                                                      280  debugD("Got 500, probably a non-existing request.");
                                                                                      281  polling_href = "";
                                                                                      283  connection_state = disconnected;
                                                                                      284  return;
                                                                                      285  }
                                                                                      286  // any other HTTP status code
                                                                                      287  debugW("Can't handle response %d to pending access request.\n", httpCode);
                                                                                      288  connection_state = disconnected;
                                                                                      289  return;
                                                                                      290  }
                                                                                      291 }
                                                                                      292 
                                                                                      293 void WSClient::connect_ws(const String host, const uint16_t port) {
                                                                                      294  String path = "/signalk/v1/stream?subscribe=none";
                                                                                      295 
                                                                                      296  this->client.begin(host, port, path);
                                                                                      297  this->client.onEvent(webSocketClientEvent);
                                                                                      298  String full_token = String("JWT ") + auth_token;
                                                                                      299  this->client.setAuthorization(full_token.c_str());
                                                                                      300 }
                                                                                      301 
                                                                                      303  this->client.loop();
                                                                                      304 }
                                                                                      305 
                                                                                      307  return connection_state==connected;
                                                                                      308 }
                                                                                      309 
                                                                                      311  if (connection_state==connected) {
                                                                                      312  this->client.disconnect();
                                                                                      313  connection_state = disconnected;
                                                                                      314  }
                                                                                      315 }
                                                                                      316 
                                                                                      318  String output;
                                                                                      319  if (sk_delta->data_available()) {
                                                                                      320  sk_delta->get_delta(output);
                                                                                      321  if (connection_state==connected) {
                                                                                      322  this->client.sendTXT(output);
                                                                                      323  this->delta_cb();
                                                                                      324  }
                                                                                      325  }
                                                                                      326 }
                                                                                      327 
                                                                                      328 JsonObject& WSClient::get_configuration(JsonBuffer& buf) {
                                                                                      329  JsonObject& root = buf.createObject();
                                                                                      330  root["sk_address"] = this->server_address;
                                                                                      331  root["sk_port"] = this->server_port;
                                                                                      332  root["token"] = this->auth_token;
                                                                                      333  root["client_id"] = this->client_id;
                                                                                      334  root["polling_href"] = this->polling_href;
                                                                                      335  return root;
                                                                                      336 }
                                                                                      337 
                                                                                      338 static const char SCHEMA[] PROGMEM = R"({
                                                                                      339  "type": "object",
                                                                                      340  "properties": {
                                                                                      341  "sk_address": { "title": "SignalK server address", "type": "string" },
                                                                                      342  "sk_port": { "title": "SignalK server port", "type": "integer" },
                                                                                      343  "client_id": { "title": "Client ID", "type": "string", "readOnly": true },
                                                                                      344  "token": { "title": "Server authorization token", "type": "string" },
                                                                                      345  "polling_href": { "title": "Server authorization polling href", "type": "string", "readOnly": true }
                                                                                      346  }
                                                                                      347  })";
                                                                                      348 
                                                                                      350  return FPSTR(SCHEMA);
                                                                                      351 }
                                                                                      352 
                                                                                      353 
                                                                                      354 bool WSClient::set_configuration(const JsonObject& config) {
                                                                                      355  String expected[] = {"sk_address", "sk_port", "token", "client_id"};
                                                                                      356  for (auto str : expected) {
                                                                                      357  if (!config.containsKey(str)) {
                                                                                      358  return false;
                                                                                      359  }
                                                                                      360  }
                                                                                      361  this->server_address = config["sk_address"].as<String>();
                                                                                      362  this->server_port = config["sk_port"].as<int>();
                                                                                      363  // FIXME: setting the token should not be allowed via the REST API.
                                                                                      364  this->auth_token = config["token"].as<String>();
                                                                                      365  this->client_id = config["client_id"].as<String>();
                                                                                      366  this->polling_href = config["polling_href"].as<String>();
                                                                                      367  return true;
                                                                                      368 }
                                                                                      void webSocketClientEvent(WStype_t type, uint8_t *payload, size_t length)
                                                                                      Definition: ws_client.cpp:21
                                                                                      void connect()
                                                                                      Definition: ws_client.cpp:108
                                                                                      WSClient(String config_path, SKDelta *sk_delta, std::function< void(bool)> connected_cb, void_cb_func delta_cb)
                                                                                      Definition: ws_client.cpp:38
                                                                                      -
                                                                                      SensESPApp * sensesp_app
                                                                                      +
                                                                                      SensESPApp * sensesp_app
                                                                                      void restart()
                                                                                      Definition: ws_client.cpp:310
                                                                                      -
                                                                                      virtual bool set_configuration(const JsonObject &config) override final
                                                                                      Definition: ws_client.cpp:352
                                                                                      +
                                                                                      virtual bool set_configuration(const JsonObject &config) override final
                                                                                      Definition: ws_client.cpp:354
                                                                                      void on_disconnected()
                                                                                      Definition: ws_client.cpp:64
                                                                                      void enable()
                                                                                      Definition: ws_client.cpp:51
                                                                                      - +
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override final
                                                                                      Definition: ws_client.cpp:328
                                                                                      -
                                                                                      bool data_available()
                                                                                      Definition: signal_k.cpp:17
                                                                                      +
                                                                                      bool data_available()
                                                                                      void on_connected(uint8_t *payload)
                                                                                      Definition: ws_client.cpp:84
                                                                                      -
                                                                                      String get_hostname()
                                                                                      +
                                                                                      String get_hostname()
                                                                                      virtual void save_configuration()
                                                                                      std::function< void()> void_cb_func
                                                                                      Definition: sensesp.h:7
                                                                                      void loop()
                                                                                      Definition: ws_client.cpp:302
                                                                                      @@ -119,9 +119,10 @@
                                                                                      bool is_connected()
                                                                                      Definition: ws_client.cpp:306
                                                                                      -
                                                                                      void get_delta(String &output)
                                                                                      Definition: signal_k.cpp:21
                                                                                      +
                                                                                      void get_delta(String &output)
                                                                                      +
                                                                                      const char PAGE_index [] PROGMEM
                                                                                      Definition: index.h:2
                                                                                      ReactESP app
                                                                                      -
                                                                                      virtual String get_config_schema() override
                                                                                      Definition: ws_client.cpp:339
                                                                                      +
                                                                                      virtual String get_config_schema() override
                                                                                      Definition: ws_client.cpp:349
                                                                                      diff --git a/docs/ws__client_8h.html b/docs/ws__client_8h.html index 9de8c1588..06eba9904 100644 --- a/docs/ws__client_8h.html +++ b/docs/ws__client_8h.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -98,7 +98,7 @@ #include <WebSocketsClient.h>
                                                                                      #include "sensesp.h"
                                                                                      #include "system/configurable.h"
                                                                                      -#include "system/signal_k.h"
                                                                                      +#include "signalk/signalk_delta.h"
                                                                                      Include dependency graph for ws_client.h:
                                                                                      @@ -108,14 +108,14 @@ - - - - - - - - + + + + + + + +
                                                                                      diff --git a/docs/ws__client_8h__incl.map b/docs/ws__client_8h__incl.map index 5569324a6..d4cfac740 100644 --- a/docs/ws__client_8h__incl.map +++ b/docs/ws__client_8h__incl.map @@ -3,12 +3,12 @@ - - - - - - - - + + + + + + + + diff --git a/docs/ws__client_8h__incl.md5 b/docs/ws__client_8h__incl.md5 index 25aaa77c7..0febccd31 100644 --- a/docs/ws__client_8h__incl.md5 +++ b/docs/ws__client_8h__incl.md5 @@ -1 +1 @@ -31df38410d5dd2eec8a4621ae0ea0225 \ No newline at end of file +3b4c68e47da9884754e53e31bb99646c \ No newline at end of file diff --git a/docs/ws__client_8h__incl.png b/docs/ws__client_8h__incl.png index 22773c95e..8dd0b2774 100644 Binary files a/docs/ws__client_8h__incl.png and b/docs/ws__client_8h__incl.png differ diff --git a/docs/ws__client_8h_source.html b/docs/ws__client_8h_source.html index 901698628..1dc858cbb 100644 --- a/docs/ws__client_8h_source.html +++ b/docs/ws__client_8h_source.html @@ -30,7 +30,7 @@
                                                                                      SensESP -  0.3.0 +  0.4.0
                                                                                      Universal Signal K sensor framework for ESP8266 and ESP32
                                                                                      @@ -91,14 +91,15 @@
                                                                                      ws_client.h
                                                                                      -Go to the documentation of this file.
                                                                                      1 #ifndef _ws_client_H_
                                                                                      2 #define _ws_client_H_
                                                                                      3 
                                                                                      4 #include <functional>
                                                                                      5 
                                                                                      6 #include <WebSocketsClient.h>
                                                                                      7 
                                                                                      8 #include "sensesp.h"
                                                                                      9 #include "system/configurable.h"
                                                                                      10 #include "system/signal_k.h"
                                                                                      11 
                                                                                      12 static const char* Null_Auth_Token = "no-token";
                                                                                      13 
                                                                                      15 
                                                                                      16 class WSClient : public Configurable {
                                                                                      17  public:
                                                                                      18  WSClient(String config_path, SKDelta* sk_delta,
                                                                                      19  std::function<void(bool)> connected_cb,
                                                                                      20  void_cb_func delta_cb);
                                                                                      21  void enable();
                                                                                      22  void on_disconnected();
                                                                                      23  void on_error();
                                                                                      24  void on_connected(uint8_t * payload);
                                                                                      25  void on_receive_delta(uint8_t * payload);
                                                                                      26  void connect();
                                                                                      27  void loop();
                                                                                      28  bool is_connected();
                                                                                      29  void restart();
                                                                                      30  void send_delta();
                                                                                      31 
                                                                                      32  virtual JsonObject& get_configuration(JsonBuffer& buf) override final;
                                                                                      33  virtual bool set_configuration(const JsonObject& config) override final;
                                                                                      34  virtual String get_config_schema() override;
                                                                                      35 
                                                                                      36  private:
                                                                                      37  String host = "";
                                                                                      38  uint16_t port = 80;
                                                                                      39  String client_id = "";
                                                                                      40  String polling_href = "";
                                                                                      41  String auth_token = Null_Auth_Token;
                                                                                      42  bool server_detected = false;
                                                                                      43 
                                                                                      44  // FIXME: replace with a single connection_state enum
                                                                                      45  ConnectionState connection_state = disconnected;
                                                                                      46  WebSocketsClient client;
                                                                                      47  SKDelta* sk_delta;
                                                                                      48  void connect_loop();
                                                                                      49  void test_token(const String host, const uint16_t port);
                                                                                      50  void send_access_request(const String host, const uint16_t port);
                                                                                      51  void poll_access_request(const String host, const uint16_t port, const String href);
                                                                                      52  void connect_ws(const String host, const uint16_t port);
                                                                                      53  std::function<void(bool)> connected_cb;
                                                                                      54  void_cb_func delta_cb;
                                                                                      55  bool get_mdns_service(String &host, uint16_t& port);
                                                                                      56 };
                                                                                      57 
                                                                                      58 #endif
                                                                                      void connect()
                                                                                      Definition: ws_client.cpp:108
                                                                                      +Go to the documentation of this file.
                                                                                      1 #ifndef _ws_client_H_
                                                                                      2 #define _ws_client_H_
                                                                                      3 
                                                                                      4 #include <functional>
                                                                                      5 
                                                                                      6 #include <WebSocketsClient.h>
                                                                                      7 
                                                                                      8 #include "sensesp.h"
                                                                                      9 #include "system/configurable.h"
                                                                                      10 #include "signalk/signalk_delta.h"
                                                                                      11 
                                                                                      12 static const char* NULL_AUTH_TOKEN = "";
                                                                                      13 
                                                                                      15 
                                                                                      16 class WSClient : public Configurable {
                                                                                      17  public:
                                                                                      18  WSClient(String config_path, SKDelta* sk_delta,
                                                                                      19  std::function<void(bool)> connected_cb,
                                                                                      20  void_cb_func delta_cb);
                                                                                      21  void enable();
                                                                                      22  void on_disconnected();
                                                                                      23  void on_error();
                                                                                      24  void on_connected(uint8_t * payload);
                                                                                      25  void on_receive_delta(uint8_t * payload);
                                                                                      26  void connect();
                                                                                      27  void loop();
                                                                                      28  bool is_connected();
                                                                                      29  void restart();
                                                                                      30  void send_delta();
                                                                                      31 
                                                                                      32  virtual JsonObject& get_configuration(JsonBuffer& buf) override final;
                                                                                      33  virtual bool set_configuration(const JsonObject& config) override final;
                                                                                      34  virtual String get_config_schema() override;
                                                                                      35 
                                                                                      36  private:
                                                                                      37  String server_address = "";
                                                                                      38  uint16_t server_port = 80;
                                                                                      39  String client_id = "";
                                                                                      40  String polling_href = "";
                                                                                      41  String auth_token = NULL_AUTH_TOKEN;
                                                                                      42  bool server_detected = false;
                                                                                      43 
                                                                                      44  // FIXME: replace with a single connection_state enum
                                                                                      45  ConnectionState connection_state = disconnected;
                                                                                      46  WebSocketsClient client;
                                                                                      47  SKDelta* sk_delta;
                                                                                      48  void connect_loop();
                                                                                      49  void test_token(const String host, const uint16_t port);
                                                                                      50  void send_access_request(const String host, const uint16_t port);
                                                                                      51  void poll_access_request(const String host, const uint16_t port, const String href);
                                                                                      52  void connect_ws(const String host, const uint16_t port);
                                                                                      53  std::function<void(bool)> connected_cb;
                                                                                      54  void_cb_func delta_cb;
                                                                                      55  bool get_mdns_service(String &server_address, uint16_t& server_port);
                                                                                      56 };
                                                                                      57 
                                                                                      58 #endif
                                                                                      void connect()
                                                                                      Definition: ws_client.cpp:108
                                                                                      +
                                                                                      WSClient(String config_path, SKDelta *sk_delta, std::function< void(bool)> connected_cb, void_cb_func delta_cb)
                                                                                      Definition: ws_client.cpp:38
                                                                                      void restart()
                                                                                      Definition: ws_client.cpp:310
                                                                                      -
                                                                                      virtual bool set_configuration(const JsonObject &config) override final
                                                                                      Definition: ws_client.cpp:352
                                                                                      +
                                                                                      virtual bool set_configuration(const JsonObject &config) override final
                                                                                      Definition: ws_client.cpp:354
                                                                                      void on_disconnected()
                                                                                      Definition: ws_client.cpp:64
                                                                                      void enable()
                                                                                      Definition: ws_client.cpp:51
                                                                                      - +
                                                                                      virtual JsonObject & get_configuration(JsonBuffer &buf) override final
                                                                                      Definition: ws_client.cpp:328
                                                                                      void on_connected(uint8_t *payload)
                                                                                      Definition: ws_client.cpp:84
                                                                                      @@ -109,13 +110,12 @@
                                                                                      void on_receive_delta(uint8_t *payload)
                                                                                      Definition: ws_client.cpp:90
                                                                                      const String config_path
                                                                                      Definition: configurable.h:29
                                                                                      void send_delta()
                                                                                      Definition: ws_client.cpp:317
                                                                                      -
                                                                                      void on_error()
                                                                                      Definition: ws_client.cpp:78
                                                                                      bool is_connected()
                                                                                      Definition: ws_client.cpp:306
                                                                                      -
                                                                                      virtual String get_config_schema() override
                                                                                      Definition: ws_client.cpp:339
                                                                                      +
                                                                                      virtual String get_config_schema() override
                                                                                      Definition: ws_client.cpp:349
                                                                                      diff --git a/library.json b/library.json index 5a564bf00..1050b3cdb 100644 --- a/library.json +++ b/library.json @@ -65,7 +65,7 @@ "name": "RemoteDebug", "version": "https://github.com/JoaoLopesF/RemoteDebug.git#0b5a9c1a49fd2ade0e3cadc3a3707781e819359a" } ], - "version": "0.3.0", + "version": "0.4.0", "frameworks": "arduino", "platforms": "*" } diff --git a/library.properties b/library.properties index 930082593..9e962862a 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=SensESP -version=0.3.0 +version=0.4.0 author=Matti Airas maintainer=Matti Airas sentence=Signal K sensor development library for ESP devices