Catch exception when executin write command in UART profile

This commit is contained in:
Sylwester Zieliński
2023-08-10 14:28:45 +02:00
parent 9360d34f8f
commit 38b76e73aa

View File

@@ -141,6 +141,7 @@ internal class UARTService : NotificationService() {
.onEach { rxCharacteristic.splitWrite(DataByteArray.from(it), getWriteType(rxCharacteristic)) }
.onEach { repository.onNewMessageSent(it) }
.onEach { repository.log(10, "Sent: $it") }
.catch { it.printStackTrace() }
.launchIn(lifecycleScope)
}