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"
Do you have a good ethernet webserver example ? How do you send bigger content ?
ESP32-S3 + w5500 spi
Re: ESP32-S3 + w5500 spi
You do not have the required permissions to view the files attached to this post.
- Electroguard
- Posts: 867
- Joined: Mon Feb 08, 2021 6:22 pm
- Has thanked: 278 times
- Been thanked: 324 times
Re: ESP32-S3 + w5500 spi
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.
- cicciocb
- Site Admin
- Posts: 2069
- Joined: Mon Feb 03, 2020 1:15 pm
- Location: Toulouse
- Has thanked: 441 times
- Been thanked: 1364 times
- Contact:
Re: ESP32-S3 + w5500 spi
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.
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
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.
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
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.
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.