ESP32-S3 + w5500 spi

Annex for ESP32
TyuTyu
Posts: 13
Joined: Sun Apr 09, 2023 5:38 am
Has thanked: 3 times

Re: ESP32-S3 + w5500 spi

Post 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 ?
You do not have the required permissions to view the files attached to this post.
User avatar
Electroguard
Posts: 855
Joined: Mon Feb 08, 2021 6:22 pm
Has thanked: 273 times
Been thanked: 321 times

Re: ESP32-S3 + w5500 spi

Post 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.
User avatar
cicciocb
Site Admin
Posts: 1989
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 426 times
Been thanked: 1329 times
Contact:

Re: ESP32-S3 + w5500 spi

Post 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
TyuTyu
Posts: 13
Joined: Sun Apr 09, 2023 5:38 am
Has thanked: 3 times

Re: ESP32-S3 + w5500 spi

Post 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.
Post Reply