ESPHome 2025.7.1
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).