ESPHome 2026.5.0-dev
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
bool esphome::random_bytes (uint8_t *data, size_t len)
 Generate len random bytes using the platform's secure RNG (hardware RNG or OS CSPRNG).
 
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).