I have created a array of abc[256] in which packets has been stored (i.e. sniffer mode)and want to convert into string. After converting into string ,I want to publish this array using MQTT .Is it possible ?. If then how it is to be done.
If you want to have more efficient transmit string, you can use the "uuencode" method which packs 6 bits per characters, but the code will have to handle the bit shifting of every bytes into a 6 bits streams.