Skip to content

Commit

Permalink
Berry webserver_async (arendst#21836)
Browse files Browse the repository at this point in the history
* Berry `webserver_async`

* Shrink size and include only when USE_BERRY_DEBUG
  • Loading branch information
s-hadinger authored and hawa-lc4 committed Aug 8, 2024
1 parent 5f706c7 commit bca5fa7
Show file tree
Hide file tree
Showing 9 changed files with 2,502 additions and 649 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file.
- Support for Sonoff iFan04-H using template (#16402)
- Matter improve internal `inspect`for superclasses (#21824)
- Matter support for split lights (`SetOption68 1` and `SetOption37 128`) (#21834)
- Berry `webserver_async`

### Breaking Changed

Expand Down
4 changes: 4 additions & 0 deletions lib/libesp32/berry/default/be_modtab.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ be_extern_native_class(udp);
be_extern_native_class(webclient);
be_extern_native_class(tcpclient);
be_extern_native_class(tcpclientasync);
be_extern_native_class(webserver_async);
be_extern_native_class(tcpserver);
be_extern_native_class(energy_struct);
// LVGL core classes
Expand Down Expand Up @@ -283,6 +284,9 @@ BERRY_LOCAL bclass_array be_class_table = {
&be_native_class(webclient),
&be_native_class(tcpclient),
&be_native_class(tcpclientasync),
#ifdef USE_BERRY_DEBUG
&be_native_class(webserver_async), // include only when USE_BERRY_DEBUG is enabled
#endif // USE_BERRY_DEBUG
#endif // USE_WEBCLIENT
#ifdef USE_BERRY_TCPSERVER
&be_native_class(tcpserver),
Expand Down
2 changes: 1 addition & 1 deletion lib/libesp32/berry_tasmota/solidify_all.be
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import sys
sys.path().push('src/embedded') # allow to import from src/embedded

# globals that need to exist to make compilation succeed
var globs = "path,ctypes_bytes_dyn,tasmota,ccronexpr,gpio,light,webclient,load,MD5,lv,light_state,udp,I2C_Driver,tcpserver,"
var globs = "path,ctypes_bytes_dyn,tasmota,ccronexpr,gpio,light,webclient,load,MD5,lv,light_state,udp,I2C_Driver,tcpserver,log,"
"lv_clock,lv_clock_icon,lv_signal_arcs,lv_signal_bars,lv_wifi_arcs_icon,lv_wifi_arcs,"
"lv_wifi_bars_icon,lv_wifi_bars,"
"_lvgl,"
Expand Down
5 changes: 5 additions & 0 deletions lib/libesp32/berry_tasmota/src/be_webserver_async_lib.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/********************************************************************
* Class `webserver_async` for simple asynchronous non-blocking web server
*
*******************************************************************/
#include "solidify/solidified_webserver_async.h"
Loading

0 comments on commit bca5fa7

Please sign in to comment.