Skip to content

Commit

Permalink
add debug message for metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
sachaw committed Jul 28, 2023
1 parent 9a58223 commit 631b110
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@meshtastic/meshtasticjs",
"version": "2.1.20-1",
"version": "2.1.20-2",
"description": "Browser library for interfacing with meshtastic devices",
"license": "GPL-3.0-only",
"scripts": {
Expand Down
5 changes: 5 additions & 0 deletions src/iMeshDevice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -996,6 +996,11 @@ export abstract class IMeshDevice {
);
break;
case "getDeviceMetadataResponse":
this.log.debug(
Types.Emitter[Types.Emitter.getMetadata],
`🏷️ Recieved metadata packet from ${dataPacket.source}`,
);

this.events.onDeviceMetadataPacket.emit({
...packetMetadata,
data: adminMessage.payloadVariant.value,
Expand Down

0 comments on commit 631b110

Please sign in to comment.