Post topics, source code that relate to the Arduino Platform

User avatar
By igrr
#28977 You may also declare local variable as static, which will place it into .data section as well.
User avatar
By trendchaster
#29013 Hello,
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.
User avatar
By martinayotte
#29023 There are many ways to accomplish that. The easiest one would be to simply transmit hexadecimal representation of every bytes, it means that for 256 array, the transmitted string would have 512 hexadecimal characters.
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.