mirror of https://github.com/arendst/Tasmota.git
Berry `webserver.content_close()` (#21276)
This commit is contained in:
parent
466652549a
commit
1e64eaddf3
|
@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
|
|||
### Added
|
||||
- esp32_partition_app3904k_fs3392k partition scheme for 8MB ESP32S3
|
||||
- TCP Tx En GPIO type
|
||||
- Berry `webserver.content_close()`
|
||||
|
||||
### Breaking Changed
|
||||
- ESP32-C3 OTA binary name from `tasmota32c3cdc.bin` to `tasmota32c3.bin` with USB HWCDC and fallback to serial (#21212)
|
||||
|
|
|
@ -25,6 +25,7 @@ extern int w_webserver_content_response(bvm *vm);
|
|||
extern int w_webserver_content_send_style(bvm *vm);
|
||||
extern int w_webserver_content_flush(bvm *vm);
|
||||
extern int w_webserver_content_stop(bvm *vm);
|
||||
extern int w_webserver_content_close(bvm *vm);
|
||||
extern int w_webserver_content_button(bvm *vm);
|
||||
|
||||
extern int w_webserver_html_escape(bvm *vm);
|
||||
|
@ -153,6 +154,7 @@ module webserver (scope: global) {
|
|||
content_open, func(w_webserver_content_open)
|
||||
content_start, func(w_webserver_content_start)
|
||||
content_stop, func(w_webserver_content_stop)
|
||||
content_close, func(w_webserver_content_close)
|
||||
content_button, func(w_webserver_content_button)
|
||||
|
||||
html_escape, func(w_webserver_html_escape)
|
||||
|
|
|
@ -249,6 +249,14 @@ extern "C" {
|
|||
be_return_nil(vm);
|
||||
}
|
||||
|
||||
// Berry: `webserver.content_close() -> nil`
|
||||
//
|
||||
int32_t w_webserver_content_close(struct bvm *vm);
|
||||
int32_t w_webserver_content_close(struct bvm *vm) {
|
||||
WSContentEnd();
|
||||
be_return_nil(vm);
|
||||
}
|
||||
|
||||
// Berry: `webserver.content_button([button:int]) -> nil`
|
||||
// Default button is BUTTON_MAIN
|
||||
//
|
||||
|
|
Loading…
Reference in New Issue