it does this error: invalid conversion from 'char' to 'const char*' [-fpermissive] how do I fix this?enter image description here
First of all Arduino uses C++ language, The reason for the error: " invalid conversion from 'char' to 'const char*' " is that the function Serial.readStringUntill()
returns a String, but you are trying to equate it with a character in myList=='A'
(anything encased in '
is considered character in C++) , you can fix the error by accessing first character from the 'myList' and then equate like shown below
myList[0]=='A'