SensESP 3.0.1
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
serializable.h
Go to the documentation of this file.
1#ifndef SENSESP_SYSTEM_SERIALIZABLE_H_
2#define SENSESP_SYSTEM_SERIALIZABLE_H_
3
4#include "sensesp.h"
5
6#include <ArduinoJson.h>
7
8#include "Arduino.h"
9
10
11namespace sensesp {
12
20 public:
24 virtual bool to_json(JsonObject& root) { return false; }
28 virtual bool from_json(const JsonObject& root) { return false; }
29};
30
31
32} // namespace sensesp
33
34#endif // SENSESP_SYSTEM_SERIALIZABLE_H_
Interface for serializable objects.
virtual bool from_json(const JsonObject &root)
virtual bool to_json(JsonObject &root)