SensESP
3.0.1
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
signalk_metadata.h
Go to the documentation of this file.
1
#ifndef SENSESP_SIGNALK_SIGNALK_METADATA_H_
2
#define SENSESP_SIGNALK_SIGNALK_METADATA_H_
3
4
#include <ArduinoJson.h>
5
6
namespace
sensesp
{
7
24
class
SKMetadata
{
25
public
:
26
String
display_name_
;
27
String
units_
;
28
String
description_
;
29
String
short_name_
;
30
float
timeout_
;
31
47
SKMetadata
(
const
String& units,
const
String& display_name =
""
,
48
const
String& description =
""
,
const
String& short_name =
""
,
49
float
timeout = -1.0);
50
52
SKMetadata
() :
timeout_
{-1} {}
53
61
virtual
void
add_entry
(
const
String& sk_path, JsonArray& meta);
62
};
63
64
}
// namespace sensesp
65
66
#endif
sensesp::SKMetadata
Holds Signal K meta data that is associated with the sk_path an SKEmitter class may optionally send t...
Definition
signalk_metadata.h:24
sensesp::SKMetadata::display_name_
String display_name_
Definition
signalk_metadata.h:26
sensesp::SKMetadata::add_entry
virtual void add_entry(const String &sk_path, JsonArray &meta)
Definition
signalk_metadata.cpp:14
sensesp::SKMetadata::description_
String description_
Definition
signalk_metadata.h:28
sensesp::SKMetadata::SKMetadata
SKMetadata()
Default constructor creates a blank Metadata structure.
Definition
signalk_metadata.h:52
sensesp::SKMetadata::timeout_
float timeout_
Definition
signalk_metadata.h:30
sensesp::SKMetadata::short_name_
String short_name_
Definition
signalk_metadata.h:29
sensesp::SKMetadata::units_
String units_
Definition
signalk_metadata.h:27
sensesp
Definition
sensesp.cpp:7
src
sensesp
signalk
signalk_metadata.h
Generated by
1.12.0