MCPcopy Create free account
hub / github.com/BruceDevices/firmware / enableBLEAPI

Function enableBLEAPI

src/core/settings.cpp:1658–1670  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1656static bool ble_api_enabled = false;
1657
1658void enableBLEAPI() {
1659 if (!ble_api_enabled) {
1660 // displayWarning("BLE API require huge amount of RAM.");
1661 // displayWarning("Some features may stop working.");
1662 Serial.println(ESP.getFreeHeap());
1663 bleApi.setup();
1664 Serial.println(ESP.getFreeHeap());
1665 } else {
1666 bleApi.end();
1667 }
1668
1669 ble_api_enabled = !ble_api_enabled;
1670}
1671
1672bool appStoreInstalled() {
1673 FS *fs;

Callers 1

advancedMenuMethod · 0.85

Calls 3

printlnMethod · 0.45
setupMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected