SensESP 3.0.1
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
signalk_output.cpp
Go to the documentation of this file.
1#include "signalk_output.h"
2
3namespace sensesp {
4
5template <typename T>
6SKOutputNumeric<T>::SKOutputNumeric(String sk_path, String config_path,
7 SKMetadata* meta)
8 : SKOutput<T>(sk_path, config_path, meta) {
9 if (this->meta_ == nullptr && !this->sk_path_.isEmpty()) {
10 ESP_LOGW(
11 __FILENAME__,
12 "WARNING - No metadata for %s. Numeric values should specify units",
13 this->sk_path_.c_str());
14 }
15}
16
17template class SKOutputNumeric<float>;
18template class SKOutputNumeric<int>;
19
20} // namespace sensesp
Holds Signal K meta data that is associated with the sk_path an SKEmitter class may optionally send t...
A specialized transform whose primary purpose is to output Signal K data on the Signal K network.
std::shared_ptr< SKMetadata > meta_
A special class for sending numeric values to the Signal K server on a specific Signal K path.
SKOutputNumeric(String sk_path, String config_path="", SKMetadata *meta=nullptr)