#pragma once #include #include #include #include namespace tt::bluetooth::settings { struct PairedDevice { std::string name; std::array addr; bool autoConnect = false; /** Profile used to pair (BtProfileId value). Defaults to BT_PROFILE_SPP=2. */ int profileId = 2; /** BLE address type (0=PUBLIC, 1=RANDOM, etc). Defaults to PUBLIC for backward compat. */ uint8_t addrType = 0; }; std::string addrToHex(const std::array& addr); bool hasFileForDevice(const std::string& addr_hex); bool load(const std::string& addr_hex, PairedDevice& device); bool save(const PairedDevice& device); bool remove(const std::string& addr_hex); std::vector loadAll(); } // namespace tt::bluetooth::settings