HF Interface Wrapper 0.1.0-dev
Embedded C++ hardware abstraction layer
Loading...
Searching...
No Matches
hf_bluetooth_address_t Struct Reference

Bluetooth address structure (6 bytes) More...

#include <BaseBluetooth.h>

Public Member Functions

std::string ToString () const
 Convert address to string format.
 
bool FromString (const std::string &addr_str)
 Parse address from string.
 
bool IsValid () const
 Check if address is valid (not all zeros)
 

Public Attributes

hf_u8_t addr [6]
 

Detailed Description

Bluetooth address structure (6 bytes)

Member Function Documentation

◆ FromString()

bool hf_bluetooth_address_t::FromString ( const std::string & addr_str)
inline

Parse address from string.

Parameters
addr_strAddress string in format "XX:XX:XX:XX:XX:XX"
Returns
true if parsed successfully, false otherwise

◆ IsValid()

bool hf_bluetooth_address_t::IsValid ( ) const
inline

Check if address is valid (not all zeros)

Returns
true if valid, false otherwise

Member Data Documentation

◆ addr

hf_u8_t hf_bluetooth_address_t::addr[6]

Bluetooth address bytes


The documentation for this struct was generated from the following file: