ArduinoGeneral

How to print Integer alongside String Arduino?

userHead Account cancelled 2019-11-06 12:56:56 1502 Views1 Replies
I am trying to print an integer alongside a string but it's not really working out and am getting confused.
Code: Select all
int cmdSeries = 3;

Serial.println("Series : " + cmdSeries);// That's where the problem occur
In visual basic we used to do it this way:
Code: Select all
Dim cmdSeries As Integer
Console.Writeline(""Series : {0}", cmdSeries)
So i've tried it with Serial.println but it returns this error : call of overloaded 'println(const char [14], int&)' is ambiguous

Can anyone help my out, I want to achieve this without using any libraries and in a clean way.