Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
skykingisepic opened this issue Nov 9, 2024 · 0 comments

Comments

@skykingisepic
Copy link

skykingisepic commented Nov 9, 2024

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 skykingisepic changed the title mqtt Server Fails to Update Database mqtt Collector (mqtt.js) Fails to Update Database Nov 10, 2024
@skykingisepic skykingisepic changed the title mqtt Collector (mqtt.js) Fails to Update Database mqtt Collector (mqtt.js) Fails to Update Database Using Specific Topic Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant