diff options
| author | krolyxon <me@krolyxon.com> | 2026-06-20 00:24:34 +0530 |
|---|---|---|
| committer | krolyxon <me@krolyxon.com> | 2026-06-20 00:24:34 +0530 |
| commit | 7e4cfad53699fabbecb6696508e5addcffc1b095 (patch) | |
| tree | ebff581b0989df578c312247e1dad514c956572b /lib-arduino/BleMouse/BleConnectionStatus.h | |
| parent | 1f800b74329d4f8b1511b4cf2a0d031439e1038d (diff) | |
restructure to use rust source tree primarily
Diffstat (limited to 'lib-arduino/BleMouse/BleConnectionStatus.h')
| -rw-r--r-- | lib-arduino/BleMouse/BleConnectionStatus.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib-arduino/BleMouse/BleConnectionStatus.h b/lib-arduino/BleMouse/BleConnectionStatus.h new file mode 100644 index 0000000..45b7185 --- /dev/null +++ b/lib-arduino/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 |
