Hello,
- if you want to use old Serial API you can downgrade MbedOS to MbedOS 5.15.5
- In your previous post also Jamie wrote about how to add
printf
back
However, you are sending the string 0xFF
which is 4 bytes represented as 0x30 0x78 0x66 0x66
. But you need send 0xFF
as one byte HEX, so you need to use other way.
char temp = 0xff;
serial_port.write( &temp, 1);
//or
char data[] = {0xff, 0xff, 0xff};
serial_port.write(data, sizeof(data));
BR, Jan