I am using the AsyncWebServer library and do the following:
on /index.html display a form
on submission with POST I read the parameters and prepare a command
this command I send with Serial.println(txcommand);
I need to:
read what the other device sends me from serial
example <252235325><523532532><3523532532> or or OK
format it to appropriate html format (list with links for every entity or just popup message)
show it on the browser page (my plan was to make a redirect call with get parameters and use JS to read the parameters and parse them into a popup or list, but it does not work )
example <252235325><523532532><3523532532> or or OK
Can you post an example of what you expect the "html format (list with links for every entity or just popup message)" to be for input of "<252235325><523532532><3523532532>"? I can't begin to imagine what you want.
So what do I need to do? Read char by char and convert to string?
Yes. Do not make the mistake of assuming that all the data has already arrived, though. Read whatever data has arrived, and store it, adding data on every iteration of loop() until the end of record marker arrives.