5 years, 7 months ago.

Sending ASCII over serial communication.

Greetings, I am trying to send ASCII codes to my 3G module using serial by using .write function but it doesn't work. An Error 265 was returned to me upon compiling. How do I go about sending : device.write(0x1A); sends ++ device.write(0x0D); device.write(0x0A); in mbed format? I'm new to mbed btw.

Question relating to:

1 Answer

5 years, 7 months ago.

Try

device.putc (0x1A);

Accepted Answer

Alright. Thanks!

posted by Ahmad Syahmi Abdul Rahim 30 Jul 2015