hi
how can i read formatted input from standard input( instead of scanf )what function can i use to read
hi
how can i read formatted input from standard input( instead of scanf )what function can i use to read
You'd first have to decide what is "standard input" ...
yes i want to give the input using termite
The nRF chip knows nothing about termite - or any other terminal app.
All it sees is bytes arriving at its UART (or USB "virtual" UART).
So you will need to collect bytes arriving at the UART (or via USB), parse them, and process them.
Have you looked at the UART example?
infocenter.nordicsemi.com/.../uart_example.html
Or the CLI library?
https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_cli.html
so in that case how i can replace the scanf and printf funtion in nordic
I honestly don't know what you want to do, but I'm guessing you want to parse strings.
If that's the case then I, like @awneill, suggest you take a look at the CLI library as it parses strings sent over UART:
https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.3.0/lib_cli.html