From 052e25b45d9164b75941565940ffcb9720c398cb Mon Sep 17 00:00:00 2001 From: zhaohe Date: Wed, 28 Aug 2024 17:04:05 +0800 Subject: [PATCH] update --- ble_through/ble_proto.h | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/ble_through/ble_proto.h b/ble_through/ble_proto.h index b08d789..2f1dd29 100644 --- a/ble_through/ble_proto.h +++ b/ble_through/ble_proto.h @@ -48,10 +48,11 @@ typedef enum { kzble_cmd_set_in_dfu_mode = 104, // param:{} receipt:{} kzble_cmd_clear_reset_flag = 105, // - kzble_report_connected_event = 150, // zble_connected_event_t - kzble_report_scan_result = 151, // zble_scan_result_t - kzble_report_power_on = 152, // - kzble_report_heart = 153, // zble_heart_t + kzble_report_connected_event = 150, // zble_connected_event_t + kzble_report_scan_result = 151, // zble_scan_result_t + kzble_report_power_on = 152, // + kzble_report_heart = 153, // zble_heart_t + kzble_report_disconnect_event = 154, // kzble_app_cmd_set_state = 200, // params:workmode(hand_acid_mode_t),pumpworkstate(0:notwork,1:work) kzble_app_report_key_event = 250, // params:hand_acid_remoter_key_event_t @@ -64,15 +65,17 @@ typedef struct { } zble_start_scan_t; typedef struct { - uint8_t connected; - char blename[20]; - char bleid[20]; + char blename[30]; + uint8_t peeradd[6]; + uint8_t rssi; + int8_t tx_power; } zble_connected_event_t; typedef struct { - char blename[20]; - char bleid[20]; + char blename[30]; + uint8_t peeradd[6]; uint8_t rssi; + int8_t tx_power; } zble_scan_result_t; typedef struct {