This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

The transmit data type for the libuarte

Hi,

I am going to do data communication between two boards with libuarte. I see that both txdata and rxdata should be uint8_t*. But if I try to transmit the char*, will it be translated to ASCII code automatically when I call the "nrf_libuarte_async_tx()"? Or I have to code the string into uint8_t in advance?  

Because the string I want to send cannot be pre-defined, so I cannot directly use "uint8_t txdata[] = <string>", like the libuarte example, to make up the "txdata". I am just wondering if there is an efficient method to send a string through libuarte.

Thanks in advance for any advice you give me.

Related