-
Notifications
You must be signed in to change notification settings - Fork 66
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
How to send binary data with "az iot device c2d-message"? #287
Comments
Hey @hitochan777 - unfortunately, the binary data you're sending will need to be encoded to I've tried some different encodings to allow for surrogate-less binary characters: If it's possible, one solution is to use The downside is that you'll need to Let me know if this helps for your workflow or if we need to investigate further. |
Hey @hitochan777 - haven't heard back from you in a bit. Closing this for now, please re-open if you find it's still an issue or the workaround provided isn't working for you. |
Sorry for the late reply. Is it possible to add an option to accept binary data? By the way I cannot reopen this issue (maybe because of permission) |
Can I send binary data with
az iot device c2d-message
, that is represented with HEX like0x86 0x54 0x32
?I converted a string to another with backslash escapes interpreted and then feed it to
az iot device c2d-message
command.But I got UnicodeEncodeError as shown below. Will it work if I specify proper content encoding?
The text was updated successfully, but these errors were encountered: