ESPHome 2025.7.2
Loading...
Searching...
No Matches
helpers.cpp File Reference

Go to the source code of this file.

Namespaces

namespace  esphome
 Providing packet encoding functions for exchanging data with a remote host.
 

Functions

Mathematics
uint32_t esphome::random_uint32 ()
 Return a random 32-bit unsigned integer.
 
bool esphome::random_bytes (uint8_t *data, size_t len)
 Generate len number of random bytes.
 
System APIs
void esphome::get_mac_address_raw (uint8_t *mac)
 Get the device MAC address as raw bytes, written into the provided byte array (6 bytes).
 
void esphome::set_mac_address (uint8_t *mac)
 Set the MAC address to use from the provided byte array (6 bytes).
 
bool esphome::has_custom_mac_address ()
 Check if a custom MAC address is set (ESP32 & variants)