SensESP 3.0.1
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
config_item.cpp
Go to the documentation of this file.
1#include "config_item.h"
2
3namespace sensesp {
4
5std::map<String, std::shared_ptr<ConfigItemBase>> ConfigItemBase::config_items_;
6
7template <>
8const char* get_schema_type_string(const int /*dummy*/) {
9 return "number";
10}
11
12template <>
13const char* get_schema_type_string(const float /*dummy*/) {
14 return "number";
15}
16
17template <>
18const char* get_schema_type_string(const String& /*dummy*/) {
19 return "string";
20}
21
22template <>
23const char* get_schema_type_string(const bool /*dummy*/) {
24 return "boolean";
25}
26
27} // namespace sensesp
static std::map< String, std::shared_ptr< ConfigItemBase > > config_items_
const char * get_schema_type_string(const int)