EmileSpecialProducts / Turtle-ESP-mouse-jiggler

Mouse jiggler of the ESP USB and BLE
GNU General Public License v3.0
0 stars 0 forks source link

Resume advertising after the disconnect. #1

Closed EmileSpecialProducts closed 1 week ago

EmileSpecialProducts commented 2 weeks ago

This is linked to this issue BLE the resolvement is to add this to the Code BLEAdvertising *pAdvertising = pServer->getAdvertising(); pAdvertising->start(); to the BleConnectionStatus::onDisconnect

void BleConnectionStatus::onDisconnect(BLEServer pServer) { this->connected = false; BLE2902 desc = (BLE2902*)this->inputMouse->getDescriptorByUUID(BLEUUID((uint16_t)0x2902)); desc->setNotifications(false);

BLEAdvertising *pAdvertising = pServer->getAdvertising(); pAdvertising->start(); }

EmileSpecialProducts commented 1 week ago

Resolved the Issue #1 Resume advertising after the disconnect. For this I needed to make a fork form the T-vK/ESP32-BLE-Mouse