From 68bf37ccba5f13bf0f772904f37359beb92d3c94 Mon Sep 17 00:00:00 2001 From: tcfshcrw <48719709+tcfshcrw@users.noreply.github.com> Date: Sun, 17 Nov 2024 16:24:08 +0800 Subject: [PATCH] remove bridge hardware pairing --- ESP32_master/include/Main.h | 2 +- ESP32_master/src/Main.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ESP32_master/include/Main.h b/ESP32_master/include/Main.h index 3289554f..73bc2740 100644 --- a/ESP32_master/include/Main.h +++ b/ESP32_master/include/Main.h @@ -200,7 +200,7 @@ #define USING_LED #define LED_ENABLE_WAVESHARE #define LED_GPIO 38 - #define Pairing_GPIO 0 + #define Pairing_GPIO 12 #define SERIAL_COOMUNICATION_TASK_DELAY_IN_MS 5 #define ESPNow_Pairing_function #define deviceID 99 diff --git a/ESP32_master/src/Main.cpp b/ESP32_master/src/Main.cpp index 1acec0a6..1f8bf64e 100644 --- a/ESP32_master/src/Main.cpp +++ b/ESP32_master/src/Main.cpp @@ -536,7 +536,7 @@ void ESPNOW_SyncTask( void * pvParameters ) //timeout check if(now-Pairing_state_start>Pairing_timeout) { - Serial.println("[L]Bridge Timeout!"); + Serial.println("[L]Bridge Pairing timeout!"); ESPNow_pairing_action_b=false; LED_Status=0; if(UpdatePairingToEeprom) @@ -556,8 +556,10 @@ void ESPNOW_SyncTask( void * pvParameters ) Serial.print(i); Serial.print("Pair: "); Serial.print(ESP_pairing_reg_local.Pair_status[i]); - Serial.printf(" Mac: %02X:%02X:%02X:%02X:%02X:%02X\n", ESP_pairing_reg_local.Pair_mac[i][0], ESP_pairing_reg_local.Pair_mac[i][1], ESP_pairing_reg_local.Pair_mac[i][2], ESP_pairing_reg_local.Pair_mac[i][3], ESP_pairing_reg_local.Pair_mac[i][4], ESP_pairing_reg_local.Pair_mac[i][5]); + Serial.printf(" Mac: %02X:%02X:%02X:%02X:%02X:%02X", ESP_pairing_reg_local.Pair_mac[i][0], ESP_pairing_reg_local.Pair_mac[i][1], ESP_pairing_reg_local.Pair_mac[i][2], ESP_pairing_reg_local.Pair_mac[i][3], ESP_pairing_reg_local.Pair_mac[i][4], ESP_pairing_reg_local.Pair_mac[i][5]); + Serial.println(""); } + Serial.println(""); } Serial.println(""); //adding peer