I'm trying a string compose from characters.
char buf = " ";
string id = "";
In a for, buf is getting these values in each execution: 226, 128, 104, 016, 000, 000, 000, 057, 130, 242, 031, 163.
The idea is that the id string be: 226128104016000000000057130242031163, but I can't get it. As far I went, id has been 226128104016, but it stopped when zeros came, or something I don't know.
I don't know how to get it.
Thanks in advance.
I believe you need to convert 226, for example, to a string and then concatenate it to buf, which is a 'C' string if you want it to be.
But this is probably easier for what you want.
buff += String(226);
buf will then contain the text string "226".
If you want to keep buf as a 'C' string then do this:
You need to convert the integer value 226 etc to readable text consisting of 3 ASCII digits.
Google ASCII table.