Hi.. I want to send Binary Data using printf() function for examle if I do
printf("%d",i)
"printf() function transmit that integer in text mode (not in Binary mode) i.e. it will send 5 bytes for 16706" Well of course it does! The clue is in the function name: printf - clearly this is aimed at a printing output device, which will naturally expect text output! This should also serve as a warning to you: it is up to you to ensure that your entire communications link can pass binary data; it only takes one step in the link to interpret your binary data as control codes, and the entire link will get messed up. Be careful!