Skip to content

Commit 278bbc6

Browse files
committed
Disable BLE. Build in deug mode
1 parent 8ad9ed9 commit 278bbc6

File tree

13 files changed

+722987
-346548
lines changed

13 files changed

+722987
-346548
lines changed

apps/my_sensor_app/src/ble.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
*/
1919
// Bluetooth LE Functions. Based on https://mynewt.apache.org/latest/tutorials/ble/ibeacon.html
2020
#include "sysinit/sysinit.h"
21+
22+
#if MYNEWT_VAL(BLUETOOTH_LE) // If Bluetooth LE is enabled...
2123
#include "os/os.h"
2224
#include "console/console.h"
2325
#include "host/ble_hs.h"
@@ -73,3 +75,11 @@ static void ble_app_advertise(void) {
7375
&adv_params, NULL, NULL);
7476
assert(rc == 0);
7577
}
78+
79+
#else // If Bluetooth LE is disabled...
80+
81+
int start_ble(void) {
82+
// Bluetooth LE not supported.
83+
return 0;
84+
}
85+
#endif // MYNEWT_VAL(BLUETOOTH_LE)

apps/my_sensor_app/syscfg.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ syscfg.vals:
114114
###########################################################################
115115
# Bluetooth LE Settings
116116

117-
BLUETOOTH_LE: 1 # Enable Bluetooth LE
117+
BLUETOOTH_LE: 0 # Disable Bluetooth LE
118118

119119
###########################################################################
120120
# Bluetooth Mesh Settings

0 commit comments

Comments
 (0)