blob: 83d3539d9f0385cf42f3a47748f72fcb67971f32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "BleConnectionStatus.h"
BleConnectionStatus::BleConnectionStatus(void) {}
void BleConnectionStatus::onConnect(BLEServer *pServer) {
this->connected = true;
BLE2902 *desc = (BLE2902 *)this->inputMouse->getDescriptorByUUID(
BLEUUID((uint16_t)0x2902));
desc->setNotifications(true);
}
void BleConnectionStatus::onDisconnect(BLEServer *pServer) {
this->connected = false;
BLE2902 *desc = (BLE2902 *)this->inputMouse->getDescriptorByUUID(
BLEUUID((uint16_t)0x2902));
desc->setNotifications(false);
}
|