char buf[] = "33;ABC;def ";
char buf1[20];
char buf2[20];
int num;
void setup() {
Serial.begin(115200);
Serial.println("Hello, ESP32-S3 sscanf test!");
Serial.println(buf);
sscanf(buf, "%d; %[^;];%[^;]", &num, buf1,buf2);
Serial.println((num));
Serial.println( buf1);
Serial.println(buf2);
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}