Patent ID: 10820358

Abstract:
A Bluetooth Low Energy (BLE)-enabled digital device, such as a smartphone, can communicate with a BLE-enabled peripheral device via a BLE connection. The peripheral device may be a vaporizer, and the smartphone can include feature(s) related to control of the vaporizer. A method for maintaining a BLE connection between the smartphone, which may execute an Android operating system, and the peripheral device is also provided. The method may include utilizing a library of suspension functions in the form of an Application Programming Interface (API) for an Android BLE framework. The suspension functions can be implemented using coroutines that allow suspending BLE operations without locking a thread. The library may include a module communicating with a core of the library and configured to suspend requested BLE operations while attempting to reestablish a lost connection until a timeout event occurs. The module can be configured to handle BLE state machine complexities.