SensESP 2.7.2
Universal Signal K sensor toolkit ESP32
Loading...
Searching...
No Matches
sensesp.h
Go to the documentation of this file.
1#ifndef _SENSESP_H_
2#define _SENSESP_H_
3
4#include <ReactESP.h>
5
6#ifdef REMOTE_DEBUG
7#include <RemoteDebug.h>
8#ifndef DEBUG_DISABLED
9#define DEBUG_CLASS RemoteDebug
10#endif // DEBUG_DISABLED
11#else // REMOTE_DEBUG
13#ifndef DEBUG_DISABLED
14#define DEBUG_CLASS LocalDebug
15#endif // DEBUG_DISABLED
16#endif // REMOTE_DEBUG
17
18#if ESP8266
19#error "ESP8266 isn't supported by SensESP version 2. To compile an existing project, add @^1.0.0 to the SensESP depdenency in platformio.ini."
20#endif
21
22namespace sensesp {
23
24// Typically, pulling a namespace into another is something to be avoided,
25// but ReactESP and SensESP are tightly knit together, and having to explicitly
26// manage the reactesp namespace might be confusing for some users.
27using namespace reactesp;
28
29typedef std::function<void()> void_cb_func;
30
31#ifndef DEBUG_DISABLED
32extern DEBUG_CLASS Debug;
33#endif
34
35} // namespace sensesp
36
37#endif
Construct a new transform based on a single function.
DEBUG_CLASS Debug
std::function< void()> void_cb_func
Definition sensesp.h:29
#define DEBUG_CLASS
Definition sensesp.h:14