Files
ESP32-BLE-Gamepad/BleConnectionStatus.cpp
2022-09-27 09:54:51 +10:00

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;
}