Load protobufs from submodule
This commit is contained in:
parent
e11367544d
commit
162f8da79c
41 changed files with 7 additions and 6535 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue