SensESP 3.0.1
Universal Signal K sensor toolkit ESP32
|
Interface for serializable objects. More...
#include <sensesp/system/serializable.h>
Public Member Functions | |
virtual bool | to_json (JsonObject &root) |
virtual bool | from_json (const JsonObject &root) |
Interface for serializable objects.
Serializable objects can be converted to and from JSON, useful for configuration and persistence.
Definition at line 19 of file serializable.h.
|
inlinevirtual |
Deserializes the current object data from a JsonObject.
Reimplemented in sensesp::AnalogInput, sensesp::AnalogVoltage, sensesp::AngleCorrection, sensesp::ChangeFilter, sensesp::CheckboxConfig, sensesp::ClickType, sensesp::ConstantSensor< T >, sensesp::CurveInterpolator, sensesp::DigitalInputCounter, sensesp::Enable< T >, sensesp::Frequency, sensesp::HTTPServer, sensesp::Integrator< C, P >, sensesp::Integrator< int, int >, sensesp::LambdaTransform< IN, OUT, P1, P2, P3, P4, P5, P6 >, sensesp::LambdaTransform< float, float, float, float >, sensesp::LambdaTransform< float, int >, sensesp::LambdaTransform< IN, OUT, IN, IN, OUT, OUT >, sensesp::Median, sensesp::MovingAverage, sensesp::Networking, sensesp::NumberConfig, sensesp::PersistingObservableValue< T >, sensesp::PersistingObservableValue< String >, sensesp::PressRepeater, sensesp::RgbLed, sensesp::SelectConfig, sensesp::SKOutput< T >, sensesp::SKOutput< String >, sensesp::SKOutputTime, sensesp::SKPutRequestBase, sensesp::SKWSClient, sensesp::SmartSwitchController, sensesp::StringConfig, sensesp::ThresholdTransform< C >, sensesp::TimeCounter< T >, sensesp::VoltageDividerR1, and sensesp::VoltageDividerR2.
Definition at line 28 of file serializable.h.
|
inlinevirtual |
Serializes the current object data into a JsonObject.
Reimplemented in sensesp::AnalogInput, sensesp::AnalogVoltage, sensesp::AngleCorrection, sensesp::ChangeFilter, sensesp::CheckboxConfig, sensesp::ClickType, sensesp::ConstantSensor< T >, sensesp::CurveInterpolator, sensesp::DigitalInputCounter, sensesp::Enable< T >, sensesp::Frequency, sensesp::HTTPServer, sensesp::Integrator< C, P >, sensesp::Integrator< int, int >, sensesp::LambdaTransform< IN, OUT, P1, P2, P3, P4, P5, P6 >, sensesp::LambdaTransform< float, float, float, float >, sensesp::LambdaTransform< float, int >, sensesp::LambdaTransform< IN, OUT, IN, IN, OUT, OUT >, sensesp::Median, sensesp::MovingAverage, sensesp::Networking, sensesp::NumberConfig, sensesp::PersistingObservableValue< T >, sensesp::PersistingObservableValue< String >, sensesp::PressRepeater, sensesp::RgbLed, sensesp::SelectConfig, sensesp::SKOutput< T >, sensesp::SKOutput< String >, sensesp::SKOutputTime, sensesp::SKPutRequestBase, sensesp::SKWSClient, sensesp::SmartSwitchController, sensesp::StringConfig, sensesp::ThresholdTransform< C >, sensesp::TimeCounter< T >, sensesp::VoltageDividerR1, and sensesp::VoltageDividerR2.
Definition at line 24 of file serializable.h.