Bridge
The entry point for the SDK meant to initialize the SDK, scan and connect to nearby devices over BLE as well as perform credential exchange operations and create proxy network in the background for the locks to connect to the cloud. Note, Bridge and its implementation is designed to be asynchronous delivering results via delegates / callbacks.
Usage:
Retrieve instances of BlueLink, BLEProxy, DFUService, CredLink, etc. via the IsolatedKoinContext singleton.
Use this object to initialize the library, start scanning, and perform other integration tasks.
All dependencies are managed through Koin, ensuring isolated and safe access to library components.
Typical flow:
Call init with your application context to initialize the library using the production server.
Use start to begin the foreground service to run blueLink and bleProxy, or startLimited to run the same service without a notification (foreground app only).
Use getBlueLink, getCredLink, etc. to retrieve library instances as needed.
Functions
Returns the current BLEProxy instance.
Returns the current CredLink instance for credential operations (create credential, trigger unlock, etc.). This instance can also be used to implement credential exchange callbacks.
Returns the current DFUService instance used for managing and performing device firmware updates.
Enable local debug capture (on by default). Disabling also clears its history.
Enable or disable logging.
Sets the server address used by SDK services.
Starts BluetoothService as a background service. No notification is posted.
Submit recent logs and return the report ID for support. Throws when unavailable; safe to retry.