BTHome.Config (BTHome v0.1.0)

View Source

Configuration constants for BTHome v2 protocol.

This module centralizes all magic numbers, protocol-specific values, and configuration constants used throughout the BTHome v2 implementation. By keeping these values in one place, we ensure consistency and make the codebase easier to maintain.

Constants

Examples

iex> BTHome.Config.version()
2

iex> BTHome.Config.version_mask()
224  # 0xE0

Summary

Functions

device_info_base()

encryption_mask()

max_skip_bytes()

trigger_mask()

version()

version_mask()

version_shift()