Create string incorporating variables – sprintf sprintf(&MyCharArray[0], "AT+%s,%d\r", MyOtherString, MyIntVariable);