1
0
mirror of https://github.com/esphome/esphome.git synced 2025-10-29 22:24:26 +00:00

Clean-up MAC address helpers (#2713)

This commit is contained in:
Oxan van Leeuwen
2021-11-15 15:48:16 +01:00
committed by GitHub
parent 0b193eee43
commit 5404163be0
2 changed files with 12 additions and 23 deletions

View File

@@ -25,14 +25,13 @@
namespace esphome {
/// Read the raw MAC address into the provided byte array (6 bytes).
/// Get the device MAC address as raw bytes, written into the provided byte array (6 bytes).
void get_mac_address_raw(uint8_t *mac);
/// Get the MAC address as a string, using lower case hex notation.
/// This can be used as way to identify this ESP.
/// Get the device MAC address as a string, in lowercase hex notation.
std::string get_mac_address();
/// Get the MAC address as a string, using colon-separated upper case hex notation.
/// Get the device MAC address as a string, in colon-separated uppercase hex notation.
std::string get_mac_address_pretty();
#ifdef USE_ESP32