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