SensESP 3.4.1-alpha
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
8
9template <>
10const char* get_schema_type_string(const int /*dummy*/) {
11 return "number";
12}
13
14template <>
15const char* get_schema_type_string(const float /*dummy*/) {
16 return "number";
17}
18
19template <>
20const char* get_schema_type_string(const String& /*dummy*/) {
21 return "string";
22}
23
24template <>
25const char* get_schema_type_string(const bool /*dummy*/) {
26 return "boolean";
27}
28
29} // namespace sensesp
static std::map< String, std::shared_ptr< ConfigItemBase > > config_items_
static void clear_registry()
Empty the config item registry.
const char * get_schema_type_string(const int)