You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is expected that the binary output has the bytes that can be found in the clean output.
Environment
OS: OS version, e.g. macOS Big Sur 11.1
MQTTX version, e.g. v1.5.0
More detail
It seems to me that there is a conversion going on and somehow the binary data is interpreted as UTF-8, which fails. Any non-UTF-8-compliant byte sequences would be replaced with ef bf bd. This sequence can be found multiple times in the output.
Other "ASCII compatible" byte sequences like "00 00 00 04" or "01 01 07" can be found in the output.
The text was updated successfully, but these errors were encountered:
Hi! You're encountering an issue where --format binary isn't being properly handled when writing to .netp file. Here's a temporary solution using MQTTX CLI's pipeline capabilities:
Yes, perhaps we will reverse the --format binary logic, so only when utf-8 is specified will it be displayed as text file data. Everything else should be treated as binary.
What did I do
I try to read binary data from a channel and save it with "--file-write".
./mqttx-cli-macos-x64 sub -h 192.168.xxx.xxx --format binary --output-mode clean --file-write ew10.netp -t home/ew10/state >ew10.json
What happened
The output in "ew10.netp" contains extraneous bytes and doesn't match the clean output in "ew10.json", which has the correct data:
Expected
It is expected that the binary output has the bytes that can be found in the clean output.
Environment
More detail
It seems to me that there is a conversion going on and somehow the binary data is interpreted as UTF-8, which fails. Any non-UTF-8-compliant byte sequences would be replaced with
ef bf bd
. This sequence can be found multiple times in the output.Other "ASCII compatible" byte sequences like "00 00 00 04" or "01 01 07" can be found in the output.
The text was updated successfully, but these errors were encountered: