Thanks to the help of people here, I've gotten the WiFi software working on my esp32. I'm at the point where my next task is to remove my hard-coded password to my access point from my program.
So...I think it's time to learn how to read input from the console. I did a little online searching, and didn't find anything that was very recent, so I figured I better ask here.
- What is the state of scanf(), or a reasonable equivalent?
- If it still doesn't exist, then what if I wrote a routine that did something like this?
Code: Select all
char c = 0;
while (c != 0x0d)
{
// run some 100ms delay (not sure how to do this)
c = fscanf(stdin);
if (c != 0xff)
strcat (str, c);
}
(I realize the code fragment isn't all there, but hopefully you get the idea.)
Would this be an advisable course of action, or is there a better way?
Thanks...