-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
consider adding status()
in EthernetClient
#52
Comments
Thanks for doing this work. I think collected summaries like this are a good idea (that is, if they’re maintained). Could you point me to a spec for I also noticed a few mistakes for my library. I’ll file some issues in your repo. |
other lwip based libraries return |
I was doing some digging, and found these links: The W5100 values are returned from that library’s client As I’m finishing this message, I noticed you responded; I haven’t read it yet. |
Do you plan on returning an enum or a |
I just filed this issue for corrections, changes, and additions: Networking-for-Arduino/Arduino-Networking-API#1 Thanks again for this work! |
Oh, wait... I just realized you were referring to lwIP's internal enum. |
all libraries have `uint8_t' as return value.
works |
@JAndrassy Do you find that |
I don't use it because I didn't know before the research that almost all libraries have it. I have this in a project.
status() would be better than to have to read all the data that arrived late after my read function timeout out. |
I agree that it could be useful for more advanced uses, for sure. One thing about the Arduino ecosystem, in my opinion, is that there's lots of cargo culting, where simple momentum keeps APIs the way they are. |
it looks like the API doesn't have an 'owner' at Arduino. That is why I try to start a community driven 'standardization' with an RFC process. But first I try to just extend the API for useful functions which already exist in many of the libraries so there is already a consensus. |
I had added that function, by the way, just haven't pushed yet... I appreciate the suggestion and your efforts. |
Added in ba0736d. |
If you wan to add more compatibility functions, setDNS and dnsIP(n) are a good candidates. I added setDNS a dnsIP(n) into my EthernetENC library and I will do a PR for the Ethernet library. |
I have equivalent functions in the |
@ssilverman I added "Arduino networking API guide" to my https://github.com/JAndrassy/Arduino-Networking-API repository. |
Hello. I did a research on Arduino networking libraries and I noticed your EthernetClient class doesn't have a
status()
method. I think it is easy to implement it over LwIP.https://github.com/JAndrassy/Arduino-Networking-API/blob/main/ArduinoNetAPILibs.md#client-getters-and-setters
btw: I maintain EthernetENC, the other library which doesn't have
status()
in EthernetClient. I plan to add it.The text was updated successfully, but these errors were encountered: