Fitbit / bitgatt

The FitbitGatt API is designed to provide a strong state machine around all Android gatt operations with the aim of making Android BLE development across Android vendors as straightforward and side-effect free as possible.
Mozilla Public License 2.0
57 stars 17 forks source link

Set Connection State to new Devices #43

Closed cristian-ich closed 3 years ago

cristian-ich commented 3 years ago

Fixes # GattConnection.isConnected() may return invalid value

description

Invalid GattState when a connected device is added to connectionMap

changes

When a new GattConnection is added, we set the GattState to Connected if the device is already connected.

how tested

Unit tests