insert sent messages in Packet

This commit is contained in:
andrekir 2022-03-29 10:58:34 -03:00
parent 1f3d817e3b
commit 22c370d231

View file

@ -919,6 +919,16 @@ class MeshService : Service(), Logging {
p.time = System.currentTimeMillis() // update time to the actual time we started sending
// debug("Sending to radio: ${packet.toPIIString()}")
sendToRadio(packet)
if (packet.hasDecoded()) {
val packetToSave = Packet(
UUID.randomUUID().toString(),
"packet",
System.currentTimeMillis(),
packet.toString()
)
insertPacket(packetToSave)
}
}
private fun processQueuedPackets() {