summaryrefslogtreecommitdiff
path: root/lib/BleMouse/BleConnectionStatus.h
diff options
context:
space:
mode:
authorkrolyxon <me@krolyxon.com>2026-05-14 23:47:43 +0530
committerkrolyxon <me@krolyxon.com>2026-05-14 23:47:43 +0530
commitc1c397b5555786bd27cac8ac9909d233671a67e8 (patch)
treec82b6eba15cfc0da51c1e73a9619561aa1bfd586 /lib/BleMouse/BleConnectionStatus.h
parent3631045878a955407115561fa86b96566bd33cfc (diff)
move src/libs to libs
Diffstat (limited to 'lib/BleMouse/BleConnectionStatus.h')
-rw-r--r--lib/BleMouse/BleConnectionStatus.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/BleMouse/BleConnectionStatus.h b/lib/BleMouse/BleConnectionStatus.h
new file mode 100644
index 0000000..45b7185
--- /dev/null
+++ b/lib/BleMouse/BleConnectionStatus.h
@@ -0,0 +1,20 @@
+#ifndef ESP32_BLE_CONNECTION_STATUS_H
+#define ESP32_BLE_CONNECTION_STATUS_H
+#include "sdkconfig.h"
+#if defined(CONFIG_BT_ENABLED)
+
+#include "BLE2902.h"
+#include "BLECharacteristic.h"
+#include <BLEServer.h>
+
+class BleConnectionStatus : public BLEServerCallbacks {
+ public:
+ BleConnectionStatus(void);
+ bool connected = false;
+ void onConnect(BLEServer *pServer);
+ void onDisconnect(BLEServer *pServer);
+ BLECharacteristic *inputMouse;
+};
+
+#endif // CONFIG_BT_ENABLED
+#endif // ESP32_BLE_CONNECTION_STATUS_H