Page 2 of 2

Re: ESP32-S3 + w5500 spi

Posted: Sun Mar 03, 2024 3:16 pm
by TyuTyu
Ethernet is not well documented. :(

Question: how can I send picture (part of html) ?
I could not find solution, because binary transfer (iobuff) not allowed.

I tried alternativ solution convert it to base64 and send as base64 coded data:
fil$ = file.read$(mit2$)
ret$=|<body><img src="data:image/jpeg;base64,|
ret$=ret$+fil$
ret$=ret$+|" alt="kep" /></body>|
ETHERNET.SERVER.MSGRETURN ret$

It works but only for small picture. Bigger (~90kb) failed.
Interesting ret$ is OK (whole picture)

BTW: I suppose in the help "ethernet.server.return" not OK.
That is why I use "ethernet.server.msgreturn"
kép.png

Do you have a good ethernet webserver example ? How do you send bigger content ?

Re: ESP32-S3 + w5500 spi

Posted: Sun Mar 03, 2024 3:53 pm
by Electroguard
I don't have any ethernet webserver examples because I was using it for broadcasting UDP messages over cable where wifi was unable to reach.

Re: ESP32-S3 + w5500 spi

Posted: Sun Mar 03, 2024 4:06 pm
by cicciocb
HI TyuTyu,
as Robin (Electroguard) said the Ethernet W5500 support was introduced long time ago, with a limited scope just for his specific needs.
I never modified and tested since, I'm even surprised that it still working even with the ESP32-S3. :D

It looks that you are the 2nd user of this feature ...

What you probably need is not implemented, such as a real web server and the use of the IOBUFFERS

Re: ESP32-S3 + w5500 spi

Posted: Mon Mar 04, 2024 6:43 am
by TyuTyu
Thanks.
The situation is clear now:
I'm member of very exclusive club 😊
So I understand now why Robin said “it is a small club” 😊

BTW: not really IOBUFFER is missing, because in almost every case handling of larger RET$ could solve the problem.