Skip to content

Commit

Permalink
remove bridge hardware pairing
Browse files Browse the repository at this point in the history
  • Loading branch information
tcfshcrw committed Nov 17, 2024
1 parent e89c11e commit 68bf37c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ESP32_master/include/Main.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions ESP32_master/src/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down

0 comments on commit 68bf37c

Please sign in to comment.