Load protobufs from submodule
This commit is contained in:
parent
e11367544d
commit
162f8da79c
41 changed files with 7 additions and 6535 deletions
|
|
@ -250,7 +250,7 @@ const client = mqtt.connect(mqttBrokerUrl, {
|
|||
|
||||
// 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 Data = root.lookupType("Data");
|
||||
const ServiceEnvelope = root.lookupType("ServiceEnvelope");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue