summaryrefslogtreecommitdiff
path: root/firmware/BleConnectionStatus.h
diff options
context:
space:
mode:
authorkrolyxon <me@krolyxon.com>2026-05-05 13:10:21 +0530
committerkrolyxon <me@krolyxon.com>2026-05-05 13:10:21 +0530
commita97b2248711c7beb50fa5ebe961539c7c77e7567 (patch)
tree3532cdc3afd0cc241567497939a77765c76367c4 /firmware/BleConnectionStatus.h
parent428605c762019dba3c05f5e33bad106220132c46 (diff)
remove stubs, add badUSB attacks, add BleMouse library files
Diffstat (limited to 'firmware/BleConnectionStatus.h')
-rw-r--r--firmware/BleConnectionStatus.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/firmware/BleConnectionStatus.h b/firmware/BleConnectionStatus.h
new file mode 100644
index 0000000..b703150
--- /dev/null
+++ b/firmware/BleConnectionStatus.h
@@ -0,0 +1,21 @@
+#ifndef ESP32_BLE_CONNECTION_STATUS_H
+#define ESP32_BLE_CONNECTION_STATUS_H
+#include "sdkconfig.h"
+#if defined(CONFIG_BT_ENABLED)
+
+#include <BLEServer.h>
+#include "BLE2902.h"
+#include "BLECharacteristic.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