FastLED
3.9.15
Loading...
Searching...
No Matches
AutoResearchBle.h
Go to the documentation of this file.
1
// examples/AutoResearch/AutoResearchBle.h
2
//
3
// BLE autoresearch for ESP32: GATT server for JSON-RPC over BLE.
4
// Used by `bash autoresearch --ble`.
5
//
6
// The ESP32 starts a BLE GATT server with a custom service.
7
// The host Python script connects via Bleak and tests
8
// bidirectional JSON-RPC communication (ping/pong).
9
//
10
// NOTE: BLE transport creation/destruction is handled by
11
// AutoResearchRemoteControl::startBleRemote()/stopBleRemote().
12
// This file provides state accessors only.
13
14
#pragma once
15
16
#include "
fl/stl/stdint.h
"
17
18
// BLE configuration constants
19
#define AUTORESEARCH_BLE_DEVICE_NAME "FastLED-C6"
20
22
struct
AutoResearchBleState
{
23
bool
ble_server_active
=
false
;
24
};
25
28
AutoResearchBleState
&
getBleState
();
getBleState
AutoResearchBleState & getBleState()
Get current BLE autoresearch state.
Definition
AutoResearchBle.cpp:12
AutoResearchBleState::ble_server_active
bool ble_server_active
Definition
AutoResearchBle.h:23
AutoResearchBleState
State for BLE autoresearch.
Definition
AutoResearchBle.h:22
stdint.h
examples
AutoResearch
AutoResearchBle.h
Generated on Tue Jun 16 2026 00:06:58 for FastLED by
1.13.2