I want to assign result to variable which is coming from code below.
for(int nIndex = 0; nIndex < nMsgLen; nIndex++)
{
Serial.print("0x");
if(nMsgBuffer[nIndex] < 16) Serial.print("0");
Serial.print(itoa(nMsgBuffer [nIndex], sString, 16));
Serial.print(" ");
}