implement #80, add requestPHY/getPHY support
update prph and central throuhgput example.
This commit is contained in:
1 parent
4e95f95722
commit
cbcd9eb324
6 files changed
+179
-122
No files matched your search
@@ -47,8 +47,11 @@ class BLEConnection
|
||||
uint16_t _conn_hdl;
|
||||
uint16_t _mtu;
|
||||
uint16_t _conn_interval;
|
||||
uint16_t _ediv;
|
||||
uint16_t _data_length;
|
||||
uint8_t _phy;
|
||||
|
||||
uint8_t _role;
|
||||
uint16_t _ediv;
|
||||
|
||||
bool _connected;
|
||||
bool _paired;
|
||||
@@ -76,6 +79,8 @@ class BLEConnection
|
||||
uint8_t getRole(void);
|
||||
uint16_t getMtu (void);
|
||||
uint16_t getConnInterval(void);
|
||||
uint16_t getDataLength(void);
|
||||
uint8_t getPHY(void);
|
||||
|
||||
ble_gap_addr_t getPeerAddr(void);
|
||||
uint16_t getPeerName(char* buf, uint16_t bufsize);
|
||||
@@ -83,8 +88,9 @@ class BLEConnection
|
||||
bool disconnect(void);
|
||||
|
||||
bool setTxPower(int8_t power); // set power for this connection
|
||||
bool updateDataLength(ble_gap_data_length_params_t const *p_dl_params = NULL, ble_gap_data_length_limitation_t *p_dl_limitation = NULL);
|
||||
bool requestDataLengthUpdate(ble_gap_data_length_params_t const *p_dl_params = NULL, ble_gap_data_length_limitation_t *p_dl_limitation = NULL);
|
||||
bool requestMtuExchange(uint16_t mtu);
|
||||
bool requestPHY(uint8_t phy = BLE_GAP_PHY_AUTO);
|
||||
|
||||
bool monitorRssi(uint8_t threshold = BLE_GAP_RSSI_THRESHOLD_INVALID);
|
||||
int8_t getRssi(void);
|
||||
|
||||
Reference in new issue
Block a user