mirror of
https://github.com/Roslund/meshtastic-map.git
synced 2026-05-03 03:53:05 +02:00
Collect portnums for ServiceEnvelopes
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE `service_envelopes` ADD COLUMN `portnum` INTEGER NULL;
|
||||
@@ -204,6 +204,7 @@ model ServiceEnvelope {
|
||||
gateway_id BigInt?
|
||||
to BigInt
|
||||
from BigInt
|
||||
portnum Int?
|
||||
protobuf Bytes
|
||||
|
||||
created_at DateTime @default(now())
|
||||
|
||||
@@ -750,6 +750,7 @@ client.on("message", async (topic, message) => {
|
||||
gateway_id: envelope.gatewayId ? convertHexIdToNumericId(envelope.gatewayId) : null,
|
||||
to: envelope.packet.to,
|
||||
from: envelope.packet.from,
|
||||
portnum: portnum,
|
||||
protobuf: message,
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user