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

scanf does not work

Hello,

I have include stdio.h library file and configure uart . Used printf to print data over uart to terminal. Now I wants same thing reverse get data(scanf) from terminal (via uart). But I am failing to get data.

Can any one help me how can I get data from terminal(via uart) ?

Regards, Rajneesh

Parents Reply
  • Thanks Øyvind,

    I agree with you there are no scanf code.

    I have used app_uart_get(data_array[index]) in the uart_event_handle. Its work well. Its work on interrupt and every interrupt its fill uart fifo.

    Actually I wants to wait till user does not enter any data on uart(terminal) same functionality of scanf() function call.

    Any other way to get data from uart(enter from terminal)?

    regards, Rajneesh

Children
No Data
Related