File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
libraries/Matter/examples/MatterLambdaSingleCallbackManyEPs Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change 14
14
15
15
// Matter Manager
16
16
#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
20
17
#include < WiFi.h>
21
18
22
- // CONFIG_ENABLE_CHIPOBLE is enabled when BLE is used to commission the Matter Network
23
19
// WiFi is manually set and started
24
20
const char *ssid = " your-ssid" ; // Change this to your WiFi SSID
25
21
const char *password = " your-password" ; // Change this to your WiFi password
26
- #endif
27
22
28
23
// number of On-Off Lights:
29
24
const uint8_t MAX_LIGHT_NUMBER = 6 ;
@@ -48,8 +43,6 @@ const char *lightName[MAX_LIGHT_NUMBER] = {
48
43
void setup () {
49
44
Serial.begin (115200 ); // callback will just print a message in the console
50
45
51
- // CONFIG_ENABLE_CHIPOBLE is enabled when BLE is used to commission the Matter Network
52
- #if !CONFIG_ENABLE_CHIPOBLE
53
46
// We start by connecting to a WiFi network
54
47
Serial.print (" Connecting to " );
55
48
Serial.println (ssid);
@@ -64,7 +57,6 @@ void setup() {
64
57
Serial.println (" IP address: " );
65
58
Serial.println (WiFi.localIP ());
66
59
delay (500 );
67
- #endif
68
60
69
61
// setup all the OnOff Light endpoint and their lambda callback functions
70
62
for (uint8_t i = 0 ; i < MAX_LIGHT_NUMBER; i++) {
You can’t perform that action at this time.
0 commit comments