sp-react-native-mqtt
sp-react-native-mqtt copied to clipboard
How to send message is byte array
Hi, I want to send message, which is a byte array. Please help me.
The easiest way is using text-encoding
library to encode the byte array const string = new TextDecoder(encoding).decode(uint8array);
The other way is modify this library to accept byte array as payload
What about receiving byte array? Currently a null string is not received. Making impossible to work with buffers