9 years, 6 months ago.

write function usage

how to use write function this function for UART transmit

Question relating to:

1 Answer

9 years, 6 months ago.

The write function (or any other functions that are described as asynchronous) only work on silicon labs based mbed boards.

They seem to be included in the main documentation for the mbed libraries without large flashing warning signs pure to frustrate beginners.

i am using FRDMK22F can i use write method here to transmit data??

posted by Remesh ck 23 Feb 2016

No. The FRDMK22F is made by Freescale not Silicon Labs. None of the API functions listed as async for the UART or non-blocking for the I2C or SPI will work.

You can use something like MODSERIAL to get much the same effect as the serial.write() function on most platforms.

posted by Andy A 23 Feb 2016