Hello everyone!
i have this part of a code, when i verify it, it gives me this eeror
Arduino: 1.8.3 (Windows 8.1), Board: “Arduino Due (Programming Port)”
error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(Serial.available() == “EnRFun”){ //enter room
^
Box1:142: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
else if(Serial.available() == “GuestFun”){ //enter room
^
exit status 1
ISO C++ forbids comparison between pointer and integer [-fpermissive]
and there is the part of my code:
if(Serial.available()){
if(Serial.available() == "EnRFun"){ //enter room
lcd.print("Enter or not");
EnterRoomFunction();
}
else if(Serial.available() == "GuestFun"){ //enter room
lcd.println("Guest");
lcd.println("Go out now");
}
i have tried to find solutions but i didn’t find any>
thank you <3