ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
bluedroid_hex.h File Reference

Go to the source code of this file.

Namespaces

namespace  esphome
 
namespace  esphome::esp32_ble
 

Functions

bool esphome::esp32_ble::parse_bdaddr (const char *str, uint8_t *addr)
 Parse "xx:xx:xx:xx:xx:xx" as Bluedroid's string_to_bdaddr does: one or two hex digits per byte, ':' between bytes, anything after the sixth byte ignored.
 
bool esphome::esp32_ble::parse_config_bin (const char *str, size_t len, uint8_t *value, size_t *length)
 Decode a stored hex string as Bluedroid's btc_config_get_bin does: even length, at most *length bytes, hex digits only.
 
template<typename GetStr >
bool esphome::esp32_ble::config_get_bin (GetStr get_str, const char *section, const char *key, uint8_t *value, size_t *length)
 btc_config_get_bin on top of btc_config_get_str, passed as get_str, which strlcpy's the stored string.