Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Large GET request splits the data #7

Closed
WheresWally opened this issue Dec 19, 2015 · 4 comments
Closed

Large GET request splits the data #7

WheresWally opened this issue Dec 19, 2015 · 4 comments

Comments

@WheresWally
Copy link

I am reading read a page from my PV inverter.
I get all the web page source but only the first 1460 bytes can be read via client.read().
The next 3 blocks of 1460 bytes, 1270 bytes and 971 bytes are spat out as Trailing Data>>>>
How can I get all the GET to come back via client,read() so I can parse it?


AT+GMR
AT version:0.21.0.0
SDK version:0.9.5

OK
...

SEND OK

sendData: 0 1

OK

SEND OK
New incoming connection - connId: 0
Bytes: 1460
HTTP/1.0 200 OK
Date: Sat, 19 Dec 2015 16:32:03 GMT
Server: Boa/0.94.13
Connection: close
Content-type:text/html;charset=utf-8

<title></title>

<<<<<<<<<<<<<<<<<<<<<
/New incoming connection - connId: 0
Bytes: 1270

Inverter IDCurrent PowerGrid FrequencyGrid VoltageTemperatureDate
404000066544-A W Hz V oC
404000066544-B W Hz V oC
404000066570-A W Hz V oC
404000066570-B W Hz V o<

Trailing data >>>

+IPD,0,1460:sup>C

404000066368-A W Hz V oC
404000066368-B W Hz V oC
404000066775-A W Hz V oC
404000066775-B W Hz V oC
404000066688-A W Hz V oC
404000066688-B W Hz V oC
404000066650-A W Hz V  oC
404000066650-B W Hz V oC
404000066359-A 1 W 49.9 Hz 233 V 31 oC 2015-12-19 18:36:53
404000066359-B 1 W 49.9 Hz 233 V 31 oC 2015-12-19 18:36:53
404000066566-A W Hz V oC
404000066566-B W Hz V oC
404000066767-A

Trailing data >>>

+IPD,0,971:nter> W

 Hz V oC
404000066767-B W Hz V oC
404000066774-A 2 W 49.9 Hz 234 V 29 oC 2015-12-19 18:36:53
404000066774-B 2 W 49.9 Hz 234 V 29 oC 2015-12-19 18:36:53



&copy2013 Altenergy Power System Inc.0,CLOSED
<<<<<<<<<<<<<<<<<<<<<

@bportaluri
Copy link
Owner

Can you please share the sketch you are using?

@bportaluri
Copy link
Owner

I have made a fix.
Can you please download the latest version and tell me if it works?

@WheresWally
Copy link
Author

YES !!! (sorry, the !!! might break something).
It does push all the incoming bytes through the client.read() now.
Thanks

@WheresWally
Copy link
Author

How can i send you a copy of my code securely. I do not wish the code to be public, but i would like you to test it.It works sometimes, not every time.There are 20 micro inverters and it should display all 20 lines of data parsed from the HTML returned.Some times it stops after the 9th inverter.not sure why.Feel free to use the connection to my inverter, i have port-forwarded it so you can test it from there, where ever there is.As I am in Australia, the sun might not be shining when you test, but that will just give you 0W etc, should still be able to read the data.
email me simmicht at hotmail dot com if you like.Terry

Date: Sun, 20 Dec 2015 07:27:22 -0800
From: notifications@github.com
To: WiFiEsp@noreply.github.com
CC: simmicht@hotmail.com
Subject: Re: [WiFiEsp] Large GET request splits the data (#7)

I have made a fix.

Can you please download the latest version and tell me if it works?


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants