meshtastic-map icon indicating copy to clipboard operation
meshtastic-map copied to clipboard

mqtt Collector (mqtt.js) Fails to Update Database Using Specific Topic

Open skykingisepic opened this issue 1 year ago • 0 comments

Cloned Repo on three different linux CPUs.

Prisma sucessfully synced the database.

Server started with: node src/mqtt.js --mqtt-broker-url mqtt://epicnet.us:8183 --mqtt-username MeshEastTN --mqtt-password privcom4us --mqtt-topic msg/TN --collect-service-envelopes --collect-positions --collect-neighbour-info --collect-map-reports

This worked for over a year with the old code and quit working two months ago after the code update that requires the specific CLI options (--collect...)

No database records created from mqtt server data on any of the three installations.

MQTT Explorer shows steady stream of data from my local node

I even tried using default mqtt server settings to connect to meshtastic.org server with same results, so it isn't an mqtt server issue.

Also note there is no console.log output at all from mqtt.js, so I added some console.log() trigger points and see that it is: Connecting to mqtt server Subscribing to topic

But never receives any messages (no 'Msg Rcvd' output) so doesn't process a db update client.on("message", async (topic, message) => { console.log("Msg Rcvd");

Problem seems to be subscription to specific topic (msg/TN). If I hard code client.subscribe("#"); I start getting messages and the database updates.

skykingisepic avatar Nov 09 '24 17:11 skykingisepic