I use sprintf for this stuff. This puts the integer variable 'a' converted to text in commands[1].
int a = 24;
sprintf(commands[1],"%d",a);
Serial.println(commands[1]);
I use sprintf for this stuff. This puts the integer variable 'a' converted to text in commands[1].
int a = 24;
sprintf(commands[1],"%d",a);
Serial.println(commands[1]);
I can imagine sscanf or atoi helping, but not really sprintf.
Can you explain, SurferTim?
SurferTim:
I use sprintf for this stuff. This puts the integer variable 'a' converted to text in commands[1].int a = 24;
sprintf(commands[1],"%d",a);
Serial.println(commands[1]);
I'll have a look at that. I have about 80 bytes of space left ![]()
So we'll see what it takes.