AnsweredAssumed Answered

How use fprintf or fputs to send a zero hexadecimal.

Question asked by jesus ayala on Nov 19, 2014
Latest reply on Nov 20, 2014 by soledad

i'm trying to send to serial port the next 

char data[] = {0x02, 0xa3, 0x08, 0x00, 0xab}; 


fprintf(serial_fd,  string); 


But only the three first bytes was send. If change the 0x00 for other value all data is sent. 

I think that the fprintf takes the 0x00 as a end of line.  How i can send the 0x00 value using fprint or fputs function?