mirror of
https://github.com/lemmingDev/ESP32-BLE-Gamepad.git
synced 2026-03-06 08:14:46 +01:00
17 lines
408 B
C++
17 lines
408 B
C++
#include "BleConnectionStatus.h"
|
|
|
|
BleConnectionStatus::BleConnectionStatus(void)
|
|
{
|
|
}
|
|
|
|
void BleConnectionStatus::onConnect(NimBLEServer *pServer, NimBLEConnInfo& connInfo)
|
|
{
|
|
pServer->updateConnParams(connInfo.getConnHandle(), 6, 7, 0, 600);
|
|
this->connected = true;
|
|
}
|
|
|
|
void BleConnectionStatus::onDisconnect(NimBLEServer* pServer, NimBLEConnInfo& connInfo, int reason)
|
|
{
|
|
this->connected = false;
|
|
}
|