Avoid waiting server response with Wunderground (arduino)
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: Avoid waiting server response with Wunderground (arduino)
by Eugeny ·
You assume that we know your environment, and what Wunderground is. Please make explanation simple - there’re two devices, and one does something in the direction of the other. One of them is W5500.
W5500 is socket implementation (if you do not use it in RAW mode) thus whatever data it will receive in background this data will remain in its buffer until controlling unit tells W5500 that data is not needed anymore (except cases when data buffer overflows, then latest data is lost).
Thus, if you know timing of your data exchange, you should not be in idle state waiting for data to come, as you say Arduino can do whatever it needs and regularly check for incoming data, and as soon as data arrives, process it properly.
RE: RE: Avoid waiting server response with Wunderground (arduino)
by jgveill ·
Sorry for that …
Weather Wunderground is a server service that stores weather station data (humidity, temp, wind speed, wind dir, etc…) that can be uploaded every XX sec/min. Many people use the arduino and W5500 to do that.
Part of the problem is that I don’t know when Wunderground server will send it’s answer.
Meanwhile, I think I may have found how to do it and it’s the solution you proposed at the end of your message. I was missing some basic knowledge, To be clear for less knowledgeable people like me : " client.connected" will return true until rx buffer was emptied from the final packet. “client.available” returns true if there’s data in the rx buffer.
I should be OK with that.
Thanks J Guy
P. S. no need to be angry. You finally understood the problem and gave the solution. Being angry shortens the life !