This commit is contained in:
hathach committed 2017-07-11 13:58:22 +07:00
1 parent 90db83ef32
commit 3fa85cc1b4
2 files changed
-6

No files matched your search

-5
View File
@@ -94,11 +94,6 @@ bool BLEGap::getTxPacket(uint16_t conn_handle)
return xSemaphoreTake(_peers[conn_handle].txpacket_sem, ms2tick(BLE_GENERIC_TIMEOUT));
}
uint16_t BLEGap::getPeerName(char* buf, uint16_t bufsize)
{
return getPeerName(Bluefruit.connHandle(), buf, bufsize);
}
uint16_t BLEGap::getPeerName(uint16_t conn_handle, char* buf, uint16_t bufsize)
{
return Bluefruit.Gatt.readCharByUuid(conn_handle, BLEUuid(BLE_UUID_GAP_CHARACTERISTIC_DEVICE_NAME), buf, bufsize);
-1
View File
@@ -53,7 +53,6 @@ class BLEGap
uint8_t getPeerAddr(uint16_t conn_handle, uint8_t addr[6]);
ble_gap_addr_t getPeerAddr(uint16_t conn_handle);
uint16_t getPeerName(char* buf, uint16_t bufsize);
uint16_t getPeerName(uint16_t conn_handle, char* buf, uint16_t bufsize);
bool getTxPacket(void);