SensESP
3.0.1
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
signalk_emitter.cpp
Go to the documentation of this file.
1
#include "
signalk_emitter.h
"
2
3
namespace
sensesp
{
4
5
std::vector<SKEmitter*> SKEmitter::sources_;
6
7
SKEmitter::SKEmitter
(
const
String& sk_path) : sk_path_{sk_path} {
8
sources_.push_back(
this
);
9
}
10
11
void
SKEmitter::add_metadata
(JsonArray& meta) {
12
SKMetadata
* my_meta = this->
get_metadata
();
13
if
(my_meta != NULL) {
14
my_meta->
add_entry
(this->
get_sk_path
(), meta);
15
}
16
}
17
18
}
// namespace sensesp
sensesp::SKEmitter::add_metadata
virtual void add_metadata(JsonArray &meta)
Definition
signalk_emitter.cpp:11
sensesp::SKEmitter::get_metadata
virtual SKMetadata * get_metadata()
Definition
signalk_emitter.h:45
sensesp::SKEmitter::get_sk_path
String & get_sk_path()
Definition
signalk_emitter.h:62
sensesp::SKEmitter::SKEmitter
SKEmitter(const String &sk_path)
Definition
signalk_emitter.cpp:7
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::add_entry
virtual void add_entry(const String &sk_path, JsonArray &meta)
Definition
signalk_metadata.cpp:14
sensesp
Definition
sensesp.cpp:7
signalk_emitter.h
src
sensesp
signalk
signalk_emitter.cpp
Generated by
1.12.0