W5500 serial to HTTP bridge
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: W5500 serial to HTTP bridge
by Eugeny ·
It depends on what level you need to check. If you want to check at TCP/IP or other network level, then you do keep-alive and other standard stack functions (check if they are available in the chip you have chosen). However if you want to test HTTP (or any other port application listens to) then you need to do it at the application level - open port to HTTP server and perform small communication or keep port open and sometimes make a short control data exchange. What you say may be something already implemented in e.g. MQTT - check its spec. You can describe your own simple proto, for example having starting byte of 0 for just this byte ping exchange and having byte of 1 as a marker of normal data.
RE: RE: W5500 serial to HTTP bridge
by fabry ·
I can’t use MQTT cause I have to use an already existing HTTP server.
I would like to use ICMP to verify with a certain periodicity that I can reach my destination web server but the creation of this type of socket fails. See previous code snippet.
What could it be due to?
RE: W5500 serial to HTTP bridge
by Eugeny ·
Regularly request some test page from the web server to see if it is available. Working ping does not mean web server is up and running and is available.
RE: W5500 serial to HTTP bridge
by fabry ·
It makes sense as a choice
I will also evaluate MQTT as a feasibility
Thank you
RE: RE: W5500 serial to HTTP bridge
by Eugeny ·
I do not say you must use MQTT as is, but you can look at how it is designed and reuse ideas from it.