Read substring via wifi

@DjangoTango

I have not used the Portenta H7 Pro (+100 €).

Try the Web component, try to show the entire currentLine in the Serial Monitor.

Try using the functions... readStringUntil('\r') and .indexOf("..")

String req = client.readStringUntil('\r');
Serial.println(req);

// Make the client's request.
if (req.indexOf("on12") != -1)

Try doing this example in Portenta to see if it works, if it works I think it will be easy to adapt it to your project.

1 Like