MQTTX CLI
#1945
Replies: 1 comment
-
Hi @jdonth ! As of now, I don't think there's a way to save the topic or full packet with the file, the --file-save functionality in cli/src/lib/sub.ts is implemented as const receivedMessage = processReceivedMessage(payload, schemaOptions, format)
const savePath = fileSave ? createNextNumberedFileName(fileSave) : fileWrite
if (savePath) {
fileSave && writeFile(savePath, receivedMessage)
fileWrite && appendFile(savePath, receivedMessage, delimiter)
} Only the payload is being saved when you pass in --file-save option. However, you can always use the --verbose or --output-mode clean and redirect the console output to a file. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using the --file-save option of MQTTX CLI and I want to see the full packet or at least the topic included with the saved file. How do I do that? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions