@@ -44,7 +44,8 @@ enum BLEPeripheralEvent {
44
44
BLEConnected = 0 ,
45
45
BLEDisconnected = 1 ,
46
46
BLEBonded = 2 ,
47
- BLERemoteServicesDiscovered = 3
47
+ BLERemoteServicesDiscovered = 3 ,
48
+ BLEConnectionParamsUpdated = 4
48
49
};
49
50
50
51
typedef void (*BLEPeripheralEventHandler)(BLECentral& central);
@@ -71,6 +72,7 @@ class BLEPeripheral : public BLEDeviceEventListener,
71
72
// connection intervals in 1.25 ms increments,
72
73
// must be between 0x0006 (7.5 ms) and 0x0c80 (4 s), values outside of this range will be ignored
73
74
void setConnectionInterval (unsigned short minimumConnectionInterval, unsigned short maximumConnectionInterval);
75
+ void updateConnectionInterval (unsigned short minimumConnectionInterval, unsigned short maximumConnectionInterval);
74
76
bool setTxPower (int txPower);
75
77
void setConnectable (bool connectable);
76
78
void setBondStore (BLEBondStore& bondStore);
@@ -109,6 +111,7 @@ class BLEPeripheral : public BLEDeviceEventListener,
109
111
virtual void BLEDeviceDisconnected (BLEDevice& device);
110
112
virtual void BLEDeviceBonded (BLEDevice& device);
111
113
virtual void BLEDeviceRemoteServicesDiscovered (BLEDevice& device);
114
+ virtual void BLEDeviceConnectionParamsUpdated (BLEDevice& device);
112
115
113
116
virtual void BLEDeviceCharacteristicValueChanged (BLEDevice& device, BLECharacteristic& characteristic, const unsigned char * value, unsigned char valueLength);
114
117
virtual void BLEDeviceCharacteristicSubscribedChanged (BLEDevice& device, BLECharacteristic& characteristic, bool subscribed);
@@ -152,7 +155,7 @@ class BLEPeripheral : public BLEDeviceEventListener,
152
155
BLERemoteCharacteristic _remoteServicesChangedCharacteristic;
153
156
154
157
BLECentral _central;
155
- BLEPeripheralEventHandler _eventHandlers[4 ];
158
+ BLEPeripheralEventHandler _eventHandlers[5 ];
156
159
};
157
160
158
161
#endif
0 commit comments