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
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
i want to do the similar thing in nordic using termite
char ch[80]; int n; int array[3] ={peripheral 1 ,peripheral 2,peripheral 3}; printf ("enter the peripheral number whom you want to send the msg"); scanf("%d", n); printf("enter the message you want to send"); scanf("%s", ch);
using termite mean uart .
how to do that ?
using termite mean uart
No, it doesn't.
how to do that
as explained above.
i didn't get that thats why i am asking
i didn't get that thats why i am asking
If you don't understand, then explain what's unclear.
Simply repeating the question endlessly isn't going to help.
Again, note that this is not specific to nRF - exactly the same would apply to any microcontroller. So try looking at some standard microcontroller resources.
Did you look at the links about retargetting?
This one looks like a good starting point:
http://robotics.mcmanis.com/articles/20140623_retargeting-libc.html