I have this code.
    sprintf((char *)pData,"%c%02X%c%02X%
    02X",ASCII_STX,m_uSessionId,m_chSequenceChar,m_nMessageId,m_uVersion);
    NSLog("%@",pData);
But its not printing me the contents of pData. Tried with %d as format specifier.
Maybe you'll use the Obj-C method?
NSString *pData = [NSString stringWithFormat:@"%c%02X%c%02X%02X", ASCII_STX, m_uSessionId, m_chSequenceChar, m_nMessageId, m_uVersion];
NSLog(@"%@",pData);
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With