Add BLE name command definitions to pm3_cmd.h

Signed-off-by: Niel Nielsen <nieldk@gmail.com>
This commit is contained in:
Niel Nielsen authored and GitHub committed 2026-09-12 13:27:00 +02:00
1 parent 9d587e3dcc
commit 945619c2d5
1 file changed
+4
+4
View File
@@ -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