Get data from buffer [webclient sketch]

Hi
I modified the webclient sketch to get my things done.
i am stuck with the buffer, i can see my data in serial monitor used in Serial.write() function. but don't know how to assign it to a variable.
the Serial.write() function spites this:

HTTP/1.0 200 OK
X-Powered-By: PHP/7.4.13
Content-Type: text/html; charset=UTF-8
Cache-Control: public, max-age=60
Expires: Sun, 17 Jan 2021 15:02:04 GMT
Content-Length: 7
Date: Sun, 17 Jan 2021 15:01:04 GMT
Vary: Accept-Encoding,User-Agent
X-Cache: MISS from ATRIN.CDN.Content
X-Loop-Control: 91.186.200.205 AE45CB4C895F5B122089E1E74BEF4ABD
Connection: close

bedtime

my data is the last line. based on PHP code behind it it is always bedtime or working.
Thanks for your help

Ok, Iused

String str = (char*)buffer;

and after sketch finishes str starts from data i want to use and some numbers after it.
it worked for me here. But I know it's not a standard way to do. this method have lots of problems.
if somebody know the standard way that works fine, please let me know.
thank you guys.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.