diff --git a/CHANGELOG.md b/CHANGELOG.md index 80b4d0395..de6476579 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file. ### Added - Extend command `GPIO` with different display options and allowing updating of module GPIO's in one go - Berry `bytes.add()` now accepts 3-bytes values (#23200) +- Berry expose `esp_http_server` for websockets ### Breaking Changed diff --git a/lib/libesp32/berry_tasmota/src/be_httpserver_lib.c b/lib/libesp32/berry_tasmota/src/be_httpserver_lib.c index ea5244a99..b6ac1bbd4 100644 --- a/lib/libesp32/berry_tasmota/src/be_httpserver_lib.c +++ b/lib/libesp32/berry_tasmota/src/be_httpserver_lib.c @@ -828,7 +828,7 @@ bool httpserver_has_queue() { } /* @const_object_info_begin -module httpserver (scope: global) { +module httpserver (scope: global, strings: weak) { start, func(w_httpserver_start) on, func(w_httpserver_on) send, func(w_httpserver_send) diff --git a/lib/libesp32/berry_tasmota/src/be_webfiles_lib.c b/lib/libesp32/berry_tasmota/src/be_webfiles_lib.c index cb648ec67..921705ef0 100644 --- a/lib/libesp32/berry_tasmota/src/be_webfiles_lib.c +++ b/lib/libesp32/berry_tasmota/src/be_webfiles_lib.c @@ -374,7 +374,7 @@ static int w_webfiles_serve_file(bvm *vm) { // Module definition /* @const_object_info_begin -module webfiles (scope: global) { +module webfiles (scope: global, strings: weak) { serve, func(w_webfiles_serve) serve_file, func(w_webfiles_serve_file) diff --git a/lib/libesp32/berry_tasmota/src/be_wsserver_lib.c b/lib/libesp32/berry_tasmota/src/be_wsserver_lib.c index 9858939b8..330a99213 100644 --- a/lib/libesp32/berry_tasmota/src/be_wsserver_lib.c +++ b/lib/libesp32/berry_tasmota/src/be_wsserver_lib.c @@ -1299,7 +1299,7 @@ esp_err_t websocket_disconnect_handler(httpd_handle_t hd, int sockfd) { // Module definition /* @const_object_info_begin -module wsserver (scope: global) { +module wsserver (scope: global, strings: weak) { CONNECT, int(WSSERVER_EVENT_CONNECT) DISCONNECT, int(WSSERVER_EVENT_DISCONNECT) MESSAGE, int(WSSERVER_EVENT_MESSAGE)