ESPAsyncWebserver - Send chunked response from PROGMEM with template processor

October 27, 2024 @ 01:56

In case someone needs it, I had to search and dig around for quite a while to come up with this solution.

ESPAsyncWebserver is pretty good documented in my opinion. The documentation of the fork from github user mathieucarbou I use for my CanGrow project gets even more into detail.

I had a problem with corrupted responses when the webserver had to send a very big html file processed with some templates in it. So I thought it might help to use chunked responses.

Update: I think I understood the problem and what chunking is and does not correct. So my problem with corrupted pages when using the template processor persists even when using chunked response.

[Read more...]

HowTo: A very simple three step water level indicator for Arduino / ESP

March 31, 2024 @ 06:03

When thinking about my new CanGrow project, which things I want to have data and want to measure, I thought having a water level indicator, for a water tank for example, would be a good idea.

Most things I found were about the premade Waterlevel module, which can be found on ebay, amazon and quite every maker shop. The downside of this module is, that it has a limited length. And I dont want to hack around a module, as my goal for the CanGrow project is, to be very simple.

So I did some further research and thought about those very simple water level indication schematics, which just use a transistor, resistor , led and power source, which brought me also to this arduino projecthub article, which describes how to build such a water level indicator with only a few resistors.

When looking at the schematics, it reminded my heavily to a voltage devicer circuit. So I ignored the “virtual Wheatstone bridge” stuff described in the article and played around a bit and found the solution for my projects problem.

I came up with this schematic:

[Read more...]