mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
insert sent messages in Packet
This commit is contained in:
parent
8de9a90c8f
commit
7c1c449dd3
1 changed files with 10 additions and 0 deletions
|
|
@ -938,6 +938,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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue