SensESP 3.1.1
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
sensesp::Serializable Class Reference

Interface for serializable objects. More...

#include <sensesp/system/serializable.h>

Inheritance diagram for sensesp::Serializable:
[legend]

Public Member Functions

virtual bool to_json (JsonObject &root)
 
virtual bool from_json (const JsonObject &root)
 

Detailed Description

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.

Member Function Documentation

◆ from_json()

virtual bool sensesp::Serializable::from_json ( const JsonObject & root)
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::ConstantSensor< bool >, sensesp::ConstantSensor< bool >, sensesp::ConstantSensor< float >, sensesp::ConstantSensor< float >, sensesp::ConstantSensor< int >, sensesp::ConstantSensor< int >, sensesp::ConstantSensor< String >, sensesp::ConstantSensor< String >, sensesp::CurveInterpolator, sensesp::Debounce< T >, sensesp::Debounce< bool >, sensesp::Debounce< bool >, sensesp::Debounce< float >, sensesp::Debounce< float >, sensesp::Debounce< int >, sensesp::Debounce< int >, sensesp::DigitalInputCounter, sensesp::Enable< T >, sensesp::Frequency, sensesp::HTTPServer, sensesp::Integrator< C, P >, sensesp::Integrator< float, float >, sensesp::Integrator< float, float >, sensesp::Integrator< int, int >, sensesp::Integrator< int, int >, sensesp::LambdaTransform< IN, OUT, P1, P2, P3, P4, P5, P6 >, sensesp::LambdaTransform< float, float, float, float >, 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< AttitudeVector >, sensesp::SKOutput< AttitudeVector >, sensesp::SKOutput< bool >, sensesp::SKOutput< bool >, sensesp::SKOutput< ENUVector >, sensesp::SKOutput< ENUVector >, sensesp::SKOutput< Position >, sensesp::SKOutput< Position >, sensesp::SKOutput< String >, sensesp::SKOutput< String >, sensesp::SKOutputTime, sensesp::SKPutRequestBase, sensesp::SKWSClient, sensesp::SmartSwitchController, sensesp::StringConfig, sensesp::ThresholdTransform< C >, sensesp::ThresholdTransform< float >, sensesp::ThresholdTransform< float >, sensesp::ThresholdTransform< int >, sensesp::ThresholdTransform< int >, sensesp::TimeCounter< T >, sensesp::VoltageDividerR1, and sensesp::VoltageDividerR2.

Definition at line 28 of file serializable.h.

Here is the caller graph for this function:

◆ to_json()

virtual bool sensesp::Serializable::to_json ( JsonObject & root)
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::ConstantSensor< bool >, sensesp::ConstantSensor< bool >, sensesp::ConstantSensor< float >, sensesp::ConstantSensor< float >, sensesp::ConstantSensor< int >, sensesp::ConstantSensor< int >, sensesp::ConstantSensor< String >, sensesp::ConstantSensor< String >, sensesp::CurveInterpolator, sensesp::Debounce< T >, sensesp::Debounce< bool >, sensesp::Debounce< bool >, sensesp::Debounce< float >, sensesp::Debounce< float >, sensesp::Debounce< int >, sensesp::Debounce< int >, sensesp::DigitalInputCounter, sensesp::Enable< T >, sensesp::Frequency, sensesp::HTTPServer, sensesp::Integrator< C, P >, sensesp::Integrator< float, float >, sensesp::Integrator< float, float >, sensesp::Integrator< int, int >, sensesp::Integrator< int, int >, sensesp::LambdaTransform< IN, OUT, P1, P2, P3, P4, P5, P6 >, sensesp::LambdaTransform< float, float, float, float >, 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< AttitudeVector >, sensesp::SKOutput< AttitudeVector >, sensesp::SKOutput< bool >, sensesp::SKOutput< bool >, sensesp::SKOutput< ENUVector >, sensesp::SKOutput< ENUVector >, sensesp::SKOutput< Position >, sensesp::SKOutput< Position >, sensesp::SKOutput< String >, sensesp::SKOutput< String >, sensesp::SKOutputTime, sensesp::SKPutRequestBase, sensesp::SKWSClient, sensesp::SmartSwitchController, sensesp::StringConfig, sensesp::ThresholdTransform< C >, sensesp::ThresholdTransform< float >, sensesp::ThresholdTransform< float >, sensesp::ThresholdTransform< int >, sensesp::ThresholdTransform< int >, sensesp::TimeCounter< T >, sensesp::VoltageDividerR1, and sensesp::VoltageDividerR2.

Definition at line 24 of file serializable.h.

Here is the caller graph for this function:

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