SensESP 2.7.2
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
lambda_transform.cpp
Go to the documentation of this file.
1#include "lambda_transform.h"
2
3namespace sensesp {
4
5template <>
6const char* get_schema_type_string(const int dummy) {
7 return "number";
8}
9
10template <>
11const char* get_schema_type_string(const float dummy) {
12 return "number";
13}
14
15template <>
17 return "string";
18}
19
20template <>
21const char* get_schema_type_string(const bool dummy) {
22 return "boolean";
23}
24
25} // namespace sensesp
Construct a new transform based on a single function.
const char * get_schema_type_string(const int dummy)