Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
After a client disconnects, we need to restart advertising or else...
Browse files Browse the repository at this point in the history
any reconnects by the client will not happen for a very long time.
  • Loading branch information
geeksville committed Jun 20, 2020
1 parent 8c4edde commit c4d8178
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/BLE/src/BLEServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,8 @@ void BLEServer::handleGATTServerEvent(esp_gatts_cb_event_t event, esp_gatt_if_t
if(removePeerDevice(param->disconnect.conn_id, false)) {
m_connectedCount--; // Decrement the number of connected devices count.
}

startAdvertising();
break;
} // ESP_GATTS_DISCONNECT_EVT

Expand Down

2 comments on commit c4d8178

@geeksville
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has been mentioned on Meshtastic. There might be relevant details there:

https://meshtastic.discourse.group/t/alpha-tester-thread-please-try-0-7-8-device-and-0-7-80-android-see-thread/298/89

@geeksville
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit has been mentioned on Meshtastic. There might be relevant details there:

https://meshtastic.discourse.group/t/device-code-release-announcements/32/51

Please sign in to comment.