Connection
Manages connections with Efento devices. The Connection interface allows you to establish and handle connections to Efento devices. Multiple instances of Connection can be used to connect to several devices simultaneously. However, it's important to note that only one Connection can be active per device at any given time.
Threading & serialization
Methods are main-safe. Methods on a single instance — connect, disconnect, and commands — are not safe to call concurrently; serialize per instance.
Operations suspend until the platform replies or the connection drops. Bound with withTimeout(...) { ... } in the caller if a deadline is needed. See pl.efento.mobile.bluetooth.EfentoBluetooth for the full contract.