Work more on Bluetti

This commit is contained in:
2026-06-06 18:23:23 +10:00
parent d532c7da89
commit 8c7b28a82b
5 changed files with 235 additions and 21 deletions
+4 -1
View File
@@ -27,7 +27,10 @@
#include "mbedtls/aes.h"
// --- Constants ---
static constexpr uint16_t BLUETTI_COMPANY_ID = 0x0F06; // Poweroak / Bluetti
static constexpr uint16_t BLUETTI_COMPANY_ID = 0x0F06; // Poweroak: encrypted telemetry
// Newer Elite/V2 units advertise a static "BLUETT" nameplate (company id 0x4C42)
// instead of the 0x0F06 telemetry broadcast — i.e. no monitoring data over BLE ADV.
static constexpr uint16_t BLUETTI_NAMEPLATE_ID = 0x4C42;
static constexpr int BLUETTI_ADV_MAX_DEVICES = 4;
static constexpr int BLUETTI_ADV_MAC_LEN = 13; // 12 hex chars + null
static constexpr int BLUETTI_ADV_NAME_LEN = 32;