BLE-Gamepad-Client 0.3.2
Loading...
Searching...
No Matches
config.h
1#pragma once
2
3#include <nimconfig.h>
4#include <nimble/console/console.h>
5
6#ifndef CONFIG_BT_BLEGC_LOG_LEVEL
7#if defined(ARDUINO_ARCH_ESP32) && defined(CORE_DEBUG_LEVEL)
8#define CONFIG_BT_BLEGC_LOG_LEVEL CORE_DEBUG_LEVEL
9#else
10#define CONFIG_BT_BLEGC_LOG_LEVEL 0
11#endif
12#endif
13
14#ifndef CONFIG_BT_BLEGC_LOGGER
15#define CONFIG_BT_BLEGC_LOGGER console_printf
16#endif
17
18#ifndef CONFIG_BT_BLEGC_SCAN_DURATION_MS
19#define CONFIG_BT_BLEGC_SCAN_DURATION_MS 30000
20#endif
21
22#ifndef CONFIG_BT_BLEGC_CONN_TIMEOUT_MS
23#define CONFIG_BT_BLEGC_CONN_TIMEOUT_MS 15000
24#endif
25
26#ifndef CONFIG_BT_BLEGC_DEVICE_NAME
27#define CONFIG_BT_BLEGC_DEVICE_NAME "ESP32"
28#endif
29
30#ifndef CONFIG_BT_BLEGC_POWER_DBM
31#define CONFIG_BT_BLEGC_POWER_DBM 3
32#endif
33
34#ifndef CONFIG_BT_BLEGC_SECURITY_IO_CAP
35#define CONFIG_BT_BLEGC_SECURITY_IO_CAP BLE_HS_IO_NO_INPUT_OUTPUT
36#endif
37
38#ifndef CONFIG_BT_BLEGC_SECURITY_AUTH
39#define CONFIG_BT_BLEGC_SECURITY_AUTH BLE_SM_PAIR_AUTHREQ_BOND | BLE_SM_PAIR_AUTHREQ_MITM | BLE_SM_PAIR_AUTHREQ_SC
40#endif