mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-05 00:56:02 +00:00
* nrf52 BLE, increased MTU to 250
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
#include "SerialBLEInterface.h"
|
||||
|
||||
void SerialBLEInterface::begin(const char* device_name, uint32_t pin_code) {
|
||||
_pin_code = pin_code;
|
||||
char charpin[20];
|
||||
sprintf(charpin, "%d", _pin_code);
|
||||
sprintf(charpin, "%d", pin_code);
|
||||
|
||||
Bluefruit.configPrphBandwidth(BANDWIDTH_MAX);
|
||||
|
||||
Bluefruit.configPrphConn(250, BLE_GAP_EVENT_LENGTH_MIN, 16, 16); // increase MTU
|
||||
Bluefruit.begin();
|
||||
Bluefruit.setTxPower(4); // Check bluefruit.h for supported values
|
||||
Bluefruit.setName(device_name);
|
||||
|
||||
@@ -9,7 +9,6 @@ class SerialBLEInterface : public BaseSerialInterface {
|
||||
bool oldDeviceConnected;
|
||||
bool checkAdvRestart;
|
||||
bool _isEnabled;
|
||||
uint32_t _pin_code;
|
||||
unsigned long _last_write;
|
||||
|
||||
struct Frame {
|
||||
|
||||
Reference in New Issue
Block a user