Skip to content

Commit

Permalink
Merge branch 'main' into lvgl_9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
KlausMu committed Dec 25, 2024
2 parents 4efbf8c + ee57f5f commit 5163995
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,10 @@ bool BleKeyboard::advertiseAndWaitForConnection(std::string peerAddress) {
bool BleKeyboard::forceConnectionToAddress(std::string peerAddress) {

if (NimBLEDevice::getServer()->getConnectedCount() == 0) {
if (NimBLEDevice::getNumBonds() == 0) {
ESP_LOGW(LOG_TAG, "BleKeyboard: currently no client bonded. Please first pair a device. Please see the OMOTE Wiki. Cannot send key.\n");
return false;
}
if (peerAddress == "") {
ESP_LOGD(LOG_TAG, "BleKeyboard: currently no client connected. No specific address was provided. Will start advertising.\n");
} else {
Expand Down

0 comments on commit 5163995

Please sign in to comment.