| 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 "BLE2902.h" |
| 7 | #include "BLECharacteristic.h" |
| 8 | #include <BLEServer.h> |
| 9 | |
| 10 | class BleConnectionStatus : public BLEServerCallbacks { |
| 11 | public: |
| 12 | BleConnectionStatus(void); |
| 13 | bool connected = false; |
| 14 | void onConnect(BLEServer *pServer); |
| 15 | void onDisconnect(BLEServer *pServer); |
| 16 | BLECharacteristic *inputMouse; |
| 17 | }; |
| 18 | |
| 19 | #endif // CONFIG_BT_ENABLED |
| 20 | #endif // ESP32_BLE_CONNECTION_STATUS_H |