Skip to content

Commit

Permalink
mqtt print everything
Browse files Browse the repository at this point in the history
  • Loading branch information
EricAndrechek committed Jul 15, 2024
1 parent e08f953 commit da06f02
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tracking-dashboard/frontend/mqtt.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ client.on("connect", () => {
});

client.on("message", (topic, payload) => {
console.log("Message received");
console.log("Topic: ", topic);
console.log("Payload: ", payload.toString());
if (topic.includes("POSITION")) {
positionHandler(topic, payload);
} else if (topic.includes("TELEMETRY")) {
Expand Down

0 comments on commit da06f02

Please sign in to comment.