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

@ -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");