From 945619c2d53d7bfd879f4af55d3d26d3686d6749 Mon Sep 17 00:00:00 2001 From: Niel Nielsen Date: Sat, 12 Sep 2026 13:27:00 +0200 Subject: [PATCH] Add BLE name command definitions to pm3_cmd.h Signed-off-by: Niel Nielsen --- include/pm3_cmd.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/pm3_cmd.h b/include/pm3_cmd.h index c0268adcd..6e64e12f8 100644 --- a/include/pm3_cmd.h +++ b/include/pm3_cmd.h @@ -895,6 +895,10 @@ typedef struct { #define CMD_PM5_BWM_WIFI 0x017C #define CMD_PM5_BWM_SET_VCHG 0x017D #define CMD_PM5_BWM_ESP_OTA 0x017E +#define CMD_PM5_BWM_BLE_NAME 0x017F // payload: [action:u8][name bytes if SET] +#define BWM_BLE_NAME_ACTION_GET 0x00 // resp: current BLE device name string +#define BWM_BLE_NAME_ACTION_SET 0x01 // req: name bytes follow the action byte; BWM reboots to apply +#define BWM_BLE_NAME_MAX_LEN 31 // usable chars; ESP name buffer is 32 incl NUL #define BWM_OTA_ACTION_BEGIN 0x00 #define BWM_OTA_ACTION_WRITE 0x01 #define BWM_OTA_ACTION_END 0x02