Fix esp_idf_http to make strings 'weak' (#23256)

This commit is contained in:
s-hadinger 2025-04-06 22:51:38 +02:00 committed by GitHub
parent 929582b1af
commit 2096411be6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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)

View File

@ -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)

View File

@ -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)