I have a method
mymethodprint(const char *String)
and I need to convert uint16_t value
to use with it. I have tried
char valueS=itoa(value,String, 10);
but it doesn't work
I have a method
mymethodprint(const char *String)
and I need to convert uint16_t value
to use with it. I have tried
char valueS=itoa(value,String, 10);
but it doesn't work
" doesn't work" is a bit vauge
upload complete code using code tags </>
give details of the problem - e.g. upload serial monitor output
try
char valueS[20]={0};
itoa(value,valueS, 10);
If you are using a String use the string function to_string().
int x = 34;
String someString = to_string(x);
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.