I have a simple file saved on the ESP that has only six characters.
On boot up, this file is read, and fills up an arry a[1] to a[6].
Now, I recive a string of characters over wifi, and what I want is to suucessively compare each incoming character with its corresponding elemnt in the array.
That is, only if
1st character = a[1]
2nd character = a[2]
-
-
-
6th character = a[6]
Switch on gpio0 for 2 seconds.
I have been struggling with this and made absolutely no headway.
Any advice would be highly appreciated, folks!