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
3
namespace
sensesp
{
4
5
std::map<String, std::shared_ptr<ConfigItemBase>>
ConfigItemBase::config_items_
;
6
7
template
<>
8
const
char
*
get_schema_type_string
(
const
int
/*dummy*/
) {
9
return
"number"
;
10
}
11
12
template
<>
13
const
char
*
get_schema_type_string
(
const
float
/*dummy*/
) {
14
return
"number"
;
15
}
16
17
template
<>
18
const
char
*
get_schema_type_string
(
const
String&
/*dummy*/
) {
19
return
"string"
;
20
}
21
22
template
<>
23
const
char
*
get_schema_type_string
(
const
bool
/*dummy*/
) {
24
return
"boolean"
;
25
}
26
27
}
// namespace sensesp
sensesp::ConfigItemBase::config_items_
static std::map< String, std::shared_ptr< ConfigItemBase > > config_items_
Definition
config_item.h:172
config_item.h
sensesp
Definition
sensesp.cpp:7
sensesp::get_schema_type_string
const char * get_schema_type_string(const int)
Definition
config_item.cpp:8
src
sensesp
ui
config_item.cpp
Generated by
1.12.0