Skip to content

Commit 78a11e5

Browse files
authored
feat(matter): limit it to WiFi only
1 parent 939fd5e commit 78a11e5

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

libraries/Matter/examples/MatterLambdaSingleCallbackManyEPs/MatterLambdaSingleCallbackManyEPs.ino

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,11 @@
1414

1515
// Matter Manager
1616
#include <Matter.h>
17-
18-
#if !CONFIG_ENABLE_CHIPOBLE
19-
// if the device can be commissioned using BLE, WiFi is not used - save flash space
2017
#include <WiFi.h>
2118

22-
// CONFIG_ENABLE_CHIPOBLE is enabled when BLE is used to commission the Matter Network
2319
// WiFi is manually set and started
2420
const char *ssid = "your-ssid"; // Change this to your WiFi SSID
2521
const char *password = "your-password"; // Change this to your WiFi password
26-
#endif
2722

2823
//number of On-Off Lights:
2924
const uint8_t MAX_LIGHT_NUMBER = 6;
@@ -48,8 +43,6 @@ const char *lightName[MAX_LIGHT_NUMBER] = {
4843
void setup() {
4944
Serial.begin(115200); // callback will just print a message in the console
5045

51-
// CONFIG_ENABLE_CHIPOBLE is enabled when BLE is used to commission the Matter Network
52-
#if !CONFIG_ENABLE_CHIPOBLE
5346
// We start by connecting to a WiFi network
5447
Serial.print("Connecting to ");
5548
Serial.println(ssid);
@@ -64,7 +57,6 @@ void setup() {
6457
Serial.println("IP address: ");
6558
Serial.println(WiFi.localIP());
6659
delay(500);
67-
#endif
6860

6961
// setup all the OnOff Light endpoint and their lambda callback functions
7062
for (uint8_t i = 0; i < MAX_LIGHT_NUMBER; i++) {

0 commit comments

Comments
 (0)