-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Update WiFiClient example #4088
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
Comments
Why not just making a Quine by reading and printing a small page that we know will live not shorter than the sketch ? This one: ...The bad news is github serving https only 😞 |
That would be a nice example for HTTPClient library. |
http://www.iana.org/ will always be there... they're the root of DNS. :) |
Without asking the user to setup a TCP server (it's hard in Windows), there are limited choices for non-HTTP TCP servers.
A drawback is that the ESP8266 cannot send anything, but is receive-only. |
Then what about a WiFiClientBasic example:
|
Some kind of loopback might be nice then you can see the http in the same code file as you expect to receive from client. |
WiFiClient no longer depends on now-defunct data.sparkfun.com service, but uses a TCP "quote of the day" service instead. fixes esp8266#4088
WiFiClient no longer depends on now-defunct data.sparkfun.com service, but uses a TCP "quote of the day" service instead. fixes #4088
WiFiClient example shows how to send an HTTP request to Sparkfun Data service. However, this service has been discontinued. Some users attempt to use WiFiClient example as a base when implementing HTTP client functionality, which is suboptimal because there are better libraries for that purpose (ESP8266HTTPClient).
Need to develop a new WiFiClient example which will not use a discontinued service, and would not demonstrate something that is not considered best practice.
One possible solution might be to replace WiFiClient example with WiFiClientBasic. In this case, it has to be extended with instructions on setting up a TCP server (e.g. using a GUI tool like Processing and using something like nc for command line).
The text was updated successfully, but these errors were encountered: