Reading Mixed Serial If/Else ? ?

Robin

Let me disagree there in specific cases and this is one of those

Waiting for the OK from your device to go to the next step of setup is key, there is usually no point continuing or you need to have a degraded experience mode. How do you get there if you don’t have a specific timeout ? Wait forever and can’t try alternative way to come back from the failure ?

If you look at the suggestion the timeout is a max wait time if you get the OK before obviously the function returns and you can proceed

You could sure have a totally async way of handling this with a callback or active check in the loop so that your app can continue without waiting (state machine driven for example) but in most cases the app needs the resource configured in a certain way to work and this is handled in the setup