I\'ve created a Bluetooth socket handling thread in Kotlin which works quite smoothly. It can identify the loss of the other device\'s signal and reconnects if that\'s in th