Teensy4.1 using Native Ethernet for Web Client

Status
Not open for further replies.

mokotroko

New member
Hi,
I am working with teensy41 since some months. Now, I am starting to use the ethernet module, but I found out the example WebClient that comes with NatvieEthernet library works fine, but if I use the example WebClientRepeating, it is not. First GET request seems to work, but not the rest. In the same way, if I adapt the WebClient example to perform several requests (to the same or different servers), first GET or POST request work fine, but not the rest.
In my scripts, I suspect the EthernetClient::available() function is not giving the rigth value, but I cant confirm the problem is there.
BTW, I tried to use the last version of NativeEthernet library from GitHub (https://github.com/vjmuzik/NativeEthernet/tree/master/src), and in this case, even the WebClient example is not working.
At Github repository (issues) for NativeEthernet, I see there are some reports for EthernetClient:: read() and flush() functions, but I dont know if they were fixed or not.
Thanks a lot for your help, I am really stucked right now
 
Just if I can help to another one. Finally, it was fixed by using the last version of NativeEthernet library from Github, plus the last version of the FNET library (as it was recommended by the owner vjmuzik). In my previous try, I had forgotten to update this FNET library too. Once I am using last versions of both libraries, consecutive http requests of WebClient are working fine.
 
Status
Not open for further replies.
Back
Top