| 1 | #ifndef ESP32_BLE_CONNECTION_STATUS_H |
| 2 | #define ESP32_BLE_CONNECTION_STATUS_H |
| 3 | #include "sdkconfig.h" |
| 4 | #if defined(CONFIG_BT_ENABLED) |
| 5 | |
| 6 | #include <BLEServer.h> |
| 7 | #include "BLE2902.h" |
| 8 | #include "BLECharacteristic.h" |
| 9 | |
| 10 | class BleConnectionStatus : public BLEServerCallbacks |
| 11 | { |
| 12 | public: |
| 13 | BleConnectionStatus(void); |
| 14 | bool connected = false; |
| 15 | void onConnect(BLEServer* pServer); |
| 16 | void onDisconnect(BLEServer* pServer); |
| 17 | BLECharacteristic* inputMouse; |
| 18 | }; |
| 19 | |
| 20 | #endif // CONFIG_BT_ENABLED |
| 21 | #endif // ESP32_BLE_CONNECTION_STATUS_H |