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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user