How to print Integer alongside String Arduino?
I am trying to print an integer alongside a string but it's not really working out and am getting confused.
Can anyone help my out, I want to achieve this without using any libraries and in a clean way.
Code: Select all
In visual basic we used to do it this way:int cmdSeries = 3;
Serial.println("Series : " + cmdSeries);// That's where the problem occur
Code: Select all
So i've tried it with Serial.println but it returns this error : call of overloaded 'println(const char [14], int&)' is ambiguousDim cmdSeries As Integer
Console.Writeline(""Series : {0}", cmdSeries)
Can anyone help my out, I want to achieve this without using any libraries and in a clean way.