From 152239c3ace40bbe94a902c6816de0be8fd958a3 Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Thu, 4 Jul 2024 19:41:53 +0200 Subject: [PATCH] Matter simplify code (#21729) --- .../berry_matter/src/embedded/Matter_IM.be | 12 +- .../src/embedded/Matter_MessageHandler.be | 6 +- .../src/embedded/Matter_Plugin_1_Root.be | 2 +- .../src/embedded/Matter_UDPServer.be | 2 +- .../src/embedded/Matter_zz_Device.be | 69 +- .../src/solidify/solidified_Matter_IM.h | 1619 ++-- .../solidified_Matter_MessageHandler.h | 846 +- .../solidified_Matter_Plugin_1_Root.h | 2 +- .../solidify/solidified_Matter_UDPServer.h | 62 +- .../solidify/solidified_Matter_zz_Device.h | 8457 ++++++++--------- 10 files changed, 5439 insertions(+), 5638 deletions(-) diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_IM.be b/lib/libesp32/berry_matter/src/embedded/Matter_IM.be index 520a117eb..cb309654e 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_IM.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_IM.be @@ -318,7 +318,7 @@ class Matter_IM # 0 = EnableTagCompression bool opt # 1 = Node # 2 = Endpoint - # 3 = Cluste + # 3 = Cluster # 4 = Attribute # 5 = ListIndex (opt) # @@ -602,7 +602,6 @@ class Matter_IM # returns `true` if processed, `false` if silently ignored, # or raises an exception def process_read_request_pull(msg, val) - matter.profiler.log("read_request_start_pull") var query = matter.ReadRequestMessage().from_TLV(val) var generator_or_arr = self.process_read_or_subscribe_request_pull(query, msg) var event_generator_or_arr = self.process_read_or_subscribe_request_event_pull(query, msg) @@ -767,7 +766,6 @@ class Matter_IM ctx.status = matter.UNSUPPORTED_ATTRIBUTE # new fallback error res = pi.read_attribute(msg.session, ctx, self.tlv_solo) end - matter.profiler.log("read_request_solo read done") if res != nil @@ -826,8 +824,6 @@ class Matter_IM responder.send_response_frame(resp) # postpone lengthy operations after sending back response - matter.profiler.log("RESPONSE SENT") - var attr_name if tasmota.loglevel(3) attr_name = matter.get_attribute_name(ctx.cluster, ctx.attribute) @@ -909,7 +905,6 @@ class Matter_IM # import debug # structure is `ReadRequestMessage` 10.6.2 p.558 # log("MTR: IM:invoke_request processing start", 4) - matter.profiler.log("invoke_request_start") var ctx = matter.Path() ctx.msg = msg @@ -929,7 +924,6 @@ class Matter_IM var cmd_name = matter.get_command_name(ctx.cluster, ctx.command) var ctx_str = str(ctx) # keep string before invoking, it is modified by response var res = self.device.invoke_request(msg.session, q.command_fields, ctx) - matter.profiler.log("COMMAND DONE") var params_log = (ctx.log != nil) ? "(" + str(ctx.log) + ") " : "" log(format("MTR: >Command (%6i) %s %s %s", msg.session.local_session_id, ctx_str, cmd_name ? cmd_name : "", params_log), 3) # log("MTR: Perf/Command = " + str(debug.counters()), 4) @@ -983,14 +977,12 @@ class Matter_IM # or raises an exception def process_invoke_request_solo(msg, ctx) # import debug - matter.profiler.log("invoke_request_solo_start") ctx.msg = msg ctx.status = matter.UNSUPPORTED_COMMAND #default error if returned `nil` var cmd_name = matter.get_command_name(ctx.cluster, ctx.command) var ctx_str = str(ctx) # keep string before invoking, it is modified by response var res = self.device.invoke_request(msg.session, ctx.command_fields, ctx) - matter.profiler.log("COMMAND DONE") var params_log = (ctx.log != nil) ? "(" + str(ctx.log) + ") " : "" if tasmota.loglevel(3) log(format("MTR: >Command1 (%6i) %s %s %s", msg.session.local_session_id, ctx_str, cmd_name ? cmd_name : "", params_log), 3) @@ -1041,7 +1033,6 @@ class Matter_IM resp.encode_frame(raw, msg_raw) # payload in cleartext resp.encrypt() responder.send_response_frame(resp) - matter.profiler.log("RESPONSE SENT") return true end @@ -1225,6 +1216,7 @@ class Matter_IM var event_generator_or_arr = sub.update_event_generator_array() var report_data_msg = matter.IM_ReportDataSubscribed_Pull(session._message_handler, session, generator_or_arr, event_generator_or_arr, sub) + self.send_queue.push(report_data_msg) # push message to queue self.send_enqueued(session._message_handler) # and send queued messages now end diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_MessageHandler.be b/lib/libesp32/berry_matter/src/embedded/Matter_MessageHandler.be index 25eefe028..e437d2d5e 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_MessageHandler.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_MessageHandler.be @@ -86,7 +86,6 @@ class Matter_MessageHandler def msg_received(raw, addr, port) var ret = false - matter.profiler.log("msg_received") try # log("MTR: MessageHandler::msg_received raw="+raw.tohex(), 4) var frame = matter.Frame(self, raw, addr, port) @@ -170,7 +169,7 @@ class Matter_MessageHandler end var decrypt_ok = frame.decrypt() - matter.profiler.log("msg_received_header_frame_decrypted") + # matter.profiler.log("msg_received_header_frame_decrypted") if !decrypt_ok return false end # matter.profiler.log("msg_received_payload_undecoded") @@ -201,9 +200,7 @@ class Matter_MessageHandler ret = true elif protocol_id == 0x0001 # PROTOCOL_ID_INTERACTION_MODEL # dispatch to IM Protocol Messages - matter.profiler.log("process_IM_start") ret = self.im.process_incoming(frame) - matter.profiler.log("process_IM_end") # if `ret` is true, we have something to send if ret self.im.send_enqueued(self) @@ -250,7 +247,6 @@ class Matter_MessageHandler # msg.exchange_id: exchange id (int) # msg.local_session_id: local session (for logging) def send_response_frame(msg) - matter.profiler.log("send_response_frame") self.device.msg_send(msg) end diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_1_Root.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_1_Root.be index 1dc5b0a6a..6a9f8e58f 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_1_Root.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_1_Root.be @@ -221,7 +221,7 @@ class Matter_Plugin_Root : Matter_Plugin elif attribute == 0x0001 # ---------- VendorName / string ---------- return tlv_solo.set(TLV.UTF1, "Tasmota") elif attribute == 0x0002 # ---------- VendorID / vendor-id ---------- - return tlv_solo.set(TLV.U2, self.device.vendorid) # Vendor ID reserved for development + return tlv_solo.set(TLV.U2, self.device.VENDOR_ID) # Vendor ID reserved for development elif attribute == 0x0003 # ---------- ProductName / string ---------- return tlv_solo.set(TLV.UTF1, tasmota.cmd("DeviceName", true)['DeviceName']) elif attribute == 0x0004 # ---------- ProductID / u16 (opt) ---------- diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_UDPServer.be b/lib/libesp32/berry_matter/src/embedded/Matter_UDPServer.be index 63d95004c..8f67e4ab8 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_UDPServer.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_UDPServer.be @@ -139,7 +139,7 @@ class Matter_UDPServer end # log("MTR: Perf/UDP_received = " + str(debug.counters()), 4) if self.dispatch_cb - profiler.log("udp_loop_dispatch") + # profiler.log("udp_loop_dispatch") self.dispatch_cb(packet, from_addr, from_port) end profiler.dump(2) diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_zz_Device.be b/lib/libesp32/berry_matter/src/embedded/Matter_zz_Device.be index 56c53fe18..da92a33ef 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_zz_Device.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_zz_Device.be @@ -55,8 +55,6 @@ class Matter_Device var commissioning_instance_eth # random instance name for commissioning (mDNS) var hostname_wifi # MAC-derived hostname for commissioning var hostname_eth # MAC-derived hostname for commissioning - var vendorid - var productid # mDNS active announces var mdns_pase_eth # do we have an active PASE mDNS announce for eth var mdns_pase_wifi # do we have an active PASE mDNS announce for wifi @@ -69,12 +67,6 @@ class Matter_Device var disable_bridge_mode # default is bridge mode, this flag disables this mode for some non-compliant controllers var next_ep # next endpoint to be allocated for bridge, start at 1 var debug # debug mode, output all values when responding to read request with wildcard - # context for PBKDF - var root_iterations # PBKDF number of iterations - # PBKDF information used only during PASE (freed afterwards) - var root_salt - var root_w0 - var root_L # cron equivalent to call `read_sensors()` regularly and dispatch to all entpoints var probe_sensor_time # number of milliseconds to wait between each `read_sensors()` or `nil` if none active var probe_sensor_timestamp # timestamp for `read_sensors()` probe (in millis()) @@ -95,11 +87,7 @@ class Matter_Device self.plugins = [] self.plugins_persist = false # plugins need to saved only when the first fabric is associated self.plugins_config_remotes = {} - self.vendorid = self.VENDOR_ID - self.productid = self.PRODUCT_ID - self.root_iterations = self.PBKDF_ITERATIONS - self.next_ep = 1 # start at endpoint 1 for dynamically allocated endpoints - self.root_salt = crypto.random(16) + self.next_ep = 2 # start at endpoint 2 for dynamically allocated endpoints (1 reserved for aggregator) self.ipv4only = false self.disable_bridge_mode = false self.load_param() @@ -173,8 +161,21 @@ class Matter_Device tasmota.publish_result(format('{"Matter":{"Commissioning":1,"PairingCode":"%s","QRCode":"%s"}}', pairing_code, qr_code), 'Matter') # compute PBKDF - self._compute_pbkdf(self.root_passcode, self.root_iterations, self.root_salt) - self.start_basic_commissioning(timeout_s, self.root_iterations, self.root_discriminator, self.root_salt, self.root_w0, #-self.root_w1,-# self.root_L, nil) + import crypto + var root_salt = crypto.random(16) + + # Compute the PBKDF parameters for SPAKE2+ from root parameters + var passcode = bytes().add(self.root_passcode, 4) + + var tv = crypto.PBKDF2_HMAC_SHA256().derive(passcode, root_salt, self.PBKDF_ITERATIONS, 80) + var w0s = tv[0..39] + var w1s = tv[40..79] + + var root_w0 = crypto.EC_P256().mod(w0s) + var w1 = crypto.EC_P256().mod(w1s) # w1 is temporarily computed then discarded + # self.root_w1 = crypto.EC_P256().mod(w1s) + var root_L = crypto.EC_P256().public_key(w1) + self.start_basic_commissioning(timeout_s, self.PBKDF_ITERATIONS, self.root_discriminator, root_salt, root_w0, #-self.root_w1,-# root_L, nil) end ##################################################################### @@ -254,37 +255,13 @@ class Matter_Device return self.commissioning_open != nil end - ############################################################# - # (internal) Compute the PBKDF parameters for SPAKE2+ from root parameters - # - def _compute_pbkdf(passcode_int, iterations, salt) - import crypto - var passcode = bytes().add(passcode_int, 4) - - var tv = crypto.PBKDF2_HMAC_SHA256().derive(passcode, salt, iterations, 80) - var w0s = tv[0..39] - var w1s = tv[40..79] - - self.root_w0 = crypto.EC_P256().mod(w0s) - var w1 = crypto.EC_P256().mod(w1s) # w1 is temporarily computed then discarded - # self.root_w1 = crypto.EC_P256().mod(w1s) - self.root_L = crypto.EC_P256().public_key(w1) - - # log("MTR: ******************************", 4) - # log("MTR: salt = " + self.root_salt.tohex(), 4) - # log("MTR: passcode_hex = " + passcode.tohex(), 4) - # log("MTR: w0 = " + self.root_w0.tohex(), 4) - # log("MTR: L = " + self.root_L.tohex(), 4) - # log("MTR: ******************************", 4) - end - ############################################################# # Compute QR Code content - can be done only for root PASE def compute_qrcode_content() var raw = bytes().resize(11) # we don't use TLV Data so it's only 88 bits or 11 bytes # version is `000` dont touch - raw.setbits(3, 16, self.vendorid) - raw.setbits(19, 16, self.productid) + raw.setbits(3, 16, self.VENDOR_ID) + raw.setbits(19, 16, self.PRODUCT_ID) # custom flow = 0 (offset=35, len=2) raw.setbits(37, 8, 0x04) # already on IP network raw.setbits(45, 12, self.root_discriminator & 0xFFF) @@ -452,10 +429,6 @@ class Matter_Device import mdns self.stop_basic_commissioning() # close all PASE commissioning information - # clear any PBKDF information to free memory - self.root_w0 = nil - # self.root_w1 = nil - self.root_L = nil self.mdns_announce_op_discovery(fabric) end @@ -878,7 +851,7 @@ class Matter_Device import crypto var services = { - "VP":str(self.vendorid) + "+" + str(self.productid), + "VP": f"{self.VENDOR_ID}+{self.PRODUCT_ID}", "D": self.commissioning_discriminator, "CM":1, # requires passcode "T":0, # no support for TCP @@ -904,7 +877,7 @@ class Matter_Device subtype = "_S" + str((self.commissioning_discriminator & 0xF00) >> 8) log("MTR: adding subtype: "+subtype, 3) mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_eth, self.hostname_eth, subtype) - subtype = "_V" + str(self.vendorid) + subtype = "_V" + str(self.VENDOR_ID) log("MTR: adding subtype: "+subtype, 3) mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_eth, self.hostname_eth, subtype) subtype = "_CM1" @@ -926,7 +899,7 @@ class Matter_Device subtype = "_S" + str((self.commissioning_discriminator & 0xF00) >> 8) log("MTR: adding subtype: "+subtype, 3) mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_wifi, self.hostname_wifi, subtype) - subtype = "_V" + str(self.vendorid) + subtype = "_V" + str(self.VENDOR_ID) log("MTR: adding subtype: "+subtype, 3) mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_wifi, self.hostname_wifi, subtype) subtype = "_CM1" diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM.h index 3cdb3e7ed..b38919383 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM.h @@ -20,52 +20,44 @@ be_local_closure(class_Matter_IM_process_read_request_pull, /* name */ 0, /* has sup protos */ &be_class_Matter_IM, 1, /* has constants */ - ( &(const bvalue[11]) { /* constants */ + ( &(const bvalue[ 8]) { /* constants */ /* K0 */ be_nested_str_weak(matter), - /* K1 */ be_nested_str_weak(profiler), - /* K2 */ be_nested_str_weak(log), - /* K3 */ be_nested_str_weak(read_request_start_pull), - /* K4 */ be_nested_str_weak(ReadRequestMessage), - /* K5 */ be_nested_str_weak(from_TLV), - /* K6 */ be_nested_str_weak(process_read_or_subscribe_request_pull), - /* K7 */ be_nested_str_weak(process_read_or_subscribe_request_event_pull), - /* K8 */ be_nested_str_weak(send_queue), - /* K9 */ be_nested_str_weak(push), - /* K10 */ be_nested_str_weak(IM_ReportData_Pull), + /* K1 */ be_nested_str_weak(ReadRequestMessage), + /* K2 */ be_nested_str_weak(from_TLV), + /* K3 */ be_nested_str_weak(process_read_or_subscribe_request_pull), + /* K4 */ be_nested_str_weak(process_read_or_subscribe_request_event_pull), + /* K5 */ be_nested_str_weak(send_queue), + /* K6 */ be_nested_str_weak(push), + /* K7 */ be_nested_str_weak(IM_ReportData_Pull), }), be_str_weak(process_read_request_pull), &be_const_str_solidified, - ( &(const binstruction[30]) { /* code */ + ( &(const binstruction[25]) { /* code */ 0xB80E0000, // 0000 GETNGBL R3 K0 - 0x880C0701, // 0001 GETMBR R3 R3 K1 - 0x8C0C0702, // 0002 GETMET R3 R3 K2 - 0x58140003, // 0003 LDCONST R5 K3 - 0x7C0C0400, // 0004 CALL R3 2 - 0xB80E0000, // 0005 GETNGBL R3 K0 - 0x8C0C0704, // 0006 GETMET R3 R3 K4 - 0x7C0C0200, // 0007 CALL R3 1 - 0x8C0C0705, // 0008 GETMET R3 R3 K5 - 0x5C140400, // 0009 MOVE R5 R2 - 0x7C0C0400, // 000A CALL R3 2 - 0x8C100106, // 000B GETMET R4 R0 K6 - 0x5C180600, // 000C MOVE R6 R3 - 0x5C1C0200, // 000D MOVE R7 R1 - 0x7C100600, // 000E CALL R4 3 - 0x8C140107, // 000F GETMET R5 R0 K7 - 0x5C1C0600, // 0010 MOVE R7 R3 - 0x5C200200, // 0011 MOVE R8 R1 - 0x7C140600, // 0012 CALL R5 3 - 0x88180108, // 0013 GETMBR R6 R0 K8 - 0x8C180D09, // 0014 GETMET R6 R6 K9 - 0xB8220000, // 0015 GETNGBL R8 K0 - 0x8C20110A, // 0016 GETMET R8 R8 K10 - 0x5C280200, // 0017 MOVE R10 R1 - 0x5C2C0800, // 0018 MOVE R11 R4 - 0x5C300A00, // 0019 MOVE R12 R5 - 0x7C200800, // 001A CALL R8 4 - 0x7C180400, // 001B CALL R6 2 - 0x50180200, // 001C LDBOOL R6 1 0 - 0x80040C00, // 001D RET 1 R6 + 0x8C0C0701, // 0001 GETMET R3 R3 K1 + 0x7C0C0200, // 0002 CALL R3 1 + 0x8C0C0702, // 0003 GETMET R3 R3 K2 + 0x5C140400, // 0004 MOVE R5 R2 + 0x7C0C0400, // 0005 CALL R3 2 + 0x8C100103, // 0006 GETMET R4 R0 K3 + 0x5C180600, // 0007 MOVE R6 R3 + 0x5C1C0200, // 0008 MOVE R7 R1 + 0x7C100600, // 0009 CALL R4 3 + 0x8C140104, // 000A GETMET R5 R0 K4 + 0x5C1C0600, // 000B MOVE R7 R3 + 0x5C200200, // 000C MOVE R8 R1 + 0x7C140600, // 000D CALL R5 3 + 0x88180105, // 000E GETMBR R6 R0 K5 + 0x8C180D06, // 000F GETMET R6 R6 K6 + 0xB8220000, // 0010 GETNGBL R8 K0 + 0x8C201107, // 0011 GETMET R8 R8 K7 + 0x5C280200, // 0012 MOVE R10 R1 + 0x5C2C0800, // 0013 MOVE R11 R4 + 0x5C300A00, // 0014 MOVE R12 R5 + 0x7C200800, // 0015 CALL R8 4 + 0x7C180400, // 0016 CALL R6 2 + 0x50180200, // 0017 LDBOOL R6 1 0 + 0x80040C00, // 0018 RET 1 R6 }) ) ); @@ -131,287 +123,274 @@ be_local_closure(class_Matter_IM_process_invoke_request, /* name */ 0, /* has sup protos */ &be_class_Matter_IM, 1, /* has constants */ - ( &(const bvalue[44]) { /* constants */ + ( &(const bvalue[41]) { /* constants */ /* K0 */ be_nested_str_weak(matter), - /* K1 */ be_nested_str_weak(profiler), - /* K2 */ be_nested_str_weak(log), - /* K3 */ be_nested_str_weak(invoke_request_start), - /* K4 */ be_nested_str_weak(Path), - /* K5 */ be_nested_str_weak(msg), - /* K6 */ be_nested_str_weak(InvokeRequestMessage), - /* K7 */ be_nested_str_weak(from_TLV), - /* K8 */ be_nested_str_weak(invoke_requests), - /* K9 */ be_nested_str_weak(InvokeResponseMessage), - /* K10 */ be_nested_str_weak(suppress_response), - /* K11 */ be_nested_str_weak(invoke_responses), - /* K12 */ be_nested_str_weak(endpoint), - /* K13 */ be_nested_str_weak(command_path), - /* K14 */ be_nested_str_weak(cluster), - /* K15 */ be_nested_str_weak(command), - /* K16 */ be_nested_str_weak(status), - /* K17 */ be_nested_str_weak(UNSUPPORTED_COMMAND), - /* K18 */ be_nested_str_weak(get_command_name), - /* K19 */ be_nested_str_weak(device), - /* K20 */ be_nested_str_weak(invoke_request), - /* K21 */ be_nested_str_weak(session), - /* K22 */ be_nested_str_weak(command_fields), - /* K23 */ be_nested_str_weak(COMMAND_X20DONE), - /* K24 */ be_nested_str_weak(_X28), - /* K25 */ be_nested_str_weak(_X29_X20), - /* K26 */ be_nested_str_weak(), - /* K27 */ be_nested_str_weak(MTR_X3A_X20_X3ECommand_X20_X20_X20_X28_X256i_X29_X20_X25s_X20_X25s_X20_X25s), - /* K28 */ be_nested_str_weak(local_session_id), - /* K29 */ be_const_int(3), - /* K30 */ be_nested_str_weak(SUCCESS), - /* K31 */ be_nested_str_weak(invokeresponse2raw), - /* K32 */ be_nested_str_weak(push), - /* K33 */ be_nested_str_weak(tasmota), - /* K34 */ be_nested_str_weak(loglevel), - /* K35 */ be_nested_str_weak(MTR_X3A_X20_X3CReplied_X20_X20_X20_X28_X256i_X29_X20OK_X20exch_X3D_X25i), - /* K36 */ be_nested_str_weak(exchange_id), - /* K37 */ be_nested_str_weak(MTR_X3A_X20_X3CReplied_X20_X20_X20_X28_X256i_X29_X20_X25s_X20_X25s), - /* K38 */ be_nested_str_weak(MTR_X3A_X20_X3CReplied_X20_X20_X20_X28_X256i_X29_X20Status_X3D0x_X2502X_X20exch_X3D_X25i), - /* K39 */ be_nested_str_weak(MTR_X3A_X20_Ignore_X20_X20_X20_X20_X28_X256i_X29_X20exch_X3D_X25i), - /* K40 */ be_nested_str_weak(stop_iteration), - /* K41 */ be_const_int(0), - /* K42 */ be_nested_str_weak(send_queue), - /* K43 */ be_nested_str_weak(IM_InvokeResponse), + /* K1 */ be_nested_str_weak(Path), + /* K2 */ be_nested_str_weak(msg), + /* K3 */ be_nested_str_weak(InvokeRequestMessage), + /* K4 */ be_nested_str_weak(from_TLV), + /* K5 */ be_nested_str_weak(invoke_requests), + /* K6 */ be_nested_str_weak(InvokeResponseMessage), + /* K7 */ be_nested_str_weak(suppress_response), + /* K8 */ be_nested_str_weak(invoke_responses), + /* K9 */ be_nested_str_weak(endpoint), + /* K10 */ be_nested_str_weak(command_path), + /* K11 */ be_nested_str_weak(cluster), + /* K12 */ be_nested_str_weak(command), + /* K13 */ be_nested_str_weak(status), + /* K14 */ be_nested_str_weak(UNSUPPORTED_COMMAND), + /* K15 */ be_nested_str_weak(get_command_name), + /* K16 */ be_nested_str_weak(device), + /* K17 */ be_nested_str_weak(invoke_request), + /* K18 */ be_nested_str_weak(session), + /* K19 */ be_nested_str_weak(command_fields), + /* K20 */ be_nested_str_weak(log), + /* K21 */ be_nested_str_weak(_X28), + /* K22 */ be_nested_str_weak(_X29_X20), + /* K23 */ be_nested_str_weak(), + /* K24 */ be_nested_str_weak(MTR_X3A_X20_X3ECommand_X20_X20_X20_X28_X256i_X29_X20_X25s_X20_X25s_X20_X25s), + /* K25 */ be_nested_str_weak(local_session_id), + /* K26 */ be_const_int(3), + /* K27 */ be_nested_str_weak(SUCCESS), + /* K28 */ be_nested_str_weak(invokeresponse2raw), + /* K29 */ be_nested_str_weak(push), + /* K30 */ be_nested_str_weak(tasmota), + /* K31 */ be_nested_str_weak(loglevel), + /* K32 */ be_nested_str_weak(MTR_X3A_X20_X3CReplied_X20_X20_X20_X28_X256i_X29_X20OK_X20exch_X3D_X25i), + /* K33 */ be_nested_str_weak(exchange_id), + /* K34 */ be_nested_str_weak(MTR_X3A_X20_X3CReplied_X20_X20_X20_X28_X256i_X29_X20_X25s_X20_X25s), + /* K35 */ be_nested_str_weak(MTR_X3A_X20_X3CReplied_X20_X20_X20_X28_X256i_X29_X20Status_X3D0x_X2502X_X20exch_X3D_X25i), + /* K36 */ be_nested_str_weak(MTR_X3A_X20_Ignore_X20_X20_X20_X20_X28_X256i_X29_X20exch_X3D_X25i), + /* K37 */ be_nested_str_weak(stop_iteration), + /* K38 */ be_const_int(0), + /* K39 */ be_nested_str_weak(send_queue), + /* K40 */ be_nested_str_weak(IM_InvokeResponse), }), be_str_weak(process_invoke_request), &be_const_str_solidified, - ( &(const binstruction[232]) { /* code */ + ( &(const binstruction[222]) { /* code */ 0xB80E0000, // 0000 GETNGBL R3 K0 - 0x880C0701, // 0001 GETMBR R3 R3 K1 - 0x8C0C0702, // 0002 GETMET R3 R3 K2 - 0x58140003, // 0003 LDCONST R5 K3 - 0x7C0C0400, // 0004 CALL R3 2 - 0xB80E0000, // 0005 GETNGBL R3 K0 - 0x8C0C0704, // 0006 GETMET R3 R3 K4 - 0x7C0C0200, // 0007 CALL R3 1 - 0x900E0A01, // 0008 SETMBR R3 K5 R1 - 0xB8120000, // 0009 GETNGBL R4 K0 - 0x8C100906, // 000A GETMET R4 R4 K6 - 0x7C100200, // 000B CALL R4 1 - 0x8C100907, // 000C GETMET R4 R4 K7 - 0x5C180400, // 000D MOVE R6 R2 - 0x7C100400, // 000E CALL R4 2 - 0x88140908, // 000F GETMBR R5 R4 K8 - 0x4C180000, // 0010 LDNIL R6 - 0x20140A06, // 0011 NE R5 R5 R6 - 0x781600D3, // 0012 JMPF R5 #00E7 - 0xB8160000, // 0013 GETNGBL R5 K0 - 0x8C140B09, // 0014 GETMET R5 R5 K9 - 0x7C140200, // 0015 CALL R5 1 - 0x50180000, // 0016 LDBOOL R6 0 0 - 0x90161406, // 0017 SETMBR R5 K10 R6 - 0x60180012, // 0018 GETGBL R6 G18 - 0x7C180000, // 0019 CALL R6 0 - 0x90161606, // 001A SETMBR R5 K11 R6 - 0x60180010, // 001B GETGBL R6 G16 - 0x881C0908, // 001C GETMBR R7 R4 K8 - 0x7C180200, // 001D CALL R6 1 - 0xA80200B2, // 001E EXBLK 0 #00D2 - 0x5C1C0C00, // 001F MOVE R7 R6 - 0x7C1C0000, // 0020 CALL R7 0 - 0x88200F0D, // 0021 GETMBR R8 R7 K13 - 0x8820110C, // 0022 GETMBR R8 R8 K12 - 0x900E1808, // 0023 SETMBR R3 K12 R8 - 0x88200F0D, // 0024 GETMBR R8 R7 K13 - 0x8820110E, // 0025 GETMBR R8 R8 K14 - 0x900E1C08, // 0026 SETMBR R3 K14 R8 - 0x88200F0D, // 0027 GETMBR R8 R7 K13 - 0x8820110F, // 0028 GETMBR R8 R8 K15 - 0x900E1E08, // 0029 SETMBR R3 K15 R8 - 0xB8220000, // 002A GETNGBL R8 K0 - 0x88201111, // 002B GETMBR R8 R8 K17 - 0x900E2008, // 002C SETMBR R3 K16 R8 - 0xB8220000, // 002D GETNGBL R8 K0 - 0x8C201112, // 002E GETMET R8 R8 K18 - 0x8828070E, // 002F GETMBR R10 R3 K14 - 0x882C070F, // 0030 GETMBR R11 R3 K15 - 0x7C200600, // 0031 CALL R8 3 - 0x60240008, // 0032 GETGBL R9 G8 - 0x5C280600, // 0033 MOVE R10 R3 - 0x7C240200, // 0034 CALL R9 1 - 0x88280113, // 0035 GETMBR R10 R0 K19 - 0x8C281514, // 0036 GETMET R10 R10 K20 - 0x88300315, // 0037 GETMBR R12 R1 K21 - 0x88340F16, // 0038 GETMBR R13 R7 K22 - 0x5C380600, // 0039 MOVE R14 R3 - 0x7C280800, // 003A CALL R10 4 - 0xB82E0000, // 003B GETNGBL R11 K0 - 0x882C1701, // 003C GETMBR R11 R11 K1 - 0x8C2C1702, // 003D GETMET R11 R11 K2 - 0x58340017, // 003E LDCONST R13 K23 - 0x7C2C0400, // 003F CALL R11 2 - 0x882C0702, // 0040 GETMBR R11 R3 K2 - 0x4C300000, // 0041 LDNIL R12 - 0x202C160C, // 0042 NE R11 R11 R12 - 0x782E0005, // 0043 JMPF R11 #004A - 0x602C0008, // 0044 GETGBL R11 G8 - 0x88300702, // 0045 GETMBR R12 R3 K2 - 0x7C2C0200, // 0046 CALL R11 1 - 0x002E300B, // 0047 ADD R11 K24 R11 - 0x002C1719, // 0048 ADD R11 R11 K25 + 0x8C0C0701, // 0001 GETMET R3 R3 K1 + 0x7C0C0200, // 0002 CALL R3 1 + 0x900E0401, // 0003 SETMBR R3 K2 R1 + 0xB8120000, // 0004 GETNGBL R4 K0 + 0x8C100903, // 0005 GETMET R4 R4 K3 + 0x7C100200, // 0006 CALL R4 1 + 0x8C100904, // 0007 GETMET R4 R4 K4 + 0x5C180400, // 0008 MOVE R6 R2 + 0x7C100400, // 0009 CALL R4 2 + 0x88140905, // 000A GETMBR R5 R4 K5 + 0x4C180000, // 000B LDNIL R6 + 0x20140A06, // 000C NE R5 R5 R6 + 0x781600CE, // 000D JMPF R5 #00DD + 0xB8160000, // 000E GETNGBL R5 K0 + 0x8C140B06, // 000F GETMET R5 R5 K6 + 0x7C140200, // 0010 CALL R5 1 + 0x50180000, // 0011 LDBOOL R6 0 0 + 0x90160E06, // 0012 SETMBR R5 K7 R6 + 0x60180012, // 0013 GETGBL R6 G18 + 0x7C180000, // 0014 CALL R6 0 + 0x90161006, // 0015 SETMBR R5 K8 R6 + 0x60180010, // 0016 GETGBL R6 G16 + 0x881C0905, // 0017 GETMBR R7 R4 K5 + 0x7C180200, // 0018 CALL R6 1 + 0xA80200AD, // 0019 EXBLK 0 #00C8 + 0x5C1C0C00, // 001A MOVE R7 R6 + 0x7C1C0000, // 001B CALL R7 0 + 0x88200F0A, // 001C GETMBR R8 R7 K10 + 0x88201109, // 001D GETMBR R8 R8 K9 + 0x900E1208, // 001E SETMBR R3 K9 R8 + 0x88200F0A, // 001F GETMBR R8 R7 K10 + 0x8820110B, // 0020 GETMBR R8 R8 K11 + 0x900E1608, // 0021 SETMBR R3 K11 R8 + 0x88200F0A, // 0022 GETMBR R8 R7 K10 + 0x8820110C, // 0023 GETMBR R8 R8 K12 + 0x900E1808, // 0024 SETMBR R3 K12 R8 + 0xB8220000, // 0025 GETNGBL R8 K0 + 0x8820110E, // 0026 GETMBR R8 R8 K14 + 0x900E1A08, // 0027 SETMBR R3 K13 R8 + 0xB8220000, // 0028 GETNGBL R8 K0 + 0x8C20110F, // 0029 GETMET R8 R8 K15 + 0x8828070B, // 002A GETMBR R10 R3 K11 + 0x882C070C, // 002B GETMBR R11 R3 K12 + 0x7C200600, // 002C CALL R8 3 + 0x60240008, // 002D GETGBL R9 G8 + 0x5C280600, // 002E MOVE R10 R3 + 0x7C240200, // 002F CALL R9 1 + 0x88280110, // 0030 GETMBR R10 R0 K16 + 0x8C281511, // 0031 GETMET R10 R10 K17 + 0x88300312, // 0032 GETMBR R12 R1 K18 + 0x88340F13, // 0033 GETMBR R13 R7 K19 + 0x5C380600, // 0034 MOVE R14 R3 + 0x7C280800, // 0035 CALL R10 4 + 0x882C0714, // 0036 GETMBR R11 R3 K20 + 0x4C300000, // 0037 LDNIL R12 + 0x202C160C, // 0038 NE R11 R11 R12 + 0x782E0005, // 0039 JMPF R11 #0040 + 0x602C0008, // 003A GETGBL R11 G8 + 0x88300714, // 003B GETMBR R12 R3 K20 + 0x7C2C0200, // 003C CALL R11 1 + 0x002E2A0B, // 003D ADD R11 K21 R11 + 0x002C1716, // 003E ADD R11 R11 K22 + 0x70020000, // 003F JMP #0041 + 0x582C0017, // 0040 LDCONST R11 K23 + 0xB8322800, // 0041 GETNGBL R12 K20 + 0x60340018, // 0042 GETGBL R13 G24 + 0x58380018, // 0043 LDCONST R14 K24 + 0x883C0312, // 0044 GETMBR R15 R1 K18 + 0x883C1F19, // 0045 GETMBR R15 R15 K25 + 0x5C401200, // 0046 MOVE R16 R9 + 0x78220001, // 0047 JMPF R8 #004A + 0x5C441000, // 0048 MOVE R17 R8 0x70020000, // 0049 JMP #004B - 0x582C001A, // 004A LDCONST R11 K26 - 0xB8320400, // 004B GETNGBL R12 K2 - 0x60340018, // 004C GETGBL R13 G24 - 0x5838001B, // 004D LDCONST R14 K27 - 0x883C0315, // 004E GETMBR R15 R1 K21 - 0x883C1F1C, // 004F GETMBR R15 R15 K28 - 0x5C401200, // 0050 MOVE R16 R9 - 0x78220001, // 0051 JMPF R8 #0054 - 0x5C441000, // 0052 MOVE R17 R8 - 0x70020000, // 0053 JMP #0055 - 0x5844001A, // 0054 LDCONST R17 K26 - 0x5C481600, // 0055 MOVE R18 R11 - 0x7C340A00, // 0056 CALL R13 5 - 0x5838001D, // 0057 LDCONST R14 K29 - 0x7C300400, // 0058 CALL R12 2 - 0x4C300000, // 0059 LDNIL R12 - 0x900E040C, // 005A SETMBR R3 K2 R12 - 0x60300015, // 005B GETGBL R12 G21 - 0x5436001F, // 005C LDINT R13 32 - 0x7C300200, // 005D CALL R12 1 - 0x50340200, // 005E LDBOOL R13 1 0 - 0x1C34140D, // 005F EQ R13 R10 R13 - 0x74360004, // 0060 JMPT R13 #0066 - 0x88340710, // 0061 GETMBR R13 R3 K16 - 0xB83A0000, // 0062 GETNGBL R14 K0 - 0x88381D1E, // 0063 GETMBR R14 R14 K30 - 0x1C341A0E, // 0064 EQ R13 R13 R14 - 0x7836001A, // 0065 JMPF R13 #0081 - 0xB8360000, // 0066 GETNGBL R13 K0 - 0x88341B1E, // 0067 GETMBR R13 R13 K30 - 0x900E200D, // 0068 SETMBR R3 K16 R13 - 0x8C34011F, // 0069 GETMET R13 R0 K31 - 0x5C3C1800, // 006A MOVE R15 R12 - 0x5C400600, // 006B MOVE R16 R3 - 0x4C440000, // 006C LDNIL R17 - 0x7C340800, // 006D CALL R13 4 - 0x88340B0B, // 006E GETMBR R13 R5 K11 - 0x8C341B20, // 006F GETMET R13 R13 K32 - 0x5C3C1800, // 0070 MOVE R15 R12 - 0x7C340400, // 0071 CALL R13 2 - 0xB8364200, // 0072 GETNGBL R13 K33 - 0x8C341B22, // 0073 GETMET R13 R13 K34 - 0x583C001D, // 0074 LDCONST R15 K29 + 0x58440017, // 004A LDCONST R17 K23 + 0x5C481600, // 004B MOVE R18 R11 + 0x7C340A00, // 004C CALL R13 5 + 0x5838001A, // 004D LDCONST R14 K26 + 0x7C300400, // 004E CALL R12 2 + 0x4C300000, // 004F LDNIL R12 + 0x900E280C, // 0050 SETMBR R3 K20 R12 + 0x60300015, // 0051 GETGBL R12 G21 + 0x5436001F, // 0052 LDINT R13 32 + 0x7C300200, // 0053 CALL R12 1 + 0x50340200, // 0054 LDBOOL R13 1 0 + 0x1C34140D, // 0055 EQ R13 R10 R13 + 0x74360004, // 0056 JMPT R13 #005C + 0x8834070D, // 0057 GETMBR R13 R3 K13 + 0xB83A0000, // 0058 GETNGBL R14 K0 + 0x88381D1B, // 0059 GETMBR R14 R14 K27 + 0x1C341A0E, // 005A EQ R13 R13 R14 + 0x7836001A, // 005B JMPF R13 #0077 + 0xB8360000, // 005C GETNGBL R13 K0 + 0x88341B1B, // 005D GETMBR R13 R13 K27 + 0x900E1A0D, // 005E SETMBR R3 K13 R13 + 0x8C34011C, // 005F GETMET R13 R0 K28 + 0x5C3C1800, // 0060 MOVE R15 R12 + 0x5C400600, // 0061 MOVE R16 R3 + 0x4C440000, // 0062 LDNIL R17 + 0x7C340800, // 0063 CALL R13 4 + 0x88340B08, // 0064 GETMBR R13 R5 K8 + 0x8C341B1D, // 0065 GETMET R13 R13 K29 + 0x5C3C1800, // 0066 MOVE R15 R12 + 0x7C340400, // 0067 CALL R13 2 + 0xB8363C00, // 0068 GETNGBL R13 K30 + 0x8C341B1F, // 0069 GETMET R13 R13 K31 + 0x583C001A, // 006A LDCONST R15 K26 + 0x7C340400, // 006B CALL R13 2 + 0x78360008, // 006C JMPF R13 #0076 + 0xB8362800, // 006D GETNGBL R13 K20 + 0x60380018, // 006E GETGBL R14 G24 + 0x583C0020, // 006F LDCONST R15 K32 + 0x88400312, // 0070 GETMBR R16 R1 K18 + 0x88402119, // 0071 GETMBR R16 R16 K25 + 0x88440321, // 0072 GETMBR R17 R1 K33 + 0x7C380600, // 0073 CALL R14 3 + 0x583C001A, // 0074 LDCONST R15 K26 0x7C340400, // 0075 CALL R13 2 - 0x78360008, // 0076 JMPF R13 #0080 - 0xB8360400, // 0077 GETNGBL R13 K2 - 0x60380018, // 0078 GETGBL R14 G24 - 0x583C0023, // 0079 LDCONST R15 K35 - 0x88400315, // 007A GETMBR R16 R1 K21 - 0x8840211C, // 007B GETMBR R16 R16 K28 - 0x88440324, // 007C GETMBR R17 R1 K36 - 0x7C380600, // 007D CALL R14 3 - 0x583C001D, // 007E LDCONST R15 K29 - 0x7C340400, // 007F CALL R13 2 - 0x7002004F, // 0080 JMP #00D1 - 0x4C340000, // 0081 LDNIL R13 - 0x2034140D, // 0082 NE R13 R10 R13 - 0x78360021, // 0083 JMPF R13 #00A6 - 0x8C34011F, // 0084 GETMET R13 R0 K31 - 0x5C3C1800, // 0085 MOVE R15 R12 - 0x5C400600, // 0086 MOVE R16 R3 - 0x5C441400, // 0087 MOVE R17 R10 - 0x7C340800, // 0088 CALL R13 4 - 0x88340B0B, // 0089 GETMBR R13 R5 K11 - 0x8C341B20, // 008A GETMET R13 R13 K32 - 0x5C3C1800, // 008B MOVE R15 R12 - 0x7C340400, // 008C CALL R13 2 - 0xB8360000, // 008D GETNGBL R13 K0 - 0x8C341B12, // 008E GETMET R13 R13 K18 - 0x883C070E, // 008F GETMBR R15 R3 K14 - 0x8840070F, // 0090 GETMBR R16 R3 K15 - 0x7C340600, // 0091 CALL R13 3 - 0x5C201A00, // 0092 MOVE R8 R13 - 0x5C341000, // 0093 MOVE R13 R8 - 0x74360000, // 0094 JMPT R13 #0096 - 0x5820001A, // 0095 LDCONST R8 K26 - 0xB8364200, // 0096 GETNGBL R13 K33 - 0x8C341B22, // 0097 GETMET R13 R13 K34 - 0x583C001D, // 0098 LDCONST R15 K29 - 0x7C340400, // 0099 CALL R13 2 - 0x78360009, // 009A JMPF R13 #00A5 - 0xB8360400, // 009B GETNGBL R13 K2 - 0x60380018, // 009C GETGBL R14 G24 - 0x583C0025, // 009D LDCONST R15 K37 - 0x88400315, // 009E GETMBR R16 R1 K21 - 0x8840211C, // 009F GETMBR R16 R16 K28 - 0x5C440600, // 00A0 MOVE R17 R3 - 0x5C481000, // 00A1 MOVE R18 R8 - 0x7C380800, // 00A2 CALL R14 4 - 0x583C001D, // 00A3 LDCONST R15 K29 - 0x7C340400, // 00A4 CALL R13 2 - 0x7002002A, // 00A5 JMP #00D1 - 0x88340710, // 00A6 GETMBR R13 R3 K16 - 0x4C380000, // 00A7 LDNIL R14 - 0x20341A0E, // 00A8 NE R13 R13 R14 - 0x78360018, // 00A9 JMPF R13 #00C3 - 0x8C34011F, // 00AA GETMET R13 R0 K31 - 0x5C3C1800, // 00AB MOVE R15 R12 - 0x5C400600, // 00AC MOVE R16 R3 - 0x4C440000, // 00AD LDNIL R17 - 0x7C340800, // 00AE CALL R13 4 - 0x88340B0B, // 00AF GETMBR R13 R5 K11 - 0x8C341B20, // 00B0 GETMET R13 R13 K32 - 0x5C3C1800, // 00B1 MOVE R15 R12 - 0x7C340400, // 00B2 CALL R13 2 - 0xB8364200, // 00B3 GETNGBL R13 K33 - 0x8C341B22, // 00B4 GETMET R13 R13 K34 - 0x583C001D, // 00B5 LDCONST R15 K29 - 0x7C340400, // 00B6 CALL R13 2 - 0x78360009, // 00B7 JMPF R13 #00C2 - 0xB8360400, // 00B8 GETNGBL R13 K2 - 0x60380018, // 00B9 GETGBL R14 G24 - 0x583C0026, // 00BA LDCONST R15 K38 - 0x88400315, // 00BB GETMBR R16 R1 K21 - 0x8840211C, // 00BC GETMBR R16 R16 K28 - 0x88440710, // 00BD GETMBR R17 R3 K16 - 0x88480324, // 00BE GETMBR R18 R1 K36 - 0x7C380800, // 00BF CALL R14 4 - 0x583C001D, // 00C0 LDCONST R15 K29 - 0x7C340400, // 00C1 CALL R13 2 - 0x7002000D, // 00C2 JMP #00D1 - 0xB8364200, // 00C3 GETNGBL R13 K33 - 0x8C341B22, // 00C4 GETMET R13 R13 K34 - 0x583C001D, // 00C5 LDCONST R15 K29 + 0x7002004F, // 0076 JMP #00C7 + 0x4C340000, // 0077 LDNIL R13 + 0x2034140D, // 0078 NE R13 R10 R13 + 0x78360021, // 0079 JMPF R13 #009C + 0x8C34011C, // 007A GETMET R13 R0 K28 + 0x5C3C1800, // 007B MOVE R15 R12 + 0x5C400600, // 007C MOVE R16 R3 + 0x5C441400, // 007D MOVE R17 R10 + 0x7C340800, // 007E CALL R13 4 + 0x88340B08, // 007F GETMBR R13 R5 K8 + 0x8C341B1D, // 0080 GETMET R13 R13 K29 + 0x5C3C1800, // 0081 MOVE R15 R12 + 0x7C340400, // 0082 CALL R13 2 + 0xB8360000, // 0083 GETNGBL R13 K0 + 0x8C341B0F, // 0084 GETMET R13 R13 K15 + 0x883C070B, // 0085 GETMBR R15 R3 K11 + 0x8840070C, // 0086 GETMBR R16 R3 K12 + 0x7C340600, // 0087 CALL R13 3 + 0x5C201A00, // 0088 MOVE R8 R13 + 0x5C341000, // 0089 MOVE R13 R8 + 0x74360000, // 008A JMPT R13 #008C + 0x58200017, // 008B LDCONST R8 K23 + 0xB8363C00, // 008C GETNGBL R13 K30 + 0x8C341B1F, // 008D GETMET R13 R13 K31 + 0x583C001A, // 008E LDCONST R15 K26 + 0x7C340400, // 008F CALL R13 2 + 0x78360009, // 0090 JMPF R13 #009B + 0xB8362800, // 0091 GETNGBL R13 K20 + 0x60380018, // 0092 GETGBL R14 G24 + 0x583C0022, // 0093 LDCONST R15 K34 + 0x88400312, // 0094 GETMBR R16 R1 K18 + 0x88402119, // 0095 GETMBR R16 R16 K25 + 0x5C440600, // 0096 MOVE R17 R3 + 0x5C481000, // 0097 MOVE R18 R8 + 0x7C380800, // 0098 CALL R14 4 + 0x583C001A, // 0099 LDCONST R15 K26 + 0x7C340400, // 009A CALL R13 2 + 0x7002002A, // 009B JMP #00C7 + 0x8834070D, // 009C GETMBR R13 R3 K13 + 0x4C380000, // 009D LDNIL R14 + 0x20341A0E, // 009E NE R13 R13 R14 + 0x78360018, // 009F JMPF R13 #00B9 + 0x8C34011C, // 00A0 GETMET R13 R0 K28 + 0x5C3C1800, // 00A1 MOVE R15 R12 + 0x5C400600, // 00A2 MOVE R16 R3 + 0x4C440000, // 00A3 LDNIL R17 + 0x7C340800, // 00A4 CALL R13 4 + 0x88340B08, // 00A5 GETMBR R13 R5 K8 + 0x8C341B1D, // 00A6 GETMET R13 R13 K29 + 0x5C3C1800, // 00A7 MOVE R15 R12 + 0x7C340400, // 00A8 CALL R13 2 + 0xB8363C00, // 00A9 GETNGBL R13 K30 + 0x8C341B1F, // 00AA GETMET R13 R13 K31 + 0x583C001A, // 00AB LDCONST R15 K26 + 0x7C340400, // 00AC CALL R13 2 + 0x78360009, // 00AD JMPF R13 #00B8 + 0xB8362800, // 00AE GETNGBL R13 K20 + 0x60380018, // 00AF GETGBL R14 G24 + 0x583C0023, // 00B0 LDCONST R15 K35 + 0x88400312, // 00B1 GETMBR R16 R1 K18 + 0x88402119, // 00B2 GETMBR R16 R16 K25 + 0x8844070D, // 00B3 GETMBR R17 R3 K13 + 0x88480321, // 00B4 GETMBR R18 R1 K33 + 0x7C380800, // 00B5 CALL R14 4 + 0x583C001A, // 00B6 LDCONST R15 K26 + 0x7C340400, // 00B7 CALL R13 2 + 0x7002000D, // 00B8 JMP #00C7 + 0xB8363C00, // 00B9 GETNGBL R13 K30 + 0x8C341B1F, // 00BA GETMET R13 R13 K31 + 0x583C001A, // 00BB LDCONST R15 K26 + 0x7C340400, // 00BC CALL R13 2 + 0x78360008, // 00BD JMPF R13 #00C7 + 0xB8362800, // 00BE GETNGBL R13 K20 + 0x60380018, // 00BF GETGBL R14 G24 + 0x583C0024, // 00C0 LDCONST R15 K36 + 0x88400312, // 00C1 GETMBR R16 R1 K18 + 0x88402119, // 00C2 GETMBR R16 R16 K25 + 0x88440321, // 00C3 GETMBR R17 R1 K33 + 0x7C380600, // 00C4 CALL R14 3 + 0x583C001A, // 00C5 LDCONST R15 K26 0x7C340400, // 00C6 CALL R13 2 - 0x78360008, // 00C7 JMPF R13 #00D1 - 0xB8360400, // 00C8 GETNGBL R13 K2 - 0x60380018, // 00C9 GETGBL R14 G24 - 0x583C0027, // 00CA LDCONST R15 K39 - 0x88400315, // 00CB GETMBR R16 R1 K21 - 0x8840211C, // 00CC GETMBR R16 R16 K28 - 0x88440324, // 00CD GETMBR R17 R1 K36 - 0x7C380600, // 00CE CALL R14 3 - 0x583C001D, // 00CF LDCONST R15 K29 - 0x7C340400, // 00D0 CALL R13 2 - 0x7001FF4C, // 00D1 JMP #001F - 0x58180028, // 00D2 LDCONST R6 K40 - 0xAC180200, // 00D3 CATCH R6 1 0 - 0xB0080000, // 00D4 RAISE 2 R0 R0 - 0x6018000C, // 00D5 GETGBL R6 G12 - 0x881C0B0B, // 00D6 GETMBR R7 R5 K11 - 0x7C180200, // 00D7 CALL R6 1 - 0x24180D29, // 00D8 GT R6 R6 K41 - 0x781A0008, // 00D9 JMPF R6 #00E3 - 0x8818012A, // 00DA GETMBR R6 R0 K42 - 0x8C180D20, // 00DB GETMET R6 R6 K32 - 0xB8220000, // 00DC GETNGBL R8 K0 - 0x8C20112B, // 00DD GETMET R8 R8 K43 - 0x5C280200, // 00DE MOVE R10 R1 - 0x5C2C0A00, // 00DF MOVE R11 R5 - 0x7C200600, // 00E0 CALL R8 3 - 0x7C180400, // 00E1 CALL R6 2 - 0x70020001, // 00E2 JMP #00E5 - 0x50180000, // 00E3 LDBOOL R6 0 0 - 0x80040C00, // 00E4 RET 1 R6 - 0x50180200, // 00E5 LDBOOL R6 1 0 - 0x80040C00, // 00E6 RET 1 R6 - 0x80000000, // 00E7 RET 0 + 0x7001FF51, // 00C7 JMP #001A + 0x58180025, // 00C8 LDCONST R6 K37 + 0xAC180200, // 00C9 CATCH R6 1 0 + 0xB0080000, // 00CA RAISE 2 R0 R0 + 0x6018000C, // 00CB GETGBL R6 G12 + 0x881C0B08, // 00CC GETMBR R7 R5 K8 + 0x7C180200, // 00CD CALL R6 1 + 0x24180D26, // 00CE GT R6 R6 K38 + 0x781A0008, // 00CF JMPF R6 #00D9 + 0x88180127, // 00D0 GETMBR R6 R0 K39 + 0x8C180D1D, // 00D1 GETMET R6 R6 K29 + 0xB8220000, // 00D2 GETNGBL R8 K0 + 0x8C201128, // 00D3 GETMET R8 R8 K40 + 0x5C280200, // 00D4 MOVE R10 R1 + 0x5C2C0A00, // 00D5 MOVE R11 R5 + 0x7C200600, // 00D6 CALL R8 3 + 0x7C180400, // 00D7 CALL R6 2 + 0x70020001, // 00D8 JMP #00DB + 0x50180000, // 00D9 LDBOOL R6 0 0 + 0x80040C00, // 00DA RET 1 R6 + 0x50180200, // 00DB LDBOOL R6 1 0 + 0x80040C00, // 00DC RET 1 R6 + 0x80000000, // 00DD RET 0 }) ) ); @@ -1063,256 +1042,237 @@ be_local_closure(class_Matter_IM_process_invoke_request_solo, /* name */ 0, /* has sup protos */ &be_class_Matter_IM, 1, /* has constants */ - ( &(const bvalue[42]) { /* constants */ - /* K0 */ be_nested_str_weak(matter), - /* K1 */ be_nested_str_weak(profiler), - /* K2 */ be_nested_str_weak(log), - /* K3 */ be_nested_str_weak(invoke_request_solo_start), - /* K4 */ be_nested_str_weak(msg), - /* K5 */ be_nested_str_weak(status), - /* K6 */ be_nested_str_weak(UNSUPPORTED_COMMAND), - /* K7 */ be_nested_str_weak(get_command_name), - /* K8 */ be_nested_str_weak(cluster), - /* K9 */ be_nested_str_weak(command), - /* K10 */ be_nested_str_weak(device), - /* K11 */ be_nested_str_weak(invoke_request), - /* K12 */ be_nested_str_weak(session), - /* K13 */ be_nested_str_weak(command_fields), - /* K14 */ be_nested_str_weak(COMMAND_X20DONE), - /* K15 */ be_nested_str_weak(_X28), - /* K16 */ be_nested_str_weak(_X29_X20), - /* K17 */ be_nested_str_weak(), - /* K18 */ be_nested_str_weak(tasmota), - /* K19 */ be_nested_str_weak(loglevel), - /* K20 */ be_const_int(3), - /* K21 */ be_nested_str_weak(MTR_X3A_X20_X3ECommand1_X20_X20_X28_X256i_X29_X20_X25s_X20_X25s_X20_X25s), - /* K22 */ be_nested_str_weak(local_session_id), - /* K23 */ be_nested_str_weak(add), - /* K24 */ be_const_int(354943030), - /* K25 */ be_const_int(1), - /* K26 */ be_nested_str_weak(SUCCESS), - /* K27 */ be_nested_str_weak(invokeresponse2raw), - /* K28 */ be_nested_str_weak(MTR_X3A_X20_X3CReplied_X20_X20_X20_X28_X256i_X29_X20OK_X20exch_X3D_X25i), - /* K29 */ be_nested_str_weak(exchange_id), - /* K30 */ be_nested_str_weak(MTR_X3A_X20_X3CReplied_X20_X20_X20_X28_X256i_X29_X20_X25s_X20_X25s), - /* K31 */ be_nested_str_weak(MTR_X3A_X20_X3CReplied_X20_X20_X20_X28_X256i_X29_X20Status_X3D0x_X2502X_X20exch_X3D_X25i), - /* K32 */ be_nested_str_weak(MTR_X3A_X20_Ignore_X20_X20_X20_X20_X28_X256i_X29_X20exch_X3D_X25i), - /* K33 */ be_const_int(405077761), - /* K34 */ be_nested_str_weak(build_response), - /* K35 */ be_nested_str_weak(message_handler), - /* K36 */ be_nested_str_weak(raw), - /* K37 */ be_nested_str_weak(clear), - /* K38 */ be_nested_str_weak(encode_frame), - /* K39 */ be_nested_str_weak(encrypt), - /* K40 */ be_nested_str_weak(send_response_frame), - /* K41 */ be_nested_str_weak(RESPONSE_X20SENT), + ( &(const bvalue[38]) { /* constants */ + /* K0 */ be_nested_str_weak(msg), + /* K1 */ be_nested_str_weak(status), + /* K2 */ be_nested_str_weak(matter), + /* K3 */ be_nested_str_weak(UNSUPPORTED_COMMAND), + /* K4 */ be_nested_str_weak(get_command_name), + /* K5 */ be_nested_str_weak(cluster), + /* K6 */ be_nested_str_weak(command), + /* K7 */ be_nested_str_weak(device), + /* K8 */ be_nested_str_weak(invoke_request), + /* K9 */ be_nested_str_weak(session), + /* K10 */ be_nested_str_weak(command_fields), + /* K11 */ be_nested_str_weak(log), + /* K12 */ be_nested_str_weak(_X28), + /* K13 */ be_nested_str_weak(_X29_X20), + /* K14 */ be_nested_str_weak(), + /* K15 */ be_nested_str_weak(tasmota), + /* K16 */ be_nested_str_weak(loglevel), + /* K17 */ be_const_int(3), + /* K18 */ be_nested_str_weak(MTR_X3A_X20_X3ECommand1_X20_X20_X28_X256i_X29_X20_X25s_X20_X25s_X20_X25s), + /* K19 */ be_nested_str_weak(local_session_id), + /* K20 */ be_nested_str_weak(add), + /* K21 */ be_const_int(354943030), + /* K22 */ be_const_int(1), + /* K23 */ be_nested_str_weak(SUCCESS), + /* K24 */ be_nested_str_weak(invokeresponse2raw), + /* K25 */ be_nested_str_weak(MTR_X3A_X20_X3CReplied_X20_X20_X20_X28_X256i_X29_X20OK_X20exch_X3D_X25i), + /* K26 */ be_nested_str_weak(exchange_id), + /* K27 */ be_nested_str_weak(MTR_X3A_X20_X3CReplied_X20_X20_X20_X28_X256i_X29_X20_X25s_X20_X25s), + /* K28 */ be_nested_str_weak(MTR_X3A_X20_X3CReplied_X20_X20_X20_X28_X256i_X29_X20Status_X3D0x_X2502X_X20exch_X3D_X25i), + /* K29 */ be_nested_str_weak(MTR_X3A_X20_Ignore_X20_X20_X20_X20_X28_X256i_X29_X20exch_X3D_X25i), + /* K30 */ be_const_int(405077761), + /* K31 */ be_nested_str_weak(build_response), + /* K32 */ be_nested_str_weak(message_handler), + /* K33 */ be_nested_str_weak(raw), + /* K34 */ be_nested_str_weak(clear), + /* K35 */ be_nested_str_weak(encode_frame), + /* K36 */ be_nested_str_weak(encrypt), + /* K37 */ be_nested_str_weak(send_response_frame), }), be_str_weak(process_invoke_request_solo), &be_const_str_solidified, - ( &(const binstruction[203]) { /* code */ - 0xB80E0000, // 0000 GETNGBL R3 K0 - 0x880C0701, // 0001 GETMBR R3 R3 K1 - 0x8C0C0702, // 0002 GETMET R3 R3 K2 - 0x58140003, // 0003 LDCONST R5 K3 - 0x7C0C0400, // 0004 CALL R3 2 - 0x900A0801, // 0005 SETMBR R2 K4 R1 - 0xB80E0000, // 0006 GETNGBL R3 K0 - 0x880C0706, // 0007 GETMBR R3 R3 K6 - 0x900A0A03, // 0008 SETMBR R2 K5 R3 - 0xB80E0000, // 0009 GETNGBL R3 K0 - 0x8C0C0707, // 000A GETMET R3 R3 K7 - 0x88140508, // 000B GETMBR R5 R2 K8 - 0x88180509, // 000C GETMBR R6 R2 K9 - 0x7C0C0600, // 000D CALL R3 3 - 0x60100008, // 000E GETGBL R4 G8 - 0x5C140400, // 000F MOVE R5 R2 - 0x7C100200, // 0010 CALL R4 1 - 0x8814010A, // 0011 GETMBR R5 R0 K10 - 0x8C140B0B, // 0012 GETMET R5 R5 K11 - 0x881C030C, // 0013 GETMBR R7 R1 K12 - 0x8820050D, // 0014 GETMBR R8 R2 K13 - 0x5C240400, // 0015 MOVE R9 R2 - 0x7C140800, // 0016 CALL R5 4 - 0xB81A0000, // 0017 GETNGBL R6 K0 - 0x88180D01, // 0018 GETMBR R6 R6 K1 - 0x8C180D02, // 0019 GETMET R6 R6 K2 - 0x5820000E, // 001A LDCONST R8 K14 - 0x7C180400, // 001B CALL R6 2 - 0x88180502, // 001C GETMBR R6 R2 K2 - 0x4C1C0000, // 001D LDNIL R7 - 0x20180C07, // 001E NE R6 R6 R7 - 0x781A0005, // 001F JMPF R6 #0026 - 0x60180008, // 0020 GETGBL R6 G8 - 0x881C0502, // 0021 GETMBR R7 R2 K2 - 0x7C180200, // 0022 CALL R6 1 - 0x001A1E06, // 0023 ADD R6 K15 R6 - 0x00180D10, // 0024 ADD R6 R6 K16 - 0x70020000, // 0025 JMP #0027 - 0x58180011, // 0026 LDCONST R6 K17 - 0xB81E2400, // 0027 GETNGBL R7 K18 - 0x8C1C0F13, // 0028 GETMET R7 R7 K19 - 0x58240014, // 0029 LDCONST R9 K20 - 0x7C1C0400, // 002A CALL R7 2 - 0x781E000D, // 002B JMPF R7 #003A - 0xB81E0400, // 002C GETNGBL R7 K2 - 0x60200018, // 002D GETGBL R8 G24 - 0x58240015, // 002E LDCONST R9 K21 - 0x8828030C, // 002F GETMBR R10 R1 K12 - 0x88281516, // 0030 GETMBR R10 R10 K22 - 0x5C2C0800, // 0031 MOVE R11 R4 - 0x780E0001, // 0032 JMPF R3 #0035 - 0x5C300600, // 0033 MOVE R12 R3 - 0x70020000, // 0034 JMP #0036 - 0x58300011, // 0035 LDCONST R12 K17 - 0x5C340C00, // 0036 MOVE R13 R6 - 0x7C200A00, // 0037 CALL R8 5 - 0x58240014, // 0038 LDCONST R9 K20 - 0x7C1C0400, // 0039 CALL R7 2 - 0x4C1C0000, // 003A LDNIL R7 - 0x900A0407, // 003B SETMBR R2 K2 R7 - 0x601C0015, // 003C GETGBL R7 G21 - 0x5422002F, // 003D LDINT R8 48 - 0x7C1C0200, // 003E CALL R7 1 - 0x8C200F17, // 003F GETMET R8 R7 K23 - 0x58280018, // 0040 LDCONST R10 K24 - 0x542DFFFB, // 0041 LDINT R11 -4 - 0x7C200600, // 0042 CALL R8 3 - 0x8C200F17, // 0043 GETMET R8 R7 K23 - 0x58280019, // 0044 LDCONST R10 K25 - 0x582C0019, // 0045 LDCONST R11 K25 - 0x7C200600, // 0046 CALL R8 3 - 0x50200200, // 0047 LDBOOL R8 1 0 - 0x1C200A08, // 0048 EQ R8 R5 R8 - 0x74220004, // 0049 JMPT R8 #004F - 0x88200505, // 004A GETMBR R8 R2 K5 - 0xB8260000, // 004B GETNGBL R9 K0 - 0x8824131A, // 004C GETMBR R9 R9 K26 - 0x1C201009, // 004D EQ R8 R8 R9 - 0x78220016, // 004E JMPF R8 #0066 - 0xB8220000, // 004F GETNGBL R8 K0 - 0x8820111A, // 0050 GETMBR R8 R8 K26 - 0x900A0A08, // 0051 SETMBR R2 K5 R8 - 0x8C20011B, // 0052 GETMET R8 R0 K27 - 0x5C280E00, // 0053 MOVE R10 R7 - 0x5C2C0400, // 0054 MOVE R11 R2 - 0x4C300000, // 0055 LDNIL R12 - 0x7C200800, // 0056 CALL R8 4 - 0xB8222400, // 0057 GETNGBL R8 K18 - 0x8C201113, // 0058 GETMET R8 R8 K19 - 0x58280014, // 0059 LDCONST R10 K20 + ( &(const binstruction[188]) { /* code */ + 0x900A0001, // 0000 SETMBR R2 K0 R1 + 0xB80E0400, // 0001 GETNGBL R3 K2 + 0x880C0703, // 0002 GETMBR R3 R3 K3 + 0x900A0203, // 0003 SETMBR R2 K1 R3 + 0xB80E0400, // 0004 GETNGBL R3 K2 + 0x8C0C0704, // 0005 GETMET R3 R3 K4 + 0x88140505, // 0006 GETMBR R5 R2 K5 + 0x88180506, // 0007 GETMBR R6 R2 K6 + 0x7C0C0600, // 0008 CALL R3 3 + 0x60100008, // 0009 GETGBL R4 G8 + 0x5C140400, // 000A MOVE R5 R2 + 0x7C100200, // 000B CALL R4 1 + 0x88140107, // 000C GETMBR R5 R0 K7 + 0x8C140B08, // 000D GETMET R5 R5 K8 + 0x881C0309, // 000E GETMBR R7 R1 K9 + 0x8820050A, // 000F GETMBR R8 R2 K10 + 0x5C240400, // 0010 MOVE R9 R2 + 0x7C140800, // 0011 CALL R5 4 + 0x8818050B, // 0012 GETMBR R6 R2 K11 + 0x4C1C0000, // 0013 LDNIL R7 + 0x20180C07, // 0014 NE R6 R6 R7 + 0x781A0005, // 0015 JMPF R6 #001C + 0x60180008, // 0016 GETGBL R6 G8 + 0x881C050B, // 0017 GETMBR R7 R2 K11 + 0x7C180200, // 0018 CALL R6 1 + 0x001A1806, // 0019 ADD R6 K12 R6 + 0x00180D0D, // 001A ADD R6 R6 K13 + 0x70020000, // 001B JMP #001D + 0x5818000E, // 001C LDCONST R6 K14 + 0xB81E1E00, // 001D GETNGBL R7 K15 + 0x8C1C0F10, // 001E GETMET R7 R7 K16 + 0x58240011, // 001F LDCONST R9 K17 + 0x7C1C0400, // 0020 CALL R7 2 + 0x781E000D, // 0021 JMPF R7 #0030 + 0xB81E1600, // 0022 GETNGBL R7 K11 + 0x60200018, // 0023 GETGBL R8 G24 + 0x58240012, // 0024 LDCONST R9 K18 + 0x88280309, // 0025 GETMBR R10 R1 K9 + 0x88281513, // 0026 GETMBR R10 R10 K19 + 0x5C2C0800, // 0027 MOVE R11 R4 + 0x780E0001, // 0028 JMPF R3 #002B + 0x5C300600, // 0029 MOVE R12 R3 + 0x70020000, // 002A JMP #002C + 0x5830000E, // 002B LDCONST R12 K14 + 0x5C340C00, // 002C MOVE R13 R6 + 0x7C200A00, // 002D CALL R8 5 + 0x58240011, // 002E LDCONST R9 K17 + 0x7C1C0400, // 002F CALL R7 2 + 0x4C1C0000, // 0030 LDNIL R7 + 0x900A1607, // 0031 SETMBR R2 K11 R7 + 0x601C0015, // 0032 GETGBL R7 G21 + 0x5422002F, // 0033 LDINT R8 48 + 0x7C1C0200, // 0034 CALL R7 1 + 0x8C200F14, // 0035 GETMET R8 R7 K20 + 0x58280015, // 0036 LDCONST R10 K21 + 0x542DFFFB, // 0037 LDINT R11 -4 + 0x7C200600, // 0038 CALL R8 3 + 0x8C200F14, // 0039 GETMET R8 R7 K20 + 0x58280016, // 003A LDCONST R10 K22 + 0x582C0016, // 003B LDCONST R11 K22 + 0x7C200600, // 003C CALL R8 3 + 0x50200200, // 003D LDBOOL R8 1 0 + 0x1C200A08, // 003E EQ R8 R5 R8 + 0x74220004, // 003F JMPT R8 #0045 + 0x88200501, // 0040 GETMBR R8 R2 K1 + 0xB8260400, // 0041 GETNGBL R9 K2 + 0x88241317, // 0042 GETMBR R9 R9 K23 + 0x1C201009, // 0043 EQ R8 R8 R9 + 0x78220016, // 0044 JMPF R8 #005C + 0xB8220400, // 0045 GETNGBL R8 K2 + 0x88201117, // 0046 GETMBR R8 R8 K23 + 0x900A0208, // 0047 SETMBR R2 K1 R8 + 0x8C200118, // 0048 GETMET R8 R0 K24 + 0x5C280E00, // 0049 MOVE R10 R7 + 0x5C2C0400, // 004A MOVE R11 R2 + 0x4C300000, // 004B LDNIL R12 + 0x7C200800, // 004C CALL R8 4 + 0xB8221E00, // 004D GETNGBL R8 K15 + 0x8C201110, // 004E GETMET R8 R8 K16 + 0x58280011, // 004F LDCONST R10 K17 + 0x7C200400, // 0050 CALL R8 2 + 0x78220008, // 0051 JMPF R8 #005B + 0xB8221600, // 0052 GETNGBL R8 K11 + 0x60240018, // 0053 GETGBL R9 G24 + 0x58280019, // 0054 LDCONST R10 K25 + 0x882C0309, // 0055 GETMBR R11 R1 K9 + 0x882C1713, // 0056 GETMBR R11 R11 K19 + 0x8830031A, // 0057 GETMBR R12 R1 K26 + 0x7C240600, // 0058 CALL R9 3 + 0x58280011, // 0059 LDCONST R10 K17 0x7C200400, // 005A CALL R8 2 - 0x78220008, // 005B JMPF R8 #0065 - 0xB8220400, // 005C GETNGBL R8 K2 - 0x60240018, // 005D GETGBL R9 G24 - 0x5828001C, // 005E LDCONST R10 K28 - 0x882C030C, // 005F GETMBR R11 R1 K12 - 0x882C1716, // 0060 GETMBR R11 R11 K22 - 0x8830031D, // 0061 GETMBR R12 R1 K29 - 0x7C240600, // 0062 CALL R9 3 - 0x58280014, // 0063 LDCONST R10 K20 - 0x7C200400, // 0064 CALL R8 2 - 0x70020043, // 0065 JMP #00AA - 0x4C200000, // 0066 LDNIL R8 - 0x20200A08, // 0067 NE R8 R5 R8 - 0x78220017, // 0068 JMPF R8 #0081 - 0x8C20011B, // 0069 GETMET R8 R0 K27 - 0x5C280E00, // 006A MOVE R10 R7 - 0x5C2C0400, // 006B MOVE R11 R2 - 0x5C300A00, // 006C MOVE R12 R5 - 0x7C200800, // 006D CALL R8 4 - 0x5C200600, // 006E MOVE R8 R3 - 0x74220000, // 006F JMPT R8 #0071 - 0x580C0011, // 0070 LDCONST R3 K17 - 0xB8222400, // 0071 GETNGBL R8 K18 - 0x8C201113, // 0072 GETMET R8 R8 K19 - 0x58280014, // 0073 LDCONST R10 K20 - 0x7C200400, // 0074 CALL R8 2 - 0x78220009, // 0075 JMPF R8 #0080 - 0xB8220400, // 0076 GETNGBL R8 K2 - 0x60240018, // 0077 GETGBL R9 G24 - 0x5828001E, // 0078 LDCONST R10 K30 - 0x882C030C, // 0079 GETMBR R11 R1 K12 - 0x882C1716, // 007A GETMBR R11 R11 K22 - 0x5C300400, // 007B MOVE R12 R2 - 0x5C340600, // 007C MOVE R13 R3 - 0x7C240800, // 007D CALL R9 4 - 0x58280014, // 007E LDCONST R10 K20 - 0x7C200400, // 007F CALL R8 2 - 0x70020028, // 0080 JMP #00AA - 0x88200505, // 0081 GETMBR R8 R2 K5 - 0x4C240000, // 0082 LDNIL R9 - 0x20201009, // 0083 NE R8 R8 R9 - 0x78220014, // 0084 JMPF R8 #009A - 0x8C20011B, // 0085 GETMET R8 R0 K27 - 0x5C280E00, // 0086 MOVE R10 R7 - 0x5C2C0400, // 0087 MOVE R11 R2 - 0x4C300000, // 0088 LDNIL R12 - 0x7C200800, // 0089 CALL R8 4 - 0xB8222400, // 008A GETNGBL R8 K18 - 0x8C201113, // 008B GETMET R8 R8 K19 - 0x58280014, // 008C LDCONST R10 K20 - 0x7C200400, // 008D CALL R8 2 - 0x78220009, // 008E JMPF R8 #0099 - 0xB8220400, // 008F GETNGBL R8 K2 - 0x60240018, // 0090 GETGBL R9 G24 - 0x5828001F, // 0091 LDCONST R10 K31 - 0x882C030C, // 0092 GETMBR R11 R1 K12 - 0x882C1716, // 0093 GETMBR R11 R11 K22 - 0x88300505, // 0094 GETMBR R12 R2 K5 - 0x8834031D, // 0095 GETMBR R13 R1 K29 - 0x7C240800, // 0096 CALL R9 4 - 0x58280014, // 0097 LDCONST R10 K20 - 0x7C200400, // 0098 CALL R8 2 - 0x7002000F, // 0099 JMP #00AA - 0xB8222400, // 009A GETNGBL R8 K18 - 0x8C201113, // 009B GETMET R8 R8 K19 - 0x58280014, // 009C LDCONST R10 K20 + 0x70020043, // 005B JMP #00A0 + 0x4C200000, // 005C LDNIL R8 + 0x20200A08, // 005D NE R8 R5 R8 + 0x78220017, // 005E JMPF R8 #0077 + 0x8C200118, // 005F GETMET R8 R0 K24 + 0x5C280E00, // 0060 MOVE R10 R7 + 0x5C2C0400, // 0061 MOVE R11 R2 + 0x5C300A00, // 0062 MOVE R12 R5 + 0x7C200800, // 0063 CALL R8 4 + 0x5C200600, // 0064 MOVE R8 R3 + 0x74220000, // 0065 JMPT R8 #0067 + 0x580C000E, // 0066 LDCONST R3 K14 + 0xB8221E00, // 0067 GETNGBL R8 K15 + 0x8C201110, // 0068 GETMET R8 R8 K16 + 0x58280011, // 0069 LDCONST R10 K17 + 0x7C200400, // 006A CALL R8 2 + 0x78220009, // 006B JMPF R8 #0076 + 0xB8221600, // 006C GETNGBL R8 K11 + 0x60240018, // 006D GETGBL R9 G24 + 0x5828001B, // 006E LDCONST R10 K27 + 0x882C0309, // 006F GETMBR R11 R1 K9 + 0x882C1713, // 0070 GETMBR R11 R11 K19 + 0x5C300400, // 0071 MOVE R12 R2 + 0x5C340600, // 0072 MOVE R13 R3 + 0x7C240800, // 0073 CALL R9 4 + 0x58280011, // 0074 LDCONST R10 K17 + 0x7C200400, // 0075 CALL R8 2 + 0x70020028, // 0076 JMP #00A0 + 0x88200501, // 0077 GETMBR R8 R2 K1 + 0x4C240000, // 0078 LDNIL R9 + 0x20201009, // 0079 NE R8 R8 R9 + 0x78220014, // 007A JMPF R8 #0090 + 0x8C200118, // 007B GETMET R8 R0 K24 + 0x5C280E00, // 007C MOVE R10 R7 + 0x5C2C0400, // 007D MOVE R11 R2 + 0x4C300000, // 007E LDNIL R12 + 0x7C200800, // 007F CALL R8 4 + 0xB8221E00, // 0080 GETNGBL R8 K15 + 0x8C201110, // 0081 GETMET R8 R8 K16 + 0x58280011, // 0082 LDCONST R10 K17 + 0x7C200400, // 0083 CALL R8 2 + 0x78220009, // 0084 JMPF R8 #008F + 0xB8221600, // 0085 GETNGBL R8 K11 + 0x60240018, // 0086 GETGBL R9 G24 + 0x5828001C, // 0087 LDCONST R10 K28 + 0x882C0309, // 0088 GETMBR R11 R1 K9 + 0x882C1713, // 0089 GETMBR R11 R11 K19 + 0x88300501, // 008A GETMBR R12 R2 K1 + 0x8834031A, // 008B GETMBR R13 R1 K26 + 0x7C240800, // 008C CALL R9 4 + 0x58280011, // 008D LDCONST R10 K17 + 0x7C200400, // 008E CALL R8 2 + 0x7002000F, // 008F JMP #00A0 + 0xB8221E00, // 0090 GETNGBL R8 K15 + 0x8C201110, // 0091 GETMET R8 R8 K16 + 0x58280011, // 0092 LDCONST R10 K17 + 0x7C200400, // 0093 CALL R8 2 + 0x78220008, // 0094 JMPF R8 #009E + 0xB8221600, // 0095 GETNGBL R8 K11 + 0x60240018, // 0096 GETGBL R9 G24 + 0x5828001D, // 0097 LDCONST R10 K29 + 0x882C0309, // 0098 GETMBR R11 R1 K9 + 0x882C1713, // 0099 GETMBR R11 R11 K19 + 0x8830031A, // 009A GETMBR R12 R1 K26 + 0x7C240600, // 009B CALL R9 3 + 0x58280011, // 009C LDCONST R10 K17 0x7C200400, // 009D CALL R8 2 - 0x78220008, // 009E JMPF R8 #00A8 - 0xB8220400, // 009F GETNGBL R8 K2 - 0x60240018, // 00A0 GETGBL R9 G24 - 0x58280020, // 00A1 LDCONST R10 K32 - 0x882C030C, // 00A2 GETMBR R11 R1 K12 - 0x882C1716, // 00A3 GETMBR R11 R11 K22 - 0x8830031D, // 00A4 GETMBR R12 R1 K29 - 0x7C240600, // 00A5 CALL R9 3 - 0x58280014, // 00A6 LDCONST R10 K20 - 0x7C200400, // 00A7 CALL R8 2 - 0x50200000, // 00A8 LDBOOL R8 0 0 - 0x80041000, // 00A9 RET 1 R8 - 0x8C200F17, // 00AA GETMET R8 R7 K23 - 0x58280021, // 00AB LDCONST R10 K33 - 0x542DFFFB, // 00AC LDINT R11 -4 - 0x7C200600, // 00AD CALL R8 3 - 0x8C200F17, // 00AE GETMET R8 R7 K23 - 0x542A0017, // 00AF LDINT R10 24 - 0x582C0019, // 00B0 LDCONST R11 K25 - 0x7C200600, // 00B1 CALL R8 3 - 0x8C200322, // 00B2 GETMET R8 R1 K34 - 0x542A0008, // 00B3 LDINT R10 9 - 0x502C0200, // 00B4 LDBOOL R11 1 0 - 0x7C200600, // 00B5 CALL R8 3 - 0x8824010A, // 00B6 GETMBR R9 R0 K10 - 0x88241323, // 00B7 GETMBR R9 R9 K35 - 0x88280324, // 00B8 GETMBR R10 R1 K36 - 0x8C2C1525, // 00B9 GETMET R11 R10 K37 - 0x7C2C0200, // 00BA CALL R11 1 - 0x8C2C1126, // 00BB GETMET R11 R8 K38 - 0x5C340E00, // 00BC MOVE R13 R7 - 0x5C381400, // 00BD MOVE R14 R10 - 0x7C2C0600, // 00BE CALL R11 3 - 0x8C2C1127, // 00BF GETMET R11 R8 K39 - 0x7C2C0200, // 00C0 CALL R11 1 - 0x8C2C1328, // 00C1 GETMET R11 R9 K40 - 0x5C341000, // 00C2 MOVE R13 R8 - 0x7C2C0400, // 00C3 CALL R11 2 - 0xB82E0000, // 00C4 GETNGBL R11 K0 - 0x882C1701, // 00C5 GETMBR R11 R11 K1 - 0x8C2C1702, // 00C6 GETMET R11 R11 K2 - 0x58340029, // 00C7 LDCONST R13 K41 - 0x7C2C0400, // 00C8 CALL R11 2 - 0x502C0200, // 00C9 LDBOOL R11 1 0 - 0x80041600, // 00CA RET 1 R11 + 0x50200000, // 009E LDBOOL R8 0 0 + 0x80041000, // 009F RET 1 R8 + 0x8C200F14, // 00A0 GETMET R8 R7 K20 + 0x5828001E, // 00A1 LDCONST R10 K30 + 0x542DFFFB, // 00A2 LDINT R11 -4 + 0x7C200600, // 00A3 CALL R8 3 + 0x8C200F14, // 00A4 GETMET R8 R7 K20 + 0x542A0017, // 00A5 LDINT R10 24 + 0x582C0016, // 00A6 LDCONST R11 K22 + 0x7C200600, // 00A7 CALL R8 3 + 0x8C20031F, // 00A8 GETMET R8 R1 K31 + 0x542A0008, // 00A9 LDINT R10 9 + 0x502C0200, // 00AA LDBOOL R11 1 0 + 0x7C200600, // 00AB CALL R8 3 + 0x88240107, // 00AC GETMBR R9 R0 K7 + 0x88241320, // 00AD GETMBR R9 R9 K32 + 0x88280321, // 00AE GETMBR R10 R1 K33 + 0x8C2C1522, // 00AF GETMET R11 R10 K34 + 0x7C2C0200, // 00B0 CALL R11 1 + 0x8C2C1123, // 00B1 GETMET R11 R8 K35 + 0x5C340E00, // 00B2 MOVE R13 R7 + 0x5C381400, // 00B3 MOVE R14 R10 + 0x7C2C0600, // 00B4 CALL R11 3 + 0x8C2C1124, // 00B5 GETMET R11 R8 K36 + 0x7C2C0200, // 00B6 CALL R11 1 + 0x8C2C1325, // 00B7 GETMET R11 R9 K37 + 0x5C341000, // 00B8 MOVE R13 R8 + 0x7C2C0400, // 00B9 CALL R11 2 + 0x502C0200, // 00BA LDBOOL R11 1 0 + 0x80041600, // 00BB RET 1 R11 }) ) ); @@ -1844,7 +1804,7 @@ be_local_closure(class_Matter_IM_process_read_request_solo, /* name */ 0, /* has sup protos */ &be_class_Matter_IM, 1, /* has constants */ - ( &(const bvalue[55]) { /* constants */ + ( &(const bvalue[52]) { /* constants */ /* K0 */ be_nested_str_weak(status), /* K1 */ be_nested_str_weak(matter), /* K2 */ be_nested_str_weak(INVALID_ACTION), @@ -1855,55 +1815,52 @@ be_local_closure(class_Matter_IM_process_read_request_solo, /* name */ /* K7 */ be_nested_str_weak(read_attribute), /* K8 */ be_nested_str_weak(session), /* K9 */ be_nested_str_weak(tlv_solo), - /* K10 */ be_nested_str_weak(profiler), - /* K11 */ be_nested_str_weak(log), - /* K12 */ be_nested_str_weak(read_request_solo_X20read_X20done), - /* K13 */ be_nested_str_weak(is_list), - /* K14 */ be_nested_str_weak(is_array), - /* K15 */ be_nested_str_weak(encode_len), - /* K16 */ be_nested_str_weak(IM_ReportData_Pull), - /* K17 */ be_nested_str_weak(MAX_MESSAGE), - /* K18 */ be_nested_str_weak(MTR_X3A_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Response_X20to_X20big_X2C_X20revert_X20to_X20non_X2Dsolo), - /* K19 */ be_const_int(3), - /* K20 */ be_nested_str_weak(TLV), - /* K21 */ be_nested_str_weak(parse), - /* K22 */ be_nested_str_weak(raw), - /* K23 */ be_nested_str_weak(app_payload_idx), - /* K24 */ be_nested_str_weak(process_read_request_pull), - /* K25 */ be_nested_str_weak(add), - /* K26 */ be_const_int(1), - /* K27 */ be_nested_str_weak(attributedata2raw), - /* K28 */ be_const_int(405077761), - /* K29 */ be_nested_str_weak(attributestatus2raw), - /* K30 */ be_nested_str_weak(MTR_X3A_X20_X3ERead_Attr_X20_X28_X256i_X29_X20_X25s_X20_X2D_X20IGNORED), - /* K31 */ be_nested_str_weak(local_session_id), - /* K32 */ be_nested_str_weak(build_response), - /* K33 */ be_nested_str_weak(message_handler), - /* K34 */ be_nested_str_weak(clear), - /* K35 */ be_nested_str_weak(encode_frame), - /* K36 */ be_nested_str_weak(encrypt), - /* K37 */ be_nested_str_weak(tasmota), - /* K38 */ be_nested_str_weak(loglevel), - /* K39 */ be_nested_str_weak(MTR_X3A_X20_X3Csnd_X20_X20_X20_X20_X20_X20_X20_X28_X256i_X29_X20id_X3D_X25i_X20exch_X3D_X25i_X20rack_X3D_X25s), - /* K40 */ be_nested_str_weak(message_counter), - /* K41 */ be_nested_str_weak(exchange_id), - /* K42 */ be_nested_str_weak(ack_message_counter), - /* K43 */ be_nested_str_weak(send_response_frame), - /* K44 */ be_nested_str_weak(RESPONSE_X20SENT), - /* K45 */ be_nested_str_weak(get_attribute_name), - /* K46 */ be_nested_str_weak(cluster), - /* K47 */ be_nested_str_weak(attribute), - /* K48 */ be_nested_str_weak(_X20_X28), - /* K49 */ be_nested_str_weak(_X29), - /* K50 */ be_nested_str_weak(), - /* K51 */ be_nested_str_weak(to_str_val), - /* K52 */ be_nested_str_weak(MTR_X3A_X20_X3ERead_Attr1_X28_X256i_X29_X20_X25s_X25s_X20_X2D_X20_X25s), - /* K53 */ be_nested_str_weak(MTR_X3A_X20_X3ERead_Attr1_X28_X256i_X29_X20_X25s_X25s_X20_X2D_X20STATUS_X3A_X200x_X2502X_X20_X25s), - /* K54 */ be_nested_str_weak(MTR_X3A_X20_X3ERead_Attr1_X28_X256i_X29_X20_X25s_X25s_X20_X2D_X20IGNORED), + /* K10 */ be_nested_str_weak(is_list), + /* K11 */ be_nested_str_weak(is_array), + /* K12 */ be_nested_str_weak(encode_len), + /* K13 */ be_nested_str_weak(IM_ReportData_Pull), + /* K14 */ be_nested_str_weak(MAX_MESSAGE), + /* K15 */ be_nested_str_weak(log), + /* K16 */ be_nested_str_weak(MTR_X3A_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Response_X20to_X20big_X2C_X20revert_X20to_X20non_X2Dsolo), + /* K17 */ be_const_int(3), + /* K18 */ be_nested_str_weak(TLV), + /* K19 */ be_nested_str_weak(parse), + /* K20 */ be_nested_str_weak(raw), + /* K21 */ be_nested_str_weak(app_payload_idx), + /* K22 */ be_nested_str_weak(process_read_request_pull), + /* K23 */ be_nested_str_weak(add), + /* K24 */ be_const_int(1), + /* K25 */ be_nested_str_weak(attributedata2raw), + /* K26 */ be_const_int(405077761), + /* K27 */ be_nested_str_weak(attributestatus2raw), + /* K28 */ be_nested_str_weak(MTR_X3A_X20_X3ERead_Attr_X20_X28_X256i_X29_X20_X25s_X20_X2D_X20IGNORED), + /* K29 */ be_nested_str_weak(local_session_id), + /* K30 */ be_nested_str_weak(build_response), + /* K31 */ be_nested_str_weak(message_handler), + /* K32 */ be_nested_str_weak(clear), + /* K33 */ be_nested_str_weak(encode_frame), + /* K34 */ be_nested_str_weak(encrypt), + /* K35 */ be_nested_str_weak(tasmota), + /* K36 */ be_nested_str_weak(loglevel), + /* K37 */ be_nested_str_weak(MTR_X3A_X20_X3Csnd_X20_X20_X20_X20_X20_X20_X20_X28_X256i_X29_X20id_X3D_X25i_X20exch_X3D_X25i_X20rack_X3D_X25s), + /* K38 */ be_nested_str_weak(message_counter), + /* K39 */ be_nested_str_weak(exchange_id), + /* K40 */ be_nested_str_weak(ack_message_counter), + /* K41 */ be_nested_str_weak(send_response_frame), + /* K42 */ be_nested_str_weak(get_attribute_name), + /* K43 */ be_nested_str_weak(cluster), + /* K44 */ be_nested_str_weak(attribute), + /* K45 */ be_nested_str_weak(_X20_X28), + /* K46 */ be_nested_str_weak(_X29), + /* K47 */ be_nested_str_weak(), + /* K48 */ be_nested_str_weak(to_str_val), + /* K49 */ be_nested_str_weak(MTR_X3A_X20_X3ERead_Attr1_X28_X256i_X29_X20_X25s_X25s_X20_X2D_X20_X25s), + /* K50 */ be_nested_str_weak(MTR_X3A_X20_X3ERead_Attr1_X28_X256i_X29_X20_X25s_X25s_X20_X2D_X20STATUS_X3A_X200x_X2502X_X20_X25s), + /* K51 */ be_nested_str_weak(MTR_X3A_X20_X3ERead_Attr1_X28_X256i_X29_X20_X25s_X25s_X20_X2D_X20IGNORED), }), be_str_weak(process_read_request_solo), &be_const_str_solidified, - ( &(const binstruction[252]) { /* code */ + ( &(const binstruction[242]) { /* code */ 0xB80E0200, // 0000 GETNGBL R3 K1 0x880C0702, // 0001 GETMBR R3 R3 K2 0x900A0003, // 0002 SETMBR R2 K0 R3 @@ -1926,236 +1883,226 @@ be_local_closure(class_Matter_IM_process_read_request_solo, /* name */ 0x88280109, // 0013 GETMBR R10 R0 K9 0x7C180800, // 0014 CALL R6 4 0x5C100C00, // 0015 MOVE R4 R6 - 0xB81A0200, // 0016 GETNGBL R6 K1 - 0x88180D0A, // 0017 GETMBR R6 R6 K10 - 0x8C180D0B, // 0018 GETMET R6 R6 K11 - 0x5820000C, // 0019 LDCONST R8 K12 - 0x7C180400, // 001A CALL R6 2 - 0x4C180000, // 001B LDNIL R6 - 0x20180806, // 001C NE R6 R4 R6 - 0x781A0036, // 001D JMPF R6 #0055 - 0x8818090D, // 001E GETMBR R6 R4 K13 - 0x741A0001, // 001F JMPT R6 #0022 - 0x8818090E, // 0020 GETMBR R6 R4 K14 - 0x781A0018, // 0021 JMPF R6 #003B - 0x8C18090F, // 0022 GETMET R6 R4 K15 - 0x7C180200, // 0023 CALL R6 1 - 0xB81E0200, // 0024 GETNGBL R7 K1 - 0x881C0F10, // 0025 GETMBR R7 R7 K16 - 0x881C0F11, // 0026 GETMBR R7 R7 K17 - 0x24180C07, // 0027 GT R6 R6 R7 - 0x781A0011, // 0028 JMPF R6 #003B - 0x4C100000, // 0029 LDNIL R4 - 0xB81A1600, // 002A GETNGBL R6 K11 - 0x601C0018, // 002B GETGBL R7 G24 - 0x58200012, // 002C LDCONST R8 K18 - 0x7C1C0200, // 002D CALL R7 1 - 0x58200013, // 002E LDCONST R8 K19 - 0x7C180400, // 002F CALL R6 2 - 0xB81A0200, // 0030 GETNGBL R6 K1 - 0x88180D14, // 0031 GETMBR R6 R6 K20 - 0x8C180D15, // 0032 GETMET R6 R6 K21 - 0x88200316, // 0033 GETMBR R8 R1 K22 - 0x88240317, // 0034 GETMBR R9 R1 K23 - 0x7C180600, // 0035 CALL R6 3 - 0x8C1C0118, // 0036 GETMET R7 R0 K24 - 0x5C240200, // 0037 MOVE R9 R1 - 0x5C280C00, // 0038 MOVE R10 R6 - 0x7C1C0600, // 0039 CALL R7 3 - 0x80040E00, // 003A RET 1 R7 - 0x60180015, // 003B GETGBL R6 G21 - 0x541E002F, // 003C LDINT R7 48 - 0x7C180200, // 003D CALL R6 1 - 0x5C140C00, // 003E MOVE R5 R6 - 0x8C180B19, // 003F GETMET R6 R5 K25 - 0x54220014, // 0040 LDINT R8 21 - 0x5824001A, // 0041 LDCONST R9 K26 - 0x7C180600, // 0042 CALL R6 3 - 0x8C180B19, // 0043 GETMET R6 R5 K25 - 0x54223600, // 0044 LDINT R8 13825 - 0x5425FFFD, // 0045 LDINT R9 -2 - 0x7C180600, // 0046 CALL R6 3 - 0x8C18011B, // 0047 GETMET R6 R0 K27 - 0x5C200A00, // 0048 MOVE R8 R5 - 0x5C240400, // 0049 MOVE R9 R2 - 0x5C280800, // 004A MOVE R10 R4 - 0x7C180800, // 004B CALL R6 4 - 0x8C180B19, // 004C GETMET R6 R5 K25 - 0x5820001C, // 004D LDCONST R8 K28 - 0x5425FFFB, // 004E LDINT R9 -4 - 0x7C180600, // 004F CALL R6 3 - 0x8C180B19, // 0050 GETMET R6 R5 K25 - 0x54220017, // 0051 LDINT R8 24 - 0x5824001A, // 0052 LDCONST R9 K26 - 0x7C180600, // 0053 CALL R6 3 - 0x70020028, // 0054 JMP #007E - 0x88180500, // 0055 GETMBR R6 R2 K0 - 0x4C1C0000, // 0056 LDNIL R7 - 0x20180C07, // 0057 NE R6 R6 R7 - 0x781A0019, // 0058 JMPF R6 #0073 - 0x60180015, // 0059 GETGBL R6 G21 - 0x541E002F, // 005A LDINT R7 48 - 0x7C180200, // 005B CALL R6 1 - 0x5C140C00, // 005C MOVE R5 R6 - 0x8C180B19, // 005D GETMET R6 R5 K25 - 0x54220014, // 005E LDINT R8 21 - 0x5824001A, // 005F LDCONST R9 K26 - 0x7C180600, // 0060 CALL R6 3 - 0x8C180B19, // 0061 GETMET R6 R5 K25 - 0x54223600, // 0062 LDINT R8 13825 - 0x5425FFFD, // 0063 LDINT R9 -2 - 0x7C180600, // 0064 CALL R6 3 - 0x8C18011D, // 0065 GETMET R6 R0 K29 - 0x5C200A00, // 0066 MOVE R8 R5 - 0x5C240400, // 0067 MOVE R9 R2 - 0x88280500, // 0068 GETMBR R10 R2 K0 - 0x7C180800, // 0069 CALL R6 4 - 0x8C180B19, // 006A GETMET R6 R5 K25 - 0x5820001C, // 006B LDCONST R8 K28 - 0x5425FFFB, // 006C LDINT R9 -4 - 0x7C180600, // 006D CALL R6 3 - 0x8C180B19, // 006E GETMET R6 R5 K25 - 0x54220017, // 006F LDINT R8 24 - 0x5824001A, // 0070 LDCONST R9 K26 - 0x7C180600, // 0071 CALL R6 3 - 0x7002000A, // 0072 JMP #007E - 0xB81A1600, // 0073 GETNGBL R6 K11 - 0x601C0018, // 0074 GETGBL R7 G24 - 0x5820001E, // 0075 LDCONST R8 K30 - 0x88240308, // 0076 GETMBR R9 R1 K8 - 0x8824131F, // 0077 GETMBR R9 R9 K31 - 0x5C280400, // 0078 MOVE R10 R2 - 0x7C1C0600, // 0079 CALL R7 3 - 0x58200013, // 007A LDCONST R8 K19 - 0x7C180400, // 007B CALL R6 2 - 0x50180000, // 007C LDBOOL R6 0 0 - 0x80040C00, // 007D RET 1 R6 - 0x8C180320, // 007E GETMET R6 R1 K32 - 0x54220004, // 007F LDINT R8 5 - 0x50240200, // 0080 LDBOOL R9 1 0 - 0x7C180600, // 0081 CALL R6 3 - 0x881C0104, // 0082 GETMBR R7 R0 K4 - 0x881C0F21, // 0083 GETMBR R7 R7 K33 - 0x88200316, // 0084 GETMBR R8 R1 K22 - 0x8C241122, // 0085 GETMET R9 R8 K34 - 0x7C240200, // 0086 CALL R9 1 - 0x8C240D23, // 0087 GETMET R9 R6 K35 - 0x5C2C0A00, // 0088 MOVE R11 R5 - 0x5C301000, // 0089 MOVE R12 R8 - 0x7C240600, // 008A CALL R9 3 - 0x8C240D24, // 008B GETMET R9 R6 K36 - 0x7C240200, // 008C CALL R9 1 - 0xB8264A00, // 008D GETNGBL R9 K37 - 0x8C241326, // 008E GETMET R9 R9 K38 - 0x542E0003, // 008F LDINT R11 4 - 0x7C240400, // 0090 CALL R9 2 - 0x7826000A, // 0091 JMPF R9 #009D - 0xB8261600, // 0092 GETNGBL R9 K11 - 0x60280018, // 0093 GETGBL R10 G24 - 0x582C0027, // 0094 LDCONST R11 K39 - 0x88300D08, // 0095 GETMBR R12 R6 K8 - 0x8830191F, // 0096 GETMBR R12 R12 K31 - 0x88340D28, // 0097 GETMBR R13 R6 K40 - 0x88380D29, // 0098 GETMBR R14 R6 K41 - 0x883C0D2A, // 0099 GETMBR R15 R6 K42 - 0x7C280A00, // 009A CALL R10 5 - 0x542E0003, // 009B LDINT R11 4 - 0x7C240400, // 009C CALL R9 2 - 0x8C240F2B, // 009D GETMET R9 R7 K43 - 0x5C2C0C00, // 009E MOVE R11 R6 - 0x7C240400, // 009F CALL R9 2 - 0xB8260200, // 00A0 GETNGBL R9 K1 - 0x8824130A, // 00A1 GETMBR R9 R9 K10 - 0x8C24130B, // 00A2 GETMET R9 R9 K11 - 0x582C002C, // 00A3 LDCONST R11 K44 - 0x7C240400, // 00A4 CALL R9 2 - 0x4C240000, // 00A5 LDNIL R9 - 0xB82A4A00, // 00A6 GETNGBL R10 K37 - 0x8C281526, // 00A7 GETMET R10 R10 K38 - 0x58300013, // 00A8 LDCONST R12 K19 - 0x7C280400, // 00A9 CALL R10 2 - 0x782A000B, // 00AA JMPF R10 #00B7 - 0xB82A0200, // 00AB GETNGBL R10 K1 - 0x8C28152D, // 00AC GETMET R10 R10 K45 - 0x8830052E, // 00AD GETMBR R12 R2 K46 - 0x8834052F, // 00AE GETMBR R13 R2 K47 - 0x7C280600, // 00AF CALL R10 3 - 0x5C241400, // 00B0 MOVE R9 R10 - 0x78260002, // 00B1 JMPF R9 #00B5 - 0x002A6009, // 00B2 ADD R10 K48 R9 - 0x00281531, // 00B3 ADD R10 R10 K49 - 0x70020000, // 00B4 JMP #00B6 - 0x58280032, // 00B5 LDCONST R10 K50 - 0x5C241400, // 00B6 MOVE R9 R10 - 0x4C280000, // 00B7 LDNIL R10 - 0x2028080A, // 00B8 NE R10 R4 R10 - 0x782A0012, // 00B9 JMPF R10 #00CD - 0xB82A4A00, // 00BA GETNGBL R10 K37 - 0x8C281526, // 00BB GETMET R10 R10 K38 - 0x58300013, // 00BC LDCONST R12 K19 - 0x7C280400, // 00BD CALL R10 2 - 0x782A000C, // 00BE JMPF R10 #00CC - 0x8C280933, // 00BF GETMET R10 R4 K51 - 0x7C280200, // 00C0 CALL R10 1 - 0xB82E1600, // 00C1 GETNGBL R11 K11 - 0x60300018, // 00C2 GETGBL R12 G24 - 0x58340034, // 00C3 LDCONST R13 K52 - 0x88380308, // 00C4 GETMBR R14 R1 K8 - 0x88381D1F, // 00C5 GETMBR R14 R14 K31 - 0x5C3C0400, // 00C6 MOVE R15 R2 - 0x5C401200, // 00C7 MOVE R16 R9 - 0x5C441400, // 00C8 MOVE R17 R10 - 0x7C300A00, // 00C9 CALL R12 5 - 0x58340013, // 00CA LDCONST R13 K19 - 0x7C2C0400, // 00CB CALL R11 2 - 0x7002002C, // 00CC JMP #00FA - 0x88280500, // 00CD GETMBR R10 R2 K0 - 0x4C2C0000, // 00CE LDNIL R11 - 0x2028140B, // 00CF NE R10 R10 R11 - 0x782A0019, // 00D0 JMPF R10 #00EB - 0x88280500, // 00D1 GETMBR R10 R2 K0 - 0xB82E0200, // 00D2 GETNGBL R11 K1 - 0x882C1706, // 00D3 GETMBR R11 R11 K6 - 0x1C28140B, // 00D4 EQ R10 R10 R11 - 0x782A0001, // 00D5 JMPF R10 #00D8 - 0x58280006, // 00D6 LDCONST R10 K6 - 0x70020000, // 00D7 JMP #00D9 - 0x58280032, // 00D8 LDCONST R10 K50 - 0xB82E4A00, // 00D9 GETNGBL R11 K37 - 0x8C2C1726, // 00DA GETMET R11 R11 K38 - 0x58340013, // 00DB LDCONST R13 K19 - 0x7C2C0400, // 00DC CALL R11 2 - 0x782E000B, // 00DD JMPF R11 #00EA - 0xB82E1600, // 00DE GETNGBL R11 K11 - 0x60300018, // 00DF GETGBL R12 G24 - 0x58340035, // 00E0 LDCONST R13 K53 - 0x88380308, // 00E1 GETMBR R14 R1 K8 - 0x88381D1F, // 00E2 GETMBR R14 R14 K31 - 0x5C3C0400, // 00E3 MOVE R15 R2 - 0x5C401200, // 00E4 MOVE R16 R9 - 0x88440500, // 00E5 GETMBR R17 R2 K0 - 0x5C481400, // 00E6 MOVE R18 R10 - 0x7C300C00, // 00E7 CALL R12 6 - 0x58340013, // 00E8 LDCONST R13 K19 - 0x7C2C0400, // 00E9 CALL R11 2 - 0x7002000E, // 00EA JMP #00FA - 0xB82A4A00, // 00EB GETNGBL R10 K37 - 0x8C281526, // 00EC GETMET R10 R10 K38 - 0x58300013, // 00ED LDCONST R12 K19 - 0x7C280400, // 00EE CALL R10 2 - 0x782A0009, // 00EF JMPF R10 #00FA - 0xB82A1600, // 00F0 GETNGBL R10 K11 - 0x602C0018, // 00F1 GETGBL R11 G24 - 0x58300036, // 00F2 LDCONST R12 K54 - 0x88340308, // 00F3 GETMBR R13 R1 K8 - 0x88341B1F, // 00F4 GETMBR R13 R13 K31 - 0x5C380400, // 00F5 MOVE R14 R2 - 0x5C3C1200, // 00F6 MOVE R15 R9 - 0x7C2C0800, // 00F7 CALL R11 4 - 0x58300013, // 00F8 LDCONST R12 K19 - 0x7C280400, // 00F9 CALL R10 2 - 0x50280200, // 00FA LDBOOL R10 1 0 - 0x80041400, // 00FB RET 1 R10 + 0x4C180000, // 0016 LDNIL R6 + 0x20180806, // 0017 NE R6 R4 R6 + 0x781A0036, // 0018 JMPF R6 #0050 + 0x8818090A, // 0019 GETMBR R6 R4 K10 + 0x741A0001, // 001A JMPT R6 #001D + 0x8818090B, // 001B GETMBR R6 R4 K11 + 0x781A0018, // 001C JMPF R6 #0036 + 0x8C18090C, // 001D GETMET R6 R4 K12 + 0x7C180200, // 001E CALL R6 1 + 0xB81E0200, // 001F GETNGBL R7 K1 + 0x881C0F0D, // 0020 GETMBR R7 R7 K13 + 0x881C0F0E, // 0021 GETMBR R7 R7 K14 + 0x24180C07, // 0022 GT R6 R6 R7 + 0x781A0011, // 0023 JMPF R6 #0036 + 0x4C100000, // 0024 LDNIL R4 + 0xB81A1E00, // 0025 GETNGBL R6 K15 + 0x601C0018, // 0026 GETGBL R7 G24 + 0x58200010, // 0027 LDCONST R8 K16 + 0x7C1C0200, // 0028 CALL R7 1 + 0x58200011, // 0029 LDCONST R8 K17 + 0x7C180400, // 002A CALL R6 2 + 0xB81A0200, // 002B GETNGBL R6 K1 + 0x88180D12, // 002C GETMBR R6 R6 K18 + 0x8C180D13, // 002D GETMET R6 R6 K19 + 0x88200314, // 002E GETMBR R8 R1 K20 + 0x88240315, // 002F GETMBR R9 R1 K21 + 0x7C180600, // 0030 CALL R6 3 + 0x8C1C0116, // 0031 GETMET R7 R0 K22 + 0x5C240200, // 0032 MOVE R9 R1 + 0x5C280C00, // 0033 MOVE R10 R6 + 0x7C1C0600, // 0034 CALL R7 3 + 0x80040E00, // 0035 RET 1 R7 + 0x60180015, // 0036 GETGBL R6 G21 + 0x541E002F, // 0037 LDINT R7 48 + 0x7C180200, // 0038 CALL R6 1 + 0x5C140C00, // 0039 MOVE R5 R6 + 0x8C180B17, // 003A GETMET R6 R5 K23 + 0x54220014, // 003B LDINT R8 21 + 0x58240018, // 003C LDCONST R9 K24 + 0x7C180600, // 003D CALL R6 3 + 0x8C180B17, // 003E GETMET R6 R5 K23 + 0x54223600, // 003F LDINT R8 13825 + 0x5425FFFD, // 0040 LDINT R9 -2 + 0x7C180600, // 0041 CALL R6 3 + 0x8C180119, // 0042 GETMET R6 R0 K25 + 0x5C200A00, // 0043 MOVE R8 R5 + 0x5C240400, // 0044 MOVE R9 R2 + 0x5C280800, // 0045 MOVE R10 R4 + 0x7C180800, // 0046 CALL R6 4 + 0x8C180B17, // 0047 GETMET R6 R5 K23 + 0x5820001A, // 0048 LDCONST R8 K26 + 0x5425FFFB, // 0049 LDINT R9 -4 + 0x7C180600, // 004A CALL R6 3 + 0x8C180B17, // 004B GETMET R6 R5 K23 + 0x54220017, // 004C LDINT R8 24 + 0x58240018, // 004D LDCONST R9 K24 + 0x7C180600, // 004E CALL R6 3 + 0x70020028, // 004F JMP #0079 + 0x88180500, // 0050 GETMBR R6 R2 K0 + 0x4C1C0000, // 0051 LDNIL R7 + 0x20180C07, // 0052 NE R6 R6 R7 + 0x781A0019, // 0053 JMPF R6 #006E + 0x60180015, // 0054 GETGBL R6 G21 + 0x541E002F, // 0055 LDINT R7 48 + 0x7C180200, // 0056 CALL R6 1 + 0x5C140C00, // 0057 MOVE R5 R6 + 0x8C180B17, // 0058 GETMET R6 R5 K23 + 0x54220014, // 0059 LDINT R8 21 + 0x58240018, // 005A LDCONST R9 K24 + 0x7C180600, // 005B CALL R6 3 + 0x8C180B17, // 005C GETMET R6 R5 K23 + 0x54223600, // 005D LDINT R8 13825 + 0x5425FFFD, // 005E LDINT R9 -2 + 0x7C180600, // 005F CALL R6 3 + 0x8C18011B, // 0060 GETMET R6 R0 K27 + 0x5C200A00, // 0061 MOVE R8 R5 + 0x5C240400, // 0062 MOVE R9 R2 + 0x88280500, // 0063 GETMBR R10 R2 K0 + 0x7C180800, // 0064 CALL R6 4 + 0x8C180B17, // 0065 GETMET R6 R5 K23 + 0x5820001A, // 0066 LDCONST R8 K26 + 0x5425FFFB, // 0067 LDINT R9 -4 + 0x7C180600, // 0068 CALL R6 3 + 0x8C180B17, // 0069 GETMET R6 R5 K23 + 0x54220017, // 006A LDINT R8 24 + 0x58240018, // 006B LDCONST R9 K24 + 0x7C180600, // 006C CALL R6 3 + 0x7002000A, // 006D JMP #0079 + 0xB81A1E00, // 006E GETNGBL R6 K15 + 0x601C0018, // 006F GETGBL R7 G24 + 0x5820001C, // 0070 LDCONST R8 K28 + 0x88240308, // 0071 GETMBR R9 R1 K8 + 0x8824131D, // 0072 GETMBR R9 R9 K29 + 0x5C280400, // 0073 MOVE R10 R2 + 0x7C1C0600, // 0074 CALL R7 3 + 0x58200011, // 0075 LDCONST R8 K17 + 0x7C180400, // 0076 CALL R6 2 + 0x50180000, // 0077 LDBOOL R6 0 0 + 0x80040C00, // 0078 RET 1 R6 + 0x8C18031E, // 0079 GETMET R6 R1 K30 + 0x54220004, // 007A LDINT R8 5 + 0x50240200, // 007B LDBOOL R9 1 0 + 0x7C180600, // 007C CALL R6 3 + 0x881C0104, // 007D GETMBR R7 R0 K4 + 0x881C0F1F, // 007E GETMBR R7 R7 K31 + 0x88200314, // 007F GETMBR R8 R1 K20 + 0x8C241120, // 0080 GETMET R9 R8 K32 + 0x7C240200, // 0081 CALL R9 1 + 0x8C240D21, // 0082 GETMET R9 R6 K33 + 0x5C2C0A00, // 0083 MOVE R11 R5 + 0x5C301000, // 0084 MOVE R12 R8 + 0x7C240600, // 0085 CALL R9 3 + 0x8C240D22, // 0086 GETMET R9 R6 K34 + 0x7C240200, // 0087 CALL R9 1 + 0xB8264600, // 0088 GETNGBL R9 K35 + 0x8C241324, // 0089 GETMET R9 R9 K36 + 0x542E0003, // 008A LDINT R11 4 + 0x7C240400, // 008B CALL R9 2 + 0x7826000A, // 008C JMPF R9 #0098 + 0xB8261E00, // 008D GETNGBL R9 K15 + 0x60280018, // 008E GETGBL R10 G24 + 0x582C0025, // 008F LDCONST R11 K37 + 0x88300D08, // 0090 GETMBR R12 R6 K8 + 0x8830191D, // 0091 GETMBR R12 R12 K29 + 0x88340D26, // 0092 GETMBR R13 R6 K38 + 0x88380D27, // 0093 GETMBR R14 R6 K39 + 0x883C0D28, // 0094 GETMBR R15 R6 K40 + 0x7C280A00, // 0095 CALL R10 5 + 0x542E0003, // 0096 LDINT R11 4 + 0x7C240400, // 0097 CALL R9 2 + 0x8C240F29, // 0098 GETMET R9 R7 K41 + 0x5C2C0C00, // 0099 MOVE R11 R6 + 0x7C240400, // 009A CALL R9 2 + 0x4C240000, // 009B LDNIL R9 + 0xB82A4600, // 009C GETNGBL R10 K35 + 0x8C281524, // 009D GETMET R10 R10 K36 + 0x58300011, // 009E LDCONST R12 K17 + 0x7C280400, // 009F CALL R10 2 + 0x782A000B, // 00A0 JMPF R10 #00AD + 0xB82A0200, // 00A1 GETNGBL R10 K1 + 0x8C28152A, // 00A2 GETMET R10 R10 K42 + 0x8830052B, // 00A3 GETMBR R12 R2 K43 + 0x8834052C, // 00A4 GETMBR R13 R2 K44 + 0x7C280600, // 00A5 CALL R10 3 + 0x5C241400, // 00A6 MOVE R9 R10 + 0x78260002, // 00A7 JMPF R9 #00AB + 0x002A5A09, // 00A8 ADD R10 K45 R9 + 0x0028152E, // 00A9 ADD R10 R10 K46 + 0x70020000, // 00AA JMP #00AC + 0x5828002F, // 00AB LDCONST R10 K47 + 0x5C241400, // 00AC MOVE R9 R10 + 0x4C280000, // 00AD LDNIL R10 + 0x2028080A, // 00AE NE R10 R4 R10 + 0x782A0012, // 00AF JMPF R10 #00C3 + 0xB82A4600, // 00B0 GETNGBL R10 K35 + 0x8C281524, // 00B1 GETMET R10 R10 K36 + 0x58300011, // 00B2 LDCONST R12 K17 + 0x7C280400, // 00B3 CALL R10 2 + 0x782A000C, // 00B4 JMPF R10 #00C2 + 0x8C280930, // 00B5 GETMET R10 R4 K48 + 0x7C280200, // 00B6 CALL R10 1 + 0xB82E1E00, // 00B7 GETNGBL R11 K15 + 0x60300018, // 00B8 GETGBL R12 G24 + 0x58340031, // 00B9 LDCONST R13 K49 + 0x88380308, // 00BA GETMBR R14 R1 K8 + 0x88381D1D, // 00BB GETMBR R14 R14 K29 + 0x5C3C0400, // 00BC MOVE R15 R2 + 0x5C401200, // 00BD MOVE R16 R9 + 0x5C441400, // 00BE MOVE R17 R10 + 0x7C300A00, // 00BF CALL R12 5 + 0x58340011, // 00C0 LDCONST R13 K17 + 0x7C2C0400, // 00C1 CALL R11 2 + 0x7002002C, // 00C2 JMP #00F0 + 0x88280500, // 00C3 GETMBR R10 R2 K0 + 0x4C2C0000, // 00C4 LDNIL R11 + 0x2028140B, // 00C5 NE R10 R10 R11 + 0x782A0019, // 00C6 JMPF R10 #00E1 + 0x88280500, // 00C7 GETMBR R10 R2 K0 + 0xB82E0200, // 00C8 GETNGBL R11 K1 + 0x882C1706, // 00C9 GETMBR R11 R11 K6 + 0x1C28140B, // 00CA EQ R10 R10 R11 + 0x782A0001, // 00CB JMPF R10 #00CE + 0x58280006, // 00CC LDCONST R10 K6 + 0x70020000, // 00CD JMP #00CF + 0x5828002F, // 00CE LDCONST R10 K47 + 0xB82E4600, // 00CF GETNGBL R11 K35 + 0x8C2C1724, // 00D0 GETMET R11 R11 K36 + 0x58340011, // 00D1 LDCONST R13 K17 + 0x7C2C0400, // 00D2 CALL R11 2 + 0x782E000B, // 00D3 JMPF R11 #00E0 + 0xB82E1E00, // 00D4 GETNGBL R11 K15 + 0x60300018, // 00D5 GETGBL R12 G24 + 0x58340032, // 00D6 LDCONST R13 K50 + 0x88380308, // 00D7 GETMBR R14 R1 K8 + 0x88381D1D, // 00D8 GETMBR R14 R14 K29 + 0x5C3C0400, // 00D9 MOVE R15 R2 + 0x5C401200, // 00DA MOVE R16 R9 + 0x88440500, // 00DB GETMBR R17 R2 K0 + 0x5C481400, // 00DC MOVE R18 R10 + 0x7C300C00, // 00DD CALL R12 6 + 0x58340011, // 00DE LDCONST R13 K17 + 0x7C2C0400, // 00DF CALL R11 2 + 0x7002000E, // 00E0 JMP #00F0 + 0xB82A4600, // 00E1 GETNGBL R10 K35 + 0x8C281524, // 00E2 GETMET R10 R10 K36 + 0x58300011, // 00E3 LDCONST R12 K17 + 0x7C280400, // 00E4 CALL R10 2 + 0x782A0009, // 00E5 JMPF R10 #00F0 + 0xB82A1E00, // 00E6 GETNGBL R10 K15 + 0x602C0018, // 00E7 GETGBL R11 G24 + 0x58300033, // 00E8 LDCONST R12 K51 + 0x88340308, // 00E9 GETMBR R13 R1 K8 + 0x88341B1D, // 00EA GETMBR R13 R13 K29 + 0x5C380400, // 00EB MOVE R14 R2 + 0x5C3C1200, // 00EC MOVE R15 R9 + 0x7C2C0800, // 00ED CALL R11 4 + 0x58300011, // 00EE LDCONST R12 K17 + 0x7C280400, // 00EF CALL R10 2 + 0x50280200, // 00F0 LDBOOL R10 1 0 + 0x80041400, // 00F1 RET 1 R10 }) ) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_MessageHandler.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_MessageHandler.h index 80fbe0851..1d809134a 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_MessageHandler.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_MessageHandler.h @@ -147,435 +147,410 @@ be_local_closure(class_Matter_MessageHandler_msg_received, /* name */ 0, /* has sup protos */ &be_class_Matter_MessageHandler, 1, /* has constants */ - ( &(const bvalue[70]) { /* constants */ + ( &(const bvalue[65]) { /* constants */ /* K0 */ be_nested_str_weak(matter), - /* K1 */ be_nested_str_weak(profiler), - /* K2 */ be_nested_str_weak(log), - /* K3 */ be_nested_str_weak(msg_received), - /* K4 */ be_nested_str_weak(Frame), - /* K5 */ be_nested_str_weak(decode_header), - /* K6 */ be_nested_str_weak(sec_p), - /* K7 */ be_nested_str_weak(device), - /* K8 */ be_nested_str_weak(sessions), - /* K9 */ be_nested_str_weak(find_session_source_id_unsecure), - /* K10 */ be_nested_str_weak(source_node_id), - /* K11 */ be_nested_str_weak(control_message), - /* K12 */ be_nested_str_weak(process_incoming_control_message), - /* K13 */ be_nested_str_weak(local_session_id), - /* K14 */ be_const_int(0), - /* K15 */ be_nested_str_weak(sec_sesstype), - /* K16 */ be_nested_str_weak(_ip), - /* K17 */ be_nested_str_weak(_port), - /* K18 */ be_nested_str_weak(_message_handler), - /* K19 */ be_nested_str_weak(session), - /* K20 */ be_nested_str_weak(_counter_insecure_rcv), - /* K21 */ be_nested_str_weak(validate), - /* K22 */ be_nested_str_weak(message_counter), - /* K23 */ be_nested_str_weak(tasmota), - /* K24 */ be_nested_str_weak(loglevel), - /* K25 */ be_nested_str_weak(MTR_X3A_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Duplicate_X20unencrypted_X20message_X20_X3D_X20_X25i_X20ref_X20_X3D_X20_X25i), - /* K26 */ be_nested_str_weak(val), - /* K27 */ be_nested_str_weak(send_simple_ack), - /* K28 */ be_nested_str_weak(decode_payload), - /* K29 */ be_nested_str_weak(received_ack), - /* K30 */ be_nested_str_weak(opcode), - /* K31 */ be_nested_str_weak(get_opcode_name), - /* K32 */ be_nested_str_weak(0x_X2502X), - /* K33 */ be_const_int(3), - /* K34 */ be_nested_str_weak(MTR_X3A_X20_X3EReceived_X20_X20_X28_X256i_X29_X20_X25s_X20from_X20_X5B_X25s_X5D_X3A_X25i), - /* K35 */ be_nested_str_weak(MTR_X3A_X20_X3Ercv_X20Ack_X20_X20_X20_X28_X256i_X29_X20rid_X3D_X25i_X20exch_X3D_X25i_X20ack_X3D_X25s_X20_X25sfrom_X20_X5B_X25s_X5D_X3A_X25i), - /* K36 */ be_nested_str_weak(x_flag_r), - /* K37 */ be_nested_str_weak(_X7Breliable_X7D_X20), - /* K38 */ be_nested_str_weak(), - /* K39 */ be_nested_str_weak(exchange_id), - /* K40 */ be_nested_str_weak(ack_message_counter), - /* K41 */ be_nested_str_weak(commissioning), - /* K42 */ be_nested_str_weak(process_incoming), - /* K43 */ be_nested_str_weak(MTR_X3A_X20decode_X20header_X3A_X20local_session_id_X3D_X25i_X20message_counter_X3D_X25i), - /* K44 */ be_nested_str_weak(get_session_by_local_session_id), - /* K45 */ be_nested_str_weak(MTR_X3A_X20unknown_X20local_session_id_X3D), - /* K46 */ be_nested_str_weak(counter_rcv_validate), - /* K47 */ be_nested_str_weak(MTR_X3A_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Duplicate_X20encrypted_X20message_X20_X3D_X20), - /* K48 */ be_nested_str_weak(_X20counter_X3D), - /* K49 */ be_nested_str_weak(counter_rcv), - /* K50 */ be_nested_str_weak(send_encrypted_ack), - /* K51 */ be_nested_str_weak(decrypt), - /* K52 */ be_nested_str_weak(msg_received_header_frame_decrypted), - /* K53 */ be_nested_str_weak(MTR_X3A_X20_X3E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Decrypted_X20message_X3A_X20protocol_id_X3A), - /* K54 */ be_nested_str_weak(protocol_id), - /* K55 */ be_nested_str_weak(_X20opcode_X3D), - /* K56 */ be_nested_str_weak(_X20exchange_id_X3D), - /* K57 */ be_nested_str_weak(im), - /* K58 */ be_nested_str_weak(process_incoming_ack), - /* K59 */ be_nested_str_weak(send_enqueued), - /* K60 */ be_const_int(1), - /* K61 */ be_nested_str_weak(process_IM_start), - /* K62 */ be_nested_str_weak(process_IM_end), - /* K63 */ be_nested_str_weak(MTR_X3A_X20ignoring_X20unhandled_X20protocol_id_X3A), - /* K64 */ be_nested_str_weak(MTR_X3A_X20MessageHandler_X3A_X3Amsg_received_X20exception_X3A_X20), - /* K65 */ be_nested_str_weak(_X3B), - /* K66 */ be_const_int(2), - /* K67 */ be_nested_str_weak(_debug_present), - /* K68 */ be_nested_str_weak(debug), - /* K69 */ be_nested_str_weak(traceback), + /* K1 */ be_nested_str_weak(Frame), + /* K2 */ be_nested_str_weak(decode_header), + /* K3 */ be_nested_str_weak(sec_p), + /* K4 */ be_nested_str_weak(device), + /* K5 */ be_nested_str_weak(sessions), + /* K6 */ be_nested_str_weak(find_session_source_id_unsecure), + /* K7 */ be_nested_str_weak(source_node_id), + /* K8 */ be_nested_str_weak(control_message), + /* K9 */ be_nested_str_weak(process_incoming_control_message), + /* K10 */ be_nested_str_weak(local_session_id), + /* K11 */ be_const_int(0), + /* K12 */ be_nested_str_weak(sec_sesstype), + /* K13 */ be_nested_str_weak(_ip), + /* K14 */ be_nested_str_weak(_port), + /* K15 */ be_nested_str_weak(_message_handler), + /* K16 */ be_nested_str_weak(session), + /* K17 */ be_nested_str_weak(_counter_insecure_rcv), + /* K18 */ be_nested_str_weak(validate), + /* K19 */ be_nested_str_weak(message_counter), + /* K20 */ be_nested_str_weak(tasmota), + /* K21 */ be_nested_str_weak(loglevel), + /* K22 */ be_nested_str_weak(log), + /* K23 */ be_nested_str_weak(MTR_X3A_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Duplicate_X20unencrypted_X20message_X20_X3D_X20_X25i_X20ref_X20_X3D_X20_X25i), + /* K24 */ be_nested_str_weak(val), + /* K25 */ be_nested_str_weak(send_simple_ack), + /* K26 */ be_nested_str_weak(decode_payload), + /* K27 */ be_nested_str_weak(received_ack), + /* K28 */ be_nested_str_weak(opcode), + /* K29 */ be_nested_str_weak(get_opcode_name), + /* K30 */ be_nested_str_weak(0x_X2502X), + /* K31 */ be_const_int(3), + /* K32 */ be_nested_str_weak(MTR_X3A_X20_X3EReceived_X20_X20_X28_X256i_X29_X20_X25s_X20from_X20_X5B_X25s_X5D_X3A_X25i), + /* K33 */ be_nested_str_weak(MTR_X3A_X20_X3Ercv_X20Ack_X20_X20_X20_X28_X256i_X29_X20rid_X3D_X25i_X20exch_X3D_X25i_X20ack_X3D_X25s_X20_X25sfrom_X20_X5B_X25s_X5D_X3A_X25i), + /* K34 */ be_nested_str_weak(x_flag_r), + /* K35 */ be_nested_str_weak(_X7Breliable_X7D_X20), + /* K36 */ be_nested_str_weak(), + /* K37 */ be_nested_str_weak(exchange_id), + /* K38 */ be_nested_str_weak(ack_message_counter), + /* K39 */ be_nested_str_weak(commissioning), + /* K40 */ be_nested_str_weak(process_incoming), + /* K41 */ be_nested_str_weak(MTR_X3A_X20decode_X20header_X3A_X20local_session_id_X3D_X25i_X20message_counter_X3D_X25i), + /* K42 */ be_nested_str_weak(get_session_by_local_session_id), + /* K43 */ be_nested_str_weak(MTR_X3A_X20unknown_X20local_session_id_X3D), + /* K44 */ be_nested_str_weak(counter_rcv_validate), + /* K45 */ be_nested_str_weak(MTR_X3A_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Duplicate_X20encrypted_X20message_X20_X3D_X20), + /* K46 */ be_nested_str_weak(_X20counter_X3D), + /* K47 */ be_nested_str_weak(counter_rcv), + /* K48 */ be_nested_str_weak(send_encrypted_ack), + /* K49 */ be_nested_str_weak(decrypt), + /* K50 */ be_nested_str_weak(MTR_X3A_X20_X3E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Decrypted_X20message_X3A_X20protocol_id_X3A), + /* K51 */ be_nested_str_weak(protocol_id), + /* K52 */ be_nested_str_weak(_X20opcode_X3D), + /* K53 */ be_nested_str_weak(_X20exchange_id_X3D), + /* K54 */ be_nested_str_weak(im), + /* K55 */ be_nested_str_weak(process_incoming_ack), + /* K56 */ be_nested_str_weak(send_enqueued), + /* K57 */ be_const_int(1), + /* K58 */ be_nested_str_weak(MTR_X3A_X20ignoring_X20unhandled_X20protocol_id_X3A), + /* K59 */ be_nested_str_weak(MTR_X3A_X20MessageHandler_X3A_X3Amsg_received_X20exception_X3A_X20), + /* K60 */ be_nested_str_weak(_X3B), + /* K61 */ be_const_int(2), + /* K62 */ be_nested_str_weak(_debug_present), + /* K63 */ be_nested_str_weak(debug), + /* K64 */ be_nested_str_weak(traceback), }), be_str_weak(msg_received), &be_const_str_solidified, - ( &(const binstruction[354]) { /* code */ + ( &(const binstruction[334]) { /* code */ 0x50100000, // 0000 LDBOOL R4 0 0 - 0xB8160000, // 0001 GETNGBL R5 K0 - 0x88140B01, // 0002 GETMBR R5 R5 K1 - 0x8C140B02, // 0003 GETMET R5 R5 K2 - 0x581C0003, // 0004 LDCONST R7 K3 - 0x7C140400, // 0005 CALL R5 2 - 0xA8020141, // 0006 EXBLK 0 #0149 - 0xB8160000, // 0007 GETNGBL R5 K0 - 0x8C140B04, // 0008 GETMET R5 R5 K4 - 0x5C1C0000, // 0009 MOVE R7 R0 - 0x5C200200, // 000A MOVE R8 R1 - 0x5C240400, // 000B MOVE R9 R2 - 0x5C280600, // 000C MOVE R10 R3 - 0x7C140A00, // 000D CALL R5 5 - 0x8C180B05, // 000E GETMET R6 R5 K5 - 0x7C180200, // 000F CALL R6 1 - 0x5C1C0C00, // 0010 MOVE R7 R6 - 0x741E0002, // 0011 JMPT R7 #0015 - 0x501C0000, // 0012 LDBOOL R7 0 0 - 0xA8040001, // 0013 EXBLK 1 1 - 0x80040E00, // 0014 RET 1 R7 - 0x881C0B06, // 0015 GETMBR R7 R5 K6 - 0x781E000C, // 0016 JMPF R7 #0024 - 0x881C0107, // 0017 GETMBR R7 R0 K7 - 0x881C0F08, // 0018 GETMBR R7 R7 K8 - 0x8C1C0F09, // 0019 GETMET R7 R7 K9 - 0x88240B0A, // 001A GETMBR R9 R5 K10 - 0x542A0059, // 001B LDINT R10 90 - 0x7C1C0600, // 001C CALL R7 3 - 0x8820010B, // 001D GETMBR R8 R0 K11 - 0x8C20110C, // 001E GETMET R8 R8 K12 - 0x5C280A00, // 001F MOVE R10 R5 - 0x7C200400, // 0020 CALL R8 2 - 0xA8040001, // 0021 EXBLK 1 1 - 0x80041000, // 0022 RET 1 R8 - 0x70020120, // 0023 JMP #0145 - 0x881C0B0D, // 0024 GETMBR R7 R5 K13 - 0x1C1C0F0E, // 0025 EQ R7 R7 K14 - 0x781E007A, // 0026 JMPF R7 #00A2 - 0x881C0B0F, // 0027 GETMBR R7 R5 K15 - 0x1C1C0F0E, // 0028 EQ R7 R7 K14 - 0x781E0077, // 0029 JMPF R7 #00A2 - 0x881C0107, // 002A GETMBR R7 R0 K7 - 0x881C0F08, // 002B GETMBR R7 R7 K8 - 0x8C1C0F09, // 002C GETMET R7 R7 K9 - 0x88240B0A, // 002D GETMBR R9 R5 K10 - 0x542A0059, // 002E LDINT R10 90 - 0x7C1C0600, // 002F CALL R7 3 - 0x780A0000, // 0030 JMPF R2 #0032 - 0x901E2002, // 0031 SETMBR R7 K16 R2 - 0x780E0000, // 0032 JMPF R3 #0034 - 0x901E2203, // 0033 SETMBR R7 K17 R3 - 0x901E2400, // 0034 SETMBR R7 K18 R0 - 0x90162607, // 0035 SETMBR R5 K19 R7 - 0x88200F14, // 0036 GETMBR R8 R7 K20 - 0x8C201115, // 0037 GETMET R8 R8 K21 - 0x88280B16, // 0038 GETMBR R10 R5 K22 - 0x502C0000, // 0039 LDBOOL R11 0 0 - 0x7C200600, // 003A CALL R8 3 - 0x74220015, // 003B JMPT R8 #0052 - 0xB8222E00, // 003C GETNGBL R8 K23 - 0x8C201118, // 003D GETMET R8 R8 K24 - 0x542A0003, // 003E LDINT R10 4 - 0x7C200400, // 003F CALL R8 2 - 0x78220009, // 0040 JMPF R8 #004B - 0xB8220400, // 0041 GETNGBL R8 K2 - 0x60240018, // 0042 GETGBL R9 G24 - 0x58280019, // 0043 LDCONST R10 K25 - 0x882C0B16, // 0044 GETMBR R11 R5 K22 - 0x88300F14, // 0045 GETMBR R12 R7 K20 - 0x8C30191A, // 0046 GETMET R12 R12 K26 - 0x7C300200, // 0047 CALL R12 1 - 0x7C240600, // 0048 CALL R9 3 - 0x542A0003, // 0049 LDINT R10 4 - 0x7C200400, // 004A CALL R8 2 - 0x8C20011B, // 004B GETMET R8 R0 K27 - 0x5C280A00, // 004C MOVE R10 R5 - 0x502C0000, // 004D LDBOOL R11 0 0 - 0x7C200600, // 004E CALL R8 3 - 0x50200000, // 004F LDBOOL R8 0 0 - 0xA8040001, // 0050 EXBLK 1 1 - 0x80041000, // 0051 RET 1 R8 - 0x8C200B1C, // 0052 GETMET R8 R5 K28 - 0x7C200200, // 0053 CALL R8 1 - 0x74220002, // 0054 JMPT R8 #0058 - 0x50200000, // 0055 LDBOOL R8 0 0 - 0xA8040001, // 0056 EXBLK 1 1 - 0x80041000, // 0057 RET 1 R8 - 0x88200107, // 0058 GETMBR R8 R0 K7 - 0x8C20111D, // 0059 GETMET R8 R8 K29 - 0x5C280A00, // 005A MOVE R10 R5 - 0x7C200400, // 005B CALL R8 2 - 0x88200B1E, // 005C GETMBR R8 R5 K30 - 0x5426000F, // 005D LDINT R9 16 - 0x20201009, // 005E NE R8 R8 R9 - 0x7822001A, // 005F JMPF R8 #007B - 0xB8220000, // 0060 GETNGBL R8 K0 - 0x8C20111F, // 0061 GETMET R8 R8 K31 - 0x88280B1E, // 0062 GETMBR R10 R5 K30 - 0x7C200400, // 0063 CALL R8 2 - 0x5C241000, // 0064 MOVE R9 R8 - 0x74260004, // 0065 JMPT R9 #006B - 0x60240018, // 0066 GETGBL R9 G24 - 0x58280020, // 0067 LDCONST R10 K32 - 0x882C0B1E, // 0068 GETMBR R11 R5 K30 + 0xA8020132, // 0001 EXBLK 0 #0135 + 0xB8160000, // 0002 GETNGBL R5 K0 + 0x8C140B01, // 0003 GETMET R5 R5 K1 + 0x5C1C0000, // 0004 MOVE R7 R0 + 0x5C200200, // 0005 MOVE R8 R1 + 0x5C240400, // 0006 MOVE R9 R2 + 0x5C280600, // 0007 MOVE R10 R3 + 0x7C140A00, // 0008 CALL R5 5 + 0x8C180B02, // 0009 GETMET R6 R5 K2 + 0x7C180200, // 000A CALL R6 1 + 0x5C1C0C00, // 000B MOVE R7 R6 + 0x741E0002, // 000C JMPT R7 #0010 + 0x501C0000, // 000D LDBOOL R7 0 0 + 0xA8040001, // 000E EXBLK 1 1 + 0x80040E00, // 000F RET 1 R7 + 0x881C0B03, // 0010 GETMBR R7 R5 K3 + 0x781E000C, // 0011 JMPF R7 #001F + 0x881C0104, // 0012 GETMBR R7 R0 K4 + 0x881C0F05, // 0013 GETMBR R7 R7 K5 + 0x8C1C0F06, // 0014 GETMET R7 R7 K6 + 0x88240B07, // 0015 GETMBR R9 R5 K7 + 0x542A0059, // 0016 LDINT R10 90 + 0x7C1C0600, // 0017 CALL R7 3 + 0x88200108, // 0018 GETMBR R8 R0 K8 + 0x8C201109, // 0019 GETMET R8 R8 K9 + 0x5C280A00, // 001A MOVE R10 R5 + 0x7C200400, // 001B CALL R8 2 + 0xA8040001, // 001C EXBLK 1 1 + 0x80041000, // 001D RET 1 R8 + 0x70020111, // 001E JMP #0131 + 0x881C0B0A, // 001F GETMBR R7 R5 K10 + 0x1C1C0F0B, // 0020 EQ R7 R7 K11 + 0x781E007A, // 0021 JMPF R7 #009D + 0x881C0B0C, // 0022 GETMBR R7 R5 K12 + 0x1C1C0F0B, // 0023 EQ R7 R7 K11 + 0x781E0077, // 0024 JMPF R7 #009D + 0x881C0104, // 0025 GETMBR R7 R0 K4 + 0x881C0F05, // 0026 GETMBR R7 R7 K5 + 0x8C1C0F06, // 0027 GETMET R7 R7 K6 + 0x88240B07, // 0028 GETMBR R9 R5 K7 + 0x542A0059, // 0029 LDINT R10 90 + 0x7C1C0600, // 002A CALL R7 3 + 0x780A0000, // 002B JMPF R2 #002D + 0x901E1A02, // 002C SETMBR R7 K13 R2 + 0x780E0000, // 002D JMPF R3 #002F + 0x901E1C03, // 002E SETMBR R7 K14 R3 + 0x901E1E00, // 002F SETMBR R7 K15 R0 + 0x90162007, // 0030 SETMBR R5 K16 R7 + 0x88200F11, // 0031 GETMBR R8 R7 K17 + 0x8C201112, // 0032 GETMET R8 R8 K18 + 0x88280B13, // 0033 GETMBR R10 R5 K19 + 0x502C0000, // 0034 LDBOOL R11 0 0 + 0x7C200600, // 0035 CALL R8 3 + 0x74220015, // 0036 JMPT R8 #004D + 0xB8222800, // 0037 GETNGBL R8 K20 + 0x8C201115, // 0038 GETMET R8 R8 K21 + 0x542A0003, // 0039 LDINT R10 4 + 0x7C200400, // 003A CALL R8 2 + 0x78220009, // 003B JMPF R8 #0046 + 0xB8222C00, // 003C GETNGBL R8 K22 + 0x60240018, // 003D GETGBL R9 G24 + 0x58280017, // 003E LDCONST R10 K23 + 0x882C0B13, // 003F GETMBR R11 R5 K19 + 0x88300F11, // 0040 GETMBR R12 R7 K17 + 0x8C301918, // 0041 GETMET R12 R12 K24 + 0x7C300200, // 0042 CALL R12 1 + 0x7C240600, // 0043 CALL R9 3 + 0x542A0003, // 0044 LDINT R10 4 + 0x7C200400, // 0045 CALL R8 2 + 0x8C200119, // 0046 GETMET R8 R0 K25 + 0x5C280A00, // 0047 MOVE R10 R5 + 0x502C0000, // 0048 LDBOOL R11 0 0 + 0x7C200600, // 0049 CALL R8 3 + 0x50200000, // 004A LDBOOL R8 0 0 + 0xA8040001, // 004B EXBLK 1 1 + 0x80041000, // 004C RET 1 R8 + 0x8C200B1A, // 004D GETMET R8 R5 K26 + 0x7C200200, // 004E CALL R8 1 + 0x74220002, // 004F JMPT R8 #0053 + 0x50200000, // 0050 LDBOOL R8 0 0 + 0xA8040001, // 0051 EXBLK 1 1 + 0x80041000, // 0052 RET 1 R8 + 0x88200104, // 0053 GETMBR R8 R0 K4 + 0x8C20111B, // 0054 GETMET R8 R8 K27 + 0x5C280A00, // 0055 MOVE R10 R5 + 0x7C200400, // 0056 CALL R8 2 + 0x88200B1C, // 0057 GETMBR R8 R5 K28 + 0x5426000F, // 0058 LDINT R9 16 + 0x20201009, // 0059 NE R8 R8 R9 + 0x7822001A, // 005A JMPF R8 #0076 + 0xB8220000, // 005B GETNGBL R8 K0 + 0x8C20111D, // 005C GETMET R8 R8 K29 + 0x88280B1C, // 005D GETMBR R10 R5 K28 + 0x7C200400, // 005E CALL R8 2 + 0x5C241000, // 005F MOVE R9 R8 + 0x74260004, // 0060 JMPT R9 #0066 + 0x60240018, // 0061 GETGBL R9 G24 + 0x5828001E, // 0062 LDCONST R10 K30 + 0x882C0B1C, // 0063 GETMBR R11 R5 K28 + 0x7C240400, // 0064 CALL R9 2 + 0x5C201200, // 0065 MOVE R8 R9 + 0xB8262800, // 0066 GETNGBL R9 K20 + 0x8C241315, // 0067 GETMET R9 R9 K21 + 0x582C001F, // 0068 LDCONST R11 K31 0x7C240400, // 0069 CALL R9 2 - 0x5C201200, // 006A MOVE R8 R9 - 0xB8262E00, // 006B GETNGBL R9 K23 - 0x8C241318, // 006C GETMET R9 R9 K24 - 0x582C0021, // 006D LDCONST R11 K33 - 0x7C240400, // 006E CALL R9 2 - 0x78260009, // 006F JMPF R9 #007A - 0xB8260400, // 0070 GETNGBL R9 K2 - 0x60280018, // 0071 GETGBL R10 G24 - 0x582C0022, // 0072 LDCONST R11 K34 - 0x88300F0D, // 0073 GETMBR R12 R7 K13 - 0x5C341000, // 0074 MOVE R13 R8 - 0x5C380400, // 0075 MOVE R14 R2 - 0x5C3C0600, // 0076 MOVE R15 R3 - 0x7C280A00, // 0077 CALL R10 5 - 0x582C0021, // 0078 LDCONST R11 K33 - 0x7C240400, // 0079 CALL R9 2 - 0x70020017, // 007A JMP #0093 - 0xB8222E00, // 007B GETNGBL R8 K23 - 0x8C201118, // 007C GETMET R8 R8 K24 - 0x542A0003, // 007D LDINT R10 4 - 0x7C200400, // 007E CALL R8 2 - 0x78220012, // 007F JMPF R8 #0093 - 0xB8220400, // 0080 GETNGBL R8 K2 - 0x60240018, // 0081 GETGBL R9 G24 - 0x58280023, // 0082 LDCONST R10 K35 - 0x882C0F0D, // 0083 GETMBR R11 R7 K13 - 0x88300B16, // 0084 GETMBR R12 R5 K22 - 0x88340B24, // 0085 GETMBR R13 R5 K36 - 0x78360001, // 0086 JMPF R13 #0089 - 0x58340025, // 0087 LDCONST R13 K37 - 0x70020000, // 0088 JMP #008A - 0x58340026, // 0089 LDCONST R13 K38 - 0x88380B27, // 008A GETMBR R14 R5 K39 - 0x603C0008, // 008B GETGBL R15 G8 - 0x88400B28, // 008C GETMBR R16 R5 K40 - 0x7C3C0200, // 008D CALL R15 1 - 0x5C400400, // 008E MOVE R16 R2 - 0x5C440600, // 008F MOVE R17 R3 - 0x7C241000, // 0090 CALL R9 8 - 0x542A0003, // 0091 LDINT R10 4 - 0x7C200400, // 0092 CALL R8 2 - 0x88200129, // 0093 GETMBR R8 R0 K41 - 0x8C20112A, // 0094 GETMET R8 R8 K42 - 0x5C280A00, // 0095 MOVE R10 R5 - 0x7C200400, // 0096 CALL R8 2 - 0x5C101000, // 0097 MOVE R4 R8 - 0x5C200800, // 0098 MOVE R8 R4 - 0x74220003, // 0099 JMPT R8 #009E - 0x8C20011B, // 009A GETMET R8 R0 K27 - 0x5C280A00, // 009B MOVE R10 R5 - 0x502C0000, // 009C LDBOOL R11 0 0 - 0x7C200600, // 009D CALL R8 3 - 0x50200200, // 009E LDBOOL R8 1 0 - 0xA8040001, // 009F EXBLK 1 1 - 0x80041000, // 00A0 RET 1 R8 - 0x700200A2, // 00A1 JMP #0145 - 0xB81E2E00, // 00A2 GETNGBL R7 K23 - 0x8C1C0F18, // 00A3 GETMET R7 R7 K24 - 0x54260003, // 00A4 LDINT R9 4 - 0x7C1C0400, // 00A5 CALL R7 2 - 0x781E0007, // 00A6 JMPF R7 #00AF - 0xB81E0400, // 00A7 GETNGBL R7 K2 - 0x60200018, // 00A8 GETGBL R8 G24 - 0x5824002B, // 00A9 LDCONST R9 K43 - 0x88280B0D, // 00AA GETMBR R10 R5 K13 - 0x882C0B16, // 00AB GETMBR R11 R5 K22 - 0x7C200600, // 00AC CALL R8 3 - 0x54260003, // 00AD LDINT R9 4 + 0x78260009, // 006A JMPF R9 #0075 + 0xB8262C00, // 006B GETNGBL R9 K22 + 0x60280018, // 006C GETGBL R10 G24 + 0x582C0020, // 006D LDCONST R11 K32 + 0x88300F0A, // 006E GETMBR R12 R7 K10 + 0x5C341000, // 006F MOVE R13 R8 + 0x5C380400, // 0070 MOVE R14 R2 + 0x5C3C0600, // 0071 MOVE R15 R3 + 0x7C280A00, // 0072 CALL R10 5 + 0x582C001F, // 0073 LDCONST R11 K31 + 0x7C240400, // 0074 CALL R9 2 + 0x70020017, // 0075 JMP #008E + 0xB8222800, // 0076 GETNGBL R8 K20 + 0x8C201115, // 0077 GETMET R8 R8 K21 + 0x542A0003, // 0078 LDINT R10 4 + 0x7C200400, // 0079 CALL R8 2 + 0x78220012, // 007A JMPF R8 #008E + 0xB8222C00, // 007B GETNGBL R8 K22 + 0x60240018, // 007C GETGBL R9 G24 + 0x58280021, // 007D LDCONST R10 K33 + 0x882C0F0A, // 007E GETMBR R11 R7 K10 + 0x88300B13, // 007F GETMBR R12 R5 K19 + 0x88340B22, // 0080 GETMBR R13 R5 K34 + 0x78360001, // 0081 JMPF R13 #0084 + 0x58340023, // 0082 LDCONST R13 K35 + 0x70020000, // 0083 JMP #0085 + 0x58340024, // 0084 LDCONST R13 K36 + 0x88380B25, // 0085 GETMBR R14 R5 K37 + 0x603C0008, // 0086 GETGBL R15 G8 + 0x88400B26, // 0087 GETMBR R16 R5 K38 + 0x7C3C0200, // 0088 CALL R15 1 + 0x5C400400, // 0089 MOVE R16 R2 + 0x5C440600, // 008A MOVE R17 R3 + 0x7C241000, // 008B CALL R9 8 + 0x542A0003, // 008C LDINT R10 4 + 0x7C200400, // 008D CALL R8 2 + 0x88200127, // 008E GETMBR R8 R0 K39 + 0x8C201128, // 008F GETMET R8 R8 K40 + 0x5C280A00, // 0090 MOVE R10 R5 + 0x7C200400, // 0091 CALL R8 2 + 0x5C101000, // 0092 MOVE R4 R8 + 0x5C200800, // 0093 MOVE R8 R4 + 0x74220003, // 0094 JMPT R8 #0099 + 0x8C200119, // 0095 GETMET R8 R0 K25 + 0x5C280A00, // 0096 MOVE R10 R5 + 0x502C0000, // 0097 LDBOOL R11 0 0 + 0x7C200600, // 0098 CALL R8 3 + 0x50200200, // 0099 LDBOOL R8 1 0 + 0xA8040001, // 009A EXBLK 1 1 + 0x80041000, // 009B RET 1 R8 + 0x70020093, // 009C JMP #0131 + 0xB81E2800, // 009D GETNGBL R7 K20 + 0x8C1C0F15, // 009E GETMET R7 R7 K21 + 0x54260003, // 009F LDINT R9 4 + 0x7C1C0400, // 00A0 CALL R7 2 + 0x781E0007, // 00A1 JMPF R7 #00AA + 0xB81E2C00, // 00A2 GETNGBL R7 K22 + 0x60200018, // 00A3 GETGBL R8 G24 + 0x58240029, // 00A4 LDCONST R9 K41 + 0x88280B0A, // 00A5 GETMBR R10 R5 K10 + 0x882C0B13, // 00A6 GETMBR R11 R5 K19 + 0x7C200600, // 00A7 CALL R8 3 + 0x54260003, // 00A8 LDINT R9 4 + 0x7C1C0400, // 00A9 CALL R7 2 + 0x881C0104, // 00AA GETMBR R7 R0 K4 + 0x881C0F05, // 00AB GETMBR R7 R7 K5 + 0x8C1C0F2A, // 00AC GETMET R7 R7 K42 + 0x88240B0A, // 00AD GETMBR R9 R5 K10 0x7C1C0400, // 00AE CALL R7 2 - 0x881C0107, // 00AF GETMBR R7 R0 K7 - 0x881C0F08, // 00B0 GETMBR R7 R7 K8 - 0x8C1C0F2C, // 00B1 GETMET R7 R7 K44 - 0x88240B0D, // 00B2 GETMBR R9 R5 K13 - 0x7C1C0400, // 00B3 CALL R7 2 - 0x4C200000, // 00B4 LDNIL R8 - 0x1C200E08, // 00B5 EQ R8 R7 R8 - 0x78220009, // 00B6 JMPF R8 #00C1 - 0xB8220400, // 00B7 GETNGBL R8 K2 - 0x60240008, // 00B8 GETGBL R9 G8 - 0x88280B0D, // 00B9 GETMBR R10 R5 K13 - 0x7C240200, // 00BA CALL R9 1 - 0x00265A09, // 00BB ADD R9 K45 R9 - 0x58280021, // 00BC LDCONST R10 K33 - 0x7C200400, // 00BD CALL R8 2 - 0x50200000, // 00BE LDBOOL R8 0 0 - 0xA8040001, // 00BF EXBLK 1 1 - 0x80041000, // 00C0 RET 1 R8 - 0x780A0000, // 00C1 JMPF R2 #00C3 - 0x901E2002, // 00C2 SETMBR R7 K16 R2 - 0x780E0000, // 00C3 JMPF R3 #00C5 - 0x901E2203, // 00C4 SETMBR R7 K17 R3 - 0x901E2400, // 00C5 SETMBR R7 K18 R0 - 0x90162607, // 00C6 SETMBR R5 K19 R7 - 0x8C200F2E, // 00C7 GETMET R8 R7 K46 - 0x88280B16, // 00C8 GETMBR R10 R5 K22 - 0x502C0200, // 00C9 LDBOOL R11 1 0 - 0x7C200600, // 00CA CALL R8 3 - 0x74220017, // 00CB JMPT R8 #00E4 - 0xB8222E00, // 00CC GETNGBL R8 K23 - 0x8C201118, // 00CD GETMET R8 R8 K24 - 0x58280021, // 00CE LDCONST R10 K33 - 0x7C200400, // 00CF CALL R8 2 - 0x7822000B, // 00D0 JMPF R8 #00DD - 0xB8220400, // 00D1 GETNGBL R8 K2 - 0x60240008, // 00D2 GETGBL R9 G8 - 0x88280B16, // 00D3 GETMBR R10 R5 K22 - 0x7C240200, // 00D4 CALL R9 1 - 0x00265E09, // 00D5 ADD R9 K47 R9 - 0x00241330, // 00D6 ADD R9 R9 K48 - 0x60280008, // 00D7 GETGBL R10 G8 - 0x882C0F31, // 00D8 GETMBR R11 R7 K49 - 0x7C280200, // 00D9 CALL R10 1 - 0x0024120A, // 00DA ADD R9 R9 R10 - 0x58280021, // 00DB LDCONST R10 K33 - 0x7C200400, // 00DC CALL R8 2 - 0x8C200132, // 00DD GETMET R8 R0 K50 - 0x5C280A00, // 00DE MOVE R10 R5 - 0x502C0000, // 00DF LDBOOL R11 0 0 - 0x7C200600, // 00E0 CALL R8 3 - 0x50200000, // 00E1 LDBOOL R8 0 0 - 0xA8040001, // 00E2 EXBLK 1 1 - 0x80041000, // 00E3 RET 1 R8 - 0x8C200B33, // 00E4 GETMET R8 R5 K51 - 0x7C200200, // 00E5 CALL R8 1 - 0xB8260000, // 00E6 GETNGBL R9 K0 - 0x88241301, // 00E7 GETMBR R9 R9 K1 - 0x8C241302, // 00E8 GETMET R9 R9 K2 - 0x582C0034, // 00E9 LDCONST R11 K52 - 0x7C240400, // 00EA CALL R9 2 - 0x5C241000, // 00EB MOVE R9 R8 - 0x74260002, // 00EC JMPT R9 #00F0 - 0x50240000, // 00ED LDBOOL R9 0 0 - 0xA8040001, // 00EE EXBLK 1 1 - 0x80041200, // 00EF RET 1 R9 - 0x8C240B1C, // 00F0 GETMET R9 R5 K28 - 0x7C240200, // 00F1 CALL R9 1 - 0xB8262E00, // 00F2 GETNGBL R9 K23 - 0x8C241318, // 00F3 GETMET R9 R9 K24 - 0x542E0003, // 00F4 LDINT R11 4 - 0x7C240400, // 00F5 CALL R9 2 - 0x78260012, // 00F6 JMPF R9 #010A - 0xB8260400, // 00F7 GETNGBL R9 K2 - 0x60280008, // 00F8 GETGBL R10 G8 - 0x882C0B36, // 00F9 GETMBR R11 R5 K54 - 0x7C280200, // 00FA CALL R10 1 - 0x002A6A0A, // 00FB ADD R10 K53 R10 - 0x00281537, // 00FC ADD R10 R10 K55 - 0x602C0008, // 00FD GETGBL R11 G8 - 0x88300B1E, // 00FE GETMBR R12 R5 K30 - 0x7C2C0200, // 00FF CALL R11 1 - 0x0028140B, // 0100 ADD R10 R10 R11 - 0x00281538, // 0101 ADD R10 R10 K56 - 0x602C0008, // 0102 GETGBL R11 G8 - 0x88300B27, // 0103 GETMBR R12 R5 K39 - 0x5436FFFE, // 0104 LDINT R13 65535 - 0x2C30180D, // 0105 AND R12 R12 R13 - 0x7C2C0200, // 0106 CALL R11 1 - 0x0028140B, // 0107 ADD R10 R10 R11 - 0x542E0003, // 0108 LDINT R11 4 - 0x7C240400, // 0109 CALL R9 2 - 0x88240107, // 010A GETMBR R9 R0 K7 - 0x8C24131D, // 010B GETMET R9 R9 K29 - 0x5C2C0A00, // 010C MOVE R11 R5 - 0x7C240400, // 010D CALL R9 2 - 0x88240B36, // 010E GETMBR R9 R5 K54 - 0x1C28130E, // 010F EQ R10 R9 K14 - 0x782A000F, // 0110 JMPF R10 #0121 - 0x88280B1E, // 0111 GETMBR R10 R5 K30 - 0x542E000F, // 0112 LDINT R11 16 - 0x1C28140B, // 0113 EQ R10 R10 R11 - 0x782A0009, // 0114 JMPF R10 #011F - 0x88280139, // 0115 GETMBR R10 R0 K57 - 0x8C28153A, // 0116 GETMET R10 R10 K58 - 0x5C300A00, // 0117 MOVE R12 R5 - 0x7C280400, // 0118 CALL R10 2 - 0x5C101400, // 0119 MOVE R4 R10 - 0x78120003, // 011A JMPF R4 #011F - 0x88280139, // 011B GETMBR R10 R0 K57 - 0x8C28153B, // 011C GETMET R10 R10 K59 - 0x5C300000, // 011D MOVE R12 R0 - 0x7C280400, // 011E CALL R10 2 - 0x50100200, // 011F LDBOOL R4 1 0 - 0x70020023, // 0120 JMP #0145 - 0x1C28133C, // 0121 EQ R10 R9 K60 - 0x782A001A, // 0122 JMPF R10 #013E - 0xB82A0000, // 0123 GETNGBL R10 K0 - 0x88281501, // 0124 GETMBR R10 R10 K1 - 0x8C281502, // 0125 GETMET R10 R10 K2 - 0x5830003D, // 0126 LDCONST R12 K61 - 0x7C280400, // 0127 CALL R10 2 - 0x88280139, // 0128 GETMBR R10 R0 K57 - 0x8C28152A, // 0129 GETMET R10 R10 K42 - 0x5C300A00, // 012A MOVE R12 R5 - 0x7C280400, // 012B CALL R10 2 - 0x5C101400, // 012C MOVE R4 R10 - 0xB82A0000, // 012D GETNGBL R10 K0 - 0x88281501, // 012E GETMBR R10 R10 K1 - 0x8C281502, // 012F GETMET R10 R10 K2 - 0x5830003E, // 0130 LDCONST R12 K62 - 0x7C280400, // 0131 CALL R10 2 - 0x78120004, // 0132 JMPF R4 #0138 - 0x88280139, // 0133 GETMBR R10 R0 K57 - 0x8C28153B, // 0134 GETMET R10 R10 K59 - 0x5C300000, // 0135 MOVE R12 R0 - 0x7C280400, // 0136 CALL R10 2 - 0x70020003, // 0137 JMP #013C - 0x8C280132, // 0138 GETMET R10 R0 K50 - 0x5C300A00, // 0139 MOVE R12 R5 - 0x50340200, // 013A LDBOOL R13 1 0 - 0x7C280600, // 013B CALL R10 3 - 0x50100200, // 013C LDBOOL R4 1 0 - 0x70020006, // 013D JMP #0145 - 0xB82A0400, // 013E GETNGBL R10 K2 - 0x602C0008, // 013F GETGBL R11 G8 - 0x5C301200, // 0140 MOVE R12 R9 - 0x7C2C0200, // 0141 CALL R11 1 - 0x002E7E0B, // 0142 ADD R11 K63 R11 - 0x58300021, // 0143 LDCONST R12 K33 - 0x7C280400, // 0144 CALL R10 2 - 0xA8040001, // 0145 EXBLK 1 1 - 0x80040800, // 0146 RET 1 R4 - 0xA8040001, // 0147 EXBLK 1 1 - 0x70020017, // 0148 JMP #0161 - 0xAC140002, // 0149 CATCH R5 0 2 - 0x70020014, // 014A JMP #0160 - 0xB81E0400, // 014B GETNGBL R7 K2 - 0x60200008, // 014C GETGBL R8 G8 - 0x5C240A00, // 014D MOVE R9 R5 - 0x7C200200, // 014E CALL R8 1 - 0x00228008, // 014F ADD R8 K64 R8 - 0x00201141, // 0150 ADD R8 R8 K65 - 0x60240008, // 0151 GETGBL R9 G8 - 0x5C280C00, // 0152 MOVE R10 R6 - 0x7C240200, // 0153 CALL R9 1 - 0x00201009, // 0154 ADD R8 R8 R9 - 0x58240042, // 0155 LDCONST R9 K66 - 0x7C1C0400, // 0156 CALL R7 2 - 0xB81E2E00, // 0157 GETNGBL R7 K23 - 0x881C0F43, // 0158 GETMBR R7 R7 K67 - 0x781E0002, // 0159 JMPF R7 #015D - 0xA41E8800, // 015A IMPORT R7 K68 - 0x8C200F45, // 015B GETMET R8 R7 K69 - 0x7C200200, // 015C CALL R8 1 - 0x501C0000, // 015D LDBOOL R7 0 0 - 0x80040E00, // 015E RET 1 R7 - 0x70020000, // 015F JMP #0161 - 0xB0080000, // 0160 RAISE 2 R0 R0 - 0x80000000, // 0161 RET 0 + 0x4C200000, // 00AF LDNIL R8 + 0x1C200E08, // 00B0 EQ R8 R7 R8 + 0x78220009, // 00B1 JMPF R8 #00BC + 0xB8222C00, // 00B2 GETNGBL R8 K22 + 0x60240008, // 00B3 GETGBL R9 G8 + 0x88280B0A, // 00B4 GETMBR R10 R5 K10 + 0x7C240200, // 00B5 CALL R9 1 + 0x00265609, // 00B6 ADD R9 K43 R9 + 0x5828001F, // 00B7 LDCONST R10 K31 + 0x7C200400, // 00B8 CALL R8 2 + 0x50200000, // 00B9 LDBOOL R8 0 0 + 0xA8040001, // 00BA EXBLK 1 1 + 0x80041000, // 00BB RET 1 R8 + 0x780A0000, // 00BC JMPF R2 #00BE + 0x901E1A02, // 00BD SETMBR R7 K13 R2 + 0x780E0000, // 00BE JMPF R3 #00C0 + 0x901E1C03, // 00BF SETMBR R7 K14 R3 + 0x901E1E00, // 00C0 SETMBR R7 K15 R0 + 0x90162007, // 00C1 SETMBR R5 K16 R7 + 0x8C200F2C, // 00C2 GETMET R8 R7 K44 + 0x88280B13, // 00C3 GETMBR R10 R5 K19 + 0x502C0200, // 00C4 LDBOOL R11 1 0 + 0x7C200600, // 00C5 CALL R8 3 + 0x74220017, // 00C6 JMPT R8 #00DF + 0xB8222800, // 00C7 GETNGBL R8 K20 + 0x8C201115, // 00C8 GETMET R8 R8 K21 + 0x5828001F, // 00C9 LDCONST R10 K31 + 0x7C200400, // 00CA CALL R8 2 + 0x7822000B, // 00CB JMPF R8 #00D8 + 0xB8222C00, // 00CC GETNGBL R8 K22 + 0x60240008, // 00CD GETGBL R9 G8 + 0x88280B13, // 00CE GETMBR R10 R5 K19 + 0x7C240200, // 00CF CALL R9 1 + 0x00265A09, // 00D0 ADD R9 K45 R9 + 0x0024132E, // 00D1 ADD R9 R9 K46 + 0x60280008, // 00D2 GETGBL R10 G8 + 0x882C0F2F, // 00D3 GETMBR R11 R7 K47 + 0x7C280200, // 00D4 CALL R10 1 + 0x0024120A, // 00D5 ADD R9 R9 R10 + 0x5828001F, // 00D6 LDCONST R10 K31 + 0x7C200400, // 00D7 CALL R8 2 + 0x8C200130, // 00D8 GETMET R8 R0 K48 + 0x5C280A00, // 00D9 MOVE R10 R5 + 0x502C0000, // 00DA LDBOOL R11 0 0 + 0x7C200600, // 00DB CALL R8 3 + 0x50200000, // 00DC LDBOOL R8 0 0 + 0xA8040001, // 00DD EXBLK 1 1 + 0x80041000, // 00DE RET 1 R8 + 0x8C200B31, // 00DF GETMET R8 R5 K49 + 0x7C200200, // 00E0 CALL R8 1 + 0x5C241000, // 00E1 MOVE R9 R8 + 0x74260002, // 00E2 JMPT R9 #00E6 + 0x50240000, // 00E3 LDBOOL R9 0 0 + 0xA8040001, // 00E4 EXBLK 1 1 + 0x80041200, // 00E5 RET 1 R9 + 0x8C240B1A, // 00E6 GETMET R9 R5 K26 + 0x7C240200, // 00E7 CALL R9 1 + 0xB8262800, // 00E8 GETNGBL R9 K20 + 0x8C241315, // 00E9 GETMET R9 R9 K21 + 0x542E0003, // 00EA LDINT R11 4 + 0x7C240400, // 00EB CALL R9 2 + 0x78260012, // 00EC JMPF R9 #0100 + 0xB8262C00, // 00ED GETNGBL R9 K22 + 0x60280008, // 00EE GETGBL R10 G8 + 0x882C0B33, // 00EF GETMBR R11 R5 K51 + 0x7C280200, // 00F0 CALL R10 1 + 0x002A640A, // 00F1 ADD R10 K50 R10 + 0x00281534, // 00F2 ADD R10 R10 K52 + 0x602C0008, // 00F3 GETGBL R11 G8 + 0x88300B1C, // 00F4 GETMBR R12 R5 K28 + 0x7C2C0200, // 00F5 CALL R11 1 + 0x0028140B, // 00F6 ADD R10 R10 R11 + 0x00281535, // 00F7 ADD R10 R10 K53 + 0x602C0008, // 00F8 GETGBL R11 G8 + 0x88300B25, // 00F9 GETMBR R12 R5 K37 + 0x5436FFFE, // 00FA LDINT R13 65535 + 0x2C30180D, // 00FB AND R12 R12 R13 + 0x7C2C0200, // 00FC CALL R11 1 + 0x0028140B, // 00FD ADD R10 R10 R11 + 0x542E0003, // 00FE LDINT R11 4 + 0x7C240400, // 00FF CALL R9 2 + 0x88240104, // 0100 GETMBR R9 R0 K4 + 0x8C24131B, // 0101 GETMET R9 R9 K27 + 0x5C2C0A00, // 0102 MOVE R11 R5 + 0x7C240400, // 0103 CALL R9 2 + 0x88240B33, // 0104 GETMBR R9 R5 K51 + 0x1C28130B, // 0105 EQ R10 R9 K11 + 0x782A000F, // 0106 JMPF R10 #0117 + 0x88280B1C, // 0107 GETMBR R10 R5 K28 + 0x542E000F, // 0108 LDINT R11 16 + 0x1C28140B, // 0109 EQ R10 R10 R11 + 0x782A0009, // 010A JMPF R10 #0115 + 0x88280136, // 010B GETMBR R10 R0 K54 + 0x8C281537, // 010C GETMET R10 R10 K55 + 0x5C300A00, // 010D MOVE R12 R5 + 0x7C280400, // 010E CALL R10 2 + 0x5C101400, // 010F MOVE R4 R10 + 0x78120003, // 0110 JMPF R4 #0115 + 0x88280136, // 0111 GETMBR R10 R0 K54 + 0x8C281538, // 0112 GETMET R10 R10 K56 + 0x5C300000, // 0113 MOVE R12 R0 + 0x7C280400, // 0114 CALL R10 2 + 0x50100200, // 0115 LDBOOL R4 1 0 + 0x70020019, // 0116 JMP #0131 + 0x1C281339, // 0117 EQ R10 R9 K57 + 0x782A0010, // 0118 JMPF R10 #012A + 0x88280136, // 0119 GETMBR R10 R0 K54 + 0x8C281528, // 011A GETMET R10 R10 K40 + 0x5C300A00, // 011B MOVE R12 R5 + 0x7C280400, // 011C CALL R10 2 + 0x5C101400, // 011D MOVE R4 R10 + 0x78120004, // 011E JMPF R4 #0124 + 0x88280136, // 011F GETMBR R10 R0 K54 + 0x8C281538, // 0120 GETMET R10 R10 K56 + 0x5C300000, // 0121 MOVE R12 R0 + 0x7C280400, // 0122 CALL R10 2 + 0x70020003, // 0123 JMP #0128 + 0x8C280130, // 0124 GETMET R10 R0 K48 + 0x5C300A00, // 0125 MOVE R12 R5 + 0x50340200, // 0126 LDBOOL R13 1 0 + 0x7C280600, // 0127 CALL R10 3 + 0x50100200, // 0128 LDBOOL R4 1 0 + 0x70020006, // 0129 JMP #0131 + 0xB82A2C00, // 012A GETNGBL R10 K22 + 0x602C0008, // 012B GETGBL R11 G8 + 0x5C301200, // 012C MOVE R12 R9 + 0x7C2C0200, // 012D CALL R11 1 + 0x002E740B, // 012E ADD R11 K58 R11 + 0x5830001F, // 012F LDCONST R12 K31 + 0x7C280400, // 0130 CALL R10 2 + 0xA8040001, // 0131 EXBLK 1 1 + 0x80040800, // 0132 RET 1 R4 + 0xA8040001, // 0133 EXBLK 1 1 + 0x70020017, // 0134 JMP #014D + 0xAC140002, // 0135 CATCH R5 0 2 + 0x70020014, // 0136 JMP #014C + 0xB81E2C00, // 0137 GETNGBL R7 K22 + 0x60200008, // 0138 GETGBL R8 G8 + 0x5C240A00, // 0139 MOVE R9 R5 + 0x7C200200, // 013A CALL R8 1 + 0x00227608, // 013B ADD R8 K59 R8 + 0x0020113C, // 013C ADD R8 R8 K60 + 0x60240008, // 013D GETGBL R9 G8 + 0x5C280C00, // 013E MOVE R10 R6 + 0x7C240200, // 013F CALL R9 1 + 0x00201009, // 0140 ADD R8 R8 R9 + 0x5824003D, // 0141 LDCONST R9 K61 + 0x7C1C0400, // 0142 CALL R7 2 + 0xB81E2800, // 0143 GETNGBL R7 K20 + 0x881C0F3E, // 0144 GETMBR R7 R7 K62 + 0x781E0002, // 0145 JMPF R7 #0149 + 0xA41E7E00, // 0146 IMPORT R7 K63 + 0x8C200F40, // 0147 GETMET R8 R7 K64 + 0x7C200200, // 0148 CALL R8 1 + 0x501C0000, // 0149 LDBOOL R7 0 0 + 0x80040E00, // 014A RET 1 R7 + 0x70020000, // 014B JMP #014D + 0xB0080000, // 014C RAISE 2 R0 R0 + 0x80000000, // 014D RET 0 }) ) ); @@ -596,27 +571,18 @@ be_local_closure(class_Matter_MessageHandler_send_response_frame, /* name */ 0, /* has sup protos */ &be_class_Matter_MessageHandler, 1, /* has constants */ - ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_nested_str_weak(matter), - /* K1 */ be_nested_str_weak(profiler), - /* K2 */ be_nested_str_weak(log), - /* K3 */ be_nested_str_weak(send_response_frame), - /* K4 */ be_nested_str_weak(device), - /* K5 */ be_nested_str_weak(msg_send), + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(device), + /* K1 */ be_nested_str_weak(msg_send), }), be_str_weak(send_response_frame), &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0xB80A0000, // 0000 GETNGBL R2 K0 - 0x88080501, // 0001 GETMBR R2 R2 K1 - 0x8C080502, // 0002 GETMET R2 R2 K2 - 0x58100003, // 0003 LDCONST R4 K3 - 0x7C080400, // 0004 CALL R2 2 - 0x88080104, // 0005 GETMBR R2 R0 K4 - 0x8C080505, // 0006 GETMET R2 R2 K5 - 0x5C100200, // 0007 MOVE R4 R1 - 0x7C080400, // 0008 CALL R2 2 - 0x80000000, // 0009 RET 0 + ( &(const binstruction[ 5]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x5C100200, // 0002 MOVE R4 R1 + 0x7C080400, // 0003 CALL R2 2 + 0x80000000, // 0004 RET 0 }) ) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_1_Root.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_1_Root.h index 4d0d8cb27..a4fd6f6cc 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_1_Root.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_1_Root.h @@ -100,7 +100,7 @@ be_local_closure(class_Matter_Plugin_Root_read_attribute, /* name */ /* K76 */ be_nested_str_weak(commissioning_admin_fabric), /* K77 */ be_nested_str_weak(set_or_nil), /* K78 */ be_nested_str_weak(Tasmota), - /* K79 */ be_nested_str_weak(vendorid), + /* K79 */ be_nested_str_weak(VENDOR_ID), /* K80 */ be_nested_str_weak(DeviceName), /* K81 */ be_nested_str_weak(FriendlyName), /* K82 */ be_nested_str_weak(FriendlyName1), diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UDPServer.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UDPServer.h index 1a1d559c0..5c5fe6e53 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UDPServer.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UDPServer.h @@ -730,7 +730,7 @@ be_local_closure(class_Matter_UDPServer_loop, /* name */ 0, /* has sup protos */ &be_class_Matter_UDPServer, 1, /* has constants */ - ( &(const bvalue[20]) { /* constants */ + ( &(const bvalue[19]) { /* constants */ /* K0 */ be_nested_str_weak(matter), /* K1 */ be_nested_str_weak(profiler), /* K2 */ be_const_int(0), @@ -746,15 +746,14 @@ be_local_closure(class_Matter_UDPServer_loop, /* name */ /* K12 */ be_nested_str_weak(log), /* K13 */ be_nested_str_weak(MTR_X3A_X20UDP_X20received_X20from_X20_X5B_X25s_X5D_X3A_X25i), /* K14 */ be_nested_str_weak(dispatch_cb), - /* K15 */ be_nested_str_weak(udp_loop_dispatch), - /* K16 */ be_nested_str_weak(dump), - /* K17 */ be_const_int(2), - /* K18 */ be_nested_str_weak(MAX_PACKETS_READ), - /* K19 */ be_nested_str_weak(_resend_packets), + /* K15 */ be_nested_str_weak(dump), + /* K16 */ be_const_int(2), + /* K17 */ be_nested_str_weak(MAX_PACKETS_READ), + /* K18 */ be_nested_str_weak(_resend_packets), }), be_str_weak(loop), &be_const_str_solidified, - ( &(const binstruction[62]) { /* code */ + ( &(const binstruction[59]) { /* code */ 0xB8060000, // 0000 GETNGBL R1 K0 0x88040301, // 0001 GETMBR R1 R1 K1 0x58080002, // 0002 LDCONST R2 K2 @@ -769,7 +768,7 @@ be_local_closure(class_Matter_UDPServer_loop, /* name */ 0x7C0C0400, // 000B CALL R3 2 0x4C100000, // 000C LDNIL R4 0x20100604, // 000D NE R4 R3 R4 - 0x7812002B, // 000E JMPF R4 #003B + 0x78120028, // 000E JMPF R4 #0038 0x8C100306, // 000F GETMET R4 R1 K6 0x7C100200, // 0010 CALL R4 1 0x90020A03, // 0011 SETMBR R0 K5 R3 @@ -792,31 +791,28 @@ be_local_closure(class_Matter_UDPServer_loop, /* name */ 0x54220003, // 0022 LDINT R8 4 0x7C180400, // 0023 CALL R6 2 0x8818010E, // 0024 GETMBR R6 R0 K14 - 0x781A0007, // 0025 JMPF R6 #002E - 0x8C18030C, // 0026 GETMET R6 R1 K12 - 0x5820000F, // 0027 LDCONST R8 K15 - 0x7C180400, // 0028 CALL R6 2 - 0x8C18010E, // 0029 GETMET R6 R0 K14 - 0x5C200600, // 002A MOVE R8 R3 - 0x5C240800, // 002B MOVE R9 R4 - 0x5C280A00, // 002C MOVE R10 R5 - 0x7C180800, // 002D CALL R6 4 - 0x8C180310, // 002E GETMET R6 R1 K16 - 0x58200011, // 002F LDCONST R8 K17 - 0x7C180400, // 0030 CALL R6 2 - 0x88180112, // 0031 GETMBR R6 R0 K18 - 0x14180406, // 0032 LT R6 R2 R6 - 0x781A0004, // 0033 JMPF R6 #0039 - 0x88180103, // 0034 GETMBR R6 R0 K3 - 0x8C180D04, // 0035 GETMET R6 R6 K4 - 0x7C180200, // 0036 CALL R6 1 - 0x5C0C0C00, // 0037 MOVE R3 R6 - 0x70020000, // 0038 JMP #003A - 0x4C0C0000, // 0039 LDNIL R3 - 0x7001FFD0, // 003A JMP #000C - 0x8C100113, // 003B GETMET R4 R0 K19 - 0x7C100200, // 003C CALL R4 1 - 0x80000000, // 003D RET 0 + 0x781A0004, // 0025 JMPF R6 #002B + 0x8C18010E, // 0026 GETMET R6 R0 K14 + 0x5C200600, // 0027 MOVE R8 R3 + 0x5C240800, // 0028 MOVE R9 R4 + 0x5C280A00, // 0029 MOVE R10 R5 + 0x7C180800, // 002A CALL R6 4 + 0x8C18030F, // 002B GETMET R6 R1 K15 + 0x58200010, // 002C LDCONST R8 K16 + 0x7C180400, // 002D CALL R6 2 + 0x88180111, // 002E GETMBR R6 R0 K17 + 0x14180406, // 002F LT R6 R2 R6 + 0x781A0004, // 0030 JMPF R6 #0036 + 0x88180103, // 0031 GETMBR R6 R0 K3 + 0x8C180D04, // 0032 GETMET R6 R6 K4 + 0x7C180200, // 0033 CALL R6 1 + 0x5C0C0C00, // 0034 MOVE R3 R6 + 0x70020000, // 0035 JMP #0037 + 0x4C0C0000, // 0036 LDNIL R3 + 0x7001FFD3, // 0037 JMP #000C + 0x8C100112, // 0038 GETMET R4 R0 K18 + 0x7C100200, // 0039 CALL R4 1 + 0x80000000, // 003A RET 0 }) ) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_zz_Device.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_zz_Device.h index 3ffed0e22..da9af4b11 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_zz_Device.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_zz_Device.h @@ -39,12 +39,12 @@ be_local_closure(class_Matter_Device_save_before_restart, /* name */ /******************************************************************** -** Solidified function: start_operational_discovery +** Solidified function: msg_send ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_start_operational_discovery, /* name */ +be_local_closure(class_Matter_Device_msg_send, /* name */ be_nested_proto( - 7, /* nstack */ + 5, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -52,29 +52,18 @@ be_local_closure(class_Matter_Device_start_operational_discovery, /* name */ 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ - ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_nested_str_weak(crypto), - /* K1 */ be_nested_str_weak(mdns), - /* K2 */ be_nested_str_weak(stop_basic_commissioning), - /* K3 */ be_nested_str_weak(root_w0), - /* K4 */ be_nested_str_weak(root_L), - /* K5 */ be_nested_str_weak(mdns_announce_op_discovery), + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(udp_server), + /* K1 */ be_nested_str_weak(send_UDP), }), - be_str_weak(start_operational_discovery), + be_str_weak(msg_send), &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0xA40E0200, // 0001 IMPORT R3 K1 - 0x8C100102, // 0002 GETMET R4 R0 K2 - 0x7C100200, // 0003 CALL R4 1 - 0x4C100000, // 0004 LDNIL R4 - 0x90020604, // 0005 SETMBR R0 K3 R4 - 0x4C100000, // 0006 LDNIL R4 - 0x90020804, // 0007 SETMBR R0 K4 R4 - 0x8C100105, // 0008 GETMET R4 R0 K5 - 0x5C180200, // 0009 MOVE R6 R1 - 0x7C100400, // 000A CALL R4 2 - 0x80000000, // 000B RET 0 + ( &(const binstruction[ 5]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x5C100200, // 0002 MOVE R4 R1 + 0x7C080400, // 0003 CALL R2 2 + 0x80040400, // 0004 RET 1 R2 }) ) ); @@ -82,13 +71,211 @@ be_local_closure(class_Matter_Device_start_operational_discovery, /* name */ /******************************************************************** -** Solidified function: find_plugin_by_endpoint +** Solidified function: mdns_remove_PASE ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_find_plugin_by_endpoint, /* name */ +be_local_closure(class_Matter_Device_mdns_remove_PASE, /* name */ be_nested_proto( - 6, /* nstack */ - 2, /* argc */ + 9, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[19]) { /* constants */ + /* K0 */ be_nested_str_weak(mdns), + /* K1 */ be_nested_str_weak(mdns_pase_eth), + /* K2 */ be_nested_str_weak(log), + /* K3 */ be_nested_str_weak(MTR_X3A_X20calling_X20mdns_X2Eremove_service_X28_X25s_X2C_X20_X25s_X2C_X20_X25s_X2C_X20_X25s_X29), + /* K4 */ be_nested_str_weak(_matterc), + /* K5 */ be_nested_str_weak(_udp), + /* K6 */ be_nested_str_weak(commissioning_instance_eth), + /* K7 */ be_nested_str_weak(hostname_eth), + /* K8 */ be_const_int(3), + /* K9 */ be_nested_str_weak(MTR_X3A_X20remove_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27), + /* K10 */ be_nested_str_weak(eth), + /* K11 */ be_nested_str_weak(remove_service), + /* K12 */ be_nested_str_weak(mdns_pase_wifi), + /* K13 */ be_nested_str_weak(commissioning_instance_wifi), + /* K14 */ be_nested_str_weak(hostname_wifi), + /* K15 */ be_nested_str_weak(wifi), + /* K16 */ be_nested_str_weak(MTR_X3A_X20Exception), + /* K17 */ be_nested_str_weak(_X7C), + /* K18 */ be_const_int(2), + }), + be_str_weak(mdns_remove_PASE), + &be_const_str_solidified, + ( &(const binstruction[77]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA8020039, // 0001 EXBLK 0 #003C + 0x88080101, // 0002 GETMBR R2 R0 K1 + 0x780A0019, // 0003 JMPF R2 #001E + 0xB80A0400, // 0004 GETNGBL R2 K2 + 0x600C0018, // 0005 GETGBL R3 G24 + 0x58100003, // 0006 LDCONST R4 K3 + 0x58140004, // 0007 LDCONST R5 K4 + 0x58180005, // 0008 LDCONST R6 K5 + 0x881C0106, // 0009 GETMBR R7 R0 K6 + 0x88200107, // 000A GETMBR R8 R0 K7 + 0x7C0C0A00, // 000B CALL R3 5 + 0x58100008, // 000C LDCONST R4 K8 + 0x7C080400, // 000D CALL R2 2 + 0xB80A0400, // 000E GETNGBL R2 K2 + 0x600C0018, // 000F GETGBL R3 G24 + 0x58100009, // 0010 LDCONST R4 K9 + 0x5814000A, // 0011 LDCONST R5 K10 + 0x88180106, // 0012 GETMBR R6 R0 K6 + 0x7C0C0600, // 0013 CALL R3 3 + 0x58100008, // 0014 LDCONST R4 K8 + 0x7C080400, // 0015 CALL R2 2 + 0x50080000, // 0016 LDBOOL R2 0 0 + 0x90020202, // 0017 SETMBR R0 K1 R2 + 0x8C08030B, // 0018 GETMET R2 R1 K11 + 0x58100004, // 0019 LDCONST R4 K4 + 0x58140005, // 001A LDCONST R5 K5 + 0x88180106, // 001B GETMBR R6 R0 K6 + 0x881C0107, // 001C GETMBR R7 R0 K7 + 0x7C080A00, // 001D CALL R2 5 + 0x8808010C, // 001E GETMBR R2 R0 K12 + 0x780A0019, // 001F JMPF R2 #003A + 0xB80A0400, // 0020 GETNGBL R2 K2 + 0x600C0018, // 0021 GETGBL R3 G24 + 0x58100003, // 0022 LDCONST R4 K3 + 0x58140004, // 0023 LDCONST R5 K4 + 0x58180005, // 0024 LDCONST R6 K5 + 0x881C010D, // 0025 GETMBR R7 R0 K13 + 0x8820010E, // 0026 GETMBR R8 R0 K14 + 0x7C0C0A00, // 0027 CALL R3 5 + 0x58100008, // 0028 LDCONST R4 K8 + 0x7C080400, // 0029 CALL R2 2 + 0xB80A0400, // 002A GETNGBL R2 K2 + 0x600C0018, // 002B GETGBL R3 G24 + 0x58100009, // 002C LDCONST R4 K9 + 0x5814000F, // 002D LDCONST R5 K15 + 0x8818010D, // 002E GETMBR R6 R0 K13 + 0x7C0C0600, // 002F CALL R3 3 + 0x58100008, // 0030 LDCONST R4 K8 + 0x7C080400, // 0031 CALL R2 2 + 0x50080000, // 0032 LDBOOL R2 0 0 + 0x90021802, // 0033 SETMBR R0 K12 R2 + 0x8C08030B, // 0034 GETMET R2 R1 K11 + 0x58100004, // 0035 LDCONST R4 K4 + 0x58140005, // 0036 LDCONST R5 K5 + 0x8818010D, // 0037 GETMBR R6 R0 K13 + 0x881C010E, // 0038 GETMBR R7 R0 K14 + 0x7C080A00, // 0039 CALL R2 5 + 0xA8040001, // 003A EXBLK 1 1 + 0x7002000F, // 003B JMP #004C + 0xAC080002, // 003C CATCH R2 0 2 + 0x7002000C, // 003D JMP #004B + 0xB8120400, // 003E GETNGBL R4 K2 + 0x60140008, // 003F GETGBL R5 G8 + 0x5C180400, // 0040 MOVE R6 R2 + 0x7C140200, // 0041 CALL R5 1 + 0x00162005, // 0042 ADD R5 K16 R5 + 0x00140B11, // 0043 ADD R5 R5 K17 + 0x60180008, // 0044 GETGBL R6 G8 + 0x5C1C0600, // 0045 MOVE R7 R3 + 0x7C180200, // 0046 CALL R6 1 + 0x00140A06, // 0047 ADD R5 R5 R6 + 0x58180012, // 0048 LDCONST R6 K18 + 0x7C100400, // 0049 CALL R4 2 + 0x70020000, // 004A JMP #004C + 0xB0080000, // 004B RAISE 2 R0 R0 + 0x80000000, // 004C RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: compute_qrcode_content +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_compute_qrcode_content, /* name */ + be_nested_proto( + 8, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[12]) { /* constants */ + /* K0 */ be_nested_str_weak(resize), + /* K1 */ be_nested_str_weak(setbits), + /* K2 */ be_const_int(3), + /* K3 */ be_nested_str_weak(VENDOR_ID), + /* K4 */ be_nested_str_weak(PRODUCT_ID), + /* K5 */ be_nested_str_weak(root_discriminator), + /* K6 */ be_nested_str_weak(root_passcode), + /* K7 */ be_const_int(134217727), + /* K8 */ be_nested_str_weak(MT_X3A), + /* K9 */ be_nested_str_weak(matter), + /* K10 */ be_nested_str_weak(Base38), + /* K11 */ be_nested_str_weak(encode), + }), + be_str_weak(compute_qrcode_content), + &be_const_str_solidified, + ( &(const binstruction[40]) { /* code */ + 0x60040015, // 0000 GETGBL R1 G21 + 0x7C040000, // 0001 CALL R1 0 + 0x8C040300, // 0002 GETMET R1 R1 K0 + 0x540E000A, // 0003 LDINT R3 11 + 0x7C040400, // 0004 CALL R1 2 + 0x8C080301, // 0005 GETMET R2 R1 K1 + 0x58100002, // 0006 LDCONST R4 K2 + 0x5416000F, // 0007 LDINT R5 16 + 0x88180103, // 0008 GETMBR R6 R0 K3 + 0x7C080800, // 0009 CALL R2 4 + 0x8C080301, // 000A GETMET R2 R1 K1 + 0x54120012, // 000B LDINT R4 19 + 0x5416000F, // 000C LDINT R5 16 + 0x88180104, // 000D GETMBR R6 R0 K4 + 0x7C080800, // 000E CALL R2 4 + 0x8C080301, // 000F GETMET R2 R1 K1 + 0x54120024, // 0010 LDINT R4 37 + 0x54160007, // 0011 LDINT R5 8 + 0x541A0003, // 0012 LDINT R6 4 + 0x7C080800, // 0013 CALL R2 4 + 0x8C080301, // 0014 GETMET R2 R1 K1 + 0x5412002C, // 0015 LDINT R4 45 + 0x5416000B, // 0016 LDINT R5 12 + 0x88180105, // 0017 GETMBR R6 R0 K5 + 0x541E0FFE, // 0018 LDINT R7 4095 + 0x2C180C07, // 0019 AND R6 R6 R7 + 0x7C080800, // 001A CALL R2 4 + 0x8C080301, // 001B GETMET R2 R1 K1 + 0x54120038, // 001C LDINT R4 57 + 0x5416001A, // 001D LDINT R5 27 + 0x88180106, // 001E GETMBR R6 R0 K6 + 0x2C180D07, // 001F AND R6 R6 K7 + 0x7C080800, // 0020 CALL R2 4 + 0xB80A1200, // 0021 GETNGBL R2 K9 + 0x8808050A, // 0022 GETMBR R2 R2 K10 + 0x8C08050B, // 0023 GETMET R2 R2 K11 + 0x5C100200, // 0024 MOVE R4 R1 + 0x7C080400, // 0025 CALL R2 2 + 0x000A1002, // 0026 ADD R2 K8 R2 + 0x80040400, // 0027 RET 1 R2 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: _init_basic_commissioning +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device__init_basic_commissioning, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ @@ -96,31 +283,22 @@ be_local_closure(class_Matter_Device_find_plugin_by_endpoint, /* name */ &be_class_Matter_Device, 1, /* has constants */ ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_const_int(0), - /* K1 */ be_nested_str_weak(plugins), - /* K2 */ be_nested_str_weak(get_endpoint), - /* K3 */ be_const_int(1), + /* K0 */ be_nested_str_weak(sessions), + /* K1 */ be_nested_str_weak(count_active_fabrics), + /* K2 */ be_const_int(0), + /* K3 */ be_nested_str_weak(start_root_basic_commissioning), }), - be_str_weak(find_plugin_by_endpoint), + be_str_weak(_init_basic_commissioning), &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ - 0x58080000, // 0000 LDCONST R2 K0 - 0x600C000C, // 0001 GETGBL R3 G12 - 0x88100101, // 0002 GETMBR R4 R0 K1 - 0x7C0C0200, // 0003 CALL R3 1 - 0x140C0403, // 0004 LT R3 R2 R3 - 0x780E0008, // 0005 JMPF R3 #000F - 0x880C0101, // 0006 GETMBR R3 R0 K1 - 0x940C0602, // 0007 GETIDX R3 R3 R2 - 0x8C100702, // 0008 GETMET R4 R3 K2 - 0x7C100200, // 0009 CALL R4 1 - 0x1C100801, // 000A EQ R4 R4 R1 - 0x78120000, // 000B JMPF R4 #000D - 0x80040600, // 000C RET 1 R3 - 0x00080503, // 000D ADD R2 R2 K3 - 0x7001FFF1, // 000E JMP #0001 - 0x4C0C0000, // 000F LDNIL R3 - 0x80040600, // 0010 RET 1 R3 + ( &(const binstruction[ 8]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x7C040200, // 0002 CALL R1 1 + 0x1C040302, // 0003 EQ R1 R1 K2 + 0x78060001, // 0004 JMPF R1 #0007 + 0x8C040103, // 0005 GETMET R1 R0 K3 + 0x7C040200, // 0006 CALL R1 1 + 0x80000000, // 0007 RET 0 }) ) ); @@ -181,12 +359,12 @@ be_local_closure(class_Matter_Device_read_sensors_scheduler, /* name */ /******************************************************************** -** Solidified function: _mdns_announce_hostname +** Solidified function: add_read_sensors_schedule ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device__mdns_announce_hostname, /* name */ +be_local_closure(class_Matter_Device_add_read_sensors_schedule, /* name */ be_nested_proto( - 14, /* nstack */ + 5, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -194,182 +372,29 @@ be_local_closure(class_Matter_Device__mdns_announce_hostname, /* name */ 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ - ( &(const bvalue[27]) { /* constants */ - /* K0 */ be_nested_str_weak(mdns), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(start), - /* K3 */ be_nested_str_weak(tasmota), - /* K4 */ be_nested_str_weak(eth), - /* K5 */ be_nested_str_weak(hostname_eth), - /* K6 */ be_nested_str_weak(replace), - /* K7 */ be_nested_str_weak(find), - /* K8 */ be_nested_str_weak(mac), - /* K9 */ be_nested_str_weak(_X3A), - /* K10 */ be_nested_str_weak(), - /* K11 */ be_nested_str_weak(ipv4only), - /* K12 */ be_nested_str_weak(contains), - /* K13 */ be_nested_str_weak(ip6local), - /* K14 */ be_nested_str_weak(add_hostname), - /* K15 */ be_nested_str_weak(ip), - /* K16 */ be_nested_str_weak(ip6), - /* K17 */ be_nested_str_weak(log), - /* K18 */ be_nested_str_weak(MTR_X3A_X20calling_X20mdns_X2Eadd_hostname_X28_X25s_X2C_X20_X25s_X29), - /* K19 */ be_const_int(3), - /* K20 */ be_nested_str_weak(wifi), - /* K21 */ be_nested_str_weak(hostname_wifi), - /* K22 */ be_nested_str_weak(MTR_X3A_X20start_X20mDNS_X20on_X20_X25s_X20host_X20_X27_X25s_X2Elocal_X27), - /* K23 */ be_nested_str_weak(MTR_X3A_X20Exception), - /* K24 */ be_nested_str_weak(_X7C), - /* K25 */ be_const_int(2), - /* K26 */ be_nested_str_weak(mdns_announce_op_discovery_all_fabrics), + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(probe_sensor_time), + /* K1 */ be_nested_str_weak(probe_sensor_timestamp), + /* K2 */ be_nested_str_weak(matter), + /* K3 */ be_nested_str_weak(jitter), }), - be_str_weak(_mdns_announce_hostname), + be_str_weak(add_read_sensors_schedule), &be_const_str_solidified, - ( &(const binstruction[144]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0xA40E0200, // 0001 IMPORT R3 K1 - 0x8C100502, // 0002 GETMET R4 R2 K2 - 0x7C100200, // 0003 CALL R4 1 - 0xA8020077, // 0004 EXBLK 0 #007D - 0x78060033, // 0005 JMPF R1 #003A - 0xB8120600, // 0006 GETNGBL R4 K3 - 0x8C100904, // 0007 GETMET R4 R4 K4 - 0x7C100200, // 0008 CALL R4 1 - 0x8C140706, // 0009 GETMET R5 R3 K6 - 0x8C1C0907, // 000A GETMET R7 R4 K7 - 0x58240008, // 000B LDCONST R9 K8 - 0x7C1C0400, // 000C CALL R7 2 - 0x58200009, // 000D LDCONST R8 K9 - 0x5824000A, // 000E LDCONST R9 K10 - 0x7C140800, // 000F CALL R5 4 - 0x90020A05, // 0010 SETMBR R0 K5 R5 - 0x8814010B, // 0011 GETMBR R5 R0 K11 - 0x78160003, // 0012 JMPF R5 #0017 - 0x8C14090C, // 0013 GETMET R5 R4 K12 - 0x581C000D, // 0014 LDCONST R7 K13 - 0x7C140400, // 0015 CALL R5 2 - 0x7416000F, // 0016 JMPT R5 #0027 - 0x8C14050E, // 0017 GETMET R5 R2 K14 - 0x881C0105, // 0018 GETMBR R7 R0 K5 - 0x8C200907, // 0019 GETMET R8 R4 K7 - 0x5828000D, // 001A LDCONST R10 K13 - 0x582C000A, // 001B LDCONST R11 K10 - 0x7C200600, // 001C CALL R8 3 - 0x8C240907, // 001D GETMET R9 R4 K7 - 0x582C000F, // 001E LDCONST R11 K15 - 0x5830000A, // 001F LDCONST R12 K10 - 0x7C240600, // 0020 CALL R9 3 - 0x8C280907, // 0021 GETMET R10 R4 K7 - 0x58300010, // 0022 LDCONST R12 K16 - 0x5834000A, // 0023 LDCONST R13 K10 - 0x7C280600, // 0024 CALL R10 3 - 0x7C140A00, // 0025 CALL R5 5 - 0x70020011, // 0026 JMP #0039 - 0xB8162200, // 0027 GETNGBL R5 K17 - 0x60180018, // 0028 GETGBL R6 G24 - 0x581C0012, // 0029 LDCONST R7 K18 - 0x88200105, // 002A GETMBR R8 R0 K5 - 0x8C240907, // 002B GETMET R9 R4 K7 - 0x582C000F, // 002C LDCONST R11 K15 - 0x5830000A, // 002D LDCONST R12 K10 - 0x7C240600, // 002E CALL R9 3 - 0x7C180600, // 002F CALL R6 3 - 0x581C0013, // 0030 LDCONST R7 K19 - 0x7C140400, // 0031 CALL R5 2 - 0x8C14050E, // 0032 GETMET R5 R2 K14 - 0x881C0105, // 0033 GETMBR R7 R0 K5 - 0x8C200907, // 0034 GETMET R8 R4 K7 - 0x5828000F, // 0035 LDCONST R10 K15 - 0x582C000A, // 0036 LDCONST R11 K10 - 0x7C200600, // 0037 CALL R8 3 - 0x7C140600, // 0038 CALL R5 3 - 0x70020032, // 0039 JMP #006D - 0xB8120600, // 003A GETNGBL R4 K3 - 0x8C100914, // 003B GETMET R4 R4 K20 - 0x7C100200, // 003C CALL R4 1 - 0x8C140706, // 003D GETMET R5 R3 K6 - 0x8C1C0907, // 003E GETMET R7 R4 K7 - 0x58240008, // 003F LDCONST R9 K8 - 0x7C1C0400, // 0040 CALL R7 2 - 0x58200009, // 0041 LDCONST R8 K9 - 0x5824000A, // 0042 LDCONST R9 K10 - 0x7C140800, // 0043 CALL R5 4 - 0x90022A05, // 0044 SETMBR R0 K21 R5 - 0x8814010B, // 0045 GETMBR R5 R0 K11 - 0x78160003, // 0046 JMPF R5 #004B - 0x8C14090C, // 0047 GETMET R5 R4 K12 - 0x581C000D, // 0048 LDCONST R7 K13 - 0x7C140400, // 0049 CALL R5 2 - 0x7416000F, // 004A JMPT R5 #005B - 0x8C14050E, // 004B GETMET R5 R2 K14 - 0x881C0115, // 004C GETMBR R7 R0 K21 - 0x8C200907, // 004D GETMET R8 R4 K7 - 0x5828000D, // 004E LDCONST R10 K13 - 0x582C000A, // 004F LDCONST R11 K10 - 0x7C200600, // 0050 CALL R8 3 - 0x8C240907, // 0051 GETMET R9 R4 K7 - 0x582C000F, // 0052 LDCONST R11 K15 - 0x5830000A, // 0053 LDCONST R12 K10 - 0x7C240600, // 0054 CALL R9 3 - 0x8C280907, // 0055 GETMET R10 R4 K7 - 0x58300010, // 0056 LDCONST R12 K16 - 0x5834000A, // 0057 LDCONST R13 K10 - 0x7C280600, // 0058 CALL R10 3 - 0x7C140A00, // 0059 CALL R5 5 - 0x70020011, // 005A JMP #006D - 0xB8162200, // 005B GETNGBL R5 K17 - 0x60180018, // 005C GETGBL R6 G24 - 0x581C0012, // 005D LDCONST R7 K18 - 0x88200115, // 005E GETMBR R8 R0 K21 - 0x8C240907, // 005F GETMET R9 R4 K7 - 0x582C000F, // 0060 LDCONST R11 K15 - 0x5830000A, // 0061 LDCONST R12 K10 - 0x7C240600, // 0062 CALL R9 3 - 0x7C180600, // 0063 CALL R6 3 - 0x581C0013, // 0064 LDCONST R7 K19 - 0x7C140400, // 0065 CALL R5 2 - 0x8C14050E, // 0066 GETMET R5 R2 K14 - 0x881C0115, // 0067 GETMBR R7 R0 K21 - 0x8C200907, // 0068 GETMET R8 R4 K7 - 0x5828000F, // 0069 LDCONST R10 K15 - 0x582C000A, // 006A LDCONST R11 K10 - 0x7C200600, // 006B CALL R8 3 - 0x7C140600, // 006C CALL R5 3 - 0xB8122200, // 006D GETNGBL R4 K17 - 0x60140018, // 006E GETGBL R5 G24 - 0x58180016, // 006F LDCONST R6 K22 - 0x78060001, // 0070 JMPF R1 #0073 - 0x581C0004, // 0071 LDCONST R7 K4 - 0x70020000, // 0072 JMP #0074 - 0x581C0014, // 0073 LDCONST R7 K20 - 0x78060001, // 0074 JMPF R1 #0077 - 0x88200105, // 0075 GETMBR R8 R0 K5 - 0x70020000, // 0076 JMP #0078 - 0x88200115, // 0077 GETMBR R8 R0 K21 - 0x7C140600, // 0078 CALL R5 3 - 0x58180013, // 0079 LDCONST R6 K19 - 0x7C100400, // 007A CALL R4 2 - 0xA8040001, // 007B EXBLK 1 1 - 0x7002000F, // 007C JMP #008D - 0xAC100002, // 007D CATCH R4 0 2 - 0x7002000C, // 007E JMP #008C - 0xB81A2200, // 007F GETNGBL R6 K17 - 0x601C0008, // 0080 GETGBL R7 G8 - 0x5C200800, // 0081 MOVE R8 R4 - 0x7C1C0200, // 0082 CALL R7 1 - 0x001E2E07, // 0083 ADD R7 K23 R7 - 0x001C0F18, // 0084 ADD R7 R7 K24 - 0x60200008, // 0085 GETGBL R8 G8 - 0x5C240A00, // 0086 MOVE R9 R5 - 0x7C200200, // 0087 CALL R8 1 - 0x001C0E08, // 0088 ADD R7 R7 R8 - 0x58200019, // 0089 LDCONST R8 K25 - 0x7C180400, // 008A CALL R6 2 - 0x70020000, // 008B JMP #008D - 0xB0080000, // 008C RAISE 2 R0 R0 - 0x8C10011A, // 008D GETMET R4 R0 K26 - 0x7C100200, // 008E CALL R4 1 - 0x80000000, // 008F RET 0 + ( &(const binstruction[14]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x4C0C0000, // 0001 LDNIL R3 + 0x1C080403, // 0002 EQ R2 R2 R3 + 0x740A0002, // 0003 JMPT R2 #0007 + 0x88080100, // 0004 GETMBR R2 R0 K0 + 0x24080401, // 0005 GT R2 R2 R1 + 0x780A0005, // 0006 JMPF R2 #000D + 0x90020001, // 0007 SETMBR R0 K0 R1 + 0xB80A0400, // 0008 GETNGBL R2 K2 + 0x8C080503, // 0009 GETMET R2 R2 K3 + 0x5C100200, // 000A MOVE R4 R1 + 0x7C080400, // 000B CALL R2 2 + 0x90020202, // 000C SETMBR R0 K1 R2 + 0x80000000, // 000D RET 0 }) ) ); @@ -377,289 +402,61 @@ be_local_closure(class_Matter_Device__mdns_announce_hostname, /* name */ /******************************************************************** -** Solidified function: mdns_announce_PASE +** Solidified function: start_operational_discovery_deferred ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_mdns_announce_PASE, /* name */ +be_local_closure(class_Matter_Device_start_operational_discovery_deferred, /* name */ be_nested_proto( - 12, /* nstack */ - 1, /* argc */ + 6, /* nstack */ + 2, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ - 0, /* has sup protos */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 2]) { + be_nested_proto( + 3, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 2]) { /* upvals */ + be_local_const_upval(1, 0), + be_local_const_upval(1, 1), + }), + 0, /* has sup protos */ + NULL, + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(start_operational_discovery), + }), + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 5]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x68080001, // 0002 GETUPV R2 U1 + 0x7C000400, // 0003 CALL R0 2 + 0x80040000, // 0004 RET 1 R0 + }) + ), &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[40]) { /* constants */ - /* K0 */ be_nested_str_weak(mdns), - /* K1 */ be_nested_str_weak(crypto), - /* K2 */ be_nested_str_weak(VP), - /* K3 */ be_nested_str_weak(vendorid), - /* K4 */ be_nested_str_weak(_X2B), - /* K5 */ be_nested_str_weak(productid), - /* K6 */ be_nested_str_weak(D), - /* K7 */ be_nested_str_weak(commissioning_discriminator), - /* K8 */ be_nested_str_weak(CM), - /* K9 */ be_const_int(1), - /* K10 */ be_nested_str_weak(T), - /* K11 */ be_const_int(0), - /* K12 */ be_nested_str_weak(SII), - /* K13 */ be_nested_str_weak(SAI), - /* K14 */ be_nested_str_weak(commissioning_instance_wifi), - /* K15 */ be_nested_str_weak(random), - /* K16 */ be_nested_str_weak(tohex), - /* K17 */ be_nested_str_weak(commissioning_instance_eth), - /* K18 */ be_nested_str_weak(hostname_eth), - /* K19 */ be_nested_str_weak(add_service), - /* K20 */ be_nested_str_weak(_matterc), - /* K21 */ be_nested_str_weak(_udp), - /* K22 */ be_nested_str_weak(mdns_pase_eth), - /* K23 */ be_nested_str_weak(log), - /* K24 */ be_nested_str_weak(MTR_X3A_X20announce_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27_X20ptr_X20to_X20_X60_X25s_X2Elocal_X60), - /* K25 */ be_nested_str_weak(eth), - /* K26 */ be_const_int(2), - /* K27 */ be_nested_str_weak(_L), - /* K28 */ be_nested_str_weak(MTR_X3A_X20adding_X20subtype_X3A_X20), - /* K29 */ be_const_int(3), - /* K30 */ be_nested_str_weak(add_subtype), - /* K31 */ be_nested_str_weak(_S), - /* K32 */ be_nested_str_weak(_V), - /* K33 */ be_nested_str_weak(_CM1), - /* K34 */ be_nested_str_weak(hostname_wifi), - /* K35 */ be_nested_str_weak(mdns_pase_wifi), - /* K36 */ be_nested_str_weak(MTR_X3A_X20starting_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27_X20ptr_X20to_X20_X60_X25s_X2Elocal_X60), - /* K37 */ be_nested_str_weak(wifi), - /* K38 */ be_nested_str_weak(MTR_X3A_X20Exception), - /* K39 */ be_nested_str_weak(_X7C), }), - be_str_weak(mdns_announce_PASE), + 1, /* has constants */ + ( &(const bvalue[ 3]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota), + /* K1 */ be_nested_str_weak(set_timer), + /* K2 */ be_const_int(0), + }), + be_str_weak(start_operational_discovery_deferred), &be_const_str_solidified, - ( &(const binstruction[225]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0x600C0013, // 0002 GETGBL R3 G19 - 0x7C0C0000, // 0003 CALL R3 0 - 0x60100008, // 0004 GETGBL R4 G8 - 0x88140103, // 0005 GETMBR R5 R0 K3 - 0x7C100200, // 0006 CALL R4 1 - 0x00100904, // 0007 ADD R4 R4 K4 - 0x60140008, // 0008 GETGBL R5 G8 - 0x88180105, // 0009 GETMBR R6 R0 K5 - 0x7C140200, // 000A CALL R5 1 - 0x00100805, // 000B ADD R4 R4 R5 - 0x980E0404, // 000C SETIDX R3 K2 R4 - 0x88100107, // 000D GETMBR R4 R0 K7 - 0x980E0C04, // 000E SETIDX R3 K6 R4 - 0x980E1109, // 000F SETIDX R3 K8 K9 - 0x980E150B, // 0010 SETIDX R3 K10 K11 - 0x54121387, // 0011 LDINT R4 5000 - 0x980E1804, // 0012 SETIDX R3 K12 R4 - 0x5412012B, // 0013 LDINT R4 300 - 0x980E1A04, // 0014 SETIDX R3 K13 R4 - 0x8C10050F, // 0015 GETMET R4 R2 K15 - 0x541A0007, // 0016 LDINT R6 8 - 0x7C100400, // 0017 CALL R4 2 - 0x8C100910, // 0018 GETMET R4 R4 K16 - 0x7C100200, // 0019 CALL R4 1 - 0x90021C04, // 001A SETMBR R0 K14 R4 - 0x8C10050F, // 001B GETMET R4 R2 K15 - 0x541A0007, // 001C LDINT R6 8 - 0x7C100400, // 001D CALL R4 2 - 0x8C100910, // 001E GETMET R4 R4 K16 - 0x7C100200, // 001F CALL R4 1 - 0x90022204, // 0020 SETMBR R0 K17 R4 - 0xA80200AD, // 0021 EXBLK 0 #00D0 - 0x88100112, // 0022 GETMBR R4 R0 K18 - 0x78120053, // 0023 JMPF R4 #0078 - 0x8C100313, // 0024 GETMET R4 R1 K19 - 0x58180014, // 0025 LDCONST R6 K20 - 0x581C0015, // 0026 LDCONST R7 K21 - 0x542215A3, // 0027 LDINT R8 5540 - 0x5C240600, // 0028 MOVE R9 R3 - 0x88280111, // 0029 GETMBR R10 R0 K17 - 0x882C0112, // 002A GETMBR R11 R0 K18 - 0x7C100E00, // 002B CALL R4 7 - 0x50100200, // 002C LDBOOL R4 1 0 - 0x90022C04, // 002D SETMBR R0 K22 R4 - 0xB8122E00, // 002E GETNGBL R4 K23 - 0x60140018, // 002F GETGBL R5 G24 - 0x58180018, // 0030 LDCONST R6 K24 - 0x581C0019, // 0031 LDCONST R7 K25 - 0x88200111, // 0032 GETMBR R8 R0 K17 - 0x88240112, // 0033 GETMBR R9 R0 K18 - 0x7C140800, // 0034 CALL R5 4 - 0x5818001A, // 0035 LDCONST R6 K26 - 0x7C100400, // 0036 CALL R4 2 - 0x60100008, // 0037 GETGBL R4 G8 - 0x88140107, // 0038 GETMBR R5 R0 K7 - 0x541A0FFE, // 0039 LDINT R6 4095 - 0x2C140A06, // 003A AND R5 R5 R6 - 0x7C100200, // 003B CALL R4 1 - 0x00123604, // 003C ADD R4 K27 R4 - 0xB8162E00, // 003D GETNGBL R5 K23 - 0x001A3804, // 003E ADD R6 K28 R4 - 0x581C001D, // 003F LDCONST R7 K29 - 0x7C140400, // 0040 CALL R5 2 - 0x8C14031E, // 0041 GETMET R5 R1 K30 - 0x581C0014, // 0042 LDCONST R7 K20 - 0x58200015, // 0043 LDCONST R8 K21 - 0x88240111, // 0044 GETMBR R9 R0 K17 - 0x88280112, // 0045 GETMBR R10 R0 K18 - 0x5C2C0800, // 0046 MOVE R11 R4 - 0x7C140C00, // 0047 CALL R5 6 - 0x60140008, // 0048 GETGBL R5 G8 - 0x88180107, // 0049 GETMBR R6 R0 K7 - 0x541E0EFF, // 004A LDINT R7 3840 - 0x2C180C07, // 004B AND R6 R6 R7 - 0x541E0007, // 004C LDINT R7 8 - 0x3C180C07, // 004D SHR R6 R6 R7 - 0x7C140200, // 004E CALL R5 1 - 0x00163E05, // 004F ADD R5 K31 R5 - 0x5C100A00, // 0050 MOVE R4 R5 - 0xB8162E00, // 0051 GETNGBL R5 K23 - 0x001A3804, // 0052 ADD R6 K28 R4 - 0x581C001D, // 0053 LDCONST R7 K29 - 0x7C140400, // 0054 CALL R5 2 - 0x8C14031E, // 0055 GETMET R5 R1 K30 - 0x581C0014, // 0056 LDCONST R7 K20 - 0x58200015, // 0057 LDCONST R8 K21 - 0x88240111, // 0058 GETMBR R9 R0 K17 - 0x88280112, // 0059 GETMBR R10 R0 K18 - 0x5C2C0800, // 005A MOVE R11 R4 - 0x7C140C00, // 005B CALL R5 6 - 0x60140008, // 005C GETGBL R5 G8 - 0x88180103, // 005D GETMBR R6 R0 K3 - 0x7C140200, // 005E CALL R5 1 - 0x00164005, // 005F ADD R5 K32 R5 - 0x5C100A00, // 0060 MOVE R4 R5 - 0xB8162E00, // 0061 GETNGBL R5 K23 - 0x001A3804, // 0062 ADD R6 K28 R4 - 0x581C001D, // 0063 LDCONST R7 K29 - 0x7C140400, // 0064 CALL R5 2 - 0x8C14031E, // 0065 GETMET R5 R1 K30 - 0x581C0014, // 0066 LDCONST R7 K20 - 0x58200015, // 0067 LDCONST R8 K21 - 0x88240111, // 0068 GETMBR R9 R0 K17 - 0x88280112, // 0069 GETMBR R10 R0 K18 - 0x5C2C0800, // 006A MOVE R11 R4 - 0x7C140C00, // 006B CALL R5 6 - 0x58100021, // 006C LDCONST R4 K33 - 0xB8162E00, // 006D GETNGBL R5 K23 - 0x001A3804, // 006E ADD R6 K28 R4 - 0x581C001D, // 006F LDCONST R7 K29 - 0x7C140400, // 0070 CALL R5 2 - 0x8C14031E, // 0071 GETMET R5 R1 K30 - 0x581C0014, // 0072 LDCONST R7 K20 - 0x58200015, // 0073 LDCONST R8 K21 - 0x88240111, // 0074 GETMBR R9 R0 K17 - 0x88280112, // 0075 GETMBR R10 R0 K18 - 0x5C2C0800, // 0076 MOVE R11 R4 - 0x7C140C00, // 0077 CALL R5 6 - 0x88100122, // 0078 GETMBR R4 R0 K34 - 0x78120053, // 0079 JMPF R4 #00CE - 0x8C100313, // 007A GETMET R4 R1 K19 - 0x58180014, // 007B LDCONST R6 K20 - 0x581C0015, // 007C LDCONST R7 K21 - 0x542215A3, // 007D LDINT R8 5540 - 0x5C240600, // 007E MOVE R9 R3 - 0x8828010E, // 007F GETMBR R10 R0 K14 - 0x882C0122, // 0080 GETMBR R11 R0 K34 - 0x7C100E00, // 0081 CALL R4 7 - 0x50100200, // 0082 LDBOOL R4 1 0 - 0x90024604, // 0083 SETMBR R0 K35 R4 - 0xB8122E00, // 0084 GETNGBL R4 K23 - 0x60140018, // 0085 GETGBL R5 G24 - 0x58180024, // 0086 LDCONST R6 K36 - 0x581C0025, // 0087 LDCONST R7 K37 - 0x8820010E, // 0088 GETMBR R8 R0 K14 - 0x88240122, // 0089 GETMBR R9 R0 K34 - 0x7C140800, // 008A CALL R5 4 - 0x5818001D, // 008B LDCONST R6 K29 - 0x7C100400, // 008C CALL R4 2 - 0x60100008, // 008D GETGBL R4 G8 - 0x88140107, // 008E GETMBR R5 R0 K7 - 0x541A0FFE, // 008F LDINT R6 4095 - 0x2C140A06, // 0090 AND R5 R5 R6 - 0x7C100200, // 0091 CALL R4 1 - 0x00123604, // 0092 ADD R4 K27 R4 - 0xB8162E00, // 0093 GETNGBL R5 K23 - 0x001A3804, // 0094 ADD R6 K28 R4 - 0x581C001D, // 0095 LDCONST R7 K29 - 0x7C140400, // 0096 CALL R5 2 - 0x8C14031E, // 0097 GETMET R5 R1 K30 - 0x581C0014, // 0098 LDCONST R7 K20 - 0x58200015, // 0099 LDCONST R8 K21 - 0x8824010E, // 009A GETMBR R9 R0 K14 - 0x88280122, // 009B GETMBR R10 R0 K34 - 0x5C2C0800, // 009C MOVE R11 R4 - 0x7C140C00, // 009D CALL R5 6 - 0x60140008, // 009E GETGBL R5 G8 - 0x88180107, // 009F GETMBR R6 R0 K7 - 0x541E0EFF, // 00A0 LDINT R7 3840 - 0x2C180C07, // 00A1 AND R6 R6 R7 - 0x541E0007, // 00A2 LDINT R7 8 - 0x3C180C07, // 00A3 SHR R6 R6 R7 - 0x7C140200, // 00A4 CALL R5 1 - 0x00163E05, // 00A5 ADD R5 K31 R5 - 0x5C100A00, // 00A6 MOVE R4 R5 - 0xB8162E00, // 00A7 GETNGBL R5 K23 - 0x001A3804, // 00A8 ADD R6 K28 R4 - 0x581C001D, // 00A9 LDCONST R7 K29 - 0x7C140400, // 00AA CALL R5 2 - 0x8C14031E, // 00AB GETMET R5 R1 K30 - 0x581C0014, // 00AC LDCONST R7 K20 - 0x58200015, // 00AD LDCONST R8 K21 - 0x8824010E, // 00AE GETMBR R9 R0 K14 - 0x88280122, // 00AF GETMBR R10 R0 K34 - 0x5C2C0800, // 00B0 MOVE R11 R4 - 0x7C140C00, // 00B1 CALL R5 6 - 0x60140008, // 00B2 GETGBL R5 G8 - 0x88180103, // 00B3 GETMBR R6 R0 K3 - 0x7C140200, // 00B4 CALL R5 1 - 0x00164005, // 00B5 ADD R5 K32 R5 - 0x5C100A00, // 00B6 MOVE R4 R5 - 0xB8162E00, // 00B7 GETNGBL R5 K23 - 0x001A3804, // 00B8 ADD R6 K28 R4 - 0x581C001D, // 00B9 LDCONST R7 K29 - 0x7C140400, // 00BA CALL R5 2 - 0x8C14031E, // 00BB GETMET R5 R1 K30 - 0x581C0014, // 00BC LDCONST R7 K20 - 0x58200015, // 00BD LDCONST R8 K21 - 0x8824010E, // 00BE GETMBR R9 R0 K14 - 0x88280122, // 00BF GETMBR R10 R0 K34 - 0x5C2C0800, // 00C0 MOVE R11 R4 - 0x7C140C00, // 00C1 CALL R5 6 - 0x58100021, // 00C2 LDCONST R4 K33 - 0xB8162E00, // 00C3 GETNGBL R5 K23 - 0x001A3804, // 00C4 ADD R6 K28 R4 - 0x581C001D, // 00C5 LDCONST R7 K29 - 0x7C140400, // 00C6 CALL R5 2 - 0x8C14031E, // 00C7 GETMET R5 R1 K30 - 0x581C0014, // 00C8 LDCONST R7 K20 - 0x58200015, // 00C9 LDCONST R8 K21 - 0x8824010E, // 00CA GETMBR R9 R0 K14 - 0x88280122, // 00CB GETMBR R10 R0 K34 - 0x5C2C0800, // 00CC MOVE R11 R4 - 0x7C140C00, // 00CD CALL R5 6 - 0xA8040001, // 00CE EXBLK 1 1 - 0x7002000F, // 00CF JMP #00E0 - 0xAC100002, // 00D0 CATCH R4 0 2 - 0x7002000C, // 00D1 JMP #00DF - 0xB81A2E00, // 00D2 GETNGBL R6 K23 - 0x601C0008, // 00D3 GETGBL R7 G8 - 0x5C200800, // 00D4 MOVE R8 R4 - 0x7C1C0200, // 00D5 CALL R7 1 - 0x001E4C07, // 00D6 ADD R7 K38 R7 - 0x001C0F27, // 00D7 ADD R7 R7 K39 - 0x60200008, // 00D8 GETGBL R8 G8 - 0x5C240A00, // 00D9 MOVE R9 R5 - 0x7C200200, // 00DA CALL R8 1 - 0x001C0E08, // 00DB ADD R7 R7 R8 - 0x5820001A, // 00DC LDCONST R8 K26 - 0x7C180400, // 00DD CALL R6 2 - 0x70020000, // 00DE JMP #00E0 - 0xB0080000, // 00DF RAISE 2 R0 R0 - 0x80000000, // 00E0 RET 0 + ( &(const binstruction[ 7]) { /* code */ + 0xB80A0000, // 0000 GETNGBL R2 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x58100002, // 0002 LDCONST R4 K2 + 0x84140000, // 0003 CLOSURE R5 P0 + 0x7C080600, // 0004 CALL R2 3 + 0xA0000000, // 0005 CLOSE R0 + 0x80000000, // 0006 RET 0 }) ) ); @@ -667,271 +464,58 @@ be_local_closure(class_Matter_Device_mdns_announce_PASE, /* name */ /******************************************************************** -** Solidified function: conf_to_log +** Solidified function: get_active_endpoints ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_conf_to_log, /* name */ +be_local_closure(class_Matter_Device_get_active_endpoints, /* name */ be_nested_proto( 9, /* nstack */ - 1, /* argc */ - 4, /* varg */ + 2, /* argc */ + 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_const_class(be_class_Matter_Device), - /* K1 */ be_nested_str_weak(), - /* K2 */ be_nested_str_weak(k2l), - /* K3 */ be_nested_str_weak(type), - /* K4 */ be_nested_str_weak(_X20_X25s_X3A_X25s), + /* K0 */ be_nested_str_weak(plugins), + /* K1 */ be_nested_str_weak(get_endpoint), + /* K2 */ be_const_int(0), + /* K3 */ be_nested_str_weak(find), + /* K4 */ be_nested_str_weak(push), /* K5 */ be_nested_str_weak(stop_iteration), }), - be_str_weak(conf_to_log), - &be_const_str_solidified, - ( &(const binstruction[24]) { /* code */ - 0x58040000, // 0000 LDCONST R1 K0 - 0x58080001, // 0001 LDCONST R2 K1 - 0x600C0010, // 0002 GETGBL R3 G16 - 0x8C100302, // 0003 GETMET R4 R1 K2 - 0x5C180000, // 0004 MOVE R6 R0 - 0x7C100400, // 0005 CALL R4 2 - 0x7C0C0200, // 0006 CALL R3 1 - 0xA802000B, // 0007 EXBLK 0 #0014 - 0x5C100600, // 0008 MOVE R4 R3 - 0x7C100000, // 0009 CALL R4 0 - 0x1C140903, // 000A EQ R5 R4 K3 - 0x78160000, // 000B JMPF R5 #000D - 0x7001FFFA, // 000C JMP #0008 - 0x60140018, // 000D GETGBL R5 G24 - 0x58180004, // 000E LDCONST R6 K4 - 0x5C1C0800, // 000F MOVE R7 R4 - 0x94200004, // 0010 GETIDX R8 R0 R4 - 0x7C140600, // 0011 CALL R5 3 - 0x00080405, // 0012 ADD R2 R2 R5 - 0x7001FFF3, // 0013 JMP #0008 - 0x580C0005, // 0014 LDCONST R3 K5 - 0xAC0C0200, // 0015 CATCH R3 1 0 - 0xB0080000, // 0016 RAISE 2 R0 R0 - 0x80040400, // 0017 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: generate_random_passcode -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_generate_random_passcode, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 8]) { /* constants */ - /* K0 */ be_nested_str_weak(crypto), - /* K1 */ be_nested_str_weak(random), - /* K2 */ be_nested_str_weak(get), - /* K3 */ be_const_int(0), - /* K4 */ be_const_int(134217727), - /* K5 */ be_const_int(99999998), - /* K6 */ be_nested_str_weak(PASSCODE_INVALID), - /* K7 */ be_nested_str_weak(stop_iteration), - }), - be_str_weak(generate_random_passcode), - &be_const_str_solidified, - ( &(const binstruction[35]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x4C080000, // 0001 LDNIL R2 - 0x500C0200, // 0002 LDBOOL R3 1 0 - 0x780E001D, // 0003 JMPF R3 #0022 - 0x8C0C0301, // 0004 GETMET R3 R1 K1 - 0x54160003, // 0005 LDINT R5 4 - 0x7C0C0400, // 0006 CALL R3 2 - 0x8C0C0702, // 0007 GETMET R3 R3 K2 - 0x58140003, // 0008 LDCONST R5 K3 - 0x541A0003, // 0009 LDINT R6 4 - 0x7C0C0600, // 000A CALL R3 3 - 0x2C0C0704, // 000B AND R3 R3 K4 - 0x5C080600, // 000C MOVE R2 R3 - 0x240C0505, // 000D GT R3 R2 K5 - 0x780E0000, // 000E JMPF R3 #0010 - 0x7001FFF1, // 000F JMP #0002 - 0x600C0010, // 0010 GETGBL R3 G16 - 0x88100106, // 0011 GETMBR R4 R0 K6 - 0x7C0C0200, // 0012 CALL R3 1 - 0xA8020005, // 0013 EXBLK 0 #001A - 0x5C100600, // 0014 MOVE R4 R3 - 0x7C100000, // 0015 CALL R4 0 - 0x1C140404, // 0016 EQ R5 R2 R4 - 0x78160000, // 0017 JMPF R5 #0019 - 0x4C080000, // 0018 LDNIL R2 - 0x7001FFF9, // 0019 JMP #0014 - 0x580C0007, // 001A LDCONST R3 K7 - 0xAC0C0200, // 001B CATCH R3 1 0 - 0xB0080000, // 001C RAISE 2 R0 R0 - 0x4C0C0000, // 001D LDNIL R3 - 0x200C0403, // 001E NE R3 R2 R3 - 0x780E0000, // 001F JMPF R3 #0021 - 0x80040400, // 0020 RET 1 R2 - 0x7001FFDF, // 0021 JMP #0002 - 0x80000000, // 0022 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: event_fabrics_saved -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_event_fabrics_saved, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(sessions), - /* K1 */ be_nested_str_weak(count_active_fabrics), - /* K2 */ be_const_int(0), - /* K3 */ be_nested_str_weak(plugins_persist), - /* K4 */ be_nested_str_weak(save_param), - }), - be_str_weak(event_fabrics_saved), - &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x24040302, // 0003 GT R1 R1 K2 - 0x78060005, // 0004 JMPF R1 #000B - 0x88040103, // 0005 GETMBR R1 R0 K3 - 0x74060003, // 0006 JMPT R1 #000B - 0x50040200, // 0007 LDBOOL R1 1 0 - 0x90020601, // 0008 SETMBR R0 K3 R1 - 0x8C040104, // 0009 GETMET R1 R0 K4 - 0x7C040200, // 000A CALL R1 1 - 0x80000000, // 000B RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: process_attribute_expansion -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_process_attribute_expansion, /* name */ - be_nested_proto( - 12, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 9]) { /* constants */ - /* K0 */ be_nested_str_weak(endpoint), - /* K1 */ be_nested_str_weak(cluster), - /* K2 */ be_nested_str_weak(attribute), - /* K3 */ be_nested_str_weak(matter), - /* K4 */ be_nested_str_weak(PathGenerator), - /* K5 */ be_nested_str_weak(start), - /* K6 */ be_nested_str_weak(is_direct), - /* K7 */ be_nested_str_weak(next_attribute), - /* K8 */ be_nested_str_weak(get_pi), - }), - be_str_weak(process_attribute_expansion), + be_str_weak(get_active_endpoints), &be_const_str_solidified, ( &(const binstruction[28]) { /* code */ - 0x880C0300, // 0000 GETMBR R3 R1 K0 - 0x88100301, // 0001 GETMBR R4 R1 K1 - 0x88140302, // 0002 GETMBR R5 R1 K2 - 0xB81A0600, // 0003 GETNGBL R6 K3 - 0x8C180D04, // 0004 GETMET R6 R6 K4 - 0x5C200000, // 0005 MOVE R8 R0 - 0x7C180400, // 0006 CALL R6 2 - 0x8C1C0D05, // 0007 GETMET R7 R6 K5 - 0x5C240600, // 0008 MOVE R9 R3 - 0x5C280800, // 0009 MOVE R10 R4 - 0x5C2C0A00, // 000A MOVE R11 R5 - 0x7C1C0800, // 000B CALL R7 4 - 0x8C1C0D06, // 000C GETMET R7 R6 K6 - 0x7C1C0200, // 000D CALL R7 1 - 0x4C200000, // 000E LDNIL R8 - 0x8C240D07, // 000F GETMET R9 R6 K7 - 0x7C240200, // 0010 CALL R9 1 - 0x5C201200, // 0011 MOVE R8 R9 - 0x4C280000, // 0012 LDNIL R10 - 0x2024120A, // 0013 NE R9 R9 R10 - 0x78260005, // 0014 JMPF R9 #001B - 0x5C240400, // 0015 MOVE R9 R2 - 0x8C280D08, // 0016 GETMET R10 R6 K8 - 0x7C280200, // 0017 CALL R10 1 - 0x5C2C1000, // 0018 MOVE R11 R8 - 0x7C240400, // 0019 CALL R9 2 - 0x7001FFF3, // 001A JMP #000F - 0x80000000, // 001B RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: every_250ms -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_every_250ms, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(read_sensors_scheduler), - /* K1 */ be_const_int(0), - /* K2 */ be_nested_str_weak(plugins), - /* K3 */ be_nested_str_weak(every_250ms), - /* K4 */ be_const_int(1), - }), - be_str_weak(every_250ms), - &be_const_str_solidified, - ( &(const binstruction[15]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x7C040200, // 0001 CALL R1 1 - 0x58040001, // 0002 LDCONST R1 K1 - 0x6008000C, // 0003 GETGBL R2 G12 - 0x880C0102, // 0004 GETMBR R3 R0 K2 - 0x7C080200, // 0005 CALL R2 1 - 0x14080202, // 0006 LT R2 R1 R2 - 0x780A0005, // 0007 JMPF R2 #000E - 0x88080102, // 0008 GETMBR R2 R0 K2 - 0x94080401, // 0009 GETIDX R2 R2 R1 - 0x8C080503, // 000A GETMET R2 R2 K3 - 0x7C080200, // 000B CALL R2 1 - 0x00040304, // 000C ADD R1 R1 K4 - 0x7001FFF4, // 000D JMP #0003 - 0x80000000, // 000E RET 0 + 0x60080012, // 0000 GETGBL R2 G18 + 0x7C080000, // 0001 CALL R2 0 + 0x600C0010, // 0002 GETGBL R3 G16 + 0x88100100, // 0003 GETMBR R4 R0 K0 + 0x7C0C0200, // 0004 CALL R3 1 + 0xA8020011, // 0005 EXBLK 0 #0018 + 0x5C100600, // 0006 MOVE R4 R3 + 0x7C100000, // 0007 CALL R4 0 + 0x8C140901, // 0008 GETMET R5 R4 K1 + 0x7C140200, // 0009 CALL R5 1 + 0x78060002, // 000A JMPF R1 #000E + 0x1C180B02, // 000B EQ R6 R5 K2 + 0x781A0000, // 000C JMPF R6 #000E + 0x7001FFF7, // 000D JMP #0006 + 0x8C180503, // 000E GETMET R6 R2 K3 + 0x5C200A00, // 000F MOVE R8 R5 + 0x7C180400, // 0010 CALL R6 2 + 0x4C1C0000, // 0011 LDNIL R7 + 0x1C180C07, // 0012 EQ R6 R6 R7 + 0x781A0002, // 0013 JMPF R6 #0017 + 0x8C180504, // 0014 GETMET R6 R2 K4 + 0x5C200A00, // 0015 MOVE R8 R5 + 0x7C180400, // 0016 CALL R6 2 + 0x7001FFED, // 0017 JMP #0006 + 0x580C0005, // 0018 LDCONST R3 K5 + 0xAC0C0200, // 0019 CATCH R3 1 0 + 0xB0080000, // 001A RAISE 2 R0 R0 + 0x80040400, // 001B RET 1 R2 }) ) ); @@ -995,87 +579,6 @@ be_local_closure(class_Matter_Device_invoke_request, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: k2l -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_k2l, /* name */ - be_nested_proto( - 8, /* nstack */ - 1, /* argc */ - 4, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_const_class(be_class_Matter_Device), - /* K1 */ be_nested_str_weak(keys), - /* K2 */ be_nested_str_weak(push), - /* K3 */ be_nested_str_weak(stop_iteration), - /* K4 */ be_const_int(1), - /* K5 */ be_const_int(0), - }), - be_str_weak(k2l), - &be_const_str_solidified, - ( &(const binstruction[50]) { /* code */ - 0x58040000, // 0000 LDCONST R1 K0 - 0x60080012, // 0001 GETGBL R2 G18 - 0x7C080000, // 0002 CALL R2 0 - 0x4C0C0000, // 0003 LDNIL R3 - 0x1C0C0003, // 0004 EQ R3 R0 R3 - 0x780E0000, // 0005 JMPF R3 #0007 - 0x80040400, // 0006 RET 1 R2 - 0x600C0010, // 0007 GETGBL R3 G16 - 0x8C100101, // 0008 GETMET R4 R0 K1 - 0x7C100200, // 0009 CALL R4 1 - 0x7C0C0200, // 000A CALL R3 1 - 0xA8020005, // 000B EXBLK 0 #0012 - 0x5C100600, // 000C MOVE R4 R3 - 0x7C100000, // 000D CALL R4 0 - 0x8C140502, // 000E GETMET R5 R2 K2 - 0x5C1C0800, // 000F MOVE R7 R4 - 0x7C140400, // 0010 CALL R5 2 - 0x7001FFF9, // 0011 JMP #000C - 0x580C0003, // 0012 LDCONST R3 K3 - 0xAC0C0200, // 0013 CATCH R3 1 0 - 0xB0080000, // 0014 RAISE 2 R0 R0 - 0x600C0010, // 0015 GETGBL R3 G16 - 0x6010000C, // 0016 GETGBL R4 G12 - 0x5C140400, // 0017 MOVE R5 R2 - 0x7C100200, // 0018 CALL R4 1 - 0x04100904, // 0019 SUB R4 R4 K4 - 0x40120804, // 001A CONNECT R4 K4 R4 - 0x7C0C0200, // 001B CALL R3 1 - 0xA8020010, // 001C EXBLK 0 #002E - 0x5C100600, // 001D MOVE R4 R3 - 0x7C100000, // 001E CALL R4 0 - 0x94140404, // 001F GETIDX R5 R2 R4 - 0x5C180800, // 0020 MOVE R6 R4 - 0x241C0D05, // 0021 GT R7 R6 K5 - 0x781E0008, // 0022 JMPF R7 #002C - 0x041C0D04, // 0023 SUB R7 R6 K4 - 0x941C0407, // 0024 GETIDX R7 R2 R7 - 0x241C0E05, // 0025 GT R7 R7 R5 - 0x781E0004, // 0026 JMPF R7 #002C - 0x041C0D04, // 0027 SUB R7 R6 K4 - 0x941C0407, // 0028 GETIDX R7 R2 R7 - 0x98080C07, // 0029 SETIDX R2 R6 R7 - 0x04180D04, // 002A SUB R6 R6 K4 - 0x7001FFF4, // 002B JMP #0021 - 0x98080C05, // 002C SETIDX R2 R6 R5 - 0x7001FFEE, // 002D JMP #001D - 0x580C0003, // 002E LDCONST R3 K3 - 0xAC0C0200, // 002F CATCH R3 1 0 - 0xB0080000, // 0030 RAISE 2 R0 R0 - 0x80040400, // 0031 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: _instantiate_plugins_from_config ********************************************************************/ @@ -1279,12 +782,12 @@ be_local_closure(class_Matter_Device__instantiate_plugins_from_config, /* name /******************************************************************** -** Solidified function: add_read_sensors_schedule +** Solidified function: start_operational_discovery ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_add_read_sensors_schedule, /* name */ +be_local_closure(class_Matter_Device_start_operational_discovery, /* name */ be_nested_proto( - 5, /* nstack */ + 7, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -1293,27 +796,581 @@ be_local_closure(class_Matter_Device_add_read_sensors_schedule, /* name */ &be_class_Matter_Device, 1, /* has constants */ ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(probe_sensor_time), - /* K1 */ be_nested_str_weak(probe_sensor_timestamp), - /* K2 */ be_nested_str_weak(matter), - /* K3 */ be_nested_str_weak(jitter), + /* K0 */ be_nested_str_weak(crypto), + /* K1 */ be_nested_str_weak(mdns), + /* K2 */ be_nested_str_weak(stop_basic_commissioning), + /* K3 */ be_nested_str_weak(mdns_announce_op_discovery), }), - be_str_weak(add_read_sensors_schedule), + be_str_weak(start_operational_discovery), + &be_const_str_solidified, + ( &(const binstruction[ 8]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0xA40E0200, // 0001 IMPORT R3 K1 + 0x8C100102, // 0002 GETMET R4 R0 K2 + 0x7C100200, // 0003 CALL R4 1 + 0x8C100103, // 0004 GETMET R4 R0 K3 + 0x5C180200, // 0005 MOVE R6 R1 + 0x7C100400, // 0006 CALL R4 2 + 0x80000000, // 0007 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: _mdns_announce_hostname +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device__mdns_announce_hostname, /* name */ + be_nested_proto( + 14, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[27]) { /* constants */ + /* K0 */ be_nested_str_weak(mdns), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(start), + /* K3 */ be_nested_str_weak(tasmota), + /* K4 */ be_nested_str_weak(eth), + /* K5 */ be_nested_str_weak(hostname_eth), + /* K6 */ be_nested_str_weak(replace), + /* K7 */ be_nested_str_weak(find), + /* K8 */ be_nested_str_weak(mac), + /* K9 */ be_nested_str_weak(_X3A), + /* K10 */ be_nested_str_weak(), + /* K11 */ be_nested_str_weak(ipv4only), + /* K12 */ be_nested_str_weak(contains), + /* K13 */ be_nested_str_weak(ip6local), + /* K14 */ be_nested_str_weak(add_hostname), + /* K15 */ be_nested_str_weak(ip), + /* K16 */ be_nested_str_weak(ip6), + /* K17 */ be_nested_str_weak(log), + /* K18 */ be_nested_str_weak(MTR_X3A_X20calling_X20mdns_X2Eadd_hostname_X28_X25s_X2C_X20_X25s_X29), + /* K19 */ be_const_int(3), + /* K20 */ be_nested_str_weak(wifi), + /* K21 */ be_nested_str_weak(hostname_wifi), + /* K22 */ be_nested_str_weak(MTR_X3A_X20start_X20mDNS_X20on_X20_X25s_X20host_X20_X27_X25s_X2Elocal_X27), + /* K23 */ be_nested_str_weak(MTR_X3A_X20Exception), + /* K24 */ be_nested_str_weak(_X7C), + /* K25 */ be_const_int(2), + /* K26 */ be_nested_str_weak(mdns_announce_op_discovery_all_fabrics), + }), + be_str_weak(_mdns_announce_hostname), + &be_const_str_solidified, + ( &(const binstruction[144]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0xA40E0200, // 0001 IMPORT R3 K1 + 0x8C100502, // 0002 GETMET R4 R2 K2 + 0x7C100200, // 0003 CALL R4 1 + 0xA8020077, // 0004 EXBLK 0 #007D + 0x78060033, // 0005 JMPF R1 #003A + 0xB8120600, // 0006 GETNGBL R4 K3 + 0x8C100904, // 0007 GETMET R4 R4 K4 + 0x7C100200, // 0008 CALL R4 1 + 0x8C140706, // 0009 GETMET R5 R3 K6 + 0x8C1C0907, // 000A GETMET R7 R4 K7 + 0x58240008, // 000B LDCONST R9 K8 + 0x7C1C0400, // 000C CALL R7 2 + 0x58200009, // 000D LDCONST R8 K9 + 0x5824000A, // 000E LDCONST R9 K10 + 0x7C140800, // 000F CALL R5 4 + 0x90020A05, // 0010 SETMBR R0 K5 R5 + 0x8814010B, // 0011 GETMBR R5 R0 K11 + 0x78160003, // 0012 JMPF R5 #0017 + 0x8C14090C, // 0013 GETMET R5 R4 K12 + 0x581C000D, // 0014 LDCONST R7 K13 + 0x7C140400, // 0015 CALL R5 2 + 0x7416000F, // 0016 JMPT R5 #0027 + 0x8C14050E, // 0017 GETMET R5 R2 K14 + 0x881C0105, // 0018 GETMBR R7 R0 K5 + 0x8C200907, // 0019 GETMET R8 R4 K7 + 0x5828000D, // 001A LDCONST R10 K13 + 0x582C000A, // 001B LDCONST R11 K10 + 0x7C200600, // 001C CALL R8 3 + 0x8C240907, // 001D GETMET R9 R4 K7 + 0x582C000F, // 001E LDCONST R11 K15 + 0x5830000A, // 001F LDCONST R12 K10 + 0x7C240600, // 0020 CALL R9 3 + 0x8C280907, // 0021 GETMET R10 R4 K7 + 0x58300010, // 0022 LDCONST R12 K16 + 0x5834000A, // 0023 LDCONST R13 K10 + 0x7C280600, // 0024 CALL R10 3 + 0x7C140A00, // 0025 CALL R5 5 + 0x70020011, // 0026 JMP #0039 + 0xB8162200, // 0027 GETNGBL R5 K17 + 0x60180018, // 0028 GETGBL R6 G24 + 0x581C0012, // 0029 LDCONST R7 K18 + 0x88200105, // 002A GETMBR R8 R0 K5 + 0x8C240907, // 002B GETMET R9 R4 K7 + 0x582C000F, // 002C LDCONST R11 K15 + 0x5830000A, // 002D LDCONST R12 K10 + 0x7C240600, // 002E CALL R9 3 + 0x7C180600, // 002F CALL R6 3 + 0x581C0013, // 0030 LDCONST R7 K19 + 0x7C140400, // 0031 CALL R5 2 + 0x8C14050E, // 0032 GETMET R5 R2 K14 + 0x881C0105, // 0033 GETMBR R7 R0 K5 + 0x8C200907, // 0034 GETMET R8 R4 K7 + 0x5828000F, // 0035 LDCONST R10 K15 + 0x582C000A, // 0036 LDCONST R11 K10 + 0x7C200600, // 0037 CALL R8 3 + 0x7C140600, // 0038 CALL R5 3 + 0x70020032, // 0039 JMP #006D + 0xB8120600, // 003A GETNGBL R4 K3 + 0x8C100914, // 003B GETMET R4 R4 K20 + 0x7C100200, // 003C CALL R4 1 + 0x8C140706, // 003D GETMET R5 R3 K6 + 0x8C1C0907, // 003E GETMET R7 R4 K7 + 0x58240008, // 003F LDCONST R9 K8 + 0x7C1C0400, // 0040 CALL R7 2 + 0x58200009, // 0041 LDCONST R8 K9 + 0x5824000A, // 0042 LDCONST R9 K10 + 0x7C140800, // 0043 CALL R5 4 + 0x90022A05, // 0044 SETMBR R0 K21 R5 + 0x8814010B, // 0045 GETMBR R5 R0 K11 + 0x78160003, // 0046 JMPF R5 #004B + 0x8C14090C, // 0047 GETMET R5 R4 K12 + 0x581C000D, // 0048 LDCONST R7 K13 + 0x7C140400, // 0049 CALL R5 2 + 0x7416000F, // 004A JMPT R5 #005B + 0x8C14050E, // 004B GETMET R5 R2 K14 + 0x881C0115, // 004C GETMBR R7 R0 K21 + 0x8C200907, // 004D GETMET R8 R4 K7 + 0x5828000D, // 004E LDCONST R10 K13 + 0x582C000A, // 004F LDCONST R11 K10 + 0x7C200600, // 0050 CALL R8 3 + 0x8C240907, // 0051 GETMET R9 R4 K7 + 0x582C000F, // 0052 LDCONST R11 K15 + 0x5830000A, // 0053 LDCONST R12 K10 + 0x7C240600, // 0054 CALL R9 3 + 0x8C280907, // 0055 GETMET R10 R4 K7 + 0x58300010, // 0056 LDCONST R12 K16 + 0x5834000A, // 0057 LDCONST R13 K10 + 0x7C280600, // 0058 CALL R10 3 + 0x7C140A00, // 0059 CALL R5 5 + 0x70020011, // 005A JMP #006D + 0xB8162200, // 005B GETNGBL R5 K17 + 0x60180018, // 005C GETGBL R6 G24 + 0x581C0012, // 005D LDCONST R7 K18 + 0x88200115, // 005E GETMBR R8 R0 K21 + 0x8C240907, // 005F GETMET R9 R4 K7 + 0x582C000F, // 0060 LDCONST R11 K15 + 0x5830000A, // 0061 LDCONST R12 K10 + 0x7C240600, // 0062 CALL R9 3 + 0x7C180600, // 0063 CALL R6 3 + 0x581C0013, // 0064 LDCONST R7 K19 + 0x7C140400, // 0065 CALL R5 2 + 0x8C14050E, // 0066 GETMET R5 R2 K14 + 0x881C0115, // 0067 GETMBR R7 R0 K21 + 0x8C200907, // 0068 GETMET R8 R4 K7 + 0x5828000F, // 0069 LDCONST R10 K15 + 0x582C000A, // 006A LDCONST R11 K10 + 0x7C200600, // 006B CALL R8 3 + 0x7C140600, // 006C CALL R5 3 + 0xB8122200, // 006D GETNGBL R4 K17 + 0x60140018, // 006E GETGBL R5 G24 + 0x58180016, // 006F LDCONST R6 K22 + 0x78060001, // 0070 JMPF R1 #0073 + 0x581C0004, // 0071 LDCONST R7 K4 + 0x70020000, // 0072 JMP #0074 + 0x581C0014, // 0073 LDCONST R7 K20 + 0x78060001, // 0074 JMPF R1 #0077 + 0x88200105, // 0075 GETMBR R8 R0 K5 + 0x70020000, // 0076 JMP #0078 + 0x88200115, // 0077 GETMBR R8 R0 K21 + 0x7C140600, // 0078 CALL R5 3 + 0x58180013, // 0079 LDCONST R6 K19 + 0x7C100400, // 007A CALL R4 2 + 0xA8040001, // 007B EXBLK 1 1 + 0x7002000F, // 007C JMP #008D + 0xAC100002, // 007D CATCH R4 0 2 + 0x7002000C, // 007E JMP #008C + 0xB81A2200, // 007F GETNGBL R6 K17 + 0x601C0008, // 0080 GETGBL R7 G8 + 0x5C200800, // 0081 MOVE R8 R4 + 0x7C1C0200, // 0082 CALL R7 1 + 0x001E2E07, // 0083 ADD R7 K23 R7 + 0x001C0F18, // 0084 ADD R7 R7 K24 + 0x60200008, // 0085 GETGBL R8 G8 + 0x5C240A00, // 0086 MOVE R9 R5 + 0x7C200200, // 0087 CALL R8 1 + 0x001C0E08, // 0088 ADD R7 R7 R8 + 0x58200019, // 0089 LDCONST R8 K25 + 0x7C180400, // 008A CALL R6 2 + 0x70020000, // 008B JMP #008D + 0xB0080000, // 008C RAISE 2 R0 R0 + 0x8C10011A, // 008D GETMET R4 R0 K26 + 0x7C100200, // 008E CALL R4 1 + 0x80000000, // 008F RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: bridge_remove_endpoint +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_bridge_remove_endpoint, /* name */ + be_nested_proto( + 10, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[17]) { /* constants */ + /* K0 */ be_nested_str_weak(json), + /* K1 */ be_nested_str_weak(plugins_config), + /* K2 */ be_nested_str_weak(contains), + /* K3 */ be_nested_str_weak(log), + /* K4 */ be_nested_str_weak(MTR_X3A_X20Cannot_X20remove_X20an_X20enpoint_X20not_X20configured_X3A_X20), + /* K5 */ be_const_int(3), + /* K6 */ be_nested_str_weak(MTR_X3A_X20deleting_X20endpoint_X20_X3D_X20_X25i), + /* K7 */ be_const_int(2), + /* K8 */ be_nested_str_weak(remove), + /* K9 */ be_nested_str_weak(plugins_persist), + /* K10 */ be_const_int(0), + /* K11 */ be_nested_str_weak(plugins), + /* K12 */ be_nested_str_weak(get_endpoint), + /* K13 */ be_const_int(1), + /* K14 */ be_nested_str_weak(clean_remotes), + /* K15 */ be_nested_str_weak(save_param), + /* K16 */ be_nested_str_weak(signal_endpoints_changed), + }), + be_str_weak(bridge_remove_endpoint), + &be_const_str_solidified, + ( &(const binstruction[56]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0x600C0008, // 0001 GETGBL R3 G8 + 0x5C100200, // 0002 MOVE R4 R1 + 0x7C0C0200, // 0003 CALL R3 1 + 0x4C100000, // 0004 LDNIL R4 + 0x4C140000, // 0005 LDNIL R5 + 0x88180101, // 0006 GETMBR R6 R0 K1 + 0x8C180D02, // 0007 GETMET R6 R6 K2 + 0x5C200600, // 0008 MOVE R8 R3 + 0x7C180400, // 0009 CALL R6 2 + 0x741A0004, // 000A JMPT R6 #0010 + 0xB81A0600, // 000B GETNGBL R6 K3 + 0x001E0803, // 000C ADD R7 K4 R3 + 0x58200005, // 000D LDCONST R8 K5 + 0x7C180400, // 000E CALL R6 2 + 0x80000C00, // 000F RET 0 + 0xB81A0600, // 0010 GETNGBL R6 K3 + 0x601C0018, // 0011 GETGBL R7 G24 + 0x58200006, // 0012 LDCONST R8 K6 + 0x5C240200, // 0013 MOVE R9 R1 + 0x7C1C0400, // 0014 CALL R7 2 + 0x58200007, // 0015 LDCONST R8 K7 + 0x7C180400, // 0016 CALL R6 2 + 0x88180101, // 0017 GETMBR R6 R0 K1 + 0x8C180D08, // 0018 GETMET R6 R6 K8 + 0x5C200600, // 0019 MOVE R8 R3 + 0x7C180400, // 001A CALL R6 2 + 0x50180200, // 001B LDBOOL R6 1 0 + 0x90021206, // 001C SETMBR R0 K9 R6 + 0x5818000A, // 001D LDCONST R6 K10 + 0x601C000C, // 001E GETGBL R7 G12 + 0x8820010B, // 001F GETMBR R8 R0 K11 + 0x7C1C0200, // 0020 CALL R7 1 + 0x141C0C07, // 0021 LT R7 R6 R7 + 0x781E000D, // 0022 JMPF R7 #0031 + 0x881C010B, // 0023 GETMBR R7 R0 K11 + 0x941C0E06, // 0024 GETIDX R7 R7 R6 + 0x8C1C0F0C, // 0025 GETMET R7 R7 K12 + 0x7C1C0200, // 0026 CALL R7 1 + 0x1C1C0207, // 0027 EQ R7 R1 R7 + 0x781E0005, // 0028 JMPF R7 #002F + 0x881C010B, // 0029 GETMBR R7 R0 K11 + 0x8C1C0F08, // 002A GETMET R7 R7 K8 + 0x5C240C00, // 002B MOVE R9 R6 + 0x7C1C0400, // 002C CALL R7 2 + 0x70020002, // 002D JMP #0031 + 0x70020000, // 002E JMP #0030 + 0x00180D0D, // 002F ADD R6 R6 K13 + 0x7001FFEC, // 0030 JMP #001E + 0x8C1C010E, // 0031 GETMET R7 R0 K14 + 0x7C1C0200, // 0032 CALL R7 1 + 0x8C1C010F, // 0033 GETMET R7 R0 K15 + 0x7C1C0200, // 0034 CALL R7 1 + 0x8C1C0110, // 0035 GETMET R7 R0 K16 + 0x7C1C0200, // 0036 CALL R7 1 + 0x80000000, // 0037 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: start_mdns_announce_hostnames +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_start_mdns_announce_hostnames, /* name */ + be_nested_proto( + 6, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 3]) { + be_nested_proto( + 4, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(_mdns_announce_hostname), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(remove_rule), + /* K3 */ be_nested_str_weak(Wifi_X23Connected), + /* K4 */ be_nested_str_weak(matter_mdns_host), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[10]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x50080000, // 0002 LDBOOL R2 0 0 + 0x7C000400, // 0003 CALL R0 2 + 0xB8020200, // 0004 GETNGBL R0 K1 + 0x8C000102, // 0005 GETMET R0 R0 K2 + 0x58080003, // 0006 LDCONST R2 K3 + 0x580C0004, // 0007 LDCONST R3 K4 + 0x7C000600, // 0008 CALL R0 3 + 0x80000000, // 0009 RET 0 + }) + ), + be_nested_proto( + 4, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(_mdns_announce_hostname), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(remove_rule), + /* K3 */ be_nested_str_weak(Eth_X23Connected), + /* K4 */ be_nested_str_weak(matter_mdns_host), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[10]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x50080200, // 0002 LDBOOL R2 1 0 + 0x7C000400, // 0003 CALL R0 2 + 0xB8020200, // 0004 GETNGBL R0 K1 + 0x8C000102, // 0005 GETMET R0 R0 K2 + 0x58080003, // 0006 LDCONST R2 K3 + 0x580C0004, // 0007 LDCONST R3 K4 + 0x7C000600, // 0008 CALL R0 3 + 0x80000000, // 0009 RET 0 + }) + ), + &be_class_Matter_Device, + }), + 1, /* has constants */ + ( &(const bvalue[ 9]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota), + /* K1 */ be_nested_str_weak(wifi), + /* K2 */ be_nested_str_weak(up), + /* K3 */ be_nested_str_weak(_mdns_announce_hostname), + /* K4 */ be_nested_str_weak(add_rule), + /* K5 */ be_nested_str_weak(Wifi_X23Connected), + /* K6 */ be_nested_str_weak(matter_mdns_host), + /* K7 */ be_nested_str_weak(eth), + /* K8 */ be_nested_str_weak(Eth_X23Connected), + }), + be_str_weak(start_mdns_announce_hostnames), + &be_const_str_solidified, + ( &(const binstruction[32]) { /* code */ + 0xB8060000, // 0000 GETNGBL R1 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x7C040200, // 0002 CALL R1 1 + 0x94040302, // 0003 GETIDX R1 R1 K2 + 0x78060003, // 0004 JMPF R1 #0009 + 0x8C040103, // 0005 GETMET R1 R0 K3 + 0x500C0000, // 0006 LDBOOL R3 0 0 + 0x7C040400, // 0007 CALL R1 2 + 0x70020005, // 0008 JMP #000F + 0xB8060000, // 0009 GETNGBL R1 K0 + 0x8C040304, // 000A GETMET R1 R1 K4 + 0x580C0005, // 000B LDCONST R3 K5 + 0x84100000, // 000C CLOSURE R4 P0 + 0x58140006, // 000D LDCONST R5 K6 + 0x7C040800, // 000E CALL R1 4 + 0xB8060000, // 000F GETNGBL R1 K0 + 0x8C040307, // 0010 GETMET R1 R1 K7 + 0x7C040200, // 0011 CALL R1 1 + 0x94040302, // 0012 GETIDX R1 R1 K2 + 0x78060003, // 0013 JMPF R1 #0018 + 0x8C040103, // 0014 GETMET R1 R0 K3 + 0x500C0200, // 0015 LDBOOL R3 1 0 + 0x7C040400, // 0016 CALL R1 2 + 0x70020005, // 0017 JMP #001E + 0xB8060000, // 0018 GETNGBL R1 K0 + 0x8C040304, // 0019 GETMET R1 R1 K4 + 0x580C0008, // 001A LDCONST R3 K8 + 0x84100001, // 001B CLOSURE R4 P1 + 0x58140006, // 001C LDCONST R5 K6 + 0x7C040800, // 001D CALL R1 4 + 0xA0000000, // 001E CLOSE R0 + 0x80000000, // 001F RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: _start_udp +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device__start_udp, /* name */ + be_nested_proto( + 7, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 2]) { + be_nested_proto( + 8, /* nstack */ + 3, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(msg_received), + }), + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 7]) { /* code */ + 0x680C0000, // 0000 GETUPV R3 U0 + 0x8C0C0700, // 0001 GETMET R3 R3 K0 + 0x5C140000, // 0002 MOVE R5 R0 + 0x5C180200, // 0003 MOVE R6 R1 + 0x5C1C0400, // 0004 MOVE R7 R2 + 0x7C0C0800, // 0005 CALL R3 4 + 0x80040600, // 0006 RET 1 R3 + }) + ), + &be_class_Matter_Device, + }), + 1, /* has constants */ + ( &(const bvalue[ 8]) { /* constants */ + /* K0 */ be_nested_str_weak(udp_server), + /* K1 */ be_nested_str_weak(log), + /* K2 */ be_nested_str_weak(MTR_X3A_X20Starting_X20UDP_X20server_X20on_X20port_X3A_X20), + /* K3 */ be_const_int(2), + /* K4 */ be_nested_str_weak(matter), + /* K5 */ be_nested_str_weak(UDPServer), + /* K6 */ be_nested_str_weak(), + /* K7 */ be_nested_str_weak(start), + }), + be_str_weak(_start_udp), + &be_const_str_solidified, + ( &(const binstruction[27]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x780A0000, // 0001 JMPF R2 #0003 + 0x80000400, // 0002 RET 0 + 0x4C080000, // 0003 LDNIL R2 + 0x1C080202, // 0004 EQ R2 R1 R2 + 0x780A0000, // 0005 JMPF R2 #0007 + 0x540615A3, // 0006 LDINT R1 5540 + 0xB80A0200, // 0007 GETNGBL R2 K1 + 0x600C0008, // 0008 GETGBL R3 G8 + 0x5C100200, // 0009 MOVE R4 R1 + 0x7C0C0200, // 000A CALL R3 1 + 0x000E0403, // 000B ADD R3 K2 R3 + 0x58100003, // 000C LDCONST R4 K3 + 0x7C080400, // 000D CALL R2 2 + 0xB80A0800, // 000E GETNGBL R2 K4 + 0x8C080505, // 000F GETMET R2 R2 K5 + 0x5C100000, // 0010 MOVE R4 R0 + 0x58140006, // 0011 LDCONST R5 K6 + 0x5C180200, // 0012 MOVE R6 R1 + 0x7C080800, // 0013 CALL R2 4 + 0x90020002, // 0014 SETMBR R0 K0 R2 + 0x88080100, // 0015 GETMBR R2 R0 K0 + 0x8C080507, // 0016 GETMET R2 R2 K7 + 0x84100000, // 0017 CLOSURE R4 P0 + 0x7C080400, // 0018 CALL R2 2 + 0xA0000000, // 0019 CLOSE R0 + 0x80000000, // 001A RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: signal_endpoints_changed +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_signal_endpoints_changed, /* name */ + be_nested_proto( + 7, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(attribute_updated), + /* K1 */ be_const_int(0), + /* K2 */ be_const_int(3), + /* K3 */ be_nested_str_weak(matter), + /* K4 */ be_nested_str_weak(AGGREGATOR_ENDPOINT), + }), + be_str_weak(signal_endpoints_changed), &be_const_str_solidified, ( &(const binstruction[14]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x4C0C0000, // 0001 LDNIL R3 - 0x1C080403, // 0002 EQ R2 R2 R3 - 0x740A0002, // 0003 JMPT R2 #0007 - 0x88080100, // 0004 GETMBR R2 R0 K0 - 0x24080401, // 0005 GT R2 R2 R1 - 0x780A0005, // 0006 JMPF R2 #000D - 0x90020001, // 0007 SETMBR R0 K0 R1 - 0xB80A0400, // 0008 GETNGBL R2 K2 - 0x8C080503, // 0009 GETMET R2 R2 K3 - 0x5C100200, // 000A MOVE R4 R1 - 0x7C080400, // 000B CALL R2 2 - 0x90020202, // 000C SETMBR R0 K1 R2 + 0x8C040100, // 0000 GETMET R1 R0 K0 + 0x580C0001, // 0001 LDCONST R3 K1 + 0x5412001C, // 0002 LDINT R4 29 + 0x58140002, // 0003 LDCONST R5 K2 + 0x50180000, // 0004 LDBOOL R6 0 0 + 0x7C040A00, // 0005 CALL R1 5 + 0x8C040100, // 0006 GETMET R1 R0 K0 + 0xB80E0600, // 0007 GETNGBL R3 K3 + 0x880C0704, // 0008 GETMBR R3 R3 K4 + 0x5412001C, // 0009 LDINT R4 29 + 0x58140002, // 000A LDCONST R5 K2 + 0x50180000, // 000B LDBOOL R6 0 0 + 0x7C040A00, // 000C CALL R1 5 0x80000000, // 000D RET 0 }) ) @@ -1322,10 +1379,146 @@ be_local_closure(class_Matter_Device_add_read_sensors_schedule, /* name */ /******************************************************************** -** Solidified function: remove_fabric +** Solidified function: sort_distinct ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_remove_fabric, /* name */ +be_local_closure(class_Matter_Device_sort_distinct, /* name */ + be_nested_proto( + 7, /* nstack */ + 1, /* argc */ + 4, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_const_class(be_class_Matter_Device), + /* K1 */ be_const_int(1), + /* K2 */ be_const_int(0), + /* K3 */ be_nested_str_weak(stop_iteration), + /* K4 */ be_nested_str_weak(remove), + }), + be_str_weak(sort_distinct), + &be_const_str_solidified, + ( &(const binstruction[53]) { /* code */ + 0x58040000, // 0000 LDCONST R1 K0 + 0x60080010, // 0001 GETGBL R2 G16 + 0x600C000C, // 0002 GETGBL R3 G12 + 0x5C100000, // 0003 MOVE R4 R0 + 0x7C0C0200, // 0004 CALL R3 1 + 0x040C0701, // 0005 SUB R3 R3 K1 + 0x400E0203, // 0006 CONNECT R3 K1 R3 + 0x7C080200, // 0007 CALL R2 1 + 0xA8020010, // 0008 EXBLK 0 #001A + 0x5C0C0400, // 0009 MOVE R3 R2 + 0x7C0C0000, // 000A CALL R3 0 + 0x94100003, // 000B GETIDX R4 R0 R3 + 0x5C140600, // 000C MOVE R5 R3 + 0x24180B02, // 000D GT R6 R5 K2 + 0x781A0008, // 000E JMPF R6 #0018 + 0x04180B01, // 000F SUB R6 R5 K1 + 0x94180006, // 0010 GETIDX R6 R0 R6 + 0x24180C04, // 0011 GT R6 R6 R4 + 0x781A0004, // 0012 JMPF R6 #0018 + 0x04180B01, // 0013 SUB R6 R5 K1 + 0x94180006, // 0014 GETIDX R6 R0 R6 + 0x98000A06, // 0015 SETIDX R0 R5 R6 + 0x04140B01, // 0016 SUB R5 R5 K1 + 0x7001FFF4, // 0017 JMP #000D + 0x98000A04, // 0018 SETIDX R0 R5 R4 + 0x7001FFEE, // 0019 JMP #0009 + 0x58080003, // 001A LDCONST R2 K3 + 0xAC080200, // 001B CATCH R2 1 0 + 0xB0080000, // 001C RAISE 2 R0 R0 + 0x58080001, // 001D LDCONST R2 K1 + 0x600C000C, // 001E GETGBL R3 G12 + 0x5C100000, // 001F MOVE R4 R0 + 0x7C0C0200, // 0020 CALL R3 1 + 0x180C0701, // 0021 LE R3 R3 K1 + 0x780E0000, // 0022 JMPF R3 #0024 + 0x80040000, // 0023 RET 1 R0 + 0x940C0102, // 0024 GETIDX R3 R0 K2 + 0x6010000C, // 0025 GETGBL R4 G12 + 0x5C140000, // 0026 MOVE R5 R0 + 0x7C100200, // 0027 CALL R4 1 + 0x14100404, // 0028 LT R4 R2 R4 + 0x78120009, // 0029 JMPF R4 #0034 + 0x94100002, // 002A GETIDX R4 R0 R2 + 0x1C100803, // 002B EQ R4 R4 R3 + 0x78120003, // 002C JMPF R4 #0031 + 0x8C100104, // 002D GETMET R4 R0 K4 + 0x5C180400, // 002E MOVE R6 R2 + 0x7C100400, // 002F CALL R4 2 + 0x70020001, // 0030 JMP #0033 + 0x940C0002, // 0031 GETIDX R3 R0 R2 + 0x00080501, // 0032 ADD R2 R2 K1 + 0x7001FFF0, // 0033 JMP #0025 + 0x80040000, // 0034 RET 1 R0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: mdns_remove_op_discovery_all_fabrics +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_mdns_remove_op_discovery_all_fabrics, /* name */ + be_nested_proto( + 6, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 6]) { /* constants */ + /* K0 */ be_nested_str_weak(sessions), + /* K1 */ be_nested_str_weak(active_fabrics), + /* K2 */ be_nested_str_weak(get_device_id), + /* K3 */ be_nested_str_weak(get_fabric_id), + /* K4 */ be_nested_str_weak(mdns_remove_op_discovery), + /* K5 */ be_nested_str_weak(stop_iteration), + }), + be_str_weak(mdns_remove_op_discovery_all_fabrics), + &be_const_str_solidified, + ( &(const binstruction[22]) { /* code */ + 0x60040010, // 0000 GETGBL R1 G16 + 0x88080100, // 0001 GETMBR R2 R0 K0 + 0x8C080501, // 0002 GETMET R2 R2 K1 + 0x7C080200, // 0003 CALL R2 1 + 0x7C040200, // 0004 CALL R1 1 + 0xA802000B, // 0005 EXBLK 0 #0012 + 0x5C080200, // 0006 MOVE R2 R1 + 0x7C080000, // 0007 CALL R2 0 + 0x8C0C0502, // 0008 GETMET R3 R2 K2 + 0x7C0C0200, // 0009 CALL R3 1 + 0x780E0005, // 000A JMPF R3 #0011 + 0x8C0C0503, // 000B GETMET R3 R2 K3 + 0x7C0C0200, // 000C CALL R3 1 + 0x780E0002, // 000D JMPF R3 #0011 + 0x8C0C0104, // 000E GETMET R3 R0 K4 + 0x5C140400, // 000F MOVE R5 R2 + 0x7C0C0400, // 0010 CALL R3 2 + 0x7001FFF3, // 0011 JMP #0006 + 0x58040005, // 0012 LDCONST R1 K5 + 0xAC040200, // 0013 CATCH R1 1 0 + 0xB0080000, // 0014 RAISE 2 R0 R0 + 0x80000000, // 0015 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: received_ack +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_received_ack, /* name */ be_nested_proto( 5, /* nstack */ 2, /* argc */ @@ -1335,58 +1528,327 @@ be_local_closure(class_Matter_Device_remove_fabric, /* name */ 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ - ( &(const bvalue[15]) { /* constants */ - /* K0 */ be_nested_str_weak(log), - /* K1 */ be_nested_str_weak(MTR_X3A_X20removing_X20fabric_X20), - /* K2 */ be_nested_str_weak(get_fabric_id), - /* K3 */ be_nested_str_weak(copy), - /* K4 */ be_nested_str_weak(reverse), - /* K5 */ be_nested_str_weak(tohex), - /* K6 */ be_const_int(2), - /* K7 */ be_nested_str_weak(message_handler), - /* K8 */ be_nested_str_weak(im), - /* K9 */ be_nested_str_weak(subs_shop), - /* K10 */ be_nested_str_weak(remove_by_fabric), - /* K11 */ be_nested_str_weak(mdns_remove_op_discovery), - /* K12 */ be_nested_str_weak(sessions), - /* K13 */ be_nested_str_weak(remove_fabric), - /* K14 */ be_nested_str_weak(save_fabrics), + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(udp_server), + /* K1 */ be_nested_str_weak(received_ack), }), - be_str_weak(remove_fabric), + be_str_weak(received_ack), &be_const_str_solidified, - ( &(const binstruction[32]) { /* code */ - 0x4C080000, // 0000 LDNIL R2 - 0x20080202, // 0001 NE R2 R1 R2 - 0x780A0018, // 0002 JMPF R2 #001C - 0xB80A0000, // 0003 GETNGBL R2 K0 - 0x8C0C0302, // 0004 GETMET R3 R1 K2 - 0x7C0C0200, // 0005 CALL R3 1 - 0x8C0C0703, // 0006 GETMET R3 R3 K3 - 0x7C0C0200, // 0007 CALL R3 1 - 0x8C0C0704, // 0008 GETMET R3 R3 K4 - 0x7C0C0200, // 0009 CALL R3 1 - 0x8C0C0705, // 000A GETMET R3 R3 K5 - 0x7C0C0200, // 000B CALL R3 1 - 0x000E0203, // 000C ADD R3 K1 R3 - 0x58100006, // 000D LDCONST R4 K6 - 0x7C080400, // 000E CALL R2 2 - 0x88080107, // 000F GETMBR R2 R0 K7 - 0x88080508, // 0010 GETMBR R2 R2 K8 - 0x88080509, // 0011 GETMBR R2 R2 K9 - 0x8C08050A, // 0012 GETMET R2 R2 K10 - 0x5C100200, // 0013 MOVE R4 R1 - 0x7C080400, // 0014 CALL R2 2 - 0x8C08010B, // 0015 GETMET R2 R0 K11 - 0x5C100200, // 0016 MOVE R4 R1 - 0x7C080400, // 0017 CALL R2 2 - 0x8808010C, // 0018 GETMBR R2 R0 K12 - 0x8C08050D, // 0019 GETMET R2 R2 K13 - 0x5C100200, // 001A MOVE R4 R1 - 0x7C080400, // 001B CALL R2 2 - 0x8808010C, // 001C GETMBR R2 R0 K12 - 0x8C08050E, // 001D GETMET R2 R2 K14 - 0x7C080200, // 001E CALL R2 1 - 0x80000000, // 001F RET 0 + ( &(const binstruction[ 5]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x5C100200, // 0002 MOVE R4 R1 + 0x7C080400, // 0003 CALL R2 2 + 0x80040400, // 0004 RET 1 R2 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: resolve_attribute_read_solo +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_resolve_attribute_read_solo, /* name */ + be_nested_proto( + 10, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[11]) { /* constants */ + /* K0 */ be_nested_str_weak(endpoint), + /* K1 */ be_nested_str_weak(cluster), + /* K2 */ be_nested_str_weak(attribute), + /* K3 */ be_nested_str_weak(find_plugin_by_endpoint), + /* K4 */ be_nested_str_weak(status), + /* K5 */ be_nested_str_weak(matter), + /* K6 */ be_nested_str_weak(UNSUPPORTED_ENDPOINT), + /* K7 */ be_nested_str_weak(contains_cluster), + /* K8 */ be_nested_str_weak(UNSUPPORTED_CLUSTER), + /* K9 */ be_nested_str_weak(contains_attribute), + /* K10 */ be_nested_str_weak(UNSUPPORTED_ATTRIBUTE), + }), + be_str_weak(resolve_attribute_read_solo), + &be_const_str_solidified, + ( &(const binstruction[47]) { /* code */ + 0x88080300, // 0000 GETMBR R2 R1 K0 + 0x880C0301, // 0001 GETMBR R3 R1 K1 + 0x88100302, // 0002 GETMBR R4 R1 K2 + 0x4C140000, // 0003 LDNIL R5 + 0x1C140405, // 0004 EQ R5 R2 R5 + 0x74160005, // 0005 JMPT R5 #000C + 0x4C140000, // 0006 LDNIL R5 + 0x1C140605, // 0007 EQ R5 R3 R5 + 0x74160002, // 0008 JMPT R5 #000C + 0x4C140000, // 0009 LDNIL R5 + 0x1C140805, // 000A EQ R5 R4 R5 + 0x78160001, // 000B JMPF R5 #000E + 0x4C140000, // 000C LDNIL R5 + 0x80040A00, // 000D RET 1 R5 + 0x8C140103, // 000E GETMET R5 R0 K3 + 0x5C1C0400, // 000F MOVE R7 R2 + 0x7C140400, // 0010 CALL R5 2 + 0x4C180000, // 0011 LDNIL R6 + 0x1C180A06, // 0012 EQ R6 R5 R6 + 0x781A0005, // 0013 JMPF R6 #001A + 0xB81A0A00, // 0014 GETNGBL R6 K5 + 0x88180D06, // 0015 GETMBR R6 R6 K6 + 0x90060806, // 0016 SETMBR R1 K4 R6 + 0x4C180000, // 0017 LDNIL R6 + 0x80040C00, // 0018 RET 1 R6 + 0x70020013, // 0019 JMP #002E + 0x8C180B07, // 001A GETMET R6 R5 K7 + 0x5C200600, // 001B MOVE R8 R3 + 0x7C180400, // 001C CALL R6 2 + 0x741A0005, // 001D JMPT R6 #0024 + 0xB81A0A00, // 001E GETNGBL R6 K5 + 0x88180D08, // 001F GETMBR R6 R6 K8 + 0x90060806, // 0020 SETMBR R1 K4 R6 + 0x4C180000, // 0021 LDNIL R6 + 0x80040C00, // 0022 RET 1 R6 + 0x70020009, // 0023 JMP #002E + 0x8C180B09, // 0024 GETMET R6 R5 K9 + 0x5C200600, // 0025 MOVE R8 R3 + 0x5C240800, // 0026 MOVE R9 R4 + 0x7C180600, // 0027 CALL R6 3 + 0x741A0004, // 0028 JMPT R6 #002E + 0xB81A0A00, // 0029 GETNGBL R6 K5 + 0x88180D0A, // 002A GETMBR R6 R6 K10 + 0x90060806, // 002B SETMBR R1 K4 R6 + 0x4C180000, // 002C LDNIL R6 + 0x80040C00, // 002D RET 1 R6 + 0x80040A00, // 002E RET 1 R5 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: register_http_remote +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_register_http_remote, /* name */ + be_nested_proto( + 9, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 8]) { /* constants */ + /* K0 */ be_nested_str_weak(http_remotes), + /* K1 */ be_nested_str_weak(contains), + /* K2 */ be_nested_str_weak(get_timeout), + /* K3 */ be_nested_str_weak(set_timeout), + /* K4 */ be_nested_str_weak(matter), + /* K5 */ be_nested_str_weak(HTTP_remote), + /* K6 */ be_nested_str_weak(plugins_config_remotes), + /* K7 */ be_nested_str_weak(set_info), + }), + be_str_weak(register_http_remote), + &be_const_str_solidified, + ( &(const binstruction[42]) { /* code */ + 0x880C0100, // 0000 GETMBR R3 R0 K0 + 0x4C100000, // 0001 LDNIL R4 + 0x1C0C0604, // 0002 EQ R3 R3 R4 + 0x780E0002, // 0003 JMPF R3 #0007 + 0x600C0013, // 0004 GETGBL R3 G19 + 0x7C0C0000, // 0005 CALL R3 0 + 0x90020003, // 0006 SETMBR R0 K0 R3 + 0x4C0C0000, // 0007 LDNIL R3 + 0x88100100, // 0008 GETMBR R4 R0 K0 + 0x8C100901, // 0009 GETMET R4 R4 K1 + 0x5C180200, // 000A MOVE R6 R1 + 0x7C100400, // 000B CALL R4 2 + 0x78120009, // 000C JMPF R4 #0017 + 0x88100100, // 000D GETMBR R4 R0 K0 + 0x940C0801, // 000E GETIDX R3 R4 R1 + 0x8C140702, // 000F GETMET R5 R3 K2 + 0x7C140200, // 0010 CALL R5 1 + 0x14140405, // 0011 LT R5 R2 R5 + 0x78160002, // 0012 JMPF R5 #0016 + 0x8C140703, // 0013 GETMET R5 R3 K3 + 0x5C1C0400, // 0014 MOVE R7 R2 + 0x7C140400, // 0015 CALL R5 2 + 0x70020011, // 0016 JMP #0029 + 0xB8120800, // 0017 GETNGBL R4 K4 + 0x8C100905, // 0018 GETMET R4 R4 K5 + 0x5C180000, // 0019 MOVE R6 R0 + 0x5C1C0200, // 001A MOVE R7 R1 + 0x5C200400, // 001B MOVE R8 R2 + 0x7C100800, // 001C CALL R4 4 + 0x5C0C0800, // 001D MOVE R3 R4 + 0x88100106, // 001E GETMBR R4 R0 K6 + 0x8C100901, // 001F GETMET R4 R4 K1 + 0x5C180200, // 0020 MOVE R6 R1 + 0x7C100400, // 0021 CALL R4 2 + 0x78120003, // 0022 JMPF R4 #0027 + 0x8C100707, // 0023 GETMET R4 R3 K7 + 0x88180106, // 0024 GETMBR R6 R0 K6 + 0x94180C01, // 0025 GETIDX R6 R6 R1 + 0x7C100400, // 0026 CALL R4 2 + 0x88100100, // 0027 GETMBR R4 R0 K0 + 0x98100203, // 0028 SETIDX R4 R1 R3 + 0x80040600, // 0029 RET 1 R3 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: bridge_add_endpoint +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_bridge_add_endpoint, /* name */ + be_nested_proto( + 16, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[20]) { /* constants */ + /* K0 */ be_nested_str_weak(plugins_classes), + /* K1 */ be_nested_str_weak(find), + /* K2 */ be_nested_str_weak(log), + /* K3 */ be_nested_str_weak(MTR_X3A_X20unknown_X20class_X20name_X20_X27), + /* K4 */ be_nested_str_weak(_X27_X20skipping), + /* K5 */ be_const_int(3), + /* K6 */ be_nested_str_weak(next_ep), + /* K7 */ be_nested_str_weak(plugins), + /* K8 */ be_nested_str_weak(push), + /* K9 */ be_nested_str_weak(type), + /* K10 */ be_nested_str_weak(keys), + /* K11 */ be_nested_str_weak(stop_iteration), + /* K12 */ be_nested_str_weak(MTR_X3A_X20adding_X20endpoint_X20_X3D_X20_X25i_X20type_X3A_X25s_X25s), + /* K13 */ be_nested_str_weak(conf_to_log), + /* K14 */ be_const_int(2), + /* K15 */ be_nested_str_weak(plugins_config), + /* K16 */ be_nested_str_weak(plugins_persist), + /* K17 */ be_const_int(1), + /* K18 */ be_nested_str_weak(save_param), + /* K19 */ be_nested_str_weak(signal_endpoints_changed), + }), + be_str_weak(bridge_add_endpoint), + &be_const_str_solidified, + ( &(const binstruction[68]) { /* code */ + 0x880C0100, // 0000 GETMBR R3 R0 K0 + 0x8C0C0701, // 0001 GETMET R3 R3 K1 + 0x5C140200, // 0002 MOVE R5 R1 + 0x7C0C0400, // 0003 CALL R3 2 + 0x4C100000, // 0004 LDNIL R4 + 0x1C100604, // 0005 EQ R4 R3 R4 + 0x78120008, // 0006 JMPF R4 #0010 + 0xB8120400, // 0007 GETNGBL R4 K2 + 0x60140008, // 0008 GETGBL R5 G8 + 0x5C180200, // 0009 MOVE R6 R1 + 0x7C140200, // 000A CALL R5 1 + 0x00160605, // 000B ADD R5 K3 R5 + 0x00140B04, // 000C ADD R5 R5 K4 + 0x58180005, // 000D LDCONST R6 K5 + 0x7C100400, // 000E CALL R4 2 + 0x80000800, // 000F RET 0 + 0x88100106, // 0010 GETMBR R4 R0 K6 + 0x60140008, // 0011 GETGBL R5 G8 + 0x5C180800, // 0012 MOVE R6 R4 + 0x7C140200, // 0013 CALL R5 1 + 0x5C180600, // 0014 MOVE R6 R3 + 0x5C1C0000, // 0015 MOVE R7 R0 + 0x5C200800, // 0016 MOVE R8 R4 + 0x5C240400, // 0017 MOVE R9 R2 + 0x7C180600, // 0018 CALL R6 3 + 0x881C0107, // 0019 GETMBR R7 R0 K7 + 0x8C1C0F08, // 001A GETMET R7 R7 K8 + 0x5C240C00, // 001B MOVE R9 R6 + 0x7C1C0400, // 001C CALL R7 2 + 0x601C0013, // 001D GETGBL R7 G19 + 0x7C1C0000, // 001E CALL R7 0 + 0x981E1201, // 001F SETIDX R7 K9 R1 + 0x60200010, // 0020 GETGBL R8 G16 + 0x8C24050A, // 0021 GETMET R9 R2 K10 + 0x7C240200, // 0022 CALL R9 1 + 0x7C200200, // 0023 CALL R8 1 + 0xA8020004, // 0024 EXBLK 0 #002A + 0x5C241000, // 0025 MOVE R9 R8 + 0x7C240000, // 0026 CALL R9 0 + 0x94280409, // 0027 GETIDX R10 R2 R9 + 0x981C120A, // 0028 SETIDX R7 R9 R10 + 0x7001FFFA, // 0029 JMP #0025 + 0x5820000B, // 002A LDCONST R8 K11 + 0xAC200200, // 002B CATCH R8 1 0 + 0xB0080000, // 002C RAISE 2 R0 R0 + 0xB8220400, // 002D GETNGBL R8 K2 + 0x60240018, // 002E GETGBL R9 G24 + 0x5828000C, // 002F LDCONST R10 K12 + 0x5C2C0800, // 0030 MOVE R11 R4 + 0x5C300200, // 0031 MOVE R12 R1 + 0x8C34010D, // 0032 GETMET R13 R0 K13 + 0x5C3C0400, // 0033 MOVE R15 R2 + 0x7C340400, // 0034 CALL R13 2 + 0x7C240800, // 0035 CALL R9 4 + 0x5828000E, // 0036 LDCONST R10 K14 + 0x7C200400, // 0037 CALL R8 2 + 0x8820010F, // 0038 GETMBR R8 R0 K15 + 0x98200A07, // 0039 SETIDX R8 R5 R7 + 0x50200200, // 003A LDBOOL R8 1 0 + 0x90022008, // 003B SETMBR R0 K16 R8 + 0x88200106, // 003C GETMBR R8 R0 K6 + 0x00201111, // 003D ADD R8 R8 K17 + 0x90020C08, // 003E SETMBR R0 K6 R8 + 0x8C200112, // 003F GETMET R8 R0 K18 + 0x7C200200, // 0040 CALL R8 1 + 0x8C200113, // 0041 GETMET R8 R0 K19 + 0x7C200200, // 0042 CALL R8 1 + 0x80040800, // 0043 RET 1 R4 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: is_root_commissioning_open +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_is_root_commissioning_open, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(commissioning_open), + /* K1 */ be_nested_str_weak(commissioning_admin_fabric), + }), + be_str_weak(is_root_commissioning_open), + &be_const_str_solidified, + ( &(const binstruction[11]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x4C080000, // 0001 LDNIL R2 + 0x20040202, // 0002 NE R1 R1 R2 + 0x78060003, // 0003 JMPF R1 #0008 + 0x88040101, // 0004 GETMBR R1 R0 K1 + 0x4C080000, // 0005 LDNIL R2 + 0x1C040202, // 0006 EQ R1 R1 R2 + 0x74060000, // 0007 JMPT R1 #0009 + 0x50040001, // 0008 LDBOOL R1 0 1 + 0x50040200, // 0009 LDBOOL R1 1 0 + 0x80040200, // 000A RET 1 R1 }) ) ); @@ -1588,76 +2050,57 @@ be_local_closure(class_Matter_Device_load_param, /* name */ /******************************************************************** -** Solidified function: compute_qrcode_content +** Solidified function: start_commissioning_complete ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_compute_qrcode_content, /* name */ +be_local_closure(class_Matter_Device_start_commissioning_complete, /* name */ be_nested_proto( - 8, /* nstack */ - 1, /* argc */ + 10, /* nstack */ + 2, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ - ( &(const bvalue[12]) { /* constants */ - /* K0 */ be_nested_str_weak(resize), - /* K1 */ be_nested_str_weak(setbits), - /* K2 */ be_const_int(3), - /* K3 */ be_nested_str_weak(vendorid), - /* K4 */ be_nested_str_weak(productid), - /* K5 */ be_nested_str_weak(root_discriminator), - /* K6 */ be_nested_str_weak(root_passcode), - /* K7 */ be_const_int(134217727), - /* K8 */ be_nested_str_weak(MT_X3A), - /* K9 */ be_nested_str_weak(matter), - /* K10 */ be_nested_str_weak(Base38), - /* K11 */ be_nested_str_weak(encode), + ( &(const bvalue[10]) { /* constants */ + /* K0 */ be_nested_str_weak(get_fabric), + /* K1 */ be_nested_str_weak(get_fabric_id), + /* K2 */ be_nested_str_weak(copy), + /* K3 */ be_nested_str_weak(reverse), + /* K4 */ be_nested_str_weak(tohex), + /* K5 */ be_nested_str_weak(get_admin_vendor_name), + /* K6 */ be_nested_str_weak(log), + /* K7 */ be_nested_str_weak(MTR_X3A_X20_X2D_X2D_X2D_X20Commissioning_X20complete_X20for_X20Fabric_X20_X27_X25s_X27_X20_X28Vendor_X20_X25s_X29_X20_X2D_X2D_X2D), + /* K8 */ be_const_int(2), + /* K9 */ be_nested_str_weak(stop_basic_commissioning), }), - be_str_weak(compute_qrcode_content), + be_str_weak(start_commissioning_complete), &be_const_str_solidified, - ( &(const binstruction[40]) { /* code */ - 0x60040015, // 0000 GETGBL R1 G21 - 0x7C040000, // 0001 CALL R1 0 - 0x8C040300, // 0002 GETMET R1 R1 K0 - 0x540E000A, // 0003 LDINT R3 11 - 0x7C040400, // 0004 CALL R1 2 - 0x8C080301, // 0005 GETMET R2 R1 K1 - 0x58100002, // 0006 LDCONST R4 K2 - 0x5416000F, // 0007 LDINT R5 16 - 0x88180103, // 0008 GETMBR R6 R0 K3 - 0x7C080800, // 0009 CALL R2 4 - 0x8C080301, // 000A GETMET R2 R1 K1 - 0x54120012, // 000B LDINT R4 19 - 0x5416000F, // 000C LDINT R5 16 - 0x88180104, // 000D GETMBR R6 R0 K4 - 0x7C080800, // 000E CALL R2 4 - 0x8C080301, // 000F GETMET R2 R1 K1 - 0x54120024, // 0010 LDINT R4 37 - 0x54160007, // 0011 LDINT R5 8 - 0x541A0003, // 0012 LDINT R6 4 - 0x7C080800, // 0013 CALL R2 4 - 0x8C080301, // 0014 GETMET R2 R1 K1 - 0x5412002C, // 0015 LDINT R4 45 - 0x5416000B, // 0016 LDINT R5 12 - 0x88180105, // 0017 GETMBR R6 R0 K5 - 0x541E0FFE, // 0018 LDINT R7 4095 - 0x2C180C07, // 0019 AND R6 R6 R7 - 0x7C080800, // 001A CALL R2 4 - 0x8C080301, // 001B GETMET R2 R1 K1 - 0x54120038, // 001C LDINT R4 57 - 0x5416001A, // 001D LDINT R5 27 - 0x88180106, // 001E GETMBR R6 R0 K6 - 0x2C180D07, // 001F AND R6 R6 K7 - 0x7C080800, // 0020 CALL R2 4 - 0xB80A1200, // 0021 GETNGBL R2 K9 - 0x8808050A, // 0022 GETMBR R2 R2 K10 - 0x8C08050B, // 0023 GETMET R2 R2 K11 - 0x5C100200, // 0024 MOVE R4 R1 - 0x7C080400, // 0025 CALL R2 2 - 0x000A1002, // 0026 ADD R2 K8 R2 - 0x80040400, // 0027 RET 1 R2 + ( &(const binstruction[23]) { /* code */ + 0x8C080300, // 0000 GETMET R2 R1 K0 + 0x7C080200, // 0001 CALL R2 1 + 0x8C0C0501, // 0002 GETMET R3 R2 K1 + 0x7C0C0200, // 0003 CALL R3 1 + 0x8C0C0702, // 0004 GETMET R3 R3 K2 + 0x7C0C0200, // 0005 CALL R3 1 + 0x8C0C0703, // 0006 GETMET R3 R3 K3 + 0x7C0C0200, // 0007 CALL R3 1 + 0x8C0C0704, // 0008 GETMET R3 R3 K4 + 0x7C0C0200, // 0009 CALL R3 1 + 0x8C100505, // 000A GETMET R4 R2 K5 + 0x7C100200, // 000B CALL R4 1 + 0xB8160C00, // 000C GETNGBL R5 K6 + 0x60180018, // 000D GETGBL R6 G24 + 0x581C0007, // 000E LDCONST R7 K7 + 0x5C200600, // 000F MOVE R8 R3 + 0x5C240800, // 0010 MOVE R9 R4 + 0x7C180600, // 0011 CALL R6 3 + 0x581C0008, // 0012 LDCONST R7 K8 + 0x7C140400, // 0013 CALL R5 2 + 0x8C140109, // 0014 GETMET R5 R0 K9 + 0x7C140200, // 0015 CALL R5 1 + 0x80000000, // 0016 RET 0 }) ) ); @@ -1717,374 +2160,80 @@ be_local_closure(class_Matter_Device_attribute_updated, /* name */ /******************************************************************** -** Solidified function: register_http_remote +** Solidified function: k2l ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_register_http_remote, /* name */ +be_local_closure(class_Matter_Device_k2l, /* name */ be_nested_proto( - 9, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 8]) { /* constants */ - /* K0 */ be_nested_str_weak(http_remotes), - /* K1 */ be_nested_str_weak(contains), - /* K2 */ be_nested_str_weak(get_timeout), - /* K3 */ be_nested_str_weak(set_timeout), - /* K4 */ be_nested_str_weak(matter), - /* K5 */ be_nested_str_weak(HTTP_remote), - /* K6 */ be_nested_str_weak(plugins_config_remotes), - /* K7 */ be_nested_str_weak(set_info), - }), - be_str_weak(register_http_remote), - &be_const_str_solidified, - ( &(const binstruction[42]) { /* code */ - 0x880C0100, // 0000 GETMBR R3 R0 K0 - 0x4C100000, // 0001 LDNIL R4 - 0x1C0C0604, // 0002 EQ R3 R3 R4 - 0x780E0002, // 0003 JMPF R3 #0007 - 0x600C0013, // 0004 GETGBL R3 G19 - 0x7C0C0000, // 0005 CALL R3 0 - 0x90020003, // 0006 SETMBR R0 K0 R3 - 0x4C0C0000, // 0007 LDNIL R3 - 0x88100100, // 0008 GETMBR R4 R0 K0 - 0x8C100901, // 0009 GETMET R4 R4 K1 - 0x5C180200, // 000A MOVE R6 R1 - 0x7C100400, // 000B CALL R4 2 - 0x78120009, // 000C JMPF R4 #0017 - 0x88100100, // 000D GETMBR R4 R0 K0 - 0x940C0801, // 000E GETIDX R3 R4 R1 - 0x8C140702, // 000F GETMET R5 R3 K2 - 0x7C140200, // 0010 CALL R5 1 - 0x14140405, // 0011 LT R5 R2 R5 - 0x78160002, // 0012 JMPF R5 #0016 - 0x8C140703, // 0013 GETMET R5 R3 K3 - 0x5C1C0400, // 0014 MOVE R7 R2 - 0x7C140400, // 0015 CALL R5 2 - 0x70020011, // 0016 JMP #0029 - 0xB8120800, // 0017 GETNGBL R4 K4 - 0x8C100905, // 0018 GETMET R4 R4 K5 - 0x5C180000, // 0019 MOVE R6 R0 - 0x5C1C0200, // 001A MOVE R7 R1 - 0x5C200400, // 001B MOVE R8 R2 - 0x7C100800, // 001C CALL R4 4 - 0x5C0C0800, // 001D MOVE R3 R4 - 0x88100106, // 001E GETMBR R4 R0 K6 - 0x8C100901, // 001F GETMET R4 R4 K1 - 0x5C180200, // 0020 MOVE R6 R1 - 0x7C100400, // 0021 CALL R4 2 - 0x78120003, // 0022 JMPF R4 #0027 - 0x8C100707, // 0023 GETMET R4 R3 K7 - 0x88180106, // 0024 GETMBR R6 R0 K6 - 0x94180C01, // 0025 GETIDX R6 R6 R1 - 0x7C100400, // 0026 CALL R4 2 - 0x88100100, // 0027 GETMBR R4 R0 K0 - 0x98100203, // 0028 SETIDX R4 R1 R3 - 0x80040600, // 0029 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: is_commissioning_open -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_is_commissioning_open, /* name */ - be_nested_proto( - 3, /* nstack */ + 8, /* nstack */ 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(commissioning_open), - }), - be_str_weak(is_commissioning_open), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x4C080000, // 0001 LDNIL R2 - 0x20040202, // 0002 NE R1 R1 R2 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_plugin_class_arg -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_get_plugin_class_arg, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(plugins_classes), - /* K1 */ be_nested_str_weak(find), - /* K2 */ be_nested_str_weak(ARG), - /* K3 */ be_nested_str_weak(), - }), - be_str_weak(get_plugin_class_arg), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x5C100200, // 0002 MOVE R4 R1 - 0x7C080400, // 0003 CALL R2 2 - 0x780A0001, // 0004 JMPF R2 #0007 - 0x880C0502, // 0005 GETMBR R3 R2 K2 - 0x70020000, // 0006 JMP #0008 - 0x580C0003, // 0007 LDCONST R3 K3 - 0x80040600, // 0008 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: MtrInfo_one -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_MtrInfo_one, /* name */ - be_nested_proto( - 9, /* nstack */ - 2, /* argc */ - 2, /* varg */ + 4, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_nested_str_weak(find_plugin_by_endpoint), - /* K1 */ be_nested_str_weak(state_json), - /* K2 */ be_nested_str_weak(_X7B_X22MtrInfo_X22_X3A_X25s_X7D), - /* K3 */ be_nested_str_weak(tasmota), - /* K4 */ be_nested_str_weak(publish_result), - /* K5 */ be_nested_str_weak(), + /* K0 */ be_const_class(be_class_Matter_Device), + /* K1 */ be_nested_str_weak(keys), + /* K2 */ be_nested_str_weak(push), + /* K3 */ be_nested_str_weak(stop_iteration), + /* K4 */ be_const_int(1), + /* K5 */ be_const_int(0), }), - be_str_weak(MtrInfo_one), + be_str_weak(k2l), &be_const_str_solidified, - ( &(const binstruction[20]) { /* code */ - 0x8C080100, // 0000 GETMET R2 R0 K0 - 0x5C100200, // 0001 MOVE R4 R1 - 0x7C080400, // 0002 CALL R2 2 + ( &(const binstruction[50]) { /* code */ + 0x58040000, // 0000 LDCONST R1 K0 + 0x60080012, // 0001 GETGBL R2 G18 + 0x7C080000, // 0002 CALL R2 0 0x4C0C0000, // 0003 LDNIL R3 - 0x1C0C0403, // 0004 EQ R3 R2 R3 + 0x1C0C0003, // 0004 EQ R3 R0 R3 0x780E0000, // 0005 JMPF R3 #0007 - 0x80000600, // 0006 RET 0 - 0x8C0C0501, // 0007 GETMET R3 R2 K1 - 0x7C0C0200, // 0008 CALL R3 1 - 0x780E0008, // 0009 JMPF R3 #0013 - 0x60100018, // 000A GETGBL R4 G24 - 0x58140002, // 000B LDCONST R5 K2 - 0x5C180600, // 000C MOVE R6 R3 - 0x7C100400, // 000D CALL R4 2 - 0xB8160600, // 000E GETNGBL R5 K3 - 0x8C140B04, // 000F GETMET R5 R5 K4 - 0x5C1C0800, // 0010 MOVE R7 R4 - 0x58200005, // 0011 LDCONST R8 K5 - 0x7C140600, // 0012 CALL R5 3 - 0x80000000, // 0013 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: bridge_remove_endpoint -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_bridge_remove_endpoint, /* name */ - be_nested_proto( - 10, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[17]) { /* constants */ - /* K0 */ be_nested_str_weak(json), - /* K1 */ be_nested_str_weak(plugins_config), - /* K2 */ be_nested_str_weak(contains), - /* K3 */ be_nested_str_weak(log), - /* K4 */ be_nested_str_weak(MTR_X3A_X20Cannot_X20remove_X20an_X20enpoint_X20not_X20configured_X3A_X20), - /* K5 */ be_const_int(3), - /* K6 */ be_nested_str_weak(MTR_X3A_X20deleting_X20endpoint_X20_X3D_X20_X25i), - /* K7 */ be_const_int(2), - /* K8 */ be_nested_str_weak(remove), - /* K9 */ be_nested_str_weak(plugins_persist), - /* K10 */ be_const_int(0), - /* K11 */ be_nested_str_weak(plugins), - /* K12 */ be_nested_str_weak(get_endpoint), - /* K13 */ be_const_int(1), - /* K14 */ be_nested_str_weak(clean_remotes), - /* K15 */ be_nested_str_weak(save_param), - /* K16 */ be_nested_str_weak(signal_endpoints_changed), - }), - be_str_weak(bridge_remove_endpoint), - &be_const_str_solidified, - ( &(const binstruction[56]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0x600C0008, // 0001 GETGBL R3 G8 - 0x5C100200, // 0002 MOVE R4 R1 - 0x7C0C0200, // 0003 CALL R3 1 - 0x4C100000, // 0004 LDNIL R4 - 0x4C140000, // 0005 LDNIL R5 - 0x88180101, // 0006 GETMBR R6 R0 K1 - 0x8C180D02, // 0007 GETMET R6 R6 K2 - 0x5C200600, // 0008 MOVE R8 R3 - 0x7C180400, // 0009 CALL R6 2 - 0x741A0004, // 000A JMPT R6 #0010 - 0xB81A0600, // 000B GETNGBL R6 K3 - 0x001E0803, // 000C ADD R7 K4 R3 - 0x58200005, // 000D LDCONST R8 K5 - 0x7C180400, // 000E CALL R6 2 - 0x80000C00, // 000F RET 0 - 0xB81A0600, // 0010 GETNGBL R6 K3 - 0x601C0018, // 0011 GETGBL R7 G24 - 0x58200006, // 0012 LDCONST R8 K6 - 0x5C240200, // 0013 MOVE R9 R1 - 0x7C1C0400, // 0014 CALL R7 2 - 0x58200007, // 0015 LDCONST R8 K7 - 0x7C180400, // 0016 CALL R6 2 - 0x88180101, // 0017 GETMBR R6 R0 K1 - 0x8C180D08, // 0018 GETMET R6 R6 K8 - 0x5C200600, // 0019 MOVE R8 R3 - 0x7C180400, // 001A CALL R6 2 - 0x50180200, // 001B LDBOOL R6 1 0 - 0x90021206, // 001C SETMBR R0 K9 R6 - 0x5818000A, // 001D LDCONST R6 K10 - 0x601C000C, // 001E GETGBL R7 G12 - 0x8820010B, // 001F GETMBR R8 R0 K11 - 0x7C1C0200, // 0020 CALL R7 1 - 0x141C0C07, // 0021 LT R7 R6 R7 - 0x781E000D, // 0022 JMPF R7 #0031 - 0x881C010B, // 0023 GETMBR R7 R0 K11 - 0x941C0E06, // 0024 GETIDX R7 R7 R6 - 0x8C1C0F0C, // 0025 GETMET R7 R7 K12 - 0x7C1C0200, // 0026 CALL R7 1 - 0x1C1C0207, // 0027 EQ R7 R1 R7 - 0x781E0005, // 0028 JMPF R7 #002F - 0x881C010B, // 0029 GETMBR R7 R0 K11 - 0x8C1C0F08, // 002A GETMET R7 R7 K8 - 0x5C240C00, // 002B MOVE R9 R6 - 0x7C1C0400, // 002C CALL R7 2 - 0x70020002, // 002D JMP #0031 - 0x70020000, // 002E JMP #0030 - 0x00180D0D, // 002F ADD R6 R6 K13 - 0x7001FFEC, // 0030 JMP #001E - 0x8C1C010E, // 0031 GETMET R7 R0 K14 - 0x7C1C0200, // 0032 CALL R7 1 - 0x8C1C010F, // 0033 GETMET R7 R0 K15 - 0x7C1C0200, // 0034 CALL R7 1 - 0x8C1C0110, // 0035 GETMET R7 R0 K16 - 0x7C1C0200, // 0036 CALL R7 1 - 0x80000000, // 0037 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: resolve_attribute_read_solo -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_resolve_attribute_read_solo, /* name */ - be_nested_proto( - 10, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[11]) { /* constants */ - /* K0 */ be_nested_str_weak(endpoint), - /* K1 */ be_nested_str_weak(cluster), - /* K2 */ be_nested_str_weak(attribute), - /* K3 */ be_nested_str_weak(find_plugin_by_endpoint), - /* K4 */ be_nested_str_weak(status), - /* K5 */ be_nested_str_weak(matter), - /* K6 */ be_nested_str_weak(UNSUPPORTED_ENDPOINT), - /* K7 */ be_nested_str_weak(contains_cluster), - /* K8 */ be_nested_str_weak(UNSUPPORTED_CLUSTER), - /* K9 */ be_nested_str_weak(contains_attribute), - /* K10 */ be_nested_str_weak(UNSUPPORTED_ATTRIBUTE), - }), - be_str_weak(resolve_attribute_read_solo), - &be_const_str_solidified, - ( &(const binstruction[47]) { /* code */ - 0x88080300, // 0000 GETMBR R2 R1 K0 - 0x880C0301, // 0001 GETMBR R3 R1 K1 - 0x88100302, // 0002 GETMBR R4 R1 K2 - 0x4C140000, // 0003 LDNIL R5 - 0x1C140405, // 0004 EQ R5 R2 R5 - 0x74160005, // 0005 JMPT R5 #000C - 0x4C140000, // 0006 LDNIL R5 - 0x1C140605, // 0007 EQ R5 R3 R5 - 0x74160002, // 0008 JMPT R5 #000C - 0x4C140000, // 0009 LDNIL R5 - 0x1C140805, // 000A EQ R5 R4 R5 - 0x78160001, // 000B JMPF R5 #000E - 0x4C140000, // 000C LDNIL R5 - 0x80040A00, // 000D RET 1 R5 - 0x8C140103, // 000E GETMET R5 R0 K3 - 0x5C1C0400, // 000F MOVE R7 R2 + 0x80040400, // 0006 RET 1 R2 + 0x600C0010, // 0007 GETGBL R3 G16 + 0x8C100101, // 0008 GETMET R4 R0 K1 + 0x7C100200, // 0009 CALL R4 1 + 0x7C0C0200, // 000A CALL R3 1 + 0xA8020005, // 000B EXBLK 0 #0012 + 0x5C100600, // 000C MOVE R4 R3 + 0x7C100000, // 000D CALL R4 0 + 0x8C140502, // 000E GETMET R5 R2 K2 + 0x5C1C0800, // 000F MOVE R7 R4 0x7C140400, // 0010 CALL R5 2 - 0x4C180000, // 0011 LDNIL R6 - 0x1C180A06, // 0012 EQ R6 R5 R6 - 0x781A0005, // 0013 JMPF R6 #001A - 0xB81A0A00, // 0014 GETNGBL R6 K5 - 0x88180D06, // 0015 GETMBR R6 R6 K6 - 0x90060806, // 0016 SETMBR R1 K4 R6 - 0x4C180000, // 0017 LDNIL R6 - 0x80040C00, // 0018 RET 1 R6 - 0x70020013, // 0019 JMP #002E - 0x8C180B07, // 001A GETMET R6 R5 K7 - 0x5C200600, // 001B MOVE R8 R3 - 0x7C180400, // 001C CALL R6 2 - 0x741A0005, // 001D JMPT R6 #0024 - 0xB81A0A00, // 001E GETNGBL R6 K5 - 0x88180D08, // 001F GETMBR R6 R6 K8 - 0x90060806, // 0020 SETMBR R1 K4 R6 - 0x4C180000, // 0021 LDNIL R6 - 0x80040C00, // 0022 RET 1 R6 - 0x70020009, // 0023 JMP #002E - 0x8C180B09, // 0024 GETMET R6 R5 K9 - 0x5C200600, // 0025 MOVE R8 R3 - 0x5C240800, // 0026 MOVE R9 R4 - 0x7C180600, // 0027 CALL R6 3 - 0x741A0004, // 0028 JMPT R6 #002E - 0xB81A0A00, // 0029 GETNGBL R6 K5 - 0x88180D0A, // 002A GETMBR R6 R6 K10 - 0x90060806, // 002B SETMBR R1 K4 R6 - 0x4C180000, // 002C LDNIL R6 - 0x80040C00, // 002D RET 1 R6 - 0x80040A00, // 002E RET 1 R5 + 0x7001FFF9, // 0011 JMP #000C + 0x580C0003, // 0012 LDCONST R3 K3 + 0xAC0C0200, // 0013 CATCH R3 1 0 + 0xB0080000, // 0014 RAISE 2 R0 R0 + 0x600C0010, // 0015 GETGBL R3 G16 + 0x6010000C, // 0016 GETGBL R4 G12 + 0x5C140400, // 0017 MOVE R5 R2 + 0x7C100200, // 0018 CALL R4 1 + 0x04100904, // 0019 SUB R4 R4 K4 + 0x40120804, // 001A CONNECT R4 K4 R4 + 0x7C0C0200, // 001B CALL R3 1 + 0xA8020010, // 001C EXBLK 0 #002E + 0x5C100600, // 001D MOVE R4 R3 + 0x7C100000, // 001E CALL R4 0 + 0x94140404, // 001F GETIDX R5 R2 R4 + 0x5C180800, // 0020 MOVE R6 R4 + 0x241C0D05, // 0021 GT R7 R6 K5 + 0x781E0008, // 0022 JMPF R7 #002C + 0x041C0D04, // 0023 SUB R7 R6 K4 + 0x941C0407, // 0024 GETIDX R7 R2 R7 + 0x241C0E05, // 0025 GT R7 R7 R5 + 0x781E0004, // 0026 JMPF R7 #002C + 0x041C0D04, // 0027 SUB R7 R6 K4 + 0x941C0407, // 0028 GETIDX R7 R2 R7 + 0x98080C07, // 0029 SETIDX R2 R6 R7 + 0x04180D04, // 002A SUB R6 R6 K4 + 0x7001FFF4, // 002B JMP #0021 + 0x98080C05, // 002C SETIDX R2 R6 R5 + 0x7001FFEE, // 002D JMP #001D + 0x580C0003, // 002E LDCONST R3 K3 + 0xAC0C0200, // 002F CATCH R3 1 0 + 0xB0080000, // 0030 RAISE 2 R0 R0 + 0x80040400, // 0031 RET 1 R2 }) ) ); @@ -2092,143 +2241,129 @@ be_local_closure(class_Matter_Device_resolve_attribute_read_solo, /* name */ /******************************************************************** -** Solidified function: start_root_basic_commissioning +** Solidified function: register_commands ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_start_root_basic_commissioning, /* name */ +be_local_closure(class_Matter_Device_register_commands, /* name */ be_nested_proto( - 13, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[18]) { /* constants */ - /* K0 */ be_nested_str_weak(PASE_TIMEOUT), - /* K1 */ be_nested_str_weak(compute_manual_pairing_code), - /* K2 */ be_nested_str_weak(log), - /* K3 */ be_nested_str_weak(MTR_X3A_X20Manual_X20pairing_X20code_X3A_X20_X25s), - /* K4 */ be_const_int(2), - /* K5 */ be_nested_str_weak(compute_qrcode_content), - /* K6 */ be_nested_str_weak(tasmota), - /* K7 */ be_nested_str_weak(publish_result), - /* K8 */ be_nested_str_weak(_X7B_X22Matter_X22_X3A_X7B_X22Commissioning_X22_X3A1_X2C_X22PairingCode_X22_X3A_X22_X25s_X22_X2C_X22QRCode_X22_X3A_X22_X25s_X22_X7D_X7D), - /* K9 */ be_nested_str_weak(Matter), - /* K10 */ be_nested_str_weak(_compute_pbkdf), - /* K11 */ be_nested_str_weak(root_passcode), - /* K12 */ be_nested_str_weak(root_iterations), - /* K13 */ be_nested_str_weak(root_salt), - /* K14 */ be_nested_str_weak(start_basic_commissioning), - /* K15 */ be_nested_str_weak(root_discriminator), - /* K16 */ be_nested_str_weak(root_w0), - /* K17 */ be_nested_str_weak(root_L), - }), - be_str_weak(start_root_basic_commissioning), - &be_const_str_solidified, - ( &(const binstruction[39]) { /* code */ - 0x4C080000, // 0000 LDNIL R2 - 0x1C080202, // 0001 EQ R2 R1 R2 - 0x780A0000, // 0002 JMPF R2 #0004 - 0x88040100, // 0003 GETMBR R1 R0 K0 - 0x8C080101, // 0004 GETMET R2 R0 K1 - 0x7C080200, // 0005 CALL R2 1 - 0xB80E0400, // 0006 GETNGBL R3 K2 - 0x60100018, // 0007 GETGBL R4 G24 - 0x58140003, // 0008 LDCONST R5 K3 - 0x5C180400, // 0009 MOVE R6 R2 - 0x7C100400, // 000A CALL R4 2 - 0x58140004, // 000B LDCONST R5 K4 - 0x7C0C0400, // 000C CALL R3 2 - 0x8C0C0105, // 000D GETMET R3 R0 K5 - 0x7C0C0200, // 000E CALL R3 1 - 0xB8120C00, // 000F GETNGBL R4 K6 - 0x8C100907, // 0010 GETMET R4 R4 K7 - 0x60180018, // 0011 GETGBL R6 G24 - 0x581C0008, // 0012 LDCONST R7 K8 - 0x5C200400, // 0013 MOVE R8 R2 - 0x5C240600, // 0014 MOVE R9 R3 - 0x7C180600, // 0015 CALL R6 3 - 0x581C0009, // 0016 LDCONST R7 K9 - 0x7C100600, // 0017 CALL R4 3 - 0x8C10010A, // 0018 GETMET R4 R0 K10 - 0x8818010B, // 0019 GETMBR R6 R0 K11 - 0x881C010C, // 001A GETMBR R7 R0 K12 - 0x8820010D, // 001B GETMBR R8 R0 K13 - 0x7C100800, // 001C CALL R4 4 - 0x8C10010E, // 001D GETMET R4 R0 K14 - 0x5C180200, // 001E MOVE R6 R1 - 0x881C010C, // 001F GETMBR R7 R0 K12 - 0x8820010F, // 0020 GETMBR R8 R0 K15 - 0x8824010D, // 0021 GETMBR R9 R0 K13 - 0x88280110, // 0022 GETMBR R10 R0 K16 - 0x882C0111, // 0023 GETMBR R11 R0 K17 - 0x4C300000, // 0024 LDNIL R12 - 0x7C101000, // 0025 CALL R4 8 - 0x80000000, // 0026 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: start_commissioning_complete_deferred -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_start_commissioning_complete_deferred, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ + 5, /* nstack */ + 1, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 1, /* has sup protos */ - ( &(const struct bproto*[ 2]) { + ( &(const struct bproto*[ 4]) { be_nested_proto( - 3, /* nstack */ - 0, /* argc */ + 10, /* nstack */ + 4, /* argc */ 0, /* varg */ 1, /* has upvals */ - ( &(const bupvaldesc[ 2]) { /* upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ be_local_const_upval(1, 0), - be_local_const_upval(1, 1), }), 0, /* has sup protos */ NULL, 1, /* has constants */ ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(start_commissioning_complete), + /* K0 */ be_nested_str_weak(MtrJoin), }), be_str_weak(_X3Clambda_X3E), &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x68080001, // 0002 GETUPV R2 U1 - 0x7C000400, // 0003 CALL R0 2 - 0x80040000, // 0004 RET 1 R0 + ( &(const binstruction[ 8]) { /* code */ + 0x68100000, // 0000 GETUPV R4 U0 + 0x8C100900, // 0001 GETMET R4 R4 K0 + 0x5C180000, // 0002 MOVE R6 R0 + 0x5C1C0200, // 0003 MOVE R7 R1 + 0x5C200400, // 0004 MOVE R8 R2 + 0x5C240600, // 0005 MOVE R9 R3 + 0x7C100A00, // 0006 CALL R4 5 + 0x80040800, // 0007 RET 1 R4 + }) + ), + be_nested_proto( + 10, /* nstack */ + 4, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(MtrUpdate), + }), + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 8]) { /* code */ + 0x68100000, // 0000 GETUPV R4 U0 + 0x8C100900, // 0001 GETMET R4 R4 K0 + 0x5C180000, // 0002 MOVE R6 R0 + 0x5C1C0200, // 0003 MOVE R7 R1 + 0x5C200400, // 0004 MOVE R8 R2 + 0x5C240600, // 0005 MOVE R9 R3 + 0x7C100A00, // 0006 CALL R4 5 + 0x80040800, // 0007 RET 1 R4 + }) + ), + be_nested_proto( + 10, /* nstack */ + 4, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(MtrInfo), + }), + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 8]) { /* code */ + 0x68100000, // 0000 GETUPV R4 U0 + 0x8C100900, // 0001 GETMET R4 R4 K0 + 0x5C180000, // 0002 MOVE R6 R0 + 0x5C1C0200, // 0003 MOVE R7 R1 + 0x5C200400, // 0004 MOVE R8 R2 + 0x5C240600, // 0005 MOVE R9 R3 + 0x7C100A00, // 0006 CALL R4 5 + 0x80040800, // 0007 RET 1 R4 }) ), &be_class_Matter_Device, }), 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ + ( &(const bvalue[ 5]) { /* constants */ /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(set_timer), - /* K2 */ be_const_int(0), + /* K1 */ be_nested_str_weak(add_cmd), + /* K2 */ be_nested_str_weak(MtrJoin), + /* K3 */ be_nested_str_weak(MtrUpdate), + /* K4 */ be_nested_str_weak(MtrInfo), }), - be_str_weak(start_commissioning_complete_deferred), + be_str_weak(register_commands), &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0xB80A0000, // 0000 GETNGBL R2 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x58100002, // 0002 LDCONST R4 K2 - 0x84140000, // 0003 CLOSURE R5 P0 - 0x7C080600, // 0004 CALL R2 3 - 0xA0000000, // 0005 CLOSE R0 - 0x80000000, // 0006 RET 0 + ( &(const binstruction[17]) { /* code */ + 0xB8060000, // 0000 GETNGBL R1 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x580C0002, // 0002 LDCONST R3 K2 + 0x84100000, // 0003 CLOSURE R4 P0 + 0x7C040600, // 0004 CALL R1 3 + 0xB8060000, // 0005 GETNGBL R1 K0 + 0x8C040301, // 0006 GETMET R1 R1 K1 + 0x580C0003, // 0007 LDCONST R3 K3 + 0x84100001, // 0008 CLOSURE R4 P1 + 0x7C040600, // 0009 CALL R1 3 + 0xB8060000, // 000A GETNGBL R1 K0 + 0x8C040301, // 000B GETMET R1 R1 K1 + 0x580C0004, // 000C LDCONST R3 K4 + 0x84100002, // 000D CLOSURE R4 P2 + 0x7C040600, // 000E CALL R1 3 + 0xA0000000, // 000F CLOSE R0 + 0x80000000, // 0010 RET 0 }) ) ); @@ -2236,12 +2371,12 @@ be_local_closure(class_Matter_Device_start_commissioning_complete_deferred, /* /******************************************************************** -** Solidified function: start +** Solidified function: check_config_ep ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_start, /* name */ +be_local_closure(class_Matter_Device_check_config_ep, /* name */ be_nested_proto( - 4, /* nstack */ + 10, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -2249,29 +2384,102 @@ be_local_closure(class_Matter_Device_start, /* name */ 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(started), - /* K1 */ be_nested_str_weak(autoconf_device), - /* K2 */ be_nested_str_weak(_start_udp), - /* K3 */ be_nested_str_weak(UDP_PORT), - /* K4 */ be_nested_str_weak(start_mdns_announce_hostnames), + ( &(const bvalue[14]) { /* constants */ + /* K0 */ be_nested_str_weak(plugins_config), + /* K1 */ be_nested_str_weak(keys), + /* K2 */ be_nested_str_weak(push), + /* K3 */ be_nested_str_weak(stop_iteration), + /* K4 */ be_const_int(0), + /* K5 */ be_nested_str_weak(log), + /* K6 */ be_nested_str_weak(MTR_X3A_X20invalid_X20entry_X20with_X20ep_X20_X270_X27), + /* K7 */ be_const_int(2), + /* K8 */ be_nested_str_weak(remove), + /* K9 */ be_nested_str_weak(matter), + /* K10 */ be_nested_str_weak(AGGREGATOR_ENDPOINT), + /* K11 */ be_nested_str_weak(MTR_X3A_X20endpoint_X20_X25s_X20collides_X20wit_X20aggregator_X2C_X20relocating_X20to_X20_X25s), + /* K12 */ be_nested_str_weak(next_ep), + /* K13 */ be_const_int(1), }), - be_str_weak(start), + be_str_weak(check_config_ep), &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x78060000, // 0001 JMPF R1 #0003 - 0x80000200, // 0002 RET 0 - 0x8C040101, // 0003 GETMET R1 R0 K1 - 0x7C040200, // 0004 CALL R1 1 - 0x8C040102, // 0005 GETMET R1 R0 K2 - 0x880C0103, // 0006 GETMBR R3 R0 K3 - 0x7C040400, // 0007 CALL R1 2 - 0x8C040104, // 0008 GETMET R1 R0 K4 - 0x7C040200, // 0009 CALL R1 1 - 0x50040200, // 000A LDBOOL R1 1 0 - 0x90020001, // 000B SETMBR R0 K0 R1 - 0x80000000, // 000C RET 0 + ( &(const binstruction[77]) { /* code */ + 0x50040000, // 0000 LDBOOL R1 0 0 + 0x60080012, // 0001 GETGBL R2 G18 + 0x7C080000, // 0002 CALL R2 0 + 0x600C0010, // 0003 GETGBL R3 G16 + 0x88100100, // 0004 GETMBR R4 R0 K0 + 0x8C100901, // 0005 GETMET R4 R4 K1 + 0x7C100200, // 0006 CALL R4 1 + 0x7C0C0200, // 0007 CALL R3 1 + 0xA8020007, // 0008 EXBLK 0 #0011 + 0x5C100600, // 0009 MOVE R4 R3 + 0x7C100000, // 000A CALL R4 0 + 0x8C140502, // 000B GETMET R5 R2 K2 + 0x601C0009, // 000C GETGBL R7 G9 + 0x5C200800, // 000D MOVE R8 R4 + 0x7C1C0200, // 000E CALL R7 1 + 0x7C140400, // 000F CALL R5 2 + 0x7001FFF7, // 0010 JMP #0009 + 0x580C0003, // 0011 LDCONST R3 K3 + 0xAC0C0200, // 0012 CATCH R3 1 0 + 0xB0080000, // 0013 RAISE 2 R0 R0 + 0x600C0010, // 0014 GETGBL R3 G16 + 0x5C100400, // 0015 MOVE R4 R2 + 0x7C0C0200, // 0016 CALL R3 1 + 0xA8020030, // 0017 EXBLK 0 #0049 + 0x5C100600, // 0018 MOVE R4 R3 + 0x7C100000, // 0019 CALL R4 0 + 0x1C140904, // 001A EQ R5 R4 K4 + 0x7816000B, // 001B JMPF R5 #0028 + 0xB8160A00, // 001C GETNGBL R5 K5 + 0x58180006, // 001D LDCONST R6 K6 + 0x581C0007, // 001E LDCONST R7 K7 + 0x7C140400, // 001F CALL R5 2 + 0x88140100, // 0020 GETMBR R5 R0 K0 + 0x8C140B08, // 0021 GETMET R5 R5 K8 + 0x601C0008, // 0022 GETGBL R7 G8 + 0x5C200800, // 0023 MOVE R8 R4 + 0x7C1C0200, // 0024 CALL R7 1 + 0x7C140400, // 0025 CALL R5 2 + 0x50040200, // 0026 LDBOOL R1 1 0 + 0x7002001F, // 0027 JMP #0048 + 0xB8161200, // 0028 GETNGBL R5 K9 + 0x88140B0A, // 0029 GETMBR R5 R5 K10 + 0x1C140805, // 002A EQ R5 R4 R5 + 0x7816001B, // 002B JMPF R5 #0048 + 0x50040200, // 002C LDBOOL R1 1 0 + 0xB8160A00, // 002D GETNGBL R5 K5 + 0x60180018, // 002E GETGBL R6 G24 + 0x581C000B, // 002F LDCONST R7 K11 + 0x5C200800, // 0030 MOVE R8 R4 + 0x8824010C, // 0031 GETMBR R9 R0 K12 + 0x7C180600, // 0032 CALL R6 3 + 0x581C0007, // 0033 LDCONST R7 K7 + 0x7C140400, // 0034 CALL R5 2 + 0x60140008, // 0035 GETGBL R5 G8 + 0x8818010C, // 0036 GETMBR R6 R0 K12 + 0x7C140200, // 0037 CALL R5 1 + 0x88180100, // 0038 GETMBR R6 R0 K0 + 0x601C0008, // 0039 GETGBL R7 G8 + 0x5C200800, // 003A MOVE R8 R4 + 0x7C1C0200, // 003B CALL R7 1 + 0x88200100, // 003C GETMBR R8 R0 K0 + 0x941C1007, // 003D GETIDX R7 R8 R7 + 0x98180A07, // 003E SETIDX R6 R5 R7 + 0x88140100, // 003F GETMBR R5 R0 K0 + 0x8C140B08, // 0040 GETMET R5 R5 K8 + 0x601C0008, // 0041 GETGBL R7 G8 + 0x5C200800, // 0042 MOVE R8 R4 + 0x7C1C0200, // 0043 CALL R7 1 + 0x7C140400, // 0044 CALL R5 2 + 0x8814010C, // 0045 GETMBR R5 R0 K12 + 0x00140B0D, // 0046 ADD R5 R5 K13 + 0x90021805, // 0047 SETMBR R0 K12 R5 + 0x7001FFCE, // 0048 JMP #0018 + 0x580C0003, // 0049 LDCONST R3 K3 + 0xAC0C0200, // 004A CATCH R3 1 0 + 0xB0080000, // 004B RAISE 2 R0 R0 + 0x80040200, // 004C RET 1 R1 }) ) ); @@ -2315,463 +2523,54 @@ be_local_closure(class_Matter_Device_every_50ms, /* name */ /******************************************************************** -** Solidified function: _trigger_read_sensors +** Solidified function: conf_to_log ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device__trigger_read_sensors, /* name */ - be_nested_proto( - 8, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[13]) { /* constants */ - /* K0 */ be_nested_str_weak(json), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(read_sensors), - /* K3 */ be_nested_str_weak(loglevel), - /* K4 */ be_const_int(3), - /* K5 */ be_nested_str_weak(log), - /* K6 */ be_nested_str_weak(MTR_X3A_X20read_sensors_X3A_X20), - /* K7 */ be_nested_str_weak(load), - /* K8 */ be_const_int(0), - /* K9 */ be_nested_str_weak(plugins), - /* K10 */ be_nested_str_weak(parse_sensors), - /* K11 */ be_const_int(1), - /* K12 */ be_nested_str_weak(MTR_X3A_X20unable_X20to_X20parse_X20read_sensors_X3A_X20), - }), - be_str_weak(_trigger_read_sensors), - &be_const_str_solidified, - ( &(const binstruction[48]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xB80A0200, // 0001 GETNGBL R2 K1 - 0x8C080502, // 0002 GETMET R2 R2 K2 - 0x7C080200, // 0003 CALL R2 1 - 0xB80E0200, // 0004 GETNGBL R3 K1 - 0x8C0C0703, // 0005 GETMET R3 R3 K3 - 0x58140004, // 0006 LDCONST R5 K4 - 0x7C0C0400, // 0007 CALL R3 2 - 0x780E0006, // 0008 JMPF R3 #0010 - 0xB80E0A00, // 0009 GETNGBL R3 K5 - 0x60100008, // 000A GETGBL R4 G8 - 0x5C140400, // 000B MOVE R5 R2 - 0x7C100200, // 000C CALL R4 1 - 0x00120C04, // 000D ADD R4 K6 R4 - 0x58140004, // 000E LDCONST R5 K4 - 0x7C0C0400, // 000F CALL R3 2 - 0x4C0C0000, // 0010 LDNIL R3 - 0x1C0C0403, // 0011 EQ R3 R2 R3 - 0x780E0000, // 0012 JMPF R3 #0014 - 0x80000600, // 0013 RET 0 - 0x8C0C0307, // 0014 GETMET R3 R1 K7 - 0x5C140400, // 0015 MOVE R5 R2 - 0x7C0C0400, // 0016 CALL R3 2 - 0x4C100000, // 0017 LDNIL R4 - 0x20100604, // 0018 NE R4 R3 R4 - 0x7812000D, // 0019 JMPF R4 #0028 - 0x58100008, // 001A LDCONST R4 K8 - 0x6014000C, // 001B GETGBL R5 G12 - 0x88180109, // 001C GETMBR R6 R0 K9 - 0x7C140200, // 001D CALL R5 1 - 0x14140805, // 001E LT R5 R4 R5 - 0x78160006, // 001F JMPF R5 #0027 - 0x88140109, // 0020 GETMBR R5 R0 K9 - 0x94140A04, // 0021 GETIDX R5 R5 R4 - 0x8C140B0A, // 0022 GETMET R5 R5 K10 - 0x5C1C0600, // 0023 MOVE R7 R3 - 0x7C140400, // 0024 CALL R5 2 - 0x0010090B, // 0025 ADD R4 R4 K11 - 0x7001FFF3, // 0026 JMP #001B - 0x70020006, // 0027 JMP #002F - 0xB8120A00, // 0028 GETNGBL R4 K5 - 0x60140008, // 0029 GETGBL R5 G8 - 0x5C180400, // 002A MOVE R6 R2 - 0x7C140200, // 002B CALL R5 1 - 0x00161805, // 002C ADD R5 K12 R5 - 0x58180004, // 002D LDCONST R6 K4 - 0x7C100400, // 002E CALL R4 2 - 0x80000000, // 002F RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: mdns_remove_PASE -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_mdns_remove_PASE, /* name */ +be_local_closure(class_Matter_Device_conf_to_log, /* name */ be_nested_proto( 9, /* nstack */ 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[19]) { /* constants */ - /* K0 */ be_nested_str_weak(mdns), - /* K1 */ be_nested_str_weak(mdns_pase_eth), - /* K2 */ be_nested_str_weak(log), - /* K3 */ be_nested_str_weak(MTR_X3A_X20calling_X20mdns_X2Eremove_service_X28_X25s_X2C_X20_X25s_X2C_X20_X25s_X2C_X20_X25s_X29), - /* K4 */ be_nested_str_weak(_matterc), - /* K5 */ be_nested_str_weak(_udp), - /* K6 */ be_nested_str_weak(commissioning_instance_eth), - /* K7 */ be_nested_str_weak(hostname_eth), - /* K8 */ be_const_int(3), - /* K9 */ be_nested_str_weak(MTR_X3A_X20remove_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27), - /* K10 */ be_nested_str_weak(eth), - /* K11 */ be_nested_str_weak(remove_service), - /* K12 */ be_nested_str_weak(mdns_pase_wifi), - /* K13 */ be_nested_str_weak(commissioning_instance_wifi), - /* K14 */ be_nested_str_weak(hostname_wifi), - /* K15 */ be_nested_str_weak(wifi), - /* K16 */ be_nested_str_weak(MTR_X3A_X20Exception), - /* K17 */ be_nested_str_weak(_X7C), - /* K18 */ be_const_int(2), - }), - be_str_weak(mdns_remove_PASE), - &be_const_str_solidified, - ( &(const binstruction[77]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA8020039, // 0001 EXBLK 0 #003C - 0x88080101, // 0002 GETMBR R2 R0 K1 - 0x780A0019, // 0003 JMPF R2 #001E - 0xB80A0400, // 0004 GETNGBL R2 K2 - 0x600C0018, // 0005 GETGBL R3 G24 - 0x58100003, // 0006 LDCONST R4 K3 - 0x58140004, // 0007 LDCONST R5 K4 - 0x58180005, // 0008 LDCONST R6 K5 - 0x881C0106, // 0009 GETMBR R7 R0 K6 - 0x88200107, // 000A GETMBR R8 R0 K7 - 0x7C0C0A00, // 000B CALL R3 5 - 0x58100008, // 000C LDCONST R4 K8 - 0x7C080400, // 000D CALL R2 2 - 0xB80A0400, // 000E GETNGBL R2 K2 - 0x600C0018, // 000F GETGBL R3 G24 - 0x58100009, // 0010 LDCONST R4 K9 - 0x5814000A, // 0011 LDCONST R5 K10 - 0x88180106, // 0012 GETMBR R6 R0 K6 - 0x7C0C0600, // 0013 CALL R3 3 - 0x58100008, // 0014 LDCONST R4 K8 - 0x7C080400, // 0015 CALL R2 2 - 0x50080000, // 0016 LDBOOL R2 0 0 - 0x90020202, // 0017 SETMBR R0 K1 R2 - 0x8C08030B, // 0018 GETMET R2 R1 K11 - 0x58100004, // 0019 LDCONST R4 K4 - 0x58140005, // 001A LDCONST R5 K5 - 0x88180106, // 001B GETMBR R6 R0 K6 - 0x881C0107, // 001C GETMBR R7 R0 K7 - 0x7C080A00, // 001D CALL R2 5 - 0x8808010C, // 001E GETMBR R2 R0 K12 - 0x780A0019, // 001F JMPF R2 #003A - 0xB80A0400, // 0020 GETNGBL R2 K2 - 0x600C0018, // 0021 GETGBL R3 G24 - 0x58100003, // 0022 LDCONST R4 K3 - 0x58140004, // 0023 LDCONST R5 K4 - 0x58180005, // 0024 LDCONST R6 K5 - 0x881C010D, // 0025 GETMBR R7 R0 K13 - 0x8820010E, // 0026 GETMBR R8 R0 K14 - 0x7C0C0A00, // 0027 CALL R3 5 - 0x58100008, // 0028 LDCONST R4 K8 - 0x7C080400, // 0029 CALL R2 2 - 0xB80A0400, // 002A GETNGBL R2 K2 - 0x600C0018, // 002B GETGBL R3 G24 - 0x58100009, // 002C LDCONST R4 K9 - 0x5814000F, // 002D LDCONST R5 K15 - 0x8818010D, // 002E GETMBR R6 R0 K13 - 0x7C0C0600, // 002F CALL R3 3 - 0x58100008, // 0030 LDCONST R4 K8 - 0x7C080400, // 0031 CALL R2 2 - 0x50080000, // 0032 LDBOOL R2 0 0 - 0x90021802, // 0033 SETMBR R0 K12 R2 - 0x8C08030B, // 0034 GETMET R2 R1 K11 - 0x58100004, // 0035 LDCONST R4 K4 - 0x58140005, // 0036 LDCONST R5 K5 - 0x8818010D, // 0037 GETMBR R6 R0 K13 - 0x881C010E, // 0038 GETMBR R7 R0 K14 - 0x7C080A00, // 0039 CALL R2 5 - 0xA8040001, // 003A EXBLK 1 1 - 0x7002000F, // 003B JMP #004C - 0xAC080002, // 003C CATCH R2 0 2 - 0x7002000C, // 003D JMP #004B - 0xB8120400, // 003E GETNGBL R4 K2 - 0x60140008, // 003F GETGBL R5 G8 - 0x5C180400, // 0040 MOVE R6 R2 - 0x7C140200, // 0041 CALL R5 1 - 0x00162005, // 0042 ADD R5 K16 R5 - 0x00140B11, // 0043 ADD R5 R5 K17 - 0x60180008, // 0044 GETGBL R6 G8 - 0x5C1C0600, // 0045 MOVE R7 R3 - 0x7C180200, // 0046 CALL R6 1 - 0x00140A06, // 0047 ADD R5 R5 R6 - 0x58180012, // 0048 LDCONST R6 K18 - 0x7C100400, // 0049 CALL R4 2 - 0x70020000, // 004A JMP #004C - 0xB0080000, // 004B RAISE 2 R0 R0 - 0x80000000, // 004C RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_active_endpoints -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_get_active_endpoints, /* name */ - be_nested_proto( - 9, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_nested_str_weak(plugins), - /* K1 */ be_nested_str_weak(get_endpoint), - /* K2 */ be_const_int(0), - /* K3 */ be_nested_str_weak(find), - /* K4 */ be_nested_str_weak(push), - /* K5 */ be_nested_str_weak(stop_iteration), - }), - be_str_weak(get_active_endpoints), - &be_const_str_solidified, - ( &(const binstruction[28]) { /* code */ - 0x60080012, // 0000 GETGBL R2 G18 - 0x7C080000, // 0001 CALL R2 0 - 0x600C0010, // 0002 GETGBL R3 G16 - 0x88100100, // 0003 GETMBR R4 R0 K0 - 0x7C0C0200, // 0004 CALL R3 1 - 0xA8020011, // 0005 EXBLK 0 #0018 - 0x5C100600, // 0006 MOVE R4 R3 - 0x7C100000, // 0007 CALL R4 0 - 0x8C140901, // 0008 GETMET R5 R4 K1 - 0x7C140200, // 0009 CALL R5 1 - 0x78060002, // 000A JMPF R1 #000E - 0x1C180B02, // 000B EQ R6 R5 K2 - 0x781A0000, // 000C JMPF R6 #000E - 0x7001FFF7, // 000D JMP #0006 - 0x8C180503, // 000E GETMET R6 R2 K3 - 0x5C200A00, // 000F MOVE R8 R5 - 0x7C180400, // 0010 CALL R6 2 - 0x4C1C0000, // 0011 LDNIL R7 - 0x1C180C07, // 0012 EQ R6 R6 R7 - 0x781A0002, // 0013 JMPF R6 #0017 - 0x8C180504, // 0014 GETMET R6 R2 K4 - 0x5C200A00, // 0015 MOVE R8 R5 - 0x7C180400, // 0016 CALL R6 2 - 0x7001FFED, // 0017 JMP #0006 - 0x580C0005, // 0018 LDCONST R3 K5 - 0xAC0C0200, // 0019 CATCH R3 1 0 - 0xB0080000, // 001A RAISE 2 R0 R0 - 0x80040400, // 001B RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: find_plugin_by_friendly_name -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_find_plugin_by_friendly_name, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_const_int(0), - /* K1 */ be_nested_str_weak(plugins), - /* K2 */ be_nested_str_weak(get_name), - /* K3 */ be_const_int(1), - }), - be_str_weak(find_plugin_by_friendly_name), - &be_const_str_solidified, - ( &(const binstruction[35]) { /* code */ - 0x4C080000, // 0000 LDNIL R2 - 0x1C080202, // 0001 EQ R2 R1 R2 - 0x740A0004, // 0002 JMPT R2 #0008 - 0x6008000C, // 0003 GETGBL R2 G12 - 0x5C0C0200, // 0004 MOVE R3 R1 - 0x7C080200, // 0005 CALL R2 1 - 0x1C080500, // 0006 EQ R2 R2 K0 - 0x780A0001, // 0007 JMPF R2 #000A - 0x4C080000, // 0008 LDNIL R2 - 0x80040400, // 0009 RET 1 R2 - 0x58080000, // 000A LDCONST R2 K0 - 0x600C000C, // 000B GETGBL R3 G12 - 0x88100101, // 000C GETMBR R4 R0 K1 - 0x7C0C0200, // 000D CALL R3 1 - 0x140C0403, // 000E LT R3 R2 R3 - 0x780E0010, // 000F JMPF R3 #0021 - 0x880C0101, // 0010 GETMBR R3 R0 K1 - 0x940C0602, // 0011 GETIDX R3 R3 R2 - 0x8C100702, // 0012 GETMET R4 R3 K2 - 0x7C100200, // 0013 CALL R4 1 - 0x4C140000, // 0014 LDNIL R5 - 0x20140805, // 0015 NE R5 R4 R5 - 0x78160007, // 0016 JMPF R5 #001F - 0x6014000C, // 0017 GETGBL R5 G12 - 0x5C180800, // 0018 MOVE R6 R4 - 0x7C140200, // 0019 CALL R5 1 - 0x24140B00, // 001A GT R5 R5 K0 - 0x78160002, // 001B JMPF R5 #001F - 0x1C140801, // 001C EQ R5 R4 R1 - 0x78160000, // 001D JMPF R5 #001F - 0x80040600, // 001E RET 1 R3 - 0x00080503, // 001F ADD R2 R2 K3 - 0x7001FFE9, // 0020 JMP #000B - 0x4C0C0000, // 0021 LDNIL R3 - 0x80040600, // 0022 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: adjust_next_ep -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_adjust_next_ep, /* name */ - be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(plugins_config), - /* K1 */ be_nested_str_weak(keys), - /* K2 */ be_nested_str_weak(next_ep), - /* K3 */ be_const_int(1), - /* K4 */ be_nested_str_weak(stop_iteration), - }), - be_str_weak(adjust_next_ep), - &be_const_str_solidified, - ( &(const binstruction[21]) { /* code */ - 0x60040010, // 0000 GETGBL R1 G16 - 0x88080100, // 0001 GETMBR R2 R0 K0 - 0x8C080501, // 0002 GETMET R2 R2 K1 - 0x7C080200, // 0003 CALL R2 1 - 0x7C040200, // 0004 CALL R1 1 - 0xA802000A, // 0005 EXBLK 0 #0011 - 0x5C080200, // 0006 MOVE R2 R1 - 0x7C080000, // 0007 CALL R2 0 - 0x600C0009, // 0008 GETGBL R3 G9 - 0x5C100400, // 0009 MOVE R4 R2 - 0x7C0C0200, // 000A CALL R3 1 - 0x88100102, // 000B GETMBR R4 R0 K2 - 0x28100604, // 000C GE R4 R3 R4 - 0x78120001, // 000D JMPF R4 #0010 - 0x00100703, // 000E ADD R4 R3 K3 - 0x90020404, // 000F SETMBR R0 K2 R4 - 0x7001FFF4, // 0010 JMP #0006 - 0x58040004, // 0011 LDCONST R1 K4 - 0xAC040200, // 0012 CATCH R1 1 0 - 0xB0080000, // 0013 RAISE 2 R0 R0 - 0x80000000, // 0014 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: sort_distinct -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_sort_distinct, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ 4, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ + ( &(const bvalue[ 6]) { /* constants */ /* K0 */ be_const_class(be_class_Matter_Device), - /* K1 */ be_const_int(1), - /* K2 */ be_const_int(0), - /* K3 */ be_nested_str_weak(stop_iteration), - /* K4 */ be_nested_str_weak(remove), + /* K1 */ be_nested_str_weak(), + /* K2 */ be_nested_str_weak(k2l), + /* K3 */ be_nested_str_weak(type), + /* K4 */ be_nested_str_weak(_X20_X25s_X3A_X25s), + /* K5 */ be_nested_str_weak(stop_iteration), }), - be_str_weak(sort_distinct), + be_str_weak(conf_to_log), &be_const_str_solidified, - ( &(const binstruction[53]) { /* code */ + ( &(const binstruction[24]) { /* code */ 0x58040000, // 0000 LDCONST R1 K0 - 0x60080010, // 0001 GETGBL R2 G16 - 0x600C000C, // 0002 GETGBL R3 G12 - 0x5C100000, // 0003 MOVE R4 R0 - 0x7C0C0200, // 0004 CALL R3 1 - 0x040C0701, // 0005 SUB R3 R3 K1 - 0x400E0203, // 0006 CONNECT R3 K1 R3 - 0x7C080200, // 0007 CALL R2 1 - 0xA8020010, // 0008 EXBLK 0 #001A - 0x5C0C0400, // 0009 MOVE R3 R2 - 0x7C0C0000, // 000A CALL R3 0 - 0x94100003, // 000B GETIDX R4 R0 R3 - 0x5C140600, // 000C MOVE R5 R3 - 0x24180B02, // 000D GT R6 R5 K2 - 0x781A0008, // 000E JMPF R6 #0018 - 0x04180B01, // 000F SUB R6 R5 K1 - 0x94180006, // 0010 GETIDX R6 R0 R6 - 0x24180C04, // 0011 GT R6 R6 R4 - 0x781A0004, // 0012 JMPF R6 #0018 - 0x04180B01, // 0013 SUB R6 R5 K1 - 0x94180006, // 0014 GETIDX R6 R0 R6 - 0x98000A06, // 0015 SETIDX R0 R5 R6 - 0x04140B01, // 0016 SUB R5 R5 K1 - 0x7001FFF4, // 0017 JMP #000D - 0x98000A04, // 0018 SETIDX R0 R5 R4 - 0x7001FFEE, // 0019 JMP #0009 - 0x58080003, // 001A LDCONST R2 K3 - 0xAC080200, // 001B CATCH R2 1 0 - 0xB0080000, // 001C RAISE 2 R0 R0 - 0x58080001, // 001D LDCONST R2 K1 - 0x600C000C, // 001E GETGBL R3 G12 - 0x5C100000, // 001F MOVE R4 R0 - 0x7C0C0200, // 0020 CALL R3 1 - 0x180C0701, // 0021 LE R3 R3 K1 - 0x780E0000, // 0022 JMPF R3 #0024 - 0x80040000, // 0023 RET 1 R0 - 0x940C0102, // 0024 GETIDX R3 R0 K2 - 0x6010000C, // 0025 GETGBL R4 G12 - 0x5C140000, // 0026 MOVE R5 R0 - 0x7C100200, // 0027 CALL R4 1 - 0x14100404, // 0028 LT R4 R2 R4 - 0x78120009, // 0029 JMPF R4 #0034 - 0x94100002, // 002A GETIDX R4 R0 R2 - 0x1C100803, // 002B EQ R4 R4 R3 - 0x78120003, // 002C JMPF R4 #0031 - 0x8C100104, // 002D GETMET R4 R0 K4 - 0x5C180400, // 002E MOVE R6 R2 - 0x7C100400, // 002F CALL R4 2 - 0x70020001, // 0030 JMP #0033 - 0x940C0002, // 0031 GETIDX R3 R0 R2 - 0x00080501, // 0032 ADD R2 R2 K1 - 0x7001FFF0, // 0033 JMP #0025 - 0x80040000, // 0034 RET 1 R0 + 0x58080001, // 0001 LDCONST R2 K1 + 0x600C0010, // 0002 GETGBL R3 G16 + 0x8C100302, // 0003 GETMET R4 R1 K2 + 0x5C180000, // 0004 MOVE R6 R0 + 0x7C100400, // 0005 CALL R4 2 + 0x7C0C0200, // 0006 CALL R3 1 + 0xA802000B, // 0007 EXBLK 0 #0014 + 0x5C100600, // 0008 MOVE R4 R3 + 0x7C100000, // 0009 CALL R4 0 + 0x1C140903, // 000A EQ R5 R4 K3 + 0x78160000, // 000B JMPF R5 #000D + 0x7001FFFA, // 000C JMP #0008 + 0x60140018, // 000D GETGBL R5 G24 + 0x58180004, // 000E LDCONST R6 K4 + 0x5C1C0800, // 000F MOVE R7 R4 + 0x94200004, // 0010 GETIDX R8 R0 R4 + 0x7C140600, // 0011 CALL R5 3 + 0x00080405, // 0012 ADD R2 R2 R5 + 0x7001FFF3, // 0013 JMP #0008 + 0x580C0005, // 0014 LDCONST R3 K5 + 0xAC0C0200, // 0015 CATCH R3 1 0 + 0xB0080000, // 0016 RAISE 2 R0 R0 + 0x80040400, // 0017 RET 1 R2 }) ) ); @@ -2861,151 +2660,6 @@ be_local_closure(class_Matter_Device_k2l_num, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: start_basic_commissioning -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_start_basic_commissioning, /* name */ - be_nested_proto( - 13, /* nstack */ - 8, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 3]) { - be_nested_proto( - 4, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(mdns_announce_PASE), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(remove_rule), - /* K3 */ be_nested_str_weak(Wifi_X23Connected), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x7C000200, // 0002 CALL R0 1 - 0xB8020200, // 0003 GETNGBL R0 K1 - 0x8C000102, // 0004 GETMET R0 R0 K2 - 0x58080003, // 0005 LDCONST R2 K3 - 0x580C0000, // 0006 LDCONST R3 K0 - 0x7C000600, // 0007 CALL R0 3 - 0x80000000, // 0008 RET 0 - }) - ), - be_nested_proto( - 4, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(mdns_announce_PASE), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(remove_rule), - /* K3 */ be_nested_str_weak(Eth_X23Connected), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x7C000200, // 0002 CALL R0 1 - 0xB8020200, // 0003 GETNGBL R0 K1 - 0x8C000102, // 0004 GETMET R0 R0 K2 - 0x58080003, // 0005 LDCONST R2 K3 - 0x580C0000, // 0006 LDCONST R3 K0 - 0x7C000600, // 0007 CALL R0 3 - 0x80000000, // 0008 RET 0 - }) - ), - &be_class_Matter_Device, - }), - 1, /* has constants */ - ( &(const bvalue[16]) { /* constants */ - /* K0 */ be_nested_str_weak(commissioning_open), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(millis), - /* K3 */ be_nested_str_weak(commissioning_iterations), - /* K4 */ be_nested_str_weak(commissioning_discriminator), - /* K5 */ be_nested_str_weak(commissioning_salt), - /* K6 */ be_nested_str_weak(commissioning_w0), - /* K7 */ be_nested_str_weak(commissioning_L), - /* K8 */ be_nested_str_weak(commissioning_admin_fabric), - /* K9 */ be_nested_str_weak(wifi), - /* K10 */ be_nested_str_weak(up), - /* K11 */ be_nested_str_weak(eth), - /* K12 */ be_nested_str_weak(mdns_announce_PASE), - /* K13 */ be_nested_str_weak(add_rule), - /* K14 */ be_nested_str_weak(Wifi_X23Connected), - /* K15 */ be_nested_str_weak(Eth_X23Connected), - }), - be_str_weak(start_basic_commissioning), - &be_const_str_solidified, - ( &(const binstruction[40]) { /* code */ - 0xB8220200, // 0000 GETNGBL R8 K1 - 0x8C201102, // 0001 GETMET R8 R8 K2 - 0x7C200200, // 0002 CALL R8 1 - 0x542603E7, // 0003 LDINT R9 1000 - 0x08240209, // 0004 MUL R9 R1 R9 - 0x00201009, // 0005 ADD R8 R8 R9 - 0x90020008, // 0006 SETMBR R0 K0 R8 - 0x90020602, // 0007 SETMBR R0 K3 R2 - 0x90020803, // 0008 SETMBR R0 K4 R3 - 0x90020A04, // 0009 SETMBR R0 K5 R4 - 0x90020C05, // 000A SETMBR R0 K6 R5 - 0x90020E06, // 000B SETMBR R0 K7 R6 - 0x90021007, // 000C SETMBR R0 K8 R7 - 0xB8220200, // 000D GETNGBL R8 K1 - 0x8C201109, // 000E GETMET R8 R8 K9 - 0x7C200200, // 000F CALL R8 1 - 0x9420110A, // 0010 GETIDX R8 R8 K10 - 0x74220004, // 0011 JMPT R8 #0017 - 0xB8220200, // 0012 GETNGBL R8 K1 - 0x8C20110B, // 0013 GETMET R8 R8 K11 - 0x7C200200, // 0014 CALL R8 1 - 0x9420110A, // 0015 GETIDX R8 R8 K10 - 0x78220002, // 0016 JMPF R8 #001A - 0x8C20010C, // 0017 GETMET R8 R0 K12 - 0x7C200200, // 0018 CALL R8 1 - 0x7002000B, // 0019 JMP #0026 - 0xB8220200, // 001A GETNGBL R8 K1 - 0x8C20110D, // 001B GETMET R8 R8 K13 - 0x5828000E, // 001C LDCONST R10 K14 - 0x842C0000, // 001D CLOSURE R11 P0 - 0x5830000C, // 001E LDCONST R12 K12 - 0x7C200800, // 001F CALL R8 4 - 0xB8220200, // 0020 GETNGBL R8 K1 - 0x8C20110D, // 0021 GETMET R8 R8 K13 - 0x5828000F, // 0022 LDCONST R10 K15 - 0x842C0001, // 0023 CLOSURE R11 P1 - 0x5830000C, // 0024 LDCONST R12 K12 - 0x7C200800, // 0025 CALL R8 4 - 0xA0000000, // 0026 CLOSE R0 - 0x80000000, // 0027 RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: stop ********************************************************************/ @@ -3046,10 +2700,10 @@ be_local_closure(class_Matter_Device_stop, /* name */ /******************************************************************** -** Solidified function: msg_send +** Solidified function: get_plugin_class_arg ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_msg_send, /* name */ +be_local_closure(class_Matter_Device_get_plugin_class_arg, /* name */ be_nested_proto( 5, /* nstack */ 2, /* argc */ @@ -3059,97 +2713,24 @@ be_local_closure(class_Matter_Device_msg_send, /* name */ 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(udp_server), - /* K1 */ be_nested_str_weak(send_UDP), + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(plugins_classes), + /* K1 */ be_nested_str_weak(find), + /* K2 */ be_nested_str_weak(ARG), + /* K3 */ be_nested_str_weak(), }), - be_str_weak(msg_send), + be_str_weak(get_plugin_class_arg), &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ + ( &(const binstruction[ 9]) { /* code */ 0x88080100, // 0000 GETMBR R2 R0 K0 0x8C080501, // 0001 GETMET R2 R2 K1 0x5C100200, // 0002 MOVE R4 R1 0x7C080400, // 0003 CALL R2 2 - 0x80040400, // 0004 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: autoconf_device -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_autoconf_device, /* name */ - be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[15]) { /* constants */ - /* K0 */ be_nested_str_weak(json), - /* K1 */ be_nested_str_weak(plugins), - /* K2 */ be_const_int(0), - /* K3 */ be_nested_str_weak(plugins_persist), - /* K4 */ be_nested_str_weak(plugins_config), - /* K5 */ be_nested_str_weak(autoconf_device_map), - /* K6 */ be_nested_str_weak(plugins_config_remotes), - /* K7 */ be_nested_str_weak(adjust_next_ep), - /* K8 */ be_nested_str_weak(log), - /* K9 */ be_nested_str_weak(MTR_X3A_X20autoconfig_X20_X3D_X20), - /* K10 */ be_const_int(3), - /* K11 */ be_nested_str_weak(_instantiate_plugins_from_config), - /* K12 */ be_nested_str_weak(sessions), - /* K13 */ be_nested_str_weak(count_active_fabrics), - /* K14 */ be_nested_str_weak(save_param), - }), - be_str_weak(autoconf_device), - &be_const_str_solidified, - ( &(const binstruction[39]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x6008000C, // 0001 GETGBL R2 G12 - 0x880C0101, // 0002 GETMBR R3 R0 K1 - 0x7C080200, // 0003 CALL R2 1 - 0x24080502, // 0004 GT R2 R2 K2 - 0x780A0000, // 0005 JMPF R2 #0007 - 0x80000400, // 0006 RET 0 - 0x88080103, // 0007 GETMBR R2 R0 K3 - 0x740A000E, // 0008 JMPT R2 #0018 - 0x8C080105, // 0009 GETMET R2 R0 K5 - 0x7C080200, // 000A CALL R2 1 - 0x90020802, // 000B SETMBR R0 K4 R2 - 0x60080013, // 000C GETGBL R2 G19 - 0x7C080000, // 000D CALL R2 0 - 0x90020C02, // 000E SETMBR R0 K6 R2 - 0x8C080107, // 000F GETMET R2 R0 K7 - 0x7C080200, // 0010 CALL R2 1 - 0xB80A1000, // 0011 GETNGBL R2 K8 - 0x600C0008, // 0012 GETGBL R3 G8 - 0x88100104, // 0013 GETMBR R4 R0 K4 - 0x7C0C0200, // 0014 CALL R3 1 - 0x000E1203, // 0015 ADD R3 K9 R3 - 0x5810000A, // 0016 LDCONST R4 K10 - 0x7C080400, // 0017 CALL R2 2 - 0x8C08010B, // 0018 GETMET R2 R0 K11 - 0x88100104, // 0019 GETMBR R4 R0 K4 - 0x7C080400, // 001A CALL R2 2 - 0x88080103, // 001B GETMBR R2 R0 K3 - 0x740A0008, // 001C JMPT R2 #0026 - 0x8808010C, // 001D GETMBR R2 R0 K12 - 0x8C08050D, // 001E GETMET R2 R2 K13 - 0x7C080200, // 001F CALL R2 1 - 0x24080502, // 0020 GT R2 R2 K2 - 0x780A0003, // 0021 JMPF R2 #0026 - 0x50080200, // 0022 LDBOOL R2 1 0 - 0x90020602, // 0023 SETMBR R0 K3 R2 - 0x8C08010E, // 0024 GETMET R2 R0 K14 - 0x7C080200, // 0025 CALL R2 1 - 0x80000000, // 0026 RET 0 + 0x780A0001, // 0004 JMPF R2 #0007 + 0x880C0502, // 0005 GETMBR R3 R2 K2 + 0x70020000, // 0006 JMP #0008 + 0x580C0003, // 0007 LDCONST R3 K3 + 0x80040600, // 0008 RET 1 R3 }) ) ); @@ -3415,6 +2996,615 @@ be_local_closure(class_Matter_Device_autoconf_device_map, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: remove_fabric +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_remove_fabric, /* name */ + be_nested_proto( + 5, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[15]) { /* constants */ + /* K0 */ be_nested_str_weak(log), + /* K1 */ be_nested_str_weak(MTR_X3A_X20removing_X20fabric_X20), + /* K2 */ be_nested_str_weak(get_fabric_id), + /* K3 */ be_nested_str_weak(copy), + /* K4 */ be_nested_str_weak(reverse), + /* K5 */ be_nested_str_weak(tohex), + /* K6 */ be_const_int(2), + /* K7 */ be_nested_str_weak(message_handler), + /* K8 */ be_nested_str_weak(im), + /* K9 */ be_nested_str_weak(subs_shop), + /* K10 */ be_nested_str_weak(remove_by_fabric), + /* K11 */ be_nested_str_weak(mdns_remove_op_discovery), + /* K12 */ be_nested_str_weak(sessions), + /* K13 */ be_nested_str_weak(remove_fabric), + /* K14 */ be_nested_str_weak(save_fabrics), + }), + be_str_weak(remove_fabric), + &be_const_str_solidified, + ( &(const binstruction[32]) { /* code */ + 0x4C080000, // 0000 LDNIL R2 + 0x20080202, // 0001 NE R2 R1 R2 + 0x780A0018, // 0002 JMPF R2 #001C + 0xB80A0000, // 0003 GETNGBL R2 K0 + 0x8C0C0302, // 0004 GETMET R3 R1 K2 + 0x7C0C0200, // 0005 CALL R3 1 + 0x8C0C0703, // 0006 GETMET R3 R3 K3 + 0x7C0C0200, // 0007 CALL R3 1 + 0x8C0C0704, // 0008 GETMET R3 R3 K4 + 0x7C0C0200, // 0009 CALL R3 1 + 0x8C0C0705, // 000A GETMET R3 R3 K5 + 0x7C0C0200, // 000B CALL R3 1 + 0x000E0203, // 000C ADD R3 K1 R3 + 0x58100006, // 000D LDCONST R4 K6 + 0x7C080400, // 000E CALL R2 2 + 0x88080107, // 000F GETMBR R2 R0 K7 + 0x88080508, // 0010 GETMBR R2 R2 K8 + 0x88080509, // 0011 GETMBR R2 R2 K9 + 0x8C08050A, // 0012 GETMET R2 R2 K10 + 0x5C100200, // 0013 MOVE R4 R1 + 0x7C080400, // 0014 CALL R2 2 + 0x8C08010B, // 0015 GETMET R2 R0 K11 + 0x5C100200, // 0016 MOVE R4 R1 + 0x7C080400, // 0017 CALL R2 2 + 0x8808010C, // 0018 GETMBR R2 R0 K12 + 0x8C08050D, // 0019 GETMET R2 R2 K13 + 0x5C100200, // 001A MOVE R4 R1 + 0x7C080400, // 001B CALL R2 2 + 0x8808010C, // 001C GETMBR R2 R0 K12 + 0x8C08050E, // 001D GETMET R2 R2 K14 + 0x7C080200, // 001E CALL R2 1 + 0x80000000, // 001F RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: init +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_init, /* name */ + be_nested_proto( + 7, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 3]) { + be_nested_proto( + 4, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(start), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(remove_rule), + /* K3 */ be_nested_str_weak(Wifi_X23Connected), + /* K4 */ be_nested_str_weak(matter_start), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x7C000200, // 0002 CALL R0 1 + 0xB8020200, // 0003 GETNGBL R0 K1 + 0x8C000102, // 0004 GETMET R0 R0 K2 + 0x58080003, // 0005 LDCONST R2 K3 + 0x580C0004, // 0006 LDCONST R3 K4 + 0x7C000600, // 0007 CALL R0 3 + 0x80000000, // 0008 RET 0 + }) + ), + be_nested_proto( + 4, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(start), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(remove_rule), + /* K3 */ be_nested_str_weak(Eth_X23Connected), + /* K4 */ be_nested_str_weak(matter_start), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x7C000200, // 0002 CALL R0 1 + 0xB8020200, // 0003 GETNGBL R0 K1 + 0x8C000102, // 0004 GETMET R0 R0 K2 + 0x58080003, // 0005 LDCONST R2 K3 + 0x580C0004, // 0006 LDCONST R3 K4 + 0x7C000600, // 0007 CALL R0 3 + 0x80000000, // 0008 RET 0 + }) + ), + &be_class_Matter_Device, + }), + 1, /* has constants */ + ( &(const bvalue[38]) { /* constants */ + /* K0 */ be_nested_str_weak(crypto), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(get_option), + /* K3 */ be_nested_str_weak(matter), + /* K4 */ be_nested_str_weak(MATTER_OPTION), + /* K5 */ be_nested_str_weak(UI), + /* K6 */ be_nested_str_weak(profiler), + /* K7 */ be_nested_str_weak(Profiler), + /* K8 */ be_nested_str_weak(started), + /* K9 */ be_nested_str_weak(tick), + /* K10 */ be_const_int(0), + /* K11 */ be_nested_str_weak(plugins), + /* K12 */ be_nested_str_weak(plugins_persist), + /* K13 */ be_nested_str_weak(plugins_config_remotes), + /* K14 */ be_nested_str_weak(next_ep), + /* K15 */ be_const_int(2), + /* K16 */ be_nested_str_weak(ipv4only), + /* K17 */ be_nested_str_weak(disable_bridge_mode), + /* K18 */ be_nested_str_weak(load_param), + /* K19 */ be_nested_str_weak(sessions), + /* K20 */ be_nested_str_weak(Session_Store), + /* K21 */ be_nested_str_weak(load_fabrics), + /* K22 */ be_nested_str_weak(message_handler), + /* K23 */ be_nested_str_weak(MessageHandler), + /* K24 */ be_nested_str_weak(events), + /* K25 */ be_nested_str_weak(EventHandler), + /* K26 */ be_nested_str_weak(ui), + /* K27 */ be_nested_str_weak(wifi), + /* K28 */ be_nested_str_weak(up), + /* K29 */ be_nested_str_weak(eth), + /* K30 */ be_nested_str_weak(start), + /* K31 */ be_nested_str_weak(add_rule), + /* K32 */ be_nested_str_weak(Wifi_X23Connected), + /* K33 */ be_nested_str_weak(matter_start), + /* K34 */ be_nested_str_weak(Eth_X23Connected), + /* K35 */ be_nested_str_weak(_init_basic_commissioning), + /* K36 */ be_nested_str_weak(add_driver), + /* K37 */ be_nested_str_weak(register_commands), + }), + be_str_weak(init), + &be_const_str_solidified, + ( &(const binstruction[102]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xB80A0200, // 0001 GETNGBL R2 K1 + 0x8C080502, // 0002 GETMET R2 R2 K2 + 0xB8120600, // 0003 GETNGBL R4 K3 + 0x88100904, // 0004 GETMBR R4 R4 K4 + 0x7C080400, // 0005 CALL R2 2 + 0x740A0004, // 0006 JMPT R2 #000C + 0xB80A0600, // 0007 GETNGBL R2 K3 + 0x8C080505, // 0008 GETMET R2 R2 K5 + 0x5C100000, // 0009 MOVE R4 R0 + 0x7C080400, // 000A CALL R2 2 + 0x80000400, // 000B RET 0 + 0xB80A0600, // 000C GETNGBL R2 K3 + 0xB80E0600, // 000D GETNGBL R3 K3 + 0x8C0C0707, // 000E GETMET R3 R3 K7 + 0x7C0C0200, // 000F CALL R3 1 + 0x900A0C03, // 0010 SETMBR R2 K6 R3 + 0x50080000, // 0011 LDBOOL R2 0 0 + 0x90021002, // 0012 SETMBR R0 K8 R2 + 0x9002130A, // 0013 SETMBR R0 K9 K10 + 0x60080012, // 0014 GETGBL R2 G18 + 0x7C080000, // 0015 CALL R2 0 + 0x90021602, // 0016 SETMBR R0 K11 R2 + 0x50080000, // 0017 LDBOOL R2 0 0 + 0x90021802, // 0018 SETMBR R0 K12 R2 + 0x60080013, // 0019 GETGBL R2 G19 + 0x7C080000, // 001A CALL R2 0 + 0x90021A02, // 001B SETMBR R0 K13 R2 + 0x90021D0F, // 001C SETMBR R0 K14 K15 + 0x50080000, // 001D LDBOOL R2 0 0 + 0x90022002, // 001E SETMBR R0 K16 R2 + 0x50080000, // 001F LDBOOL R2 0 0 + 0x90022202, // 0020 SETMBR R0 K17 R2 + 0x8C080112, // 0021 GETMET R2 R0 K18 + 0x7C080200, // 0022 CALL R2 1 + 0xB80A0600, // 0023 GETNGBL R2 K3 + 0x8C080514, // 0024 GETMET R2 R2 K20 + 0x5C100000, // 0025 MOVE R4 R0 + 0x7C080400, // 0026 CALL R2 2 + 0x90022602, // 0027 SETMBR R0 K19 R2 + 0x88080113, // 0028 GETMBR R2 R0 K19 + 0x8C080515, // 0029 GETMET R2 R2 K21 + 0x7C080200, // 002A CALL R2 1 + 0xB80A0600, // 002B GETNGBL R2 K3 + 0x8C080517, // 002C GETMET R2 R2 K23 + 0x5C100000, // 002D MOVE R4 R0 + 0x7C080400, // 002E CALL R2 2 + 0x90022C02, // 002F SETMBR R0 K22 R2 + 0xB80A0600, // 0030 GETNGBL R2 K3 + 0x8C080519, // 0031 GETMET R2 R2 K25 + 0x5C100000, // 0032 MOVE R4 R0 + 0x7C080400, // 0033 CALL R2 2 + 0x90023002, // 0034 SETMBR R0 K24 R2 + 0xB80A0600, // 0035 GETNGBL R2 K3 + 0x8C080505, // 0036 GETMET R2 R2 K5 + 0x5C100000, // 0037 MOVE R4 R0 + 0x7C080400, // 0038 CALL R2 2 + 0x90023402, // 0039 SETMBR R0 K26 R2 + 0xB80A0200, // 003A GETNGBL R2 K1 + 0x8C08051B, // 003B GETMET R2 R2 K27 + 0x7C080200, // 003C CALL R2 1 + 0x9408051C, // 003D GETIDX R2 R2 K28 + 0x740A0004, // 003E JMPT R2 #0044 + 0xB80A0200, // 003F GETNGBL R2 K1 + 0x8C08051D, // 0040 GETMET R2 R2 K29 + 0x7C080200, // 0041 CALL R2 1 + 0x9408051C, // 0042 GETIDX R2 R2 K28 + 0x780A0001, // 0043 JMPF R2 #0046 + 0x8C08011E, // 0044 GETMET R2 R0 K30 + 0x7C080200, // 0045 CALL R2 1 + 0xB80A0200, // 0046 GETNGBL R2 K1 + 0x8C08051B, // 0047 GETMET R2 R2 K27 + 0x7C080200, // 0048 CALL R2 1 + 0x9408051C, // 0049 GETIDX R2 R2 K28 + 0x740A0005, // 004A JMPT R2 #0051 + 0xB80A0200, // 004B GETNGBL R2 K1 + 0x8C08051F, // 004C GETMET R2 R2 K31 + 0x58100020, // 004D LDCONST R4 K32 + 0x84140000, // 004E CLOSURE R5 P0 + 0x58180021, // 004F LDCONST R6 K33 + 0x7C080800, // 0050 CALL R2 4 + 0xB80A0200, // 0051 GETNGBL R2 K1 + 0x8C08051D, // 0052 GETMET R2 R2 K29 + 0x7C080200, // 0053 CALL R2 1 + 0x9408051C, // 0054 GETIDX R2 R2 K28 + 0x740A0005, // 0055 JMPT R2 #005C + 0xB80A0200, // 0056 GETNGBL R2 K1 + 0x8C08051F, // 0057 GETMET R2 R2 K31 + 0x58100022, // 0058 LDCONST R4 K34 + 0x84140001, // 0059 CLOSURE R5 P1 + 0x58180021, // 005A LDCONST R6 K33 + 0x7C080800, // 005B CALL R2 4 + 0x8C080123, // 005C GETMET R2 R0 K35 + 0x7C080200, // 005D CALL R2 1 + 0xB80A0200, // 005E GETNGBL R2 K1 + 0x8C080524, // 005F GETMET R2 R2 K36 + 0x5C100000, // 0060 MOVE R4 R0 + 0x7C080400, // 0061 CALL R2 2 + 0x8C080125, // 0062 GETMET R2 R0 K37 + 0x7C080200, // 0063 CALL R2 1 + 0xA0000000, // 0064 CLOSE R0 + 0x80000000, // 0065 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: is_commissioning_open +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_is_commissioning_open, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(commissioning_open), + }), + be_str_weak(is_commissioning_open), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x4C080000, // 0001 LDNIL R2 + 0x20040202, // 0002 NE R1 R1 R2 + 0x80040200, // 0003 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: adjust_next_ep +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_adjust_next_ep, /* name */ + be_nested_proto( + 5, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(plugins_config), + /* K1 */ be_nested_str_weak(keys), + /* K2 */ be_nested_str_weak(next_ep), + /* K3 */ be_const_int(1), + /* K4 */ be_nested_str_weak(stop_iteration), + }), + be_str_weak(adjust_next_ep), + &be_const_str_solidified, + ( &(const binstruction[21]) { /* code */ + 0x60040010, // 0000 GETGBL R1 G16 + 0x88080100, // 0001 GETMBR R2 R0 K0 + 0x8C080501, // 0002 GETMET R2 R2 K1 + 0x7C080200, // 0003 CALL R2 1 + 0x7C040200, // 0004 CALL R1 1 + 0xA802000A, // 0005 EXBLK 0 #0011 + 0x5C080200, // 0006 MOVE R2 R1 + 0x7C080000, // 0007 CALL R2 0 + 0x600C0009, // 0008 GETGBL R3 G9 + 0x5C100400, // 0009 MOVE R4 R2 + 0x7C0C0200, // 000A CALL R3 1 + 0x88100102, // 000B GETMBR R4 R0 K2 + 0x28100604, // 000C GE R4 R3 R4 + 0x78120001, // 000D JMPF R4 #0010 + 0x00100703, // 000E ADD R4 R3 K3 + 0x90020404, // 000F SETMBR R0 K2 R4 + 0x7001FFF4, // 0010 JMP #0006 + 0x58040004, // 0011 LDCONST R1 K4 + 0xAC040200, // 0012 CATCH R1 1 0 + 0xB0080000, // 0013 RAISE 2 R0 R0 + 0x80000000, // 0014 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: stop_basic_commissioning +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_stop_basic_commissioning, /* name */ + be_nested_proto( + 5, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[13]) { /* constants */ + /* K0 */ be_nested_str_weak(is_root_commissioning_open), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(publish_result), + /* K3 */ be_nested_str_weak(_X7B_X22Matter_X22_X3A_X7B_X22Commissioning_X22_X3A0_X7D_X7D), + /* K4 */ be_nested_str_weak(Matter), + /* K5 */ be_nested_str_weak(commissioning_open), + /* K6 */ be_nested_str_weak(mdns_remove_PASE), + /* K7 */ be_nested_str_weak(commissioning_iterations), + /* K8 */ be_nested_str_weak(commissioning_discriminator), + /* K9 */ be_nested_str_weak(commissioning_salt), + /* K10 */ be_nested_str_weak(commissioning_w0), + /* K11 */ be_nested_str_weak(commissioning_L), + /* K12 */ be_nested_str_weak(commissioning_admin_fabric), + }), + be_str_weak(stop_basic_commissioning), + &be_const_str_solidified, + ( &(const binstruction[25]) { /* code */ + 0x8C040100, // 0000 GETMET R1 R0 K0 + 0x7C040200, // 0001 CALL R1 1 + 0x78060004, // 0002 JMPF R1 #0008 + 0xB8060200, // 0003 GETNGBL R1 K1 + 0x8C040302, // 0004 GETMET R1 R1 K2 + 0x580C0003, // 0005 LDCONST R3 K3 + 0x58100004, // 0006 LDCONST R4 K4 + 0x7C040600, // 0007 CALL R1 3 + 0x4C040000, // 0008 LDNIL R1 + 0x90020A01, // 0009 SETMBR R0 K5 R1 + 0x8C040106, // 000A GETMET R1 R0 K6 + 0x7C040200, // 000B CALL R1 1 + 0x4C040000, // 000C LDNIL R1 + 0x90020E01, // 000D SETMBR R0 K7 R1 + 0x4C040000, // 000E LDNIL R1 + 0x90021001, // 000F SETMBR R0 K8 R1 + 0x4C040000, // 0010 LDNIL R1 + 0x90021201, // 0011 SETMBR R0 K9 R1 + 0x4C040000, // 0012 LDNIL R1 + 0x90021401, // 0013 SETMBR R0 K10 R1 + 0x4C040000, // 0014 LDNIL R1 + 0x90021601, // 0015 SETMBR R0 K11 R1 + 0x4C040000, // 0016 LDNIL R1 + 0x90021801, // 0017 SETMBR R0 K12 R1 + 0x80000000, // 0018 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: autoconf_sensors_list +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_autoconf_sensors_list, /* name */ + be_nested_proto( + 10, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[18]) { /* constants */ + /* K0 */ be_nested_str_weak(k2l), + /* K1 */ be_nested_str_weak(contains), + /* K2 */ be_nested_str_weak(Temperature), + /* K3 */ be_nested_str_weak(_X23Temperature), + /* K4 */ be_nested_str_weak(push), + /* K5 */ be_nested_str_weak(type), + /* K6 */ be_nested_str_weak(temperature), + /* K7 */ be_nested_str_weak(filter), + /* K8 */ be_nested_str_weak(stop_iteration), + /* K9 */ be_nested_str_weak(Pressure), + /* K10 */ be_nested_str_weak(_X23Pressure), + /* K11 */ be_nested_str_weak(pressure), + /* K12 */ be_nested_str_weak(Illuminance), + /* K13 */ be_nested_str_weak(_X23Illuminance), + /* K14 */ be_nested_str_weak(illuminance), + /* K15 */ be_nested_str_weak(Humidity), + /* K16 */ be_nested_str_weak(_X23Humidity), + /* K17 */ be_nested_str_weak(humidity), + }), + be_str_weak(autoconf_sensors_list), + &be_const_str_solidified, + ( &(const binstruction[119]) { /* code */ + 0x60080012, // 0000 GETGBL R2 G18 + 0x7C080000, // 0001 CALL R2 0 + 0x600C0010, // 0002 GETGBL R3 G16 + 0x8C100100, // 0003 GETMET R4 R0 K0 + 0x5C180200, // 0004 MOVE R6 R1 + 0x7C100400, // 0005 CALL R4 2 + 0x7C0C0200, // 0006 CALL R3 1 + 0xA8020013, // 0007 EXBLK 0 #001C + 0x5C100600, // 0008 MOVE R4 R3 + 0x7C100000, // 0009 CALL R4 0 + 0x94140204, // 000A GETIDX R5 R1 R4 + 0x6018000F, // 000B GETGBL R6 G15 + 0x5C1C0A00, // 000C MOVE R7 R5 + 0x60200013, // 000D GETGBL R8 G19 + 0x7C180400, // 000E CALL R6 2 + 0x781A000A, // 000F JMPF R6 #001B + 0x8C180B01, // 0010 GETMET R6 R5 K1 + 0x58200002, // 0011 LDCONST R8 K2 + 0x7C180400, // 0012 CALL R6 2 + 0x781A0006, // 0013 JMPF R6 #001B + 0x00180903, // 0014 ADD R6 R4 K3 + 0x8C1C0504, // 0015 GETMET R7 R2 K4 + 0x60240013, // 0016 GETGBL R9 G19 + 0x7C240000, // 0017 CALL R9 0 + 0x98260B06, // 0018 SETIDX R9 K5 K6 + 0x98260E06, // 0019 SETIDX R9 K7 R6 + 0x7C1C0400, // 001A CALL R7 2 + 0x7001FFEB, // 001B JMP #0008 + 0x580C0008, // 001C LDCONST R3 K8 + 0xAC0C0200, // 001D CATCH R3 1 0 + 0xB0080000, // 001E RAISE 2 R0 R0 + 0x600C0010, // 001F GETGBL R3 G16 + 0x8C100100, // 0020 GETMET R4 R0 K0 + 0x5C180200, // 0021 MOVE R6 R1 + 0x7C100400, // 0022 CALL R4 2 + 0x7C0C0200, // 0023 CALL R3 1 + 0xA8020013, // 0024 EXBLK 0 #0039 + 0x5C100600, // 0025 MOVE R4 R3 + 0x7C100000, // 0026 CALL R4 0 + 0x94140204, // 0027 GETIDX R5 R1 R4 + 0x6018000F, // 0028 GETGBL R6 G15 + 0x5C1C0A00, // 0029 MOVE R7 R5 + 0x60200013, // 002A GETGBL R8 G19 + 0x7C180400, // 002B CALL R6 2 + 0x781A000A, // 002C JMPF R6 #0038 + 0x8C180B01, // 002D GETMET R6 R5 K1 + 0x58200009, // 002E LDCONST R8 K9 + 0x7C180400, // 002F CALL R6 2 + 0x781A0006, // 0030 JMPF R6 #0038 + 0x0018090A, // 0031 ADD R6 R4 K10 + 0x8C1C0504, // 0032 GETMET R7 R2 K4 + 0x60240013, // 0033 GETGBL R9 G19 + 0x7C240000, // 0034 CALL R9 0 + 0x98260B0B, // 0035 SETIDX R9 K5 K11 + 0x98260E06, // 0036 SETIDX R9 K7 R6 + 0x7C1C0400, // 0037 CALL R7 2 + 0x7001FFEB, // 0038 JMP #0025 + 0x580C0008, // 0039 LDCONST R3 K8 + 0xAC0C0200, // 003A CATCH R3 1 0 + 0xB0080000, // 003B RAISE 2 R0 R0 + 0x600C0010, // 003C GETGBL R3 G16 + 0x8C100100, // 003D GETMET R4 R0 K0 + 0x5C180200, // 003E MOVE R6 R1 + 0x7C100400, // 003F CALL R4 2 + 0x7C0C0200, // 0040 CALL R3 1 + 0xA8020013, // 0041 EXBLK 0 #0056 + 0x5C100600, // 0042 MOVE R4 R3 + 0x7C100000, // 0043 CALL R4 0 + 0x94140204, // 0044 GETIDX R5 R1 R4 + 0x6018000F, // 0045 GETGBL R6 G15 + 0x5C1C0A00, // 0046 MOVE R7 R5 + 0x60200013, // 0047 GETGBL R8 G19 + 0x7C180400, // 0048 CALL R6 2 + 0x781A000A, // 0049 JMPF R6 #0055 + 0x8C180B01, // 004A GETMET R6 R5 K1 + 0x5820000C, // 004B LDCONST R8 K12 + 0x7C180400, // 004C CALL R6 2 + 0x781A0006, // 004D JMPF R6 #0055 + 0x0018090D, // 004E ADD R6 R4 K13 + 0x8C1C0504, // 004F GETMET R7 R2 K4 + 0x60240013, // 0050 GETGBL R9 G19 + 0x7C240000, // 0051 CALL R9 0 + 0x98260B0E, // 0052 SETIDX R9 K5 K14 + 0x98260E06, // 0053 SETIDX R9 K7 R6 + 0x7C1C0400, // 0054 CALL R7 2 + 0x7001FFEB, // 0055 JMP #0042 + 0x580C0008, // 0056 LDCONST R3 K8 + 0xAC0C0200, // 0057 CATCH R3 1 0 + 0xB0080000, // 0058 RAISE 2 R0 R0 + 0x600C0010, // 0059 GETGBL R3 G16 + 0x8C100100, // 005A GETMET R4 R0 K0 + 0x5C180200, // 005B MOVE R6 R1 + 0x7C100400, // 005C CALL R4 2 + 0x7C0C0200, // 005D CALL R3 1 + 0xA8020013, // 005E EXBLK 0 #0073 + 0x5C100600, // 005F MOVE R4 R3 + 0x7C100000, // 0060 CALL R4 0 + 0x94140204, // 0061 GETIDX R5 R1 R4 + 0x6018000F, // 0062 GETGBL R6 G15 + 0x5C1C0A00, // 0063 MOVE R7 R5 + 0x60200013, // 0064 GETGBL R8 G19 + 0x7C180400, // 0065 CALL R6 2 + 0x781A000A, // 0066 JMPF R6 #0072 + 0x8C180B01, // 0067 GETMET R6 R5 K1 + 0x5820000F, // 0068 LDCONST R8 K15 + 0x7C180400, // 0069 CALL R6 2 + 0x781A0006, // 006A JMPF R6 #0072 + 0x00180910, // 006B ADD R6 R4 K16 + 0x8C1C0504, // 006C GETMET R7 R2 K4 + 0x60240013, // 006D GETGBL R9 G19 + 0x7C240000, // 006E CALL R9 0 + 0x98260B11, // 006F SETIDX R9 K5 K17 + 0x98260E06, // 0070 SETIDX R9 K7 R6 + 0x7C1C0400, // 0071 CALL R7 2 + 0x7001FFEB, // 0072 JMP #005F + 0x580C0008, // 0073 LDCONST R3 K8 + 0xAC0C0200, // 0074 CATCH R3 1 0 + 0xB0080000, // 0075 RAISE 2 R0 R0 + 0x80040400, // 0076 RET 1 R2 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: update_remotes_info ********************************************************************/ @@ -3480,128 +3670,12 @@ be_local_closure(class_Matter_Device_update_remotes_info, /* name */ /******************************************************************** -** Solidified function: check_config_ep +** Solidified function: get_plugin_class_displayname ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_check_config_ep, /* name */ +be_local_closure(class_Matter_Device_get_plugin_class_displayname, /* name */ be_nested_proto( - 10, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[14]) { /* constants */ - /* K0 */ be_nested_str_weak(plugins_config), - /* K1 */ be_nested_str_weak(keys), - /* K2 */ be_nested_str_weak(push), - /* K3 */ be_nested_str_weak(stop_iteration), - /* K4 */ be_const_int(0), - /* K5 */ be_nested_str_weak(log), - /* K6 */ be_nested_str_weak(MTR_X3A_X20invalid_X20entry_X20with_X20ep_X20_X270_X27), - /* K7 */ be_const_int(2), - /* K8 */ be_nested_str_weak(remove), - /* K9 */ be_nested_str_weak(matter), - /* K10 */ be_nested_str_weak(AGGREGATOR_ENDPOINT), - /* K11 */ be_nested_str_weak(MTR_X3A_X20endpoint_X20_X25s_X20collides_X20wit_X20aggregator_X2C_X20relocating_X20to_X20_X25s), - /* K12 */ be_nested_str_weak(next_ep), - /* K13 */ be_const_int(1), - }), - be_str_weak(check_config_ep), - &be_const_str_solidified, - ( &(const binstruction[77]) { /* code */ - 0x50040000, // 0000 LDBOOL R1 0 0 - 0x60080012, // 0001 GETGBL R2 G18 - 0x7C080000, // 0002 CALL R2 0 - 0x600C0010, // 0003 GETGBL R3 G16 - 0x88100100, // 0004 GETMBR R4 R0 K0 - 0x8C100901, // 0005 GETMET R4 R4 K1 - 0x7C100200, // 0006 CALL R4 1 - 0x7C0C0200, // 0007 CALL R3 1 - 0xA8020007, // 0008 EXBLK 0 #0011 - 0x5C100600, // 0009 MOVE R4 R3 - 0x7C100000, // 000A CALL R4 0 - 0x8C140502, // 000B GETMET R5 R2 K2 - 0x601C0009, // 000C GETGBL R7 G9 - 0x5C200800, // 000D MOVE R8 R4 - 0x7C1C0200, // 000E CALL R7 1 - 0x7C140400, // 000F CALL R5 2 - 0x7001FFF7, // 0010 JMP #0009 - 0x580C0003, // 0011 LDCONST R3 K3 - 0xAC0C0200, // 0012 CATCH R3 1 0 - 0xB0080000, // 0013 RAISE 2 R0 R0 - 0x600C0010, // 0014 GETGBL R3 G16 - 0x5C100400, // 0015 MOVE R4 R2 - 0x7C0C0200, // 0016 CALL R3 1 - 0xA8020030, // 0017 EXBLK 0 #0049 - 0x5C100600, // 0018 MOVE R4 R3 - 0x7C100000, // 0019 CALL R4 0 - 0x1C140904, // 001A EQ R5 R4 K4 - 0x7816000B, // 001B JMPF R5 #0028 - 0xB8160A00, // 001C GETNGBL R5 K5 - 0x58180006, // 001D LDCONST R6 K6 - 0x581C0007, // 001E LDCONST R7 K7 - 0x7C140400, // 001F CALL R5 2 - 0x88140100, // 0020 GETMBR R5 R0 K0 - 0x8C140B08, // 0021 GETMET R5 R5 K8 - 0x601C0008, // 0022 GETGBL R7 G8 - 0x5C200800, // 0023 MOVE R8 R4 - 0x7C1C0200, // 0024 CALL R7 1 - 0x7C140400, // 0025 CALL R5 2 - 0x50040200, // 0026 LDBOOL R1 1 0 - 0x7002001F, // 0027 JMP #0048 - 0xB8161200, // 0028 GETNGBL R5 K9 - 0x88140B0A, // 0029 GETMBR R5 R5 K10 - 0x1C140805, // 002A EQ R5 R4 R5 - 0x7816001B, // 002B JMPF R5 #0048 - 0x50040200, // 002C LDBOOL R1 1 0 - 0xB8160A00, // 002D GETNGBL R5 K5 - 0x60180018, // 002E GETGBL R6 G24 - 0x581C000B, // 002F LDCONST R7 K11 - 0x5C200800, // 0030 MOVE R8 R4 - 0x8824010C, // 0031 GETMBR R9 R0 K12 - 0x7C180600, // 0032 CALL R6 3 - 0x581C0007, // 0033 LDCONST R7 K7 - 0x7C140400, // 0034 CALL R5 2 - 0x60140008, // 0035 GETGBL R5 G8 - 0x8818010C, // 0036 GETMBR R6 R0 K12 - 0x7C140200, // 0037 CALL R5 1 - 0x88180100, // 0038 GETMBR R6 R0 K0 - 0x601C0008, // 0039 GETGBL R7 G8 - 0x5C200800, // 003A MOVE R8 R4 - 0x7C1C0200, // 003B CALL R7 1 - 0x88200100, // 003C GETMBR R8 R0 K0 - 0x941C1007, // 003D GETIDX R7 R8 R7 - 0x98180A07, // 003E SETIDX R6 R5 R7 - 0x88140100, // 003F GETMBR R5 R0 K0 - 0x8C140B08, // 0040 GETMET R5 R5 K8 - 0x601C0008, // 0041 GETGBL R7 G8 - 0x5C200800, // 0042 MOVE R8 R4 - 0x7C1C0200, // 0043 CALL R7 1 - 0x7C140400, // 0044 CALL R5 2 - 0x8814010C, // 0045 GETMBR R5 R0 K12 - 0x00140B0D, // 0046 ADD R5 R5 K13 - 0x90021805, // 0047 SETMBR R0 K12 R5 - 0x7001FFCE, // 0048 JMP #0018 - 0x580C0003, // 0049 LDCONST R3 K3 - 0xAC0C0200, // 004A CATCH R3 1 0 - 0xB0080000, // 004B RAISE 2 R0 R0 - 0x80040200, // 004C RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: start_commissioning_complete -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_start_commissioning_complete, /* name */ - be_nested_proto( - 10, /* nstack */ + 5, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -3609,44 +3683,894 @@ be_local_closure(class_Matter_Device_start_commissioning_complete, /* name */ 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ - ( &(const bvalue[10]) { /* constants */ - /* K0 */ be_nested_str_weak(get_fabric), - /* K1 */ be_nested_str_weak(get_fabric_id), + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(plugins_classes), + /* K1 */ be_nested_str_weak(find), + /* K2 */ be_nested_str_weak(DISPLAY_NAME), + /* K3 */ be_nested_str_weak(), + }), + be_str_weak(get_plugin_class_displayname), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x5C100200, // 0002 MOVE R4 R1 + 0x7C080400, // 0003 CALL R2 2 + 0x780A0001, // 0004 JMPF R2 #0007 + 0x880C0502, // 0005 GETMBR R3 R2 K2 + 0x70020000, // 0006 JMP #0008 + 0x580C0003, // 0007 LDCONST R3 K3 + 0x80040600, // 0008 RET 1 R3 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: start_commissioning_complete_deferred +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_start_commissioning_complete_deferred, /* name */ + be_nested_proto( + 6, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 2]) { + be_nested_proto( + 3, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 2]) { /* upvals */ + be_local_const_upval(1, 0), + be_local_const_upval(1, 1), + }), + 0, /* has sup protos */ + NULL, + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(start_commissioning_complete), + }), + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 5]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x68080001, // 0002 GETUPV R2 U1 + 0x7C000400, // 0003 CALL R0 2 + 0x80040000, // 0004 RET 1 R0 + }) + ), + &be_class_Matter_Device, + }), + 1, /* has constants */ + ( &(const bvalue[ 3]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota), + /* K1 */ be_nested_str_weak(set_timer), + /* K2 */ be_const_int(0), + }), + be_str_weak(start_commissioning_complete_deferred), + &be_const_str_solidified, + ( &(const binstruction[ 7]) { /* code */ + 0xB80A0000, // 0000 GETNGBL R2 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x58100002, // 0002 LDCONST R4 K2 + 0x84140000, // 0003 CLOSURE R5 P0 + 0x7C080600, // 0004 CALL R2 3 + 0xA0000000, // 0005 CLOSE R0 + 0x80000000, // 0006 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: _trigger_read_sensors +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device__trigger_read_sensors, /* name */ + be_nested_proto( + 8, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[13]) { /* constants */ + /* K0 */ be_nested_str_weak(json), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(read_sensors), + /* K3 */ be_nested_str_weak(loglevel), + /* K4 */ be_const_int(3), + /* K5 */ be_nested_str_weak(log), + /* K6 */ be_nested_str_weak(MTR_X3A_X20read_sensors_X3A_X20), + /* K7 */ be_nested_str_weak(load), + /* K8 */ be_const_int(0), + /* K9 */ be_nested_str_weak(plugins), + /* K10 */ be_nested_str_weak(parse_sensors), + /* K11 */ be_const_int(1), + /* K12 */ be_nested_str_weak(MTR_X3A_X20unable_X20to_X20parse_X20read_sensors_X3A_X20), + }), + be_str_weak(_trigger_read_sensors), + &be_const_str_solidified, + ( &(const binstruction[48]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xB80A0200, // 0001 GETNGBL R2 K1 + 0x8C080502, // 0002 GETMET R2 R2 K2 + 0x7C080200, // 0003 CALL R2 1 + 0xB80E0200, // 0004 GETNGBL R3 K1 + 0x8C0C0703, // 0005 GETMET R3 R3 K3 + 0x58140004, // 0006 LDCONST R5 K4 + 0x7C0C0400, // 0007 CALL R3 2 + 0x780E0006, // 0008 JMPF R3 #0010 + 0xB80E0A00, // 0009 GETNGBL R3 K5 + 0x60100008, // 000A GETGBL R4 G8 + 0x5C140400, // 000B MOVE R5 R2 + 0x7C100200, // 000C CALL R4 1 + 0x00120C04, // 000D ADD R4 K6 R4 + 0x58140004, // 000E LDCONST R5 K4 + 0x7C0C0400, // 000F CALL R3 2 + 0x4C0C0000, // 0010 LDNIL R3 + 0x1C0C0403, // 0011 EQ R3 R2 R3 + 0x780E0000, // 0012 JMPF R3 #0014 + 0x80000600, // 0013 RET 0 + 0x8C0C0307, // 0014 GETMET R3 R1 K7 + 0x5C140400, // 0015 MOVE R5 R2 + 0x7C0C0400, // 0016 CALL R3 2 + 0x4C100000, // 0017 LDNIL R4 + 0x20100604, // 0018 NE R4 R3 R4 + 0x7812000D, // 0019 JMPF R4 #0028 + 0x58100008, // 001A LDCONST R4 K8 + 0x6014000C, // 001B GETGBL R5 G12 + 0x88180109, // 001C GETMBR R6 R0 K9 + 0x7C140200, // 001D CALL R5 1 + 0x14140805, // 001E LT R5 R4 R5 + 0x78160006, // 001F JMPF R5 #0027 + 0x88140109, // 0020 GETMBR R5 R0 K9 + 0x94140A04, // 0021 GETIDX R5 R5 R4 + 0x8C140B0A, // 0022 GETMET R5 R5 K10 + 0x5C1C0600, // 0023 MOVE R7 R3 + 0x7C140400, // 0024 CALL R5 2 + 0x0010090B, // 0025 ADD R4 R4 K11 + 0x7001FFF3, // 0026 JMP #001B + 0x70020006, // 0027 JMP #002F + 0xB8120A00, // 0028 GETNGBL R4 K5 + 0x60140008, // 0029 GETGBL R5 G8 + 0x5C180400, // 002A MOVE R6 R2 + 0x7C140200, // 002B CALL R5 1 + 0x00161805, // 002C ADD R5 K12 R5 + 0x58180004, // 002D LDCONST R6 K4 + 0x7C100400, // 002E CALL R4 2 + 0x80000000, // 002F RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: every_second +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_every_second, /* name */ + be_nested_proto( + 4, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 7]) { /* constants */ + /* K0 */ be_nested_str_weak(sessions), + /* K1 */ be_nested_str_weak(every_second), + /* K2 */ be_nested_str_weak(message_handler), + /* K3 */ be_nested_str_weak(events), + /* K4 */ be_nested_str_weak(commissioning_open), + /* K5 */ be_nested_str_weak(tasmota), + /* K6 */ be_nested_str_weak(time_reached), + }), + be_str_weak(every_second), + &be_const_str_solidified, + ( &(const binstruction[21]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x7C040200, // 0002 CALL R1 1 + 0x88040102, // 0003 GETMBR R1 R0 K2 + 0x8C040301, // 0004 GETMET R1 R1 K1 + 0x7C040200, // 0005 CALL R1 1 + 0x88040103, // 0006 GETMBR R1 R0 K3 + 0x8C040301, // 0007 GETMET R1 R1 K1 + 0x7C040200, // 0008 CALL R1 1 + 0x88040104, // 0009 GETMBR R1 R0 K4 + 0x4C080000, // 000A LDNIL R2 + 0x20040202, // 000B NE R1 R1 R2 + 0x78060006, // 000C JMPF R1 #0014 + 0xB8060A00, // 000D GETNGBL R1 K5 + 0x8C040306, // 000E GETMET R1 R1 K6 + 0x880C0104, // 000F GETMBR R3 R0 K4 + 0x7C040400, // 0010 CALL R1 2 + 0x78060001, // 0011 JMPF R1 #0014 + 0x4C040000, // 0012 LDNIL R1 + 0x90020801, // 0013 SETMBR R0 K4 R1 + 0x80000000, // 0014 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: start_basic_commissioning +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_start_basic_commissioning, /* name */ + be_nested_proto( + 13, /* nstack */ + 8, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 3]) { + be_nested_proto( + 4, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(mdns_announce_PASE), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(remove_rule), + /* K3 */ be_nested_str_weak(Wifi_X23Connected), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x7C000200, // 0002 CALL R0 1 + 0xB8020200, // 0003 GETNGBL R0 K1 + 0x8C000102, // 0004 GETMET R0 R0 K2 + 0x58080003, // 0005 LDCONST R2 K3 + 0x580C0000, // 0006 LDCONST R3 K0 + 0x7C000600, // 0007 CALL R0 3 + 0x80000000, // 0008 RET 0 + }) + ), + be_nested_proto( + 4, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(mdns_announce_PASE), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(remove_rule), + /* K3 */ be_nested_str_weak(Eth_X23Connected), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x7C000200, // 0002 CALL R0 1 + 0xB8020200, // 0003 GETNGBL R0 K1 + 0x8C000102, // 0004 GETMET R0 R0 K2 + 0x58080003, // 0005 LDCONST R2 K3 + 0x580C0000, // 0006 LDCONST R3 K0 + 0x7C000600, // 0007 CALL R0 3 + 0x80000000, // 0008 RET 0 + }) + ), + &be_class_Matter_Device, + }), + 1, /* has constants */ + ( &(const bvalue[16]) { /* constants */ + /* K0 */ be_nested_str_weak(commissioning_open), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(millis), + /* K3 */ be_nested_str_weak(commissioning_iterations), + /* K4 */ be_nested_str_weak(commissioning_discriminator), + /* K5 */ be_nested_str_weak(commissioning_salt), + /* K6 */ be_nested_str_weak(commissioning_w0), + /* K7 */ be_nested_str_weak(commissioning_L), + /* K8 */ be_nested_str_weak(commissioning_admin_fabric), + /* K9 */ be_nested_str_weak(wifi), + /* K10 */ be_nested_str_weak(up), + /* K11 */ be_nested_str_weak(eth), + /* K12 */ be_nested_str_weak(mdns_announce_PASE), + /* K13 */ be_nested_str_weak(add_rule), + /* K14 */ be_nested_str_weak(Wifi_X23Connected), + /* K15 */ be_nested_str_weak(Eth_X23Connected), + }), + be_str_weak(start_basic_commissioning), + &be_const_str_solidified, + ( &(const binstruction[40]) { /* code */ + 0xB8220200, // 0000 GETNGBL R8 K1 + 0x8C201102, // 0001 GETMET R8 R8 K2 + 0x7C200200, // 0002 CALL R8 1 + 0x542603E7, // 0003 LDINT R9 1000 + 0x08240209, // 0004 MUL R9 R1 R9 + 0x00201009, // 0005 ADD R8 R8 R9 + 0x90020008, // 0006 SETMBR R0 K0 R8 + 0x90020602, // 0007 SETMBR R0 K3 R2 + 0x90020803, // 0008 SETMBR R0 K4 R3 + 0x90020A04, // 0009 SETMBR R0 K5 R4 + 0x90020C05, // 000A SETMBR R0 K6 R5 + 0x90020E06, // 000B SETMBR R0 K7 R6 + 0x90021007, // 000C SETMBR R0 K8 R7 + 0xB8220200, // 000D GETNGBL R8 K1 + 0x8C201109, // 000E GETMET R8 R8 K9 + 0x7C200200, // 000F CALL R8 1 + 0x9420110A, // 0010 GETIDX R8 R8 K10 + 0x74220004, // 0011 JMPT R8 #0017 + 0xB8220200, // 0012 GETNGBL R8 K1 + 0x8C20110B, // 0013 GETMET R8 R8 K11 + 0x7C200200, // 0014 CALL R8 1 + 0x9420110A, // 0015 GETIDX R8 R8 K10 + 0x78220002, // 0016 JMPF R8 #001A + 0x8C20010C, // 0017 GETMET R8 R0 K12 + 0x7C200200, // 0018 CALL R8 1 + 0x7002000B, // 0019 JMP #0026 + 0xB8220200, // 001A GETNGBL R8 K1 + 0x8C20110D, // 001B GETMET R8 R8 K13 + 0x5828000E, // 001C LDCONST R10 K14 + 0x842C0000, // 001D CLOSURE R11 P0 + 0x5830000C, // 001E LDCONST R12 K12 + 0x7C200800, // 001F CALL R8 4 + 0xB8220200, // 0020 GETNGBL R8 K1 + 0x8C20110D, // 0021 GETMET R8 R8 K13 + 0x5828000F, // 0022 LDCONST R10 K15 + 0x842C0001, // 0023 CLOSURE R11 P1 + 0x5830000C, // 0024 LDCONST R12 K12 + 0x7C200800, // 0025 CALL R8 4 + 0xA0000000, // 0026 CLOSE R0 + 0x80000000, // 0027 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: mdns_announce_op_discovery +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_mdns_announce_op_discovery, /* name */ + be_nested_proto( + 14, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[27]) { /* constants */ + /* K0 */ be_nested_str_weak(mdns), + /* K1 */ be_nested_str_weak(get_device_id), /* K2 */ be_nested_str_weak(copy), /* K3 */ be_nested_str_weak(reverse), - /* K4 */ be_nested_str_weak(tohex), - /* K5 */ be_nested_str_weak(get_admin_vendor_name), - /* K6 */ be_nested_str_weak(log), - /* K7 */ be_nested_str_weak(MTR_X3A_X20_X2D_X2D_X2D_X20Commissioning_X20complete_X20for_X20Fabric_X20_X27_X25s_X27_X20_X28Vendor_X20_X25s_X29_X20_X2D_X2D_X2D), - /* K8 */ be_const_int(2), - /* K9 */ be_nested_str_weak(stop_basic_commissioning), + /* K4 */ be_nested_str_weak(get_fabric_compressed), + /* K5 */ be_nested_str_weak(tohex), + /* K6 */ be_nested_str_weak(_X2D), + /* K7 */ be_nested_str_weak(log), + /* K8 */ be_nested_str_weak(MTR_X3A_X20Operational_X20Discovery_X20node_X20_X3D_X20), + /* K9 */ be_const_int(3), + /* K10 */ be_nested_str_weak(tasmota), + /* K11 */ be_nested_str_weak(eth), + /* K12 */ be_nested_str_weak(find), + /* K13 */ be_nested_str_weak(up), + /* K14 */ be_nested_str_weak(MTR_X3A_X20adding_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27_X20ptr_X20to_X20_X60_X25s_X2Elocal_X60), + /* K15 */ be_nested_str_weak(hostname_eth), + /* K16 */ be_nested_str_weak(add_service), + /* K17 */ be_nested_str_weak(_matter), + /* K18 */ be_nested_str_weak(_tcp), + /* K19 */ be_nested_str_weak(_I), + /* K20 */ be_nested_str_weak(MTR_X3A_X20adding_X20subtype_X3A_X20), + /* K21 */ be_nested_str_weak(add_subtype), + /* K22 */ be_nested_str_weak(wifi), + /* K23 */ be_nested_str_weak(hostname_wifi), + /* K24 */ be_nested_str_weak(MTR_X3A_X20Exception), + /* K25 */ be_nested_str_weak(_X7C), + /* K26 */ be_const_int(2), }), - be_str_weak(start_commissioning_complete), + be_str_weak(mdns_announce_op_discovery), &be_const_str_solidified, - ( &(const binstruction[23]) { /* code */ - 0x8C080300, // 0000 GETMET R2 R1 K0 - 0x7C080200, // 0001 CALL R2 1 - 0x8C0C0501, // 0002 GETMET R3 R2 K1 + ( &(const binstruction[115]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0xA802005F, // 0001 EXBLK 0 #0062 + 0x8C0C0301, // 0002 GETMET R3 R1 K1 0x7C0C0200, // 0003 CALL R3 1 0x8C0C0702, // 0004 GETMET R3 R3 K2 0x7C0C0200, // 0005 CALL R3 1 0x8C0C0703, // 0006 GETMET R3 R3 K3 0x7C0C0200, // 0007 CALL R3 1 - 0x8C0C0704, // 0008 GETMET R3 R3 K4 - 0x7C0C0200, // 0009 CALL R3 1 - 0x8C100505, // 000A GETMET R4 R2 K5 - 0x7C100200, // 000B CALL R4 1 - 0xB8160C00, // 000C GETNGBL R5 K6 - 0x60180018, // 000D GETGBL R6 G24 - 0x581C0007, // 000E LDCONST R7 K7 - 0x5C200600, // 000F MOVE R8 R3 - 0x5C240800, // 0010 MOVE R9 R4 - 0x7C180600, // 0011 CALL R6 3 + 0x8C100304, // 0008 GETMET R4 R1 K4 + 0x7C100200, // 0009 CALL R4 1 + 0x8C140905, // 000A GETMET R5 R4 K5 + 0x7C140200, // 000B CALL R5 1 + 0x00140B06, // 000C ADD R5 R5 K6 + 0x8C180705, // 000D GETMET R6 R3 K5 + 0x7C180200, // 000E CALL R6 1 + 0x00140A06, // 000F ADD R5 R5 R6 + 0xB81A0E00, // 0010 GETNGBL R6 K7 + 0x001E1005, // 0011 ADD R7 K8 R5 + 0x58200009, // 0012 LDCONST R8 K9 + 0x7C180400, // 0013 CALL R6 2 + 0xB81A1400, // 0014 GETNGBL R6 K10 + 0x8C180D0B, // 0015 GETMET R6 R6 K11 + 0x7C180200, // 0016 CALL R6 1 + 0x8C180D0C, // 0017 GETMET R6 R6 K12 + 0x5820000D, // 0018 LDCONST R8 K13 + 0x7C180400, // 0019 CALL R6 2 + 0x781A001E, // 001A JMPF R6 #003A + 0xB81A0E00, // 001B GETNGBL R6 K7 + 0x601C0018, // 001C GETGBL R7 G24 + 0x5820000E, // 001D LDCONST R8 K14 + 0x5824000B, // 001E LDCONST R9 K11 + 0x5C280A00, // 001F MOVE R10 R5 + 0x882C010F, // 0020 GETMBR R11 R0 K15 + 0x7C1C0800, // 0021 CALL R7 4 + 0x58200009, // 0022 LDCONST R8 K9 + 0x7C180400, // 0023 CALL R6 2 + 0x8C180510, // 0024 GETMET R6 R2 K16 + 0x58200011, // 0025 LDCONST R8 K17 + 0x58240012, // 0026 LDCONST R9 K18 + 0x542A15A3, // 0027 LDINT R10 5540 + 0x4C2C0000, // 0028 LDNIL R11 + 0x5C300A00, // 0029 MOVE R12 R5 + 0x8834010F, // 002A GETMBR R13 R0 K15 + 0x7C180E00, // 002B CALL R6 7 + 0x8C180905, // 002C GETMET R6 R4 K5 + 0x7C180200, // 002D CALL R6 1 + 0x001A2606, // 002E ADD R6 K19 R6 + 0xB81E0E00, // 002F GETNGBL R7 K7 + 0x00222806, // 0030 ADD R8 K20 R6 + 0x58240009, // 0031 LDCONST R9 K9 + 0x7C1C0400, // 0032 CALL R7 2 + 0x8C1C0515, // 0033 GETMET R7 R2 K21 + 0x58240011, // 0034 LDCONST R9 K17 + 0x58280012, // 0035 LDCONST R10 K18 + 0x5C2C0A00, // 0036 MOVE R11 R5 + 0x8830010F, // 0037 GETMBR R12 R0 K15 + 0x5C340C00, // 0038 MOVE R13 R6 + 0x7C1C0C00, // 0039 CALL R7 6 + 0xB81A1400, // 003A GETNGBL R6 K10 + 0x8C180D16, // 003B GETMET R6 R6 K22 + 0x7C180200, // 003C CALL R6 1 + 0x8C180D0C, // 003D GETMET R6 R6 K12 + 0x5820000D, // 003E LDCONST R8 K13 + 0x7C180400, // 003F CALL R6 2 + 0x781A001E, // 0040 JMPF R6 #0060 + 0xB81A0E00, // 0041 GETNGBL R6 K7 + 0x601C0018, // 0042 GETGBL R7 G24 + 0x5820000E, // 0043 LDCONST R8 K14 + 0x58240016, // 0044 LDCONST R9 K22 + 0x5C280A00, // 0045 MOVE R10 R5 + 0x882C0117, // 0046 GETMBR R11 R0 K23 + 0x7C1C0800, // 0047 CALL R7 4 + 0x58200009, // 0048 LDCONST R8 K9 + 0x7C180400, // 0049 CALL R6 2 + 0x8C180510, // 004A GETMET R6 R2 K16 + 0x58200011, // 004B LDCONST R8 K17 + 0x58240012, // 004C LDCONST R9 K18 + 0x542A15A3, // 004D LDINT R10 5540 + 0x4C2C0000, // 004E LDNIL R11 + 0x5C300A00, // 004F MOVE R12 R5 + 0x88340117, // 0050 GETMBR R13 R0 K23 + 0x7C180E00, // 0051 CALL R6 7 + 0x8C180905, // 0052 GETMET R6 R4 K5 + 0x7C180200, // 0053 CALL R6 1 + 0x001A2606, // 0054 ADD R6 K19 R6 + 0xB81E0E00, // 0055 GETNGBL R7 K7 + 0x00222806, // 0056 ADD R8 K20 R6 + 0x58240009, // 0057 LDCONST R9 K9 + 0x7C1C0400, // 0058 CALL R7 2 + 0x8C1C0515, // 0059 GETMET R7 R2 K21 + 0x58240011, // 005A LDCONST R9 K17 + 0x58280012, // 005B LDCONST R10 K18 + 0x5C2C0A00, // 005C MOVE R11 R5 + 0x88300117, // 005D GETMBR R12 R0 K23 + 0x5C340C00, // 005E MOVE R13 R6 + 0x7C1C0C00, // 005F CALL R7 6 + 0xA8040001, // 0060 EXBLK 1 1 + 0x7002000F, // 0061 JMP #0072 + 0xAC0C0002, // 0062 CATCH R3 0 2 + 0x7002000C, // 0063 JMP #0071 + 0xB8160E00, // 0064 GETNGBL R5 K7 + 0x60180008, // 0065 GETGBL R6 G8 + 0x5C1C0600, // 0066 MOVE R7 R3 + 0x7C180200, // 0067 CALL R6 1 + 0x001A3006, // 0068 ADD R6 K24 R6 + 0x00180D19, // 0069 ADD R6 R6 K25 + 0x601C0008, // 006A GETGBL R7 G8 + 0x5C200800, // 006B MOVE R8 R4 + 0x7C1C0200, // 006C CALL R7 1 + 0x00180C07, // 006D ADD R6 R6 R7 + 0x581C001A, // 006E LDCONST R7 K26 + 0x7C140400, // 006F CALL R5 2 + 0x70020000, // 0070 JMP #0072 + 0xB0080000, // 0071 RAISE 2 R0 R0 + 0x80000000, // 0072 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: compute_manual_pairing_code +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_compute_manual_pairing_code, /* name */ + be_nested_proto( + 9, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 6]) { /* constants */ + /* K0 */ be_nested_str_weak(root_discriminator), + /* K1 */ be_nested_str_weak(root_passcode), + /* K2 */ be_nested_str_weak(_X251i_X2505i_X2504i), + /* K3 */ be_nested_str_weak(matter), + /* K4 */ be_nested_str_weak(Verhoeff), + /* K5 */ be_nested_str_weak(checksum), + }), + be_str_weak(compute_manual_pairing_code), + &be_const_str_solidified, + ( &(const binstruction[30]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x540A0FFE, // 0001 LDINT R2 4095 + 0x2C040202, // 0002 AND R1 R1 R2 + 0x540A0009, // 0003 LDINT R2 10 + 0x3C040202, // 0004 SHR R1 R1 R2 + 0x88080100, // 0005 GETMBR R2 R0 K0 + 0x540E02FF, // 0006 LDINT R3 768 + 0x2C080403, // 0007 AND R2 R2 R3 + 0x540E0005, // 0008 LDINT R3 6 + 0x38080403, // 0009 SHL R2 R2 R3 + 0x880C0101, // 000A GETMBR R3 R0 K1 + 0x54123FFE, // 000B LDINT R4 16383 + 0x2C0C0604, // 000C AND R3 R3 R4 + 0x30080403, // 000D OR R2 R2 R3 + 0x880C0101, // 000E GETMBR R3 R0 K1 + 0x5412000D, // 000F LDINT R4 14 + 0x3C0C0604, // 0010 SHR R3 R3 R4 + 0x60100018, // 0011 GETGBL R4 G24 + 0x58140002, // 0012 LDCONST R5 K2 + 0x5C180200, // 0013 MOVE R6 R1 + 0x5C1C0400, // 0014 MOVE R7 R2 + 0x5C200600, // 0015 MOVE R8 R3 + 0x7C100800, // 0016 CALL R4 4 + 0xB8160600, // 0017 GETNGBL R5 K3 + 0x88140B04, // 0018 GETMBR R5 R5 K4 + 0x8C140B05, // 0019 GETMET R5 R5 K5 + 0x5C1C0800, // 001A MOVE R7 R4 + 0x7C140400, // 001B CALL R5 2 + 0x00100805, // 001C ADD R4 R4 R5 + 0x80040800, // 001D RET 1 R4 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: event_fabrics_saved +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_event_fabrics_saved, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(sessions), + /* K1 */ be_nested_str_weak(count_active_fabrics), + /* K2 */ be_const_int(0), + /* K3 */ be_nested_str_weak(plugins_persist), + /* K4 */ be_nested_str_weak(save_param), + }), + be_str_weak(event_fabrics_saved), + &be_const_str_solidified, + ( &(const binstruction[12]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x7C040200, // 0002 CALL R1 1 + 0x24040302, // 0003 GT R1 R1 K2 + 0x78060005, // 0004 JMPF R1 #000B + 0x88040103, // 0005 GETMBR R1 R0 K3 + 0x74060003, // 0006 JMPT R1 #000B + 0x50040200, // 0007 LDBOOL R1 1 0 + 0x90020601, // 0008 SETMBR R0 K3 R1 + 0x8C040104, // 0009 GETMET R1 R0 K4 + 0x7C040200, // 000A CALL R1 1 + 0x80000000, // 000B RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: autoconf_device +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_autoconf_device, /* name */ + be_nested_proto( + 5, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[15]) { /* constants */ + /* K0 */ be_nested_str_weak(json), + /* K1 */ be_nested_str_weak(plugins), + /* K2 */ be_const_int(0), + /* K3 */ be_nested_str_weak(plugins_persist), + /* K4 */ be_nested_str_weak(plugins_config), + /* K5 */ be_nested_str_weak(autoconf_device_map), + /* K6 */ be_nested_str_weak(plugins_config_remotes), + /* K7 */ be_nested_str_weak(adjust_next_ep), + /* K8 */ be_nested_str_weak(log), + /* K9 */ be_nested_str_weak(MTR_X3A_X20autoconfig_X20_X3D_X20), + /* K10 */ be_const_int(3), + /* K11 */ be_nested_str_weak(_instantiate_plugins_from_config), + /* K12 */ be_nested_str_weak(sessions), + /* K13 */ be_nested_str_weak(count_active_fabrics), + /* K14 */ be_nested_str_weak(save_param), + }), + be_str_weak(autoconf_device), + &be_const_str_solidified, + ( &(const binstruction[39]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x6008000C, // 0001 GETGBL R2 G12 + 0x880C0101, // 0002 GETMBR R3 R0 K1 + 0x7C080200, // 0003 CALL R2 1 + 0x24080502, // 0004 GT R2 R2 K2 + 0x780A0000, // 0005 JMPF R2 #0007 + 0x80000400, // 0006 RET 0 + 0x88080103, // 0007 GETMBR R2 R0 K3 + 0x740A000E, // 0008 JMPT R2 #0018 + 0x8C080105, // 0009 GETMET R2 R0 K5 + 0x7C080200, // 000A CALL R2 1 + 0x90020802, // 000B SETMBR R0 K4 R2 + 0x60080013, // 000C GETGBL R2 G19 + 0x7C080000, // 000D CALL R2 0 + 0x90020C02, // 000E SETMBR R0 K6 R2 + 0x8C080107, // 000F GETMET R2 R0 K7 + 0x7C080200, // 0010 CALL R2 1 + 0xB80A1000, // 0011 GETNGBL R2 K8 + 0x600C0008, // 0012 GETGBL R3 G8 + 0x88100104, // 0013 GETMBR R4 R0 K4 + 0x7C0C0200, // 0014 CALL R3 1 + 0x000E1203, // 0015 ADD R3 K9 R3 + 0x5810000A, // 0016 LDCONST R4 K10 + 0x7C080400, // 0017 CALL R2 2 + 0x8C08010B, // 0018 GETMET R2 R0 K11 + 0x88100104, // 0019 GETMBR R4 R0 K4 + 0x7C080400, // 001A CALL R2 2 + 0x88080103, // 001B GETMBR R2 R0 K3 + 0x740A0008, // 001C JMPT R2 #0026 + 0x8808010C, // 001D GETMBR R2 R0 K12 + 0x8C08050D, // 001E GETMET R2 R2 K13 + 0x7C080200, // 001F CALL R2 1 + 0x24080502, // 0020 GT R2 R2 K2 + 0x780A0003, // 0021 JMPF R2 #0026 + 0x50080200, // 0022 LDBOOL R2 1 0 + 0x90020602, // 0023 SETMBR R0 K3 R2 + 0x8C08010E, // 0024 GETMET R2 R0 K14 + 0x7C080200, // 0025 CALL R2 1 + 0x80000000, // 0026 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: start_root_basic_commissioning +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_start_root_basic_commissioning, /* name */ + be_nested_proto( + 22, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[23]) { /* constants */ + /* K0 */ be_nested_str_weak(PASE_TIMEOUT), + /* K1 */ be_nested_str_weak(compute_manual_pairing_code), + /* K2 */ be_nested_str_weak(log), + /* K3 */ be_nested_str_weak(MTR_X3A_X20Manual_X20pairing_X20code_X3A_X20_X25s), + /* K4 */ be_const_int(2), + /* K5 */ be_nested_str_weak(compute_qrcode_content), + /* K6 */ be_nested_str_weak(tasmota), + /* K7 */ be_nested_str_weak(publish_result), + /* K8 */ be_nested_str_weak(_X7B_X22Matter_X22_X3A_X7B_X22Commissioning_X22_X3A1_X2C_X22PairingCode_X22_X3A_X22_X25s_X22_X2C_X22QRCode_X22_X3A_X22_X25s_X22_X7D_X7D), + /* K9 */ be_nested_str_weak(Matter), + /* K10 */ be_nested_str_weak(crypto), + /* K11 */ be_nested_str_weak(random), + /* K12 */ be_nested_str_weak(add), + /* K13 */ be_nested_str_weak(root_passcode), + /* K14 */ be_nested_str_weak(PBKDF2_HMAC_SHA256), + /* K15 */ be_nested_str_weak(derive), + /* K16 */ be_nested_str_weak(PBKDF_ITERATIONS), + /* K17 */ be_const_int(0), + /* K18 */ be_nested_str_weak(EC_P256), + /* K19 */ be_nested_str_weak(mod), + /* K20 */ be_nested_str_weak(public_key), + /* K21 */ be_nested_str_weak(start_basic_commissioning), + /* K22 */ be_nested_str_weak(root_discriminator), + }), + be_str_weak(start_root_basic_commissioning), + &be_const_str_solidified, + ( &(const binstruction[74]) { /* code */ + 0x4C080000, // 0000 LDNIL R2 + 0x1C080202, // 0001 EQ R2 R1 R2 + 0x780A0000, // 0002 JMPF R2 #0004 + 0x88040100, // 0003 GETMBR R1 R0 K0 + 0x8C080101, // 0004 GETMET R2 R0 K1 + 0x7C080200, // 0005 CALL R2 1 + 0xB80E0400, // 0006 GETNGBL R3 K2 + 0x60100018, // 0007 GETGBL R4 G24 + 0x58140003, // 0008 LDCONST R5 K3 + 0x5C180400, // 0009 MOVE R6 R2 + 0x7C100400, // 000A CALL R4 2 + 0x58140004, // 000B LDCONST R5 K4 + 0x7C0C0400, // 000C CALL R3 2 + 0x8C0C0105, // 000D GETMET R3 R0 K5 + 0x7C0C0200, // 000E CALL R3 1 + 0xB8120C00, // 000F GETNGBL R4 K6 + 0x8C100907, // 0010 GETMET R4 R4 K7 + 0x60180018, // 0011 GETGBL R6 G24 0x581C0008, // 0012 LDCONST R7 K8 - 0x7C140400, // 0013 CALL R5 2 - 0x8C140109, // 0014 GETMET R5 R0 K9 - 0x7C140200, // 0015 CALL R5 1 - 0x80000000, // 0016 RET 0 + 0x5C200400, // 0013 MOVE R8 R2 + 0x5C240600, // 0014 MOVE R9 R3 + 0x7C180600, // 0015 CALL R6 3 + 0x581C0009, // 0016 LDCONST R7 K9 + 0x7C100600, // 0017 CALL R4 3 + 0xA4121400, // 0018 IMPORT R4 K10 + 0x8C14090B, // 0019 GETMET R5 R4 K11 + 0x541E000F, // 001A LDINT R7 16 + 0x7C140400, // 001B CALL R5 2 + 0x60180015, // 001C GETGBL R6 G21 + 0x7C180000, // 001D CALL R6 0 + 0x8C180D0C, // 001E GETMET R6 R6 K12 + 0x8820010D, // 001F GETMBR R8 R0 K13 + 0x54260003, // 0020 LDINT R9 4 + 0x7C180600, // 0021 CALL R6 3 + 0x8C1C090E, // 0022 GETMET R7 R4 K14 + 0x7C1C0200, // 0023 CALL R7 1 + 0x8C1C0F0F, // 0024 GETMET R7 R7 K15 + 0x5C240C00, // 0025 MOVE R9 R6 + 0x5C280A00, // 0026 MOVE R10 R5 + 0x882C0110, // 0027 GETMBR R11 R0 K16 + 0x5432004F, // 0028 LDINT R12 80 + 0x7C1C0A00, // 0029 CALL R7 5 + 0x54220026, // 002A LDINT R8 39 + 0x40222208, // 002B CONNECT R8 K17 R8 + 0x94200E08, // 002C GETIDX R8 R7 R8 + 0x54260027, // 002D LDINT R9 40 + 0x542A004E, // 002E LDINT R10 79 + 0x4024120A, // 002F CONNECT R9 R9 R10 + 0x94240E09, // 0030 GETIDX R9 R7 R9 + 0x8C280912, // 0031 GETMET R10 R4 K18 + 0x7C280200, // 0032 CALL R10 1 + 0x8C281513, // 0033 GETMET R10 R10 K19 + 0x5C301000, // 0034 MOVE R12 R8 + 0x7C280400, // 0035 CALL R10 2 + 0x8C2C0912, // 0036 GETMET R11 R4 K18 + 0x7C2C0200, // 0037 CALL R11 1 + 0x8C2C1713, // 0038 GETMET R11 R11 K19 + 0x5C341200, // 0039 MOVE R13 R9 + 0x7C2C0400, // 003A CALL R11 2 + 0x8C300912, // 003B GETMET R12 R4 K18 + 0x7C300200, // 003C CALL R12 1 + 0x8C301914, // 003D GETMET R12 R12 K20 + 0x5C381600, // 003E MOVE R14 R11 + 0x7C300400, // 003F CALL R12 2 + 0x8C340115, // 0040 GETMET R13 R0 K21 + 0x5C3C0200, // 0041 MOVE R15 R1 + 0x88400110, // 0042 GETMBR R16 R0 K16 + 0x88440116, // 0043 GETMBR R17 R0 K22 + 0x5C480A00, // 0044 MOVE R18 R5 + 0x5C4C1400, // 0045 MOVE R19 R10 + 0x5C501800, // 0046 MOVE R20 R12 + 0x4C540000, // 0047 LDNIL R21 + 0x7C341000, // 0048 CALL R13 8 + 0x80000000, // 0049 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: mdns_announce_op_discovery_all_fabrics +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_mdns_announce_op_discovery_all_fabrics, /* name */ + be_nested_proto( + 6, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 6]) { /* constants */ + /* K0 */ be_nested_str_weak(sessions), + /* K1 */ be_nested_str_weak(active_fabrics), + /* K2 */ be_nested_str_weak(get_device_id), + /* K3 */ be_nested_str_weak(get_fabric_id), + /* K4 */ be_nested_str_weak(mdns_announce_op_discovery), + /* K5 */ be_nested_str_weak(stop_iteration), + }), + be_str_weak(mdns_announce_op_discovery_all_fabrics), + &be_const_str_solidified, + ( &(const binstruction[22]) { /* code */ + 0x60040010, // 0000 GETGBL R1 G16 + 0x88080100, // 0001 GETMBR R2 R0 K0 + 0x8C080501, // 0002 GETMET R2 R2 K1 + 0x7C080200, // 0003 CALL R2 1 + 0x7C040200, // 0004 CALL R1 1 + 0xA802000B, // 0005 EXBLK 0 #0012 + 0x5C080200, // 0006 MOVE R2 R1 + 0x7C080000, // 0007 CALL R2 0 + 0x8C0C0502, // 0008 GETMET R3 R2 K2 + 0x7C0C0200, // 0009 CALL R3 1 + 0x780E0005, // 000A JMPF R3 #0011 + 0x8C0C0503, // 000B GETMET R3 R2 K3 + 0x7C0C0200, // 000C CALL R3 1 + 0x780E0002, // 000D JMPF R3 #0011 + 0x8C0C0104, // 000E GETMET R3 R0 K4 + 0x5C140400, // 000F MOVE R5 R2 + 0x7C0C0400, // 0010 CALL R3 2 + 0x7001FFF3, // 0011 JMP #0006 + 0x58040005, // 0012 LDCONST R1 K5 + 0xAC040200, // 0013 CATCH R1 1 0 + 0xB0080000, // 0014 RAISE 2 R0 R0 + 0x80000000, // 0015 RET 0 }) ) ); @@ -3779,62 +4703,45 @@ be_local_closure(class_Matter_Device_mdns_remove_op_discovery, /* name */ /******************************************************************** -** Solidified function: stop_basic_commissioning +** Solidified function: find_plugin_by_endpoint ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_stop_basic_commissioning, /* name */ +be_local_closure(class_Matter_Device_find_plugin_by_endpoint, /* name */ be_nested_proto( - 5, /* nstack */ - 1, /* argc */ + 6, /* nstack */ + 2, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ - ( &(const bvalue[13]) { /* constants */ - /* K0 */ be_nested_str_weak(is_root_commissioning_open), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(publish_result), - /* K3 */ be_nested_str_weak(_X7B_X22Matter_X22_X3A_X7B_X22Commissioning_X22_X3A0_X7D_X7D), - /* K4 */ be_nested_str_weak(Matter), - /* K5 */ be_nested_str_weak(commissioning_open), - /* K6 */ be_nested_str_weak(mdns_remove_PASE), - /* K7 */ be_nested_str_weak(commissioning_iterations), - /* K8 */ be_nested_str_weak(commissioning_discriminator), - /* K9 */ be_nested_str_weak(commissioning_salt), - /* K10 */ be_nested_str_weak(commissioning_w0), - /* K11 */ be_nested_str_weak(commissioning_L), - /* K12 */ be_nested_str_weak(commissioning_admin_fabric), + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_const_int(0), + /* K1 */ be_nested_str_weak(plugins), + /* K2 */ be_nested_str_weak(get_endpoint), + /* K3 */ be_const_int(1), }), - be_str_weak(stop_basic_commissioning), + be_str_weak(find_plugin_by_endpoint), &be_const_str_solidified, - ( &(const binstruction[25]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x7C040200, // 0001 CALL R1 1 - 0x78060004, // 0002 JMPF R1 #0008 - 0xB8060200, // 0003 GETNGBL R1 K1 - 0x8C040302, // 0004 GETMET R1 R1 K2 - 0x580C0003, // 0005 LDCONST R3 K3 - 0x58100004, // 0006 LDCONST R4 K4 - 0x7C040600, // 0007 CALL R1 3 - 0x4C040000, // 0008 LDNIL R1 - 0x90020A01, // 0009 SETMBR R0 K5 R1 - 0x8C040106, // 000A GETMET R1 R0 K6 - 0x7C040200, // 000B CALL R1 1 - 0x4C040000, // 000C LDNIL R1 - 0x90020E01, // 000D SETMBR R0 K7 R1 - 0x4C040000, // 000E LDNIL R1 - 0x90021001, // 000F SETMBR R0 K8 R1 - 0x4C040000, // 0010 LDNIL R1 - 0x90021201, // 0011 SETMBR R0 K9 R1 - 0x4C040000, // 0012 LDNIL R1 - 0x90021401, // 0013 SETMBR R0 K10 R1 - 0x4C040000, // 0014 LDNIL R1 - 0x90021601, // 0015 SETMBR R0 K11 R1 - 0x4C040000, // 0016 LDNIL R1 - 0x90021801, // 0017 SETMBR R0 K12 R1 - 0x80000000, // 0018 RET 0 + ( &(const binstruction[17]) { /* code */ + 0x58080000, // 0000 LDCONST R2 K0 + 0x600C000C, // 0001 GETGBL R3 G12 + 0x88100101, // 0002 GETMBR R4 R0 K1 + 0x7C0C0200, // 0003 CALL R3 1 + 0x140C0403, // 0004 LT R3 R2 R3 + 0x780E0008, // 0005 JMPF R3 #000F + 0x880C0101, // 0006 GETMBR R3 R0 K1 + 0x940C0602, // 0007 GETIDX R3 R3 R2 + 0x8C100702, // 0008 GETMET R4 R3 K2 + 0x7C100200, // 0009 CALL R4 1 + 0x1C100801, // 000A EQ R4 R4 R1 + 0x78120000, // 000B JMPF R4 #000D + 0x80040600, // 000C RET 1 R3 + 0x00080503, // 000D ADD R2 R2 K3 + 0x7001FFF1, // 000E JMP #0001 + 0x4C0C0000, // 000F LDNIL R3 + 0x80040600, // 0010 RET 1 R3 }) ) ); @@ -3842,73 +4749,359 @@ be_local_closure(class_Matter_Device_stop_basic_commissioning, /* name */ /******************************************************************** -** Solidified function: _compute_pbkdf +** Solidified function: mdns_announce_PASE ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device__compute_pbkdf, /* name */ +be_local_closure(class_Matter_Device_mdns_announce_PASE, /* name */ be_nested_proto( - 13, /* nstack */ - 4, /* argc */ + 12, /* nstack */ + 1, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ - ( &(const bvalue[10]) { /* constants */ - /* K0 */ be_nested_str_weak(crypto), - /* K1 */ be_nested_str_weak(add), - /* K2 */ be_nested_str_weak(PBKDF2_HMAC_SHA256), - /* K3 */ be_nested_str_weak(derive), - /* K4 */ be_const_int(0), - /* K5 */ be_nested_str_weak(root_w0), - /* K6 */ be_nested_str_weak(EC_P256), - /* K7 */ be_nested_str_weak(mod), - /* K8 */ be_nested_str_weak(root_L), - /* K9 */ be_nested_str_weak(public_key), + ( &(const bvalue[40]) { /* constants */ + /* K0 */ be_nested_str_weak(mdns), + /* K1 */ be_nested_str_weak(crypto), + /* K2 */ be_nested_str_weak(VP), + /* K3 */ be_nested_str_weak(_X25s_X2B_X25s), + /* K4 */ be_nested_str_weak(VENDOR_ID), + /* K5 */ be_nested_str_weak(PRODUCT_ID), + /* K6 */ be_nested_str_weak(D), + /* K7 */ be_nested_str_weak(commissioning_discriminator), + /* K8 */ be_nested_str_weak(CM), + /* K9 */ be_const_int(1), + /* K10 */ be_nested_str_weak(T), + /* K11 */ be_const_int(0), + /* K12 */ be_nested_str_weak(SII), + /* K13 */ be_nested_str_weak(SAI), + /* K14 */ be_nested_str_weak(commissioning_instance_wifi), + /* K15 */ be_nested_str_weak(random), + /* K16 */ be_nested_str_weak(tohex), + /* K17 */ be_nested_str_weak(commissioning_instance_eth), + /* K18 */ be_nested_str_weak(hostname_eth), + /* K19 */ be_nested_str_weak(add_service), + /* K20 */ be_nested_str_weak(_matterc), + /* K21 */ be_nested_str_weak(_udp), + /* K22 */ be_nested_str_weak(mdns_pase_eth), + /* K23 */ be_nested_str_weak(log), + /* K24 */ be_nested_str_weak(MTR_X3A_X20announce_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27_X20ptr_X20to_X20_X60_X25s_X2Elocal_X60), + /* K25 */ be_nested_str_weak(eth), + /* K26 */ be_const_int(2), + /* K27 */ be_nested_str_weak(_L), + /* K28 */ be_nested_str_weak(MTR_X3A_X20adding_X20subtype_X3A_X20), + /* K29 */ be_const_int(3), + /* K30 */ be_nested_str_weak(add_subtype), + /* K31 */ be_nested_str_weak(_S), + /* K32 */ be_nested_str_weak(_V), + /* K33 */ be_nested_str_weak(_CM1), + /* K34 */ be_nested_str_weak(hostname_wifi), + /* K35 */ be_nested_str_weak(mdns_pase_wifi), + /* K36 */ be_nested_str_weak(MTR_X3A_X20starting_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27_X20ptr_X20to_X20_X60_X25s_X2Elocal_X60), + /* K37 */ be_nested_str_weak(wifi), + /* K38 */ be_nested_str_weak(MTR_X3A_X20Exception), + /* K39 */ be_nested_str_weak(_X7C), }), - be_str_weak(_compute_pbkdf), + be_str_weak(mdns_announce_PASE), + &be_const_str_solidified, + ( &(const binstruction[222]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0x600C0013, // 0002 GETGBL R3 G19 + 0x7C0C0000, // 0003 CALL R3 0 + 0x60100018, // 0004 GETGBL R4 G24 + 0x58140003, // 0005 LDCONST R5 K3 + 0x88180104, // 0006 GETMBR R6 R0 K4 + 0x881C0105, // 0007 GETMBR R7 R0 K5 + 0x7C100600, // 0008 CALL R4 3 + 0x980E0404, // 0009 SETIDX R3 K2 R4 + 0x88100107, // 000A GETMBR R4 R0 K7 + 0x980E0C04, // 000B SETIDX R3 K6 R4 + 0x980E1109, // 000C SETIDX R3 K8 K9 + 0x980E150B, // 000D SETIDX R3 K10 K11 + 0x54121387, // 000E LDINT R4 5000 + 0x980E1804, // 000F SETIDX R3 K12 R4 + 0x5412012B, // 0010 LDINT R4 300 + 0x980E1A04, // 0011 SETIDX R3 K13 R4 + 0x8C10050F, // 0012 GETMET R4 R2 K15 + 0x541A0007, // 0013 LDINT R6 8 + 0x7C100400, // 0014 CALL R4 2 + 0x8C100910, // 0015 GETMET R4 R4 K16 + 0x7C100200, // 0016 CALL R4 1 + 0x90021C04, // 0017 SETMBR R0 K14 R4 + 0x8C10050F, // 0018 GETMET R4 R2 K15 + 0x541A0007, // 0019 LDINT R6 8 + 0x7C100400, // 001A CALL R4 2 + 0x8C100910, // 001B GETMET R4 R4 K16 + 0x7C100200, // 001C CALL R4 1 + 0x90022204, // 001D SETMBR R0 K17 R4 + 0xA80200AD, // 001E EXBLK 0 #00CD + 0x88100112, // 001F GETMBR R4 R0 K18 + 0x78120053, // 0020 JMPF R4 #0075 + 0x8C100313, // 0021 GETMET R4 R1 K19 + 0x58180014, // 0022 LDCONST R6 K20 + 0x581C0015, // 0023 LDCONST R7 K21 + 0x542215A3, // 0024 LDINT R8 5540 + 0x5C240600, // 0025 MOVE R9 R3 + 0x88280111, // 0026 GETMBR R10 R0 K17 + 0x882C0112, // 0027 GETMBR R11 R0 K18 + 0x7C100E00, // 0028 CALL R4 7 + 0x50100200, // 0029 LDBOOL R4 1 0 + 0x90022C04, // 002A SETMBR R0 K22 R4 + 0xB8122E00, // 002B GETNGBL R4 K23 + 0x60140018, // 002C GETGBL R5 G24 + 0x58180018, // 002D LDCONST R6 K24 + 0x581C0019, // 002E LDCONST R7 K25 + 0x88200111, // 002F GETMBR R8 R0 K17 + 0x88240112, // 0030 GETMBR R9 R0 K18 + 0x7C140800, // 0031 CALL R5 4 + 0x5818001A, // 0032 LDCONST R6 K26 + 0x7C100400, // 0033 CALL R4 2 + 0x60100008, // 0034 GETGBL R4 G8 + 0x88140107, // 0035 GETMBR R5 R0 K7 + 0x541A0FFE, // 0036 LDINT R6 4095 + 0x2C140A06, // 0037 AND R5 R5 R6 + 0x7C100200, // 0038 CALL R4 1 + 0x00123604, // 0039 ADD R4 K27 R4 + 0xB8162E00, // 003A GETNGBL R5 K23 + 0x001A3804, // 003B ADD R6 K28 R4 + 0x581C001D, // 003C LDCONST R7 K29 + 0x7C140400, // 003D CALL R5 2 + 0x8C14031E, // 003E GETMET R5 R1 K30 + 0x581C0014, // 003F LDCONST R7 K20 + 0x58200015, // 0040 LDCONST R8 K21 + 0x88240111, // 0041 GETMBR R9 R0 K17 + 0x88280112, // 0042 GETMBR R10 R0 K18 + 0x5C2C0800, // 0043 MOVE R11 R4 + 0x7C140C00, // 0044 CALL R5 6 + 0x60140008, // 0045 GETGBL R5 G8 + 0x88180107, // 0046 GETMBR R6 R0 K7 + 0x541E0EFF, // 0047 LDINT R7 3840 + 0x2C180C07, // 0048 AND R6 R6 R7 + 0x541E0007, // 0049 LDINT R7 8 + 0x3C180C07, // 004A SHR R6 R6 R7 + 0x7C140200, // 004B CALL R5 1 + 0x00163E05, // 004C ADD R5 K31 R5 + 0x5C100A00, // 004D MOVE R4 R5 + 0xB8162E00, // 004E GETNGBL R5 K23 + 0x001A3804, // 004F ADD R6 K28 R4 + 0x581C001D, // 0050 LDCONST R7 K29 + 0x7C140400, // 0051 CALL R5 2 + 0x8C14031E, // 0052 GETMET R5 R1 K30 + 0x581C0014, // 0053 LDCONST R7 K20 + 0x58200015, // 0054 LDCONST R8 K21 + 0x88240111, // 0055 GETMBR R9 R0 K17 + 0x88280112, // 0056 GETMBR R10 R0 K18 + 0x5C2C0800, // 0057 MOVE R11 R4 + 0x7C140C00, // 0058 CALL R5 6 + 0x60140008, // 0059 GETGBL R5 G8 + 0x88180104, // 005A GETMBR R6 R0 K4 + 0x7C140200, // 005B CALL R5 1 + 0x00164005, // 005C ADD R5 K32 R5 + 0x5C100A00, // 005D MOVE R4 R5 + 0xB8162E00, // 005E GETNGBL R5 K23 + 0x001A3804, // 005F ADD R6 K28 R4 + 0x581C001D, // 0060 LDCONST R7 K29 + 0x7C140400, // 0061 CALL R5 2 + 0x8C14031E, // 0062 GETMET R5 R1 K30 + 0x581C0014, // 0063 LDCONST R7 K20 + 0x58200015, // 0064 LDCONST R8 K21 + 0x88240111, // 0065 GETMBR R9 R0 K17 + 0x88280112, // 0066 GETMBR R10 R0 K18 + 0x5C2C0800, // 0067 MOVE R11 R4 + 0x7C140C00, // 0068 CALL R5 6 + 0x58100021, // 0069 LDCONST R4 K33 + 0xB8162E00, // 006A GETNGBL R5 K23 + 0x001A3804, // 006B ADD R6 K28 R4 + 0x581C001D, // 006C LDCONST R7 K29 + 0x7C140400, // 006D CALL R5 2 + 0x8C14031E, // 006E GETMET R5 R1 K30 + 0x581C0014, // 006F LDCONST R7 K20 + 0x58200015, // 0070 LDCONST R8 K21 + 0x88240111, // 0071 GETMBR R9 R0 K17 + 0x88280112, // 0072 GETMBR R10 R0 K18 + 0x5C2C0800, // 0073 MOVE R11 R4 + 0x7C140C00, // 0074 CALL R5 6 + 0x88100122, // 0075 GETMBR R4 R0 K34 + 0x78120053, // 0076 JMPF R4 #00CB + 0x8C100313, // 0077 GETMET R4 R1 K19 + 0x58180014, // 0078 LDCONST R6 K20 + 0x581C0015, // 0079 LDCONST R7 K21 + 0x542215A3, // 007A LDINT R8 5540 + 0x5C240600, // 007B MOVE R9 R3 + 0x8828010E, // 007C GETMBR R10 R0 K14 + 0x882C0122, // 007D GETMBR R11 R0 K34 + 0x7C100E00, // 007E CALL R4 7 + 0x50100200, // 007F LDBOOL R4 1 0 + 0x90024604, // 0080 SETMBR R0 K35 R4 + 0xB8122E00, // 0081 GETNGBL R4 K23 + 0x60140018, // 0082 GETGBL R5 G24 + 0x58180024, // 0083 LDCONST R6 K36 + 0x581C0025, // 0084 LDCONST R7 K37 + 0x8820010E, // 0085 GETMBR R8 R0 K14 + 0x88240122, // 0086 GETMBR R9 R0 K34 + 0x7C140800, // 0087 CALL R5 4 + 0x5818001D, // 0088 LDCONST R6 K29 + 0x7C100400, // 0089 CALL R4 2 + 0x60100008, // 008A GETGBL R4 G8 + 0x88140107, // 008B GETMBR R5 R0 K7 + 0x541A0FFE, // 008C LDINT R6 4095 + 0x2C140A06, // 008D AND R5 R5 R6 + 0x7C100200, // 008E CALL R4 1 + 0x00123604, // 008F ADD R4 K27 R4 + 0xB8162E00, // 0090 GETNGBL R5 K23 + 0x001A3804, // 0091 ADD R6 K28 R4 + 0x581C001D, // 0092 LDCONST R7 K29 + 0x7C140400, // 0093 CALL R5 2 + 0x8C14031E, // 0094 GETMET R5 R1 K30 + 0x581C0014, // 0095 LDCONST R7 K20 + 0x58200015, // 0096 LDCONST R8 K21 + 0x8824010E, // 0097 GETMBR R9 R0 K14 + 0x88280122, // 0098 GETMBR R10 R0 K34 + 0x5C2C0800, // 0099 MOVE R11 R4 + 0x7C140C00, // 009A CALL R5 6 + 0x60140008, // 009B GETGBL R5 G8 + 0x88180107, // 009C GETMBR R6 R0 K7 + 0x541E0EFF, // 009D LDINT R7 3840 + 0x2C180C07, // 009E AND R6 R6 R7 + 0x541E0007, // 009F LDINT R7 8 + 0x3C180C07, // 00A0 SHR R6 R6 R7 + 0x7C140200, // 00A1 CALL R5 1 + 0x00163E05, // 00A2 ADD R5 K31 R5 + 0x5C100A00, // 00A3 MOVE R4 R5 + 0xB8162E00, // 00A4 GETNGBL R5 K23 + 0x001A3804, // 00A5 ADD R6 K28 R4 + 0x581C001D, // 00A6 LDCONST R7 K29 + 0x7C140400, // 00A7 CALL R5 2 + 0x8C14031E, // 00A8 GETMET R5 R1 K30 + 0x581C0014, // 00A9 LDCONST R7 K20 + 0x58200015, // 00AA LDCONST R8 K21 + 0x8824010E, // 00AB GETMBR R9 R0 K14 + 0x88280122, // 00AC GETMBR R10 R0 K34 + 0x5C2C0800, // 00AD MOVE R11 R4 + 0x7C140C00, // 00AE CALL R5 6 + 0x60140008, // 00AF GETGBL R5 G8 + 0x88180104, // 00B0 GETMBR R6 R0 K4 + 0x7C140200, // 00B1 CALL R5 1 + 0x00164005, // 00B2 ADD R5 K32 R5 + 0x5C100A00, // 00B3 MOVE R4 R5 + 0xB8162E00, // 00B4 GETNGBL R5 K23 + 0x001A3804, // 00B5 ADD R6 K28 R4 + 0x581C001D, // 00B6 LDCONST R7 K29 + 0x7C140400, // 00B7 CALL R5 2 + 0x8C14031E, // 00B8 GETMET R5 R1 K30 + 0x581C0014, // 00B9 LDCONST R7 K20 + 0x58200015, // 00BA LDCONST R8 K21 + 0x8824010E, // 00BB GETMBR R9 R0 K14 + 0x88280122, // 00BC GETMBR R10 R0 K34 + 0x5C2C0800, // 00BD MOVE R11 R4 + 0x7C140C00, // 00BE CALL R5 6 + 0x58100021, // 00BF LDCONST R4 K33 + 0xB8162E00, // 00C0 GETNGBL R5 K23 + 0x001A3804, // 00C1 ADD R6 K28 R4 + 0x581C001D, // 00C2 LDCONST R7 K29 + 0x7C140400, // 00C3 CALL R5 2 + 0x8C14031E, // 00C4 GETMET R5 R1 K30 + 0x581C0014, // 00C5 LDCONST R7 K20 + 0x58200015, // 00C6 LDCONST R8 K21 + 0x8824010E, // 00C7 GETMBR R9 R0 K14 + 0x88280122, // 00C8 GETMBR R10 R0 K34 + 0x5C2C0800, // 00C9 MOVE R11 R4 + 0x7C140C00, // 00CA CALL R5 6 + 0xA8040001, // 00CB EXBLK 1 1 + 0x7002000F, // 00CC JMP #00DD + 0xAC100002, // 00CD CATCH R4 0 2 + 0x7002000C, // 00CE JMP #00DC + 0xB81A2E00, // 00CF GETNGBL R6 K23 + 0x601C0008, // 00D0 GETGBL R7 G8 + 0x5C200800, // 00D1 MOVE R8 R4 + 0x7C1C0200, // 00D2 CALL R7 1 + 0x001E4C07, // 00D3 ADD R7 K38 R7 + 0x001C0F27, // 00D4 ADD R7 R7 K39 + 0x60200008, // 00D5 GETGBL R8 G8 + 0x5C240A00, // 00D6 MOVE R9 R5 + 0x7C200200, // 00D7 CALL R8 1 + 0x001C0E08, // 00D8 ADD R7 R7 R8 + 0x5820001A, // 00D9 LDCONST R8 K26 + 0x7C180400, // 00DA CALL R6 2 + 0x70020000, // 00DB JMP #00DD + 0xB0080000, // 00DC RAISE 2 R0 R0 + 0x80000000, // 00DD RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: MtrInfo +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_MtrInfo, /* name */ + be_nested_proto( + 10, /* nstack */ + 5, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 9]) { /* constants */ + /* K0 */ be_nested_str_weak(), + /* K1 */ be_nested_str_weak(plugins), + /* K2 */ be_nested_str_weak(MtrInfo_one), + /* K3 */ be_nested_str_weak(endpoint), + /* K4 */ be_nested_str_weak(stop_iteration), + /* K5 */ be_nested_str_weak(int), + /* K6 */ be_nested_str_weak(find_plugin_by_friendly_name), + /* K7 */ be_nested_str_weak(tasmota), + /* K8 */ be_nested_str_weak(resp_cmnd_done), + }), + be_str_weak(MtrInfo), &be_const_str_solidified, ( &(const binstruction[40]) { /* code */ - 0xA4120000, // 0000 IMPORT R4 K0 - 0x60140015, // 0001 GETGBL R5 G21 - 0x7C140000, // 0002 CALL R5 0 - 0x8C140B01, // 0003 GETMET R5 R5 K1 - 0x5C1C0200, // 0004 MOVE R7 R1 - 0x54220003, // 0005 LDINT R8 4 - 0x7C140600, // 0006 CALL R5 3 - 0x8C180902, // 0007 GETMET R6 R4 K2 - 0x7C180200, // 0008 CALL R6 1 - 0x8C180D03, // 0009 GETMET R6 R6 K3 - 0x5C200A00, // 000A MOVE R8 R5 - 0x5C240600, // 000B MOVE R9 R3 - 0x5C280400, // 000C MOVE R10 R2 - 0x542E004F, // 000D LDINT R11 80 - 0x7C180A00, // 000E CALL R6 5 - 0x541E0026, // 000F LDINT R7 39 - 0x401E0807, // 0010 CONNECT R7 K4 R7 - 0x941C0C07, // 0011 GETIDX R7 R6 R7 - 0x54220027, // 0012 LDINT R8 40 - 0x5426004E, // 0013 LDINT R9 79 - 0x40201009, // 0014 CONNECT R8 R8 R9 - 0x94200C08, // 0015 GETIDX R8 R6 R8 - 0x8C240906, // 0016 GETMET R9 R4 K6 - 0x7C240200, // 0017 CALL R9 1 - 0x8C241307, // 0018 GETMET R9 R9 K7 - 0x5C2C0E00, // 0019 MOVE R11 R7 - 0x7C240400, // 001A CALL R9 2 - 0x90020A09, // 001B SETMBR R0 K5 R9 - 0x8C240906, // 001C GETMET R9 R4 K6 - 0x7C240200, // 001D CALL R9 1 - 0x8C241307, // 001E GETMET R9 R9 K7 - 0x5C2C1000, // 001F MOVE R11 R8 - 0x7C240400, // 0020 CALL R9 2 - 0x8C280906, // 0021 GETMET R10 R4 K6 - 0x7C280200, // 0022 CALL R10 1 - 0x8C281509, // 0023 GETMET R10 R10 K9 - 0x5C301200, // 0024 MOVE R12 R9 - 0x7C280400, // 0025 CALL R10 2 - 0x9002100A, // 0026 SETMBR R0 K8 R10 + 0x1C140700, // 0000 EQ R5 R3 K0 + 0x7815FFFF, // 0001 JMPF R5 #0002 + 0x1C140700, // 0002 EQ R5 R3 K0 + 0x7816000D, // 0003 JMPF R5 #0012 + 0x60140010, // 0004 GETGBL R5 G16 + 0x88180101, // 0005 GETMBR R6 R0 K1 + 0x7C140200, // 0006 CALL R5 1 + 0xA8020005, // 0007 EXBLK 0 #000E + 0x5C180A00, // 0008 MOVE R6 R5 + 0x7C180000, // 0009 CALL R6 0 + 0x8C1C0102, // 000A GETMET R7 R0 K2 + 0x88240D03, // 000B GETMBR R9 R6 K3 + 0x7C1C0400, // 000C CALL R7 2 + 0x7001FFF9, // 000D JMP #0008 + 0x58140004, // 000E LDCONST R5 K4 + 0xAC140200, // 000F CATCH R5 1 0 + 0xB0080000, // 0010 RAISE 2 R0 R0 + 0x70020011, // 0011 JMP #0024 + 0x60140004, // 0012 GETGBL R5 G4 + 0x5C180800, // 0013 MOVE R6 R4 + 0x7C140200, // 0014 CALL R5 1 + 0x1C140B05, // 0015 EQ R5 R5 K5 + 0x78160003, // 0016 JMPF R5 #001B + 0x8C140102, // 0017 GETMET R5 R0 K2 + 0x5C1C0800, // 0018 MOVE R7 R4 + 0x7C140400, // 0019 CALL R5 2 + 0x70020008, // 001A JMP #0024 + 0x8C140106, // 001B GETMET R5 R0 K6 + 0x5C1C0600, // 001C MOVE R7 R3 + 0x7C140400, // 001D CALL R5 2 + 0x4C180000, // 001E LDNIL R6 + 0x20180A06, // 001F NE R6 R5 R6 + 0x781A0002, // 0020 JMPF R6 #0024 + 0x8C180102, // 0021 GETMET R6 R0 K2 + 0x88200B03, // 0022 GETMBR R8 R5 K3 + 0x7C180400, // 0023 CALL R6 2 + 0xB8160E00, // 0024 GETNGBL R5 K7 + 0x8C140B08, // 0025 GETMET R5 R5 K8 + 0x7C140200, // 0026 CALL R5 1 0x80000000, // 0027 RET 0 }) ) @@ -3916,6 +5109,426 @@ be_local_closure(class_Matter_Device__compute_pbkdf, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: every_250ms +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_every_250ms, /* name */ + be_nested_proto( + 4, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(read_sensors_scheduler), + /* K1 */ be_const_int(0), + /* K2 */ be_nested_str_weak(plugins), + /* K3 */ be_nested_str_weak(every_250ms), + /* K4 */ be_const_int(1), + }), + be_str_weak(every_250ms), + &be_const_str_solidified, + ( &(const binstruction[15]) { /* code */ + 0x8C040100, // 0000 GETMET R1 R0 K0 + 0x7C040200, // 0001 CALL R1 1 + 0x58040001, // 0002 LDCONST R1 K1 + 0x6008000C, // 0003 GETGBL R2 G12 + 0x880C0102, // 0004 GETMBR R3 R0 K2 + 0x7C080200, // 0005 CALL R2 1 + 0x14080202, // 0006 LT R2 R1 R2 + 0x780A0005, // 0007 JMPF R2 #000E + 0x88080102, // 0008 GETMBR R2 R0 K2 + 0x94080401, // 0009 GETIDX R2 R2 R1 + 0x8C080503, // 000A GETMET R2 R2 K3 + 0x7C080200, // 000B CALL R2 1 + 0x00040304, // 000C ADD R1 R1 K4 + 0x7001FFF4, // 000D JMP #0003 + 0x80000000, // 000E RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: generate_random_passcode +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_generate_random_passcode, /* name */ + be_nested_proto( + 7, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 8]) { /* constants */ + /* K0 */ be_nested_str_weak(crypto), + /* K1 */ be_nested_str_weak(random), + /* K2 */ be_nested_str_weak(get), + /* K3 */ be_const_int(0), + /* K4 */ be_const_int(134217727), + /* K5 */ be_const_int(99999998), + /* K6 */ be_nested_str_weak(PASSCODE_INVALID), + /* K7 */ be_nested_str_weak(stop_iteration), + }), + be_str_weak(generate_random_passcode), + &be_const_str_solidified, + ( &(const binstruction[35]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x4C080000, // 0001 LDNIL R2 + 0x500C0200, // 0002 LDBOOL R3 1 0 + 0x780E001D, // 0003 JMPF R3 #0022 + 0x8C0C0301, // 0004 GETMET R3 R1 K1 + 0x54160003, // 0005 LDINT R5 4 + 0x7C0C0400, // 0006 CALL R3 2 + 0x8C0C0702, // 0007 GETMET R3 R3 K2 + 0x58140003, // 0008 LDCONST R5 K3 + 0x541A0003, // 0009 LDINT R6 4 + 0x7C0C0600, // 000A CALL R3 3 + 0x2C0C0704, // 000B AND R3 R3 K4 + 0x5C080600, // 000C MOVE R2 R3 + 0x240C0505, // 000D GT R3 R2 K5 + 0x780E0000, // 000E JMPF R3 #0010 + 0x7001FFF1, // 000F JMP #0002 + 0x600C0010, // 0010 GETGBL R3 G16 + 0x88100106, // 0011 GETMBR R4 R0 K6 + 0x7C0C0200, // 0012 CALL R3 1 + 0xA8020005, // 0013 EXBLK 0 #001A + 0x5C100600, // 0014 MOVE R4 R3 + 0x7C100000, // 0015 CALL R4 0 + 0x1C140404, // 0016 EQ R5 R2 R4 + 0x78160000, // 0017 JMPF R5 #0019 + 0x4C080000, // 0018 LDNIL R2 + 0x7001FFF9, // 0019 JMP #0014 + 0x580C0007, // 001A LDCONST R3 K7 + 0xAC0C0200, // 001B CATCH R3 1 0 + 0xB0080000, // 001C RAISE 2 R0 R0 + 0x4C0C0000, // 001D LDNIL R3 + 0x200C0403, // 001E NE R3 R2 R3 + 0x780E0000, // 001F JMPF R3 #0021 + 0x80040400, // 0020 RET 1 R2 + 0x7001FFDF, // 0021 JMP #0002 + 0x80000000, // 0022 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: MtrJoin +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_MtrJoin, /* name */ + be_nested_proto( + 8, /* nstack */ + 5, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(start_root_basic_commissioning), + /* K1 */ be_nested_str_weak(stop_basic_commissioning), + /* K2 */ be_nested_str_weak(tasmota), + /* K3 */ be_nested_str_weak(resp_cmnd_done), + }), + be_str_weak(MtrJoin), + &be_const_str_solidified, + ( &(const binstruction[13]) { /* code */ + 0x60140009, // 0000 GETGBL R5 G9 + 0x5C180600, // 0001 MOVE R6 R3 + 0x7C140200, // 0002 CALL R5 1 + 0x78160002, // 0003 JMPF R5 #0007 + 0x8C180100, // 0004 GETMET R6 R0 K0 + 0x7C180200, // 0005 CALL R6 1 + 0x70020001, // 0006 JMP #0009 + 0x8C180101, // 0007 GETMET R6 R0 K1 + 0x7C180200, // 0008 CALL R6 1 + 0xB81A0400, // 0009 GETNGBL R6 K2 + 0x8C180D03, // 000A GETMET R6 R6 K3 + 0x7C180200, // 000B CALL R6 1 + 0x80000000, // 000C RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: process_attribute_expansion +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_process_attribute_expansion, /* name */ + be_nested_proto( + 12, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 9]) { /* constants */ + /* K0 */ be_nested_str_weak(endpoint), + /* K1 */ be_nested_str_weak(cluster), + /* K2 */ be_nested_str_weak(attribute), + /* K3 */ be_nested_str_weak(matter), + /* K4 */ be_nested_str_weak(PathGenerator), + /* K5 */ be_nested_str_weak(start), + /* K6 */ be_nested_str_weak(is_direct), + /* K7 */ be_nested_str_weak(next_attribute), + /* K8 */ be_nested_str_weak(get_pi), + }), + be_str_weak(process_attribute_expansion), + &be_const_str_solidified, + ( &(const binstruction[28]) { /* code */ + 0x880C0300, // 0000 GETMBR R3 R1 K0 + 0x88100301, // 0001 GETMBR R4 R1 K1 + 0x88140302, // 0002 GETMBR R5 R1 K2 + 0xB81A0600, // 0003 GETNGBL R6 K3 + 0x8C180D04, // 0004 GETMET R6 R6 K4 + 0x5C200000, // 0005 MOVE R8 R0 + 0x7C180400, // 0006 CALL R6 2 + 0x8C1C0D05, // 0007 GETMET R7 R6 K5 + 0x5C240600, // 0008 MOVE R9 R3 + 0x5C280800, // 0009 MOVE R10 R4 + 0x5C2C0A00, // 000A MOVE R11 R5 + 0x7C1C0800, // 000B CALL R7 4 + 0x8C1C0D06, // 000C GETMET R7 R6 K6 + 0x7C1C0200, // 000D CALL R7 1 + 0x4C200000, // 000E LDNIL R8 + 0x8C240D07, // 000F GETMET R9 R6 K7 + 0x7C240200, // 0010 CALL R9 1 + 0x5C201200, // 0011 MOVE R8 R9 + 0x4C280000, // 0012 LDNIL R10 + 0x2024120A, // 0013 NE R9 R9 R10 + 0x78260005, // 0014 JMPF R9 #001B + 0x5C240400, // 0015 MOVE R9 R2 + 0x8C280D08, // 0016 GETMET R10 R6 K8 + 0x7C280200, // 0017 CALL R10 1 + 0x5C2C1000, // 0018 MOVE R11 R8 + 0x7C240400, // 0019 CALL R9 2 + 0x7001FFF3, // 001A JMP #000F + 0x80000000, // 001B RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: find_plugin_by_friendly_name +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_find_plugin_by_friendly_name, /* name */ + be_nested_proto( + 7, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_const_int(0), + /* K1 */ be_nested_str_weak(plugins), + /* K2 */ be_nested_str_weak(get_name), + /* K3 */ be_const_int(1), + }), + be_str_weak(find_plugin_by_friendly_name), + &be_const_str_solidified, + ( &(const binstruction[35]) { /* code */ + 0x4C080000, // 0000 LDNIL R2 + 0x1C080202, // 0001 EQ R2 R1 R2 + 0x740A0004, // 0002 JMPT R2 #0008 + 0x6008000C, // 0003 GETGBL R2 G12 + 0x5C0C0200, // 0004 MOVE R3 R1 + 0x7C080200, // 0005 CALL R2 1 + 0x1C080500, // 0006 EQ R2 R2 K0 + 0x780A0001, // 0007 JMPF R2 #000A + 0x4C080000, // 0008 LDNIL R2 + 0x80040400, // 0009 RET 1 R2 + 0x58080000, // 000A LDCONST R2 K0 + 0x600C000C, // 000B GETGBL R3 G12 + 0x88100101, // 000C GETMBR R4 R0 K1 + 0x7C0C0200, // 000D CALL R3 1 + 0x140C0403, // 000E LT R3 R2 R3 + 0x780E0010, // 000F JMPF R3 #0021 + 0x880C0101, // 0010 GETMBR R3 R0 K1 + 0x940C0602, // 0011 GETIDX R3 R3 R2 + 0x8C100702, // 0012 GETMET R4 R3 K2 + 0x7C100200, // 0013 CALL R4 1 + 0x4C140000, // 0014 LDNIL R5 + 0x20140805, // 0015 NE R5 R4 R5 + 0x78160007, // 0016 JMPF R5 #001F + 0x6014000C, // 0017 GETGBL R5 G12 + 0x5C180800, // 0018 MOVE R6 R4 + 0x7C140200, // 0019 CALL R5 1 + 0x24140B00, // 001A GT R5 R5 K0 + 0x78160002, // 001B JMPF R5 #001F + 0x1C140801, // 001C EQ R5 R4 R1 + 0x78160000, // 001D JMPF R5 #001F + 0x80040600, // 001E RET 1 R3 + 0x00080503, // 001F ADD R2 R2 K3 + 0x7001FFE9, // 0020 JMP #000B + 0x4C0C0000, // 0021 LDNIL R3 + 0x80040600, // 0022 RET 1 R3 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: save_param +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_save_param, /* name */ + be_nested_proto( + 9, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[31]) { /* constants */ + /* K0 */ be_nested_str_weak(json), + /* K1 */ be_nested_str_weak(update_remotes_info), + /* K2 */ be_nested_str_weak(_X7B_X22distinguish_X22_X3A_X25i_X2C_X22passcode_X22_X3A_X25i_X2C_X22ipv4only_X22_X3A_X25s_X2C_X22disable_bridge_mode_X22_X3A_X25s_X2C_X22nextep_X22_X3A_X25i), + /* K3 */ be_nested_str_weak(root_discriminator), + /* K4 */ be_nested_str_weak(root_passcode), + /* K5 */ be_nested_str_weak(ipv4only), + /* K6 */ be_nested_str_weak(true), + /* K7 */ be_nested_str_weak(false), + /* K8 */ be_nested_str_weak(disable_bridge_mode), + /* K9 */ be_nested_str_weak(next_ep), + /* K10 */ be_nested_str_weak(debug), + /* K11 */ be_nested_str_weak(_X2C_X22debug_X22_X3Atrue), + /* K12 */ be_nested_str_weak(plugins_persist), + /* K13 */ be_nested_str_weak(_X2C_X0A_X22config_X22_X3A), + /* K14 */ be_nested_str_weak(dump), + /* K15 */ be_nested_str_weak(plugins_config), + /* K16 */ be_nested_str_weak(plugins_config_remotes), + /* K17 */ be_const_int(0), + /* K18 */ be_nested_str_weak(_X2C_X0A_X22remotes_X22_X3A), + /* K19 */ be_nested_str_weak(_X7D), + /* K20 */ be_nested_str_weak(FILENAME), + /* K21 */ be_nested_str_weak(w), + /* K22 */ be_nested_str_weak(write), + /* K23 */ be_nested_str_weak(close), + /* K24 */ be_nested_str_weak(log), + /* K25 */ be_nested_str_weak(MTR_X3A_X20_X3DSaved_X20_X20_X20_X20_X20parameters_X25s), + /* K26 */ be_nested_str_weak(_X20and_X20configuration), + /* K27 */ be_nested_str_weak(), + /* K28 */ be_const_int(2), + /* K29 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Asave_X20Exception_X3A), + /* K30 */ be_nested_str_weak(_X7C), + }), + be_str_weak(save_param), + &be_const_str_solidified, + ( &(const binstruction[83]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x8C080101, // 0001 GETMET R2 R0 K1 + 0x7C080200, // 0002 CALL R2 1 + 0x60080018, // 0003 GETGBL R2 G24 + 0x580C0002, // 0004 LDCONST R3 K2 + 0x88100103, // 0005 GETMBR R4 R0 K3 + 0x88140104, // 0006 GETMBR R5 R0 K4 + 0x88180105, // 0007 GETMBR R6 R0 K5 + 0x781A0001, // 0008 JMPF R6 #000B + 0x58180006, // 0009 LDCONST R6 K6 + 0x70020000, // 000A JMP #000C + 0x58180007, // 000B LDCONST R6 K7 + 0x881C0108, // 000C GETMBR R7 R0 K8 + 0x781E0001, // 000D JMPF R7 #0010 + 0x581C0006, // 000E LDCONST R7 K6 + 0x70020000, // 000F JMP #0011 + 0x581C0007, // 0010 LDCONST R7 K7 + 0x88200109, // 0011 GETMBR R8 R0 K9 + 0x7C080C00, // 0012 CALL R2 6 + 0x880C010A, // 0013 GETMBR R3 R0 K10 + 0x780E0000, // 0014 JMPF R3 #0016 + 0x0008050B, // 0015 ADD R2 R2 K11 + 0x880C010C, // 0016 GETMBR R3 R0 K12 + 0x780E000E, // 0017 JMPF R3 #0027 + 0x0008050D, // 0018 ADD R2 R2 K13 + 0x8C0C030E, // 0019 GETMET R3 R1 K14 + 0x8814010F, // 001A GETMBR R5 R0 K15 + 0x7C0C0400, // 001B CALL R3 2 + 0x00080403, // 001C ADD R2 R2 R3 + 0x600C000C, // 001D GETGBL R3 G12 + 0x88100110, // 001E GETMBR R4 R0 K16 + 0x7C0C0200, // 001F CALL R3 1 + 0x240C0711, // 0020 GT R3 R3 K17 + 0x780E0004, // 0021 JMPF R3 #0027 + 0x00080512, // 0022 ADD R2 R2 K18 + 0x8C0C030E, // 0023 GETMET R3 R1 K14 + 0x88140110, // 0024 GETMBR R5 R0 K16 + 0x7C0C0400, // 0025 CALL R3 2 + 0x00080403, // 0026 ADD R2 R2 R3 + 0x00080513, // 0027 ADD R2 R2 K19 + 0xA8020017, // 0028 EXBLK 0 #0041 + 0x600C0011, // 0029 GETGBL R3 G17 + 0x88100114, // 002A GETMBR R4 R0 K20 + 0x58140015, // 002B LDCONST R5 K21 + 0x7C0C0400, // 002C CALL R3 2 + 0x8C100716, // 002D GETMET R4 R3 K22 + 0x5C180400, // 002E MOVE R6 R2 + 0x7C100400, // 002F CALL R4 2 + 0x8C100717, // 0030 GETMET R4 R3 K23 + 0x7C100200, // 0031 CALL R4 1 + 0xB8123000, // 0032 GETNGBL R4 K24 + 0x60140018, // 0033 GETGBL R5 G24 + 0x58180019, // 0034 LDCONST R6 K25 + 0x881C010C, // 0035 GETMBR R7 R0 K12 + 0x781E0001, // 0036 JMPF R7 #0039 + 0x581C001A, // 0037 LDCONST R7 K26 + 0x70020000, // 0038 JMP #003A + 0x581C001B, // 0039 LDCONST R7 K27 + 0x7C140400, // 003A CALL R5 2 + 0x5818001C, // 003B LDCONST R6 K28 + 0x7C100400, // 003C CALL R4 2 + 0xA8040001, // 003D EXBLK 1 1 + 0x80040400, // 003E RET 1 R2 + 0xA8040001, // 003F EXBLK 1 1 + 0x70020010, // 0040 JMP #0052 + 0xAC0C0002, // 0041 CATCH R3 0 2 + 0x7002000D, // 0042 JMP #0051 + 0xB8163000, // 0043 GETNGBL R5 K24 + 0x60180008, // 0044 GETGBL R6 G8 + 0x5C1C0600, // 0045 MOVE R7 R3 + 0x7C180200, // 0046 CALL R6 1 + 0x001A3A06, // 0047 ADD R6 K29 R6 + 0x00180D1E, // 0048 ADD R6 R6 K30 + 0x601C0008, // 0049 GETGBL R7 G8 + 0x5C200800, // 004A MOVE R8 R4 + 0x7C1C0200, // 004B CALL R7 1 + 0x00180C07, // 004C ADD R6 R6 R7 + 0x581C001C, // 004D LDCONST R7 K28 + 0x7C140400, // 004E CALL R5 2 + 0x80040400, // 004F RET 1 R2 + 0x70020000, // 0050 JMP #0052 + 0xB0080000, // 0051 RAISE 2 R0 R0 + 0x80000000, // 0052 RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: MtrUpdate ********************************************************************/ @@ -4093,1072 +5706,33 @@ be_local_closure(class_Matter_Device_MtrUpdate, /* name */ /******************************************************************** -** Solidified function: mdns_announce_op_discovery +** Solidified function: get_plugin_remote_info ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_mdns_announce_op_discovery, /* name */ - be_nested_proto( - 14, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[27]) { /* constants */ - /* K0 */ be_nested_str_weak(mdns), - /* K1 */ be_nested_str_weak(get_device_id), - /* K2 */ be_nested_str_weak(copy), - /* K3 */ be_nested_str_weak(reverse), - /* K4 */ be_nested_str_weak(get_fabric_compressed), - /* K5 */ be_nested_str_weak(tohex), - /* K6 */ be_nested_str_weak(_X2D), - /* K7 */ be_nested_str_weak(log), - /* K8 */ be_nested_str_weak(MTR_X3A_X20Operational_X20Discovery_X20node_X20_X3D_X20), - /* K9 */ be_const_int(3), - /* K10 */ be_nested_str_weak(tasmota), - /* K11 */ be_nested_str_weak(eth), - /* K12 */ be_nested_str_weak(find), - /* K13 */ be_nested_str_weak(up), - /* K14 */ be_nested_str_weak(MTR_X3A_X20adding_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27_X20ptr_X20to_X20_X60_X25s_X2Elocal_X60), - /* K15 */ be_nested_str_weak(hostname_eth), - /* K16 */ be_nested_str_weak(add_service), - /* K17 */ be_nested_str_weak(_matter), - /* K18 */ be_nested_str_weak(_tcp), - /* K19 */ be_nested_str_weak(_I), - /* K20 */ be_nested_str_weak(MTR_X3A_X20adding_X20subtype_X3A_X20), - /* K21 */ be_nested_str_weak(add_subtype), - /* K22 */ be_nested_str_weak(wifi), - /* K23 */ be_nested_str_weak(hostname_wifi), - /* K24 */ be_nested_str_weak(MTR_X3A_X20Exception), - /* K25 */ be_nested_str_weak(_X7C), - /* K26 */ be_const_int(2), - }), - be_str_weak(mdns_announce_op_discovery), - &be_const_str_solidified, - ( &(const binstruction[115]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0xA802005F, // 0001 EXBLK 0 #0062 - 0x8C0C0301, // 0002 GETMET R3 R1 K1 - 0x7C0C0200, // 0003 CALL R3 1 - 0x8C0C0702, // 0004 GETMET R3 R3 K2 - 0x7C0C0200, // 0005 CALL R3 1 - 0x8C0C0703, // 0006 GETMET R3 R3 K3 - 0x7C0C0200, // 0007 CALL R3 1 - 0x8C100304, // 0008 GETMET R4 R1 K4 - 0x7C100200, // 0009 CALL R4 1 - 0x8C140905, // 000A GETMET R5 R4 K5 - 0x7C140200, // 000B CALL R5 1 - 0x00140B06, // 000C ADD R5 R5 K6 - 0x8C180705, // 000D GETMET R6 R3 K5 - 0x7C180200, // 000E CALL R6 1 - 0x00140A06, // 000F ADD R5 R5 R6 - 0xB81A0E00, // 0010 GETNGBL R6 K7 - 0x001E1005, // 0011 ADD R7 K8 R5 - 0x58200009, // 0012 LDCONST R8 K9 - 0x7C180400, // 0013 CALL R6 2 - 0xB81A1400, // 0014 GETNGBL R6 K10 - 0x8C180D0B, // 0015 GETMET R6 R6 K11 - 0x7C180200, // 0016 CALL R6 1 - 0x8C180D0C, // 0017 GETMET R6 R6 K12 - 0x5820000D, // 0018 LDCONST R8 K13 - 0x7C180400, // 0019 CALL R6 2 - 0x781A001E, // 001A JMPF R6 #003A - 0xB81A0E00, // 001B GETNGBL R6 K7 - 0x601C0018, // 001C GETGBL R7 G24 - 0x5820000E, // 001D LDCONST R8 K14 - 0x5824000B, // 001E LDCONST R9 K11 - 0x5C280A00, // 001F MOVE R10 R5 - 0x882C010F, // 0020 GETMBR R11 R0 K15 - 0x7C1C0800, // 0021 CALL R7 4 - 0x58200009, // 0022 LDCONST R8 K9 - 0x7C180400, // 0023 CALL R6 2 - 0x8C180510, // 0024 GETMET R6 R2 K16 - 0x58200011, // 0025 LDCONST R8 K17 - 0x58240012, // 0026 LDCONST R9 K18 - 0x542A15A3, // 0027 LDINT R10 5540 - 0x4C2C0000, // 0028 LDNIL R11 - 0x5C300A00, // 0029 MOVE R12 R5 - 0x8834010F, // 002A GETMBR R13 R0 K15 - 0x7C180E00, // 002B CALL R6 7 - 0x8C180905, // 002C GETMET R6 R4 K5 - 0x7C180200, // 002D CALL R6 1 - 0x001A2606, // 002E ADD R6 K19 R6 - 0xB81E0E00, // 002F GETNGBL R7 K7 - 0x00222806, // 0030 ADD R8 K20 R6 - 0x58240009, // 0031 LDCONST R9 K9 - 0x7C1C0400, // 0032 CALL R7 2 - 0x8C1C0515, // 0033 GETMET R7 R2 K21 - 0x58240011, // 0034 LDCONST R9 K17 - 0x58280012, // 0035 LDCONST R10 K18 - 0x5C2C0A00, // 0036 MOVE R11 R5 - 0x8830010F, // 0037 GETMBR R12 R0 K15 - 0x5C340C00, // 0038 MOVE R13 R6 - 0x7C1C0C00, // 0039 CALL R7 6 - 0xB81A1400, // 003A GETNGBL R6 K10 - 0x8C180D16, // 003B GETMET R6 R6 K22 - 0x7C180200, // 003C CALL R6 1 - 0x8C180D0C, // 003D GETMET R6 R6 K12 - 0x5820000D, // 003E LDCONST R8 K13 - 0x7C180400, // 003F CALL R6 2 - 0x781A001E, // 0040 JMPF R6 #0060 - 0xB81A0E00, // 0041 GETNGBL R6 K7 - 0x601C0018, // 0042 GETGBL R7 G24 - 0x5820000E, // 0043 LDCONST R8 K14 - 0x58240016, // 0044 LDCONST R9 K22 - 0x5C280A00, // 0045 MOVE R10 R5 - 0x882C0117, // 0046 GETMBR R11 R0 K23 - 0x7C1C0800, // 0047 CALL R7 4 - 0x58200009, // 0048 LDCONST R8 K9 - 0x7C180400, // 0049 CALL R6 2 - 0x8C180510, // 004A GETMET R6 R2 K16 - 0x58200011, // 004B LDCONST R8 K17 - 0x58240012, // 004C LDCONST R9 K18 - 0x542A15A3, // 004D LDINT R10 5540 - 0x4C2C0000, // 004E LDNIL R11 - 0x5C300A00, // 004F MOVE R12 R5 - 0x88340117, // 0050 GETMBR R13 R0 K23 - 0x7C180E00, // 0051 CALL R6 7 - 0x8C180905, // 0052 GETMET R6 R4 K5 - 0x7C180200, // 0053 CALL R6 1 - 0x001A2606, // 0054 ADD R6 K19 R6 - 0xB81E0E00, // 0055 GETNGBL R7 K7 - 0x00222806, // 0056 ADD R8 K20 R6 - 0x58240009, // 0057 LDCONST R9 K9 - 0x7C1C0400, // 0058 CALL R7 2 - 0x8C1C0515, // 0059 GETMET R7 R2 K21 - 0x58240011, // 005A LDCONST R9 K17 - 0x58280012, // 005B LDCONST R10 K18 - 0x5C2C0A00, // 005C MOVE R11 R5 - 0x88300117, // 005D GETMBR R12 R0 K23 - 0x5C340C00, // 005E MOVE R13 R6 - 0x7C1C0C00, // 005F CALL R7 6 - 0xA8040001, // 0060 EXBLK 1 1 - 0x7002000F, // 0061 JMP #0072 - 0xAC0C0002, // 0062 CATCH R3 0 2 - 0x7002000C, // 0063 JMP #0071 - 0xB8160E00, // 0064 GETNGBL R5 K7 - 0x60180008, // 0065 GETGBL R6 G8 - 0x5C1C0600, // 0066 MOVE R7 R3 - 0x7C180200, // 0067 CALL R6 1 - 0x001A3006, // 0068 ADD R6 K24 R6 - 0x00180D19, // 0069 ADD R6 R6 K25 - 0x601C0008, // 006A GETGBL R7 G8 - 0x5C200800, // 006B MOVE R8 R4 - 0x7C1C0200, // 006C CALL R7 1 - 0x00180C07, // 006D ADD R6 R6 R7 - 0x581C001A, // 006E LDCONST R7 K26 - 0x7C140400, // 006F CALL R5 2 - 0x70020000, // 0070 JMP #0072 - 0xB0080000, // 0071 RAISE 2 R0 R0 - 0x80000000, // 0072 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: mdns_remove_op_discovery_all_fabrics -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_mdns_remove_op_discovery_all_fabrics, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_nested_str_weak(sessions), - /* K1 */ be_nested_str_weak(active_fabrics), - /* K2 */ be_nested_str_weak(get_device_id), - /* K3 */ be_nested_str_weak(get_fabric_id), - /* K4 */ be_nested_str_weak(mdns_remove_op_discovery), - /* K5 */ be_nested_str_weak(stop_iteration), - }), - be_str_weak(mdns_remove_op_discovery_all_fabrics), - &be_const_str_solidified, - ( &(const binstruction[22]) { /* code */ - 0x60040010, // 0000 GETGBL R1 G16 - 0x88080100, // 0001 GETMBR R2 R0 K0 - 0x8C080501, // 0002 GETMET R2 R2 K1 - 0x7C080200, // 0003 CALL R2 1 - 0x7C040200, // 0004 CALL R1 1 - 0xA802000B, // 0005 EXBLK 0 #0012 - 0x5C080200, // 0006 MOVE R2 R1 - 0x7C080000, // 0007 CALL R2 0 - 0x8C0C0502, // 0008 GETMET R3 R2 K2 - 0x7C0C0200, // 0009 CALL R3 1 - 0x780E0005, // 000A JMPF R3 #0011 - 0x8C0C0503, // 000B GETMET R3 R2 K3 - 0x7C0C0200, // 000C CALL R3 1 - 0x780E0002, // 000D JMPF R3 #0011 - 0x8C0C0104, // 000E GETMET R3 R0 K4 - 0x5C140400, // 000F MOVE R5 R2 - 0x7C0C0400, // 0010 CALL R3 2 - 0x7001FFF3, // 0011 JMP #0006 - 0x58040005, // 0012 LDCONST R1 K5 - 0xAC040200, // 0013 CATCH R1 1 0 - 0xB0080000, // 0014 RAISE 2 R0 R0 - 0x80000000, // 0015 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: save_param -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_save_param, /* name */ - be_nested_proto( - 9, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[31]) { /* constants */ - /* K0 */ be_nested_str_weak(json), - /* K1 */ be_nested_str_weak(update_remotes_info), - /* K2 */ be_nested_str_weak(_X7B_X22distinguish_X22_X3A_X25i_X2C_X22passcode_X22_X3A_X25i_X2C_X22ipv4only_X22_X3A_X25s_X2C_X22disable_bridge_mode_X22_X3A_X25s_X2C_X22nextep_X22_X3A_X25i), - /* K3 */ be_nested_str_weak(root_discriminator), - /* K4 */ be_nested_str_weak(root_passcode), - /* K5 */ be_nested_str_weak(ipv4only), - /* K6 */ be_nested_str_weak(true), - /* K7 */ be_nested_str_weak(false), - /* K8 */ be_nested_str_weak(disable_bridge_mode), - /* K9 */ be_nested_str_weak(next_ep), - /* K10 */ be_nested_str_weak(debug), - /* K11 */ be_nested_str_weak(_X2C_X22debug_X22_X3Atrue), - /* K12 */ be_nested_str_weak(plugins_persist), - /* K13 */ be_nested_str_weak(_X2C_X0A_X22config_X22_X3A), - /* K14 */ be_nested_str_weak(dump), - /* K15 */ be_nested_str_weak(plugins_config), - /* K16 */ be_nested_str_weak(plugins_config_remotes), - /* K17 */ be_const_int(0), - /* K18 */ be_nested_str_weak(_X2C_X0A_X22remotes_X22_X3A), - /* K19 */ be_nested_str_weak(_X7D), - /* K20 */ be_nested_str_weak(FILENAME), - /* K21 */ be_nested_str_weak(w), - /* K22 */ be_nested_str_weak(write), - /* K23 */ be_nested_str_weak(close), - /* K24 */ be_nested_str_weak(log), - /* K25 */ be_nested_str_weak(MTR_X3A_X20_X3DSaved_X20_X20_X20_X20_X20parameters_X25s), - /* K26 */ be_nested_str_weak(_X20and_X20configuration), - /* K27 */ be_nested_str_weak(), - /* K28 */ be_const_int(2), - /* K29 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Asave_X20Exception_X3A), - /* K30 */ be_nested_str_weak(_X7C), - }), - be_str_weak(save_param), - &be_const_str_solidified, - ( &(const binstruction[83]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x8C080101, // 0001 GETMET R2 R0 K1 - 0x7C080200, // 0002 CALL R2 1 - 0x60080018, // 0003 GETGBL R2 G24 - 0x580C0002, // 0004 LDCONST R3 K2 - 0x88100103, // 0005 GETMBR R4 R0 K3 - 0x88140104, // 0006 GETMBR R5 R0 K4 - 0x88180105, // 0007 GETMBR R6 R0 K5 - 0x781A0001, // 0008 JMPF R6 #000B - 0x58180006, // 0009 LDCONST R6 K6 - 0x70020000, // 000A JMP #000C - 0x58180007, // 000B LDCONST R6 K7 - 0x881C0108, // 000C GETMBR R7 R0 K8 - 0x781E0001, // 000D JMPF R7 #0010 - 0x581C0006, // 000E LDCONST R7 K6 - 0x70020000, // 000F JMP #0011 - 0x581C0007, // 0010 LDCONST R7 K7 - 0x88200109, // 0011 GETMBR R8 R0 K9 - 0x7C080C00, // 0012 CALL R2 6 - 0x880C010A, // 0013 GETMBR R3 R0 K10 - 0x780E0000, // 0014 JMPF R3 #0016 - 0x0008050B, // 0015 ADD R2 R2 K11 - 0x880C010C, // 0016 GETMBR R3 R0 K12 - 0x780E000E, // 0017 JMPF R3 #0027 - 0x0008050D, // 0018 ADD R2 R2 K13 - 0x8C0C030E, // 0019 GETMET R3 R1 K14 - 0x8814010F, // 001A GETMBR R5 R0 K15 - 0x7C0C0400, // 001B CALL R3 2 - 0x00080403, // 001C ADD R2 R2 R3 - 0x600C000C, // 001D GETGBL R3 G12 - 0x88100110, // 001E GETMBR R4 R0 K16 - 0x7C0C0200, // 001F CALL R3 1 - 0x240C0711, // 0020 GT R3 R3 K17 - 0x780E0004, // 0021 JMPF R3 #0027 - 0x00080512, // 0022 ADD R2 R2 K18 - 0x8C0C030E, // 0023 GETMET R3 R1 K14 - 0x88140110, // 0024 GETMBR R5 R0 K16 - 0x7C0C0400, // 0025 CALL R3 2 - 0x00080403, // 0026 ADD R2 R2 R3 - 0x00080513, // 0027 ADD R2 R2 K19 - 0xA8020017, // 0028 EXBLK 0 #0041 - 0x600C0011, // 0029 GETGBL R3 G17 - 0x88100114, // 002A GETMBR R4 R0 K20 - 0x58140015, // 002B LDCONST R5 K21 - 0x7C0C0400, // 002C CALL R3 2 - 0x8C100716, // 002D GETMET R4 R3 K22 - 0x5C180400, // 002E MOVE R6 R2 - 0x7C100400, // 002F CALL R4 2 - 0x8C100717, // 0030 GETMET R4 R3 K23 - 0x7C100200, // 0031 CALL R4 1 - 0xB8123000, // 0032 GETNGBL R4 K24 - 0x60140018, // 0033 GETGBL R5 G24 - 0x58180019, // 0034 LDCONST R6 K25 - 0x881C010C, // 0035 GETMBR R7 R0 K12 - 0x781E0001, // 0036 JMPF R7 #0039 - 0x581C001A, // 0037 LDCONST R7 K26 - 0x70020000, // 0038 JMP #003A - 0x581C001B, // 0039 LDCONST R7 K27 - 0x7C140400, // 003A CALL R5 2 - 0x5818001C, // 003B LDCONST R6 K28 - 0x7C100400, // 003C CALL R4 2 - 0xA8040001, // 003D EXBLK 1 1 - 0x80040400, // 003E RET 1 R2 - 0xA8040001, // 003F EXBLK 1 1 - 0x70020010, // 0040 JMP #0052 - 0xAC0C0002, // 0041 CATCH R3 0 2 - 0x7002000D, // 0042 JMP #0051 - 0xB8163000, // 0043 GETNGBL R5 K24 - 0x60180008, // 0044 GETGBL R6 G8 - 0x5C1C0600, // 0045 MOVE R7 R3 - 0x7C180200, // 0046 CALL R6 1 - 0x001A3A06, // 0047 ADD R6 K29 R6 - 0x00180D1E, // 0048 ADD R6 R6 K30 - 0x601C0008, // 0049 GETGBL R7 G8 - 0x5C200800, // 004A MOVE R8 R4 - 0x7C1C0200, // 004B CALL R7 1 - 0x00180C07, // 004C ADD R6 R6 R7 - 0x581C001C, // 004D LDCONST R7 K28 - 0x7C140400, // 004E CALL R5 2 - 0x80040400, // 004F RET 1 R2 - 0x70020000, // 0050 JMP #0052 - 0xB0080000, // 0051 RAISE 2 R0 R0 - 0x80000000, // 0052 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: start_operational_discovery_deferred -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_start_operational_discovery_deferred, /* name */ +be_local_closure(class_Matter_Device_get_plugin_remote_info, /* name */ be_nested_proto( 6, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 2]) { - be_nested_proto( - 3, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 2]) { /* upvals */ - be_local_const_upval(1, 0), - be_local_const_upval(1, 1), - }), - 0, /* has sup protos */ - NULL, - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(start_operational_discovery), - }), - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x68080001, // 0002 GETUPV R2 U1 - 0x7C000400, // 0003 CALL R0 2 - 0x80040000, // 0004 RET 1 R0 - }) - ), - &be_class_Matter_Device, - }), - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(set_timer), - /* K2 */ be_const_int(0), - }), - be_str_weak(start_operational_discovery_deferred), - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0xB80A0000, // 0000 GETNGBL R2 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x58100002, // 0002 LDCONST R4 K2 - 0x84140000, // 0003 CLOSURE R5 P0 - 0x7C080600, // 0004 CALL R2 3 - 0xA0000000, // 0005 CLOSE R0 - 0x80000000, // 0006 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: _init_basic_commissioning -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device__init_basic_commissioning, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(sessions), - /* K1 */ be_nested_str_weak(count_active_fabrics), - /* K2 */ be_const_int(0), - /* K3 */ be_nested_str_weak(start_root_basic_commissioning), - }), - be_str_weak(_init_basic_commissioning), - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x1C040302, // 0003 EQ R1 R1 K2 - 0x78060001, // 0004 JMPF R1 #0007 - 0x8C040103, // 0005 GETMET R1 R0 K3 - 0x7C040200, // 0006 CALL R1 1 - 0x80000000, // 0007 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: msg_received -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_msg_received, /* name */ - be_nested_proto( - 9, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(message_handler), - /* K1 */ be_nested_str_weak(msg_received), - }), - be_str_weak(msg_received), - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x88100100, // 0000 GETMBR R4 R0 K0 - 0x8C100901, // 0001 GETMET R4 R4 K1 - 0x5C180200, // 0002 MOVE R6 R1 - 0x5C1C0400, // 0003 MOVE R7 R2 - 0x5C200600, // 0004 MOVE R8 R3 - 0x7C100800, // 0005 CALL R4 4 - 0x80040800, // 0006 RET 1 R4 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: autoconf_sensors_list -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_autoconf_sensors_list, /* name */ - be_nested_proto( - 10, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[18]) { /* constants */ - /* K0 */ be_nested_str_weak(k2l), - /* K1 */ be_nested_str_weak(contains), - /* K2 */ be_nested_str_weak(Temperature), - /* K3 */ be_nested_str_weak(_X23Temperature), - /* K4 */ be_nested_str_weak(push), - /* K5 */ be_nested_str_weak(type), - /* K6 */ be_nested_str_weak(temperature), - /* K7 */ be_nested_str_weak(filter), - /* K8 */ be_nested_str_weak(stop_iteration), - /* K9 */ be_nested_str_weak(Pressure), - /* K10 */ be_nested_str_weak(_X23Pressure), - /* K11 */ be_nested_str_weak(pressure), - /* K12 */ be_nested_str_weak(Illuminance), - /* K13 */ be_nested_str_weak(_X23Illuminance), - /* K14 */ be_nested_str_weak(illuminance), - /* K15 */ be_nested_str_weak(Humidity), - /* K16 */ be_nested_str_weak(_X23Humidity), - /* K17 */ be_nested_str_weak(humidity), - }), - be_str_weak(autoconf_sensors_list), - &be_const_str_solidified, - ( &(const binstruction[119]) { /* code */ - 0x60080012, // 0000 GETGBL R2 G18 - 0x7C080000, // 0001 CALL R2 0 - 0x600C0010, // 0002 GETGBL R3 G16 - 0x8C100100, // 0003 GETMET R4 R0 K0 - 0x5C180200, // 0004 MOVE R6 R1 - 0x7C100400, // 0005 CALL R4 2 - 0x7C0C0200, // 0006 CALL R3 1 - 0xA8020013, // 0007 EXBLK 0 #001C - 0x5C100600, // 0008 MOVE R4 R3 - 0x7C100000, // 0009 CALL R4 0 - 0x94140204, // 000A GETIDX R5 R1 R4 - 0x6018000F, // 000B GETGBL R6 G15 - 0x5C1C0A00, // 000C MOVE R7 R5 - 0x60200013, // 000D GETGBL R8 G19 - 0x7C180400, // 000E CALL R6 2 - 0x781A000A, // 000F JMPF R6 #001B - 0x8C180B01, // 0010 GETMET R6 R5 K1 - 0x58200002, // 0011 LDCONST R8 K2 - 0x7C180400, // 0012 CALL R6 2 - 0x781A0006, // 0013 JMPF R6 #001B - 0x00180903, // 0014 ADD R6 R4 K3 - 0x8C1C0504, // 0015 GETMET R7 R2 K4 - 0x60240013, // 0016 GETGBL R9 G19 - 0x7C240000, // 0017 CALL R9 0 - 0x98260B06, // 0018 SETIDX R9 K5 K6 - 0x98260E06, // 0019 SETIDX R9 K7 R6 - 0x7C1C0400, // 001A CALL R7 2 - 0x7001FFEB, // 001B JMP #0008 - 0x580C0008, // 001C LDCONST R3 K8 - 0xAC0C0200, // 001D CATCH R3 1 0 - 0xB0080000, // 001E RAISE 2 R0 R0 - 0x600C0010, // 001F GETGBL R3 G16 - 0x8C100100, // 0020 GETMET R4 R0 K0 - 0x5C180200, // 0021 MOVE R6 R1 - 0x7C100400, // 0022 CALL R4 2 - 0x7C0C0200, // 0023 CALL R3 1 - 0xA8020013, // 0024 EXBLK 0 #0039 - 0x5C100600, // 0025 MOVE R4 R3 - 0x7C100000, // 0026 CALL R4 0 - 0x94140204, // 0027 GETIDX R5 R1 R4 - 0x6018000F, // 0028 GETGBL R6 G15 - 0x5C1C0A00, // 0029 MOVE R7 R5 - 0x60200013, // 002A GETGBL R8 G19 - 0x7C180400, // 002B CALL R6 2 - 0x781A000A, // 002C JMPF R6 #0038 - 0x8C180B01, // 002D GETMET R6 R5 K1 - 0x58200009, // 002E LDCONST R8 K9 - 0x7C180400, // 002F CALL R6 2 - 0x781A0006, // 0030 JMPF R6 #0038 - 0x0018090A, // 0031 ADD R6 R4 K10 - 0x8C1C0504, // 0032 GETMET R7 R2 K4 - 0x60240013, // 0033 GETGBL R9 G19 - 0x7C240000, // 0034 CALL R9 0 - 0x98260B0B, // 0035 SETIDX R9 K5 K11 - 0x98260E06, // 0036 SETIDX R9 K7 R6 - 0x7C1C0400, // 0037 CALL R7 2 - 0x7001FFEB, // 0038 JMP #0025 - 0x580C0008, // 0039 LDCONST R3 K8 - 0xAC0C0200, // 003A CATCH R3 1 0 - 0xB0080000, // 003B RAISE 2 R0 R0 - 0x600C0010, // 003C GETGBL R3 G16 - 0x8C100100, // 003D GETMET R4 R0 K0 - 0x5C180200, // 003E MOVE R6 R1 - 0x7C100400, // 003F CALL R4 2 - 0x7C0C0200, // 0040 CALL R3 1 - 0xA8020013, // 0041 EXBLK 0 #0056 - 0x5C100600, // 0042 MOVE R4 R3 - 0x7C100000, // 0043 CALL R4 0 - 0x94140204, // 0044 GETIDX R5 R1 R4 - 0x6018000F, // 0045 GETGBL R6 G15 - 0x5C1C0A00, // 0046 MOVE R7 R5 - 0x60200013, // 0047 GETGBL R8 G19 - 0x7C180400, // 0048 CALL R6 2 - 0x781A000A, // 0049 JMPF R6 #0055 - 0x8C180B01, // 004A GETMET R6 R5 K1 - 0x5820000C, // 004B LDCONST R8 K12 - 0x7C180400, // 004C CALL R6 2 - 0x781A0006, // 004D JMPF R6 #0055 - 0x0018090D, // 004E ADD R6 R4 K13 - 0x8C1C0504, // 004F GETMET R7 R2 K4 - 0x60240013, // 0050 GETGBL R9 G19 - 0x7C240000, // 0051 CALL R9 0 - 0x98260B0E, // 0052 SETIDX R9 K5 K14 - 0x98260E06, // 0053 SETIDX R9 K7 R6 - 0x7C1C0400, // 0054 CALL R7 2 - 0x7001FFEB, // 0055 JMP #0042 - 0x580C0008, // 0056 LDCONST R3 K8 - 0xAC0C0200, // 0057 CATCH R3 1 0 - 0xB0080000, // 0058 RAISE 2 R0 R0 - 0x600C0010, // 0059 GETGBL R3 G16 - 0x8C100100, // 005A GETMET R4 R0 K0 - 0x5C180200, // 005B MOVE R6 R1 - 0x7C100400, // 005C CALL R4 2 - 0x7C0C0200, // 005D CALL R3 1 - 0xA8020013, // 005E EXBLK 0 #0073 - 0x5C100600, // 005F MOVE R4 R3 - 0x7C100000, // 0060 CALL R4 0 - 0x94140204, // 0061 GETIDX R5 R1 R4 - 0x6018000F, // 0062 GETGBL R6 G15 - 0x5C1C0A00, // 0063 MOVE R7 R5 - 0x60200013, // 0064 GETGBL R8 G19 - 0x7C180400, // 0065 CALL R6 2 - 0x781A000A, // 0066 JMPF R6 #0072 - 0x8C180B01, // 0067 GETMET R6 R5 K1 - 0x5820000F, // 0068 LDCONST R8 K15 - 0x7C180400, // 0069 CALL R6 2 - 0x781A0006, // 006A JMPF R6 #0072 - 0x00180910, // 006B ADD R6 R4 K16 - 0x8C1C0504, // 006C GETMET R7 R2 K4 - 0x60240013, // 006D GETGBL R9 G19 - 0x7C240000, // 006E CALL R9 0 - 0x98260B11, // 006F SETIDX R9 K5 K17 - 0x98260E06, // 0070 SETIDX R9 K7 R6 - 0x7C1C0400, // 0071 CALL R7 2 - 0x7001FFEB, // 0072 JMP #005F - 0x580C0008, // 0073 LDCONST R3 K8 - 0xAC0C0200, // 0074 CATCH R3 1 0 - 0xB0080000, // 0075 RAISE 2 R0 R0 - 0x80040400, // 0076 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: MtrInfo -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_MtrInfo, /* name */ - be_nested_proto( - 10, /* nstack */ - 5, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 9]) { /* constants */ - /* K0 */ be_nested_str_weak(), - /* K1 */ be_nested_str_weak(plugins), - /* K2 */ be_nested_str_weak(MtrInfo_one), - /* K3 */ be_nested_str_weak(endpoint), - /* K4 */ be_nested_str_weak(stop_iteration), - /* K5 */ be_nested_str_weak(int), - /* K6 */ be_nested_str_weak(find_plugin_by_friendly_name), - /* K7 */ be_nested_str_weak(tasmota), - /* K8 */ be_nested_str_weak(resp_cmnd_done), - }), - be_str_weak(MtrInfo), - &be_const_str_solidified, - ( &(const binstruction[40]) { /* code */ - 0x1C140700, // 0000 EQ R5 R3 K0 - 0x7815FFFF, // 0001 JMPF R5 #0002 - 0x1C140700, // 0002 EQ R5 R3 K0 - 0x7816000D, // 0003 JMPF R5 #0012 - 0x60140010, // 0004 GETGBL R5 G16 - 0x88180101, // 0005 GETMBR R6 R0 K1 - 0x7C140200, // 0006 CALL R5 1 - 0xA8020005, // 0007 EXBLK 0 #000E - 0x5C180A00, // 0008 MOVE R6 R5 - 0x7C180000, // 0009 CALL R6 0 - 0x8C1C0102, // 000A GETMET R7 R0 K2 - 0x88240D03, // 000B GETMBR R9 R6 K3 - 0x7C1C0400, // 000C CALL R7 2 - 0x7001FFF9, // 000D JMP #0008 - 0x58140004, // 000E LDCONST R5 K4 - 0xAC140200, // 000F CATCH R5 1 0 - 0xB0080000, // 0010 RAISE 2 R0 R0 - 0x70020011, // 0011 JMP #0024 - 0x60140004, // 0012 GETGBL R5 G4 - 0x5C180800, // 0013 MOVE R6 R4 - 0x7C140200, // 0014 CALL R5 1 - 0x1C140B05, // 0015 EQ R5 R5 K5 - 0x78160003, // 0016 JMPF R5 #001B - 0x8C140102, // 0017 GETMET R5 R0 K2 - 0x5C1C0800, // 0018 MOVE R7 R4 - 0x7C140400, // 0019 CALL R5 2 - 0x70020008, // 001A JMP #0024 - 0x8C140106, // 001B GETMET R5 R0 K6 - 0x5C1C0600, // 001C MOVE R7 R3 - 0x7C140400, // 001D CALL R5 2 - 0x4C180000, // 001E LDNIL R6 - 0x20180A06, // 001F NE R6 R5 R6 - 0x781A0002, // 0020 JMPF R6 #0024 - 0x8C180102, // 0021 GETMET R6 R0 K2 - 0x88200B03, // 0022 GETMBR R8 R5 K3 - 0x7C180400, // 0023 CALL R6 2 - 0xB8160E00, // 0024 GETNGBL R5 K7 - 0x8C140B08, // 0025 GETMET R5 R5 K8 - 0x7C140200, // 0026 CALL R5 1 - 0x80000000, // 0027 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: compute_manual_pairing_code -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_compute_manual_pairing_code, /* name */ - be_nested_proto( - 9, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_nested_str_weak(root_discriminator), - /* K1 */ be_nested_str_weak(root_passcode), - /* K2 */ be_nested_str_weak(_X251i_X2505i_X2504i), - /* K3 */ be_nested_str_weak(matter), - /* K4 */ be_nested_str_weak(Verhoeff), - /* K5 */ be_nested_str_weak(checksum), - }), - be_str_weak(compute_manual_pairing_code), - &be_const_str_solidified, - ( &(const binstruction[30]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x540A0FFE, // 0001 LDINT R2 4095 - 0x2C040202, // 0002 AND R1 R1 R2 - 0x540A0009, // 0003 LDINT R2 10 - 0x3C040202, // 0004 SHR R1 R1 R2 - 0x88080100, // 0005 GETMBR R2 R0 K0 - 0x540E02FF, // 0006 LDINT R3 768 - 0x2C080403, // 0007 AND R2 R2 R3 - 0x540E0005, // 0008 LDINT R3 6 - 0x38080403, // 0009 SHL R2 R2 R3 - 0x880C0101, // 000A GETMBR R3 R0 K1 - 0x54123FFE, // 000B LDINT R4 16383 - 0x2C0C0604, // 000C AND R3 R3 R4 - 0x30080403, // 000D OR R2 R2 R3 - 0x880C0101, // 000E GETMBR R3 R0 K1 - 0x5412000D, // 000F LDINT R4 14 - 0x3C0C0604, // 0010 SHR R3 R3 R4 - 0x60100018, // 0011 GETGBL R4 G24 - 0x58140002, // 0012 LDCONST R5 K2 - 0x5C180200, // 0013 MOVE R6 R1 - 0x5C1C0400, // 0014 MOVE R7 R2 - 0x5C200600, // 0015 MOVE R8 R3 - 0x7C100800, // 0016 CALL R4 4 - 0xB8160600, // 0017 GETNGBL R5 K3 - 0x88140B04, // 0018 GETMBR R5 R5 K4 - 0x8C140B05, // 0019 GETMET R5 R5 K5 - 0x5C1C0800, // 001A MOVE R7 R4 - 0x7C140400, // 001B CALL R5 2 - 0x00100805, // 001C ADD R4 R4 R5 - 0x80040800, // 001D RET 1 R4 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: signal_endpoints_changed -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_signal_endpoints_changed, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(attribute_updated), - /* K1 */ be_const_int(0), - /* K2 */ be_const_int(3), - /* K3 */ be_nested_str_weak(matter), - /* K4 */ be_nested_str_weak(AGGREGATOR_ENDPOINT), - }), - be_str_weak(signal_endpoints_changed), - &be_const_str_solidified, - ( &(const binstruction[14]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x580C0001, // 0001 LDCONST R3 K1 - 0x5412001C, // 0002 LDINT R4 29 - 0x58140002, // 0003 LDCONST R5 K2 - 0x50180000, // 0004 LDBOOL R6 0 0 - 0x7C040A00, // 0005 CALL R1 5 - 0x8C040100, // 0006 GETMET R1 R0 K0 - 0xB80E0600, // 0007 GETNGBL R3 K3 - 0x880C0704, // 0008 GETMBR R3 R3 K4 - 0x5412001C, // 0009 LDINT R4 29 - 0x58140002, // 000A LDCONST R5 K2 - 0x50180000, // 000B LDBOOL R6 0 0 - 0x7C040A00, // 000C CALL R1 5 - 0x80000000, // 000D RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: MtrJoin -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_MtrJoin, /* name */ - be_nested_proto( - 8, /* nstack */ - 5, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(start_root_basic_commissioning), - /* K1 */ be_nested_str_weak(stop_basic_commissioning), - /* K2 */ be_nested_str_weak(tasmota), - /* K3 */ be_nested_str_weak(resp_cmnd_done), - }), - be_str_weak(MtrJoin), - &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0x60140009, // 0000 GETGBL R5 G9 - 0x5C180600, // 0001 MOVE R6 R3 - 0x7C140200, // 0002 CALL R5 1 - 0x78160002, // 0003 JMPF R5 #0007 - 0x8C180100, // 0004 GETMET R6 R0 K0 - 0x7C180200, // 0005 CALL R6 1 - 0x70020001, // 0006 JMP #0009 - 0x8C180101, // 0007 GETMET R6 R0 K1 - 0x7C180200, // 0008 CALL R6 1 - 0xB81A0400, // 0009 GETNGBL R6 K2 - 0x8C180D03, // 000A GETMET R6 R6 K3 - 0x7C180200, // 000B CALL R6 1 - 0x80000000, // 000C RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: bridge_add_endpoint -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_bridge_add_endpoint, /* name */ - be_nested_proto( - 16, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[20]) { /* constants */ - /* K0 */ be_nested_str_weak(plugins_classes), + /* K0 */ be_nested_str_weak(plugins_config_remotes), /* K1 */ be_nested_str_weak(find), - /* K2 */ be_nested_str_weak(log), - /* K3 */ be_nested_str_weak(MTR_X3A_X20unknown_X20class_X20name_X20_X27), - /* K4 */ be_nested_str_weak(_X27_X20skipping), - /* K5 */ be_const_int(3), - /* K6 */ be_nested_str_weak(next_ep), - /* K7 */ be_nested_str_weak(plugins), - /* K8 */ be_nested_str_weak(push), - /* K9 */ be_nested_str_weak(type), - /* K10 */ be_nested_str_weak(keys), - /* K11 */ be_nested_str_weak(stop_iteration), - /* K12 */ be_nested_str_weak(MTR_X3A_X20adding_X20endpoint_X20_X3D_X20_X25i_X20type_X3A_X25s_X25s), - /* K13 */ be_nested_str_weak(conf_to_log), - /* K14 */ be_const_int(2), - /* K15 */ be_nested_str_weak(plugins_config), - /* K16 */ be_nested_str_weak(plugins_persist), - /* K17 */ be_const_int(1), - /* K18 */ be_nested_str_weak(save_param), - /* K19 */ be_nested_str_weak(signal_endpoints_changed), }), - be_str_weak(bridge_add_endpoint), + be_str_weak(get_plugin_remote_info), &be_const_str_solidified, - ( &(const binstruction[68]) { /* code */ - 0x880C0100, // 0000 GETMBR R3 R0 K0 - 0x8C0C0701, // 0001 GETMET R3 R3 K1 - 0x5C140200, // 0002 MOVE R5 R1 - 0x7C0C0400, // 0003 CALL R3 2 - 0x4C100000, // 0004 LDNIL R4 - 0x1C100604, // 0005 EQ R4 R3 R4 - 0x78120008, // 0006 JMPF R4 #0010 - 0xB8120400, // 0007 GETNGBL R4 K2 - 0x60140008, // 0008 GETGBL R5 G8 - 0x5C180200, // 0009 MOVE R6 R1 - 0x7C140200, // 000A CALL R5 1 - 0x00160605, // 000B ADD R5 K3 R5 - 0x00140B04, // 000C ADD R5 R5 K4 - 0x58180005, // 000D LDCONST R6 K5 - 0x7C100400, // 000E CALL R4 2 - 0x80000800, // 000F RET 0 - 0x88100106, // 0010 GETMBR R4 R0 K6 - 0x60140008, // 0011 GETGBL R5 G8 - 0x5C180800, // 0012 MOVE R6 R4 - 0x7C140200, // 0013 CALL R5 1 - 0x5C180600, // 0014 MOVE R6 R3 - 0x5C1C0000, // 0015 MOVE R7 R0 - 0x5C200800, // 0016 MOVE R8 R4 - 0x5C240400, // 0017 MOVE R9 R2 - 0x7C180600, // 0018 CALL R6 3 - 0x881C0107, // 0019 GETMBR R7 R0 K7 - 0x8C1C0F08, // 001A GETMET R7 R7 K8 - 0x5C240C00, // 001B MOVE R9 R6 - 0x7C1C0400, // 001C CALL R7 2 - 0x601C0013, // 001D GETGBL R7 G19 - 0x7C1C0000, // 001E CALL R7 0 - 0x981E1201, // 001F SETIDX R7 K9 R1 - 0x60200010, // 0020 GETGBL R8 G16 - 0x8C24050A, // 0021 GETMET R9 R2 K10 - 0x7C240200, // 0022 CALL R9 1 - 0x7C200200, // 0023 CALL R8 1 - 0xA8020004, // 0024 EXBLK 0 #002A - 0x5C241000, // 0025 MOVE R9 R8 - 0x7C240000, // 0026 CALL R9 0 - 0x94280409, // 0027 GETIDX R10 R2 R9 - 0x981C120A, // 0028 SETIDX R7 R9 R10 - 0x7001FFFA, // 0029 JMP #0025 - 0x5820000B, // 002A LDCONST R8 K11 - 0xAC200200, // 002B CATCH R8 1 0 - 0xB0080000, // 002C RAISE 2 R0 R0 - 0xB8220400, // 002D GETNGBL R8 K2 - 0x60240018, // 002E GETGBL R9 G24 - 0x5828000C, // 002F LDCONST R10 K12 - 0x5C2C0800, // 0030 MOVE R11 R4 - 0x5C300200, // 0031 MOVE R12 R1 - 0x8C34010D, // 0032 GETMET R13 R0 K13 - 0x5C3C0400, // 0033 MOVE R15 R2 - 0x7C340400, // 0034 CALL R13 2 - 0x7C240800, // 0035 CALL R9 4 - 0x5828000E, // 0036 LDCONST R10 K14 - 0x7C200400, // 0037 CALL R8 2 - 0x8820010F, // 0038 GETMBR R8 R0 K15 - 0x98200A07, // 0039 SETIDX R8 R5 R7 - 0x50200200, // 003A LDBOOL R8 1 0 - 0x90022008, // 003B SETMBR R0 K16 R8 - 0x88200106, // 003C GETMBR R8 R0 K6 - 0x00201111, // 003D ADD R8 R8 K17 - 0x90020C08, // 003E SETMBR R0 K6 R8 - 0x8C200112, // 003F GETMET R8 R0 K18 - 0x7C200200, // 0040 CALL R8 1 - 0x8C200113, // 0041 GETMET R8 R0 K19 - 0x7C200200, // 0042 CALL R8 1 - 0x80040800, // 0043 RET 1 R4 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: every_second -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_every_second, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 7]) { /* constants */ - /* K0 */ be_nested_str_weak(sessions), - /* K1 */ be_nested_str_weak(every_second), - /* K2 */ be_nested_str_weak(message_handler), - /* K3 */ be_nested_str_weak(events), - /* K4 */ be_nested_str_weak(commissioning_open), - /* K5 */ be_nested_str_weak(tasmota), - /* K6 */ be_nested_str_weak(time_reached), - }), - be_str_weak(every_second), - &be_const_str_solidified, - ( &(const binstruction[21]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x88040102, // 0003 GETMBR R1 R0 K2 - 0x8C040301, // 0004 GETMET R1 R1 K1 - 0x7C040200, // 0005 CALL R1 1 - 0x88040103, // 0006 GETMBR R1 R0 K3 - 0x8C040301, // 0007 GETMET R1 R1 K1 - 0x7C040200, // 0008 CALL R1 1 - 0x88040104, // 0009 GETMBR R1 R0 K4 - 0x4C080000, // 000A LDNIL R2 - 0x20040202, // 000B NE R1 R1 R2 - 0x78060006, // 000C JMPF R1 #0014 - 0xB8060A00, // 000D GETNGBL R1 K5 - 0x8C040306, // 000E GETMET R1 R1 K6 - 0x880C0104, // 000F GETMBR R3 R0 K4 - 0x7C040400, // 0010 CALL R1 2 - 0x78060001, // 0011 JMPF R1 #0014 - 0x4C040000, // 0012 LDNIL R1 - 0x90020801, // 0013 SETMBR R0 K4 R1 - 0x80000000, // 0014 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: received_ack -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_received_ack, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(udp_server), - /* K1 */ be_nested_str_weak(received_ack), - }), - be_str_weak(received_ack), - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ + ( &(const binstruction[ 7]) { /* code */ 0x88080100, // 0000 GETMBR R2 R0 K0 0x8C080501, // 0001 GETMET R2 R2 K1 0x5C100200, // 0002 MOVE R4 R1 - 0x7C080400, // 0003 CALL R2 2 - 0x80040400, // 0004 RET 1 R2 + 0x60140013, // 0003 GETGBL R5 G19 + 0x7C140000, // 0004 CALL R5 0 + 0x7C080600, // 0005 CALL R2 3 + 0x80040400, // 0006 RET 1 R2 }) ) ); @@ -5288,51 +5862,13 @@ be_local_closure(class_Matter_Device_clean_remotes, /* name */ /******************************************************************** -** Solidified function: get_plugin_class_displayname +** Solidified function: msg_received ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_get_plugin_class_displayname, /* name */ +be_local_closure(class_Matter_Device_msg_received, /* name */ be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(plugins_classes), - /* K1 */ be_nested_str_weak(find), - /* K2 */ be_nested_str_weak(DISPLAY_NAME), - /* K3 */ be_nested_str_weak(), - }), - be_str_weak(get_plugin_class_displayname), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x5C100200, // 0002 MOVE R4 R1 - 0x7C080400, // 0003 CALL R2 2 - 0x780A0001, // 0004 JMPF R2 #0007 - 0x880C0502, // 0005 GETMBR R3 R2 K2 - 0x70020000, // 0006 JMP #0008 - 0x580C0003, // 0007 LDCONST R3 K3 - 0x80040600, // 0008 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: is_root_commissioning_open -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_is_root_commissioning_open, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ + 9, /* nstack */ + 4, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ @@ -5340,57 +5876,19 @@ be_local_closure(class_Matter_Device_is_root_commissioning_open, /* name */ &be_class_Matter_Device, 1, /* has constants */ ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(commissioning_open), - /* K1 */ be_nested_str_weak(commissioning_admin_fabric), + /* K0 */ be_nested_str_weak(message_handler), + /* K1 */ be_nested_str_weak(msg_received), }), - be_str_weak(is_root_commissioning_open), - &be_const_str_solidified, - ( &(const binstruction[11]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x4C080000, // 0001 LDNIL R2 - 0x20040202, // 0002 NE R1 R1 R2 - 0x78060003, // 0003 JMPF R1 #0008 - 0x88040101, // 0004 GETMBR R1 R0 K1 - 0x4C080000, // 0005 LDNIL R2 - 0x1C040202, // 0006 EQ R1 R1 R2 - 0x74060000, // 0007 JMPT R1 #0009 - 0x50040001, // 0008 LDBOOL R1 0 1 - 0x50040200, // 0009 LDBOOL R1 1 0 - 0x80040200, // 000A RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_plugin_remote_info -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_get_plugin_remote_info, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(plugins_config_remotes), - /* K1 */ be_nested_str_weak(find), - }), - be_str_weak(get_plugin_remote_info), + be_str_weak(msg_received), &be_const_str_solidified, ( &(const binstruction[ 7]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x5C100200, // 0002 MOVE R4 R1 - 0x60140013, // 0003 GETGBL R5 G19 - 0x7C140000, // 0004 CALL R5 0 - 0x7C080600, // 0005 CALL R2 3 - 0x80040400, // 0006 RET 1 R2 + 0x88100100, // 0000 GETMBR R4 R0 K0 + 0x8C100901, // 0001 GETMET R4 R4 K1 + 0x5C180200, // 0002 MOVE R6 R1 + 0x5C1C0400, // 0003 MOVE R7 R2 + 0x5C200600, // 0004 MOVE R8 R3 + 0x7C100800, // 0005 CALL R4 4 + 0x80040800, // 0006 RET 1 R4 }) ) ); @@ -5398,653 +5896,93 @@ be_local_closure(class_Matter_Device_get_plugin_remote_info, /* name */ /******************************************************************** -** Solidified function: _start_udp +** Solidified function: MtrInfo_one ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device__start_udp, /* name */ +be_local_closure(class_Matter_Device_MtrInfo_one, /* name */ be_nested_proto( - 7, /* nstack */ + 9, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 2]) { - be_nested_proto( - 8, /* nstack */ - 3, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(msg_received), - }), - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x680C0000, // 0000 GETUPV R3 U0 - 0x8C0C0700, // 0001 GETMET R3 R3 K0 - 0x5C140000, // 0002 MOVE R5 R0 - 0x5C180200, // 0003 MOVE R6 R1 - 0x5C1C0400, // 0004 MOVE R7 R2 - 0x7C0C0800, // 0005 CALL R3 4 - 0x80040600, // 0006 RET 1 R3 - }) - ), - &be_class_Matter_Device, - }), - 1, /* has constants */ - ( &(const bvalue[ 8]) { /* constants */ - /* K0 */ be_nested_str_weak(udp_server), - /* K1 */ be_nested_str_weak(log), - /* K2 */ be_nested_str_weak(MTR_X3A_X20Starting_X20UDP_X20server_X20on_X20port_X3A_X20), - /* K3 */ be_const_int(2), - /* K4 */ be_nested_str_weak(matter), - /* K5 */ be_nested_str_weak(UDPServer), - /* K6 */ be_nested_str_weak(), - /* K7 */ be_nested_str_weak(start), - }), - be_str_weak(_start_udp), - &be_const_str_solidified, - ( &(const binstruction[27]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x780A0000, // 0001 JMPF R2 #0003 - 0x80000400, // 0002 RET 0 - 0x4C080000, // 0003 LDNIL R2 - 0x1C080202, // 0004 EQ R2 R1 R2 - 0x780A0000, // 0005 JMPF R2 #0007 - 0x540615A3, // 0006 LDINT R1 5540 - 0xB80A0200, // 0007 GETNGBL R2 K1 - 0x600C0008, // 0008 GETGBL R3 G8 - 0x5C100200, // 0009 MOVE R4 R1 - 0x7C0C0200, // 000A CALL R3 1 - 0x000E0403, // 000B ADD R3 K2 R3 - 0x58100003, // 000C LDCONST R4 K3 - 0x7C080400, // 000D CALL R2 2 - 0xB80A0800, // 000E GETNGBL R2 K4 - 0x8C080505, // 000F GETMET R2 R2 K5 - 0x5C100000, // 0010 MOVE R4 R0 - 0x58140006, // 0011 LDCONST R5 K6 - 0x5C180200, // 0012 MOVE R6 R1 - 0x7C080800, // 0013 CALL R2 4 - 0x90020002, // 0014 SETMBR R0 K0 R2 - 0x88080100, // 0015 GETMBR R2 R0 K0 - 0x8C080507, // 0016 GETMET R2 R2 K7 - 0x84100000, // 0017 CLOSURE R4 P0 - 0x7C080400, // 0018 CALL R2 2 - 0xA0000000, // 0019 CLOSE R0 - 0x80000000, // 001A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: register_commands -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_register_commands, /* name */ - be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 4]) { - be_nested_proto( - 10, /* nstack */ - 4, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(MtrJoin), - }), - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x68100000, // 0000 GETUPV R4 U0 - 0x8C100900, // 0001 GETMET R4 R4 K0 - 0x5C180000, // 0002 MOVE R6 R0 - 0x5C1C0200, // 0003 MOVE R7 R1 - 0x5C200400, // 0004 MOVE R8 R2 - 0x5C240600, // 0005 MOVE R9 R3 - 0x7C100A00, // 0006 CALL R4 5 - 0x80040800, // 0007 RET 1 R4 - }) - ), - be_nested_proto( - 10, /* nstack */ - 4, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(MtrUpdate), - }), - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x68100000, // 0000 GETUPV R4 U0 - 0x8C100900, // 0001 GETMET R4 R4 K0 - 0x5C180000, // 0002 MOVE R6 R0 - 0x5C1C0200, // 0003 MOVE R7 R1 - 0x5C200400, // 0004 MOVE R8 R2 - 0x5C240600, // 0005 MOVE R9 R3 - 0x7C100A00, // 0006 CALL R4 5 - 0x80040800, // 0007 RET 1 R4 - }) - ), - be_nested_proto( - 10, /* nstack */ - 4, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(MtrInfo), - }), - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x68100000, // 0000 GETUPV R4 U0 - 0x8C100900, // 0001 GETMET R4 R4 K0 - 0x5C180000, // 0002 MOVE R6 R0 - 0x5C1C0200, // 0003 MOVE R7 R1 - 0x5C200400, // 0004 MOVE R8 R2 - 0x5C240600, // 0005 MOVE R9 R3 - 0x7C100A00, // 0006 CALL R4 5 - 0x80040800, // 0007 RET 1 R4 - }) - ), - &be_class_Matter_Device, - }), - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(add_cmd), - /* K2 */ be_nested_str_weak(MtrJoin), - /* K3 */ be_nested_str_weak(MtrUpdate), - /* K4 */ be_nested_str_weak(MtrInfo), - }), - be_str_weak(register_commands), - &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ - 0xB8060000, // 0000 GETNGBL R1 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x580C0002, // 0002 LDCONST R3 K2 - 0x84100000, // 0003 CLOSURE R4 P0 - 0x7C040600, // 0004 CALL R1 3 - 0xB8060000, // 0005 GETNGBL R1 K0 - 0x8C040301, // 0006 GETMET R1 R1 K1 - 0x580C0003, // 0007 LDCONST R3 K3 - 0x84100001, // 0008 CLOSURE R4 P1 - 0x7C040600, // 0009 CALL R1 3 - 0xB8060000, // 000A GETNGBL R1 K0 - 0x8C040301, // 000B GETMET R1 R1 K1 - 0x580C0004, // 000C LDCONST R3 K4 - 0x84100002, // 000D CLOSURE R4 P2 - 0x7C040600, // 000E CALL R1 3 - 0xA0000000, // 000F CLOSE R0 - 0x80000000, // 0010 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: start_mdns_announce_hostnames -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_start_mdns_announce_hostnames, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 3]) { - be_nested_proto( - 4, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(_mdns_announce_hostname), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(remove_rule), - /* K3 */ be_nested_str_weak(Wifi_X23Connected), - /* K4 */ be_nested_str_weak(matter_mdns_host), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x50080000, // 0002 LDBOOL R2 0 0 - 0x7C000400, // 0003 CALL R0 2 - 0xB8020200, // 0004 GETNGBL R0 K1 - 0x8C000102, // 0005 GETMET R0 R0 K2 - 0x58080003, // 0006 LDCONST R2 K3 - 0x580C0004, // 0007 LDCONST R3 K4 - 0x7C000600, // 0008 CALL R0 3 - 0x80000000, // 0009 RET 0 - }) - ), - be_nested_proto( - 4, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(_mdns_announce_hostname), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(remove_rule), - /* K3 */ be_nested_str_weak(Eth_X23Connected), - /* K4 */ be_nested_str_weak(matter_mdns_host), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x50080200, // 0002 LDBOOL R2 1 0 - 0x7C000400, // 0003 CALL R0 2 - 0xB8020200, // 0004 GETNGBL R0 K1 - 0x8C000102, // 0005 GETMET R0 R0 K2 - 0x58080003, // 0006 LDCONST R2 K3 - 0x580C0004, // 0007 LDCONST R3 K4 - 0x7C000600, // 0008 CALL R0 3 - 0x80000000, // 0009 RET 0 - }) - ), - &be_class_Matter_Device, - }), - 1, /* has constants */ - ( &(const bvalue[ 9]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(wifi), - /* K2 */ be_nested_str_weak(up), - /* K3 */ be_nested_str_weak(_mdns_announce_hostname), - /* K4 */ be_nested_str_weak(add_rule), - /* K5 */ be_nested_str_weak(Wifi_X23Connected), - /* K6 */ be_nested_str_weak(matter_mdns_host), - /* K7 */ be_nested_str_weak(eth), - /* K8 */ be_nested_str_weak(Eth_X23Connected), - }), - be_str_weak(start_mdns_announce_hostnames), - &be_const_str_solidified, - ( &(const binstruction[32]) { /* code */ - 0xB8060000, // 0000 GETNGBL R1 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x94040302, // 0003 GETIDX R1 R1 K2 - 0x78060003, // 0004 JMPF R1 #0009 - 0x8C040103, // 0005 GETMET R1 R0 K3 - 0x500C0000, // 0006 LDBOOL R3 0 0 - 0x7C040400, // 0007 CALL R1 2 - 0x70020005, // 0008 JMP #000F - 0xB8060000, // 0009 GETNGBL R1 K0 - 0x8C040304, // 000A GETMET R1 R1 K4 - 0x580C0005, // 000B LDCONST R3 K5 - 0x84100000, // 000C CLOSURE R4 P0 - 0x58140006, // 000D LDCONST R5 K6 - 0x7C040800, // 000E CALL R1 4 - 0xB8060000, // 000F GETNGBL R1 K0 - 0x8C040307, // 0010 GETMET R1 R1 K7 - 0x7C040200, // 0011 CALL R1 1 - 0x94040302, // 0012 GETIDX R1 R1 K2 - 0x78060003, // 0013 JMPF R1 #0018 - 0x8C040103, // 0014 GETMET R1 R0 K3 - 0x500C0200, // 0015 LDBOOL R3 1 0 - 0x7C040400, // 0016 CALL R1 2 - 0x70020005, // 0017 JMP #001E - 0xB8060000, // 0018 GETNGBL R1 K0 - 0x8C040304, // 0019 GETMET R1 R1 K4 - 0x580C0008, // 001A LDCONST R3 K8 - 0x84100001, // 001B CLOSURE R4 P1 - 0x58140006, // 001C LDCONST R5 K6 - 0x7C040800, // 001D CALL R1 4 - 0xA0000000, // 001E CLOSE R0 - 0x80000000, // 001F RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_init, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 3]) { - be_nested_proto( - 4, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(start), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(remove_rule), - /* K3 */ be_nested_str_weak(Wifi_X23Connected), - /* K4 */ be_nested_str_weak(matter_start), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x7C000200, // 0002 CALL R0 1 - 0xB8020200, // 0003 GETNGBL R0 K1 - 0x8C000102, // 0004 GETMET R0 R0 K2 - 0x58080003, // 0005 LDCONST R2 K3 - 0x580C0004, // 0006 LDCONST R3 K4 - 0x7C000600, // 0007 CALL R0 3 - 0x80000000, // 0008 RET 0 - }) - ), - be_nested_proto( - 4, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(start), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(remove_rule), - /* K3 */ be_nested_str_weak(Eth_X23Connected), - /* K4 */ be_nested_str_weak(matter_start), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x7C000200, // 0002 CALL R0 1 - 0xB8020200, // 0003 GETNGBL R0 K1 - 0x8C000102, // 0004 GETMET R0 R0 K2 - 0x58080003, // 0005 LDCONST R2 K3 - 0x580C0004, // 0006 LDCONST R3 K4 - 0x7C000600, // 0007 CALL R0 3 - 0x80000000, // 0008 RET 0 - }) - ), - &be_class_Matter_Device, - }), - 1, /* has constants */ - ( &(const bvalue[46]) { /* constants */ - /* K0 */ be_nested_str_weak(crypto), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(get_option), - /* K3 */ be_nested_str_weak(matter), - /* K4 */ be_nested_str_weak(MATTER_OPTION), - /* K5 */ be_nested_str_weak(UI), - /* K6 */ be_nested_str_weak(profiler), - /* K7 */ be_nested_str_weak(Profiler), - /* K8 */ be_nested_str_weak(started), - /* K9 */ be_nested_str_weak(tick), - /* K10 */ be_const_int(0), - /* K11 */ be_nested_str_weak(plugins), - /* K12 */ be_nested_str_weak(plugins_persist), - /* K13 */ be_nested_str_weak(plugins_config_remotes), - /* K14 */ be_nested_str_weak(vendorid), - /* K15 */ be_nested_str_weak(VENDOR_ID), - /* K16 */ be_nested_str_weak(productid), - /* K17 */ be_nested_str_weak(PRODUCT_ID), - /* K18 */ be_nested_str_weak(root_iterations), - /* K19 */ be_nested_str_weak(PBKDF_ITERATIONS), - /* K20 */ be_nested_str_weak(next_ep), - /* K21 */ be_const_int(1), - /* K22 */ be_nested_str_weak(root_salt), - /* K23 */ be_nested_str_weak(random), - /* K24 */ be_nested_str_weak(ipv4only), - /* K25 */ be_nested_str_weak(disable_bridge_mode), - /* K26 */ be_nested_str_weak(load_param), - /* K27 */ be_nested_str_weak(sessions), - /* K28 */ be_nested_str_weak(Session_Store), - /* K29 */ be_nested_str_weak(load_fabrics), - /* K30 */ be_nested_str_weak(message_handler), - /* K31 */ be_nested_str_weak(MessageHandler), - /* K32 */ be_nested_str_weak(events), - /* K33 */ be_nested_str_weak(EventHandler), - /* K34 */ be_nested_str_weak(ui), - /* K35 */ be_nested_str_weak(wifi), - /* K36 */ be_nested_str_weak(up), - /* K37 */ be_nested_str_weak(eth), - /* K38 */ be_nested_str_weak(start), - /* K39 */ be_nested_str_weak(add_rule), - /* K40 */ be_nested_str_weak(Wifi_X23Connected), - /* K41 */ be_nested_str_weak(matter_start), - /* K42 */ be_nested_str_weak(Eth_X23Connected), - /* K43 */ be_nested_str_weak(_init_basic_commissioning), - /* K44 */ be_nested_str_weak(add_driver), - /* K45 */ be_nested_str_weak(register_commands), - }), - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[112]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xB80A0200, // 0001 GETNGBL R2 K1 - 0x8C080502, // 0002 GETMET R2 R2 K2 - 0xB8120600, // 0003 GETNGBL R4 K3 - 0x88100904, // 0004 GETMBR R4 R4 K4 - 0x7C080400, // 0005 CALL R2 2 - 0x740A0004, // 0006 JMPT R2 #000C - 0xB80A0600, // 0007 GETNGBL R2 K3 - 0x8C080505, // 0008 GETMET R2 R2 K5 - 0x5C100000, // 0009 MOVE R4 R0 - 0x7C080400, // 000A CALL R2 2 - 0x80000400, // 000B RET 0 - 0xB80A0600, // 000C GETNGBL R2 K3 - 0xB80E0600, // 000D GETNGBL R3 K3 - 0x8C0C0707, // 000E GETMET R3 R3 K7 - 0x7C0C0200, // 000F CALL R3 1 - 0x900A0C03, // 0010 SETMBR R2 K6 R3 - 0x50080000, // 0011 LDBOOL R2 0 0 - 0x90021002, // 0012 SETMBR R0 K8 R2 - 0x9002130A, // 0013 SETMBR R0 K9 K10 - 0x60080012, // 0014 GETGBL R2 G18 - 0x7C080000, // 0015 CALL R2 0 - 0x90021602, // 0016 SETMBR R0 K11 R2 - 0x50080000, // 0017 LDBOOL R2 0 0 - 0x90021802, // 0018 SETMBR R0 K12 R2 - 0x60080013, // 0019 GETGBL R2 G19 - 0x7C080000, // 001A CALL R2 0 - 0x90021A02, // 001B SETMBR R0 K13 R2 - 0x8808010F, // 001C GETMBR R2 R0 K15 - 0x90021C02, // 001D SETMBR R0 K14 R2 - 0x88080111, // 001E GETMBR R2 R0 K17 - 0x90022002, // 001F SETMBR R0 K16 R2 - 0x88080113, // 0020 GETMBR R2 R0 K19 - 0x90022402, // 0021 SETMBR R0 K18 R2 - 0x90022915, // 0022 SETMBR R0 K20 K21 - 0x8C080317, // 0023 GETMET R2 R1 K23 - 0x5412000F, // 0024 LDINT R4 16 - 0x7C080400, // 0025 CALL R2 2 - 0x90022C02, // 0026 SETMBR R0 K22 R2 - 0x50080000, // 0027 LDBOOL R2 0 0 - 0x90023002, // 0028 SETMBR R0 K24 R2 - 0x50080000, // 0029 LDBOOL R2 0 0 - 0x90023202, // 002A SETMBR R0 K25 R2 - 0x8C08011A, // 002B GETMET R2 R0 K26 - 0x7C080200, // 002C CALL R2 1 - 0xB80A0600, // 002D GETNGBL R2 K3 - 0x8C08051C, // 002E GETMET R2 R2 K28 - 0x5C100000, // 002F MOVE R4 R0 - 0x7C080400, // 0030 CALL R2 2 - 0x90023602, // 0031 SETMBR R0 K27 R2 - 0x8808011B, // 0032 GETMBR R2 R0 K27 - 0x8C08051D, // 0033 GETMET R2 R2 K29 - 0x7C080200, // 0034 CALL R2 1 - 0xB80A0600, // 0035 GETNGBL R2 K3 - 0x8C08051F, // 0036 GETMET R2 R2 K31 - 0x5C100000, // 0037 MOVE R4 R0 - 0x7C080400, // 0038 CALL R2 2 - 0x90023C02, // 0039 SETMBR R0 K30 R2 - 0xB80A0600, // 003A GETNGBL R2 K3 - 0x8C080521, // 003B GETMET R2 R2 K33 - 0x5C100000, // 003C MOVE R4 R0 - 0x7C080400, // 003D CALL R2 2 - 0x90024002, // 003E SETMBR R0 K32 R2 - 0xB80A0600, // 003F GETNGBL R2 K3 - 0x8C080505, // 0040 GETMET R2 R2 K5 - 0x5C100000, // 0041 MOVE R4 R0 - 0x7C080400, // 0042 CALL R2 2 - 0x90024402, // 0043 SETMBR R0 K34 R2 - 0xB80A0200, // 0044 GETNGBL R2 K1 - 0x8C080523, // 0045 GETMET R2 R2 K35 - 0x7C080200, // 0046 CALL R2 1 - 0x94080524, // 0047 GETIDX R2 R2 K36 - 0x740A0004, // 0048 JMPT R2 #004E - 0xB80A0200, // 0049 GETNGBL R2 K1 - 0x8C080525, // 004A GETMET R2 R2 K37 - 0x7C080200, // 004B CALL R2 1 - 0x94080524, // 004C GETIDX R2 R2 K36 - 0x780A0001, // 004D JMPF R2 #0050 - 0x8C080126, // 004E GETMET R2 R0 K38 - 0x7C080200, // 004F CALL R2 1 - 0xB80A0200, // 0050 GETNGBL R2 K1 - 0x8C080523, // 0051 GETMET R2 R2 K35 - 0x7C080200, // 0052 CALL R2 1 - 0x94080524, // 0053 GETIDX R2 R2 K36 - 0x740A0005, // 0054 JMPT R2 #005B - 0xB80A0200, // 0055 GETNGBL R2 K1 - 0x8C080527, // 0056 GETMET R2 R2 K39 - 0x58100028, // 0057 LDCONST R4 K40 - 0x84140000, // 0058 CLOSURE R5 P0 - 0x58180029, // 0059 LDCONST R6 K41 - 0x7C080800, // 005A CALL R2 4 - 0xB80A0200, // 005B GETNGBL R2 K1 - 0x8C080525, // 005C GETMET R2 R2 K37 - 0x7C080200, // 005D CALL R2 1 - 0x94080524, // 005E GETIDX R2 R2 K36 - 0x740A0005, // 005F JMPT R2 #0066 - 0xB80A0200, // 0060 GETNGBL R2 K1 - 0x8C080527, // 0061 GETMET R2 R2 K39 - 0x5810002A, // 0062 LDCONST R4 K42 - 0x84140001, // 0063 CLOSURE R5 P1 - 0x58180029, // 0064 LDCONST R6 K41 - 0x7C080800, // 0065 CALL R2 4 - 0x8C08012B, // 0066 GETMET R2 R0 K43 - 0x7C080200, // 0067 CALL R2 1 - 0xB80A0200, // 0068 GETNGBL R2 K1 - 0x8C08052C, // 0069 GETMET R2 R2 K44 - 0x5C100000, // 006A MOVE R4 R0 - 0x7C080400, // 006B CALL R2 2 - 0x8C08012D, // 006C GETMET R2 R0 K45 - 0x7C080200, // 006D CALL R2 1 - 0xA0000000, // 006E CLOSE R0 - 0x80000000, // 006F RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: mdns_announce_op_discovery_all_fabrics -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_mdns_announce_op_discovery_all_fabrics, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_nested_str_weak(sessions), - /* K1 */ be_nested_str_weak(active_fabrics), - /* K2 */ be_nested_str_weak(get_device_id), - /* K3 */ be_nested_str_weak(get_fabric_id), - /* K4 */ be_nested_str_weak(mdns_announce_op_discovery), - /* K5 */ be_nested_str_weak(stop_iteration), + /* K0 */ be_nested_str_weak(find_plugin_by_endpoint), + /* K1 */ be_nested_str_weak(state_json), + /* K2 */ be_nested_str_weak(_X7B_X22MtrInfo_X22_X3A_X25s_X7D), + /* K3 */ be_nested_str_weak(tasmota), + /* K4 */ be_nested_str_weak(publish_result), + /* K5 */ be_nested_str_weak(), }), - be_str_weak(mdns_announce_op_discovery_all_fabrics), + be_str_weak(MtrInfo_one), &be_const_str_solidified, - ( &(const binstruction[22]) { /* code */ - 0x60040010, // 0000 GETGBL R1 G16 - 0x88080100, // 0001 GETMBR R2 R0 K0 - 0x8C080501, // 0002 GETMET R2 R2 K1 - 0x7C080200, // 0003 CALL R2 1 + ( &(const binstruction[20]) { /* code */ + 0x8C080100, // 0000 GETMET R2 R0 K0 + 0x5C100200, // 0001 MOVE R4 R1 + 0x7C080400, // 0002 CALL R2 2 + 0x4C0C0000, // 0003 LDNIL R3 + 0x1C0C0403, // 0004 EQ R3 R2 R3 + 0x780E0000, // 0005 JMPF R3 #0007 + 0x80000600, // 0006 RET 0 + 0x8C0C0501, // 0007 GETMET R3 R2 K1 + 0x7C0C0200, // 0008 CALL R3 1 + 0x780E0008, // 0009 JMPF R3 #0013 + 0x60100018, // 000A GETGBL R4 G24 + 0x58140002, // 000B LDCONST R5 K2 + 0x5C180600, // 000C MOVE R6 R3 + 0x7C100400, // 000D CALL R4 2 + 0xB8160600, // 000E GETNGBL R5 K3 + 0x8C140B04, // 000F GETMET R5 R5 K4 + 0x5C1C0800, // 0010 MOVE R7 R4 + 0x58200005, // 0011 LDCONST R8 K5 + 0x7C140600, // 0012 CALL R5 3 + 0x80000000, // 0013 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: start +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_start, /* name */ + be_nested_proto( + 4, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(started), + /* K1 */ be_nested_str_weak(autoconf_device), + /* K2 */ be_nested_str_weak(_start_udp), + /* K3 */ be_nested_str_weak(UDP_PORT), + /* K4 */ be_nested_str_weak(start_mdns_announce_hostnames), + }), + be_str_weak(start), + &be_const_str_solidified, + ( &(const binstruction[13]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x78060000, // 0001 JMPF R1 #0003 + 0x80000200, // 0002 RET 0 + 0x8C040101, // 0003 GETMET R1 R0 K1 0x7C040200, // 0004 CALL R1 1 - 0xA802000B, // 0005 EXBLK 0 #0012 - 0x5C080200, // 0006 MOVE R2 R1 - 0x7C080000, // 0007 CALL R2 0 - 0x8C0C0502, // 0008 GETMET R3 R2 K2 - 0x7C0C0200, // 0009 CALL R3 1 - 0x780E0005, // 000A JMPF R3 #0011 - 0x8C0C0503, // 000B GETMET R3 R2 K3 - 0x7C0C0200, // 000C CALL R3 1 - 0x780E0002, // 000D JMPF R3 #0011 - 0x8C0C0104, // 000E GETMET R3 R0 K4 - 0x5C140400, // 000F MOVE R5 R2 - 0x7C0C0400, // 0010 CALL R3 2 - 0x7001FFF3, // 0011 JMP #0006 - 0x58040005, // 0012 LDCONST R1 K5 - 0xAC040200, // 0013 CATCH R1 1 0 - 0xB0080000, // 0014 RAISE 2 R0 R0 - 0x80000000, // 0015 RET 0 + 0x8C040102, // 0005 GETMET R1 R0 K2 + 0x880C0103, // 0006 GETMBR R3 R0 K3 + 0x7C040400, // 0007 CALL R1 2 + 0x8C040104, // 0008 GETMET R1 R0 K4 + 0x7C040200, // 0009 CALL R1 1 + 0x50040200, // 000A LDBOOL R1 1 0 + 0x90020001, // 000B SETMBR R0 K0 R1 + 0x80000000, // 000C RET 0 }) ) ); @@ -6055,21 +5993,42 @@ be_local_closure(class_Matter_Device_mdns_announce_op_discovery_all_fabrics, / ** Solidified class: Matter_Device ********************************************************************/ be_local_class(Matter_Device, - 40, + 34, NULL, - be_nested_map(119, + be_nested_map(112, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(commissioning_L, -1), be_const_var(17) }, - { be_const_key_weak(save_before_restart, -1), be_const_closure(class_Matter_Device_save_before_restart_closure) }, - { be_const_key_weak(mdns_pase_eth, -1), be_const_var(25) }, - { be_const_key_weak(start_operational_discovery, 30), be_const_closure(class_Matter_Device_start_operational_discovery_closure) }, - { be_const_key_weak(mdns_announce_op_discovery_all_fabrics, -1), be_const_closure(class_Matter_Device_mdns_announce_op_discovery_all_fabrics_closure) }, - { be_const_key_weak(productid, -1), be_const_var(24) }, - { be_const_key_weak(find_plugin_by_endpoint, -1), be_const_closure(class_Matter_Device_find_plugin_by_endpoint_closure) }, - { be_const_key_weak(read_sensors_scheduler, 22), be_const_closure(class_Matter_Device_read_sensors_scheduler_closure) }, - { be_const_key_weak(start_root_basic_commissioning, -1), be_const_closure(class_Matter_Device_start_root_basic_commissioning_closure) }, - { be_const_key_weak(mdns_announce_PASE, -1), be_const_closure(class_Matter_Device_mdns_announce_PASE_closure) }, - { be_const_key_weak(PASSCODE_INVALID, 51), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { + { be_const_key_weak(commissioning_salt, -1), be_const_var(15) }, + { be_const_key_weak(msg_send, 0), be_const_closure(class_Matter_Device_msg_send_closure) }, + { be_const_key_weak(bridge_remove_endpoint, -1), be_const_closure(class_Matter_Device_bridge_remove_endpoint_closure) }, + { be_const_key_weak(MtrInfo_one, -1), be_const_closure(class_Matter_Device_MtrInfo_one_closure) }, + { be_const_key_weak(plugins_persist, -1), be_const_var(2) }, + { be_const_key_weak(_init_basic_commissioning, -1), be_const_closure(class_Matter_Device__init_basic_commissioning_closure) }, + { be_const_key_weak(root_discriminator, -1), be_const_var(26) }, + { be_const_key_weak(read_sensors_scheduler, -1), be_const_closure(class_Matter_Device_read_sensors_scheduler_closure) }, + { be_const_key_weak(hostname_wifi, -1), be_const_var(21) }, + { be_const_key_weak(start_operational_discovery_deferred, -1), be_const_closure(class_Matter_Device_start_operational_discovery_deferred_closure) }, + { be_const_key_weak(plugins_config, -1), be_const_var(3) }, + { be_const_key_weak(get_active_endpoints, -1), be_const_closure(class_Matter_Device_get_active_endpoints_closure) }, + { be_const_key_weak(msg_received, -1), be_const_closure(class_Matter_Device_msg_received_closure) }, + { be_const_key_weak(http_remotes, 41), be_const_var(25) }, + { be_const_key_weak(commissioning_instance_eth, 40), be_const_var(20) }, + { be_const_key_weak(clean_remotes, -1), be_const_closure(class_Matter_Device_clean_remotes_closure) }, + { be_const_key_weak(hostname_eth, -1), be_const_var(22) }, + { be_const_key_weak(start_operational_discovery, 47), be_const_closure(class_Matter_Device_start_operational_discovery_closure) }, + { be_const_key_weak(_mdns_announce_hostname, -1), be_const_closure(class_Matter_Device__mdns_announce_hostname_closure) }, + { be_const_key_weak(add_read_sensors_schedule, 38), be_const_closure(class_Matter_Device_add_read_sensors_schedule_closure) }, + { be_const_key_weak(events, 62), be_const_var(11) }, + { be_const_key_weak(start_mdns_announce_hostnames, -1), be_const_closure(class_Matter_Device_start_mdns_announce_hostnames_closure) }, + { be_const_key_weak(_start_udp, 75), be_const_closure(class_Matter_Device__start_udp_closure) }, + { be_const_key_weak(compute_qrcode_content, 70), be_const_closure(class_Matter_Device_compute_qrcode_content_closure) }, + { be_const_key_weak(get_plugin_remote_info, 93), be_const_closure(class_Matter_Device_get_plugin_remote_info_closure) }, + { be_const_key_weak(_instantiate_plugins_from_config, 107), be_const_closure(class_Matter_Device__instantiate_plugins_from_config_closure) }, + { be_const_key_weak(mdns_remove_op_discovery_all_fabrics, -1), be_const_closure(class_Matter_Device_mdns_remove_op_discovery_all_fabrics_closure) }, + { be_const_key_weak(udp_server, -1), be_const_var(5) }, + { be_const_key_weak(sessions, -1), be_const_var(8) }, + { be_const_key_weak(resolve_attribute_read_solo, -1), be_const_closure(class_Matter_Device_resolve_attribute_read_solo_closure) }, + { be_const_key_weak(started, 15), be_const_var(0) }, + { be_const_key_weak(PASSCODE_INVALID, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { be_const_list( * be_nested_list(12, ( (struct bvalue*) &(const bvalue[]) { be_const_int(0), @@ -6085,25 +6044,39 @@ be_local_class(Matter_Device, be_const_int(12345678), be_const_int(87654321), })) ) } )) }, - { be_const_key_weak(FILENAME, -1), be_nested_str_weak(_matter_device_X2Ejson) }, - { be_const_key_weak(invoke_request, -1), be_const_closure(class_Matter_Device_invoke_request_closure) }, - { be_const_key_weak(generate_random_passcode, -1), be_const_closure(class_Matter_Device_generate_random_passcode_closure) }, - { be_const_key_weak(UDP_PORT, 74), be_const_int(5540) }, - { be_const_key_weak(event_fabrics_saved, -1), be_const_closure(class_Matter_Device_event_fabrics_saved_closure) }, - { be_const_key_weak(debug, -1), be_const_var(33) }, - { be_const_key_weak(plugins, -1), be_const_var(1) }, - { be_const_key_weak(process_attribute_expansion, 59), be_const_closure(class_Matter_Device_process_attribute_expansion_closure) }, - { be_const_key_weak(commissioning_open, -1), be_const_var(12) }, - { be_const_key_weak(plugins_config, -1), be_const_var(3) }, - { be_const_key_weak(vendorid, -1), be_const_var(23) }, - { be_const_key_weak(start_mdns_announce_hostnames, 12), be_const_closure(class_Matter_Device_start_mdns_announce_hostnames_closure) }, - { be_const_key_weak(register_commands, 61), be_const_closure(class_Matter_Device_register_commands_closure) }, - { be_const_key_weak(k2l, 32), be_const_static_closure(class_Matter_Device_k2l_closure) }, - { be_const_key_weak(_start_udp, -1), be_const_closure(class_Matter_Device__start_udp_closure) }, - { be_const_key_weak(find_plugin_by_friendly_name, -1), be_const_closure(class_Matter_Device_find_plugin_by_friendly_name_closure) }, - { be_const_key_weak(remove_fabric, -1), be_const_closure(class_Matter_Device_remove_fabric_closure) }, + { be_const_key_weak(bridge_add_endpoint, 85), be_const_closure(class_Matter_Device_bridge_add_endpoint_closure) }, + { be_const_key_weak(profiler, -1), be_const_var(6) }, + { be_const_key_weak(MtrUpdate, -1), be_const_closure(class_Matter_Device_MtrUpdate_closure) }, { be_const_key_weak(load_param, -1), be_const_closure(class_Matter_Device_load_param_closure) }, - { be_const_key_weak(plugins_classes, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + { be_const_key_weak(save_param, 77), be_const_closure(class_Matter_Device_save_param_closure) }, + { be_const_key_weak(get_plugin_class_arg, -1), be_const_closure(class_Matter_Device_get_plugin_class_arg_closure) }, + { be_const_key_weak(init, 2), be_const_closure(class_Matter_Device_init_closure) }, + { be_const_key_weak(process_attribute_expansion, 105), be_const_closure(class_Matter_Device_process_attribute_expansion_closure) }, + { be_const_key_weak(is_commissioning_open, -1), be_const_closure(class_Matter_Device_is_commissioning_open_closure) }, + { be_const_key_weak(generate_random_passcode, -1), be_const_closure(class_Matter_Device_generate_random_passcode_closure) }, + { be_const_key_weak(commissioning_instance_wifi, -1), be_const_var(19) }, + { be_const_key_weak(register_commands, 34), be_const_closure(class_Matter_Device_register_commands_closure) }, + { be_const_key_weak(every_250ms, 50), be_const_closure(class_Matter_Device_every_250ms_closure) }, + { be_const_key_weak(commissioning_L, -1), be_const_var(17) }, + { be_const_key_weak(check_config_ep, -1), be_const_closure(class_Matter_Device_check_config_ep_closure) }, + { be_const_key_weak(update_remotes_info, -1), be_const_closure(class_Matter_Device_update_remotes_info_closure) }, + { be_const_key_weak(conf_to_log, -1), be_const_static_closure(class_Matter_Device_conf_to_log_closure) }, + { be_const_key_weak(probe_sensor_time, -1), be_const_var(32) }, + { be_const_key_weak(next_ep, 49), be_const_var(30) }, + { be_const_key_weak(mdns_pase_eth, 57), be_const_var(23) }, + { be_const_key_weak(tick, -1), be_const_var(10) }, + { be_const_key_weak(mdns_pase_wifi, -1), be_const_var(24) }, + { be_const_key_weak(autoconf_device_map, -1), be_const_closure(class_Matter_Device_autoconf_device_map_closure) }, + { be_const_key_weak(remove_fabric, 65), be_const_closure(class_Matter_Device_remove_fabric_closure) }, + { be_const_key_weak(probe_sensor_timestamp, 76), be_const_var(33) }, + { be_const_key_weak(mdns_announce_PASE, 37), be_const_closure(class_Matter_Device_mdns_announce_PASE_closure) }, + { be_const_key_weak(adjust_next_ep, -1), be_const_closure(class_Matter_Device_adjust_next_ep_closure) }, + { be_const_key_weak(ui, 24), be_const_var(9) }, + { be_const_key_weak(PRODUCT_ID, 92), be_const_int(32768) }, + { be_const_key_weak(autoconf_sensors_list, -1), be_const_closure(class_Matter_Device_autoconf_sensors_list_closure) }, + { be_const_key_weak(find_plugin_by_endpoint, -1), be_const_closure(class_Matter_Device_find_plugin_by_endpoint_closure) }, + { be_const_key_weak(PBKDF_ITERATIONS, -1), be_const_int(1000) }, + { be_const_key_weak(plugins_classes, 44), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(53, ( (struct bmapnode*) &(const bmapnode[]) { { be_const_key_weak(occupancy, -1), be_const_class(be_class_Matter_Plugin_Sensor_Occupancy) }, @@ -6160,95 +6133,53 @@ be_local_class(Matter_Device, { be_const_key_weak(rain, -1), be_const_class(be_class_Matter_Plugin_Sensor_Rain) }, { be_const_key_weak(gensw, -1), be_const_class(be_class_Matter_Plugin_Sensor_GenericSwitch) }, })) ) } )) }, - { be_const_key_weak(get_plugin_remote_info, 35), be_const_closure(class_Matter_Device_get_plugin_remote_info_closure) }, - { be_const_key_weak(message_handler, -1), be_const_var(7) }, - { be_const_key_weak(k2l_num, -1), be_const_static_closure(class_Matter_Device_k2l_num_closure) }, - { be_const_key_weak(root_salt, 87), be_const_var(35) }, - { be_const_key_weak(start_basic_commissioning, 8), be_const_closure(class_Matter_Device_start_basic_commissioning_closure) }, - { be_const_key_weak(hostname_wifi, -1), be_const_var(21) }, - { be_const_key_weak(is_commissioning_open, -1), be_const_closure(class_Matter_Device_is_commissioning_open_closure) }, - { be_const_key_weak(get_plugin_class_arg, -1), be_const_closure(class_Matter_Device_get_plugin_class_arg_closure) }, - { be_const_key_weak(commissioning_discriminator, -1), be_const_var(14) }, - { be_const_key_weak(MtrInfo_one, -1), be_const_closure(class_Matter_Device_MtrInfo_one_closure) }, - { be_const_key_weak(VENDOR_ID, -1), be_const_int(65521) }, - { be_const_key_weak(autoconf_device, -1), be_const_closure(class_Matter_Device_autoconf_device_closure) }, - { be_const_key_weak(PBKDF_ITERATIONS, -1), be_const_int(1000) }, - { be_const_key_weak(resolve_attribute_read_solo, -1), be_const_closure(class_Matter_Device_resolve_attribute_read_solo_closure) }, - { be_const_key_weak(http_remotes, -1), be_const_var(27) }, - { be_const_key_weak(mdns_pase_wifi, 71), be_const_var(26) }, - { be_const_key_weak(_instantiate_plugins_from_config, 107), be_const_closure(class_Matter_Device__instantiate_plugins_from_config_closure) }, - { be_const_key_weak(commissioning_w0, 114), be_const_var(16) }, - { be_const_key_weak(start, -1), be_const_closure(class_Matter_Device_start_closure) }, - { be_const_key_weak(plugins_persist, 63), be_const_var(2) }, - { be_const_key_weak(_trigger_read_sensors, -1), be_const_closure(class_Matter_Device__trigger_read_sensors_closure) }, - { be_const_key_weak(update_remotes_info, -1), be_const_closure(class_Matter_Device_update_remotes_info_closure) }, - { be_const_key_weak(mdns_remove_PASE, -1), be_const_closure(class_Matter_Device_mdns_remove_PASE_closure) }, - { be_const_key_weak(get_active_endpoints, 40), be_const_closure(class_Matter_Device_get_active_endpoints_closure) }, - { be_const_key_weak(bridge_remove_endpoint, 103), be_const_closure(class_Matter_Device_bridge_remove_endpoint_closure) }, - { be_const_key_weak(clean_remotes, -1), be_const_closure(class_Matter_Device_clean_remotes_closure) }, - { be_const_key_weak(commissioning_instance_wifi, -1), be_const_var(19) }, - { be_const_key_weak(sort_distinct, -1), be_const_static_closure(class_Matter_Device_sort_distinct_closure) }, - { be_const_key_weak(adjust_next_ep, 110), be_const_closure(class_Matter_Device_adjust_next_ep_closure) }, - { be_const_key_weak(check_config_ep, -1), be_const_closure(class_Matter_Device_check_config_ep_closure) }, - { be_const_key_weak(attribute_updated, 34), be_const_closure(class_Matter_Device_attribute_updated_closure) }, - { be_const_key_weak(next_ep, -1), be_const_var(32) }, - { be_const_key_weak(every_second, -1), be_const_closure(class_Matter_Device_every_second_closure) }, - { be_const_key_weak(commissioning_admin_fabric, -1), be_const_var(18) }, - { be_const_key_weak(msg_send, -1), be_const_closure(class_Matter_Device_msg_send_closure) }, - { be_const_key_weak(register_http_remote, 41), be_const_closure(class_Matter_Device_register_http_remote_closure) }, - { be_const_key_weak(tick, -1), be_const_var(10) }, - { be_const_key_weak(udp_server, 45), be_const_var(5) }, - { be_const_key_weak(bridge_add_endpoint, 97), be_const_closure(class_Matter_Device_bridge_add_endpoint_closure) }, - { be_const_key_weak(MtrJoin, -1), be_const_closure(class_Matter_Device_MtrJoin_closure) }, - { be_const_key_weak(PASE_TIMEOUT, -1), be_const_int(600) }, - { be_const_key_weak(mdns_announce_op_discovery, -1), be_const_closure(class_Matter_Device_mdns_announce_op_discovery_closure) }, - { be_const_key_weak(root_iterations, 112), be_const_var(34) }, - { be_const_key_weak(start_commissioning_complete, 62), be_const_closure(class_Matter_Device_start_commissioning_complete_closure) }, - { be_const_key_weak(compute_manual_pairing_code, -1), be_const_closure(class_Matter_Device_compute_manual_pairing_code_closure) }, - { be_const_key_weak(MtrInfo, 98), be_const_closure(class_Matter_Device_MtrInfo_closure) }, - { be_const_key_weak(ipv4only, 96), be_const_var(30) }, - { be_const_key_weak(commissioning_instance_eth, -1), be_const_var(20) }, - { be_const_key_weak(MtrUpdate, 25), be_const_closure(class_Matter_Device_MtrUpdate_closure) }, - { be_const_key_weak(profiler, -1), be_const_var(6) }, - { be_const_key_weak(root_L, -1), be_const_var(37) }, - { be_const_key_weak(start_operational_discovery_deferred, 72), be_const_closure(class_Matter_Device_start_operational_discovery_deferred_closure) }, - { be_const_key_weak(add_read_sensors_schedule, 92), be_const_closure(class_Matter_Device_add_read_sensors_schedule_closure) }, - { be_const_key_weak(hostname_eth, 91), be_const_var(22) }, - { be_const_key_weak(save_param, -1), be_const_closure(class_Matter_Device_save_param_closure) }, - { be_const_key_weak(every_250ms, 77), be_const_closure(class_Matter_Device_every_250ms_closure) }, - { be_const_key_weak(compute_qrcode_content, 81), be_const_closure(class_Matter_Device_compute_qrcode_content_closure) }, - { be_const_key_weak(_init_basic_commissioning, -1), be_const_closure(class_Matter_Device__init_basic_commissioning_closure) }, - { be_const_key_weak(msg_received, -1), be_const_closure(class_Matter_Device_msg_received_closure) }, - { be_const_key_weak(autoconf_sensors_list, -1), be_const_closure(class_Matter_Device_autoconf_sensors_list_closure) }, - { be_const_key_weak(root_discriminator, 75), be_const_var(28) }, - { be_const_key_weak(events, -1), be_const_var(11) }, - { be_const_key_weak(mdns_remove_op_discovery_all_fabrics, -1), be_const_closure(class_Matter_Device_mdns_remove_op_discovery_all_fabrics_closure) }, - { be_const_key_weak(signal_endpoints_changed, -1), be_const_closure(class_Matter_Device_signal_endpoints_changed_closure) }, - { be_const_key_weak(ui, 69), be_const_var(9) }, - { be_const_key_weak(_mdns_announce_hostname, 68), be_const_closure(class_Matter_Device__mdns_announce_hostname_closure) }, - { be_const_key_weak(_compute_pbkdf, -1), be_const_closure(class_Matter_Device__compute_pbkdf_closure) }, - { be_const_key_weak(stop_basic_commissioning, -1), be_const_closure(class_Matter_Device_stop_basic_commissioning_closure) }, { be_const_key_weak(mdns_remove_op_discovery, -1), be_const_closure(class_Matter_Device_mdns_remove_op_discovery_closure) }, - { be_const_key_weak(root_w0, -1), be_const_var(36) }, - { be_const_key_weak(received_ack, 55), be_const_closure(class_Matter_Device_received_ack_closure) }, - { be_const_key_weak(get_plugin_class_displayname, -1), be_const_closure(class_Matter_Device_get_plugin_class_displayname_closure) }, - { be_const_key_weak(PRODUCT_ID, 49), be_const_int(32768) }, - { be_const_key_weak(autoconf_device_map, 26), be_const_closure(class_Matter_Device_autoconf_device_map_closure) }, - { be_const_key_weak(conf_to_log, 44), be_const_static_closure(class_Matter_Device_conf_to_log_closure) }, - { be_const_key_weak(sessions, -1), be_const_var(8) }, - { be_const_key_weak(probe_sensor_time, -1), be_const_var(38) }, - { be_const_key_weak(plugins_config_remotes, -1), be_const_var(4) }, - { be_const_key_weak(probe_sensor_timestamp, -1), be_const_var(39) }, - { be_const_key_weak(is_root_commissioning_open, -1), be_const_closure(class_Matter_Device_is_root_commissioning_open_closure) }, - { be_const_key_weak(started, -1), be_const_var(0) }, - { be_const_key_weak(disable_bridge_mode, -1), be_const_var(31) }, + { be_const_key_weak(mdns_remove_PASE, 86), be_const_closure(class_Matter_Device_mdns_remove_PASE_closure) }, + { be_const_key_weak(mdns_announce_op_discovery_all_fabrics, -1), be_const_closure(class_Matter_Device_mdns_announce_op_discovery_all_fabrics_closure) }, + { be_const_key_weak(PASE_TIMEOUT, -1), be_const_int(600) }, + { be_const_key_weak(debug, 84), be_const_var(31) }, + { be_const_key_weak(signal_endpoints_changed, -1), be_const_closure(class_Matter_Device_signal_endpoints_changed_closure) }, + { be_const_key_weak(_trigger_read_sensors, -1), be_const_closure(class_Matter_Device__trigger_read_sensors_closure) }, + { be_const_key_weak(received_ack, 69), be_const_closure(class_Matter_Device_received_ack_closure) }, + { be_const_key_weak(every_second, -1), be_const_closure(class_Matter_Device_every_second_closure) }, + { be_const_key_weak(plugins_config_remotes, 80), be_const_var(4) }, + { be_const_key_weak(sort_distinct, -1), be_const_static_closure(class_Matter_Device_sort_distinct_closure) }, + { be_const_key_weak(message_handler, 99), be_const_var(7) }, + { be_const_key_weak(compute_manual_pairing_code, 68), be_const_closure(class_Matter_Device_compute_manual_pairing_code_closure) }, + { be_const_key_weak(event_fabrics_saved, -1), be_const_closure(class_Matter_Device_event_fabrics_saved_closure) }, + { be_const_key_weak(autoconf_device, -1), be_const_closure(class_Matter_Device_autoconf_device_closure) }, + { be_const_key_weak(start_basic_commissioning, -1), be_const_closure(class_Matter_Device_start_basic_commissioning_closure) }, + { be_const_key_weak(start_root_basic_commissioning, -1), be_const_closure(class_Matter_Device_start_root_basic_commissioning_closure) }, + { be_const_key_weak(commissioning_w0, -1), be_const_var(16) }, + { be_const_key_weak(start_commissioning_complete_deferred, 67), be_const_closure(class_Matter_Device_start_commissioning_complete_deferred_closure) }, { be_const_key_weak(every_50ms, -1), be_const_closure(class_Matter_Device_every_50ms_closure) }, - { be_const_key_weak(commissioning_salt, 23), be_const_var(15) }, - { be_const_key_weak(root_passcode, -1), be_const_var(29) }, - { be_const_key_weak(stop, 20), be_const_closure(class_Matter_Device_stop_closure) }, - { be_const_key_weak(commissioning_iterations, -1), be_const_var(13) }, - { be_const_key_weak(init, -1), be_const_closure(class_Matter_Device_init_closure) }, - { be_const_key_weak(start_commissioning_complete_deferred, 4), be_const_closure(class_Matter_Device_start_commissioning_complete_deferred_closure) }, + { be_const_key_weak(commissioning_admin_fabric, -1), be_const_var(18) }, + { be_const_key_weak(get_plugin_class_displayname, -1), be_const_closure(class_Matter_Device_get_plugin_class_displayname_closure) }, + { be_const_key_weak(start_commissioning_complete, 56), be_const_closure(class_Matter_Device_start_commissioning_complete_closure) }, + { be_const_key_weak(FILENAME, 12), be_nested_str_weak(_matter_device_X2Ejson) }, + { be_const_key_weak(commissioning_open, -1), be_const_var(12) }, + { be_const_key_weak(MtrInfo, -1), be_const_closure(class_Matter_Device_MtrInfo_closure) }, + { be_const_key_weak(invoke_request, 45), be_const_closure(class_Matter_Device_invoke_request_closure) }, + { be_const_key_weak(stop_basic_commissioning, -1), be_const_closure(class_Matter_Device_stop_basic_commissioning_closure) }, + { be_const_key_weak(commissioning_discriminator, 103), be_const_var(14) }, + { be_const_key_weak(MtrJoin, -1), be_const_closure(class_Matter_Device_MtrJoin_closure) }, + { be_const_key_weak(is_root_commissioning_open, 39), be_const_closure(class_Matter_Device_is_root_commissioning_open_closure) }, + { be_const_key_weak(find_plugin_by_friendly_name, -1), be_const_closure(class_Matter_Device_find_plugin_by_friendly_name_closure) }, + { be_const_key_weak(disable_bridge_mode, -1), be_const_var(29) }, + { be_const_key_weak(UDP_PORT, 36), be_const_int(5540) }, + { be_const_key_weak(k2l_num, -1), be_const_static_closure(class_Matter_Device_k2l_num_closure) }, + { be_const_key_weak(register_http_remote, 33), be_const_closure(class_Matter_Device_register_http_remote_closure) }, + { be_const_key_weak(stop, 31), be_const_closure(class_Matter_Device_stop_closure) }, + { be_const_key_weak(mdns_announce_op_discovery, 27), be_const_closure(class_Matter_Device_mdns_announce_op_discovery_closure) }, + { be_const_key_weak(plugins, -1), be_const_var(1) }, + { be_const_key_weak(ipv4only, 16), be_const_var(28) }, + { be_const_key_weak(attribute_updated, -1), be_const_closure(class_Matter_Device_attribute_updated_closure) }, + { be_const_key_weak(save_before_restart, 14), be_const_closure(class_Matter_Device_save_before_restart_closure) }, + { be_const_key_weak(VENDOR_ID, -1), be_const_int(65521) }, + { be_const_key_weak(k2l, 8), be_const_static_closure(class_Matter_Device_k2l_closure) }, + { be_const_key_weak(commissioning_iterations, 3), be_const_var(13) }, + { be_const_key_weak(root_passcode, -1), be_const_var(27) }, + { be_const_key_weak(start, -1), be_const_closure(class_Matter_Device_start_closure) }, })), be_str_weak(Matter_Device) );