File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1616// Useful if you want to advertise some sort of message
1717// Button is attached between GPIO 0 and GND, and the device name changes each time the button is pressed
1818
19+ #include " SimpleBLE.h"
20+
1921#if !defined(CONFIG_BT_ENABLED) || !defined(CONFIG_BLUEDROID_ENABLED)
2022#error Bluetooth is not enabled! Please run `make menuconfig` to and enable it
2123#endif
2224
23- #include " SimpleBLE.h"
2425SimpleBLE ble;
2526
2627void onButton (){
Original file line number Diff line number Diff line change 1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414
15+ #include " sdkconfig.h"
16+
1517#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BLUEDROID_ENABLED)
1618
1719#include " SimpleBLE.h"
Original file line number Diff line number Diff line change 1515#ifndef _SIMPLE_BLE_H_
1616#define _SIMPLE_BLE_H_
1717
18+ #include " sdkconfig.h"
19+
1820#if defined(CONFIG_BT_ENABLED) && defined(CONFIG_BLUEDROID_ENABLED)
1921
2022#include < cstdint>
You can’t perform that action at this time.
0 commit comments