FastLED
3.10.8
Loading...
Searching...
No Matches
AutoResearchBle.cpp
Go to the documentation of this file.
1
// examples/AutoResearch/AutoResearchBle.cpp
2
//
3
// BLE autoresearch state accessor.
4
// BLE transport creation/destruction is handled by
5
// AutoResearchRemoteControl::startBleRemote()/stopBleRemote() in AutoResearchRemote.cpp.
6
7
// Gate the entire file out under low-memory mode -- the LowMemory bring-up
8
// surface (AutoResearchLowMemory.h) doesn't use BLE state and the full
9
// fl::net BLE stack does not fit on parts like LPC845-BRK (64 KB flash).
10
// Matches the conditional structure in AutoResearch.ino itself.
11
#include "
fl/system/sketch_macros.h
"
12
#if FL_PLATFORM_HAS_LARGE_MEMORY
13
14
#include "
AutoResearchBle.h
"
15
#include "
fl/stl/singleton.h
"
16
17
struct
BleStateHolder {
18
AutoResearchBleState
state
;
19
};
20
21
AutoResearchBleState
&
getBleState
() {
22
return
fl::Singleton<BleStateHolder>::instance
().state;
23
}
24
25
#endif
// FL_PLATFORM_HAS_LARGE_MEMORY
getBleState
AutoResearchBleState & getBleState()
Get current BLE autoresearch state.
AutoResearchBle.h
AutoResearchBleState
State for BLE autoresearch.
Definition
AutoResearchBle.h:37
state
TestState state
Definition
ClientValidationReal.h:49
fl::Singleton::instance
static T & instance() FL_NO_EXCEPT
Definition
singleton.h:41
singleton.h
sketch_macros.h
examples
AutoResearch
AutoResearchBle.cpp
Generated on Sun Oct 18 2026 00:56:49 for FastLED by
1.13.2