@@ -35,15 +35,10 @@ assert(target_os == "freertos")
35
35
assert (nxp_platform == " rt/rw61x" )
36
36
37
37
declare_args () {
38
- # Allows to start the tcp download test app
39
- tcp_download = false
40
-
41
- # Allows to start the wifi connect test app
42
- wifi_connect = false
43
-
44
- # The 2 params below are used only if tcp_download or wifi_connect are true, otherwise they're unused.
45
- wifi_ssid = " "
46
- wifi_password = " "
38
+ # Allows to connect to a predefine Wi-Fi network at boot
39
+ wifi_auto_connect_at_boot = false
40
+ wifi_auto_connect_at_boot_ssid = " "
41
+ wifi_auto_connect_at_boot_password = " "
47
42
48
43
# Setup discriminator as argument
49
44
setup_discriminator = 3840
@@ -53,10 +48,6 @@ example_platform_dir =
53
48
" ${ nxp_sdk_matter_support_root } /examples/platform/${ nxp_platform } "
54
49
common_example_dir = " ${ chip_root } /examples/platform/nxp/common"
55
50
56
- if (tcp_download == true && wifi_connect == true ) {
57
- assert (" Cannot enable tcp_download and wifi_connect at the same time!" )
58
- }
59
-
60
51
# Use NXP custom zap files for laundry-washer device-type
61
52
app_common_folder = " laundry-washer-app/nxp/zap"
62
53
@@ -218,42 +209,20 @@ rt_executable("laundry-washer") {
218
209
]
219
210
}
220
211
221
- if (wifi_connect ) {
212
+ if (wifi_auto_connect_at_boot ) {
213
+ assert (wifi_auto_connect_at_boot_ssid != " " && wifi_auto_connect_at_boot_password != " " ,
214
+ " WiFi SSID and password must be specified at build time!" )
215
+
222
216
defines += [
223
- " WIFI_CONNECT_TASK=1" ,
224
- " WIFI_CONNECT=1" ,
217
+ " CONFIG_CHIP_APP_WIFI_CONNECT_AT_BOOT=1" ,
218
+ " CONFIG_CHIP_APP_WIFI_SSID=\" ${ wifi_auto_connect_at_boot_ssid } \" " ,
219
+ " CONFIG_CHIP_APP_WIFI_PASSWORD=\" ${ wifi_auto_connect_at_boot_password } \" " ,
225
220
]
226
221
227
- if (! chip_enable_matter_cli ) {
228
- assert (wifi_ssid != " " && wifi_password != " " ,
229
- " WiFi SSID and password must be specified at build time!" )
230
- }
231
-
232
- if (wifi_ssid != " " ) {
233
- defines += [ " WIFI_SSID=\" ${ wifi_ssid } \" " ]
234
- }
235
-
236
- if (wifi_password != " " ) {
237
- defines += [ " WIFI_PASSWORD=\" ${ wifi_password } \" " ]
238
- }
239
-
240
222
include_dirs += [ " ${ common_example_dir } /wifi_connect/include" ]
241
223
sources += [ " ${ common_example_dir } /wifi_connect/source/WifiConnect.cpp" ]
242
224
}
243
225
244
- if (tcp_download ) {
245
- defines += [ " CONFIG_CHIP_TCP_DOWNLOAD=1" ]
246
- defines += [
247
- " WIFI_CONNECT=1" ,
248
- " WIFI_SSID=\" ${ wifi_ssid } \" " ,
249
- " WIFI_PASSWORD=\" ${ wifi_password } \" " ,
250
- ]
251
-
252
- include_dirs += [ " ${ common_example_dir } /tcp_download_test/include" ]
253
- sources +=
254
- [ " ${ common_example_dir } /tcp_download_test/source/TcpDownload.cpp" ]
255
- }
256
-
257
226
# In case a dedicated assert function needs to be supported the flag sdk_fsl_assert_support should be set to false
258
227
# The would add to the build a dedicated application assert implementation.
259
228
if (! sdk_fsl_assert_support ) {
0 commit comments