mirror of
https://github.com/aljazceru/Android-nRF-Toolbox.git
synced 2025-12-23 17:34:28 +01:00
Catch exception when executin write command in UART profile
This commit is contained in:
@@ -141,6 +141,7 @@ internal class UARTService : NotificationService() {
|
|||||||
.onEach { rxCharacteristic.splitWrite(DataByteArray.from(it), getWriteType(rxCharacteristic)) }
|
.onEach { rxCharacteristic.splitWrite(DataByteArray.from(it), getWriteType(rxCharacteristic)) }
|
||||||
.onEach { repository.onNewMessageSent(it) }
|
.onEach { repository.onNewMessageSent(it) }
|
||||||
.onEach { repository.log(10, "Sent: $it") }
|
.onEach { repository.log(10, "Sent: $it") }
|
||||||
|
.catch { it.printStackTrace() }
|
||||||
.launchIn(lifecycleScope)
|
.launchIn(lifecycleScope)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user