I am trying to use WGETASYNC or WGET on a Wemos D1 Mini (ESP8266) and can't seem to get it to work.
Same exact code copied and pasted on an ESP32 (WROOM) works perfect.
WGETASYNC does not work at all on the D1 Mini and WGET works intermittently, and then when it works it only returns a partial response.
Pictures below after a run....
What am I doing wrong or is this an Annex issue?
Thanks
WGETASYNC and WGET
WGETASYNC and WGET
You do not have the required permissions to view the files attached to this post.
- cicciocb
- Site Admin
- Posts: 1978
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 425 times
- Been thanked: 1320 times
- Contact:
Re: WGETASYNC and WGET
The problem could be related to the size of the message received from the remote server.
It is probably too big to fit into the ESP8266 RAM available.
Additionally the WGETASYNC might not work because it try to ping the server before and the server simply do not answer to the ping request.
This can be overridden specifying the parameter ping to 0
(this is a extract of the documentation)
By default the command WGETASYNC execute a ping on the remote server before trying the connection.
This can avoid memory leaks in case of a server not alive.
This behaviour can be modified specifying 0 for the parameter ping
It is probably too big to fit into the ESP8266 RAM available.
Additionally the WGETASYNC might not work because it try to ping the server before and the server simply do not answer to the ping request.
This can be overridden specifying the parameter ping to 0
(this is a extract of the documentation)
By default the command WGETASYNC execute a ping on the remote server before trying the connection.
This can avoid memory leaks in case of a server not alive.
This behaviour can be modified specifying 0 for the parameter ping