nanopd use binary data but parameter of Particle.function() is String.
Is it safe just translate String to uint8_t data array?
It is not safe to send unescaped binary data as function data. You should use hex, base64 or base85 encoding to pass binary data as a string in functions, variables, and publish.
1 Like
I should translate data to Hex String Format?
Reflecting back as question what you got as suggestion?