Berry remove warning when no debug

This commit is contained in:
Stephan Hadinger 2021-11-21 23:08:54 +01:00
parent 4acd9dbd0f
commit 871baa7f41
7 changed files with 1065 additions and 1025 deletions

View File

@ -143,24 +143,26 @@ be_local_closure(init, /* name */
0, /* has sup protos */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[13]) { /* constants */
/* K0 */ be_nested_string("global", 503252654, 6),
/* K1 */ be_nested_string("ctypes_bytes_dyn", 915205307, 16),
/* K2 */ be_nested_string("_global_addr", 533766721, 12),
/* K3 */ be_nested_string("_global_def", 646007001, 11),
/* K4 */ be_nested_string("introspect", 164638290, 10),
/* K5 */ be_nested_string("_settings_ptr", 1825772182, 13),
/* K6 */ be_nested_string("get", 1410115415, 3),
( &(const bvalue[15]) { /* constants */
/* K0 */ be_nested_str_literal("global"),
/* K1 */ be_nested_str_literal("ctypes_bytes_dyn"),
/* K2 */ be_nested_str_literal("_global_addr"),
/* K3 */ be_nested_str_literal("_global_def"),
/* K4 */ be_nested_str_literal("introspect"),
/* K5 */ be_nested_str_literal("_settings_ptr"),
/* K6 */ be_nested_str_literal("get"),
/* K7 */ be_const_int(0),
/* K8 */ be_nested_string("settings", 1745255176, 8),
/* K9 */ be_nested_string("toptr", -915119842, 5),
/* K10 */ be_nested_string("_settings_def", -519406989, 13),
/* K11 */ be_nested_string("wd", 1531424278, 2),
/* K12 */ be_nested_string("", -2128831035, 0),
/* K8 */ be_nested_str_literal("settings"),
/* K9 */ be_nested_str_literal("toptr"),
/* K10 */ be_nested_str_literal("_settings_def"),
/* K11 */ be_nested_str_literal("wd"),
/* K12 */ be_nested_str_literal(""),
/* K13 */ be_nested_str_literal("_debug_present"),
/* K14 */ be_nested_str_literal("debug"),
}),
(be_nested_const_str("init", 380752755, 4)),
((bstring*) &be_const_str_input),
( &(const binstruction[24]) { /* code */
( &(const binstruction[36]) { /* code */
0xB8060200, // 0000 GETNGBL R1 K1
0x88080102, // 0001 GETMBR R2 R0 K2
0x880C0103, // 0002 GETMBR R3 R0 K3
@ -184,7 +186,19 @@ be_local_closure(init, /* name */
0x7C0C0400, // 0014 CALL R3 2
0x90021003, // 0015 SETMBR R0 K8 R3
0x9002170C, // 0016 SETMBR R0 K11 K12
0x80000000, // 0017 RET 0
0x500C0000, // 0017 LDBOOL R3 0 0
0x90021A03, // 0018 SETMBR R0 K13 R3
0xA8020004, // 0019 EXBLK 0 #001F
0xA40E1C00, // 001A IMPORT R3 K14
0x50100200, // 001B LDBOOL R4 1 0
0x90021A04, // 001C SETMBR R0 K13 R4
0xA8040001, // 001D EXBLK 1 1
0x70020003, // 001E JMP #0023
0xAC0C0000, // 001F CATCH R3 0 0
0x70020000, // 0020 JMP #0022
0x70020000, // 0021 JMP #0023
0xB0080000, // 0022 RAISE 2 R0 R0
0x80000000, // 0023 RET 0
})
)
);
@ -864,31 +878,31 @@ be_local_closure(load, /* name */
NULL, /* no sub protos */
1, /* has constants */
( &(const bvalue[21]) { /* constants */
/* K0 */ be_nested_string("string", 398550328, 6),
/* K1 */ be_nested_string("path", -2071507658, 4),
/* K0 */ be_nested_str_literal("string"),
/* K1 */ be_nested_str_literal("path"),
/* K2 */ be_const_int(0),
/* K3 */ be_nested_string("/", 705468254, 1),
/* K4 */ be_nested_string("split", -2017972765, 5),
/* K5 */ be_nested_string("#", 638357778, 1),
/* K3 */ be_nested_str_literal("/"),
/* K4 */ be_nested_str_literal("split"),
/* K5 */ be_nested_str_literal("#"),
/* K6 */ be_const_int(1),
/* K7 */ be_nested_string("find", -1108310694, 4),
/* K8 */ be_nested_string(".", 722245873, 1),
/* K9 */ be_nested_string(".be", 1325797348, 3),
/* K10 */ be_nested_string(".bec", -309694075, 4),
/* K11 */ be_nested_string("io_error", 1970281036, 8),
/* K12 */ be_nested_string("file extension is not '.be' or '.bec'", -1199247657, 37),
/* K13 */ be_nested_string("last_modified", 772177145, 13),
/* K14 */ be_nested_string("c", -435409838, 1),
/* K15 */ be_nested_string("wd", 1531424278, 2),
/* K16 */ be_nested_string("", -2128831035, 0),
/* K17 */ be_nested_string("file", -1427482813, 4),
/* K18 */ be_nested_string("save", -855671224, 4),
/* K19 */ be_nested_string("format", -1180859054, 6),
/* K20 */ be_nested_string("BRY: could not save compiled file %s (%s)", 736659787, 41),
/* K7 */ be_nested_str_literal("find"),
/* K8 */ be_nested_str_literal("."),
/* K9 */ be_nested_str_literal(".be"),
/* K10 */ be_nested_str_literal(".bec"),
/* K11 */ be_nested_str_literal("io_error"),
/* K12 */ be_nested_str_literal("file extension is not '.be' or '.bec'"),
/* K13 */ be_nested_str_literal("last_modified"),
/* K14 */ be_nested_str_literal("c"),
/* K15 */ be_nested_str_literal("wd"),
/* K16 */ be_nested_str_literal(""),
/* K17 */ be_nested_str_literal("file"),
/* K18 */ be_nested_str_literal("save"),
/* K19 */ be_nested_str_literal("format"),
/* K20 */ be_nested_str_literal("BRY: could not save compiled file %s (%s)"),
}),
(be_nested_const_str("load", -435725847, 4)),
((bstring*) &be_const_str_input),
( &(const binstruction[108]) { /* code */
( &(const binstruction[112]) { /* code */
0xA40A0000, // 0000 IMPORT R2 K0
0xA40E0200, // 0001 IMPORT R3 K1
0x6010000C, // 0002 GETGBL R4 G12
@ -931,72 +945,76 @@ be_local_closure(load, /* name */
0x4024120A, // 0027 CONNECT R9 R9 R10
0x94240C09, // 0028 GETIDX R9 R6 R9
0x1C24130A, // 0029 EQ R9 R9 K10
0x74220001, // 002A JMPT R8 #002D
0x74260000, // 002B JMPT R9 #002D
0xB006170C, // 002C RAISE 1 K11 K12
0x8C28070D, // 002D GETMET R10 R3 K13
0x5C300A00, // 002E MOVE R12 R5
0x7C280400, // 002F CALL R10 2
0x78260005, // 0030 JMPF R9 #0037
0x4C2C0000, // 0031 LDNIL R11
0x1C2C140B, // 0032 EQ R11 R10 R11
0x782E0001, // 0033 JMPF R11 #0036
0x502C0000, // 0034 LDBOOL R11 0 0
0x80041600, // 0035 RET 1 R11
0x70020013, // 0036 JMP #004B
0x8C2C070D, // 0037 GETMET R11 R3 K13
0x0034030E, // 0038 ADD R13 R1 K14
0x7C2C0400, // 0039 CALL R11 2
0x4C300000, // 003A LDNIL R12
0x1C30140C, // 003B EQ R12 R10 R12
0x78320004, // 003C JMPF R12 #0042
0x4C300000, // 003D LDNIL R12
0x1C30160C, // 003E EQ R12 R11 R12
0x78320001, // 003F JMPF R12 #0042
0x50300000, // 0040 LDBOOL R12 0 0
0x80041800, // 0041 RET 1 R12
0x4C300000, // 0042 LDNIL R12
0x2030160C, // 0043 NE R12 R11 R12
0x78320005, // 0044 JMPF R12 #004B
0x4C300000, // 0045 LDNIL R12
0x1C30140C, // 0046 EQ R12 R10 R12
0x74320001, // 0047 JMPT R12 #004A
0x2830160A, // 0048 GE R12 R11 R10
0x78320000, // 0049 JMPF R12 #004B
0x50240200, // 004A LDBOOL R9 1 0
0x781E0002, // 004B JMPF R7 #004F
0x002C0B05, // 004C ADD R11 R5 K5
0x90021E0B, // 004D SETMBR R0 K15 R11
0x70020000, // 004E JMP #0050
0x90021F10, // 004F SETMBR R0 K15 K16
0x602C000D, // 0050 GETGBL R11 G13
0x5C300200, // 0051 MOVE R12 R1
0x58340011, // 0052 LDCONST R13 K17
0x7C2C0400, // 0053 CALL R11 2
0x74260012, // 0054 JMPT R9 #0068
0x741E0011, // 0055 JMPT R7 #0068
0xA8020005, // 0056 EXBLK 0 #005D
0x8C300112, // 0057 GETMET R12 R0 K18
0x0038030E, // 0058 ADD R14 R1 K14
0x5C3C1600, // 0059 MOVE R15 R11
0x7C300600, // 005A CALL R12 3
0xA8040001, // 005B EXBLK 1 1
0x7002000A, // 005C JMP #0068
0xAC300001, // 005D CATCH R12 0 1
0x70020007, // 005E JMP #0067
0x60340001, // 005F GETGBL R13 G1
0x8C380513, // 0060 GETMET R14 R2 K19
0x58400014, // 0061 LDCONST R16 K20
0x0044030E, // 0062 ADD R17 R1 K14
0x5C481800, // 0063 MOVE R18 R12
0x7C380800, // 0064 CALL R14 4
0x7C340200, // 0065 CALL R13 1
0x70020000, // 0066 JMP #0068
0xB0080000, // 0067 RAISE 2 R0 R0
0x5C301600, // 0068 MOVE R12 R11
0x7C300000, // 0069 CALL R12 0
0x50300200, // 006A LDBOOL R12 1 0
0x80041800, // 006B RET 1 R12
0x5C281000, // 002A MOVE R10 R8
0x742A0002, // 002B JMPT R10 #002F
0x5C281200, // 002C MOVE R10 R9
0x742A0000, // 002D JMPT R10 #002F
0xB006170C, // 002E RAISE 1 K11 K12
0x8C28070D, // 002F GETMET R10 R3 K13
0x5C300A00, // 0030 MOVE R12 R5
0x7C280400, // 0031 CALL R10 2
0x78260005, // 0032 JMPF R9 #0039
0x4C2C0000, // 0033 LDNIL R11
0x1C2C140B, // 0034 EQ R11 R10 R11
0x782E0001, // 0035 JMPF R11 #0038
0x502C0000, // 0036 LDBOOL R11 0 0
0x80041600, // 0037 RET 1 R11
0x70020013, // 0038 JMP #004D
0x8C2C070D, // 0039 GETMET R11 R3 K13
0x0034030E, // 003A ADD R13 R1 K14
0x7C2C0400, // 003B CALL R11 2
0x4C300000, // 003C LDNIL R12
0x1C30140C, // 003D EQ R12 R10 R12
0x78320004, // 003E JMPF R12 #0044
0x4C300000, // 003F LDNIL R12
0x1C30160C, // 0040 EQ R12 R11 R12
0x78320001, // 0041 JMPF R12 #0044
0x50300000, // 0042 LDBOOL R12 0 0
0x80041800, // 0043 RET 1 R12
0x4C300000, // 0044 LDNIL R12
0x2030160C, // 0045 NE R12 R11 R12
0x78320005, // 0046 JMPF R12 #004D
0x4C300000, // 0047 LDNIL R12
0x1C30140C, // 0048 EQ R12 R10 R12
0x74320001, // 0049 JMPT R12 #004C
0x2830160A, // 004A GE R12 R11 R10
0x78320000, // 004B JMPF R12 #004D
0x50240200, // 004C LDBOOL R9 1 0
0x781E0002, // 004D JMPF R7 #0051
0x002C0B05, // 004E ADD R11 R5 K5
0x90021E0B, // 004F SETMBR R0 K15 R11
0x70020000, // 0050 JMP #0052
0x90021F10, // 0051 SETMBR R0 K15 K16
0x602C000D, // 0052 GETGBL R11 G13
0x5C300200, // 0053 MOVE R12 R1
0x58340011, // 0054 LDCONST R13 K17
0x7C2C0400, // 0055 CALL R11 2
0x5C301200, // 0056 MOVE R12 R9
0x74320013, // 0057 JMPT R12 #006C
0x5C300E00, // 0058 MOVE R12 R7
0x74320011, // 0059 JMPT R12 #006C
0xA8020005, // 005A EXBLK 0 #0061
0x8C300112, // 005B GETMET R12 R0 K18
0x0038030E, // 005C ADD R14 R1 K14
0x5C3C1600, // 005D MOVE R15 R11
0x7C300600, // 005E CALL R12 3
0xA8040001, // 005F EXBLK 1 1
0x7002000A, // 0060 JMP #006C
0xAC300001, // 0061 CATCH R12 0 1
0x70020007, // 0062 JMP #006B
0x60340001, // 0063 GETGBL R13 G1
0x8C380513, // 0064 GETMET R14 R2 K19
0x58400014, // 0065 LDCONST R16 K20
0x0044030E, // 0066 ADD R17 R1 K14
0x5C481800, // 0067 MOVE R18 R12
0x7C380800, // 0068 CALL R14 4
0x7C340200, // 0069 CALL R13 1
0x70020000, // 006A JMP #006C
0xB0080000, // 006B RAISE 2 R0 R0
0x5C301600, // 006C MOVE R12 R11
0x7C300000, // 006D CALL R12 0
0x50300200, // 006E LDBOOL R12 1 0
0x80041800, // 006F RET 1 R12
})
)
);
@ -1982,6 +2000,7 @@ class be_class_tasmota (scope: global, name: Tasmota) {
settings, var
cmd_res, var
wd, var
_debug_present, var
_global_def, comptr(&be_tasmota_global_struct)
_settings_def, comptr(&be_tasmota_settings_struct)

View File

@ -24,10 +24,11 @@ class Tasmota
var _cb
var wire1
var wire2
var cmd_res # store the command result, nil if disables, true if capture enabled, contains return value
var global # mapping to TasmotaGlobal
var cmd_res # store the command result, nil if disables, true if capture enabled, contains return value
var global # mapping to TasmotaGlobal
var settings
var wd # last working directory
var wd # when load() is called, `tasmota.wd` contains the name of the archive. Ex: `/M5StickC.autoconf#`
var _debug_present # is `import debug` present?
def init()
# instanciate the mapping object to TasmotaGlobal
@ -38,6 +39,12 @@ class Tasmota
self.settings = ctypes_bytes_dyn(introspect.toptr(settings_addr), self._settings_def)
end
self.wd = ""
self._debug_present = false
try
import debug
self._debug_present = true
except ..
end
end
# create a specific sub-class for rules: pattern(string) -> closure
@ -416,8 +423,10 @@ class Tasmota
if done break end
except .. as e,m
print(string.format("BRY: Exception> '%s' - %s", e, m))
import debug
debug.traceback()
if self._debug_present
import debug
debug.traceback()
end
end
end
i += 1

View File

@ -1,349 +1,350 @@
extern const bcstring be_const_str_pow;
extern const bcstring be_const_str_remove;
extern const bcstring be_const_str_remove_timer;
extern const bcstring be_const_str_MD5;
extern const bcstring be_const_str__ccmd;
extern const bcstring be_const_str_digital_write;
extern const bcstring be_const_str_dot_p2;
extern const bcstring be_const_str_floor;
extern const bcstring be_const_str_input;
extern const bcstring be_const_str_range;
extern const bcstring be_const_str_atan;
extern const bcstring be_const_str_find_op;
extern const bcstring be_const_str_SERIAL_6N1;
extern const bcstring be_const_str_classname;
extern const bcstring be_const_str_content_start;
extern const bcstring be_const_str_import;
extern const bcstring be_const_str_raise;
extern const bcstring be_const_str_SERIAL_8N2;
extern const bcstring be_const_str_keys;
extern const bcstring be_const_str_content_send_style;
extern const bcstring be_const_str_static;
extern const bcstring be_const_str__begin_transmission;
extern const bcstring be_const_str__request_from;
extern const bcstring be_const_str_isnan;
extern const bcstring be_const_str_reverse_gamma10;
extern const bcstring be_const_str_number;
extern const bcstring be_const_str_resp_cmnd_str;
extern const bcstring be_const_str_run_deferred;
extern const bcstring be_const_str_exec_rules;
extern const bcstring be_const_str_web_send;
extern const bcstring be_const_str_GET;
extern const bcstring be_const_str__rules;
extern const bcstring be_const_str_begin;
extern const bcstring be_const_str_escape;
extern const bcstring be_const_str_I2C_Driver;
extern const bcstring be_const_str_char;
extern const bcstring be_const_str_opt_neq;
extern const bcstring be_const_str_Wire;
extern const bcstring be_const_str_asstring;
extern const bcstring be_const_str_strftime;
extern const bcstring be_const_str_last_modified;
extern const bcstring be_const_str_set;
extern const bcstring be_const_str_add;
extern const bcstring be_const_str_eth;
extern const bcstring be_const_str_publish;
extern const bcstring be_const_str_rtc;
extern const bcstring be_const_str_scan;
extern const bcstring be_const_str_EC_C25519;
extern const bcstring be_const_str_nil;
extern const bcstring be_const_str_ceil;
extern const bcstring be_const_str_item;
extern const bcstring be_const_str_log;
extern const bcstring be_const_str__global_def;
extern const bcstring be_const_str_clear;
extern const bcstring be_const_str_atan2;
extern const bcstring be_const_str_dump;
extern const bcstring be_const_str_fromb64;
extern const bcstring be_const_str_deinit;
extern const bcstring be_const_str_read13;
extern const bcstring be_const_str_SERIAL_8O1;
extern const bcstring be_const_str_SERIAL_6O1;
extern const bcstring be_const_str_add_rule;
extern const bcstring be_const_str_fromstring;
extern const bcstring be_const_str_SERIAL_6E2;
extern const bcstring be_const_str_try_rule;
extern const bcstring be_const_str_gc;
extern const bcstring be_const_str_publish_result;
extern const bcstring be_const_str_response_append;
extern const bcstring be_const_str_continue;
extern const bcstring be_const_str_dot_p1;
extern const bcstring be_const_str__def;
extern const bcstring be_const_str_imin;
extern const bcstring be_const_str_chars_in_string;
extern const bcstring be_const_str_concat;
extern const bcstring be_const_str_content_stop;
extern const bcstring be_const_str_def;
extern const bcstring be_const_str_traceback;
extern const bcstring be_const_str_wire;
extern const bcstring be_const_str_calldepth;
extern const bcstring be_const_str_finish;
extern const bcstring be_const_str_log10;
extern const bcstring be_const_str_name;
extern const bcstring be_const_str_time_str;
extern const bcstring be_const_str_do;
extern const bcstring be_const_str_read;
extern const bcstring be_const_str_set_auth;
extern const bcstring be_const_str_Tasmota;
extern const bcstring be_const_str_SERIAL_7E2;
extern const bcstring be_const_str_resolvecmnd;
extern const bcstring be_const_str___lower__;
extern const bcstring be_const_str_addr;
extern const bcstring be_const_str_gamma8;
extern const bcstring be_const_str_member;
extern const bcstring be_const_str_scale_uint;
extern const bcstring be_const_str_codedump;
extern const bcstring be_const_str_opt_call;
extern const bcstring be_const_str_SERIAL_5N2;
extern const bcstring be_const_str_attrdump;
extern const bcstring be_const_str_hex;
extern const bcstring be_const_str_remove_cmd;
extern const bcstring be_const_str_AudioOutput;
extern const bcstring be_const_str_break;
extern const bcstring be_const_str_SERIAL_5O1;
extern const bcstring be_const_str_rand;
extern const bcstring be_const_str_class;
extern const bcstring be_const_str_public_key;
extern const bcstring be_const_str_search;
extern const bcstring be_const_str_update;
extern const bcstring be_const_str_end;
extern const bcstring be_const_str_i2c_enabled;
extern const bcstring be_const_str_read_bytes;
extern const bcstring be_const_str_fromptr;
extern const bcstring be_const_str_pin_used;
extern const bcstring be_const_str_redirect;
extern const bcstring be_const_str__drivers;
extern const bcstring be_const_str_get_size;
extern const bcstring be_const_str_set_power;
extern const bcstring be_const_str_loop;
extern const bcstring be_const_str_read32;
extern const bcstring be_const_str_add_cmd;
extern const bcstring be_const_str__settings_ptr;
extern const bcstring be_const_str_reset;
extern const bcstring be_const_str__ptr;
extern const bcstring be_const_str_detect;
extern const bcstring be_const_str_reset_search;
extern const bcstring be_const_str_SERIAL_6E1;
extern const bcstring be_const_str__read;
extern const bcstring be_const_str_true;
extern const bcstring be_const_str_opt_eq;
extern const bcstring be_const_str_add_driver;
extern const bcstring be_const_str_tob64;
extern const bcstring be_const_str_wire1;
extern const bcstring be_const_str__timers;
extern const bcstring be_const_str_opt_connect;
extern const bcstring be_const_str_SERIAL_5E1;
extern const bcstring be_const_str_select;
extern const bcstring be_const_str_setbits;
extern const bcstring be_const_str_webclient;
extern const bcstring be_const_str_deg;
extern const bcstring be_const_str_flush;
extern const bcstring be_const_str_hs2rgb;
extern const bcstring be_const_str_SERIAL_8E1;
extern const bcstring be_const_str_setrange;
extern const bcstring be_const_str_dot_len;
extern const bcstring be_const_str_byte;
extern const bcstring be_const_str_issubclass;
extern const bcstring be_const_str_while;
extern const bcstring be_const_str_enabled;
extern const bcstring be_const_str_sin;
extern const bcstring be_const_str_except;
extern const bcstring be_const_str_AudioOutputI2S;
extern const bcstring be_const_str_SERIAL_7N2;
extern const bcstring be_const_str_call;
extern const bcstring be_const_str_imax;
extern const bcstring be_const_str_isrunning;
extern const bcstring be_const_str_read8;
extern const bcstring be_const_str_resp_cmnd_error;
extern const bcstring be_const_str_AudioFileSourceFS;
extern const bcstring be_const_str___iterator__;
extern const bcstring be_const_str_contains;
extern const bcstring be_const_str_web_send_decimal;
extern const bcstring be_const_str_dac_voltage;
extern const bcstring be_const_str_time_reached;
extern const bcstring be_const_str_if;
extern const bcstring be_const_str_read24;
extern const bcstring be_const_str_toptr;
extern const bcstring be_const_str_else;
extern const bcstring be_const_str__global_addr;
extern const bcstring be_const_str_classof;
extern const bcstring be_const_str_SERIAL_7O1;
extern const bcstring be_const_str_print;
extern const bcstring be_const_str_setmember;
extern const bcstring be_const_str_dot_size;
extern const bcstring be_const_str__write;
extern const bcstring be_const_str_init;
extern const bcstring be_const_str_gamma10;
extern const bcstring be_const_str_gen_cb;
extern const bcstring be_const_str_remove_rule;
extern const bcstring be_const_str_ctypes_bytes_dyn;
extern const bcstring be_const_str_SERIAL_6N2;
extern const bcstring be_const_str_available;
extern const bcstring be_const_str_cb_dispatch;
extern const bcstring be_const_str_isinstance;
extern const bcstring be_const_str_copy;
extern const bcstring be_const_str_find;
extern const bcstring be_const_str_POST;
extern const bcstring be_const_str_write_bytes;
extern const bcstring be_const_str_;
extern const bcstring be_const_str_type;
extern const bcstring be_const_str_allocated;
extern const bcstring be_const_str_insert;
extern const bcstring be_const_str_tolower;
extern const bcstring be_const_str_dot_w;
extern const bcstring be_const_str_srand;
extern const bcstring be_const_str_wire2;
extern const bcstring be_const_str_format;
extern const bcstring be_const_str_yield;
extern const bcstring be_const_str__begin_transmission;
extern const bcstring be_const_str_set_light;
extern const bcstring be_const_str_time_reached;
extern const bcstring be_const_str_SERIAL_5E2;
extern const bcstring be_const_str_reduce;
extern const bcstring be_const_str_resp_cmnd_done;
extern const bcstring be_const_str_abs;
extern const bcstring be_const_str_setitem;
extern const bcstring be_const_str_OneWire;
extern const bcstring be_const_str_upper;
extern const bcstring be_const_str_module;
extern const bcstring be_const_str_counters;
extern const bcstring be_const_str___lower__;
extern const bcstring be_const_str_SERIAL_7O1;
extern const bcstring be_const_str_getbits;
extern const bcstring be_const_str_input;
extern const bcstring be_const_str_dot_size;
extern const bcstring be_const_str_publish_result;
extern const bcstring be_const_str_web_send_decimal;
extern const bcstring be_const_str_def;
extern const bcstring be_const_str__cmd;
extern const bcstring be_const_str_begin;
extern const bcstring be_const_str_resp_cmnd;
extern const bcstring be_const_str_assert;
extern const bcstring be_const_str_set;
extern const bcstring be_const_str_tag;
extern const bcstring be_const_str_tanh;
extern const bcstring be_const_str_get_string;
extern const bcstring be_const_str_read12;
extern const bcstring be_const_str_wire_scan;
extern const bcstring be_const_str_seti;
extern const bcstring be_const_str_cmd;
extern const bcstring be_const_str_content_send;
extern const bcstring be_const_str_global;
extern const bcstring be_const_str_var;
extern const bcstring be_const_str_SERIAL_7N1;
extern const bcstring be_const_str_resize;
extern const bcstring be_const_str_split;
extern const bcstring be_const_str_str;
extern const bcstring be_const_str_url_encode;
extern const bcstring be_const_str_get_option;
extern const bcstring be_const_str_listdir;
extern const bcstring be_const_str_tomap;
extern const bcstring be_const_str_check_privileged_access;
extern const bcstring be_const_str_pin_mode;
extern const bcstring be_const_str_pin;
extern const bcstring be_const_str_try;
extern const bcstring be_const_str__buffer;
extern const bcstring be_const_str_cos;
extern const bcstring be_const_str_dot_p;
extern const bcstring be_const_str_SERIAL_7O2;
extern const bcstring be_const_str_real;
extern const bcstring be_const_str_set_timer;
extern const bcstring be_const_str_count;
extern const bcstring be_const_str_write;
extern const bcstring be_const_str__settings_def;
extern const bcstring be_const_str_digital_read;
extern const bcstring be_const_str_path;
extern const bcstring be_const_str_delay;
extern const bcstring be_const_str_stop;
extern const bcstring be_const_str_AES_GCM;
extern const bcstring be_const_str_SERIAL_6O2;
extern const bcstring be_const_str_kv;
extern const bcstring be_const_str_publish;
extern const bcstring be_const_str_read32;
extern const bcstring be_const_str_load;
extern const bcstring be_const_str_read13;
extern const bcstring be_const_str_search;
extern const bcstring be_const_str_dac_voltage;
extern const bcstring be_const_str_finish;
extern const bcstring be_const_str_hex;
extern const bcstring be_const_str_isinstance;
extern const bcstring be_const_str_rand;
extern const bcstring be_const_str_POST;
extern const bcstring be_const_str_SERIAL_6E2;
extern const bcstring be_const_str_classname;
extern const bcstring be_const_str__global_def;
extern const bcstring be_const_str_open;
extern const bcstring be_const_str_top;
extern const bcstring be_const_str_write_bit;
extern const bcstring be_const_str_redirect;
extern const bcstring be_const_str_AES_GCM;
extern const bcstring be_const_str_resp_cmnd_failed;
extern const bcstring be_const_str_reverse_gamma10;
extern const bcstring be_const_str_strftime;
extern const bcstring be_const_str_insert;
extern const bcstring be_const_str_false;
extern const bcstring be_const_str_arg_size;
extern const bcstring be_const_str_serial;
extern const bcstring be_const_str_OneWire;
extern const bcstring be_const_str_scale_uint;
extern const bcstring be_const_str_return;
extern const bcstring be_const_str_wire;
extern const bcstring be_const_str_write_bytes;
extern const bcstring be_const_str__global_addr;
extern const bcstring be_const_str_exec_tele;
extern const bcstring be_const_str_target_search;
extern const bcstring be_const_str_gamma8;
extern const bcstring be_const_str_pi;
extern const bcstring be_const_str_state;
extern const bcstring be_const_str_set_useragent;
extern const bcstring be_const_str_as;
extern const bcstring be_const_str_erase;
extern const bcstring be_const_str_has_arg;
extern const bcstring be_const_str_map;
extern const bcstring be_const_str_on;
extern const bcstring be_const_str_depower;
extern const bcstring be_const_str_init;
extern const bcstring be_const_str_member;
extern const bcstring be_const_str__end_transmission;
extern const bcstring be_const_str_digital_read;
extern const bcstring be_const_str_imin;
extern const bcstring be_const_str_hs2rgb;
extern const bcstring be_const_str_keys;
extern const bcstring be_const_str_real;
extern const bcstring be_const_str_sin;
extern const bcstring be_const_str_SERIAL_7N1;
extern const bcstring be_const_str_ctypes_bytes;
extern const bcstring be_const_str_ctypes_bytes_dyn;
extern const bcstring be_const_str_raise;
extern const bcstring be_const_str_GET;
extern const bcstring be_const_str__settings_def;
extern const bcstring be_const_str_read24;
extern const bcstring be_const_str_cos;
extern const bcstring be_const_str_remove_driver;
extern const bcstring be_const_str__settings_ptr;
extern const bcstring be_const_str_memory;
extern const bcstring be_const_str_set_auth;
extern const bcstring be_const_str_content_send_style;
extern const bcstring be_const_str_class;
extern const bcstring be_const_str_SERIAL_7E2;
extern const bcstring be_const_str_shared_key;
extern const bcstring be_const_str_tanh;
extern const bcstring be_const_str_nil;
extern const bcstring be_const_str_get_power;
extern const bcstring be_const_str_last_modified;
extern const bcstring be_const_str_resolvecmnd;
extern const bcstring be_const_str__read;
extern const bcstring be_const_str_atan;
extern const bcstring be_const_str_content_button;
extern const bcstring be_const_str_setbits;
extern const bcstring be_const_str_upper;
extern const bcstring be_const_str_contains;
extern const bcstring be_const_str_time_str;
extern const bcstring be_const_str_arch;
extern const bcstring be_const_str_fromptr;
extern const bcstring be_const_str_push;
extern const bcstring be_const_str_srand;
extern const bcstring be_const_str_geti;
extern const bcstring be_const_str_seti;
extern const bcstring be_const_str_add_cmd;
extern const bcstring be_const_str_cmd;
extern const bcstring be_const_str_get_switch;
extern const bcstring be_const_str_size;
extern const bcstring be_const_str_try;
extern const bcstring be_const_str_web_send;
extern const bcstring be_const_str_except;
extern const bcstring be_const_str_SERIAL_5O1;
extern const bcstring be_const_str_SERIAL_8E2;
extern const bcstring be_const_str__available;
extern const bcstring be_const_str_codedump;
extern const bcstring be_const_str_wire2;
extern const bcstring be_const_str_dump;
extern const bcstring be_const_str_exec_cmd;
extern const bcstring be_const_str_add;
extern const bcstring be_const_str_exp;
extern const bcstring be_const_str_isrunning;
extern const bcstring be_const_str_remove_rule;
extern const bcstring be_const_str_run_deferred;
extern const bcstring be_const_str_scan;
extern const bcstring be_const_str_for;
extern const bcstring be_const_str_set_timer;
extern const bcstring be_const_str_url_encode;
extern const bcstring be_const_str_addr;
extern const bcstring be_const_str___upper__;
extern const bcstring be_const_str_loop;
extern const bcstring be_const_str_AudioGeneratorWAV;
extern const bcstring be_const_str_chars_in_string;
extern const bcstring be_const_str_cosh;
extern const bcstring be_const_str_import;
extern const bcstring be_const_str_SERIAL_5N2;
extern const bcstring be_const_str_type;
extern const bcstring be_const_str_clear;
extern const bcstring be_const_str_SERIAL_8N1;
extern const bcstring be_const_str_issubclass;
extern const bcstring be_const_str_remove_timer;
extern const bcstring be_const_str_sinh;
extern const bcstring be_const_str_AudioGeneratorMP3;
extern const bcstring be_const_str_Wire;
extern const bcstring be_const_str_get_light;
extern const bcstring be_const_str_get_option;
extern const bcstring be_const_str_list;
extern const bcstring be_const_str_stop;
extern const bcstring be_const_str_try_rule;
extern const bcstring be_const_str_webclient;
extern const bcstring be_const_str_dot_p2;
extern const bcstring be_const_str_has;
extern const bcstring be_const_str__request_from;
extern const bcstring be_const_str_setrange;
extern const bcstring be_const_str_I2C_Driver;
extern const bcstring be_const_str_ceil;
extern const bcstring be_const_str_else;
extern const bcstring be_const_str_concat;
extern const bcstring be_const_str_set_power;
extern const bcstring be_const_str_tomap;
extern const bcstring be_const_str_resp_cmnd_error;
extern const bcstring be_const_str_add_header;
extern const bcstring be_const_str_eth;
extern const bcstring be_const_str_write_bit;
extern const bcstring be_const_str_exists;
extern const bcstring be_const_str_pow;
extern const bcstring be_const_str_select;
extern const bcstring be_const_str_allocated;
extern const bcstring be_const_str_classof;
extern const bcstring be_const_str_if;
extern const bcstring be_const_str_SERIAL_5E1;
extern const bcstring be_const_str_arg;
extern const bcstring be_const_str_cb_dispatch;
extern const bcstring be_const_str_response_append;
extern const bcstring be_const_str_pin_used;
extern const bcstring be_const_str_write;
extern const bcstring be_const_str_write8;
extern const bcstring be_const_str_SERIAL_6O2;
extern const bcstring be_const_str_log;
extern const bcstring be_const_str_pin_mode;
extern const bcstring be_const_str_read12;
extern const bcstring be_const_str_resp_cmnd_str;
extern const bcstring be_const_str_abs;
extern const bcstring be_const_str_digital_write;
extern const bcstring be_const_str_static;
extern const bcstring be_const_str_bytes;
extern const bcstring be_const_str_find_op;
extern const bcstring be_const_str_call;
extern const bcstring be_const_str_cmd_res;
extern const bcstring be_const_str_opt_eq;
extern const bcstring be_const_str_save;
extern const bcstring be_const_str_find_key_i;
extern const bcstring be_const_str__cb;
extern const bcstring be_const_str_decrypt;
extern const bcstring be_const_str_Tasmota;
extern const bcstring be_const_str_public_key;
extern const bcstring be_const_str_as;
extern const bcstring be_const_str_dot_w;
extern const bcstring be_const_str_SERIAL_8O1;
extern const bcstring be_const_str_compile;
extern const bcstring be_const_str_range;
extern const bcstring be_const_str_add_rule;
extern const bcstring be_const_str__ptr;
extern const bcstring be_const_str_delay;
extern const bcstring be_const_str_pop;
extern const bcstring be_const_str_reset;
extern const bcstring be_const_str_wire_scan;
extern const bcstring be_const_str_reset_search;
extern const bcstring be_const_str_tolower;
extern const bcstring be_const_str_SERIAL_7O2;
extern const bcstring be_const_str_asin;
extern const bcstring be_const_str_nan;
extern const bcstring be_const_str_deg;
extern const bcstring be_const_str_log10;
extern const bcstring be_const_str_char;
extern const bcstring be_const_str_get_size;
extern const bcstring be_const_str_opt_call;
extern const bcstring be_const_str_end;
extern const bcstring be_const_str_SERIAL_7N2;
extern const bcstring be_const_str_time_dump;
extern const bcstring be_const_str_listdir;
extern const bcstring be_const_str_wifi;
extern const bcstring be_const_str_read_bytes;
extern const bcstring be_const_str_reverse;
extern const bcstring be_const_str_SERIAL_6E1;
extern const bcstring be_const_str_SERIAL_5O2;
extern const bcstring be_const_str_SERIAL_8E1;
extern const bcstring be_const_str_asstring;
extern const bcstring be_const_str_deinit;
extern const bcstring be_const_str_encrypt;
extern const bcstring be_const_str_iter;
extern const bcstring be_const_str_millis;
extern const bcstring be_const_str_AudioOutput;
extern const bcstring be_const_str_members;
extern const bcstring be_const_str_rtc;
extern const bcstring be_const_str_SERIAL_6N1;
extern const bcstring be_const_str__write;
extern const bcstring be_const_str_content_start;
extern const bcstring be_const_str_module;
extern const bcstring be_const_str_item;
extern const bcstring be_const_str_remove_cmd;
extern const bcstring be_const_str_MD5;
extern const bcstring be_const_str_sqrt;
extern const bcstring be_const_str_SERIAL_5N1;
extern const bcstring be_const_str_find_key_i;
extern const bcstring be_const_str_arg;
extern const bcstring be_const_str_depower;
extern const bcstring be_const_str_write_file;
extern const bcstring be_const_str_SERIAL_5O2;
extern const bcstring be_const_str_get_light;
extern const bcstring be_const_str_pop;
extern const bcstring be_const_str_exec_tele;
extern const bcstring be_const_str_set_light;
extern const bcstring be_const_str_set_timeouts;
extern const bcstring be_const_str_sinh;
extern const bcstring be_const_str_AudioGenerator;
extern const bcstring be_const_str_SERIAL_7E1;
extern const bcstring be_const_str_getbits;
extern const bcstring be_const_str_shared_key;
extern const bcstring be_const_str_time_dump;
extern const bcstring be_const_str_content_button;
extern const bcstring be_const_str_geti;
extern const bcstring be_const_str_arch;
extern const bcstring be_const_str_asin;
extern const bcstring be_const_str_get_free_heap;
extern const bcstring be_const_str_resp_cmnd;
extern const bcstring be_const_str_content_flush;
extern const bcstring be_const_str_millis;
extern const bcstring be_const_str_serial;
extern const bcstring be_const_str_skip;
extern const bcstring be_const_str_event;
extern const bcstring be_const_str_opt_add;
extern const bcstring be_const_str_bus;
extern const bcstring be_const_str_acos;
extern const bcstring be_const_str_bytes;
extern const bcstring be_const_str_compile;
extern const bcstring be_const_str_get;
extern const bcstring be_const_str_tan;
extern const bcstring be_const_str_encrypt;
extern const bcstring be_const_str_cmd_res;
extern const bcstring be_const_str_collect;
extern const bcstring be_const_str_arg_size;
extern const bcstring be_const_str_reverse;
extern const bcstring be_const_str_close;
extern const bcstring be_const_str_members;
extern const bcstring be_const_str_assert;
extern const bcstring be_const_str_exec_cmd;
extern const bcstring be_const_str_get_power;
extern const bcstring be_const_str_resp_cmnd_failed;
extern const bcstring be_const_str_target_search;
extern const bcstring be_const_str_AudioFileSource;
extern const bcstring be_const_str_SERIAL_8N1;
extern const bcstring be_const_str_pi;
extern const bcstring be_const_str_add_header;
extern const bcstring be_const_str_list;
extern const bcstring be_const_str_read_sensors;
extern const bcstring be_const_str_super;
extern const bcstring be_const_str_has;
extern const bcstring be_const_str___upper__;
extern const bcstring be_const_str_exp;
extern const bcstring be_const_str_int;
extern const bcstring be_const_str_size;
extern const bcstring be_const_str_for;
extern const bcstring be_const_str_ctypes_bytes;
extern const bcstring be_const_str_wifi;
extern const bcstring be_const_str_elif;
extern const bcstring be_const_str_arg_name;
extern const bcstring be_const_str_cosh;
extern const bcstring be_const_str_lower;
extern const bcstring be_const_str_push;
extern const bcstring be_const_str_save;
extern const bcstring be_const_str_load;
extern const bcstring be_const_str_SERIAL_8E2;
extern const bcstring be_const_str_nan;
extern const bcstring be_const_str_remove_driver;
extern const bcstring be_const_str_write8;
extern const bcstring be_const_str__get_cb;
extern const bcstring be_const_str_iter;
extern const bcstring be_const_str__cmd;
extern const bcstring be_const_str_exists;
extern const bcstring be_const_str_AudioGeneratorMP3;
extern const bcstring be_const_str__end_transmission;
extern const bcstring be_const_str_get_switch;
extern const bcstring be_const_str__available;
extern const bcstring be_const_str_false;
extern const bcstring be_const_str_settings;
extern const bcstring be_const_str_wd;
extern const bcstring be_const_str_SERIAL_8O2;
extern const bcstring be_const_str_rad;
extern const bcstring be_const_str_kv;
extern const bcstring be_const_str_toupper;
extern const bcstring be_const_str_tr;
extern const bcstring be_const_str_return;
extern const bcstring be_const_str_memory;
extern const bcstring be_const_str_break;
extern const bcstring be_const_str_map;
extern const bcstring be_const_str_setmember;
extern const bcstring be_const_str_tostring;
extern const bcstring be_const_str_AudioGenerator;
extern const bcstring be_const_str_while;
extern const bcstring be_const_str_event;
extern const bcstring be_const_str_resp_cmnd_done;
extern const bcstring be_const_str_AudioOutputI2S;
extern const bcstring be_const_str_has_arg;
extern const bcstring be_const_str_floor;
extern const bcstring be_const_str_read;
extern const bcstring be_const_str_remove;
extern const bcstring be_const_str_calldepth;
extern const bcstring be_const_str_lower;
extern const bcstring be_const_str_path;
extern const bcstring be_const_str_gamma10;
extern const bcstring be_const_str_get;
extern const bcstring be_const_str_elif;
extern const bcstring be_const_str__buffer;
extern const bcstring be_const_str_exec_rules;
extern const bcstring be_const_str_pin;
extern const bcstring be_const_str_collect;
extern const bcstring be_const_str_enabled;
extern const bcstring be_const_str_global;
extern const bcstring be_const_str_acos;
extern const bcstring be_const_str_content_stop;
extern const bcstring be_const_str_read8;
extern const bcstring be_const_str_wire1;
extern const bcstring be_const_str_fromstring;
extern const bcstring be_const_str_setitem;
extern const bcstring be_const_str__debug_present;
extern const bcstring be_const_str_erase;
extern const bcstring be_const_str_i2c_enabled;
extern const bcstring be_const_str_resize;
extern const bcstring be_const_str_decrypt;
extern const bcstring be_const_str_escape;
extern const bcstring be_const_str_isnan;
extern const bcstring be_const_str_skip;
extern const bcstring be_const_str_var;
extern const bcstring be_const_str_dot_p;
extern const bcstring be_const_str_write_file;
extern const bcstring be_const_str_copy;
extern const bcstring be_const_str_str;
extern const bcstring be_const_str_super;
extern const bcstring be_const_str_update;
extern const bcstring be_const_str__def;
extern const bcstring be_const_str__drivers;
extern const bcstring be_const_str_imax;
extern const bcstring be_const_str_add_driver;
extern const bcstring be_const_str_dot_len;
extern const bcstring be_const_str_SERIAL_6O1;
extern const bcstring be_const_str_attrdump;
extern const bcstring be_const_str_on;
extern const bcstring be_const_str_rad;
extern const bcstring be_const_str_bus;
extern const bcstring be_const_str_yield;
extern const bcstring be_const_str_top;
extern const bcstring be_const_str_get_string;
extern const bcstring be_const_str_read_sensors;
extern const bcstring be_const_str_settings;
extern const bcstring be_const_str__get_cb;
extern const bcstring be_const_str_int;
extern const bcstring be_const_str_opt_neq;
extern const bcstring be_const_str_gen_cb;
extern const bcstring be_const_str__timers;
extern const bcstring be_const_str_continue;
extern const bcstring be_const_str_SERIAL_7E1;
extern const bcstring be_const_str_AudioFileSource;
extern const bcstring be_const_str_format;
extern const bcstring be_const_str_EC_C25519;
extern const bcstring be_const_str_close;
extern const bcstring be_const_str_content_flush;
extern const bcstring be_const_str_reduce;
extern const bcstring be_const_str_tr;
extern const bcstring be_const_str_available;
extern const bcstring be_const_str_traceback;
extern const bcstring be_const_str_opt_add;
extern const bcstring be_const_str_SERIAL_8N2;
extern const bcstring be_const_str_wd;
extern const bcstring be_const_str___iterator__;
extern const bcstring be_const_str_fromb64;
extern const bcstring be_const_str_number;
extern const bcstring be_const_str_print;
extern const bcstring be_const_str_set_useragent;
extern const bcstring be_const_str_tan;
extern const bcstring be_const_str_do;
extern const bcstring be_const_str_;
extern const bcstring be_const_str_opt_connect;
extern const bcstring be_const_str__rules;
extern const bcstring be_const_str_dot_p1;
extern const bcstring be_const_str_find;
extern const bcstring be_const_str_name;
extern const bcstring be_const_str_toptr;
extern const bcstring be_const_str_arg_name;
extern const bcstring be_const_str_byte;
extern const bcstring be_const_str_gc;
extern const bcstring be_const_str_count;
extern const bcstring be_const_str_counters;
extern const bcstring be_const_str_tob64;
extern const bcstring be_const_str_AudioFileSourceFS;
extern const bcstring be_const_str_get_free_heap;
extern const bcstring be_const_str_atan2;
extern const bcstring be_const_str_set_timeouts;
extern const bcstring be_const_str_toupper;
extern const bcstring be_const_str__ccmd;
extern const bcstring be_const_str_content_send;
extern const bcstring be_const_str_flush;
extern const bcstring be_const_str_true;
extern const bcstring be_const_str_detect;
extern const bcstring be_const_str_SERIAL_8O2;
extern const bcstring be_const_str_split;

File diff suppressed because it is too large Load Diff

View File

@ -1,94 +1,95 @@
#include "be_constobj.h"
static be_define_const_map_slots(be_class_tasmota_map) {
{ be_const_key(cmd_res, -1), be_const_var(0) },
{ be_const_key(run_deferred, -1), be_const_closure(run_deferred_closure) },
{ be_const_key(set_light, -1), be_const_closure(set_light_closure) },
{ be_const_key(_global_def, -1), be_const_comptr(&be_tasmota_global_struct) },
{ be_const_key(_timers, -1), be_const_var(1) },
{ be_const_key(try_rule, -1), be_const_closure(try_rule_closure) },
{ be_const_key(time_dump, -1), be_const_func(l_time_dump) },
{ be_const_key(_rules, 73), be_const_var(2) },
{ be_const_key(get_switch, 21), be_const_func(l_getswitch) },
{ be_const_key(get_option, -1), be_const_func(l_getoption) },
{ be_const_key(find_op, 4), be_const_closure(find_op_closure) },
{ be_const_key(wire1, -1), be_const_var(3) },
{ be_const_key(resp_cmnd_failed, 29), be_const_func(l_respCmndFailed) },
{ be_const_key(exec_cmd, -1), be_const_closure(exec_cmd_closure) },
{ be_const_key(gen_cb, -1), be_const_closure(gen_cb_closure) },
{ be_const_key(_cb, 57), be_const_var(4) },
{ be_const_key(hs2rgb, 71), be_const_closure(hs2rgb_closure) },
{ be_const_key(gc, -1), be_const_closure(gc_closure) },
{ be_const_key(kv, -1), be_const_closure(kv_closure) },
{ be_const_key(add_rule, -1), be_const_closure(add_rule_closure) },
{ be_const_key(scale_uint, -1), be_const_func(l_scaleuint) },
{ be_const_key(global, -1), be_const_var(5) },
{ be_const_key(rtc, 0), be_const_func(l_rtc) },
{ be_const_key(get_power, -1), be_const_func(l_getpower) },
{ be_const_key(wd, -1), be_const_var(6) },
{ be_const_key(_settings_def, -1), be_const_comptr(&be_tasmota_settings_struct) },
{ be_const_key(resp_cmnd_error, -1), be_const_func(l_respCmndError) },
{ be_const_key(read_sensors, 56), be_const_func(l_read_sensors) },
{ be_const_key(settings, -1), be_const_var(7) },
{ be_const_key(chars_in_string, -1), be_const_closure(chars_in_string_closure) },
{ be_const_key(save, -1), be_const_func(l_save) },
{ be_const_key(set_timer, -1), be_const_closure(set_timer_closure) },
{ be_const_key(time_str, -1), be_const_closure(time_str_closure) },
{ be_const_key(response_append, 14), be_const_func(l_respAppend) },
{ be_const_key(remove_driver, -1), be_const_closure(remove_driver_closure) },
{ be_const_key(i2c_enabled, -1), be_const_func(l_i2cenabled) },
{ be_const_key(web_send_decimal, -1), be_const_func(l_webSendDecimal) },
{ be_const_key(load, -1), be_const_closure(load_closure) },
{ be_const_key(_settings_ptr, 55), be_const_comptr(&Settings) },
{ be_const_key(millis, 23), be_const_func(l_millis) },
{ be_const_key(event, 67), be_const_closure(event_closure) },
{ be_const_key(cmd, -1), be_const_closure(cmd_closure) },
{ be_const_key(publish_result, 60), be_const_func(l_publish_result) },
{ be_const_key(_drivers, -1), be_const_var(8) },
{ be_const_key(get_light, 1), be_const_closure(get_light_closure) },
{ be_const_key(init, -1), be_const_closure(init_closure) },
{ be_const_key(remove_cmd, 24), be_const_closure(remove_cmd_closure) },
{ be_const_key(time_reached, -1), be_const_func(l_timereached) },
{ be_const_key(_cmd, 68), be_const_func(l_cmd) },
{ be_const_key(remove_timer, -1), be_const_closure(remove_timer_closure) },
{ be_const_key(remove_rule, 70), be_const_closure(remove_rule_closure) },
{ be_const_key(resolvecmnd, 41), be_const_func(l_resolveCmnd) },
{ be_const_key(web_send, 38), be_const_func(l_webSend) },
{ be_const_key(cb_dispatch, 6), be_const_closure(cb_dispatch_closure) },
{ be_const_key(memory, -1), be_const_func(l_memory) },
{ be_const_key(wire_scan, -1), be_const_closure(wire_scan_closure) },
{ be_const_key(strftime, 16), be_const_func(l_strftime) },
{ be_const_key(resp_cmnd_done, -1), be_const_func(l_respCmndDone) },
{ be_const_key(_get_cb, -1), be_const_func(l_get_cb) },
{ be_const_key(resolvecmnd, 42), be_const_func(l_resolveCmnd) },
{ be_const_key(add_driver, -1), be_const_closure(add_driver_closure) },
{ be_const_key(exec_rules, -1), be_const_closure(exec_rules_closure) },
{ be_const_key(add_cmd, -1), be_const_closure(add_cmd_closure) },
{ be_const_key(find_key_i, -1), be_const_closure(find_key_i_closure) },
{ be_const_key(log, 40), be_const_func(l_logInfo) },
{ be_const_key(wire2, -1), be_const_var(9) },
{ be_const_key(get_free_heap, -1), be_const_func(l_getFreeHeap) },
{ be_const_key(resp_cmnd_str, -1), be_const_func(l_respCmndStr) },
{ be_const_key(gc, -1), be_const_closure(gc_closure) },
{ be_const_key(find_op, -1), be_const_closure(find_op_closure) },
{ be_const_key(scale_uint, 15), be_const_func(l_scaleuint) },
{ be_const_key(try_rule, -1), be_const_closure(try_rule_closure) },
{ be_const_key(time_reached, -1), be_const_func(l_timereached) },
{ be_const_key(web_send, -1), be_const_func(l_webSend) },
{ be_const_key(eth, 21), be_const_func(l_eth) },
{ be_const_key(get_switch, 34), be_const_func(l_getswitch) },
{ be_const_key(set_power, -1), be_const_func(l_setpower) },
{ be_const_key(delay, -1), be_const_func(l_delay) },
{ be_const_key(_drivers, 50), be_const_var(0) },
{ be_const_key(_rules, -1), be_const_var(1) },
{ be_const_key(_ccmd, 6), be_const_var(2) },
{ be_const_key(time_dump, -1), be_const_func(l_time_dump) },
{ be_const_key(gen_cb, 17), be_const_closure(gen_cb_closure) },
{ be_const_key(cmd_res, 20), be_const_var(3) },
{ be_const_key(set_light, 63), be_const_closure(set_light_closure) },
{ be_const_key(millis, -1), be_const_func(l_millis) },
{ be_const_key(global, -1), be_const_var(4) },
{ be_const_key(exec_tele, 67), be_const_closure(exec_tele_closure) },
{ be_const_key(_settings_ptr, -1), be_const_comptr(&Settings) },
{ be_const_key(get_power, -1), be_const_func(l_getpower) },
{ be_const_key(_cb, 57), be_const_var(5) },
{ be_const_key(save, -1), be_const_func(l_save) },
{ be_const_key(run_deferred, -1), be_const_closure(run_deferred_closure) },
{ be_const_key(i2c_enabled, 9), be_const_func(l_i2cenabled) },
{ be_const_key(remove_driver, -1), be_const_closure(remove_driver_closure) },
{ be_const_key(event, -1), be_const_closure(event_closure) },
{ be_const_key(find_key_i, -1), be_const_closure(find_key_i_closure) },
{ be_const_key(web_send_decimal, -1), be_const_func(l_webSendDecimal) },
{ be_const_key(get_free_heap, 3), be_const_func(l_getFreeHeap) },
{ be_const_key(wire_scan, -1), be_const_closure(wire_scan_closure) },
{ be_const_key(init, -1), be_const_closure(init_closure) },
{ be_const_key(wd, -1), be_const_var(6) },
{ be_const_key(_debug_present, -1), be_const_var(7) },
{ be_const_key(time_str, 45), be_const_closure(time_str_closure) },
{ be_const_key(remove_rule, 71), be_const_closure(remove_rule_closure) },
{ be_const_key(memory, 62), be_const_func(l_memory) },
{ be_const_key(wifi, -1), be_const_func(l_wifi) },
{ be_const_key(yield, -1), be_const_func(l_yield) },
{ be_const_key(get_option, 44), be_const_func(l_getoption) },
{ be_const_key(rtc, -1), be_const_func(l_rtc) },
{ be_const_key(load, 72), be_const_closure(load_closure) },
{ be_const_key(chars_in_string, -1), be_const_closure(chars_in_string_closure) },
{ be_const_key(cmd, -1), be_const_closure(cmd_closure) },
{ be_const_key(publish, 43), be_const_func(l_publish) },
{ be_const_key(resp_cmnd_error, 18), be_const_func(l_respCmndError) },
{ be_const_key(add_cmd, -1), be_const_closure(add_cmd_closure) },
{ be_const_key(_settings_def, -1), be_const_comptr(&be_tasmota_settings_struct) },
{ be_const_key(strftime, 4), be_const_func(l_strftime) },
{ be_const_key(add_rule, 41), be_const_closure(add_rule_closure) },
{ be_const_key(wire2, -1), be_const_var(8) },
{ be_const_key(settings, -1), be_const_var(9) },
{ be_const_key(exec_rules, -1), be_const_closure(exec_rules_closure) },
{ be_const_key(cb_dispatch, -1), be_const_closure(cb_dispatch_closure) },
{ be_const_key(yield, 68), be_const_func(l_yield) },
{ be_const_key(_get_cb, 75), be_const_func(l_get_cb) },
{ be_const_key(wire1, 33), be_const_var(10) },
{ be_const_key(resp_cmnd, -1), be_const_func(l_respCmnd) },
{ be_const_key(resp_cmnd_failed, 16), be_const_func(l_respCmndFailed) },
{ be_const_key(_global_addr, -1), be_const_comptr(&TasmotaGlobal) },
{ be_const_key(hs2rgb, -1), be_const_closure(hs2rgb_closure) },
{ be_const_key(resp_cmnd_str, 76), be_const_func(l_respCmndStr) },
{ be_const_key(_global_def, -1), be_const_comptr(&be_tasmota_global_struct) },
{ be_const_key(kv, 74), be_const_closure(kv_closure) },
{ be_const_key(delay, -1), be_const_func(l_delay) },
{ be_const_key(remove_cmd, 19), be_const_closure(remove_cmd_closure) },
{ be_const_key(set_timer, -1), be_const_closure(set_timer_closure) },
{ be_const_key(_cmd, 54), be_const_func(l_cmd) },
{ be_const_key(publish_result, -1), be_const_func(l_publish_result) },
{ be_const_key(log, -1), be_const_func(l_logInfo) },
{ be_const_key(arch, -1), be_const_func(l_arch) },
{ be_const_key(resp_cmnd, 69), be_const_func(l_respCmnd) },
{ be_const_key(_global_addr, 26), be_const_comptr(&TasmotaGlobal) },
{ be_const_key(publish, -1), be_const_func(l_publish) },
{ be_const_key(_ccmd, -1), be_const_var(10) },
{ be_const_key(eth, -1), be_const_func(l_eth) },
{ be_const_key(exec_tele, -1), be_const_closure(exec_tele_closure) },
{ be_const_key(remove_timer, 66), be_const_closure(remove_timer_closure) },
{ be_const_key(_timers, -1), be_const_var(11) },
{ be_const_key(read_sensors, -1), be_const_func(l_read_sensors) },
{ be_const_key(exec_cmd, -1), be_const_closure(exec_cmd_closure) },
{ be_const_key(response_append, -1), be_const_func(l_respAppend) },
{ be_const_key(get_light, -1), be_const_closure(get_light_closure) },
};
static be_define_const_map(
be_class_tasmota_map,
78
79
);
BE_EXPORT_VARIABLE be_define_const_class(
be_class_tasmota,
11,
12,
NULL,
Tasmota
);

View File

@ -217,6 +217,13 @@ const bntvmodule be_native_module(_module) = { \
.data = _items \
}
#define be_nested_str_literal(_str) \
{ \
{ .s=(be_nested_const_str(_str, 0, sizeof(_str)-1 )) \
}, \
BE_STRING \
}
#define be_nested_string(_str, _hash, _len) \
{ \
{ .s=(be_nested_const_str(_str, _hash, _len )) \

View File

@ -121,9 +121,10 @@ static void m_solidify_bvalue(bvm *vm, bvalue * value, const char *classname, co
}
be_pushstring(vm, str(var_tostr(value)));
be_toescape(vm, -1, 'u');
logfmt("be_nested_string(%s", be_tostring(vm, -1));
be_pop(vm, 1);
logfmt(", %i, %zu)", be_strhash(var_tostr(value)), len >= 255 ? 255 : len);
logfmt("be_nested_str_literal(%s)", be_tostring(vm, -1));
// logfmt("be_nested_string(%s", be_tostring(vm, -1));
// be_pop(vm, 1);
// logfmt(", %i, %zu)", be_strhash(var_tostr(value)), len >= 255 ? 255 : len);
}
break;
case BE_CLOSURE: