scanf() don't work in idf monitor
Posted: Thu Aug 26, 2021 9:08 pm
Hello,
I am a new user on esp-idf. I have done some tests after following the "Getting Started" section, including this one:
Everything goes well, I start the monitor with the command "idf.py -p COM3 monitor". It is displayed : "Enter Data : " but I can't write anything, as if the keyboard was not working. However the CTRL-C (keyboard interrupt) command works. Do you know why I can't write anything in this monitor ?
Thank you in advance for your help,
AH.
I am a new user on esp-idf. I have done some tests after following the "Getting Started" section, including this one:
- #include <stdio.h>
- void app_main(void)
- {
- char chr;
- printf("Enter Data : ");
- scanf("%c", &chr);
- printf("Data entered : %c.", chr);
- }
Thank you in advance for your help,
AH.