mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 20:56:35 +00:00
Remove flush
This commit is contained in:
parent
9faadaca67
commit
4168421590
@ -15,7 +15,6 @@ extern int wc_tcp_connect(bvm *vm);
|
|||||||
extern int wc_tcp_connected(bvm *vm);
|
extern int wc_tcp_connected(bvm *vm);
|
||||||
extern int wc_tcp_close(bvm *vm);
|
extern int wc_tcp_close(bvm *vm);
|
||||||
extern int wc_tcp_available(bvm *vm);
|
extern int wc_tcp_available(bvm *vm);
|
||||||
extern int wc_tcp_flush(bvm *vm);
|
|
||||||
|
|
||||||
extern int wc_tcp_write(bvm *vm);
|
extern int wc_tcp_write(bvm *vm);
|
||||||
extern int wc_tcp_read(bvm *vm);
|
extern int wc_tcp_read(bvm *vm);
|
||||||
@ -39,7 +38,6 @@ class be_class_tcpclient (scope: global, name: tcpclient) {
|
|||||||
connected, func(wc_tcp_connected)
|
connected, func(wc_tcp_connected)
|
||||||
close, func(wc_tcp_close)
|
close, func(wc_tcp_close)
|
||||||
available, func(wc_tcp_available)
|
available, func(wc_tcp_available)
|
||||||
flush, func(wc_tcp_flush)
|
|
||||||
|
|
||||||
write, func(wc_tcp_write)
|
write, func(wc_tcp_write)
|
||||||
read, func(wc_tcp_read)
|
read, func(wc_tcp_read)
|
||||||
|
@ -1,22 +1,21 @@
|
|||||||
#include "be_constobj.h"
|
#include "be_constobj.h"
|
||||||
|
|
||||||
static be_define_const_map_slots(be_class_tcpclient_map) {
|
static be_define_const_map_slots(be_class_tcpclient_map) {
|
||||||
{ be_const_key(init, -1), be_const_func(wc_tcp_init) },
|
|
||||||
{ be_const_key(close, -1), be_const_func(wc_tcp_close) },
|
|
||||||
{ be_const_key(_X2Ew, 4), be_const_var(0) },
|
|
||||||
{ be_const_key(flush, -1), be_const_func(wc_tcp_flush) },
|
|
||||||
{ be_const_key(deinit, 6), be_const_func(wc_tcp_deinit) },
|
|
||||||
{ be_const_key(read, -1), be_const_func(wc_tcp_read) },
|
|
||||||
{ be_const_key(write, 8), be_const_func(wc_tcp_write) },
|
{ be_const_key(write, 8), be_const_func(wc_tcp_write) },
|
||||||
{ be_const_key(connected, -1), be_const_func(wc_tcp_connected) },
|
{ be_const_key(close, -1), be_const_func(wc_tcp_close) },
|
||||||
{ be_const_key(available, -1), be_const_func(wc_tcp_available) },
|
{ be_const_key(connected, 3), be_const_func(wc_tcp_connected) },
|
||||||
{ be_const_key(connect, 0), be_const_func(wc_tcp_connect) },
|
{ be_const_key(deinit, -1), be_const_func(wc_tcp_deinit) },
|
||||||
|
{ be_const_key(_X2Ew, 0), be_const_var(0) },
|
||||||
|
{ be_const_key(init, -1), be_const_func(wc_tcp_init) },
|
||||||
{ be_const_key(readbytes, -1), be_const_func(wc_tcp_readbytes) },
|
{ be_const_key(readbytes, -1), be_const_func(wc_tcp_readbytes) },
|
||||||
|
{ be_const_key(connect, -1), be_const_func(wc_tcp_connect) },
|
||||||
|
{ be_const_key(available, -1), be_const_func(wc_tcp_available) },
|
||||||
|
{ be_const_key(read, -1), be_const_func(wc_tcp_read) },
|
||||||
};
|
};
|
||||||
|
|
||||||
static be_define_const_map(
|
static be_define_const_map(
|
||||||
be_class_tcpclient_map,
|
be_class_tcpclient_map,
|
||||||
11
|
10
|
||||||
);
|
);
|
||||||
|
|
||||||
BE_EXPORT_VARIABLE be_define_const_class(
|
BE_EXPORT_VARIABLE be_define_const_class(
|
||||||
|
@ -201,14 +201,6 @@ extern "C" {
|
|||||||
be_return_nil(vm);
|
be_return_nil(vm);
|
||||||
}
|
}
|
||||||
|
|
||||||
// tcp.close(void) -> nil
|
|
||||||
int32_t wc_tcp_flush(struct bvm *vm);
|
|
||||||
int32_t wc_tcp_flush(struct bvm *vm) {
|
|
||||||
WiFiClient * tcp = wc_getwificlient(vm);
|
|
||||||
tcp->flush();
|
|
||||||
be_return_nil(vm);
|
|
||||||
}
|
|
||||||
|
|
||||||
// tcp.available(void) -> int
|
// tcp.available(void) -> int
|
||||||
int32_t wc_tcp_available(struct bvm *vm);
|
int32_t wc_tcp_available(struct bvm *vm);
|
||||||
int32_t wc_tcp_available(struct bvm *vm) {
|
int32_t wc_tcp_available(struct bvm *vm) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user