mirror of
https://github.com/h2zero/esp-nimble-cpp.git
synced 2024-11-25 06:30:55 +01:00
Remove type from address string.
This commit is contained in:
parent
353e5a6cb1
commit
28e9e3d79d
1 changed files with 3 additions and 4 deletions
|
@ -169,11 +169,10 @@ bool NimBLEAddress::operator !=(const NimBLEAddress & rhs) const {
|
||||||
* that accept std::string and/or or it's methods as a parameter.
|
* that accept std::string and/or or it's methods as a parameter.
|
||||||
*/
|
*/
|
||||||
NimBLEAddress::operator std::string() const {
|
NimBLEAddress::operator std::string() const {
|
||||||
char buffer[28];
|
char buffer[18];
|
||||||
snprintf(buffer, sizeof(buffer), "%02x:%02x:%02x:%02x:%02x:%02x type: %d",
|
snprintf(buffer, sizeof(buffer), "%02x:%02x:%02x:%02x:%02x:%02x",
|
||||||
m_address[5], m_address[4], m_address[3],
|
m_address[5], m_address[4], m_address[3],
|
||||||
m_address[2], m_address[1], m_address[0],
|
m_address[2], m_address[1], m_address[0]);
|
||||||
m_addrType);
|
|
||||||
return std::string(buffer);
|
return std::string(buffer);
|
||||||
} // operator std::string
|
} // operator std::string
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue