fix ble connection , ok !
This commit is contained in:
+17
-8
@@ -26,11 +26,11 @@
|
||||
// =============================================================================
|
||||
namespace Pins {
|
||||
// ── E-Ink display ─────────────────────────────────────────────────────────
|
||||
constexpr uint8_t EPD_CS = 9; ///< Chip Select
|
||||
constexpr uint8_t EPD_DC = 8; ///< Data/Command
|
||||
constexpr uint8_t EPD_RST = 7; ///< Reset
|
||||
constexpr uint8_t EPD_BUSY = 6; ///< Busy signal (active LOW)
|
||||
constexpr uint8_t EPD_SCK = 10; ///< SPI clock (HSPI SCK)
|
||||
constexpr uint8_t EPD_CS = 7; ///< Chip Select
|
||||
constexpr uint8_t EPD_DC = 6; ///< Data/Command
|
||||
constexpr uint8_t EPD_RST = 5; ///< Reset
|
||||
constexpr uint8_t EPD_BUSY = 4; ///< Busy signal (active LOW)
|
||||
constexpr uint8_t EPD_SCK = 12; ///< SPI clock (HSPI SCK)
|
||||
constexpr uint8_t EPD_MOSI = 11; ///< SPI MOSI (HSPI MOSI)
|
||||
|
||||
// ── Capacitive touch buttons (ESP32-S3 native touch) ─────────────────────
|
||||
@@ -80,9 +80,18 @@ namespace BleUUID {
|
||||
// =============================================================================
|
||||
namespace BleConfig {
|
||||
constexpr const char* DEVICE_NAME = BLE_DEVICE_NAME;
|
||||
constexpr uint32_t SCAN_DURATION = 10; ///< seconds per scan window
|
||||
constexpr uint32_t RECONNECT_MS = 5000; ///< delay before reconnect attempt
|
||||
constexpr uint32_t STALE_TIMEOUT = 15; ///< seconds before data is marked stale
|
||||
// Optional fixed BLE address ("aa:bb:cc:dd:ee:ff"). Keep empty to disable.
|
||||
constexpr const char* TARGET_ADDR = "";
|
||||
// Fallback name fragment (case-insensitive) for peripherals that do not
|
||||
// expose the full local name in every advertisement packet.
|
||||
constexpr const char* NAME_FALLBACK = "MarineGateway";
|
||||
// Some firmwares expose only a 16-bit service UUID in advertising payload.
|
||||
// 0xFE9F observed in field logs.
|
||||
constexpr uint16_t FALLBACK_SVC16 = 0xFE9F;
|
||||
constexpr uint32_t DEFAULT_PASSKEY = 123456; ///< default pairing PIN used if UI has not overridden it
|
||||
constexpr uint32_t SCAN_DURATION = 10000; ///< scan window in milliseconds
|
||||
constexpr uint32_t RECONNECT_MS = 5000; ///< delay before reconnect attempt
|
||||
constexpr uint32_t STALE_TIMEOUT = 15; ///< seconds before data is marked stale
|
||||
}
|
||||
|
||||
// =============================================================================
|
||||
|
||||
Reference in New Issue
Block a user