Skip to content

Commit f973a13

Browse files
committed
rename
1 parent 5bd0b4d commit f973a13

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

libraries/Bluefruit52Lib/examples/Peripheral/bleuart/bleuart.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void loop()
103103
void connect_callback(void)
104104
{
105105
char central_name[32] = { 0 };
106-
Bluefruit.Gap.getPeerDevName(central_name, sizeof(central_name));
106+
Bluefruit.Gap.getPeerName(central_name, sizeof(central_name));
107107

108108
Serial.print("Connected to ");
109109
Serial.println(central_name);

libraries/Bluefruit52Lib/src/BLEGap.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ bool BLEGap::getTxPacket(uint16_t conn_handle)
5353
return xSemaphoreTake(_txpacket_sem[conn_handle], ms2tick(BLE_GENERIC_TIMEOUT));
5454
}
5555

56-
uint16_t BLEGap::getPeerDevName(char* buf, uint16_t bufsize)
56+
uint16_t BLEGap::getPeerName(char* buf, uint16_t bufsize)
5757
{
58-
return getPeerDevName(Bluefruit.connHandle(), buf, bufsize);
58+
return getPeerName(Bluefruit.connHandle(), buf, bufsize);
5959
}
6060

61-
uint16_t BLEGap::getPeerDevName(uint16_t conn_handle, char* buf, uint16_t bufsize)
61+
uint16_t BLEGap::getPeerName(uint16_t conn_handle, char* buf, uint16_t bufsize)
6262
{
6363
return Bluefruit.Gatt.readCharByUuid(conn_handle, BLEUuid(BLE_UUID_GAP_CHARACTERISTIC_DEVICE_NAME), buf, bufsize);
6464
}

libraries/Bluefruit52Lib/src/BLEGap.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ class BLEGap
5050
bool getTxPacket(void);
5151
bool getTxPacket(uint16_t conn_handle);
5252

53-
uint16_t getPeerDevName(char* buf, uint16_t bufsize);
54-
uint16_t getPeerDevName(uint16_t conn_handle, char* buf, uint16_t bufsize);
53+
uint16_t getPeerName(char* buf, uint16_t bufsize);
54+
uint16_t getPeerName(uint16_t conn_handle, char* buf, uint16_t bufsize);
5555

5656
/*------------------------------------------------------------------*/
5757
/* INTERNAL USAGE ONLY

0 commit comments

Comments
 (0)