Skip to content

Commit 985d53f

Browse files
committed
fix(example): Require native BLE for switch example
1 parent ba027e6 commit 985d53f

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

libraries/WiFi/examples/WiFiBlueToothSwitch/WiFiBlueToothSwitch.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
// Sketch shows how to switch between WiFi and BlueTooth or use both
1616
// Button is attached between GPIO 0 and GND and modes are switched with each press
1717

18+
#include "soc/soc_caps.h"
19+
#if !CONFIG_SOC_BT_SUPPORTED
20+
#error "This example requires native Bluetooth support"
21+
#endif
22+
1823
#include "WiFi.h"
1924
#define STA_SSID "your-ssid"
2025
#define STA_PASS "your-pass"

libraries/WiFi/examples/WiFiBlueToothSwitch/ci.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"requires": [
3-
"CONFIG_BT_ENABLED=y"
3+
"CONFIG_SOC_BT_SUPPORTED=y"
44
],
55
"requires_any": [
66
"CONFIG_SOC_WIFI_SUPPORTED=y",

0 commit comments

Comments
 (0)