summaryrefslogtreecommitdiff
path: root/src/libs/BleConnectionStatus.h
blob: 45b7185b0d61511b2ea8434dffc52a01135d52c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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