I have two character buffers and two integers all of which i want to put together into a single char buffer as a response message in my serial command handler. Problem is the second character buffer is ignored and only the first is used twice. why?
sprintf(aMsg, "%s,%i,%i,%s", aBuf1, aInt1, aInt2, aBuf2);
I see something like: aaa,1,2,aaa
instead of: aaa,1,2,bbb
any idea what i'm missing?