diff options
| author | krolyxon <me@krolyxon.com> | 2026-06-08 23:10:46 +0530 |
|---|---|---|
| committer | krolyxon <me@krolyxon.com> | 2026-06-08 23:10:46 +0530 |
| commit | 3120783000d0025b183b0397acaa8b769499eb38 (patch) | |
| tree | 1c4f93be213f1b1d48f59e554562d847b4e7c25e /.pio/libdeps/esp32-s3-n16r8/ESP32 BLE Mouse/BleConnectionStatus.cpp | |
Initial gh-pages firmware hosting
Diffstat (limited to '.pio/libdeps/esp32-s3-n16r8/ESP32 BLE Mouse/BleConnectionStatus.cpp')
| -rw-r--r-- | .pio/libdeps/esp32-s3-n16r8/ESP32 BLE Mouse/BleConnectionStatus.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.pio/libdeps/esp32-s3-n16r8/ESP32 BLE Mouse/BleConnectionStatus.cpp b/.pio/libdeps/esp32-s3-n16r8/ESP32 BLE Mouse/BleConnectionStatus.cpp new file mode 100644 index 0000000..83d3539 --- /dev/null +++ b/.pio/libdeps/esp32-s3-n16r8/ESP32 BLE Mouse/BleConnectionStatus.cpp @@ -0,0 +1,17 @@ +#include "BleConnectionStatus.h" + +BleConnectionStatus::BleConnectionStatus(void) {} + +void BleConnectionStatus::onConnect(BLEServer *pServer) { + this->connected = true; + BLE2902 *desc = (BLE2902 *)this->inputMouse->getDescriptorByUUID( + BLEUUID((uint16_t)0x2902)); + desc->setNotifications(true); +} + +void BleConnectionStatus::onDisconnect(BLEServer *pServer) { + this->connected = false; + BLE2902 *desc = (BLE2902 *)this->inputMouse->getDescriptorByUUID( + BLEUUID((uint16_t)0x2902)); + desc->setNotifications(false); +} |
