forked from espressif/arduino-esp32
Must include sdkconfig.h before testing defines
This commit is contained in:
@ -16,11 +16,12 @@
|
||||
// Useful if you want to advertise some sort of message
|
||||
// Button is attached between GPIO 0 and GND, and the device name changes each time the button is pressed
|
||||
|
||||
#include "SimpleBLE.h"
|
||||
|
||||
#if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED)
|
||||
#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
|
||||
#endif
|
||||
|
||||
#include "SimpleBLE.h"
|
||||
SimpleBLE ble;
|
||||
|
||||
void onButton(){
|
||||
|
Reference in New Issue
Block a user