Here are the error message copied from the sketch in the Arduino IDE software:
Arduino: 1.8.16 (Windows 10), Board: “Adafruit ESP32 Feather, 80MHz, 921600, None, Default”
C:\Users\gianni.mazzantini\Documents\Arduino\Power_Anchor_Bryce_15_10_21\Power_Anchor_Bryce_15_10_21.ino: In function ‘void loop()’:
Power_Anchor_Bryce_15_10_21:70:68: error: invalid operands of types ‘const char*’ and ‘const char [4]’ to binary ‘operator+’
if (header.indexOf("GET /" + motor[0][0] + "/on") >= 0)
^
Power_Anchor_Bryce_15_10_21:72:77: error: invalid operands of types ‘const char*’ and ‘const char [10]’ to binary ‘operator+’
Serial.println("Motor on GPIO " + motor[0][0] + " starting");
^
Power_Anchor_Bryce_15_10_21:85:73: error: invalid operands of types ‘const char*’ and ‘const char [5]’ to binary ‘operator+’
else if (header.indexOf("GET /" + motor[0][0] + "/off") >= 0)
^
Power_Anchor_Bryce_15_10_21:87:77: error: invalid operands of types ‘const char*’ and ‘const char [10]’ to binary ‘operator+’
Serial.println("Motor on GPIO " + motor[0][0] + " stopping");
^
Power_Anchor_Bryce_15_10_21:92:73: error: invalid operands of types ‘const char*’ and ‘const char [4]’ to binary ‘operator+’
else if (header.indexOf("GET /" + motor[1][0] + "/on") >= 0)
^
Power_Anchor_Bryce_15_10_21:94:77: error: invalid operands of types ‘const char*’ and ‘const char [10]’ to binary ‘operator+’
Serial.println("Motor on GPIO " + motor[1][0] + " starting");
^
Power_Anchor_Bryce_15_10_21:96:42: error: ‘motor2Pin1’ was not declared in this scope
digitalWrite(motor2Pin1, HIGH);
^
Power_Anchor_Bryce_15_10_21:97:42: error: ‘motor2Pin2’ was not declared in this scope
digitalWrite(motor2Pin2, LOW);
^
Power_Anchor_Bryce_15_10_21:107:73: error: invalid operands of types ‘const char*’ and ‘const char [5]’ to binary ‘operator+’
else if (header.indexOf("GET /" + motor[1][0] + "/off") >= 0)
^
Power_Anchor_Bryce_15_10_21:109:77: error: invalid operands of types ‘const char*’ and ‘const char [10]’ to binary ‘operator+’
Serial.println("Motor on GPIO " + motor[1][0] + " stopping");
^
Power_Anchor_Bryce_15_10_21:131:77: error: invalid operands of types ‘const char*’ and ‘const char [48]’ to binary ‘operator+’
client.println("<p><a href=\"/" + motor[0][0] + "/on\"><button class=\"button\">ON</button></a></p>");
^
Power_Anchor_Bryce_15_10_21:135:77: error: invalid operands of types ‘const char*’ and ‘const char [58]’ to binary ‘operator+’
client.println("<p><a href=\"/" + motor[0][0] + "/off\"><button class=\"button button2\">OFF</button></a></p>");
^
Power_Anchor_Bryce_15_10_21:139:80: error: invalid operands of types ‘const char*’ and ‘const char [5]’ to binary ‘operator+’
client.println("<p>GPIO 15 - State " + motorState[1] + "</p>");
^
Power_Anchor_Bryce_15_10_21:140:83: error: invalid operands of types ‘const char*’ and ‘const char [17]’ to binary ‘operator+’
motorState[0] ? client.println("<p>GPIO " + motor[1][0] + " - State OFF</p>") : client.println("<p>GPIO " + motor[1][0] + " - State ON</p>");
^
Power_Anchor_Bryce_15_10_21:140:147: error: invalid operands of types ‘const char*’ and ‘const char [16]’ to binary ‘operator+’
motorState[0] ? client.println("<p>GPIO " + motor[1][0] + " - State OFF</p>") : client.println("<p>GPIO " + motor[1][0] + " - State ON</p>");
^
Power_Anchor_Bryce_15_10_21:142:46: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (motorState[1] == "off")
^
Power_Anchor_Bryce_15_10_21:145:77: error: invalid operands of types ‘const char*’ and ‘const char [48]’ to binary ‘operator+’
client.println("<p><a href=\"/" + motor[1][0] + "/on\"><button class=\"button\">ON</button></a></p>");
^
Power_Anchor_Bryce_15_10_21:149:77: error: invalid operands of types ‘const char*’ and ‘const char [58]’ to binary ‘operator+’
client.println("<p><a href=\"/" + motor[1][0] + "/off\"><button class=\"button button2\">OFF</button></a></p>");
^
Multiple libraries were found for “WiFi.h”
Used: C:\Users\gianni.mazzantini\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.6\libraries\WiFi
Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
exit status 1
invalid operands of types ‘const char*’ and ‘const char [4]’ to binary ‘operator+’
This report would have more information with
“Show verbose output during compilation”
option enabled in File → Preferences.