Open cdupont opened 3 years ago
XLPP buffers are binary, so you can display them using Base64.
If you are interested in parsing the binary XLPP buffer, you can use the xlpp binary like this:
# Encoding Binary
xlpp -e -f bin '{"string1":"hello:)"}' > pl1.xlpp
xlpp -e -f bin '{"temperature0":23.5}' >> pl1.xlpp
# Decoding Binary
xlpp -d -f bin < pl1.xlpp
# {"string1":"hello:)","temperature0":23.5}
As the encoding is straight forward, you can interpret the raw binary fairly well, e.g. after using xxd
.
To parse the XLPP buffer in Arduino / C, use this example: https://github.com/Waziup/arduino-xlpp/blob/main/test/simple/main.cpp#L421
How to display the buffer sent by XLPP? Could you give an example? Thanks