I was wondering in the following scenario what will happen:
loop:
delay(10000);
And while this delay is hit, gateway sends a paramater change (eg: 64 to 1000)...
Will the parameter be 1000 after the delay? Or does the loop need to finish first?
Delay in loop, paramater change while delay - What happens?
Re: Delay in loop, paramater change while delay - What happens?
If you read the documentation in delay, you will notice that long delays (more than 10 ms) are always made a sync. This means radio will handle incoming requests in background and will resume your loop after the delay is over. Only short delays are really blocking.
So in short, it will already change
So in short, it will already change