From 2f6c54a1252411430c6e45cbf8c8c81f92683d2f Mon Sep 17 00:00:00 2001 From: PSONALl Date: Thu, 5 Oct 2023 16:04:53 +0530 Subject: [PATCH] Add support of ethernet in ble-mesh platform --- .../blemesh_platform/platform/ESP32_custom/BUILD.gn | 8 ++++++++ .../ESP32_custom/NetworkCommissioningDriver_Ethernet.cpp | 1 + 2 files changed, 9 insertions(+) create mode 120000 examples/common/blemesh_platform/platform/ESP32_custom/NetworkCommissioningDriver_Ethernet.cpp diff --git a/examples/common/blemesh_platform/platform/ESP32_custom/BUILD.gn b/examples/common/blemesh_platform/platform/ESP32_custom/BUILD.gn index cd416139e..64e18cca9 100644 --- a/examples/common/blemesh_platform/platform/ESP32_custom/BUILD.gn +++ b/examples/common/blemesh_platform/platform/ESP32_custom/BUILD.gn @@ -33,6 +33,7 @@ declare_args() { chip_max_discovered_ip_addresses = 5 chip_use_secure_cert_dac_provider = false chip_use_esp32_ecdsa_peripheral = false + chip_enable_ethernet = false chip_enable_route_hook = false } @@ -171,6 +172,13 @@ static_library("ESP32_custom") { } } + if (chip_enable_ethernet) { + sources += [ + "ConnectivityManagerImpl_Ethernet.cpp", + "NetworkCommissioningDriver_Ethernet.cpp", + ] + } + if (chip_mdns == "platform") { sources += [ "DnssdImpl.cpp" ] } diff --git a/examples/common/blemesh_platform/platform/ESP32_custom/NetworkCommissioningDriver_Ethernet.cpp b/examples/common/blemesh_platform/platform/ESP32_custom/NetworkCommissioningDriver_Ethernet.cpp new file mode 120000 index 000000000..1b21b9c42 --- /dev/null +++ b/examples/common/blemesh_platform/platform/ESP32_custom/NetworkCommissioningDriver_Ethernet.cpp @@ -0,0 +1 @@ +../../../../../connectedhomeip/connectedhomeip/src/platform/ESP32/NetworkCommissioningDriver_Ethernet.cpp \ No newline at end of file