String msg = "";
String v = "2-3-4-5-6-7-8-9";
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
Serial.println("Hello, ESP32!");
msg = v[0]+v[2]+v[4];
Serial.println(msg);
v.replace("-","");
Serial.println(v);
if (v.compareTo("23456789") == 0) {
Serial.println("EQ");
} else {
Serial.println("NOT");
}
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}