Skip to content

Commit 93aae44

Browse files
committed
Revert "[nxp fromtree] [NXP] Add multiple ble connections support (project-chip#35645)"
This reverts commit aec7b2f. Signed-off-by: Gatien Chapon <gatien.chapon@nxp.com>
1 parent 4615547 commit 93aae44

File tree

17 files changed

+31
-373
lines changed

17 files changed

+31
-373
lines changed

examples/contact-sensor-app/nxp/k32w1/BUILD.gn

-2
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,9 @@ mcxw71_k32w1_executable("contact_sensor_app") {
139139
"${common_example_dir}/low_power/include",
140140
"${common_example_dir}/operational_keystore/include",
141141
"${common_example_dir}/ui_feedback/include",
142-
"${common_example_dir}/app_ble/include",
143142
]
144143

145144
sources += [
146-
"${common_example_dir}/app_ble/source/BLEApplicationManagerEmpty.cpp",
147145
"${common_example_dir}/app_task/source/AppTaskBase.cpp",
148146
"${common_example_dir}/app_task/source/AppTaskFreeRTOS.cpp",
149147
"${common_example_dir}/clusters/source/ZclCallbacks.cpp",

examples/contact-sensor-app/nxp/mcxw71/BUILD.gn

-2
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,9 @@ mcxw71_k32w1_executable("contact_sensor_app") {
138138
"${common_example_dir}/low_power/include",
139139
"${common_example_dir}/operational_keystore/include",
140140
"${common_example_dir}/ui_feedback/include",
141-
"${common_example_dir}/app_ble/include",
142141
]
143142

144143
sources += [
145-
"${common_example_dir}/app_ble/source/BLEApplicationManagerEmpty.cpp",
146144
"${common_example_dir}/app_task/source/AppTaskBase.cpp",
147145
"${common_example_dir}/app_task/source/AppTaskFreeRTOS.cpp",
148146
"${common_example_dir}/clusters/source/ZclCallbacks.cpp",

examples/lighting-app/nxp/k32w1/BUILD.gn

-2
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,9 @@ mcxw71_k32w1_executable("light_app") {
146146
"${common_example_dir}/operational_keystore/include",
147147
"${common_example_dir}/rpc/include",
148148
"${common_example_dir}/ui_feedback/include",
149-
"${common_example_dir}/app_ble/include",
150149
]
151150

152151
sources += [
153-
"${common_example_dir}/app_ble/source/BLEApplicationManagerEmpty.cpp",
154152
"${common_example_dir}/app_task/source/AppTaskBase.cpp",
155153
"${common_example_dir}/app_task/source/AppTaskFreeRTOS.cpp",
156154
"${common_example_dir}/clusters/source/ZclCallbacks.cpp",

examples/lighting-app/nxp/mcxw71/BUILD.gn

-2
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,9 @@ mcxw71_k32w1_executable("light_app") {
146146
"${common_example_dir}/operational_keystore/include",
147147
"${common_example_dir}/rpc/include",
148148
"${common_example_dir}/ui_feedback/include",
149-
"${common_example_dir}/app_ble/include",
150149
]
151150

152151
sources += [
153-
"${common_example_dir}/app_ble/source/BLEApplicationManagerEmpty.cpp",
154152
"${common_example_dir}/app_task/source/AppTaskBase.cpp",
155153
"${common_example_dir}/app_task/source/AppTaskFreeRTOS.cpp",
156154
"${common_example_dir}/clusters/source/ZclCallbacks.cpp",

examples/lock-app/nxp/common/main/AppTask.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
*/
2020

2121
#include "AppTask.h"
22-
#include "BLEApplicationManager.h"
2322
#include "CHIPDeviceManager.h"
2423
#include "LockManager.h"
2524
#include <app-common/zap-generated/attributes/Accessors.h>
@@ -116,9 +115,6 @@ static CHIP_ERROR cliDoorLock(int argc, char * argv[])
116115
void LockApp::AppTask::PreInitMatterStack()
117116
{
118117
ChipLogProgress(DeviceLayer, "Welcome to NXP Lock Demo App");
119-
120-
/* BLEApplicationManager implemented per platform or left blank */
121-
chip::NXP::App::BleAppMgr().Init();
122118
}
123119

124120
void LockApp::AppTask::PostInitMatterStack()

examples/lock-app/nxp/k32w1/BUILD.gn

-18
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,6 @@ mcxw71_k32w1_sdk("sdk") {
9292
"${example_platform_dir}/board/peripherals.h",
9393
]
9494
}
95-
96-
if (nxp_multiple_ble_connections) {
97-
include_dirs += [ "${example_platform_dir}/app_ble/include" ]
98-
defines += [
99-
"EXTRA_GATT_DB_HEADER=\"extra_gatt_db.h\"",
100-
"EXTRA_GATT_UUID_HEADER=\"extra_gatt_uuid128.h\"",
101-
]
102-
}
10395
}
10496

10597
mcxw71_k32w1_executable("lock_app") {
@@ -148,7 +140,6 @@ mcxw71_k32w1_executable("lock_app") {
148140
"${common_example_dir}/low_power/include",
149141
"${common_example_dir}/operational_keystore/include",
150142
"${common_example_dir}/ui_feedback/include",
151-
"${common_example_dir}/app_ble/include",
152143
]
153144

154145
sources += [
@@ -198,15 +189,6 @@ mcxw71_k32w1_executable("lock_app") {
198189
deps += [ "${chip_root}/src/platform/nxp:nxp_ota" ]
199190
}
200191

201-
if (nxp_multiple_ble_connections) {
202-
sources +=
203-
[ "${example_platform_dir}/app_ble/source/BLEApplicationManager.cpp" ]
204-
} else {
205-
sources += [
206-
"${common_example_dir}/app_ble/source/BLEApplicationManagerEmpty.cpp",
207-
]
208-
}
209-
210192
if (chip_with_diag_logs_demo) {
211193
sources += [
212194
"${common_example_dir}/diagnostic_logs/source/DiagnosticLogsDemo.cpp",

examples/lock-app/nxp/k32w1/README.md

-13
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ For generic information related to door lock application, please see the
1212
- [Flashing the host image](#flashing-the-host-image)
1313
- [Debugging](#debugging)
1414
- [OTA](#ota)
15-
- [Multiple BLE connections](#multiple-ble-connections)
1615

1716
## Introduction
1817

@@ -164,15 +163,3 @@ Run -> Debug Configurations... -> C/C++ Application
164163
165164
Please see
166165
[k32w1 OTA guide](../../../../docs/guides/nxp/nxp_mcxw71_ota_guide.md).
167-
168-
## Multiple BLE connections
169-
170-
To compile with the Multiple BLE connections support demo example add the gn
171-
argument `nxp_multiple_ble_connections=true`.
172-
173-
The application will accept multiple BLE connections after commissioning, by
174-
pressing the BLE advertise button again. Once discovered by a BLE central, a
175-
custom GATT service will be visible on the device.
176-
177-
The user can change the default behavior by implementing the class defined in
178-
[BLEApplicationManager.h](../../../platform/nxp/common/app_ble/include/BLEApplicationManager.h)

examples/lock-app/nxp/mcxw71/BUILD.gn

-18
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,6 @@ mcxw71_k32w1_sdk("sdk") {
9292
"${example_platform_dir}/board/peripherals.h",
9393
]
9494
}
95-
96-
if (nxp_multiple_ble_connections) {
97-
include_dirs += [ "${example_platform_dir}/app_ble/include" ]
98-
defines += [
99-
"EXTRA_GATT_DB_HEADER=\"extra_gatt_db.h\"",
100-
"EXTRA_GATT_UUID_HEADER=\"extra_gatt_uuid128.h\"",
101-
]
102-
}
10395
}
10496

10597
mcxw71_k32w1_executable("lock_app") {
@@ -148,7 +140,6 @@ mcxw71_k32w1_executable("lock_app") {
148140
"${common_example_dir}/low_power/include",
149141
"${common_example_dir}/operational_keystore/include",
150142
"${common_example_dir}/ui_feedback/include",
151-
"${common_example_dir}/app_ble/include",
152143
]
153144

154145
sources += [
@@ -198,15 +189,6 @@ mcxw71_k32w1_executable("lock_app") {
198189
deps += [ "${chip_root}/src/platform/nxp:nxp_ota" ]
199190
}
200191

201-
if (nxp_multiple_ble_connections) {
202-
sources +=
203-
[ "${example_platform_dir}/app_ble/source/BLEApplicationManager.cpp" ]
204-
} else {
205-
sources += [
206-
"${common_example_dir}/app_ble/source/BLEApplicationManagerEmpty.cpp",
207-
]
208-
}
209-
210192
if (chip_with_diag_logs_demo) {
211193
sources += [
212194
"${common_example_dir}/diagnostic_logs/source/DiagnosticLogsDemo.cpp",

examples/lock-app/nxp/mcxw71/README.md

-13
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ For generic information related to door lock application, please see the
1212
- [Flashing the host image](#flashing-the-host-image)
1313
- [Debugging](#debugging)
1414
- [OTA](#ota)
15-
- [Multiple BLE connections](#multiple-ble-connections)
1615

1716
## Introduction
1817

@@ -196,15 +195,3 @@ Run -> Debug Configurations... -> C/C++ Application
196195
197196
Please see
198197
[mcxw71 OTA guide](../../../../docs/guides/nxp/nxp_mcxw71_ota_guide.md).
199-
200-
## Multiple BLE connections
201-
202-
To compile with the Multiple BLE connections support demo example add the gn
203-
argument `nxp_multiple_ble_connections=true`.
204-
205-
The application will accept multiple BLE connections after commissioning, by
206-
pressing the BLE advertise button again. Once discovered by a BLE central, a
207-
custom GATT service will be visible on the device.
208-
209-
The user can change the default behavior by implementing the class defined in
210-
[BLEApplicationManager.h](../../../platform/nxp/common/app_ble/include/BLEApplicationManager.h)

examples/platform/nxp/common/app_ble/include/BLEApplicationManager.h

-49
This file was deleted.

examples/platform/nxp/common/app_ble/source/BLEApplicationManagerEmpty.cpp

-39
This file was deleted.

examples/platform/nxp/mcxw71_k32w1/app_ble/include/extra_gatt_db.h

-4
This file was deleted.

examples/platform/nxp/mcxw71_k32w1/app_ble/include/extra_gatt_uuid128.h

-23
This file was deleted.

0 commit comments

Comments
 (0)