mirror of
https://github.com/Roslund/meshtastic-map.git
synced 2026-05-18 07:16:10 +02:00
Collect node max hops
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
-- AlterTable
|
||||
ALTER TABLE `nodes` ADD COLUMN `max_hops` INTEGER NULL;
|
||||
@@ -54,7 +54,8 @@ model Node {
|
||||
mqtt_connection_state_updated_at DateTime?
|
||||
|
||||
ok_to_mqtt Boolean?
|
||||
is_backbone Boolean?
|
||||
is_backbone Boolean?
|
||||
max_hops Int?
|
||||
|
||||
created_at DateTime @default(now())
|
||||
updated_at DateTime @default(now()) @updatedAt
|
||||
|
||||
@@ -947,6 +947,7 @@ client.on("message", async (topic, message) => {
|
||||
role: user.role,
|
||||
is_unmessagable: user.isUnmessagable,
|
||||
ok_to_mqtt: isOkToMqtt,
|
||||
max_hops: envelope.packet.hopStart,
|
||||
|
||||
firmware_version: '<2.5.0',
|
||||
...(user.publicKey != '' && {
|
||||
@@ -965,6 +966,7 @@ client.on("message", async (topic, message) => {
|
||||
role: user.role,
|
||||
is_unmessagable: user.isUnmessagable,
|
||||
ok_to_mqtt: isOkToMqtt,
|
||||
max_hops: envelope.packet.hopStart,
|
||||
|
||||
firmware_version: '<2.5.0',
|
||||
...(user.publicKey != '' && {
|
||||
|
||||
Reference in New Issue
Block a user