microsoft / vscode-azure-iot-toolkit

Azure IoT Hub extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=vsciot-vscode.azure-iot-toolkit
Other
73 stars 58 forks source link

Way to send a D2C message as a hexadecimal buffer #457

Open Delapouite opened 4 years ago

Delapouite commented 4 years ago

Hello

Currently, when using the D2C simulator, two choices are offered for the message format: Plain Text and Data Template:

image

Could their be a third choice to send a raw hexadecimal buffer through this textarea?

Thanks

formulahendry commented 4 years ago

Hi @Delapouite , I'd like to learn about the real use case of hexadecimal buffer. How do you use hexadecimal buffer in your application? Thanks a lot.

Delapouite commented 4 years ago

Thanks for your attention. Well I said hexadecimal, but in the end it's just a way to represent a raw binary buffer. It's because pasting the 0 and 1 of a Protocol Buffers payload would be quite long.

formulahendry commented 4 years ago

Thanks for your detailed infomation. The initial goal of the D2C function is provide a simple and lightweight tool to send plain text D2C message. And users could encode and decode with their own code. As there as several kinds of encoding method, such as utf8, base64, hex and so on, I'd like to make it as a feature request, and see if there are more users need this feature.