Load protobufs from submodule

This commit is contained in:
Anton Roslund 2025-08-03 21:05:33 +02:00
parent e11367544d
commit 162f8da79c
41 changed files with 7 additions and 6535 deletions

View file

@ -55,7 +55,7 @@ const port = options["port"] ?? 8080;
// load protobufs
const root = new protobufjs.Root();
root.resolvePath = (origin, target) => path.join(__dirname, "protos", target);
root.resolvePath = (origin, target) => path.join(__dirname, "protobufs", target);
root.loadSync('meshtastic/mqtt.proto');
const HardwareModel = root.lookupEnum("HardwareModel");
const Role = root.lookupEnum("Config.DeviceConfig.Role");