丢弃首次连接APP发送过来的数据转发

This commit is contained in:
OPTOC
2025-10-27 18:34:02 +08:00
parent 4d633454e9
commit b479ee103a
3 changed files with 10 additions and 0 deletions

View File

@@ -91,6 +91,7 @@ static void ble_server_connect_handler(ble_server_status_t status)
if(res == DEVICE_PC_ERROR){
}
device_wifi_stop();
device_inside->ble_one_connect_flag = 1;
SYS_LOG_INF("ble Connected");
} else if(status == BLE_SERVER_STATUS_DISCONNECTED){
uint8_t res = pc_device_choice_inside(NULL, DATA_PORT_TYPE_BLE_VAL, DISCONNECT);