diff --git a/lib/libesp32/berry_matter/src/be_matter_module.c b/lib/libesp32/berry_matter/src/be_matter_module.c index 9a0a7b761..8b5d31b5c 100644 --- a/lib/libesp32/berry_matter/src/be_matter_module.c +++ b/lib/libesp32/berry_matter/src/be_matter_module.c @@ -129,6 +129,7 @@ BE_FUNC_CTYPE_DECLARE(matter_get_ip_bytes, "&", "s") #include "solidify/solidified_Matter_inspect.h" extern const bclass be_class_Matter_TLV; // need to declare it upfront because of circular reference +#include "solidify/solidified_Matter_Path.h" #include "solidify/solidified_Matter_TLV.h" #include "solidify/solidified_Matter_IM_Data.h" #include "solidify/solidified_Matter_UDPServer.h" @@ -299,6 +300,7 @@ module matter (scope: global, strings: weak) { IM_ReportData, class(be_class_Matter_IM_ReportData) IM_ReportDataSubscribed, class(be_class_Matter_IM_ReportDataSubscribed) IM_SubscribeResponse, class(be_class_Matter_IM_SubscribeResponse) + IM_SubscribedHeartbeat, class(be_class_Matter_IM_SubscribedHeartbeat) IM_Subscription, class(be_class_Matter_IM_Subscription) IM_Subscription_Shop, class(be_class_Matter_IM_Subscription_Shop) IM, class(be_class_Matter_IM) diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_IM.be b/lib/libesp32/berry_matter/src/embedded/Matter_IM.be index d0fc142eb..7e4c49e9b 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_IM.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_IM.be @@ -83,8 +83,10 @@ class Matter_IM # # return `true` if handled def process_incoming_ack(msg) + import string # check if there is an exchange_id interested in receiving this var message = self.find_sendqueue_by_exchangeid(msg.exchange_id) + tasmota.log(string.format("MTR: process_incoming_ack exch=%i message=%i", msg.exchange_id, message != nil ? 1 : 0), 3) if message return message.ack_received(msg) # dispatch to IM_Message end @@ -109,13 +111,16 @@ class Matter_IM while idx < size(self.send_queue) var message = self.send_queue[idx] - var finish = message.send_im(responder) # send message - if finish - self.send_queue.remove(idx) - idx -= 1 + if !message.finish && message.ready + message.send_im(responder) # send message + end + + if message.finish + tasmota.log("MTR: remove IM message exch="+str(message.resp.exchange_id), 3) + self.send_queue.remove(idx) + else + idx += 1 end - - idx += 1 end end @@ -603,16 +608,11 @@ class Matter_IM fake_read.attributes_requests.push(p1) end - if size(fake_read.attributes_requests) > 0 - tasmota.log(string.format("MTR: ) - var log # any string that needs to be logged (used to show significant parameters for commands) - - def tostring() - try - import string - var s = "" - s += (self.endpoint != nil ? string.format("[%02X]", self.endpoint) : "[**]") - s += (self.cluster != nil ? string.format("%04X/", self.cluster) : "****/") - s += (self.attribute != nil ? string.format("%04X", self.attribute) : "") - s += (self.command != nil ? string.format("%04X", self.command) : "") - if self.attribute == nil && self.command == nil s += "****" end - return s - except .. as e, m - return "Exception> " + str(e) + ", " + str(m) - end - end - -end -matter.Path = Matter_Path - ################################################################################# # Matter_IM_Message # @@ -69,6 +38,7 @@ class Matter_IM_Message var expiration # expiration time for the reporting var resp # response Frame object var ready # bool: ready to send (true) or wait (false) + var finish # if true, the message is removed from the queue var data # TLV data of the response (if any) var last_counter # counter value of last sent packet (to match ack) @@ -78,6 +48,7 @@ class Matter_IM_Message self.ready = true # by default send immediately self.expiration = tasmota.millis() + self.MSG_TIMEOUT self.last_counter = 0 # avoid `nil` value + self.finish = false end # the message is being removed due to expiration @@ -87,6 +58,7 @@ class Matter_IM_Message # ack received for previous message, proceed to next (if any) # return true if we manage the ack ourselves, false if it needs to be done upper def ack_received(msg) + tasmota.log("MTR: IM_Message ack_received exch="+str(self.resp.exchange_id), 3) self.expiration = tasmota.millis() + self.MSG_TIMEOUT # give more time return false end @@ -113,7 +85,6 @@ class Matter_IM_Message return self.resp.exchange_id end - # return true if transaction is complete (remove object from queue) # default responder for data def send_im(responder) import string @@ -125,7 +96,7 @@ class Matter_IM_Message tasmota.log(string.format("MTR: 0 + var sz_attribute_reports = (data.attribute_reports != nil) ? size(data.attribute_reports) : 0 + if sz_attribute_reports > 0 msg_sz = data.attribute_reports[0].to_TLV().encode_len() elements = 1 end - while msg_sz < self.MAX_MESSAGE && elements < size(data.attribute_reports) + while msg_sz < self.MAX_MESSAGE && elements < sz_attribute_reports var next_sz = data.attribute_reports[elements].to_TLV().encode_len() if msg_sz + next_sz < self.MAX_MESSAGE msg_sz += next_sz @@ -218,11 +189,15 @@ class Matter_IM_ReportData : Matter_IM_Message end end - - tasmota.log(string.format("MTR: exch=%i elements=%i msg_sz=%i total=%i", self.get_exchangeid(), elements, msg_sz, size(data.attribute_reports)), 3) - var next_elemnts = data.attribute_reports[elements .. ] - data.attribute_reports = data.attribute_reports[0 .. elements - 1] - data.more_chunked_messages = (size(next_elemnts) > 0) + tasmota.log(string.format("MTR: exch=%i elements=%i msg_sz=%i total=%i", self.get_exchangeid(), elements, msg_sz, sz_attribute_reports), 3) + var next_elemnts = [] + if data.attribute_reports != nil + next_elemnts = data.attribute_reports[elements .. ] + data.attribute_reports = data.attribute_reports[0 .. elements - 1] + data.more_chunked_messages = (size(next_elemnts) > 0) + else + data.more_chunked_messages = false + end if was_chunked tasmota.log(string.format("MTR: .Read_Attr next_chunk exch=%i", self.get_exchangeid()), 3) @@ -251,9 +226,9 @@ class Matter_IM_ReportData : Matter_IM_Message data.attribute_reports = next_elemnts tasmota.log(string.format("MTR: to_be_sent_later size=%i exch=%i", size(data.attribute_reports), resp.exchange_id), 3) self.ready = false # wait for Status Report before continuing sending - return false # keep alive + # keep alive else - return true # finished, remove + self.finish = true # finished, remove end end @@ -264,7 +239,7 @@ matter.IM_ReportData = Matter_IM_ReportData ################################################################################# # Matter_IM_ReportDataSubscribed # -# Main difference is that we are the spontaneous inititor +# Main difference is that we are the spontaneous initiator ################################################################################# class Matter_IM_ReportDataSubscribed : Matter_IM_ReportData var sub # subscription object @@ -326,14 +301,17 @@ class Matter_IM_ReportDataSubscribed : Matter_IM_ReportData def send_im(responder) import string tasmota.log(string.format("MTR: IM_ReportDataSubscribed send sub=%i exch=%i ready=%i", self.sub.subscription_id, self.resp.exchange_id, self.ready ? 1 : 0), 3) + tasmota.log(string.format("MTR: ReportDataSubscribed::send_im size(self.data.attribute_reports)=%i ready=%s report_data_phase=%s", size(self.data.attribute_reports), str(self.ready), str(self.report_data_phase)), 3) if !self.ready return false end - if size(self.data.attribute_reports) > 0 + if size(self.data.attribute_reports) > 0 # do we have still attributes to send if self.report_data_phase - var ret = super(self).send_im(responder) - if !ret return false end # ReportData needs to continue + super(self).send_im(responder) + tasmota.log(string.format("MTR: ReportDataSubscribed::send_im called super finish=%i", self.finish), 3) + if !self.finish return end # ReportData needs to continue # ReportData is finished self.report_data_phase = false - return false + self.ready = false + self.finish = false # while a ReadReport would stop here, we continue for subscription else # send a simple ACK var resp = self.resp.build_standalone_ack(false) @@ -342,7 +320,7 @@ class Matter_IM_ReportDataSubscribed : Matter_IM_ReportData tasmota.log(string.format("MTR: " + str(e) + ", " + str(m) + end + end + +end +matter.Path = Matter_Path 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 615fccd4d..18c27b534 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM.h @@ -6,776 +6,6 @@ extern const bclass be_class_Matter_IM; -/******************************************************************** -** Solidified function: subscribe_request -********************************************************************/ -be_local_closure(Matter_IM_subscribe_request, /* name */ - be_nested_proto( - 19, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[33]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(matter), - /* K2 */ be_nested_str_weak(SubscribeRequestMessage), - /* K3 */ be_nested_str_weak(from_TLV), - /* K4 */ be_nested_str_weak(keep_subscriptions), - /* K5 */ be_nested_str_weak(subs_shop), - /* K6 */ be_nested_str_weak(remove_by_session), - /* K7 */ be_nested_str_weak(session), - /* K8 */ be_nested_str_weak(tasmota), - /* K9 */ be_nested_str_weak(log), - /* K10 */ be_nested_str_weak(MTR_X3A_X20received_X20SubscribeRequestMessage_X3D), - /* K11 */ be_const_int(3), - /* K12 */ be_nested_str_weak(new_subscription), - /* K13 */ be_nested_str_weak(Path), - /* K14 */ be_nested_str_weak(attributes_requests), - /* K15 */ be_nested_str_weak(endpoint), - /* K16 */ be_nested_str_weak(cluster), - /* K17 */ be_nested_str_weak(attribute), - /* K18 */ be_nested_str_weak(push), - /* K19 */ be_nested_str_weak(stop_iteration), - /* K20 */ be_nested_str_weak(format), - /* K21 */ be_nested_str_weak(MTR_X3A_X20_X3ESubscribe_X20_X28_X256i_X29_X20_X25s_X20_X28min_X3D_X25i_X2C_X20max_X3D_X25i_X2C_X20keep_X3D_X25i_X29_X20sub_X3D_X25i), - /* K22 */ be_nested_str_weak(local_session_id), - /* K23 */ be_nested_str_weak(concat), - /* K24 */ be_nested_str_weak(_X20), - /* K25 */ be_nested_str_weak(min_interval), - /* K26 */ be_nested_str_weak(max_interval), - /* K27 */ be_const_int(1), - /* K28 */ be_const_int(0), - /* K29 */ be_nested_str_weak(subscription_id), - /* K30 */ be_const_int(2), - /* K31 */ be_nested_str_weak(_inner_process_read_request), - /* K32 */ be_nested_str_weak(send_subscribe_response), - }), - be_str_weak(subscribe_request), - &be_const_str_solidified, - ( &(const binstruction[86]) { /* code */ - 0xA40E0000, // 0000 IMPORT R3 K0 - 0xB8120200, // 0001 GETNGBL R4 K1 - 0x8C100902, // 0002 GETMET R4 R4 K2 - 0x7C100200, // 0003 CALL R4 1 - 0x8C100903, // 0004 GETMET R4 R4 K3 - 0x5C180400, // 0005 MOVE R6 R2 - 0x7C100400, // 0006 CALL R4 2 - 0x88140904, // 0007 GETMBR R5 R4 K4 - 0x74160003, // 0008 JMPT R5 #000D - 0x88140105, // 0009 GETMBR R5 R0 K5 - 0x8C140B06, // 000A GETMET R5 R5 K6 - 0x881C0307, // 000B GETMBR R7 R1 K7 - 0x7C140400, // 000C CALL R5 2 - 0xB8161000, // 000D GETNGBL R5 K8 - 0x8C140B09, // 000E GETMET R5 R5 K9 - 0x601C0008, // 000F GETGBL R7 G8 - 0x5C200800, // 0010 MOVE R8 R4 - 0x7C1C0200, // 0011 CALL R7 1 - 0x001E1407, // 0012 ADD R7 K10 R7 - 0x5820000B, // 0013 LDCONST R8 K11 - 0x7C140600, // 0014 CALL R5 3 - 0x88140105, // 0015 GETMBR R5 R0 K5 - 0x8C140B0C, // 0016 GETMET R5 R5 K12 - 0x881C0307, // 0017 GETMBR R7 R1 K7 - 0x5C200800, // 0018 MOVE R8 R4 - 0x7C140600, // 0019 CALL R5 3 - 0x60180012, // 001A GETGBL R6 G18 - 0x7C180000, // 001B CALL R6 0 - 0xB81E0200, // 001C GETNGBL R7 K1 - 0x8C1C0F0D, // 001D GETMET R7 R7 K13 - 0x7C1C0200, // 001E CALL R7 1 - 0x60200010, // 001F GETGBL R8 G16 - 0x8824090E, // 0020 GETMBR R9 R4 K14 - 0x7C200200, // 0021 CALL R8 1 - 0xA802000D, // 0022 EXBLK 0 #0031 - 0x5C241000, // 0023 MOVE R9 R8 - 0x7C240000, // 0024 CALL R9 0 - 0x8828130F, // 0025 GETMBR R10 R9 K15 - 0x901E1E0A, // 0026 SETMBR R7 K15 R10 - 0x88281310, // 0027 GETMBR R10 R9 K16 - 0x901E200A, // 0028 SETMBR R7 K16 R10 - 0x88281311, // 0029 GETMBR R10 R9 K17 - 0x901E220A, // 002A SETMBR R7 K17 R10 - 0x8C280D12, // 002B GETMET R10 R6 K18 - 0x60300008, // 002C GETGBL R12 G8 - 0x5C340E00, // 002D MOVE R13 R7 - 0x7C300200, // 002E CALL R12 1 - 0x7C280400, // 002F CALL R10 2 - 0x7001FFF1, // 0030 JMP #0023 - 0x58200013, // 0031 LDCONST R8 K19 - 0xAC200200, // 0032 CATCH R8 1 0 - 0xB0080000, // 0033 RAISE 2 R0 R0 - 0xB8221000, // 0034 GETNGBL R8 K8 - 0x8C201109, // 0035 GETMET R8 R8 K9 - 0x8C280714, // 0036 GETMET R10 R3 K20 - 0x58300015, // 0037 LDCONST R12 K21 - 0x88340307, // 0038 GETMBR R13 R1 K7 - 0x88341B16, // 0039 GETMBR R13 R13 K22 - 0x8C380D17, // 003A GETMET R14 R6 K23 - 0x58400018, // 003B LDCONST R16 K24 - 0x7C380400, // 003C CALL R14 2 - 0x883C0B19, // 003D GETMBR R15 R5 K25 - 0x88400B1A, // 003E GETMBR R16 R5 K26 - 0x88440904, // 003F GETMBR R17 R4 K4 - 0x78460001, // 0040 JMPF R17 #0043 - 0x5844001B, // 0041 LDCONST R17 K27 - 0x70020000, // 0042 JMP #0044 - 0x5844001C, // 0043 LDCONST R17 K28 - 0x88480B1D, // 0044 GETMBR R18 R5 K29 - 0x7C281000, // 0045 CALL R10 8 - 0x582C001E, // 0046 LDCONST R11 K30 - 0x7C200600, // 0047 CALL R8 3 - 0x8C20011F, // 0048 GETMET R8 R0 K31 - 0x88280307, // 0049 GETMBR R10 R1 K7 - 0x5C2C0800, // 004A MOVE R11 R4 - 0x50300200, // 004B LDBOOL R12 1 0 - 0x7C200800, // 004C CALL R8 4 - 0x88240B1D, // 004D GETMBR R9 R5 K29 - 0x90223A09, // 004E SETMBR R8 K29 R9 - 0x8C240120, // 004F GETMET R9 R0 K32 - 0x5C2C0200, // 0050 MOVE R11 R1 - 0x5C301000, // 0051 MOVE R12 R8 - 0x5C340A00, // 0052 MOVE R13 R5 - 0x7C240800, // 0053 CALL R9 4 - 0x50240200, // 0054 LDBOOL R9 1 0 - 0x80041200, // 0055 RET 1 R9 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: send_subscribe_response -********************************************************************/ -be_local_closure(Matter_IM_send_subscribe_response, /* name */ - be_nested_proto( - 11, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(send_queue), - /* K1 */ be_nested_str_weak(push), - /* K2 */ be_nested_str_weak(matter), - /* K3 */ be_nested_str_weak(IM_SubscribeResponse), - }), - be_str_weak(send_subscribe_response), - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0x88100100, // 0000 GETMBR R4 R0 K0 - 0x8C100901, // 0001 GETMET R4 R4 K1 - 0xB81A0400, // 0002 GETNGBL R6 K2 - 0x8C180D03, // 0003 GETMET R6 R6 K3 - 0x5C200200, // 0004 MOVE R8 R1 - 0x5C240400, // 0005 MOVE R9 R2 - 0x5C280600, // 0006 MOVE R10 R3 - 0x7C180800, // 0007 CALL R6 4 - 0x7C100400, // 0008 CALL R4 2 - 0x80000000, // 0009 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: send_write_response -********************************************************************/ -be_local_closure(Matter_IM_send_write_response, /* name */ - be_nested_proto( - 9, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(send_queue), - /* K1 */ be_nested_str_weak(push), - /* K2 */ be_nested_str_weak(matter), - /* K3 */ be_nested_str_weak(IM_WriteResponse), - }), - be_str_weak(send_write_response), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x880C0100, // 0000 GETMBR R3 R0 K0 - 0x8C0C0701, // 0001 GETMET R3 R3 K1 - 0xB8160400, // 0002 GETNGBL R5 K2 - 0x8C140B03, // 0003 GETMET R5 R5 K3 - 0x5C1C0200, // 0004 MOVE R7 R1 - 0x5C200400, // 0005 MOVE R8 R2 - 0x7C140600, // 0006 CALL R5 3 - 0x7C0C0400, // 0007 CALL R3 2 - 0x80000000, // 0008 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: process_read_request -********************************************************************/ -be_local_closure(Matter_IM_process_read_request, /* name */ - be_nested_proto( - 9, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 7]) { /* constants */ - /* K0 */ be_nested_str_weak(matter), - /* K1 */ be_nested_str_weak(ReadRequestMessage), - /* K2 */ be_nested_str_weak(from_TLV), - /* K3 */ be_nested_str_weak(attributes_requests), - /* K4 */ be_nested_str_weak(_inner_process_read_request), - /* K5 */ be_nested_str_weak(session), - /* K6 */ be_nested_str_weak(send_report_data), - }), - be_str_weak(process_read_request), - &be_const_str_solidified, - ( &(const binstruction[20]) { /* code */ - 0xB80E0000, // 0000 GETNGBL R3 K0 - 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 - 0x88100703, // 0006 GETMBR R4 R3 K3 - 0x4C140000, // 0007 LDNIL R5 - 0x20100805, // 0008 NE R4 R4 R5 - 0x78120007, // 0009 JMPF R4 #0012 - 0x8C100104, // 000A GETMET R4 R0 K4 - 0x88180305, // 000B GETMBR R6 R1 K5 - 0x5C1C0600, // 000C MOVE R7 R3 - 0x7C100600, // 000D CALL R4 3 - 0x8C140106, // 000E GETMET R5 R0 K6 - 0x5C1C0200, // 000F MOVE R7 R1 - 0x5C200800, // 0010 MOVE R8 R4 - 0x7C140600, // 0011 CALL R5 3 - 0x50100200, // 0012 LDBOOL R4 1 0 - 0x80040800, // 0013 RET 1 R4 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: process_write_response -********************************************************************/ -be_local_closure(Matter_IM_process_write_response, /* name */ - be_nested_proto( - 9, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 8]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(matter), - /* K2 */ be_nested_str_weak(WriteResponseMessage), - /* K3 */ be_nested_str_weak(from_TLV), - /* K4 */ be_nested_str_weak(tasmota), - /* K5 */ be_nested_str_weak(log), - /* K6 */ be_nested_str_weak(MTR_X3A_X20received_X20WriteResponseMessage_X3D), - /* K7 */ be_const_int(2), - }), - be_str_weak(process_write_response), - &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ - 0xA40E0000, // 0000 IMPORT R3 K0 - 0xB8120200, // 0001 GETNGBL R4 K1 - 0x8C100902, // 0002 GETMET R4 R4 K2 - 0x7C100200, // 0003 CALL R4 1 - 0x8C100903, // 0004 GETMET R4 R4 K3 - 0x5C180400, // 0005 MOVE R6 R2 - 0x7C100400, // 0006 CALL R4 2 - 0xB8160800, // 0007 GETNGBL R5 K4 - 0x8C140B05, // 0008 GETMET R5 R5 K5 - 0x601C0008, // 0009 GETGBL R7 G8 - 0x5C200800, // 000A MOVE R8 R4 - 0x7C1C0200, // 000B CALL R7 1 - 0x001E0C07, // 000C ADD R7 K6 R7 - 0x58200007, // 000D LDCONST R8 K7 - 0x7C140600, // 000E CALL R5 3 - 0x50140000, // 000F LDBOOL R5 0 0 - 0x80040A00, // 0010 RET 1 R5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: process_status_response -********************************************************************/ -be_local_closure(Matter_IM_process_status_response, /* name */ - be_nested_proto( - 13, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[19]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(findsubval), - /* K2 */ be_const_int(0), - /* K3 */ be_nested_str_weak(find_sendqueue_by_exchangeid), - /* K4 */ be_nested_str_weak(exchange_id), - /* K5 */ be_nested_str_weak(matter), - /* K6 */ be_nested_str_weak(SUCCESS), - /* K7 */ be_nested_str_weak(status_ok_received), - /* K8 */ be_nested_str_weak(tasmota), - /* K9 */ be_nested_str_weak(log), - /* K10 */ be_nested_str_weak(format), - /* K11 */ be_nested_str_weak(MTR_X3A_X20_X3EOK_X20_X20_X20_X20_X20_X20_X20_X20_X28_X256i_X29_X20exch_X3D_X25i_X20not_X20found), - /* K12 */ be_nested_str_weak(session), - /* K13 */ be_nested_str_weak(local_session_id), - /* K14 */ be_const_int(3), - /* K15 */ be_nested_str_weak(MTR_X3A_X20_X3EStatus_X20_X20_X20_X20ERROR_X20_X3D_X200x_X2502X), - /* K16 */ be_const_int(2), - /* K17 */ be_nested_str_weak(status_error_received), - /* K18 */ be_nested_str_weak(remove_sendqueue_by_exchangeid), - }), - be_str_weak(process_status_response), - &be_const_str_solidified, - ( &(const binstruction[46]) { /* code */ - 0xA40E0000, // 0000 IMPORT R3 K0 - 0x8C100501, // 0001 GETMET R4 R2 K1 - 0x58180002, // 0002 LDCONST R6 K2 - 0x541E00FE, // 0003 LDINT R7 255 - 0x7C100600, // 0004 CALL R4 3 - 0x8C140103, // 0005 GETMET R5 R0 K3 - 0x881C0304, // 0006 GETMBR R7 R1 K4 - 0x7C140400, // 0007 CALL R5 2 - 0xB81A0A00, // 0008 GETNGBL R6 K5 - 0x88180D06, // 0009 GETMBR R6 R6 K6 - 0x1C180806, // 000A EQ R6 R4 R6 - 0x781A0010, // 000B JMPF R6 #001D - 0x78160004, // 000C JMPF R5 #0012 - 0x8C180B07, // 000D GETMET R6 R5 K7 - 0x5C200200, // 000E MOVE R8 R1 - 0x7C180400, // 000F CALL R6 2 - 0x80040C00, // 0010 RET 1 R6 - 0x70020009, // 0011 JMP #001C - 0xB81A1000, // 0012 GETNGBL R6 K8 - 0x8C180D09, // 0013 GETMET R6 R6 K9 - 0x8C20070A, // 0014 GETMET R8 R3 K10 - 0x5828000B, // 0015 LDCONST R10 K11 - 0x882C030C, // 0016 GETMBR R11 R1 K12 - 0x882C170D, // 0017 GETMBR R11 R11 K13 - 0x88300304, // 0018 GETMBR R12 R1 K4 - 0x7C200800, // 0019 CALL R8 4 - 0x5824000E, // 001A LDCONST R9 K14 - 0x7C180600, // 001B CALL R6 3 - 0x7002000E, // 001C JMP #002C - 0xB81A1000, // 001D GETNGBL R6 K8 - 0x8C180D09, // 001E GETMET R6 R6 K9 - 0x8C20070A, // 001F GETMET R8 R3 K10 - 0x5828000F, // 0020 LDCONST R10 K15 - 0x5C2C0800, // 0021 MOVE R11 R4 - 0x7C200600, // 0022 CALL R8 3 - 0x58240010, // 0023 LDCONST R9 K16 - 0x7C180600, // 0024 CALL R6 3 - 0x78160005, // 0025 JMPF R5 #002C - 0x8C180B11, // 0026 GETMET R6 R5 K17 - 0x5C200200, // 0027 MOVE R8 R1 - 0x7C180400, // 0028 CALL R6 2 - 0x8C180112, // 0029 GETMET R6 R0 K18 - 0x88200304, // 002A GETMBR R8 R1 K4 - 0x7C180400, // 002B CALL R6 2 - 0x50180000, // 002C LDBOOL R6 0 0 - 0x80040C00, // 002D RET 1 R6 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: process_write_request -********************************************************************/ -be_local_closure(Matter_IM_process_write_request, /* name */ - be_nested_proto( - 20, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 2]) { - be_nested_proto( - 19, /* nstack */ - 5, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 1), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[26]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(matter), - /* K2 */ be_nested_str_weak(get_attribute_name), - /* K3 */ be_nested_str_weak(cluster), - /* K4 */ be_nested_str_weak(attribute), - /* K5 */ be_nested_str_weak(_X20_X28), - /* K6 */ be_nested_str_weak(_X29), - /* K7 */ be_nested_str_weak(), - /* K8 */ be_nested_str_weak(status), - /* K9 */ be_nested_str_weak(UNSUPPORTED_WRITE), - /* K10 */ be_nested_str_weak(write_attribute), - /* K11 */ be_nested_str_weak(session), - /* K12 */ be_nested_str_weak(SUCCESS), - /* K13 */ be_nested_str_weak(AttributeStatusIB), - /* K14 */ be_nested_str_weak(path), - /* K15 */ be_nested_str_weak(AttributePathIB), - /* K16 */ be_nested_str_weak(StatusIB), - /* K17 */ be_nested_str_weak(endpoint), - /* K18 */ be_nested_str_weak(write_responses), - /* K19 */ be_nested_str_weak(push), - /* K20 */ be_nested_str_weak(tasmota), - /* K21 */ be_nested_str_weak(log), - /* K22 */ be_nested_str_weak(format), - /* K23 */ be_nested_str_weak(MTR_X3A_X20Write_Attr_X20_X25s_X25s_X20_X2D_X20STATUS_X3A_X200x_X2502X_X20_X25s), - /* K24 */ be_const_int(2), - /* K25 */ be_nested_str_weak(MTR_X3A_X20Write_Attr_X20_X25s_X25s_X20_X2D_X20IGNORED), - }), - be_str_weak(write_single_attribute), - &be_const_str_solidified, - ( &(const binstruction[97]) { /* code */ - 0xA4160000, // 0000 IMPORT R5 K0 - 0xB81A0200, // 0001 GETNGBL R6 K1 - 0x8C180D02, // 0002 GETMET R6 R6 K2 - 0x88200503, // 0003 GETMBR R8 R2 K3 - 0x88240504, // 0004 GETMBR R9 R2 K4 - 0x7C180600, // 0005 CALL R6 3 - 0x781A0002, // 0006 JMPF R6 #000A - 0x001E0A06, // 0007 ADD R7 K5 R6 - 0x001C0F06, // 0008 ADD R7 R7 K6 - 0x70020000, // 0009 JMP #000B - 0x581C0007, // 000A LDCONST R7 K7 - 0x5C180E00, // 000B MOVE R6 R7 - 0xB81E0200, // 000C GETNGBL R7 K1 - 0x881C0F09, // 000D GETMBR R7 R7 K9 - 0x900A1007, // 000E SETMBR R2 K8 R7 - 0x4C1C0000, // 000F LDNIL R7 - 0x201C0207, // 0010 NE R7 R1 R7 - 0x781E0006, // 0011 JMPF R7 #0019 - 0x8C1C030A, // 0012 GETMET R7 R1 K10 - 0x68240000, // 0013 GETUPV R9 U0 - 0x8824130B, // 0014 GETMBR R9 R9 K11 - 0x5C280400, // 0015 MOVE R10 R2 - 0x5C2C0600, // 0016 MOVE R11 R3 - 0x7C1C0800, // 0017 CALL R7 4 - 0x70020000, // 0018 JMP #001A - 0x4C1C0000, // 0019 LDNIL R7 - 0x781E0002, // 001A JMPF R7 #001E - 0xB8220200, // 001B GETNGBL R8 K1 - 0x8820110C, // 001C GETMBR R8 R8 K12 - 0x900A1008, // 001D SETMBR R2 K8 R8 - 0x88200508, // 001E GETMBR R8 R2 K8 - 0x4C240000, // 001F LDNIL R9 - 0x20201009, // 0020 NE R8 R8 R9 - 0x78220032, // 0021 JMPF R8 #0055 - 0x78120030, // 0022 JMPF R4 #0054 - 0xB8220200, // 0023 GETNGBL R8 K1 - 0x8C20110D, // 0024 GETMET R8 R8 K13 - 0x7C200200, // 0025 CALL R8 1 - 0xB8260200, // 0026 GETNGBL R9 K1 - 0x8C24130F, // 0027 GETMET R9 R9 K15 - 0x7C240200, // 0028 CALL R9 1 - 0x90221C09, // 0029 SETMBR R8 K14 R9 - 0xB8260200, // 002A GETNGBL R9 K1 - 0x8C241310, // 002B GETMET R9 R9 K16 - 0x7C240200, // 002C CALL R9 1 - 0x90221009, // 002D SETMBR R8 K8 R9 - 0x8824110E, // 002E GETMBR R9 R8 K14 - 0x88280511, // 002F GETMBR R10 R2 K17 - 0x9026220A, // 0030 SETMBR R9 K17 R10 - 0x8824110E, // 0031 GETMBR R9 R8 K14 - 0x88280503, // 0032 GETMBR R10 R2 K3 - 0x9026060A, // 0033 SETMBR R9 K3 R10 - 0x8824110E, // 0034 GETMBR R9 R8 K14 - 0x88280504, // 0035 GETMBR R10 R2 K4 - 0x9026080A, // 0036 SETMBR R9 K4 R10 - 0x88241108, // 0037 GETMBR R9 R8 K8 - 0x88280508, // 0038 GETMBR R10 R2 K8 - 0x9026100A, // 0039 SETMBR R9 K8 R10 - 0x88240112, // 003A GETMBR R9 R0 K18 - 0x8C241313, // 003B GETMET R9 R9 K19 - 0x5C2C1000, // 003C MOVE R11 R8 - 0x7C240400, // 003D CALL R9 2 - 0xB8262800, // 003E GETNGBL R9 K20 - 0x8C241315, // 003F GETMET R9 R9 K21 - 0x8C2C0B16, // 0040 GETMET R11 R5 K22 - 0x58340017, // 0041 LDCONST R13 K23 - 0x60380008, // 0042 GETGBL R14 G8 - 0x5C3C0400, // 0043 MOVE R15 R2 - 0x7C380200, // 0044 CALL R14 1 - 0x5C3C0C00, // 0045 MOVE R15 R6 - 0x88400508, // 0046 GETMBR R16 R2 K8 - 0x88440508, // 0047 GETMBR R17 R2 K8 - 0xB84A0200, // 0048 GETNGBL R18 K1 - 0x8848250C, // 0049 GETMBR R18 R18 K12 - 0x1C442212, // 004A EQ R17 R17 R18 - 0x78460001, // 004B JMPF R17 #004E - 0x5844000C, // 004C LDCONST R17 K12 - 0x70020000, // 004D JMP #004F - 0x58440007, // 004E LDCONST R17 K7 - 0x7C2C0C00, // 004F CALL R11 6 - 0x58300018, // 0050 LDCONST R12 K24 - 0x7C240600, // 0051 CALL R9 3 - 0x50240200, // 0052 LDBOOL R9 1 0 - 0x80041200, // 0053 RET 1 R9 - 0x7002000A, // 0054 JMP #0060 - 0xB8222800, // 0055 GETNGBL R8 K20 - 0x8C201115, // 0056 GETMET R8 R8 K21 - 0x8C280B16, // 0057 GETMET R10 R5 K22 - 0x58300019, // 0058 LDCONST R12 K25 - 0x60340008, // 0059 GETGBL R13 G8 - 0x5C380400, // 005A MOVE R14 R2 - 0x7C340200, // 005B CALL R13 1 - 0x5C380C00, // 005C MOVE R14 R6 - 0x7C280800, // 005D CALL R10 4 - 0x582C0018, // 005E LDCONST R11 K24 - 0x7C200600, // 005F CALL R8 3 - 0x80000000, // 0060 RET 0 - }) - ), - be_nested_proto( - 9, /* nstack */ - 3, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 3]) { /* upvals */ - be_local_const_upval(1, 7), - be_local_const_upval(1, 9), - be_local_const_upval(1, 13), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x680C0000, // 0000 GETUPV R3 U0 - 0x68100001, // 0001 GETUPV R4 U1 - 0x5C140000, // 0002 MOVE R5 R0 - 0x5C180200, // 0003 MOVE R6 R1 - 0x681C0002, // 0004 GETUPV R7 U2 - 0x5C200400, // 0005 MOVE R8 R2 - 0x7C0C0A00, // 0006 CALL R3 5 - 0x80040600, // 0007 RET 1 R3 - }) - ), - }), - 1, /* has constants */ - ( &(const bvalue[36]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(matter), - /* K2 */ be_nested_str_weak(WriteRequestMessage), - /* K3 */ be_nested_str_weak(from_TLV), - /* K4 */ be_nested_str_weak(tasmota), - /* K5 */ be_nested_str_weak(log), - /* K6 */ be_nested_str_weak(MTR_X3A_X20received_X20WriteRequestMessage_X3D), - /* K7 */ be_const_int(3), - /* K8 */ be_nested_str_weak(suppress_response), - /* K9 */ be_nested_str_weak(device), - /* K10 */ be_nested_str_weak(get_active_endpoints), - /* K11 */ be_nested_str_weak(MTR_X3A_X20IM_X3Awrite_request_X20processing_X20start), - /* K12 */ be_nested_str_weak(Path), - /* K13 */ be_nested_str_weak(write_requests), - /* K14 */ be_nested_str_weak(WriteResponseMessage), - /* K15 */ be_nested_str_weak(write_responses), - /* K16 */ be_nested_str_weak(path), - /* K17 */ be_nested_str_weak(data), - /* K18 */ be_nested_str_weak(endpoint), - /* K19 */ be_nested_str_weak(cluster), - /* K20 */ be_nested_str_weak(attribute), - /* K21 */ be_nested_str_weak(status), - /* K22 */ be_nested_str_weak(UNSUPPORTED_ATTRIBUTE), - /* K23 */ be_nested_str_weak(INVALID_ACTION), - /* K24 */ be_nested_str_weak(get_attribute_name), - /* K25 */ be_nested_str_weak(MTR_X3A_X20Write_Attr_X20), - /* K26 */ be_nested_str_weak(_X20_X28), - /* K27 */ be_nested_str_weak(_X29), - /* K28 */ be_nested_str_weak(), - /* K29 */ be_const_int(2), - /* K30 */ be_nested_str_weak(process_attribute_expansion), - /* K31 */ be_nested_str_weak(stop_iteration), - /* K32 */ be_nested_str_weak(MTR_X3A_X20ReportWriteMessage_X3D), - /* K33 */ be_nested_str_weak(MTR_X3A_X20ReportWriteMessageTLV_X3D), - /* K34 */ be_nested_str_weak(to_TLV), - /* K35 */ be_nested_str_weak(send_write_response), - }), - be_str_weak(process_write_request), - &be_const_str_solidified, - ( &(const binstruction[134]) { /* code */ - 0xA40E0000, // 0000 IMPORT R3 K0 - 0xB8120200, // 0001 GETNGBL R4 K1 - 0x8C100902, // 0002 GETMET R4 R4 K2 - 0x7C100200, // 0003 CALL R4 1 - 0x8C100903, // 0004 GETMET R4 R4 K3 - 0x5C180400, // 0005 MOVE R6 R2 - 0x7C100400, // 0006 CALL R4 2 - 0xB8160800, // 0007 GETNGBL R5 K4 - 0x8C140B05, // 0008 GETMET R5 R5 K5 - 0x601C0008, // 0009 GETGBL R7 G8 - 0x5C200800, // 000A MOVE R8 R4 - 0x7C1C0200, // 000B CALL R7 1 - 0x001E0C07, // 000C ADD R7 K6 R7 - 0x58200007, // 000D LDCONST R8 K7 - 0x7C140600, // 000E CALL R5 3 - 0x88140908, // 000F GETMBR R5 R4 K8 - 0x88180109, // 0010 GETMBR R6 R0 K9 - 0x8C180D0A, // 0011 GETMET R6 R6 K10 - 0x7C180200, // 0012 CALL R6 1 - 0x841C0000, // 0013 CLOSURE R7 P0 - 0xB8220800, // 0014 GETNGBL R8 K4 - 0x8C201105, // 0015 GETMET R8 R8 K5 - 0x5828000B, // 0016 LDCONST R10 K11 - 0x542E0003, // 0017 LDINT R11 4 - 0x7C200600, // 0018 CALL R8 3 - 0xB8220200, // 0019 GETNGBL R8 K1 - 0x8C20110C, // 001A GETMET R8 R8 K12 - 0x7C200200, // 001B CALL R8 1 - 0x8824090D, // 001C GETMBR R9 R4 K13 - 0x4C280000, // 001D LDNIL R10 - 0x2024120A, // 001E NE R9 R9 R10 - 0x78260062, // 001F JMPF R9 #0083 - 0xB8260200, // 0020 GETNGBL R9 K1 - 0x8C24130E, // 0021 GETMET R9 R9 K14 - 0x7C240200, // 0022 CALL R9 1 - 0x60280012, // 0023 GETGBL R10 G18 - 0x7C280000, // 0024 CALL R10 0 - 0x90261E0A, // 0025 SETMBR R9 K15 R10 - 0x60280010, // 0026 GETGBL R10 G16 - 0x882C090D, // 0027 GETMBR R11 R4 K13 - 0x7C280200, // 0028 CALL R10 1 - 0xA802003D, // 0029 EXBLK 0 #0068 - 0x5C2C1400, // 002A MOVE R11 R10 - 0x7C2C0000, // 002B CALL R11 0 - 0x88301710, // 002C GETMBR R12 R11 K16 - 0x88341711, // 002D GETMBR R13 R11 K17 - 0x88381912, // 002E GETMBR R14 R12 K18 - 0x9022240E, // 002F SETMBR R8 K18 R14 - 0x88381913, // 0030 GETMBR R14 R12 K19 - 0x9022260E, // 0031 SETMBR R8 K19 R14 - 0x88381914, // 0032 GETMBR R14 R12 K20 - 0x9022280E, // 0033 SETMBR R8 K20 R14 - 0xB83A0200, // 0034 GETNGBL R14 K1 - 0x88381D16, // 0035 GETMBR R14 R14 K22 - 0x90222A0E, // 0036 SETMBR R8 K21 R14 - 0x88381113, // 0037 GETMBR R14 R8 K19 - 0x4C3C0000, // 0038 LDNIL R15 - 0x1C381C0F, // 0039 EQ R14 R14 R15 - 0x743A0003, // 003A JMPT R14 #003F - 0x88381114, // 003B GETMBR R14 R8 K20 - 0x4C3C0000, // 003C LDNIL R15 - 0x1C381C0F, // 003D EQ R14 R14 R15 - 0x783A000A, // 003E JMPF R14 #004A - 0xB83A0200, // 003F GETNGBL R14 K1 - 0x88381D17, // 0040 GETMBR R14 R14 K23 - 0x90222A0E, // 0041 SETMBR R8 K21 R14 - 0x5C380E00, // 0042 MOVE R14 R7 - 0x5C3C1200, // 0043 MOVE R15 R9 - 0x4C400000, // 0044 LDNIL R16 - 0x5C441000, // 0045 MOVE R17 R8 - 0x4C480000, // 0046 LDNIL R18 - 0x504C0200, // 0047 LDBOOL R19 1 0 - 0x7C380A00, // 0048 CALL R14 5 - 0x7001FFDF, // 0049 JMP #002A - 0x88381112, // 004A GETMBR R14 R8 K18 - 0x4C3C0000, // 004B LDNIL R15 - 0x1C381C0F, // 004C EQ R14 R14 R15 - 0x783A0012, // 004D JMPF R14 #0061 - 0xB83A0200, // 004E GETNGBL R14 K1 - 0x8C381D18, // 004F GETMET R14 R14 K24 - 0x88401113, // 0050 GETMBR R16 R8 K19 - 0x88441114, // 0051 GETMBR R17 R8 K20 - 0x7C380600, // 0052 CALL R14 3 - 0xB83E0800, // 0053 GETNGBL R15 K4 - 0x8C3C1F05, // 0054 GETMET R15 R15 K5 - 0x60440008, // 0055 GETGBL R17 G8 - 0x5C481000, // 0056 MOVE R18 R8 - 0x7C440200, // 0057 CALL R17 1 - 0x00463211, // 0058 ADD R17 K25 R17 - 0x783A0002, // 0059 JMPF R14 #005D - 0x004A340E, // 005A ADD R18 K26 R14 - 0x0048251B, // 005B ADD R18 R18 K27 - 0x70020000, // 005C JMP #005E - 0x5848001C, // 005D LDCONST R18 K28 - 0x00442212, // 005E ADD R17 R17 R18 - 0x5848001D, // 005F LDCONST R18 K29 - 0x7C3C0600, // 0060 CALL R15 3 - 0x88380109, // 0061 GETMBR R14 R0 K9 - 0x8C381D1E, // 0062 GETMET R14 R14 K30 - 0x5C401000, // 0063 MOVE R16 R8 - 0x84440001, // 0064 CLOSURE R17 P1 - 0x7C380600, // 0065 CALL R14 3 - 0xA0280000, // 0066 CLOSE R10 - 0x7001FFC1, // 0067 JMP #002A - 0x5828001F, // 0068 LDCONST R10 K31 - 0xAC280200, // 0069 CATCH R10 1 0 - 0xB0080000, // 006A RAISE 2 R0 R0 - 0xB82A0800, // 006B GETNGBL R10 K4 - 0x8C281505, // 006C GETMET R10 R10 K5 - 0x60300008, // 006D GETGBL R12 G8 - 0x5C341200, // 006E MOVE R13 R9 - 0x7C300200, // 006F CALL R12 1 - 0x0032400C, // 0070 ADD R12 K32 R12 - 0x54360003, // 0071 LDINT R13 4 - 0x7C280600, // 0072 CALL R10 3 - 0xB82A0800, // 0073 GETNGBL R10 K4 - 0x8C281505, // 0074 GETMET R10 R10 K5 - 0x60300008, // 0075 GETGBL R12 G8 - 0x8C341322, // 0076 GETMET R13 R9 K34 - 0x7C340200, // 0077 CALL R13 1 - 0x7C300200, // 0078 CALL R12 1 - 0x0032420C, // 0079 ADD R12 K33 R12 - 0x58340007, // 007A LDCONST R13 K7 - 0x7C280600, // 007B CALL R10 3 - 0x5C280A00, // 007C MOVE R10 R5 - 0x742A0003, // 007D JMPT R10 #0082 - 0x8C280123, // 007E GETMET R10 R0 K35 - 0x5C300200, // 007F MOVE R12 R1 - 0x5C341200, // 0080 MOVE R13 R9 - 0x7C280600, // 0081 CALL R10 3 - 0xA0240000, // 0082 CLOSE R9 - 0x50240200, // 0083 LDBOOL R9 1 0 - 0xA0000000, // 0084 CLOSE R0 - 0x80041200, // 0085 RET 1 R9 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: expire_sendqueue ********************************************************************/ @@ -832,713 +62,6 @@ be_local_closure(Matter_IM_expire_sendqueue, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: send_invoke_response -********************************************************************/ -be_local_closure(Matter_IM_send_invoke_response, /* name */ - be_nested_proto( - 9, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(send_queue), - /* K1 */ be_nested_str_weak(push), - /* K2 */ be_nested_str_weak(matter), - /* K3 */ be_nested_str_weak(IM_InvokeResponse), - }), - be_str_weak(send_invoke_response), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x880C0100, // 0000 GETMBR R3 R0 K0 - 0x8C0C0701, // 0001 GETMET R3 R3 K1 - 0xB8160400, // 0002 GETNGBL R5 K2 - 0x8C140B03, // 0003 GETMET R5 R5 K3 - 0x5C1C0200, // 0004 MOVE R7 R1 - 0x5C200400, // 0005 MOVE R8 R2 - 0x7C140600, // 0006 CALL R5 3 - 0x7C0C0400, // 0007 CALL R3 2 - 0x80000000, // 0008 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: find_sendqueue_by_exchangeid -********************************************************************/ -be_local_closure(Matter_IM_find_sendqueue_by_exchangeid, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_const_int(0), - /* K1 */ be_nested_str_weak(send_queue), - /* K2 */ be_nested_str_weak(get_exchangeid), - /* K3 */ be_const_int(1), - }), - be_str_weak(find_sendqueue_by_exchangeid), - &be_const_str_solidified, - ( &(const binstruction[22]) { /* code */ - 0x4C080000, // 0000 LDNIL R2 - 0x1C080202, // 0001 EQ R2 R1 R2 - 0x780A0001, // 0002 JMPF R2 #0005 - 0x4C080000, // 0003 LDNIL R2 - 0x80040400, // 0004 RET 1 R2 - 0x58080000, // 0005 LDCONST R2 K0 - 0x600C000C, // 0006 GETGBL R3 G12 - 0x88100101, // 0007 GETMBR R4 R0 K1 - 0x7C0C0200, // 0008 CALL R3 1 - 0x140C0403, // 0009 LT R3 R2 R3 - 0x780E0008, // 000A JMPF R3 #0014 - 0x880C0101, // 000B GETMBR R3 R0 K1 - 0x940C0602, // 000C GETIDX R3 R3 R2 - 0x8C100702, // 000D GETMET R4 R3 K2 - 0x7C100200, // 000E CALL R4 1 - 0x1C100801, // 000F EQ R4 R4 R1 - 0x78120000, // 0010 JMPF R4 #0012 - 0x80040600, // 0011 RET 1 R3 - 0x00080503, // 0012 ADD R2 R2 K3 - 0x7001FFF1, // 0013 JMP #0006 - 0x4C0C0000, // 0014 LDNIL R3 - 0x80040600, // 0015 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: process_incoming_ack -********************************************************************/ -be_local_closure(Matter_IM_process_incoming_ack, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str_weak(find_sendqueue_by_exchangeid), - /* K1 */ be_nested_str_weak(exchange_id), - /* K2 */ be_nested_str_weak(ack_received), - }), - be_str_weak(process_incoming_ack), - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0x8C080100, // 0000 GETMET R2 R0 K0 - 0x88100301, // 0001 GETMBR R4 R1 K1 - 0x7C080400, // 0002 CALL R2 2 - 0x780A0003, // 0003 JMPF R2 #0008 - 0x8C0C0502, // 0004 GETMET R3 R2 K2 - 0x5C140200, // 0005 MOVE R5 R1 - 0x7C0C0400, // 0006 CALL R3 2 - 0x80040600, // 0007 RET 1 R3 - 0x500C0000, // 0008 LDBOOL R3 0 0 - 0x80040600, // 0009 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: process_invoke_response -********************************************************************/ -be_local_closure(Matter_IM_process_invoke_response, /* name */ - be_nested_proto( - 9, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 8]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(matter), - /* K2 */ be_nested_str_weak(InvokeResponseMessage), - /* K3 */ be_nested_str_weak(from_TLV), - /* K4 */ be_nested_str_weak(tasmota), - /* K5 */ be_nested_str_weak(log), - /* K6 */ be_nested_str_weak(MTR_X3A_X20received_X20InvokeResponseMessage_X3D), - /* K7 */ be_const_int(2), - }), - be_str_weak(process_invoke_response), - &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ - 0xA40E0000, // 0000 IMPORT R3 K0 - 0xB8120200, // 0001 GETNGBL R4 K1 - 0x8C100902, // 0002 GETMET R4 R4 K2 - 0x7C100200, // 0003 CALL R4 1 - 0x8C100903, // 0004 GETMET R4 R4 K3 - 0x5C180400, // 0005 MOVE R6 R2 - 0x7C100400, // 0006 CALL R4 2 - 0xB8160800, // 0007 GETNGBL R5 K4 - 0x8C140B05, // 0008 GETMET R5 R5 K5 - 0x601C0008, // 0009 GETGBL R7 G8 - 0x5C200800, // 000A MOVE R8 R4 - 0x7C1C0200, // 000B CALL R7 1 - 0x001E0C07, // 000C ADD R7 K6 R7 - 0x58200007, // 000D LDCONST R8 K7 - 0x7C140600, // 000E CALL R5 3 - 0x50140000, // 000F LDBOOL R5 0 0 - 0x80040A00, // 0010 RET 1 R5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: remove_sendqueue_by_exchangeid -********************************************************************/ -be_local_closure(Matter_IM_remove_sendqueue_by_exchangeid, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_const_int(0), - /* K1 */ be_nested_str_weak(send_queue), - /* K2 */ be_nested_str_weak(get_exchangeid), - /* K3 */ be_nested_str_weak(remove), - /* K4 */ be_const_int(1), - }), - be_str_weak(remove_sendqueue_by_exchangeid), - &be_const_str_solidified, - ( &(const binstruction[24]) { /* code */ - 0x4C080000, // 0000 LDNIL R2 - 0x1C080202, // 0001 EQ R2 R1 R2 - 0x780A0000, // 0002 JMPF R2 #0004 - 0x80000400, // 0003 RET 0 - 0x58080000, // 0004 LDCONST R2 K0 - 0x600C000C, // 0005 GETGBL R3 G12 - 0x88100101, // 0006 GETMBR R4 R0 K1 - 0x7C0C0200, // 0007 CALL R3 1 - 0x140C0403, // 0008 LT R3 R2 R3 - 0x780E000C, // 0009 JMPF R3 #0017 - 0x880C0101, // 000A GETMBR R3 R0 K1 - 0x940C0602, // 000B GETIDX R3 R3 R2 - 0x8C0C0702, // 000C GETMET R3 R3 K2 - 0x7C0C0200, // 000D CALL R3 1 - 0x1C0C0601, // 000E EQ R3 R3 R1 - 0x780E0004, // 000F JMPF R3 #0015 - 0x880C0101, // 0010 GETMBR R3 R0 K1 - 0x8C0C0703, // 0011 GETMET R3 R3 K3 - 0x5C140400, // 0012 MOVE R5 R2 - 0x7C0C0400, // 0013 CALL R3 2 - 0x70020000, // 0014 JMP #0016 - 0x00080504, // 0015 ADD R2 R2 K4 - 0x7001FFED, // 0016 JMP #0005 - 0x80000000, // 0017 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: subscribe_response -********************************************************************/ -be_local_closure(Matter_IM_subscribe_response, /* name */ - be_nested_proto( - 9, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 8]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(matter), - /* K2 */ be_nested_str_weak(SubscribeResponseMessage), - /* K3 */ be_nested_str_weak(from_TLV), - /* K4 */ be_nested_str_weak(tasmota), - /* K5 */ be_nested_str_weak(log), - /* K6 */ be_nested_str_weak(MTR_X3A_X20received_X20SubscribeResponsetMessage_X3D), - /* K7 */ be_const_int(2), - }), - be_str_weak(subscribe_response), - &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ - 0xA40E0000, // 0000 IMPORT R3 K0 - 0xB8120200, // 0001 GETNGBL R4 K1 - 0x8C100902, // 0002 GETMET R4 R4 K2 - 0x7C100200, // 0003 CALL R4 1 - 0x8C100903, // 0004 GETMET R4 R4 K3 - 0x5C180400, // 0005 MOVE R6 R2 - 0x7C100400, // 0006 CALL R4 2 - 0xB8160800, // 0007 GETNGBL R5 K4 - 0x8C140B05, // 0008 GETMET R5 R5 K5 - 0x601C0008, // 0009 GETGBL R7 G8 - 0x5C200800, // 000A MOVE R8 R4 - 0x7C1C0200, // 000B CALL R7 1 - 0x001E0C07, // 000C ADD R7 K6 R7 - 0x58200007, // 000D LDCONST R8 K7 - 0x7C140600, // 000E CALL R5 3 - 0x50140000, // 000F LDBOOL R5 0 0 - 0x80040A00, // 0010 RET 1 R5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: send_enqueued -********************************************************************/ -be_local_closure(Matter_IM_send_enqueued, /* name */ - be_nested_proto( - 8, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_const_int(0), - /* K1 */ be_nested_str_weak(send_queue), - /* K2 */ be_nested_str_weak(send_im), - /* K3 */ be_nested_str_weak(remove), - /* K4 */ be_const_int(1), - }), - be_str_weak(send_enqueued), - &be_const_str_solidified, - ( &(const binstruction[20]) { /* 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 - 0x780E000C, // 0005 JMPF R3 #0013 - 0x880C0101, // 0006 GETMBR R3 R0 K1 - 0x940C0602, // 0007 GETIDX R3 R3 R2 - 0x8C100702, // 0008 GETMET R4 R3 K2 - 0x5C180200, // 0009 MOVE R6 R1 - 0x7C100400, // 000A CALL R4 2 - 0x78120004, // 000B JMPF R4 #0011 - 0x88140101, // 000C GETMBR R5 R0 K1 - 0x8C140B03, // 000D GETMET R5 R5 K3 - 0x5C1C0400, // 000E MOVE R7 R2 - 0x7C140400, // 000F CALL R5 2 - 0x04080504, // 0010 SUB R2 R2 K4 - 0x00080504, // 0011 ADD R2 R2 K4 - 0x7001FFED, // 0012 JMP #0001 - 0x80000000, // 0013 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(Matter_IM_init, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(device), - /* K1 */ be_nested_str_weak(send_queue), - /* K2 */ be_nested_str_weak(subs_shop), - /* K3 */ be_nested_str_weak(matter), - /* K4 */ be_nested_str_weak(IM_Subscription_Shop), - }), - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0x90020001, // 0000 SETMBR R0 K0 R1 - 0x60080012, // 0001 GETGBL R2 G18 - 0x7C080000, // 0002 CALL R2 0 - 0x90020202, // 0003 SETMBR R0 K1 R2 - 0xB80A0600, // 0004 GETNGBL R2 K3 - 0x8C080504, // 0005 GETMET R2 R2 K4 - 0x5C100000, // 0006 MOVE R4 R0 - 0x7C080400, // 0007 CALL R2 2 - 0x90020402, // 0008 SETMBR R0 K2 R2 - 0x80000000, // 0009 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: send_status -********************************************************************/ -be_local_closure(Matter_IM_send_status, /* name */ - be_nested_proto( - 9, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(send_queue), - /* K1 */ be_nested_str_weak(push), - /* K2 */ be_nested_str_weak(matter), - /* K3 */ be_nested_str_weak(IM_Status), - }), - be_str_weak(send_status), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x880C0100, // 0000 GETMBR R3 R0 K0 - 0x8C0C0701, // 0001 GETMET R3 R3 K1 - 0xB8160400, // 0002 GETNGBL R5 K2 - 0x8C140B03, // 0003 GETMET R5 R5 K3 - 0x5C1C0200, // 0004 MOVE R7 R1 - 0x5C200400, // 0005 MOVE R8 R2 - 0x7C140600, // 0006 CALL R5 3 - 0x7C0C0400, // 0007 CALL R3 2 - 0x80000000, // 0008 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: process_incoming -********************************************************************/ -be_local_closure(Matter_IM_process_incoming, /* name */ - be_nested_proto( - 9, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[25]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(log), - /* K2 */ be_nested_str_weak(MTR_X3A_X20received_X20IM_X20message_X20), - /* K3 */ be_nested_str_weak(matter), - /* K4 */ be_nested_str_weak(inspect), - /* K5 */ be_const_int(3), - /* K6 */ be_nested_str_weak(TLV), - /* K7 */ be_nested_str_weak(parse), - /* K8 */ be_nested_str_weak(raw), - /* K9 */ be_nested_str_weak(app_payload_idx), - /* K10 */ be_nested_str_weak(findsubval), - /* K11 */ be_nested_str_weak(opcode), - /* K12 */ be_const_int(1), - /* K13 */ be_nested_str_weak(process_status_response), - /* K14 */ be_const_int(2), - /* K15 */ be_nested_str_weak(send_ack_now), - /* K16 */ be_nested_str_weak(process_read_request), - /* K17 */ be_nested_str_weak(subscribe_request), - /* K18 */ be_nested_str_weak(subscribe_response), - /* K19 */ be_nested_str_weak(report_data), - /* K20 */ be_nested_str_weak(process_write_request), - /* K21 */ be_nested_str_weak(process_write_response), - /* K22 */ be_nested_str_weak(process_invoke_request), - /* K23 */ be_nested_str_weak(process_invoke_response), - /* K24 */ be_nested_str_weak(process_timed_request), - }), - be_str_weak(process_incoming), - &be_const_str_solidified, - ( &(const binstruction[119]) { /* code */ - 0xB80A0000, // 0000 GETNGBL R2 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0xB8120600, // 0002 GETNGBL R4 K3 - 0x8C100904, // 0003 GETMET R4 R4 K4 - 0x5C180200, // 0004 MOVE R6 R1 - 0x7C100400, // 0005 CALL R4 2 - 0x00120404, // 0006 ADD R4 K2 R4 - 0x58140005, // 0007 LDCONST R5 K5 - 0x7C080600, // 0008 CALL R2 3 - 0xB80A0600, // 0009 GETNGBL R2 K3 - 0x88080506, // 000A GETMBR R2 R2 K6 - 0x8C080507, // 000B GETMET R2 R2 K7 - 0x88100308, // 000C GETMBR R4 R1 K8 - 0x88140309, // 000D GETMBR R5 R1 K9 - 0x7C080600, // 000E CALL R2 3 - 0x8C0C050A, // 000F GETMET R3 R2 K10 - 0x541600FE, // 0010 LDINT R5 255 - 0x7C0C0400, // 0011 CALL R3 2 - 0x8810030B, // 0012 GETMBR R4 R1 K11 - 0x1C14090C, // 0013 EQ R5 R4 K12 - 0x78160005, // 0014 JMPF R5 #001B - 0x8C14010D, // 0015 GETMET R5 R0 K13 - 0x5C1C0200, // 0016 MOVE R7 R1 - 0x5C200400, // 0017 MOVE R8 R2 - 0x7C140600, // 0018 CALL R5 3 - 0x80040A00, // 0019 RET 1 R5 - 0x70020059, // 001A JMP #0075 - 0x1C14090E, // 001B EQ R5 R4 K14 - 0x78160008, // 001C JMPF R5 #0026 - 0x8C14010F, // 001D GETMET R5 R0 K15 - 0x5C1C0200, // 001E MOVE R7 R1 - 0x7C140400, // 001F CALL R5 2 - 0x8C140110, // 0020 GETMET R5 R0 K16 - 0x5C1C0200, // 0021 MOVE R7 R1 - 0x5C200400, // 0022 MOVE R8 R2 - 0x7C140600, // 0023 CALL R5 3 - 0x80040A00, // 0024 RET 1 R5 - 0x7002004E, // 0025 JMP #0075 - 0x1C140905, // 0026 EQ R5 R4 K5 - 0x78160008, // 0027 JMPF R5 #0031 - 0x8C14010F, // 0028 GETMET R5 R0 K15 - 0x5C1C0200, // 0029 MOVE R7 R1 - 0x7C140400, // 002A CALL R5 2 - 0x8C140111, // 002B GETMET R5 R0 K17 - 0x5C1C0200, // 002C MOVE R7 R1 - 0x5C200400, // 002D MOVE R8 R2 - 0x7C140600, // 002E CALL R5 3 - 0x80040A00, // 002F RET 1 R5 - 0x70020043, // 0030 JMP #0075 - 0x54160003, // 0031 LDINT R5 4 - 0x1C140805, // 0032 EQ R5 R4 R5 - 0x78160005, // 0033 JMPF R5 #003A - 0x8C140112, // 0034 GETMET R5 R0 K18 - 0x5C1C0200, // 0035 MOVE R7 R1 - 0x5C200400, // 0036 MOVE R8 R2 - 0x7C140600, // 0037 CALL R5 3 - 0x80040A00, // 0038 RET 1 R5 - 0x7002003A, // 0039 JMP #0075 - 0x54160004, // 003A LDINT R5 5 - 0x1C140805, // 003B EQ R5 R4 R5 - 0x78160005, // 003C JMPF R5 #0043 - 0x8C140113, // 003D GETMET R5 R0 K19 - 0x5C1C0200, // 003E MOVE R7 R1 - 0x5C200400, // 003F MOVE R8 R2 - 0x7C140600, // 0040 CALL R5 3 - 0x80040A00, // 0041 RET 1 R5 - 0x70020031, // 0042 JMP #0075 - 0x54160005, // 0043 LDINT R5 6 - 0x1C140805, // 0044 EQ R5 R4 R5 - 0x78160008, // 0045 JMPF R5 #004F - 0x8C14010F, // 0046 GETMET R5 R0 K15 - 0x5C1C0200, // 0047 MOVE R7 R1 - 0x7C140400, // 0048 CALL R5 2 - 0x8C140114, // 0049 GETMET R5 R0 K20 - 0x5C1C0200, // 004A MOVE R7 R1 - 0x5C200400, // 004B MOVE R8 R2 - 0x7C140600, // 004C CALL R5 3 - 0x80040A00, // 004D RET 1 R5 - 0x70020025, // 004E JMP #0075 - 0x54160006, // 004F LDINT R5 7 - 0x1C140805, // 0050 EQ R5 R4 R5 - 0x78160005, // 0051 JMPF R5 #0058 - 0x8C140115, // 0052 GETMET R5 R0 K21 - 0x5C1C0200, // 0053 MOVE R7 R1 - 0x5C200400, // 0054 MOVE R8 R2 - 0x7C140600, // 0055 CALL R5 3 - 0x80040A00, // 0056 RET 1 R5 - 0x7002001C, // 0057 JMP #0075 - 0x54160007, // 0058 LDINT R5 8 - 0x1C140805, // 0059 EQ R5 R4 R5 - 0x78160008, // 005A JMPF R5 #0064 - 0x8C14010F, // 005B GETMET R5 R0 K15 - 0x5C1C0200, // 005C MOVE R7 R1 - 0x7C140400, // 005D CALL R5 2 - 0x8C140116, // 005E GETMET R5 R0 K22 - 0x5C1C0200, // 005F MOVE R7 R1 - 0x5C200400, // 0060 MOVE R8 R2 - 0x7C140600, // 0061 CALL R5 3 - 0x80040A00, // 0062 RET 1 R5 - 0x70020010, // 0063 JMP #0075 - 0x54160008, // 0064 LDINT R5 9 - 0x1C140805, // 0065 EQ R5 R4 R5 - 0x78160005, // 0066 JMPF R5 #006D - 0x8C140117, // 0067 GETMET R5 R0 K23 - 0x5C1C0200, // 0068 MOVE R7 R1 - 0x5C200400, // 0069 MOVE R8 R2 - 0x7C140600, // 006A CALL R5 3 - 0x80040A00, // 006B RET 1 R5 - 0x70020007, // 006C JMP #0075 - 0x54160009, // 006D LDINT R5 10 - 0x1C140805, // 006E EQ R5 R4 R5 - 0x78160004, // 006F JMPF R5 #0075 - 0x8C140118, // 0070 GETMET R5 R0 K24 - 0x5C1C0200, // 0071 MOVE R7 R1 - 0x5C200400, // 0072 MOVE R8 R2 - 0x7C140600, // 0073 CALL R5 3 - 0x80040A00, // 0074 RET 1 R5 - 0x50140000, // 0075 LDBOOL R5 0 0 - 0x80040A00, // 0076 RET 1 R5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: process_timed_request -********************************************************************/ -be_local_closure(Matter_IM_process_timed_request, /* name */ - be_nested_proto( - 12, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[16]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(matter), - /* K2 */ be_nested_str_weak(TimedRequestMessage), - /* K3 */ be_nested_str_weak(from_TLV), - /* K4 */ be_nested_str_weak(tasmota), - /* K5 */ be_nested_str_weak(log), - /* K6 */ be_nested_str_weak(MTR_X3A_X20received_X20TimedRequestMessage_X3D), - /* K7 */ be_const_int(3), - /* K8 */ be_nested_str_weak(format), - /* K9 */ be_nested_str_weak(MTR_X3A_X20_X3ECommand_X20_X20_X20_X28_X256i_X29_X20TimedRequest_X3D_X25i), - /* K10 */ be_nested_str_weak(session), - /* K11 */ be_nested_str_weak(local_session_id), - /* K12 */ be_nested_str_weak(timeout), - /* K13 */ be_const_int(2), - /* K14 */ be_nested_str_weak(send_status), - /* K15 */ be_nested_str_weak(SUCCESS), - }), - be_str_weak(process_timed_request), - &be_const_str_solidified, - ( &(const binstruction[32]) { /* code */ - 0xA40E0000, // 0000 IMPORT R3 K0 - 0xB8120200, // 0001 GETNGBL R4 K1 - 0x8C100902, // 0002 GETMET R4 R4 K2 - 0x7C100200, // 0003 CALL R4 1 - 0x8C100903, // 0004 GETMET R4 R4 K3 - 0x5C180400, // 0005 MOVE R6 R2 - 0x7C100400, // 0006 CALL R4 2 - 0xB8160800, // 0007 GETNGBL R5 K4 - 0x8C140B05, // 0008 GETMET R5 R5 K5 - 0x601C0008, // 0009 GETGBL R7 G8 - 0x5C200800, // 000A MOVE R8 R4 - 0x7C1C0200, // 000B CALL R7 1 - 0x001E0C07, // 000C ADD R7 K6 R7 - 0x58200007, // 000D LDCONST R8 K7 - 0x7C140600, // 000E CALL R5 3 - 0xB8160800, // 000F GETNGBL R5 K4 - 0x8C140B05, // 0010 GETMET R5 R5 K5 - 0x8C1C0708, // 0011 GETMET R7 R3 K8 - 0x58240009, // 0012 LDCONST R9 K9 - 0x8828030A, // 0013 GETMBR R10 R1 K10 - 0x8828150B, // 0014 GETMBR R10 R10 K11 - 0x882C090C, // 0015 GETMBR R11 R4 K12 - 0x7C1C0800, // 0016 CALL R7 4 - 0x5820000D, // 0017 LDCONST R8 K13 - 0x7C140600, // 0018 CALL R5 3 - 0x8C14010E, // 0019 GETMET R5 R0 K14 - 0x5C1C0200, // 001A MOVE R7 R1 - 0xB8220200, // 001B GETNGBL R8 K1 - 0x8820110F, // 001C GETMBR R8 R8 K15 - 0x7C140600, // 001D CALL R5 3 - 0x50140200, // 001E LDBOOL R5 1 0 - 0x80040A00, // 001F RET 1 R5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: send_report_data -********************************************************************/ -be_local_closure(Matter_IM_send_report_data, /* name */ - be_nested_proto( - 9, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(send_queue), - /* K1 */ be_nested_str_weak(push), - /* K2 */ be_nested_str_weak(matter), - /* K3 */ be_nested_str_weak(IM_ReportData), - }), - be_str_weak(send_report_data), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x880C0100, // 0000 GETMBR R3 R0 K0 - 0x8C0C0701, // 0001 GETMET R3 R3 K1 - 0xB8160400, // 0002 GETNGBL R5 K2 - 0x8C140B03, // 0003 GETMET R5 R5 K3 - 0x5C1C0200, // 0004 MOVE R7 R1 - 0x5C200400, // 0005 MOVE R8 R2 - 0x7C140600, // 0006 CALL R5 3 - 0x7C0C0400, // 0007 CALL R3 2 - 0x80000000, // 0008 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: every_250ms -********************************************************************/ -be_local_closure(Matter_IM_every_250ms, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(subs_shop), - /* K1 */ be_nested_str_weak(every_250ms), - }), - be_str_weak(every_250ms), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x80000000, // 0003 RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: process_invoke_request ********************************************************************/ @@ -1914,11 +437,554 @@ be_local_closure(Matter_IM_process_invoke_request, /* name */ /******************************************************************** -** Solidified function: send_subscribe_update +** Solidified function: subscribe_request ********************************************************************/ -be_local_closure(Matter_IM_send_subscribe_update, /* name */ +be_local_closure(Matter_IM_subscribe_request, /* name */ be_nested_proto( - 12, /* nstack */ + 19, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[33]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(matter), + /* K2 */ be_nested_str_weak(SubscribeRequestMessage), + /* K3 */ be_nested_str_weak(from_TLV), + /* K4 */ be_nested_str_weak(keep_subscriptions), + /* K5 */ be_nested_str_weak(subs_shop), + /* K6 */ be_nested_str_weak(remove_by_session), + /* K7 */ be_nested_str_weak(session), + /* K8 */ be_nested_str_weak(tasmota), + /* K9 */ be_nested_str_weak(log), + /* K10 */ be_nested_str_weak(MTR_X3A_X20received_X20SubscribeRequestMessage_X3D), + /* K11 */ be_const_int(3), + /* K12 */ be_nested_str_weak(new_subscription), + /* K13 */ be_nested_str_weak(Path), + /* K14 */ be_nested_str_weak(attributes_requests), + /* K15 */ be_nested_str_weak(endpoint), + /* K16 */ be_nested_str_weak(cluster), + /* K17 */ be_nested_str_weak(attribute), + /* K18 */ be_nested_str_weak(push), + /* K19 */ be_nested_str_weak(stop_iteration), + /* K20 */ be_nested_str_weak(format), + /* K21 */ be_nested_str_weak(MTR_X3A_X20_X3ESubscribe_X20_X28_X256i_X29_X20_X25s_X20_X28min_X3D_X25i_X2C_X20max_X3D_X25i_X2C_X20keep_X3D_X25i_X29_X20sub_X3D_X25i), + /* K22 */ be_nested_str_weak(local_session_id), + /* K23 */ be_nested_str_weak(concat), + /* K24 */ be_nested_str_weak(_X20), + /* K25 */ be_nested_str_weak(min_interval), + /* K26 */ be_nested_str_weak(max_interval), + /* K27 */ be_const_int(1), + /* K28 */ be_const_int(0), + /* K29 */ be_nested_str_weak(subscription_id), + /* K30 */ be_const_int(2), + /* K31 */ be_nested_str_weak(_inner_process_read_request), + /* K32 */ be_nested_str_weak(send_subscribe_response), + }), + be_str_weak(subscribe_request), + &be_const_str_solidified, + ( &(const binstruction[86]) { /* code */ + 0xA40E0000, // 0000 IMPORT R3 K0 + 0xB8120200, // 0001 GETNGBL R4 K1 + 0x8C100902, // 0002 GETMET R4 R4 K2 + 0x7C100200, // 0003 CALL R4 1 + 0x8C100903, // 0004 GETMET R4 R4 K3 + 0x5C180400, // 0005 MOVE R6 R2 + 0x7C100400, // 0006 CALL R4 2 + 0x88140904, // 0007 GETMBR R5 R4 K4 + 0x74160003, // 0008 JMPT R5 #000D + 0x88140105, // 0009 GETMBR R5 R0 K5 + 0x8C140B06, // 000A GETMET R5 R5 K6 + 0x881C0307, // 000B GETMBR R7 R1 K7 + 0x7C140400, // 000C CALL R5 2 + 0xB8161000, // 000D GETNGBL R5 K8 + 0x8C140B09, // 000E GETMET R5 R5 K9 + 0x601C0008, // 000F GETGBL R7 G8 + 0x5C200800, // 0010 MOVE R8 R4 + 0x7C1C0200, // 0011 CALL R7 1 + 0x001E1407, // 0012 ADD R7 K10 R7 + 0x5820000B, // 0013 LDCONST R8 K11 + 0x7C140600, // 0014 CALL R5 3 + 0x88140105, // 0015 GETMBR R5 R0 K5 + 0x8C140B0C, // 0016 GETMET R5 R5 K12 + 0x881C0307, // 0017 GETMBR R7 R1 K7 + 0x5C200800, // 0018 MOVE R8 R4 + 0x7C140600, // 0019 CALL R5 3 + 0x60180012, // 001A GETGBL R6 G18 + 0x7C180000, // 001B CALL R6 0 + 0xB81E0200, // 001C GETNGBL R7 K1 + 0x8C1C0F0D, // 001D GETMET R7 R7 K13 + 0x7C1C0200, // 001E CALL R7 1 + 0x60200010, // 001F GETGBL R8 G16 + 0x8824090E, // 0020 GETMBR R9 R4 K14 + 0x7C200200, // 0021 CALL R8 1 + 0xA802000D, // 0022 EXBLK 0 #0031 + 0x5C241000, // 0023 MOVE R9 R8 + 0x7C240000, // 0024 CALL R9 0 + 0x8828130F, // 0025 GETMBR R10 R9 K15 + 0x901E1E0A, // 0026 SETMBR R7 K15 R10 + 0x88281310, // 0027 GETMBR R10 R9 K16 + 0x901E200A, // 0028 SETMBR R7 K16 R10 + 0x88281311, // 0029 GETMBR R10 R9 K17 + 0x901E220A, // 002A SETMBR R7 K17 R10 + 0x8C280D12, // 002B GETMET R10 R6 K18 + 0x60300008, // 002C GETGBL R12 G8 + 0x5C340E00, // 002D MOVE R13 R7 + 0x7C300200, // 002E CALL R12 1 + 0x7C280400, // 002F CALL R10 2 + 0x7001FFF1, // 0030 JMP #0023 + 0x58200013, // 0031 LDCONST R8 K19 + 0xAC200200, // 0032 CATCH R8 1 0 + 0xB0080000, // 0033 RAISE 2 R0 R0 + 0xB8221000, // 0034 GETNGBL R8 K8 + 0x8C201109, // 0035 GETMET R8 R8 K9 + 0x8C280714, // 0036 GETMET R10 R3 K20 + 0x58300015, // 0037 LDCONST R12 K21 + 0x88340307, // 0038 GETMBR R13 R1 K7 + 0x88341B16, // 0039 GETMBR R13 R13 K22 + 0x8C380D17, // 003A GETMET R14 R6 K23 + 0x58400018, // 003B LDCONST R16 K24 + 0x7C380400, // 003C CALL R14 2 + 0x883C0B19, // 003D GETMBR R15 R5 K25 + 0x88400B1A, // 003E GETMBR R16 R5 K26 + 0x88440904, // 003F GETMBR R17 R4 K4 + 0x78460001, // 0040 JMPF R17 #0043 + 0x5844001B, // 0041 LDCONST R17 K27 + 0x70020000, // 0042 JMP #0044 + 0x5844001C, // 0043 LDCONST R17 K28 + 0x88480B1D, // 0044 GETMBR R18 R5 K29 + 0x7C281000, // 0045 CALL R10 8 + 0x582C001E, // 0046 LDCONST R11 K30 + 0x7C200600, // 0047 CALL R8 3 + 0x8C20011F, // 0048 GETMET R8 R0 K31 + 0x88280307, // 0049 GETMBR R10 R1 K7 + 0x5C2C0800, // 004A MOVE R11 R4 + 0x50300200, // 004B LDBOOL R12 1 0 + 0x7C200800, // 004C CALL R8 4 + 0x88240B1D, // 004D GETMBR R9 R5 K29 + 0x90223A09, // 004E SETMBR R8 K29 R9 + 0x8C240120, // 004F GETMET R9 R0 K32 + 0x5C2C0200, // 0050 MOVE R11 R1 + 0x5C301000, // 0051 MOVE R12 R8 + 0x5C340A00, // 0052 MOVE R13 R5 + 0x7C240800, // 0053 CALL R9 4 + 0x50240200, // 0054 LDBOOL R9 1 0 + 0x80041200, // 0055 RET 1 R9 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: process_write_request +********************************************************************/ +be_local_closure(Matter_IM_process_write_request, /* name */ + be_nested_proto( + 20, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 2]) { + be_nested_proto( + 19, /* nstack */ + 5, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 1), + }), + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[26]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(matter), + /* K2 */ be_nested_str_weak(get_attribute_name), + /* K3 */ be_nested_str_weak(cluster), + /* K4 */ be_nested_str_weak(attribute), + /* K5 */ be_nested_str_weak(_X20_X28), + /* K6 */ be_nested_str_weak(_X29), + /* K7 */ be_nested_str_weak(), + /* K8 */ be_nested_str_weak(status), + /* K9 */ be_nested_str_weak(UNSUPPORTED_WRITE), + /* K10 */ be_nested_str_weak(write_attribute), + /* K11 */ be_nested_str_weak(session), + /* K12 */ be_nested_str_weak(SUCCESS), + /* K13 */ be_nested_str_weak(AttributeStatusIB), + /* K14 */ be_nested_str_weak(path), + /* K15 */ be_nested_str_weak(AttributePathIB), + /* K16 */ be_nested_str_weak(StatusIB), + /* K17 */ be_nested_str_weak(endpoint), + /* K18 */ be_nested_str_weak(write_responses), + /* K19 */ be_nested_str_weak(push), + /* K20 */ be_nested_str_weak(tasmota), + /* K21 */ be_nested_str_weak(log), + /* K22 */ be_nested_str_weak(format), + /* K23 */ be_nested_str_weak(MTR_X3A_X20Write_Attr_X20_X25s_X25s_X20_X2D_X20STATUS_X3A_X200x_X2502X_X20_X25s), + /* K24 */ be_const_int(2), + /* K25 */ be_nested_str_weak(MTR_X3A_X20Write_Attr_X20_X25s_X25s_X20_X2D_X20IGNORED), + }), + be_str_weak(write_single_attribute), + &be_const_str_solidified, + ( &(const binstruction[97]) { /* code */ + 0xA4160000, // 0000 IMPORT R5 K0 + 0xB81A0200, // 0001 GETNGBL R6 K1 + 0x8C180D02, // 0002 GETMET R6 R6 K2 + 0x88200503, // 0003 GETMBR R8 R2 K3 + 0x88240504, // 0004 GETMBR R9 R2 K4 + 0x7C180600, // 0005 CALL R6 3 + 0x781A0002, // 0006 JMPF R6 #000A + 0x001E0A06, // 0007 ADD R7 K5 R6 + 0x001C0F06, // 0008 ADD R7 R7 K6 + 0x70020000, // 0009 JMP #000B + 0x581C0007, // 000A LDCONST R7 K7 + 0x5C180E00, // 000B MOVE R6 R7 + 0xB81E0200, // 000C GETNGBL R7 K1 + 0x881C0F09, // 000D GETMBR R7 R7 K9 + 0x900A1007, // 000E SETMBR R2 K8 R7 + 0x4C1C0000, // 000F LDNIL R7 + 0x201C0207, // 0010 NE R7 R1 R7 + 0x781E0006, // 0011 JMPF R7 #0019 + 0x8C1C030A, // 0012 GETMET R7 R1 K10 + 0x68240000, // 0013 GETUPV R9 U0 + 0x8824130B, // 0014 GETMBR R9 R9 K11 + 0x5C280400, // 0015 MOVE R10 R2 + 0x5C2C0600, // 0016 MOVE R11 R3 + 0x7C1C0800, // 0017 CALL R7 4 + 0x70020000, // 0018 JMP #001A + 0x4C1C0000, // 0019 LDNIL R7 + 0x781E0002, // 001A JMPF R7 #001E + 0xB8220200, // 001B GETNGBL R8 K1 + 0x8820110C, // 001C GETMBR R8 R8 K12 + 0x900A1008, // 001D SETMBR R2 K8 R8 + 0x88200508, // 001E GETMBR R8 R2 K8 + 0x4C240000, // 001F LDNIL R9 + 0x20201009, // 0020 NE R8 R8 R9 + 0x78220032, // 0021 JMPF R8 #0055 + 0x78120030, // 0022 JMPF R4 #0054 + 0xB8220200, // 0023 GETNGBL R8 K1 + 0x8C20110D, // 0024 GETMET R8 R8 K13 + 0x7C200200, // 0025 CALL R8 1 + 0xB8260200, // 0026 GETNGBL R9 K1 + 0x8C24130F, // 0027 GETMET R9 R9 K15 + 0x7C240200, // 0028 CALL R9 1 + 0x90221C09, // 0029 SETMBR R8 K14 R9 + 0xB8260200, // 002A GETNGBL R9 K1 + 0x8C241310, // 002B GETMET R9 R9 K16 + 0x7C240200, // 002C CALL R9 1 + 0x90221009, // 002D SETMBR R8 K8 R9 + 0x8824110E, // 002E GETMBR R9 R8 K14 + 0x88280511, // 002F GETMBR R10 R2 K17 + 0x9026220A, // 0030 SETMBR R9 K17 R10 + 0x8824110E, // 0031 GETMBR R9 R8 K14 + 0x88280503, // 0032 GETMBR R10 R2 K3 + 0x9026060A, // 0033 SETMBR R9 K3 R10 + 0x8824110E, // 0034 GETMBR R9 R8 K14 + 0x88280504, // 0035 GETMBR R10 R2 K4 + 0x9026080A, // 0036 SETMBR R9 K4 R10 + 0x88241108, // 0037 GETMBR R9 R8 K8 + 0x88280508, // 0038 GETMBR R10 R2 K8 + 0x9026100A, // 0039 SETMBR R9 K8 R10 + 0x88240112, // 003A GETMBR R9 R0 K18 + 0x8C241313, // 003B GETMET R9 R9 K19 + 0x5C2C1000, // 003C MOVE R11 R8 + 0x7C240400, // 003D CALL R9 2 + 0xB8262800, // 003E GETNGBL R9 K20 + 0x8C241315, // 003F GETMET R9 R9 K21 + 0x8C2C0B16, // 0040 GETMET R11 R5 K22 + 0x58340017, // 0041 LDCONST R13 K23 + 0x60380008, // 0042 GETGBL R14 G8 + 0x5C3C0400, // 0043 MOVE R15 R2 + 0x7C380200, // 0044 CALL R14 1 + 0x5C3C0C00, // 0045 MOVE R15 R6 + 0x88400508, // 0046 GETMBR R16 R2 K8 + 0x88440508, // 0047 GETMBR R17 R2 K8 + 0xB84A0200, // 0048 GETNGBL R18 K1 + 0x8848250C, // 0049 GETMBR R18 R18 K12 + 0x1C442212, // 004A EQ R17 R17 R18 + 0x78460001, // 004B JMPF R17 #004E + 0x5844000C, // 004C LDCONST R17 K12 + 0x70020000, // 004D JMP #004F + 0x58440007, // 004E LDCONST R17 K7 + 0x7C2C0C00, // 004F CALL R11 6 + 0x58300018, // 0050 LDCONST R12 K24 + 0x7C240600, // 0051 CALL R9 3 + 0x50240200, // 0052 LDBOOL R9 1 0 + 0x80041200, // 0053 RET 1 R9 + 0x7002000A, // 0054 JMP #0060 + 0xB8222800, // 0055 GETNGBL R8 K20 + 0x8C201115, // 0056 GETMET R8 R8 K21 + 0x8C280B16, // 0057 GETMET R10 R5 K22 + 0x58300019, // 0058 LDCONST R12 K25 + 0x60340008, // 0059 GETGBL R13 G8 + 0x5C380400, // 005A MOVE R14 R2 + 0x7C340200, // 005B CALL R13 1 + 0x5C380C00, // 005C MOVE R14 R6 + 0x7C280800, // 005D CALL R10 4 + 0x582C0018, // 005E LDCONST R11 K24 + 0x7C200600, // 005F CALL R8 3 + 0x80000000, // 0060 RET 0 + }) + ), + be_nested_proto( + 9, /* nstack */ + 3, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 3]) { /* upvals */ + be_local_const_upval(1, 7), + be_local_const_upval(1, 9), + be_local_const_upval(1, 13), + }), + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 8]) { /* code */ + 0x680C0000, // 0000 GETUPV R3 U0 + 0x68100001, // 0001 GETUPV R4 U1 + 0x5C140000, // 0002 MOVE R5 R0 + 0x5C180200, // 0003 MOVE R6 R1 + 0x681C0002, // 0004 GETUPV R7 U2 + 0x5C200400, // 0005 MOVE R8 R2 + 0x7C0C0A00, // 0006 CALL R3 5 + 0x80040600, // 0007 RET 1 R3 + }) + ), + }), + 1, /* has constants */ + ( &(const bvalue[36]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(matter), + /* K2 */ be_nested_str_weak(WriteRequestMessage), + /* K3 */ be_nested_str_weak(from_TLV), + /* K4 */ be_nested_str_weak(tasmota), + /* K5 */ be_nested_str_weak(log), + /* K6 */ be_nested_str_weak(MTR_X3A_X20received_X20WriteRequestMessage_X3D), + /* K7 */ be_const_int(3), + /* K8 */ be_nested_str_weak(suppress_response), + /* K9 */ be_nested_str_weak(device), + /* K10 */ be_nested_str_weak(get_active_endpoints), + /* K11 */ be_nested_str_weak(MTR_X3A_X20IM_X3Awrite_request_X20processing_X20start), + /* K12 */ be_nested_str_weak(Path), + /* K13 */ be_nested_str_weak(write_requests), + /* K14 */ be_nested_str_weak(WriteResponseMessage), + /* K15 */ be_nested_str_weak(write_responses), + /* K16 */ be_nested_str_weak(path), + /* K17 */ be_nested_str_weak(data), + /* K18 */ be_nested_str_weak(endpoint), + /* K19 */ be_nested_str_weak(cluster), + /* K20 */ be_nested_str_weak(attribute), + /* K21 */ be_nested_str_weak(status), + /* K22 */ be_nested_str_weak(UNSUPPORTED_ATTRIBUTE), + /* K23 */ be_nested_str_weak(INVALID_ACTION), + /* K24 */ be_nested_str_weak(get_attribute_name), + /* K25 */ be_nested_str_weak(MTR_X3A_X20Write_Attr_X20), + /* K26 */ be_nested_str_weak(_X20_X28), + /* K27 */ be_nested_str_weak(_X29), + /* K28 */ be_nested_str_weak(), + /* K29 */ be_const_int(2), + /* K30 */ be_nested_str_weak(process_attribute_expansion), + /* K31 */ be_nested_str_weak(stop_iteration), + /* K32 */ be_nested_str_weak(MTR_X3A_X20ReportWriteMessage_X3D), + /* K33 */ be_nested_str_weak(MTR_X3A_X20ReportWriteMessageTLV_X3D), + /* K34 */ be_nested_str_weak(to_TLV), + /* K35 */ be_nested_str_weak(send_write_response), + }), + be_str_weak(process_write_request), + &be_const_str_solidified, + ( &(const binstruction[134]) { /* code */ + 0xA40E0000, // 0000 IMPORT R3 K0 + 0xB8120200, // 0001 GETNGBL R4 K1 + 0x8C100902, // 0002 GETMET R4 R4 K2 + 0x7C100200, // 0003 CALL R4 1 + 0x8C100903, // 0004 GETMET R4 R4 K3 + 0x5C180400, // 0005 MOVE R6 R2 + 0x7C100400, // 0006 CALL R4 2 + 0xB8160800, // 0007 GETNGBL R5 K4 + 0x8C140B05, // 0008 GETMET R5 R5 K5 + 0x601C0008, // 0009 GETGBL R7 G8 + 0x5C200800, // 000A MOVE R8 R4 + 0x7C1C0200, // 000B CALL R7 1 + 0x001E0C07, // 000C ADD R7 K6 R7 + 0x58200007, // 000D LDCONST R8 K7 + 0x7C140600, // 000E CALL R5 3 + 0x88140908, // 000F GETMBR R5 R4 K8 + 0x88180109, // 0010 GETMBR R6 R0 K9 + 0x8C180D0A, // 0011 GETMET R6 R6 K10 + 0x7C180200, // 0012 CALL R6 1 + 0x841C0000, // 0013 CLOSURE R7 P0 + 0xB8220800, // 0014 GETNGBL R8 K4 + 0x8C201105, // 0015 GETMET R8 R8 K5 + 0x5828000B, // 0016 LDCONST R10 K11 + 0x542E0003, // 0017 LDINT R11 4 + 0x7C200600, // 0018 CALL R8 3 + 0xB8220200, // 0019 GETNGBL R8 K1 + 0x8C20110C, // 001A GETMET R8 R8 K12 + 0x7C200200, // 001B CALL R8 1 + 0x8824090D, // 001C GETMBR R9 R4 K13 + 0x4C280000, // 001D LDNIL R10 + 0x2024120A, // 001E NE R9 R9 R10 + 0x78260062, // 001F JMPF R9 #0083 + 0xB8260200, // 0020 GETNGBL R9 K1 + 0x8C24130E, // 0021 GETMET R9 R9 K14 + 0x7C240200, // 0022 CALL R9 1 + 0x60280012, // 0023 GETGBL R10 G18 + 0x7C280000, // 0024 CALL R10 0 + 0x90261E0A, // 0025 SETMBR R9 K15 R10 + 0x60280010, // 0026 GETGBL R10 G16 + 0x882C090D, // 0027 GETMBR R11 R4 K13 + 0x7C280200, // 0028 CALL R10 1 + 0xA802003D, // 0029 EXBLK 0 #0068 + 0x5C2C1400, // 002A MOVE R11 R10 + 0x7C2C0000, // 002B CALL R11 0 + 0x88301710, // 002C GETMBR R12 R11 K16 + 0x88341711, // 002D GETMBR R13 R11 K17 + 0x88381912, // 002E GETMBR R14 R12 K18 + 0x9022240E, // 002F SETMBR R8 K18 R14 + 0x88381913, // 0030 GETMBR R14 R12 K19 + 0x9022260E, // 0031 SETMBR R8 K19 R14 + 0x88381914, // 0032 GETMBR R14 R12 K20 + 0x9022280E, // 0033 SETMBR R8 K20 R14 + 0xB83A0200, // 0034 GETNGBL R14 K1 + 0x88381D16, // 0035 GETMBR R14 R14 K22 + 0x90222A0E, // 0036 SETMBR R8 K21 R14 + 0x88381113, // 0037 GETMBR R14 R8 K19 + 0x4C3C0000, // 0038 LDNIL R15 + 0x1C381C0F, // 0039 EQ R14 R14 R15 + 0x743A0003, // 003A JMPT R14 #003F + 0x88381114, // 003B GETMBR R14 R8 K20 + 0x4C3C0000, // 003C LDNIL R15 + 0x1C381C0F, // 003D EQ R14 R14 R15 + 0x783A000A, // 003E JMPF R14 #004A + 0xB83A0200, // 003F GETNGBL R14 K1 + 0x88381D17, // 0040 GETMBR R14 R14 K23 + 0x90222A0E, // 0041 SETMBR R8 K21 R14 + 0x5C380E00, // 0042 MOVE R14 R7 + 0x5C3C1200, // 0043 MOVE R15 R9 + 0x4C400000, // 0044 LDNIL R16 + 0x5C441000, // 0045 MOVE R17 R8 + 0x4C480000, // 0046 LDNIL R18 + 0x504C0200, // 0047 LDBOOL R19 1 0 + 0x7C380A00, // 0048 CALL R14 5 + 0x7001FFDF, // 0049 JMP #002A + 0x88381112, // 004A GETMBR R14 R8 K18 + 0x4C3C0000, // 004B LDNIL R15 + 0x1C381C0F, // 004C EQ R14 R14 R15 + 0x783A0012, // 004D JMPF R14 #0061 + 0xB83A0200, // 004E GETNGBL R14 K1 + 0x8C381D18, // 004F GETMET R14 R14 K24 + 0x88401113, // 0050 GETMBR R16 R8 K19 + 0x88441114, // 0051 GETMBR R17 R8 K20 + 0x7C380600, // 0052 CALL R14 3 + 0xB83E0800, // 0053 GETNGBL R15 K4 + 0x8C3C1F05, // 0054 GETMET R15 R15 K5 + 0x60440008, // 0055 GETGBL R17 G8 + 0x5C481000, // 0056 MOVE R18 R8 + 0x7C440200, // 0057 CALL R17 1 + 0x00463211, // 0058 ADD R17 K25 R17 + 0x783A0002, // 0059 JMPF R14 #005D + 0x004A340E, // 005A ADD R18 K26 R14 + 0x0048251B, // 005B ADD R18 R18 K27 + 0x70020000, // 005C JMP #005E + 0x5848001C, // 005D LDCONST R18 K28 + 0x00442212, // 005E ADD R17 R17 R18 + 0x5848001D, // 005F LDCONST R18 K29 + 0x7C3C0600, // 0060 CALL R15 3 + 0x88380109, // 0061 GETMBR R14 R0 K9 + 0x8C381D1E, // 0062 GETMET R14 R14 K30 + 0x5C401000, // 0063 MOVE R16 R8 + 0x84440001, // 0064 CLOSURE R17 P1 + 0x7C380600, // 0065 CALL R14 3 + 0xA0280000, // 0066 CLOSE R10 + 0x7001FFC1, // 0067 JMP #002A + 0x5828001F, // 0068 LDCONST R10 K31 + 0xAC280200, // 0069 CATCH R10 1 0 + 0xB0080000, // 006A RAISE 2 R0 R0 + 0xB82A0800, // 006B GETNGBL R10 K4 + 0x8C281505, // 006C GETMET R10 R10 K5 + 0x60300008, // 006D GETGBL R12 G8 + 0x5C341200, // 006E MOVE R13 R9 + 0x7C300200, // 006F CALL R12 1 + 0x0032400C, // 0070 ADD R12 K32 R12 + 0x54360003, // 0071 LDINT R13 4 + 0x7C280600, // 0072 CALL R10 3 + 0xB82A0800, // 0073 GETNGBL R10 K4 + 0x8C281505, // 0074 GETMET R10 R10 K5 + 0x60300008, // 0075 GETGBL R12 G8 + 0x8C341322, // 0076 GETMET R13 R9 K34 + 0x7C340200, // 0077 CALL R13 1 + 0x7C300200, // 0078 CALL R12 1 + 0x0032420C, // 0079 ADD R12 K33 R12 + 0x58340007, // 007A LDCONST R13 K7 + 0x7C280600, // 007B CALL R10 3 + 0x5C280A00, // 007C MOVE R10 R5 + 0x742A0003, // 007D JMPT R10 #0082 + 0x8C280123, // 007E GETMET R10 R0 K35 + 0x5C300200, // 007F MOVE R12 R1 + 0x5C341200, // 0080 MOVE R13 R9 + 0x7C280600, // 0081 CALL R10 3 + 0xA0240000, // 0082 CLOSE R9 + 0x50240200, // 0083 LDBOOL R9 1 0 + 0xA0000000, // 0084 CLOSE R0 + 0x80041200, // 0085 RET 1 R9 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: send_write_response +********************************************************************/ +be_local_closure(Matter_IM_send_write_response, /* name */ + be_nested_proto( + 9, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(send_queue), + /* K1 */ be_nested_str_weak(push), + /* K2 */ be_nested_str_weak(matter), + /* K3 */ be_nested_str_weak(IM_WriteResponse), + }), + be_str_weak(send_write_response), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x880C0100, // 0000 GETMBR R3 R0 K0 + 0x8C0C0701, // 0001 GETMET R3 R3 K1 + 0xB8160400, // 0002 GETNGBL R5 K2 + 0x8C140B03, // 0003 GETMET R5 R5 K3 + 0x5C1C0200, // 0004 MOVE R7 R1 + 0x5C200400, // 0005 MOVE R8 R2 + 0x7C140600, // 0006 CALL R5 3 + 0x7C0C0400, // 0007 CALL R3 2 + 0x80000000, // 0008 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: remove_sendqueue_by_exchangeid +********************************************************************/ +be_local_closure(Matter_IM_remove_sendqueue_by_exchangeid, /* name */ + be_nested_proto( + 6, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -1926,127 +992,68 @@ be_local_closure(Matter_IM_send_subscribe_update, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[29]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(session), - /* K2 */ be_nested_str_weak(matter), - /* K3 */ be_nested_str_weak(ReadRequestMessage), - /* K4 */ be_nested_str_weak(fabric_filtered), - /* K5 */ be_nested_str_weak(attributes_requests), - /* K6 */ be_nested_str_weak(updates), - /* K7 */ be_nested_str_weak(AttributePathIB), - /* K8 */ be_nested_str_weak(endpoint), - /* K9 */ be_nested_str_weak(cluster), - /* K10 */ be_nested_str_weak(attribute), - /* K11 */ be_nested_str_weak(push), - /* K12 */ be_nested_str_weak(stop_iteration), - /* K13 */ be_const_int(0), - /* K14 */ be_nested_str_weak(tasmota), - /* K15 */ be_nested_str_weak(log), - /* K16 */ be_nested_str_weak(format), - /* K17 */ be_nested_str_weak(MTR_X3A_X20_X3CSub_Data_X20_X20_X28_X256i_X29_X20sub_X3D_X25i), - /* K18 */ be_nested_str_weak(local_session_id), - /* K19 */ be_nested_str_weak(subscription_id), - /* K20 */ be_const_int(2), - /* K21 */ be_nested_str_weak(is_keep_alive), - /* K22 */ be_nested_str_weak(MTR_X3A_X20_X3CSub_Alive_X20_X28_X256i_X29_X20sub_X3D_X25i), - /* K23 */ be_nested_str_weak(_inner_process_read_request), - /* K24 */ be_nested_str_weak(suppress_response), - /* K25 */ be_nested_str_weak(IM_ReportDataSubscribed), - /* K26 */ be_nested_str_weak(_message_handler), - /* K27 */ be_nested_str_weak(send_queue), - /* K28 */ be_nested_str_weak(send_enqueued), + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_const_int(0), + /* K1 */ be_nested_str_weak(send_queue), + /* K2 */ be_nested_str_weak(get_exchangeid), + /* K3 */ be_nested_str_weak(remove), + /* K4 */ be_const_int(1), }), - be_str_weak(send_subscribe_update), + be_str_weak(remove_sendqueue_by_exchangeid), &be_const_str_solidified, - ( &(const binstruction[87]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0x880C0301, // 0001 GETMBR R3 R1 K1 - 0xB8120400, // 0002 GETNGBL R4 K2 - 0x8C100903, // 0003 GETMET R4 R4 K3 - 0x7C100200, // 0004 CALL R4 1 - 0x50140000, // 0005 LDBOOL R5 0 0 - 0x90120805, // 0006 SETMBR R4 K4 R5 - 0x60140012, // 0007 GETGBL R5 G18 - 0x7C140000, // 0008 CALL R5 0 - 0x90120A05, // 0009 SETMBR R4 K5 R5 - 0x60140010, // 000A GETGBL R5 G16 - 0x88180306, // 000B GETMBR R6 R1 K6 - 0x7C140200, // 000C CALL R5 1 - 0xA802000F, // 000D EXBLK 0 #001E - 0x5C180A00, // 000E MOVE R6 R5 - 0x7C180000, // 000F CALL R6 0 - 0xB81E0400, // 0010 GETNGBL R7 K2 - 0x8C1C0F07, // 0011 GETMET R7 R7 K7 - 0x7C1C0200, // 0012 CALL R7 1 - 0x88200D08, // 0013 GETMBR R8 R6 K8 - 0x901E1008, // 0014 SETMBR R7 K8 R8 - 0x88200D09, // 0015 GETMBR R8 R6 K9 - 0x901E1208, // 0016 SETMBR R7 K9 R8 - 0x88200D0A, // 0017 GETMBR R8 R6 K10 - 0x901E1408, // 0018 SETMBR R7 K10 R8 - 0x88200905, // 0019 GETMBR R8 R4 K5 - 0x8C20110B, // 001A GETMET R8 R8 K11 - 0x5C280E00, // 001B MOVE R10 R7 - 0x7C200400, // 001C CALL R8 2 - 0x7001FFEF, // 001D JMP #000E - 0x5814000C, // 001E LDCONST R5 K12 - 0xAC140200, // 001F CATCH R5 1 0 - 0xB0080000, // 0020 RAISE 2 R0 R0 - 0x6014000C, // 0021 GETGBL R5 G12 - 0x88180905, // 0022 GETMBR R6 R4 K5 - 0x7C140200, // 0023 CALL R5 1 - 0x24140B0D, // 0024 GT R5 R5 K13 - 0x7816000B, // 0025 JMPF R5 #0032 - 0xB8161C00, // 0026 GETNGBL R5 K14 - 0x8C140B0F, // 0027 GETMET R5 R5 K15 - 0x8C1C0510, // 0028 GETMET R7 R2 K16 - 0x58240011, // 0029 LDCONST R9 K17 - 0x88280712, // 002A GETMBR R10 R3 K18 - 0x882C0313, // 002B GETMBR R11 R1 K19 - 0x7C1C0800, // 002C CALL R7 4 - 0x58200014, // 002D LDCONST R8 K20 - 0x7C140600, // 002E CALL R5 3 - 0x50140000, // 002F LDBOOL R5 0 0 - 0x90062A05, // 0030 SETMBR R1 K21 R5 - 0x7002000A, // 0031 JMP #003D - 0xB8161C00, // 0032 GETNGBL R5 K14 - 0x8C140B0F, // 0033 GETMET R5 R5 K15 - 0x8C1C0510, // 0034 GETMET R7 R2 K16 - 0x58240016, // 0035 LDCONST R9 K22 - 0x88280712, // 0036 GETMBR R10 R3 K18 - 0x882C0313, // 0037 GETMBR R11 R1 K19 - 0x7C1C0800, // 0038 CALL R7 4 - 0x58200014, // 0039 LDCONST R8 K20 - 0x7C140600, // 003A CALL R5 3 - 0x50140200, // 003B LDBOOL R5 1 0 - 0x90062A05, // 003C SETMBR R1 K21 R5 - 0x8C140117, // 003D GETMET R5 R0 K23 - 0x5C1C0600, // 003E MOVE R7 R3 - 0x5C200800, // 003F MOVE R8 R4 - 0x7C140600, // 0040 CALL R5 3 - 0x6018000C, // 0041 GETGBL R6 G12 - 0x881C0905, // 0042 GETMBR R7 R4 K5 - 0x7C180200, // 0043 CALL R6 1 - 0x1C180D0D, // 0044 EQ R6 R6 K13 - 0x90163006, // 0045 SETMBR R5 K24 R6 - 0x88180313, // 0046 GETMBR R6 R1 K19 - 0x90162606, // 0047 SETMBR R5 K19 R6 - 0xB81A0400, // 0048 GETNGBL R6 K2 - 0x8C180D19, // 0049 GETMET R6 R6 K25 - 0x8820071A, // 004A GETMBR R8 R3 K26 - 0x5C240600, // 004B MOVE R9 R3 - 0x5C280A00, // 004C MOVE R10 R5 - 0x5C2C0200, // 004D MOVE R11 R1 - 0x7C180A00, // 004E CALL R6 5 - 0x881C011B, // 004F GETMBR R7 R0 K27 - 0x8C1C0F0B, // 0050 GETMET R7 R7 K11 - 0x5C240C00, // 0051 MOVE R9 R6 - 0x7C1C0400, // 0052 CALL R7 2 - 0x8C1C011C, // 0053 GETMET R7 R0 K28 - 0x8824071A, // 0054 GETMBR R9 R3 K26 - 0x7C1C0400, // 0055 CALL R7 2 - 0x80000000, // 0056 RET 0 + ( &(const binstruction[24]) { /* code */ + 0x4C080000, // 0000 LDNIL R2 + 0x1C080202, // 0001 EQ R2 R1 R2 + 0x780A0000, // 0002 JMPF R2 #0004 + 0x80000400, // 0003 RET 0 + 0x58080000, // 0004 LDCONST R2 K0 + 0x600C000C, // 0005 GETGBL R3 G12 + 0x88100101, // 0006 GETMBR R4 R0 K1 + 0x7C0C0200, // 0007 CALL R3 1 + 0x140C0403, // 0008 LT R3 R2 R3 + 0x780E000C, // 0009 JMPF R3 #0017 + 0x880C0101, // 000A GETMBR R3 R0 K1 + 0x940C0602, // 000B GETIDX R3 R3 R2 + 0x8C0C0702, // 000C GETMET R3 R3 K2 + 0x7C0C0200, // 000D CALL R3 1 + 0x1C0C0601, // 000E EQ R3 R3 R1 + 0x780E0004, // 000F JMPF R3 #0015 + 0x880C0101, // 0010 GETMBR R3 R0 K1 + 0x8C0C0703, // 0011 GETMET R3 R3 K3 + 0x5C140400, // 0012 MOVE R5 R2 + 0x7C0C0400, // 0013 CALL R3 2 + 0x70020000, // 0014 JMP #0016 + 0x00080504, // 0015 ADD R2 R2 K4 + 0x7001FFED, // 0016 JMP #0005 + 0x80000000, // 0017 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: every_second +********************************************************************/ +be_local_closure(Matter_IM_every_second, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(expire_sendqueue), + }), + be_str_weak(every_second), + &be_const_str_solidified, + ( &(const binstruction[ 3]) { /* code */ + 0x8C040100, // 0000 GETMET R1 R0 K0 + 0x7C040200, // 0001 CALL R1 1 + 0x80000000, // 0002 RET 0 }) ) ); @@ -2088,9 +1095,9 @@ be_local_closure(Matter_IM_send_ack_now, /* name */ /******************************************************************** -** Solidified function: every_second +** Solidified function: every_250ms ********************************************************************/ -be_local_closure(Matter_IM_every_second, /* name */ +be_local_closure(Matter_IM_every_250ms, /* name */ be_nested_proto( 3, /* nstack */ 1, /* argc */ @@ -2100,15 +1107,346 @@ be_local_closure(Matter_IM_every_second, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(expire_sendqueue), + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(subs_shop), + /* K1 */ be_nested_str_weak(every_250ms), }), - be_str_weak(every_second), + be_str_weak(every_250ms), &be_const_str_solidified, - ( &(const binstruction[ 3]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x7C040200, // 0001 CALL R1 1 - 0x80000000, // 0002 RET 0 + ( &(const binstruction[ 4]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x7C040200, // 0002 CALL R1 1 + 0x80000000, // 0003 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: send_subscribe_response +********************************************************************/ +be_local_closure(Matter_IM_send_subscribe_response, /* name */ + be_nested_proto( + 11, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(send_queue), + /* K1 */ be_nested_str_weak(push), + /* K2 */ be_nested_str_weak(matter), + /* K3 */ be_nested_str_weak(IM_SubscribeResponse), + }), + be_str_weak(send_subscribe_response), + &be_const_str_solidified, + ( &(const binstruction[10]) { /* code */ + 0x88100100, // 0000 GETMBR R4 R0 K0 + 0x8C100901, // 0001 GETMET R4 R4 K1 + 0xB81A0400, // 0002 GETNGBL R6 K2 + 0x8C180D03, // 0003 GETMET R6 R6 K3 + 0x5C200200, // 0004 MOVE R8 R1 + 0x5C240400, // 0005 MOVE R9 R2 + 0x5C280600, // 0006 MOVE R10 R3 + 0x7C180800, // 0007 CALL R6 4 + 0x7C100400, // 0008 CALL R4 2 + 0x80000000, // 0009 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: send_invoke_response +********************************************************************/ +be_local_closure(Matter_IM_send_invoke_response, /* name */ + be_nested_proto( + 9, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(send_queue), + /* K1 */ be_nested_str_weak(push), + /* K2 */ be_nested_str_weak(matter), + /* K3 */ be_nested_str_weak(IM_InvokeResponse), + }), + be_str_weak(send_invoke_response), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x880C0100, // 0000 GETMBR R3 R0 K0 + 0x8C0C0701, // 0001 GETMET R3 R3 K1 + 0xB8160400, // 0002 GETNGBL R5 K2 + 0x8C140B03, // 0003 GETMET R5 R5 K3 + 0x5C1C0200, // 0004 MOVE R7 R1 + 0x5C200400, // 0005 MOVE R8 R2 + 0x7C140600, // 0006 CALL R5 3 + 0x7C0C0400, // 0007 CALL R3 2 + 0x80000000, // 0008 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: send_status +********************************************************************/ +be_local_closure(Matter_IM_send_status, /* name */ + be_nested_proto( + 9, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(send_queue), + /* K1 */ be_nested_str_weak(push), + /* K2 */ be_nested_str_weak(matter), + /* K3 */ be_nested_str_weak(IM_Status), + }), + be_str_weak(send_status), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x880C0100, // 0000 GETMBR R3 R0 K0 + 0x8C0C0701, // 0001 GETMET R3 R3 K1 + 0xB8160400, // 0002 GETNGBL R5 K2 + 0x8C140B03, // 0003 GETMET R5 R5 K3 + 0x5C1C0200, // 0004 MOVE R7 R1 + 0x5C200400, // 0005 MOVE R8 R2 + 0x7C140600, // 0006 CALL R5 3 + 0x7C0C0400, // 0007 CALL R3 2 + 0x80000000, // 0008 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: subscribe_response +********************************************************************/ +be_local_closure(Matter_IM_subscribe_response, /* name */ + be_nested_proto( + 9, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 8]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(matter), + /* K2 */ be_nested_str_weak(SubscribeResponseMessage), + /* K3 */ be_nested_str_weak(from_TLV), + /* K4 */ be_nested_str_weak(tasmota), + /* K5 */ be_nested_str_weak(log), + /* K6 */ be_nested_str_weak(MTR_X3A_X20received_X20SubscribeResponsetMessage_X3D), + /* K7 */ be_const_int(2), + }), + be_str_weak(subscribe_response), + &be_const_str_solidified, + ( &(const binstruction[17]) { /* code */ + 0xA40E0000, // 0000 IMPORT R3 K0 + 0xB8120200, // 0001 GETNGBL R4 K1 + 0x8C100902, // 0002 GETMET R4 R4 K2 + 0x7C100200, // 0003 CALL R4 1 + 0x8C100903, // 0004 GETMET R4 R4 K3 + 0x5C180400, // 0005 MOVE R6 R2 + 0x7C100400, // 0006 CALL R4 2 + 0xB8160800, // 0007 GETNGBL R5 K4 + 0x8C140B05, // 0008 GETMET R5 R5 K5 + 0x601C0008, // 0009 GETGBL R7 G8 + 0x5C200800, // 000A MOVE R8 R4 + 0x7C1C0200, // 000B CALL R7 1 + 0x001E0C07, // 000C ADD R7 K6 R7 + 0x58200007, // 000D LDCONST R8 K7 + 0x7C140600, // 000E CALL R5 3 + 0x50140000, // 000F LDBOOL R5 0 0 + 0x80040A00, // 0010 RET 1 R5 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: process_incoming +********************************************************************/ +be_local_closure(Matter_IM_process_incoming, /* name */ + be_nested_proto( + 9, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[25]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota), + /* K1 */ be_nested_str_weak(log), + /* K2 */ be_nested_str_weak(MTR_X3A_X20received_X20IM_X20message_X20), + /* K3 */ be_nested_str_weak(matter), + /* K4 */ be_nested_str_weak(inspect), + /* K5 */ be_const_int(3), + /* K6 */ be_nested_str_weak(TLV), + /* K7 */ be_nested_str_weak(parse), + /* K8 */ be_nested_str_weak(raw), + /* K9 */ be_nested_str_weak(app_payload_idx), + /* K10 */ be_nested_str_weak(findsubval), + /* K11 */ be_nested_str_weak(opcode), + /* K12 */ be_const_int(1), + /* K13 */ be_nested_str_weak(process_status_response), + /* K14 */ be_const_int(2), + /* K15 */ be_nested_str_weak(send_ack_now), + /* K16 */ be_nested_str_weak(process_read_request), + /* K17 */ be_nested_str_weak(subscribe_request), + /* K18 */ be_nested_str_weak(subscribe_response), + /* K19 */ be_nested_str_weak(report_data), + /* K20 */ be_nested_str_weak(process_write_request), + /* K21 */ be_nested_str_weak(process_write_response), + /* K22 */ be_nested_str_weak(process_invoke_request), + /* K23 */ be_nested_str_weak(process_invoke_response), + /* K24 */ be_nested_str_weak(process_timed_request), + }), + be_str_weak(process_incoming), + &be_const_str_solidified, + ( &(const binstruction[119]) { /* code */ + 0xB80A0000, // 0000 GETNGBL R2 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0xB8120600, // 0002 GETNGBL R4 K3 + 0x8C100904, // 0003 GETMET R4 R4 K4 + 0x5C180200, // 0004 MOVE R6 R1 + 0x7C100400, // 0005 CALL R4 2 + 0x00120404, // 0006 ADD R4 K2 R4 + 0x58140005, // 0007 LDCONST R5 K5 + 0x7C080600, // 0008 CALL R2 3 + 0xB80A0600, // 0009 GETNGBL R2 K3 + 0x88080506, // 000A GETMBR R2 R2 K6 + 0x8C080507, // 000B GETMET R2 R2 K7 + 0x88100308, // 000C GETMBR R4 R1 K8 + 0x88140309, // 000D GETMBR R5 R1 K9 + 0x7C080600, // 000E CALL R2 3 + 0x8C0C050A, // 000F GETMET R3 R2 K10 + 0x541600FE, // 0010 LDINT R5 255 + 0x7C0C0400, // 0011 CALL R3 2 + 0x8810030B, // 0012 GETMBR R4 R1 K11 + 0x1C14090C, // 0013 EQ R5 R4 K12 + 0x78160005, // 0014 JMPF R5 #001B + 0x8C14010D, // 0015 GETMET R5 R0 K13 + 0x5C1C0200, // 0016 MOVE R7 R1 + 0x5C200400, // 0017 MOVE R8 R2 + 0x7C140600, // 0018 CALL R5 3 + 0x80040A00, // 0019 RET 1 R5 + 0x70020059, // 001A JMP #0075 + 0x1C14090E, // 001B EQ R5 R4 K14 + 0x78160008, // 001C JMPF R5 #0026 + 0x8C14010F, // 001D GETMET R5 R0 K15 + 0x5C1C0200, // 001E MOVE R7 R1 + 0x7C140400, // 001F CALL R5 2 + 0x8C140110, // 0020 GETMET R5 R0 K16 + 0x5C1C0200, // 0021 MOVE R7 R1 + 0x5C200400, // 0022 MOVE R8 R2 + 0x7C140600, // 0023 CALL R5 3 + 0x80040A00, // 0024 RET 1 R5 + 0x7002004E, // 0025 JMP #0075 + 0x1C140905, // 0026 EQ R5 R4 K5 + 0x78160008, // 0027 JMPF R5 #0031 + 0x8C14010F, // 0028 GETMET R5 R0 K15 + 0x5C1C0200, // 0029 MOVE R7 R1 + 0x7C140400, // 002A CALL R5 2 + 0x8C140111, // 002B GETMET R5 R0 K17 + 0x5C1C0200, // 002C MOVE R7 R1 + 0x5C200400, // 002D MOVE R8 R2 + 0x7C140600, // 002E CALL R5 3 + 0x80040A00, // 002F RET 1 R5 + 0x70020043, // 0030 JMP #0075 + 0x54160003, // 0031 LDINT R5 4 + 0x1C140805, // 0032 EQ R5 R4 R5 + 0x78160005, // 0033 JMPF R5 #003A + 0x8C140112, // 0034 GETMET R5 R0 K18 + 0x5C1C0200, // 0035 MOVE R7 R1 + 0x5C200400, // 0036 MOVE R8 R2 + 0x7C140600, // 0037 CALL R5 3 + 0x80040A00, // 0038 RET 1 R5 + 0x7002003A, // 0039 JMP #0075 + 0x54160004, // 003A LDINT R5 5 + 0x1C140805, // 003B EQ R5 R4 R5 + 0x78160005, // 003C JMPF R5 #0043 + 0x8C140113, // 003D GETMET R5 R0 K19 + 0x5C1C0200, // 003E MOVE R7 R1 + 0x5C200400, // 003F MOVE R8 R2 + 0x7C140600, // 0040 CALL R5 3 + 0x80040A00, // 0041 RET 1 R5 + 0x70020031, // 0042 JMP #0075 + 0x54160005, // 0043 LDINT R5 6 + 0x1C140805, // 0044 EQ R5 R4 R5 + 0x78160008, // 0045 JMPF R5 #004F + 0x8C14010F, // 0046 GETMET R5 R0 K15 + 0x5C1C0200, // 0047 MOVE R7 R1 + 0x7C140400, // 0048 CALL R5 2 + 0x8C140114, // 0049 GETMET R5 R0 K20 + 0x5C1C0200, // 004A MOVE R7 R1 + 0x5C200400, // 004B MOVE R8 R2 + 0x7C140600, // 004C CALL R5 3 + 0x80040A00, // 004D RET 1 R5 + 0x70020025, // 004E JMP #0075 + 0x54160006, // 004F LDINT R5 7 + 0x1C140805, // 0050 EQ R5 R4 R5 + 0x78160005, // 0051 JMPF R5 #0058 + 0x8C140115, // 0052 GETMET R5 R0 K21 + 0x5C1C0200, // 0053 MOVE R7 R1 + 0x5C200400, // 0054 MOVE R8 R2 + 0x7C140600, // 0055 CALL R5 3 + 0x80040A00, // 0056 RET 1 R5 + 0x7002001C, // 0057 JMP #0075 + 0x54160007, // 0058 LDINT R5 8 + 0x1C140805, // 0059 EQ R5 R4 R5 + 0x78160008, // 005A JMPF R5 #0064 + 0x8C14010F, // 005B GETMET R5 R0 K15 + 0x5C1C0200, // 005C MOVE R7 R1 + 0x7C140400, // 005D CALL R5 2 + 0x8C140116, // 005E GETMET R5 R0 K22 + 0x5C1C0200, // 005F MOVE R7 R1 + 0x5C200400, // 0060 MOVE R8 R2 + 0x7C140600, // 0061 CALL R5 3 + 0x80040A00, // 0062 RET 1 R5 + 0x70020010, // 0063 JMP #0075 + 0x54160008, // 0064 LDINT R5 9 + 0x1C140805, // 0065 EQ R5 R4 R5 + 0x78160005, // 0066 JMPF R5 #006D + 0x8C140117, // 0067 GETMET R5 R0 K23 + 0x5C1C0200, // 0068 MOVE R7 R1 + 0x5C200400, // 0069 MOVE R8 R2 + 0x7C140600, // 006A CALL R5 3 + 0x80040A00, // 006B RET 1 R5 + 0x70020007, // 006C JMP #0075 + 0x54160009, // 006D LDINT R5 10 + 0x1C140805, // 006E EQ R5 R4 R5 + 0x78160004, // 006F JMPF R5 #0075 + 0x8C140118, // 0070 GETMET R5 R0 K24 + 0x5C1C0200, // 0071 MOVE R7 R1 + 0x5C200400, // 0072 MOVE R8 R2 + 0x7C140600, // 0073 CALL R5 3 + 0x80040A00, // 0074 RET 1 R5 + 0x50140000, // 0075 LDBOOL R5 0 0 + 0x80040A00, // 0076 RET 1 R5 }) ) ); @@ -2496,6 +1834,603 @@ be_local_closure(Matter_IM__inner_process_read_request, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: find_sendqueue_by_exchangeid +********************************************************************/ +be_local_closure(Matter_IM_find_sendqueue_by_exchangeid, /* name */ + be_nested_proto( + 6, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_const_int(0), + /* K1 */ be_nested_str_weak(send_queue), + /* K2 */ be_nested_str_weak(get_exchangeid), + /* K3 */ be_const_int(1), + }), + be_str_weak(find_sendqueue_by_exchangeid), + &be_const_str_solidified, + ( &(const binstruction[22]) { /* code */ + 0x4C080000, // 0000 LDNIL R2 + 0x1C080202, // 0001 EQ R2 R1 R2 + 0x780A0001, // 0002 JMPF R2 #0005 + 0x4C080000, // 0003 LDNIL R2 + 0x80040400, // 0004 RET 1 R2 + 0x58080000, // 0005 LDCONST R2 K0 + 0x600C000C, // 0006 GETGBL R3 G12 + 0x88100101, // 0007 GETMBR R4 R0 K1 + 0x7C0C0200, // 0008 CALL R3 1 + 0x140C0403, // 0009 LT R3 R2 R3 + 0x780E0008, // 000A JMPF R3 #0014 + 0x880C0101, // 000B GETMBR R3 R0 K1 + 0x940C0602, // 000C GETIDX R3 R3 R2 + 0x8C100702, // 000D GETMET R4 R3 K2 + 0x7C100200, // 000E CALL R4 1 + 0x1C100801, // 000F EQ R4 R4 R1 + 0x78120000, // 0010 JMPF R4 #0012 + 0x80040600, // 0011 RET 1 R3 + 0x00080503, // 0012 ADD R2 R2 K3 + 0x7001FFF1, // 0013 JMP #0006 + 0x4C0C0000, // 0014 LDNIL R3 + 0x80040600, // 0015 RET 1 R3 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: process_incoming_ack +********************************************************************/ +be_local_closure(Matter_IM_process_incoming_ack, /* name */ + be_nested_proto( + 11, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[11]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(find_sendqueue_by_exchangeid), + /* K2 */ be_nested_str_weak(exchange_id), + /* K3 */ be_nested_str_weak(tasmota), + /* K4 */ be_nested_str_weak(log), + /* K5 */ be_nested_str_weak(format), + /* K6 */ be_nested_str_weak(MTR_X3A_X20process_incoming_ack_X20exch_X3D_X25i_X20message_X3D_X25i), + /* K7 */ be_const_int(1), + /* K8 */ be_const_int(0), + /* K9 */ be_const_int(3), + /* K10 */ be_nested_str_weak(ack_received), + }), + be_str_weak(process_incoming_ack), + &be_const_str_solidified, + ( &(const binstruction[25]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0x8C0C0101, // 0001 GETMET R3 R0 K1 + 0x88140302, // 0002 GETMBR R5 R1 K2 + 0x7C0C0400, // 0003 CALL R3 2 + 0xB8120600, // 0004 GETNGBL R4 K3 + 0x8C100904, // 0005 GETMET R4 R4 K4 + 0x8C180505, // 0006 GETMET R6 R2 K5 + 0x58200006, // 0007 LDCONST R8 K6 + 0x88240302, // 0008 GETMBR R9 R1 K2 + 0x4C280000, // 0009 LDNIL R10 + 0x2028060A, // 000A NE R10 R3 R10 + 0x782A0001, // 000B JMPF R10 #000E + 0x58280007, // 000C LDCONST R10 K7 + 0x70020000, // 000D JMP #000F + 0x58280008, // 000E LDCONST R10 K8 + 0x7C180800, // 000F CALL R6 4 + 0x581C0009, // 0010 LDCONST R7 K9 + 0x7C100600, // 0011 CALL R4 3 + 0x780E0003, // 0012 JMPF R3 #0017 + 0x8C10070A, // 0013 GETMET R4 R3 K10 + 0x5C180200, // 0014 MOVE R6 R1 + 0x7C100400, // 0015 CALL R4 2 + 0x80040800, // 0016 RET 1 R4 + 0x50100000, // 0017 LDBOOL R4 0 0 + 0x80040800, // 0018 RET 1 R4 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: process_read_request +********************************************************************/ +be_local_closure(Matter_IM_process_read_request, /* name */ + be_nested_proto( + 9, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 7]) { /* constants */ + /* K0 */ be_nested_str_weak(matter), + /* K1 */ be_nested_str_weak(ReadRequestMessage), + /* K2 */ be_nested_str_weak(from_TLV), + /* K3 */ be_nested_str_weak(attributes_requests), + /* K4 */ be_nested_str_weak(_inner_process_read_request), + /* K5 */ be_nested_str_weak(session), + /* K6 */ be_nested_str_weak(send_report_data), + }), + be_str_weak(process_read_request), + &be_const_str_solidified, + ( &(const binstruction[20]) { /* code */ + 0xB80E0000, // 0000 GETNGBL R3 K0 + 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 + 0x88100703, // 0006 GETMBR R4 R3 K3 + 0x4C140000, // 0007 LDNIL R5 + 0x20100805, // 0008 NE R4 R4 R5 + 0x78120007, // 0009 JMPF R4 #0012 + 0x8C100104, // 000A GETMET R4 R0 K4 + 0x88180305, // 000B GETMBR R6 R1 K5 + 0x5C1C0600, // 000C MOVE R7 R3 + 0x7C100600, // 000D CALL R4 3 + 0x8C140106, // 000E GETMET R5 R0 K6 + 0x5C1C0200, // 000F MOVE R7 R1 + 0x5C200800, // 0010 MOVE R8 R4 + 0x7C140600, // 0011 CALL R5 3 + 0x50100200, // 0012 LDBOOL R4 1 0 + 0x80040800, // 0013 RET 1 R4 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: send_report_data +********************************************************************/ +be_local_closure(Matter_IM_send_report_data, /* name */ + be_nested_proto( + 9, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(send_queue), + /* K1 */ be_nested_str_weak(push), + /* K2 */ be_nested_str_weak(matter), + /* K3 */ be_nested_str_weak(IM_ReportData), + }), + be_str_weak(send_report_data), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x880C0100, // 0000 GETMBR R3 R0 K0 + 0x8C0C0701, // 0001 GETMET R3 R3 K1 + 0xB8160400, // 0002 GETNGBL R5 K2 + 0x8C140B03, // 0003 GETMET R5 R5 K3 + 0x5C1C0200, // 0004 MOVE R7 R1 + 0x5C200400, // 0005 MOVE R8 R2 + 0x7C140600, // 0006 CALL R5 3 + 0x7C0C0400, // 0007 CALL R3 2 + 0x80000000, // 0008 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: process_status_response +********************************************************************/ +be_local_closure(Matter_IM_process_status_response, /* name */ + be_nested_proto( + 13, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[19]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(findsubval), + /* K2 */ be_const_int(0), + /* K3 */ be_nested_str_weak(find_sendqueue_by_exchangeid), + /* K4 */ be_nested_str_weak(exchange_id), + /* K5 */ be_nested_str_weak(matter), + /* K6 */ be_nested_str_weak(SUCCESS), + /* K7 */ be_nested_str_weak(status_ok_received), + /* K8 */ be_nested_str_weak(tasmota), + /* K9 */ be_nested_str_weak(log), + /* K10 */ be_nested_str_weak(format), + /* K11 */ be_nested_str_weak(MTR_X3A_X20_X3EOK_X20_X20_X20_X20_X20_X20_X20_X20_X28_X256i_X29_X20exch_X3D_X25i_X20not_X20found), + /* K12 */ be_nested_str_weak(session), + /* K13 */ be_nested_str_weak(local_session_id), + /* K14 */ be_const_int(3), + /* K15 */ be_nested_str_weak(MTR_X3A_X20_X3EStatus_X20_X20_X20_X20ERROR_X20_X3D_X200x_X2502X), + /* K16 */ be_const_int(2), + /* K17 */ be_nested_str_weak(status_error_received), + /* K18 */ be_nested_str_weak(remove_sendqueue_by_exchangeid), + }), + be_str_weak(process_status_response), + &be_const_str_solidified, + ( &(const binstruction[46]) { /* code */ + 0xA40E0000, // 0000 IMPORT R3 K0 + 0x8C100501, // 0001 GETMET R4 R2 K1 + 0x58180002, // 0002 LDCONST R6 K2 + 0x541E00FE, // 0003 LDINT R7 255 + 0x7C100600, // 0004 CALL R4 3 + 0x8C140103, // 0005 GETMET R5 R0 K3 + 0x881C0304, // 0006 GETMBR R7 R1 K4 + 0x7C140400, // 0007 CALL R5 2 + 0xB81A0A00, // 0008 GETNGBL R6 K5 + 0x88180D06, // 0009 GETMBR R6 R6 K6 + 0x1C180806, // 000A EQ R6 R4 R6 + 0x781A0010, // 000B JMPF R6 #001D + 0x78160004, // 000C JMPF R5 #0012 + 0x8C180B07, // 000D GETMET R6 R5 K7 + 0x5C200200, // 000E MOVE R8 R1 + 0x7C180400, // 000F CALL R6 2 + 0x80040C00, // 0010 RET 1 R6 + 0x70020009, // 0011 JMP #001C + 0xB81A1000, // 0012 GETNGBL R6 K8 + 0x8C180D09, // 0013 GETMET R6 R6 K9 + 0x8C20070A, // 0014 GETMET R8 R3 K10 + 0x5828000B, // 0015 LDCONST R10 K11 + 0x882C030C, // 0016 GETMBR R11 R1 K12 + 0x882C170D, // 0017 GETMBR R11 R11 K13 + 0x88300304, // 0018 GETMBR R12 R1 K4 + 0x7C200800, // 0019 CALL R8 4 + 0x5824000E, // 001A LDCONST R9 K14 + 0x7C180600, // 001B CALL R6 3 + 0x7002000E, // 001C JMP #002C + 0xB81A1000, // 001D GETNGBL R6 K8 + 0x8C180D09, // 001E GETMET R6 R6 K9 + 0x8C20070A, // 001F GETMET R8 R3 K10 + 0x5828000F, // 0020 LDCONST R10 K15 + 0x5C2C0800, // 0021 MOVE R11 R4 + 0x7C200600, // 0022 CALL R8 3 + 0x58240010, // 0023 LDCONST R9 K16 + 0x7C180600, // 0024 CALL R6 3 + 0x78160005, // 0025 JMPF R5 #002C + 0x8C180B11, // 0026 GETMET R6 R5 K17 + 0x5C200200, // 0027 MOVE R8 R1 + 0x7C180400, // 0028 CALL R6 2 + 0x8C180112, // 0029 GETMET R6 R0 K18 + 0x88200304, // 002A GETMBR R8 R1 K4 + 0x7C180400, // 002B CALL R6 2 + 0x50180000, // 002C LDBOOL R6 0 0 + 0x80040C00, // 002D RET 1 R6 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: process_write_response +********************************************************************/ +be_local_closure(Matter_IM_process_write_response, /* name */ + be_nested_proto( + 9, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 8]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(matter), + /* K2 */ be_nested_str_weak(WriteResponseMessage), + /* K3 */ be_nested_str_weak(from_TLV), + /* K4 */ be_nested_str_weak(tasmota), + /* K5 */ be_nested_str_weak(log), + /* K6 */ be_nested_str_weak(MTR_X3A_X20received_X20WriteResponseMessage_X3D), + /* K7 */ be_const_int(2), + }), + be_str_weak(process_write_response), + &be_const_str_solidified, + ( &(const binstruction[17]) { /* code */ + 0xA40E0000, // 0000 IMPORT R3 K0 + 0xB8120200, // 0001 GETNGBL R4 K1 + 0x8C100902, // 0002 GETMET R4 R4 K2 + 0x7C100200, // 0003 CALL R4 1 + 0x8C100903, // 0004 GETMET R4 R4 K3 + 0x5C180400, // 0005 MOVE R6 R2 + 0x7C100400, // 0006 CALL R4 2 + 0xB8160800, // 0007 GETNGBL R5 K4 + 0x8C140B05, // 0008 GETMET R5 R5 K5 + 0x601C0008, // 0009 GETGBL R7 G8 + 0x5C200800, // 000A MOVE R8 R4 + 0x7C1C0200, // 000B CALL R7 1 + 0x001E0C07, // 000C ADD R7 K6 R7 + 0x58200007, // 000D LDCONST R8 K7 + 0x7C140600, // 000E CALL R5 3 + 0x50140000, // 000F LDBOOL R5 0 0 + 0x80040A00, // 0010 RET 1 R5 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: send_subscribe_update +********************************************************************/ +be_local_closure(Matter_IM_send_subscribe_update, /* name */ + be_nested_proto( + 12, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[27]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(session), + /* K2 */ be_nested_str_weak(matter), + /* K3 */ be_nested_str_weak(ReadRequestMessage), + /* K4 */ be_nested_str_weak(fabric_filtered), + /* K5 */ be_nested_str_weak(attributes_requests), + /* K6 */ be_nested_str_weak(updates), + /* K7 */ be_nested_str_weak(AttributePathIB), + /* K8 */ be_nested_str_weak(endpoint), + /* K9 */ be_nested_str_weak(cluster), + /* K10 */ be_nested_str_weak(attribute), + /* K11 */ be_nested_str_weak(push), + /* K12 */ be_nested_str_weak(stop_iteration), + /* K13 */ be_nested_str_weak(tasmota), + /* K14 */ be_nested_str_weak(log), + /* K15 */ be_nested_str_weak(format), + /* K16 */ be_nested_str_weak(MTR_X3A_X20_X3CSub_Data_X20_X20_X28_X256i_X29_X20sub_X3D_X25i), + /* K17 */ be_nested_str_weak(local_session_id), + /* K18 */ be_nested_str_weak(subscription_id), + /* K19 */ be_const_int(2), + /* K20 */ be_nested_str_weak(is_keep_alive), + /* K21 */ be_nested_str_weak(_inner_process_read_request), + /* K22 */ be_nested_str_weak(suppress_response), + /* K23 */ be_nested_str_weak(IM_ReportDataSubscribed), + /* K24 */ be_nested_str_weak(_message_handler), + /* K25 */ be_nested_str_weak(send_queue), + /* K26 */ be_nested_str_weak(send_enqueued), + }), + be_str_weak(send_subscribe_update), + &be_const_str_solidified, + ( &(const binstruction[67]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0x880C0301, // 0001 GETMBR R3 R1 K1 + 0xB8120400, // 0002 GETNGBL R4 K2 + 0x8C100903, // 0003 GETMET R4 R4 K3 + 0x7C100200, // 0004 CALL R4 1 + 0x50140000, // 0005 LDBOOL R5 0 0 + 0x90120805, // 0006 SETMBR R4 K4 R5 + 0x60140012, // 0007 GETGBL R5 G18 + 0x7C140000, // 0008 CALL R5 0 + 0x90120A05, // 0009 SETMBR R4 K5 R5 + 0x60140010, // 000A GETGBL R5 G16 + 0x88180306, // 000B GETMBR R6 R1 K6 + 0x7C140200, // 000C CALL R5 1 + 0xA802000F, // 000D EXBLK 0 #001E + 0x5C180A00, // 000E MOVE R6 R5 + 0x7C180000, // 000F CALL R6 0 + 0xB81E0400, // 0010 GETNGBL R7 K2 + 0x8C1C0F07, // 0011 GETMET R7 R7 K7 + 0x7C1C0200, // 0012 CALL R7 1 + 0x88200D08, // 0013 GETMBR R8 R6 K8 + 0x901E1008, // 0014 SETMBR R7 K8 R8 + 0x88200D09, // 0015 GETMBR R8 R6 K9 + 0x901E1208, // 0016 SETMBR R7 K9 R8 + 0x88200D0A, // 0017 GETMBR R8 R6 K10 + 0x901E1408, // 0018 SETMBR R7 K10 R8 + 0x88200905, // 0019 GETMBR R8 R4 K5 + 0x8C20110B, // 001A GETMET R8 R8 K11 + 0x5C280E00, // 001B MOVE R10 R7 + 0x7C200400, // 001C CALL R8 2 + 0x7001FFEF, // 001D JMP #000E + 0x5814000C, // 001E LDCONST R5 K12 + 0xAC140200, // 001F CATCH R5 1 0 + 0xB0080000, // 0020 RAISE 2 R0 R0 + 0xB8161A00, // 0021 GETNGBL R5 K13 + 0x8C140B0E, // 0022 GETMET R5 R5 K14 + 0x8C1C050F, // 0023 GETMET R7 R2 K15 + 0x58240010, // 0024 LDCONST R9 K16 + 0x88280711, // 0025 GETMBR R10 R3 K17 + 0x882C0312, // 0026 GETMBR R11 R1 K18 + 0x7C1C0800, // 0027 CALL R7 4 + 0x58200013, // 0028 LDCONST R8 K19 + 0x7C140600, // 0029 CALL R5 3 + 0x50140000, // 002A LDBOOL R5 0 0 + 0x90062805, // 002B SETMBR R1 K20 R5 + 0x8C140115, // 002C GETMET R5 R0 K21 + 0x5C1C0600, // 002D MOVE R7 R3 + 0x5C200800, // 002E MOVE R8 R4 + 0x7C140600, // 002F CALL R5 3 + 0x50180000, // 0030 LDBOOL R6 0 0 + 0x90162C06, // 0031 SETMBR R5 K22 R6 + 0x88180312, // 0032 GETMBR R6 R1 K18 + 0x90162406, // 0033 SETMBR R5 K18 R6 + 0xB81A0400, // 0034 GETNGBL R6 K2 + 0x8C180D17, // 0035 GETMET R6 R6 K23 + 0x88200718, // 0036 GETMBR R8 R3 K24 + 0x5C240600, // 0037 MOVE R9 R3 + 0x5C280A00, // 0038 MOVE R10 R5 + 0x5C2C0200, // 0039 MOVE R11 R1 + 0x7C180A00, // 003A CALL R6 5 + 0x881C0119, // 003B GETMBR R7 R0 K25 + 0x8C1C0F0B, // 003C GETMET R7 R7 K11 + 0x5C240C00, // 003D MOVE R9 R6 + 0x7C1C0400, // 003E CALL R7 2 + 0x8C1C011A, // 003F GETMET R7 R0 K26 + 0x88240718, // 0040 GETMBR R9 R3 K24 + 0x7C1C0400, // 0041 CALL R7 2 + 0x80000000, // 0042 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: send_enqueued +********************************************************************/ +be_local_closure(Matter_IM_send_enqueued, /* name */ + be_nested_proto( + 8, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[13]) { /* constants */ + /* K0 */ be_const_int(0), + /* K1 */ be_nested_str_weak(send_queue), + /* K2 */ be_nested_str_weak(finish), + /* K3 */ be_nested_str_weak(ready), + /* K4 */ be_nested_str_weak(send_im), + /* K5 */ be_nested_str_weak(tasmota), + /* K6 */ be_nested_str_weak(log), + /* K7 */ be_nested_str_weak(MTR_X3A_X20remove_X20IM_X20message_X20exch_X3D), + /* K8 */ be_nested_str_weak(resp), + /* K9 */ be_nested_str_weak(exchange_id), + /* K10 */ be_const_int(3), + /* K11 */ be_nested_str_weak(remove), + /* K12 */ be_const_int(1), + }), + be_str_weak(send_enqueued), + &be_const_str_solidified, + ( &(const binstruction[34]) { /* 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 + 0x780E001A, // 0005 JMPF R3 #0021 + 0x880C0101, // 0006 GETMBR R3 R0 K1 + 0x940C0602, // 0007 GETIDX R3 R3 R2 + 0x88100702, // 0008 GETMBR R4 R3 K2 + 0x74120004, // 0009 JMPT R4 #000F + 0x88100703, // 000A GETMBR R4 R3 K3 + 0x78120002, // 000B JMPF R4 #000F + 0x8C100704, // 000C GETMET R4 R3 K4 + 0x5C180200, // 000D MOVE R6 R1 + 0x7C100400, // 000E CALL R4 2 + 0x88100702, // 000F GETMBR R4 R3 K2 + 0x7812000D, // 0010 JMPF R4 #001F + 0xB8120A00, // 0011 GETNGBL R4 K5 + 0x8C100906, // 0012 GETMET R4 R4 K6 + 0x60180008, // 0013 GETGBL R6 G8 + 0x881C0708, // 0014 GETMBR R7 R3 K8 + 0x881C0F09, // 0015 GETMBR R7 R7 K9 + 0x7C180200, // 0016 CALL R6 1 + 0x001A0E06, // 0017 ADD R6 K7 R6 + 0x581C000A, // 0018 LDCONST R7 K10 + 0x7C100600, // 0019 CALL R4 3 + 0x88100101, // 001A GETMBR R4 R0 K1 + 0x8C10090B, // 001B GETMET R4 R4 K11 + 0x5C180400, // 001C MOVE R6 R2 + 0x7C100400, // 001D CALL R4 2 + 0x70020000, // 001E JMP #0020 + 0x0008050C, // 001F ADD R2 R2 K12 + 0x7001FFDF, // 0020 JMP #0001 + 0x80000000, // 0021 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: process_timed_request +********************************************************************/ +be_local_closure(Matter_IM_process_timed_request, /* name */ + be_nested_proto( + 12, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[16]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(matter), + /* K2 */ be_nested_str_weak(TimedRequestMessage), + /* K3 */ be_nested_str_weak(from_TLV), + /* K4 */ be_nested_str_weak(tasmota), + /* K5 */ be_nested_str_weak(log), + /* K6 */ be_nested_str_weak(MTR_X3A_X20received_X20TimedRequestMessage_X3D), + /* K7 */ be_const_int(3), + /* K8 */ be_nested_str_weak(format), + /* K9 */ be_nested_str_weak(MTR_X3A_X20_X3ECommand_X20_X20_X20_X28_X256i_X29_X20TimedRequest_X3D_X25i), + /* K10 */ be_nested_str_weak(session), + /* K11 */ be_nested_str_weak(local_session_id), + /* K12 */ be_nested_str_weak(timeout), + /* K13 */ be_const_int(2), + /* K14 */ be_nested_str_weak(send_status), + /* K15 */ be_nested_str_weak(SUCCESS), + }), + be_str_weak(process_timed_request), + &be_const_str_solidified, + ( &(const binstruction[32]) { /* code */ + 0xA40E0000, // 0000 IMPORT R3 K0 + 0xB8120200, // 0001 GETNGBL R4 K1 + 0x8C100902, // 0002 GETMET R4 R4 K2 + 0x7C100200, // 0003 CALL R4 1 + 0x8C100903, // 0004 GETMET R4 R4 K3 + 0x5C180400, // 0005 MOVE R6 R2 + 0x7C100400, // 0006 CALL R4 2 + 0xB8160800, // 0007 GETNGBL R5 K4 + 0x8C140B05, // 0008 GETMET R5 R5 K5 + 0x601C0008, // 0009 GETGBL R7 G8 + 0x5C200800, // 000A MOVE R8 R4 + 0x7C1C0200, // 000B CALL R7 1 + 0x001E0C07, // 000C ADD R7 K6 R7 + 0x58200007, // 000D LDCONST R8 K7 + 0x7C140600, // 000E CALL R5 3 + 0xB8160800, // 000F GETNGBL R5 K4 + 0x8C140B05, // 0010 GETMET R5 R5 K5 + 0x8C1C0708, // 0011 GETMET R7 R3 K8 + 0x58240009, // 0012 LDCONST R9 K9 + 0x8828030A, // 0013 GETMBR R10 R1 K10 + 0x8828150B, // 0014 GETMBR R10 R10 K11 + 0x882C090C, // 0015 GETMBR R11 R4 K12 + 0x7C1C0800, // 0016 CALL R7 4 + 0x5820000D, // 0017 LDCONST R8 K13 + 0x7C140600, // 0018 CALL R5 3 + 0x8C14010E, // 0019 GETMET R5 R0 K14 + 0x5C1C0200, // 001A MOVE R7 R1 + 0xB8220200, // 001B GETNGBL R8 K1 + 0x8820110F, // 001C GETMBR R8 R8 K15 + 0x7C140600, // 001D CALL R5 3 + 0x50140200, // 001E LDBOOL R5 1 0 + 0x80040A00, // 001F RET 1 R5 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: report_data ********************************************************************/ @@ -2545,44 +2480,210 @@ be_local_closure(Matter_IM_report_data, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: process_invoke_response +********************************************************************/ +be_local_closure(Matter_IM_process_invoke_response, /* name */ + be_nested_proto( + 9, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 8]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(matter), + /* K2 */ be_nested_str_weak(InvokeResponseMessage), + /* K3 */ be_nested_str_weak(from_TLV), + /* K4 */ be_nested_str_weak(tasmota), + /* K5 */ be_nested_str_weak(log), + /* K6 */ be_nested_str_weak(MTR_X3A_X20received_X20InvokeResponseMessage_X3D), + /* K7 */ be_const_int(2), + }), + be_str_weak(process_invoke_response), + &be_const_str_solidified, + ( &(const binstruction[17]) { /* code */ + 0xA40E0000, // 0000 IMPORT R3 K0 + 0xB8120200, // 0001 GETNGBL R4 K1 + 0x8C100902, // 0002 GETMET R4 R4 K2 + 0x7C100200, // 0003 CALL R4 1 + 0x8C100903, // 0004 GETMET R4 R4 K3 + 0x5C180400, // 0005 MOVE R6 R2 + 0x7C100400, // 0006 CALL R4 2 + 0xB8160800, // 0007 GETNGBL R5 K4 + 0x8C140B05, // 0008 GETMET R5 R5 K5 + 0x601C0008, // 0009 GETGBL R7 G8 + 0x5C200800, // 000A MOVE R8 R4 + 0x7C1C0200, // 000B CALL R7 1 + 0x001E0C07, // 000C ADD R7 K6 R7 + 0x58200007, // 000D LDCONST R8 K7 + 0x7C140600, // 000E CALL R5 3 + 0x50140000, // 000F LDBOOL R5 0 0 + 0x80040A00, // 0010 RET 1 R5 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: init +********************************************************************/ +be_local_closure(Matter_IM_init, /* name */ + be_nested_proto( + 5, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(device), + /* K1 */ be_nested_str_weak(send_queue), + /* K2 */ be_nested_str_weak(subs_shop), + /* K3 */ be_nested_str_weak(matter), + /* K4 */ be_nested_str_weak(IM_Subscription_Shop), + }), + be_str_weak(init), + &be_const_str_solidified, + ( &(const binstruction[10]) { /* code */ + 0x90020001, // 0000 SETMBR R0 K0 R1 + 0x60080012, // 0001 GETGBL R2 G18 + 0x7C080000, // 0002 CALL R2 0 + 0x90020202, // 0003 SETMBR R0 K1 R2 + 0xB80A0600, // 0004 GETNGBL R2 K3 + 0x8C080504, // 0005 GETMET R2 R2 K4 + 0x5C100000, // 0006 MOVE R4 R0 + 0x7C080400, // 0007 CALL R2 2 + 0x90020402, // 0008 SETMBR R0 K2 R2 + 0x80000000, // 0009 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: send_subscribe_heartbeat +********************************************************************/ +be_local_closure(Matter_IM_send_subscribe_heartbeat, /* name */ + be_nested_proto( + 11, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[18]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(session), + /* K2 */ be_nested_str_weak(tasmota), + /* K3 */ be_nested_str_weak(log), + /* K4 */ be_nested_str_weak(format), + /* K5 */ be_nested_str_weak(MTR_X3A_X20_X3CSub_Alive_X20_X28_X256i_X29_X20sub_X3D_X25i), + /* K6 */ be_nested_str_weak(local_session_id), + /* K7 */ be_nested_str_weak(subscription_id), + /* K8 */ be_const_int(2), + /* K9 */ be_nested_str_weak(is_keep_alive), + /* K10 */ be_nested_str_weak(matter), + /* K11 */ be_nested_str_weak(ReportDataMessage), + /* K12 */ be_nested_str_weak(suppress_response), + /* K13 */ be_nested_str_weak(IM_SubscribedHeartbeat), + /* K14 */ be_nested_str_weak(_message_handler), + /* K15 */ be_nested_str_weak(send_queue), + /* K16 */ be_nested_str_weak(push), + /* K17 */ be_nested_str_weak(send_enqueued), + }), + be_str_weak(send_subscribe_heartbeat), + &be_const_str_solidified, + ( &(const binstruction[35]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0x880C0301, // 0001 GETMBR R3 R1 K1 + 0xB8120400, // 0002 GETNGBL R4 K2 + 0x8C100903, // 0003 GETMET R4 R4 K3 + 0x8C180504, // 0004 GETMET R6 R2 K4 + 0x58200005, // 0005 LDCONST R8 K5 + 0x88240706, // 0006 GETMBR R9 R3 K6 + 0x88280307, // 0007 GETMBR R10 R1 K7 + 0x7C180800, // 0008 CALL R6 4 + 0x581C0008, // 0009 LDCONST R7 K8 + 0x7C100600, // 000A CALL R4 3 + 0x50100200, // 000B LDBOOL R4 1 0 + 0x90061204, // 000C SETMBR R1 K9 R4 + 0xB8121400, // 000D GETNGBL R4 K10 + 0x8C10090B, // 000E GETMET R4 R4 K11 + 0x7C100200, // 000F CALL R4 1 + 0x50140200, // 0010 LDBOOL R5 1 0 + 0x90121805, // 0011 SETMBR R4 K12 R5 + 0x88140307, // 0012 GETMBR R5 R1 K7 + 0x90120E05, // 0013 SETMBR R4 K7 R5 + 0xB8161400, // 0014 GETNGBL R5 K10 + 0x8C140B0D, // 0015 GETMET R5 R5 K13 + 0x881C070E, // 0016 GETMBR R7 R3 K14 + 0x5C200600, // 0017 MOVE R8 R3 + 0x5C240800, // 0018 MOVE R9 R4 + 0x5C280200, // 0019 MOVE R10 R1 + 0x7C140A00, // 001A CALL R5 5 + 0x8818010F, // 001B GETMBR R6 R0 K15 + 0x8C180D10, // 001C GETMET R6 R6 K16 + 0x5C200A00, // 001D MOVE R8 R5 + 0x7C180400, // 001E CALL R6 2 + 0x8C180111, // 001F GETMET R6 R0 K17 + 0x8820070E, // 0020 GETMBR R8 R3 K14 + 0x7C180400, // 0021 CALL R6 2 + 0x80000000, // 0022 RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified class: Matter_IM ********************************************************************/ be_local_class(Matter_IM, 3, NULL, - be_nested_map(30, + be_nested_map(31, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(process_status_response, -1), be_const_closure(Matter_IM_process_status_response_closure) }, - { be_const_key_weak(report_data, -1), be_const_closure(Matter_IM_report_data_closure) }, - { be_const_key_weak(_inner_process_read_request, -1), be_const_closure(Matter_IM__inner_process_read_request_closure) }, - { be_const_key_weak(process_read_request, -1), be_const_closure(Matter_IM_process_read_request_closure) }, - { be_const_key_weak(process_write_response, -1), be_const_closure(Matter_IM_process_write_response_closure) }, - { be_const_key_weak(send_write_response, 0), be_const_closure(Matter_IM_send_write_response_closure) }, - { be_const_key_weak(process_write_request, -1), be_const_closure(Matter_IM_process_write_request_closure) }, - { be_const_key_weak(every_second, 22), be_const_closure(Matter_IM_every_second_closure) }, - { be_const_key_weak(send_ack_now, 23), be_const_closure(Matter_IM_send_ack_now_closure) }, - { be_const_key_weak(find_sendqueue_by_exchangeid, -1), be_const_closure(Matter_IM_find_sendqueue_by_exchangeid_closure) }, - { be_const_key_weak(subscribe_response, -1), be_const_closure(Matter_IM_subscribe_response_closure) }, - { be_const_key_weak(process_incoming_ack, 24), be_const_closure(Matter_IM_process_incoming_ack_closure) }, - { be_const_key_weak(remove_sendqueue_by_exchangeid, -1), be_const_closure(Matter_IM_remove_sendqueue_by_exchangeid_closure) }, - { be_const_key_weak(subscribe_request, 10), be_const_closure(Matter_IM_subscribe_request_closure) }, - { be_const_key_weak(send_invoke_response, 26), be_const_closure(Matter_IM_send_invoke_response_closure) }, - { be_const_key_weak(init, 7), be_const_closure(Matter_IM_init_closure) }, - { be_const_key_weak(expire_sendqueue, 25), be_const_closure(Matter_IM_expire_sendqueue_closure) }, - { be_const_key_weak(process_incoming, -1), be_const_closure(Matter_IM_process_incoming_closure) }, - { be_const_key_weak(process_timed_request, -1), be_const_closure(Matter_IM_process_timed_request_closure) }, - { be_const_key_weak(process_invoke_response, -1), be_const_closure(Matter_IM_process_invoke_response_closure) }, - { be_const_key_weak(send_subscribe_response, 8), be_const_closure(Matter_IM_send_subscribe_response_closure) }, - { be_const_key_weak(device, -1), be_const_var(0) }, + { be_const_key_weak(send_subscribe_heartbeat, -1), be_const_closure(Matter_IM_send_subscribe_heartbeat_closure) }, + { be_const_key_weak(subs_shop, 23), be_const_var(1) }, + { be_const_key_weak(send_queue, 30), be_const_var(2) }, { be_const_key_weak(process_invoke_request, -1), be_const_closure(Matter_IM_process_invoke_request_closure) }, + { be_const_key_weak(subscribe_request, -1), be_const_closure(Matter_IM_subscribe_request_closure) }, + { be_const_key_weak(process_write_request, 11), be_const_closure(Matter_IM_process_write_request_closure) }, + { be_const_key_weak(send_write_response, -1), be_const_closure(Matter_IM_send_write_response_closure) }, + { be_const_key_weak(remove_sendqueue_by_exchangeid, -1), be_const_closure(Matter_IM_remove_sendqueue_by_exchangeid_closure) }, + { be_const_key_weak(every_second, -1), be_const_closure(Matter_IM_every_second_closure) }, + { be_const_key_weak(send_ack_now, -1), be_const_closure(Matter_IM_send_ack_now_closure) }, { be_const_key_weak(every_250ms, -1), be_const_closure(Matter_IM_every_250ms_closure) }, - { be_const_key_weak(send_report_data, 19), be_const_closure(Matter_IM_send_report_data_closure) }, - { be_const_key_weak(send_status, -1), be_const_closure(Matter_IM_send_status_closure) }, + { be_const_key_weak(send_invoke_response, -1), be_const_closure(Matter_IM_send_invoke_response_closure) }, + { be_const_key_weak(process_invoke_response, 21), be_const_closure(Matter_IM_process_invoke_response_closure) }, + { be_const_key_weak(_inner_process_read_request, -1), be_const_closure(Matter_IM__inner_process_read_request_closure) }, + { be_const_key_weak(subscribe_response, 22), be_const_closure(Matter_IM_subscribe_response_closure) }, + { be_const_key_weak(process_incoming, -1), be_const_closure(Matter_IM_process_incoming_closure) }, + { be_const_key_weak(send_subscribe_response, 18), be_const_closure(Matter_IM_send_subscribe_response_closure) }, + { be_const_key_weak(find_sendqueue_by_exchangeid, -1), be_const_closure(Matter_IM_find_sendqueue_by_exchangeid_closure) }, + { be_const_key_weak(process_incoming_ack, 13), be_const_closure(Matter_IM_process_incoming_ack_closure) }, + { be_const_key_weak(process_read_request, -1), be_const_closure(Matter_IM_process_read_request_closure) }, + { be_const_key_weak(send_report_data, -1), be_const_closure(Matter_IM_send_report_data_closure) }, + { be_const_key_weak(process_timed_request, -1), be_const_closure(Matter_IM_process_timed_request_closure) }, + { be_const_key_weak(process_status_response, -1), be_const_closure(Matter_IM_process_status_response_closure) }, + { be_const_key_weak(send_subscribe_update, 28), be_const_closure(Matter_IM_send_subscribe_update_closure) }, { be_const_key_weak(send_enqueued, -1), be_const_closure(Matter_IM_send_enqueued_closure) }, - { be_const_key_weak(subs_shop, 2), be_const_var(1) }, - { be_const_key_weak(send_subscribe_update, 1), be_const_closure(Matter_IM_send_subscribe_update_closure) }, - { be_const_key_weak(send_queue, -1), be_const_var(2) }, + { be_const_key_weak(process_write_response, 12), be_const_closure(Matter_IM_process_write_response_closure) }, + { be_const_key_weak(report_data, 0), be_const_closure(Matter_IM_report_data_closure) }, + { be_const_key_weak(device, -1), be_const_var(0) }, + { be_const_key_weak(send_status, -1), be_const_closure(Matter_IM_send_status_closure) }, + { be_const_key_weak(init, -1), be_const_closure(Matter_IM_init_closure) }, + { be_const_key_weak(expire_sendqueue, -1), be_const_closure(Matter_IM_expire_sendqueue_closure) }, })), be_str_weak(Matter_IM) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM_Message.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM_Message.h index 4f006e515..023811a39 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM_Message.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM_Message.h @@ -4,116 +4,26 @@ \********************************************************************/ #include "be_constobj.h" -extern const bclass be_class_Matter_Path; +extern const bclass be_class_Matter_IM_Message; /******************************************************************** -** Solidified function: tostring +** Solidified function: status_error_received ********************************************************************/ -be_local_closure(Matter_Path_tostring, /* name */ +be_local_closure(Matter_IM_Message_status_error_received, /* name */ be_nested_proto( - 7, /* nstack */ - 1, /* argc */ + 2, /* nstack */ + 2, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[15]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(), - /* K2 */ be_nested_str_weak(endpoint), - /* K3 */ be_nested_str_weak(format), - /* K4 */ be_nested_str_weak(_X5B_X2502X_X5D), - /* K5 */ be_nested_str_weak(_X5B_X2A_X2A_X5D), - /* K6 */ be_nested_str_weak(cluster), - /* K7 */ be_nested_str_weak(_X2504X_X2F), - /* K8 */ be_nested_str_weak(_X2A_X2A_X2A_X2A_X2F), - /* K9 */ be_nested_str_weak(attribute), - /* K10 */ be_nested_str_weak(_X2504X), - /* K11 */ be_nested_str_weak(command), - /* K12 */ be_nested_str_weak(_X2A_X2A_X2A_X2A), - /* K13 */ be_nested_str_weak(Exception_X3E_X20), - /* K14 */ be_nested_str_weak(_X2C_X20), - }), - be_str_weak(tostring), + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(status_error_received), &be_const_str_solidified, - ( &(const binstruction[75]) { /* code */ - 0xA802003A, // 0000 EXBLK 0 #003C - 0xA4060000, // 0001 IMPORT R1 K0 - 0x58080001, // 0002 LDCONST R2 K1 - 0x880C0102, // 0003 GETMBR R3 R0 K2 - 0x4C100000, // 0004 LDNIL R4 - 0x200C0604, // 0005 NE R3 R3 R4 - 0x780E0004, // 0006 JMPF R3 #000C - 0x8C0C0303, // 0007 GETMET R3 R1 K3 - 0x58140004, // 0008 LDCONST R5 K4 - 0x88180102, // 0009 GETMBR R6 R0 K2 - 0x7C0C0600, // 000A CALL R3 3 - 0x70020000, // 000B JMP #000D - 0x580C0005, // 000C LDCONST R3 K5 - 0x00080403, // 000D ADD R2 R2 R3 - 0x880C0106, // 000E GETMBR R3 R0 K6 - 0x4C100000, // 000F LDNIL R4 - 0x200C0604, // 0010 NE R3 R3 R4 - 0x780E0004, // 0011 JMPF R3 #0017 - 0x8C0C0303, // 0012 GETMET R3 R1 K3 - 0x58140007, // 0013 LDCONST R5 K7 - 0x88180106, // 0014 GETMBR R6 R0 K6 - 0x7C0C0600, // 0015 CALL R3 3 - 0x70020000, // 0016 JMP #0018 - 0x580C0008, // 0017 LDCONST R3 K8 - 0x00080403, // 0018 ADD R2 R2 R3 - 0x880C0109, // 0019 GETMBR R3 R0 K9 - 0x4C100000, // 001A LDNIL R4 - 0x200C0604, // 001B NE R3 R3 R4 - 0x780E0004, // 001C JMPF R3 #0022 - 0x8C0C0303, // 001D GETMET R3 R1 K3 - 0x5814000A, // 001E LDCONST R5 K10 - 0x88180109, // 001F GETMBR R6 R0 K9 - 0x7C0C0600, // 0020 CALL R3 3 - 0x70020000, // 0021 JMP #0023 - 0x580C0001, // 0022 LDCONST R3 K1 - 0x00080403, // 0023 ADD R2 R2 R3 - 0x880C010B, // 0024 GETMBR R3 R0 K11 - 0x4C100000, // 0025 LDNIL R4 - 0x200C0604, // 0026 NE R3 R3 R4 - 0x780E0004, // 0027 JMPF R3 #002D - 0x8C0C0303, // 0028 GETMET R3 R1 K3 - 0x5814000A, // 0029 LDCONST R5 K10 - 0x8818010B, // 002A GETMBR R6 R0 K11 - 0x7C0C0600, // 002B CALL R3 3 - 0x70020000, // 002C JMP #002E - 0x580C0001, // 002D LDCONST R3 K1 - 0x00080403, // 002E ADD R2 R2 R3 - 0x880C0109, // 002F GETMBR R3 R0 K9 - 0x4C100000, // 0030 LDNIL R4 - 0x1C0C0604, // 0031 EQ R3 R3 R4 - 0x780E0004, // 0032 JMPF R3 #0038 - 0x880C010B, // 0033 GETMBR R3 R0 K11 - 0x4C100000, // 0034 LDNIL R4 - 0x1C0C0604, // 0035 EQ R3 R3 R4 - 0x780E0000, // 0036 JMPF R3 #0038 - 0x0008050C, // 0037 ADD R2 R2 K12 - 0xA8040001, // 0038 EXBLK 1 1 - 0x80040400, // 0039 RET 1 R2 - 0xA8040001, // 003A EXBLK 1 1 - 0x7002000D, // 003B JMP #004A - 0xAC040002, // 003C CATCH R1 0 2 - 0x7002000A, // 003D JMP #0049 - 0x600C0008, // 003E GETGBL R3 G8 - 0x5C100200, // 003F MOVE R4 R1 - 0x7C0C0200, // 0040 CALL R3 1 - 0x000E1A03, // 0041 ADD R3 K13 R3 - 0x000C070E, // 0042 ADD R3 R3 K14 - 0x60100008, // 0043 GETGBL R4 G8 - 0x5C140400, // 0044 MOVE R5 R2 - 0x7C100200, // 0045 CALL R4 1 - 0x000C0604, // 0046 ADD R3 R3 R4 - 0x80040600, // 0047 RET 1 R3 - 0x70020000, // 0048 JMP #004A - 0xB0080000, // 0049 RAISE 2 R0 R0 - 0x80000000, // 004A RET 0 + ( &(const binstruction[ 1]) { /* code */ + 0x80000000, // 0000 RET 0 }) ) ); @@ -121,39 +31,11 @@ be_local_closure(Matter_Path_tostring, /* name */ /******************************************************************** -** Solidified class: Matter_Path +** Solidified function: send_im ********************************************************************/ -be_local_class(Matter_Path, - 6, - NULL, - be_nested_map(7, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(log, 4), be_const_var(5) }, - { be_const_key_weak(command, 2), be_const_var(3) }, - { be_const_key_weak(status, -1), be_const_var(4) }, - { be_const_key_weak(tostring, -1), be_const_closure(Matter_Path_tostring_closure) }, - { be_const_key_weak(cluster, 5), be_const_var(1) }, - { be_const_key_weak(endpoint, -1), be_const_var(0) }, - { be_const_key_weak(attribute, -1), be_const_var(2) }, - })), - be_str_weak(Matter_Path) -); -/*******************************************************************/ - -void be_load_Matter_Path_class(bvm *vm) { - be_pushntvclass(vm, &be_class_Matter_Path); - be_setglobal(vm, "Matter_Path"); - be_pop(vm, 1); -} - -extern const bclass be_class_Matter_IM_Message; - -/******************************************************************** -** Solidified function: ack_received -********************************************************************/ -be_local_closure(Matter_IM_Message_ack_received, /* name */ +be_local_closure(Matter_IM_Message_send_im, /* name */ be_nested_proto( - 4, /* nstack */ + 13, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -161,23 +43,84 @@ be_local_closure(Matter_IM_Message_ack_received, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(expiration), + ( &(const bvalue[24]) { /* constants */ + /* K0 */ be_nested_str_weak(string), /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(millis), - /* K3 */ be_nested_str_weak(MSG_TIMEOUT), + /* K2 */ be_nested_str_weak(log), + /* K3 */ be_nested_str_weak(format), + /* K4 */ be_nested_str_weak(MTR_X3A_X20IM_Message_X20send_im_X20exch_X3D_X25i_X20ready_X3D_X25i), + /* K5 */ be_nested_str_weak(resp), + /* K6 */ be_nested_str_weak(exchange_id), + /* K7 */ be_nested_str_weak(ready), + /* K8 */ be_const_int(1), + /* K9 */ be_const_int(0), + /* K10 */ be_const_int(3), + /* K11 */ be_nested_str_weak(encode_frame), + /* K12 */ be_nested_str_weak(data), + /* K13 */ be_nested_str_weak(to_TLV), + /* K14 */ be_nested_str_weak(tlv2raw), + /* K15 */ be_nested_str_weak(encrypt), + /* K16 */ 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), + /* K17 */ be_nested_str_weak(session), + /* K18 */ be_nested_str_weak(local_session_id), + /* K19 */ be_nested_str_weak(message_counter), + /* K20 */ be_nested_str_weak(ack_message_counter), + /* K21 */ be_nested_str_weak(send_response_frame), + /* K22 */ be_nested_str_weak(last_counter), + /* K23 */ be_nested_str_weak(finish), }), - be_str_weak(ack_received), + be_str_weak(send_im), &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0xB80A0200, // 0000 GETNGBL R2 K1 - 0x8C080502, // 0001 GETMET R2 R2 K2 - 0x7C080200, // 0002 CALL R2 1 - 0x880C0103, // 0003 GETMBR R3 R0 K3 - 0x00080403, // 0004 ADD R2 R2 R3 - 0x90020002, // 0005 SETMBR R0 K0 R2 - 0x50080000, // 0006 LDBOOL R2 0 0 - 0x80040400, // 0007 RET 1 R2 + ( &(const binstruction[49]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0xB80E0200, // 0001 GETNGBL R3 K1 + 0x8C0C0702, // 0002 GETMET R3 R3 K2 + 0x8C140503, // 0003 GETMET R5 R2 K3 + 0x581C0004, // 0004 LDCONST R7 K4 + 0x88200105, // 0005 GETMBR R8 R0 K5 + 0x88201106, // 0006 GETMBR R8 R8 K6 + 0x88240107, // 0007 GETMBR R9 R0 K7 + 0x78260001, // 0008 JMPF R9 #000B + 0x58240008, // 0009 LDCONST R9 K8 + 0x70020000, // 000A JMP #000C + 0x58240009, // 000B LDCONST R9 K9 + 0x7C140800, // 000C CALL R5 4 + 0x5818000A, // 000D LDCONST R6 K10 + 0x7C0C0600, // 000E CALL R3 3 + 0x880C0107, // 000F GETMBR R3 R0 K7 + 0x740E0001, // 0010 JMPT R3 #0013 + 0x500C0000, // 0011 LDBOOL R3 0 0 + 0x80040600, // 0012 RET 1 R3 + 0x880C0105, // 0013 GETMBR R3 R0 K5 + 0x8C10070B, // 0014 GETMET R4 R3 K11 + 0x8818010C, // 0015 GETMBR R6 R0 K12 + 0x8C180D0D, // 0016 GETMET R6 R6 K13 + 0x7C180200, // 0017 CALL R6 1 + 0x8C180D0E, // 0018 GETMET R6 R6 K14 + 0x7C180200, // 0019 CALL R6 1 + 0x7C100400, // 001A CALL R4 2 + 0x8C10070F, // 001B GETMET R4 R3 K15 + 0x7C100200, // 001C CALL R4 1 + 0xB8120200, // 001D GETNGBL R4 K1 + 0x8C100902, // 001E GETMET R4 R4 K2 + 0x8C180503, // 001F GETMET R6 R2 K3 + 0x58200010, // 0020 LDCONST R8 K16 + 0x88240711, // 0021 GETMBR R9 R3 K17 + 0x88241312, // 0022 GETMBR R9 R9 K18 + 0x88280713, // 0023 GETMBR R10 R3 K19 + 0x882C0706, // 0024 GETMBR R11 R3 K6 + 0x88300714, // 0025 GETMBR R12 R3 K20 + 0x7C180C00, // 0026 CALL R6 6 + 0x581C000A, // 0027 LDCONST R7 K10 + 0x7C100600, // 0028 CALL R4 3 + 0x8C100315, // 0029 GETMET R4 R1 K21 + 0x5C180600, // 002A MOVE R6 R3 + 0x7C100400, // 002B CALL R4 2 + 0x88100713, // 002C GETMBR R4 R3 K19 + 0x90022C04, // 002D SETMBR R0 K22 R4 + 0x50100200, // 002E LDBOOL R4 1 0 + 0x90022E04, // 002F SETMBR R0 K23 R4 + 0x80000000, // 0030 RET 0 }) ) ); @@ -226,7 +169,7 @@ be_local_closure(Matter_IM_Message_init, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 9]) { /* constants */ + ( &(const bvalue[10]) { /* constants */ /* K0 */ be_nested_str_weak(resp), /* K1 */ be_nested_str_weak(build_response), /* K2 */ be_nested_str_weak(ready), @@ -236,10 +179,11 @@ be_local_closure(Matter_IM_Message_init, /* name */ /* K6 */ be_nested_str_weak(MSG_TIMEOUT), /* K7 */ be_nested_str_weak(last_counter), /* K8 */ be_const_int(0), + /* K9 */ be_nested_str_weak(finish), }), be_str_weak(init), &be_const_str_solidified, - ( &(const binstruction[15]) { /* code */ + ( &(const binstruction[17]) { /* code */ 0x8C100301, // 0000 GETMET R4 R1 K1 0x5C180400, // 0001 MOVE R6 R2 0x5C1C0600, // 0002 MOVE R7 R3 @@ -254,7 +198,9 @@ be_local_closure(Matter_IM_Message_init, /* name */ 0x00100805, // 000B ADD R4 R4 R5 0x90020604, // 000C SETMBR R0 K3 R4 0x90020F08, // 000D SETMBR R0 K7 K8 - 0x80000000, // 000E RET 0 + 0x50100000, // 000E LDBOOL R4 0 0 + 0x90021204, // 000F SETMBR R0 K9 R4 + 0x80000000, // 0010 RET 0 }) ) ); @@ -262,11 +208,11 @@ be_local_closure(Matter_IM_Message_init, /* name */ /******************************************************************** -** Solidified function: send_im +** Solidified function: ack_received ********************************************************************/ -be_local_closure(Matter_IM_Message_send_im, /* name */ +be_local_closure(Matter_IM_Message_ack_received, /* name */ be_nested_proto( - 13, /* nstack */ + 6, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -274,106 +220,37 @@ be_local_closure(Matter_IM_Message_send_im, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[23]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(log), - /* K3 */ be_nested_str_weak(format), - /* K4 */ be_nested_str_weak(MTR_X3A_X20IM_Message_X20send_im_X20exch_X3D_X25i_X20ready_X3D_X25i), - /* K5 */ be_nested_str_weak(resp), - /* K6 */ be_nested_str_weak(exchange_id), - /* K7 */ be_nested_str_weak(ready), - /* K8 */ be_const_int(1), - /* K9 */ be_const_int(0), - /* K10 */ be_const_int(3), - /* K11 */ be_nested_str_weak(encode_frame), - /* K12 */ be_nested_str_weak(data), - /* K13 */ be_nested_str_weak(to_TLV), - /* K14 */ be_nested_str_weak(tlv2raw), - /* K15 */ be_nested_str_weak(encrypt), - /* K16 */ 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), - /* K17 */ be_nested_str_weak(session), - /* K18 */ be_nested_str_weak(local_session_id), - /* K19 */ be_nested_str_weak(message_counter), - /* K20 */ be_nested_str_weak(ack_message_counter), - /* K21 */ be_nested_str_weak(send_response_frame), - /* K22 */ be_nested_str_weak(last_counter), + ( &(const bvalue[ 9]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota), + /* K1 */ be_nested_str_weak(log), + /* K2 */ be_nested_str_weak(MTR_X3A_X20IM_Message_X20ack_received_X20exch_X3D), + /* K3 */ be_nested_str_weak(resp), + /* K4 */ be_nested_str_weak(exchange_id), + /* K5 */ be_const_int(3), + /* K6 */ be_nested_str_weak(expiration), + /* K7 */ be_nested_str_weak(millis), + /* K8 */ be_nested_str_weak(MSG_TIMEOUT), }), - be_str_weak(send_im), + be_str_weak(ack_received), &be_const_str_solidified, - ( &(const binstruction[48]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0xB80E0200, // 0001 GETNGBL R3 K1 - 0x8C0C0702, // 0002 GETMET R3 R3 K2 - 0x8C140503, // 0003 GETMET R5 R2 K3 - 0x581C0004, // 0004 LDCONST R7 K4 - 0x88200105, // 0005 GETMBR R8 R0 K5 - 0x88201106, // 0006 GETMBR R8 R8 K6 - 0x88240107, // 0007 GETMBR R9 R0 K7 - 0x78260001, // 0008 JMPF R9 #000B - 0x58240008, // 0009 LDCONST R9 K8 - 0x70020000, // 000A JMP #000C - 0x58240009, // 000B LDCONST R9 K9 - 0x7C140800, // 000C CALL R5 4 - 0x5818000A, // 000D LDCONST R6 K10 - 0x7C0C0600, // 000E CALL R3 3 - 0x880C0107, // 000F GETMBR R3 R0 K7 - 0x740E0001, // 0010 JMPT R3 #0013 - 0x500C0000, // 0011 LDBOOL R3 0 0 - 0x80040600, // 0012 RET 1 R3 - 0x880C0105, // 0013 GETMBR R3 R0 K5 - 0x8C10070B, // 0014 GETMET R4 R3 K11 - 0x8818010C, // 0015 GETMBR R6 R0 K12 - 0x8C180D0D, // 0016 GETMET R6 R6 K13 - 0x7C180200, // 0017 CALL R6 1 - 0x8C180D0E, // 0018 GETMET R6 R6 K14 - 0x7C180200, // 0019 CALL R6 1 - 0x7C100400, // 001A CALL R4 2 - 0x8C10070F, // 001B GETMET R4 R3 K15 - 0x7C100200, // 001C CALL R4 1 - 0xB8120200, // 001D GETNGBL R4 K1 - 0x8C100902, // 001E GETMET R4 R4 K2 - 0x8C180503, // 001F GETMET R6 R2 K3 - 0x58200010, // 0020 LDCONST R8 K16 - 0x88240711, // 0021 GETMBR R9 R3 K17 - 0x88241312, // 0022 GETMBR R9 R9 K18 - 0x88280713, // 0023 GETMBR R10 R3 K19 - 0x882C0706, // 0024 GETMBR R11 R3 K6 - 0x88300714, // 0025 GETMBR R12 R3 K20 - 0x7C180C00, // 0026 CALL R6 6 - 0x581C000A, // 0027 LDCONST R7 K10 - 0x7C100600, // 0028 CALL R4 3 - 0x8C100315, // 0029 GETMET R4 R1 K21 - 0x5C180600, // 002A MOVE R6 R3 - 0x7C100400, // 002B CALL R4 2 - 0x88100713, // 002C GETMBR R4 R3 K19 - 0x90022C04, // 002D SETMBR R0 K22 R4 - 0x50100200, // 002E LDBOOL R4 1 0 - 0x80040800, // 002F RET 1 R4 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: status_error_received -********************************************************************/ -be_local_closure(Matter_IM_Message_status_error_received, /* name */ - be_nested_proto( - 2, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(status_error_received), - &be_const_str_solidified, - ( &(const binstruction[ 1]) { /* code */ - 0x80000000, // 0000 RET 0 + ( &(const binstruction[17]) { /* code */ + 0xB80A0000, // 0000 GETNGBL R2 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x60100008, // 0002 GETGBL R4 G8 + 0x88140103, // 0003 GETMBR R5 R0 K3 + 0x88140B04, // 0004 GETMBR R5 R5 K4 + 0x7C100200, // 0005 CALL R4 1 + 0x00120404, // 0006 ADD R4 K2 R4 + 0x58140005, // 0007 LDCONST R5 K5 + 0x7C080600, // 0008 CALL R2 3 + 0xB80A0000, // 0009 GETNGBL R2 K0 + 0x8C080507, // 000A GETMET R2 R2 K7 + 0x7C080200, // 000B CALL R2 1 + 0x880C0108, // 000C GETMBR R3 R0 K8 + 0x00080403, // 000D ADD R2 R2 R3 + 0x90020C02, // 000E SETMBR R0 K6 R2 + 0x50080000, // 000F LDBOOL R2 0 0 + 0x80040400, // 0010 RET 1 R2 }) ) ); @@ -476,23 +353,24 @@ be_local_closure(Matter_IM_Message_status_ok_received, /* name */ ** Solidified class: Matter_IM_Message ********************************************************************/ be_local_class(Matter_IM_Message, - 5, + 6, NULL, - be_nested_map(13, + be_nested_map(14, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(status_ok_received, -1), be_const_closure(Matter_IM_Message_status_ok_received_closure) }, - { be_const_key_weak(data, 0), be_const_var(3) }, - { be_const_key_weak(resp, 11), be_const_var(1) }, - { be_const_key_weak(ack_received, 9), be_const_closure(Matter_IM_Message_ack_received_closure) }, - { be_const_key_weak(MSG_TIMEOUT, 12), be_const_int(5000) }, - { be_const_key_weak(get_exchangeid, -1), be_const_closure(Matter_IM_Message_get_exchangeid_closure) }, - { be_const_key_weak(init, 8), be_const_closure(Matter_IM_Message_init_closure) }, + { be_const_key_weak(MSG_TIMEOUT, -1), be_const_int(5000) }, + { be_const_key_weak(data, -1), be_const_var(4) }, { be_const_key_weak(send_im, -1), be_const_closure(Matter_IM_Message_send_im_closure) }, + { be_const_key_weak(status_ok_received, -1), be_const_closure(Matter_IM_Message_status_ok_received_closure) }, + { be_const_key_weak(get_exchangeid, 0), be_const_closure(Matter_IM_Message_get_exchangeid_closure) }, + { be_const_key_weak(init, -1), be_const_closure(Matter_IM_Message_init_closure) }, { be_const_key_weak(expiration, -1), be_const_var(0) }, + { be_const_key_weak(resp, -1), be_const_var(1) }, + { be_const_key_weak(finish, 13), be_const_var(3) }, + { be_const_key_weak(last_counter, 6), be_const_var(5) }, + { be_const_key_weak(ack_received, 9), be_const_closure(Matter_IM_Message_ack_received_closure) }, { be_const_key_weak(reached_timeout, -1), be_const_closure(Matter_IM_Message_reached_timeout_closure) }, + { be_const_key_weak(status_error_received, 3), be_const_closure(Matter_IM_Message_status_error_received_closure) }, { be_const_key_weak(ready, -1), be_const_var(2) }, - { be_const_key_weak(status_error_received, -1), be_const_closure(Matter_IM_Message_status_error_received_closure) }, - { be_const_key_weak(last_counter, -1), be_const_var(4) }, })), be_str_weak(Matter_IM_Message) ); @@ -696,7 +574,7 @@ extern const bclass be_class_Matter_IM_ReportData; ********************************************************************/ be_local_closure(Matter_IM_ReportData_send_im, /* name */ be_nested_proto( - 20, /* nstack */ + 21, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -704,7 +582,7 @@ be_local_closure(Matter_IM_ReportData_send_im, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[33]) { /* constants */ + ( &(const bvalue[34]) { /* constants */ /* K0 */ be_nested_str_weak(string), /* K1 */ be_nested_str_weak(tasmota), /* K2 */ be_nested_str_weak(log), @@ -738,10 +616,11 @@ be_local_closure(Matter_IM_ReportData_send_im, /* name */ /* K30 */ be_nested_str_weak(send_response_frame), /* K31 */ be_nested_str_weak(last_counter), /* K32 */ be_nested_str_weak(MTR_X3A_X20to_be_sent_later_X20size_X3D_X25i_X20exch_X3D_X25i), + /* K33 */ be_nested_str_weak(finish), }), be_str_weak(send_im), &be_const_str_solidified, - ( &(const binstruction[165]) { /* code */ + ( &(const binstruction[173]) { /* code */ 0xA40A0000, // 0000 IMPORT R2 K0 0xB80E0200, // 0001 GETNGBL R3 K1 0x8C0C0702, // 0002 GETMET R3 R3 K2 @@ -766,147 +645,155 @@ be_local_closure(Matter_IM_ReportData_send_im, /* name */ 0x8814090C, // 0015 GETMBR R5 R4 K12 0x58180009, // 0016 LDCONST R6 K9 0x581C0009, // 0017 LDCONST R7 K9 - 0x6020000C, // 0018 GETGBL R8 G12 - 0x8824090D, // 0019 GETMBR R9 R4 K13 - 0x7C200200, // 001A CALL R8 1 - 0x24201109, // 001B GT R8 R8 K9 - 0x78220007, // 001C JMPF R8 #0025 - 0x8820090D, // 001D GETMBR R8 R4 K13 - 0x94201109, // 001E GETIDX R8 R8 K9 - 0x8C20110E, // 001F GETMET R8 R8 K14 - 0x7C200200, // 0020 CALL R8 1 - 0x8C20110F, // 0021 GETMET R8 R8 K15 - 0x7C200200, // 0022 CALL R8 1 - 0x5C181000, // 0023 MOVE R6 R8 - 0x581C0008, // 0024 LDCONST R7 K8 - 0x88200110, // 0025 GETMBR R8 R0 K16 - 0x14200C08, // 0026 LT R8 R6 R8 - 0x78220013, // 0027 JMPF R8 #003C - 0x6020000C, // 0028 GETGBL R8 G12 - 0x8824090D, // 0029 GETMBR R9 R4 K13 - 0x7C200200, // 002A CALL R8 1 - 0x14200E08, // 002B LT R8 R7 R8 - 0x7822000E, // 002C JMPF R8 #003C - 0x8820090D, // 002D GETMBR R8 R4 K13 - 0x94201007, // 002E GETIDX R8 R8 R7 - 0x8C20110E, // 002F GETMET R8 R8 K14 - 0x7C200200, // 0030 CALL R8 1 - 0x8C20110F, // 0031 GETMET R8 R8 K15 - 0x7C200200, // 0032 CALL R8 1 - 0x00240C08, // 0033 ADD R9 R6 R8 - 0x88280110, // 0034 GETMBR R10 R0 K16 - 0x1424120A, // 0035 LT R9 R9 R10 - 0x78260002, // 0036 JMPF R9 #003A - 0x00180C08, // 0037 ADD R6 R6 R8 - 0x001C0F08, // 0038 ADD R7 R7 K8 - 0x70020000, // 0039 JMP #003B - 0x70020000, // 003A JMP #003C - 0x7001FFE8, // 003B JMP #0025 - 0xB8220200, // 003C GETNGBL R8 K1 - 0x8C201102, // 003D GETMET R8 R8 K2 - 0x8C280503, // 003E GETMET R10 R2 K3 - 0x58300011, // 003F LDCONST R12 K17 - 0x8C340112, // 0040 GETMET R13 R0 K18 - 0x7C340200, // 0041 CALL R13 1 - 0x5C380E00, // 0042 MOVE R14 R7 - 0x5C3C0C00, // 0043 MOVE R15 R6 - 0x6040000C, // 0044 GETGBL R16 G12 - 0x8844090D, // 0045 GETMBR R17 R4 K13 - 0x7C400200, // 0046 CALL R16 1 - 0x7C280C00, // 0047 CALL R10 6 - 0x582C000A, // 0048 LDCONST R11 K10 - 0x7C200600, // 0049 CALL R8 3 - 0x40200F13, // 004A CONNECT R8 R7 K19 - 0x8824090D, // 004B GETMBR R9 R4 K13 - 0x94201208, // 004C GETIDX R8 R9 R8 - 0x04280F08, // 004D SUB R10 R7 K8 - 0x402A120A, // 004E CONNECT R10 K9 R10 - 0x882C090D, // 004F GETMBR R11 R4 K13 - 0x9428160A, // 0050 GETIDX R10 R11 R10 - 0x90121A0A, // 0051 SETMBR R4 K13 R10 - 0x6028000C, // 0052 GETGBL R10 G12 - 0x5C2C1000, // 0053 MOVE R11 R8 - 0x7C280200, // 0054 CALL R10 1 - 0x24281509, // 0055 GT R10 R10 K9 - 0x9012180A, // 0056 SETMBR R4 K12 R10 - 0x78160008, // 0057 JMPF R5 #0061 - 0xB82A0200, // 0058 GETNGBL R10 K1 - 0x8C281502, // 0059 GETMET R10 R10 K2 - 0x8C300503, // 005A GETMET R12 R2 K3 - 0x58380014, // 005B LDCONST R14 K20 - 0x8C3C0112, // 005C GETMET R15 R0 K18 - 0x7C3C0200, // 005D CALL R15 1 - 0x7C300600, // 005E CALL R12 3 - 0x5834000A, // 005F LDCONST R13 K10 - 0x7C280600, // 0060 CALL R10 3 - 0x8824090C, // 0061 GETMBR R9 R4 K12 - 0x7826000A, // 0062 JMPF R9 #006E - 0x5C240A00, // 0063 MOVE R9 R5 - 0x74260008, // 0064 JMPT R9 #006E - 0xB8260200, // 0065 GETNGBL R9 K1 - 0x8C241302, // 0066 GETMET R9 R9 K2 - 0x8C2C0503, // 0067 GETMET R11 R2 K3 - 0x58340015, // 0068 LDCONST R13 K21 - 0x8C380112, // 0069 GETMET R14 R0 K18 - 0x7C380200, // 006A CALL R14 1 - 0x7C2C0600, // 006B CALL R11 3 - 0x5830000A, // 006C LDCONST R12 K10 - 0x7C240600, // 006D CALL R9 3 - 0x8824010B, // 006E GETMBR R9 R0 K11 - 0x8C24130E, // 006F GETMET R9 R9 K14 - 0x7C240200, // 0070 CALL R9 1 - 0x8C281316, // 0071 GETMET R10 R9 K22 - 0x60300015, // 0072 GETGBL R12 G21 - 0x88340110, // 0073 GETMBR R13 R0 K16 - 0x7C300200, // 0074 CALL R12 1 - 0x7C280400, // 0075 CALL R10 2 - 0x8C2C0717, // 0076 GETMET R11 R3 K23 - 0x5C341400, // 0077 MOVE R13 R10 - 0x7C2C0400, // 0078 CALL R11 2 - 0x8C2C0718, // 0079 GETMET R11 R3 K24 - 0x7C2C0200, // 007A CALL R11 1 - 0xB82E0200, // 007B GETNGBL R11 K1 - 0x8C2C1702, // 007C GETMET R11 R11 K2 - 0x8C340503, // 007D GETMET R13 R2 K3 - 0x583C0019, // 007E LDCONST R15 K25 - 0x8840071A, // 007F GETMBR R16 R3 K26 - 0x8840211B, // 0080 GETMBR R16 R16 K27 - 0x8844071C, // 0081 GETMBR R17 R3 K28 - 0x88480706, // 0082 GETMBR R18 R3 K6 - 0x884C071D, // 0083 GETMBR R19 R3 K29 - 0x7C340C00, // 0084 CALL R13 6 - 0x5838000A, // 0085 LDCONST R14 K10 - 0x7C2C0600, // 0086 CALL R11 3 - 0x8C2C031E, // 0087 GETMET R11 R1 K30 - 0x5C340600, // 0088 MOVE R13 R3 - 0x7C2C0400, // 0089 CALL R11 2 - 0x882C071C, // 008A GETMBR R11 R3 K28 - 0x90023E0B, // 008B SETMBR R0 K31 R11 - 0x602C000C, // 008C GETGBL R11 G12 - 0x5C301000, // 008D MOVE R12 R8 - 0x7C2C0200, // 008E CALL R11 1 - 0x242C1709, // 008F GT R11 R11 K9 - 0x782E0010, // 0090 JMPF R11 #00A2 - 0x90121A08, // 0091 SETMBR R4 K13 R8 - 0xB82E0200, // 0092 GETNGBL R11 K1 - 0x8C2C1702, // 0093 GETMET R11 R11 K2 - 0x8C340503, // 0094 GETMET R13 R2 K3 - 0x583C0020, // 0095 LDCONST R15 K32 - 0x6040000C, // 0096 GETGBL R16 G12 - 0x8844090D, // 0097 GETMBR R17 R4 K13 - 0x7C400200, // 0098 CALL R16 1 - 0x88440706, // 0099 GETMBR R17 R3 K6 - 0x7C340800, // 009A CALL R13 4 - 0x5838000A, // 009B LDCONST R14 K10 - 0x7C2C0600, // 009C CALL R11 3 - 0x502C0000, // 009D LDBOOL R11 0 0 - 0x90020E0B, // 009E SETMBR R0 K7 R11 - 0x502C0000, // 009F LDBOOL R11 0 0 - 0x80041600, // 00A0 RET 1 R11 - 0x70020001, // 00A1 JMP #00A4 - 0x502C0200, // 00A2 LDBOOL R11 1 0 - 0x80041600, // 00A3 RET 1 R11 - 0x80000000, // 00A4 RET 0 + 0x8820090D, // 0018 GETMBR R8 R4 K13 + 0x4C240000, // 0019 LDNIL R9 + 0x20201009, // 001A NE R8 R8 R9 + 0x78220003, // 001B JMPF R8 #0020 + 0x6020000C, // 001C GETGBL R8 G12 + 0x8824090D, // 001D GETMBR R9 R4 K13 + 0x7C200200, // 001E CALL R8 1 + 0x70020000, // 001F JMP #0021 + 0x58200009, // 0020 LDCONST R8 K9 + 0x24241109, // 0021 GT R9 R8 K9 + 0x78260007, // 0022 JMPF R9 #002B + 0x8824090D, // 0023 GETMBR R9 R4 K13 + 0x94241309, // 0024 GETIDX R9 R9 K9 + 0x8C24130E, // 0025 GETMET R9 R9 K14 + 0x7C240200, // 0026 CALL R9 1 + 0x8C24130F, // 0027 GETMET R9 R9 K15 + 0x7C240200, // 0028 CALL R9 1 + 0x5C181200, // 0029 MOVE R6 R9 + 0x581C0008, // 002A LDCONST R7 K8 + 0x88240110, // 002B GETMBR R9 R0 K16 + 0x14240C09, // 002C LT R9 R6 R9 + 0x78260010, // 002D JMPF R9 #003F + 0x14240E08, // 002E LT R9 R7 R8 + 0x7826000E, // 002F JMPF R9 #003F + 0x8824090D, // 0030 GETMBR R9 R4 K13 + 0x94241207, // 0031 GETIDX R9 R9 R7 + 0x8C24130E, // 0032 GETMET R9 R9 K14 + 0x7C240200, // 0033 CALL R9 1 + 0x8C24130F, // 0034 GETMET R9 R9 K15 + 0x7C240200, // 0035 CALL R9 1 + 0x00280C09, // 0036 ADD R10 R6 R9 + 0x882C0110, // 0037 GETMBR R11 R0 K16 + 0x1428140B, // 0038 LT R10 R10 R11 + 0x782A0002, // 0039 JMPF R10 #003D + 0x00180C09, // 003A ADD R6 R6 R9 + 0x001C0F08, // 003B ADD R7 R7 K8 + 0x70020000, // 003C JMP #003E + 0x70020000, // 003D JMP #003F + 0x7001FFEB, // 003E JMP #002B + 0xB8260200, // 003F GETNGBL R9 K1 + 0x8C241302, // 0040 GETMET R9 R9 K2 + 0x8C2C0503, // 0041 GETMET R11 R2 K3 + 0x58340011, // 0042 LDCONST R13 K17 + 0x8C380112, // 0043 GETMET R14 R0 K18 + 0x7C380200, // 0044 CALL R14 1 + 0x5C3C0E00, // 0045 MOVE R15 R7 + 0x5C400C00, // 0046 MOVE R16 R6 + 0x5C441000, // 0047 MOVE R17 R8 + 0x7C2C0C00, // 0048 CALL R11 6 + 0x5830000A, // 0049 LDCONST R12 K10 + 0x7C240600, // 004A CALL R9 3 + 0x60240012, // 004B GETGBL R9 G18 + 0x7C240000, // 004C CALL R9 0 + 0x8828090D, // 004D GETMBR R10 R4 K13 + 0x4C2C0000, // 004E LDNIL R11 + 0x2028140B, // 004F NE R10 R10 R11 + 0x782A000D, // 0050 JMPF R10 #005F + 0x40280F13, // 0051 CONNECT R10 R7 K19 + 0x882C090D, // 0052 GETMBR R11 R4 K13 + 0x9424160A, // 0053 GETIDX R9 R11 R10 + 0x04300F08, // 0054 SUB R12 R7 K8 + 0x4032120C, // 0055 CONNECT R12 K9 R12 + 0x8834090D, // 0056 GETMBR R13 R4 K13 + 0x94301A0C, // 0057 GETIDX R12 R13 R12 + 0x90121A0C, // 0058 SETMBR R4 K13 R12 + 0x6030000C, // 0059 GETGBL R12 G12 + 0x5C341200, // 005A MOVE R13 R9 + 0x7C300200, // 005B CALL R12 1 + 0x24301909, // 005C GT R12 R12 K9 + 0x9012180C, // 005D SETMBR R4 K12 R12 + 0x70020001, // 005E JMP #0061 + 0x50280000, // 005F LDBOOL R10 0 0 + 0x9012180A, // 0060 SETMBR R4 K12 R10 + 0x78160008, // 0061 JMPF R5 #006B + 0xB82A0200, // 0062 GETNGBL R10 K1 + 0x8C281502, // 0063 GETMET R10 R10 K2 + 0x8C300503, // 0064 GETMET R12 R2 K3 + 0x58380014, // 0065 LDCONST R14 K20 + 0x8C3C0112, // 0066 GETMET R15 R0 K18 + 0x7C3C0200, // 0067 CALL R15 1 + 0x7C300600, // 0068 CALL R12 3 + 0x5834000A, // 0069 LDCONST R13 K10 + 0x7C280600, // 006A CALL R10 3 + 0x8828090C, // 006B GETMBR R10 R4 K12 + 0x782A000A, // 006C JMPF R10 #0078 + 0x5C280A00, // 006D MOVE R10 R5 + 0x742A0008, // 006E JMPT R10 #0078 + 0xB82A0200, // 006F GETNGBL R10 K1 + 0x8C281502, // 0070 GETMET R10 R10 K2 + 0x8C300503, // 0071 GETMET R12 R2 K3 + 0x58380015, // 0072 LDCONST R14 K21 + 0x8C3C0112, // 0073 GETMET R15 R0 K18 + 0x7C3C0200, // 0074 CALL R15 1 + 0x7C300600, // 0075 CALL R12 3 + 0x5834000A, // 0076 LDCONST R13 K10 + 0x7C280600, // 0077 CALL R10 3 + 0x8828010B, // 0078 GETMBR R10 R0 K11 + 0x8C28150E, // 0079 GETMET R10 R10 K14 + 0x7C280200, // 007A CALL R10 1 + 0x8C2C1516, // 007B GETMET R11 R10 K22 + 0x60340015, // 007C GETGBL R13 G21 + 0x88380110, // 007D GETMBR R14 R0 K16 + 0x7C340200, // 007E CALL R13 1 + 0x7C2C0400, // 007F CALL R11 2 + 0x8C300717, // 0080 GETMET R12 R3 K23 + 0x5C381600, // 0081 MOVE R14 R11 + 0x7C300400, // 0082 CALL R12 2 + 0x8C300718, // 0083 GETMET R12 R3 K24 + 0x7C300200, // 0084 CALL R12 1 + 0xB8320200, // 0085 GETNGBL R12 K1 + 0x8C301902, // 0086 GETMET R12 R12 K2 + 0x8C380503, // 0087 GETMET R14 R2 K3 + 0x58400019, // 0088 LDCONST R16 K25 + 0x8844071A, // 0089 GETMBR R17 R3 K26 + 0x8844231B, // 008A GETMBR R17 R17 K27 + 0x8848071C, // 008B GETMBR R18 R3 K28 + 0x884C0706, // 008C GETMBR R19 R3 K6 + 0x8850071D, // 008D GETMBR R20 R3 K29 + 0x7C380C00, // 008E CALL R14 6 + 0x583C000A, // 008F LDCONST R15 K10 + 0x7C300600, // 0090 CALL R12 3 + 0x8C30031E, // 0091 GETMET R12 R1 K30 + 0x5C380600, // 0092 MOVE R14 R3 + 0x7C300400, // 0093 CALL R12 2 + 0x8830071C, // 0094 GETMBR R12 R3 K28 + 0x90023E0C, // 0095 SETMBR R0 K31 R12 + 0x6030000C, // 0096 GETGBL R12 G12 + 0x5C341200, // 0097 MOVE R13 R9 + 0x7C300200, // 0098 CALL R12 1 + 0x24301909, // 0099 GT R12 R12 K9 + 0x7832000E, // 009A JMPF R12 #00AA + 0x90121A09, // 009B SETMBR R4 K13 R9 + 0xB8320200, // 009C GETNGBL R12 K1 + 0x8C301902, // 009D GETMET R12 R12 K2 + 0x8C380503, // 009E GETMET R14 R2 K3 + 0x58400020, // 009F LDCONST R16 K32 + 0x6044000C, // 00A0 GETGBL R17 G12 + 0x8848090D, // 00A1 GETMBR R18 R4 K13 + 0x7C440200, // 00A2 CALL R17 1 + 0x88480706, // 00A3 GETMBR R18 R3 K6 + 0x7C380800, // 00A4 CALL R14 4 + 0x583C000A, // 00A5 LDCONST R15 K10 + 0x7C300600, // 00A6 CALL R12 3 + 0x50300000, // 00A7 LDBOOL R12 0 0 + 0x90020E0C, // 00A8 SETMBR R0 K7 R12 + 0x70020001, // 00A9 JMP #00AC + 0x50300200, // 00AA LDBOOL R12 1 0 + 0x9002420C, // 00AB SETMBR R0 K33 R12 + 0x80000000, // 00AC RET 0 }) ) ); @@ -1053,7 +940,7 @@ be_local_closure(Matter_IM_ReportDataSubscribed_send_im, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[27]) { /* constants */ + ( &(const bvalue[30]) { /* constants */ /* K0 */ be_nested_str_weak(string), /* K1 */ be_nested_str_weak(tasmota), /* K2 */ be_nested_str_weak(log), @@ -1067,24 +954,27 @@ be_local_closure(Matter_IM_ReportDataSubscribed_send_im, /* name */ /* K10 */ be_const_int(1), /* K11 */ be_const_int(0), /* K12 */ be_const_int(3), - /* K13 */ be_nested_str_weak(data), - /* K14 */ be_nested_str_weak(attribute_reports), - /* K15 */ be_nested_str_weak(report_data_phase), - /* K16 */ be_nested_str_weak(send_im), - /* K17 */ be_nested_str_weak(build_standalone_ack), - /* K18 */ be_nested_str_weak(encode_frame), - /* K19 */ be_nested_str_weak(encrypt), - /* K20 */ be_nested_str_weak(MTR_X3A_X20_X3CAck_X20_X20_X20_X20_X20_X20_X20_X28_X256i_X29_X20ack_X3D_X25i_X20id_X3D_X25i), - /* K21 */ be_nested_str_weak(session), - /* K22 */ be_nested_str_weak(local_session_id), - /* K23 */ be_nested_str_weak(ack_message_counter), - /* K24 */ be_nested_str_weak(message_counter), - /* K25 */ be_nested_str_weak(send_response_frame), - /* K26 */ be_nested_str_weak(last_counter), + /* K13 */ be_nested_str_weak(MTR_X3A_X20ReportDataSubscribed_X3A_X3Asend_im_X20size_X28self_X2Edata_X2Eattribute_reports_X29_X3D_X25i_X20ready_X3D_X25s_X20report_data_phase_X3D_X25s), + /* K14 */ be_nested_str_weak(data), + /* K15 */ be_nested_str_weak(attribute_reports), + /* K16 */ be_nested_str_weak(report_data_phase), + /* K17 */ be_nested_str_weak(send_im), + /* K18 */ be_nested_str_weak(MTR_X3A_X20ReportDataSubscribed_X3A_X3Asend_im_X20called_X20super_X20finish_X3D_X25i), + /* K19 */ be_nested_str_weak(finish), + /* K20 */ be_nested_str_weak(build_standalone_ack), + /* K21 */ be_nested_str_weak(encode_frame), + /* K22 */ be_nested_str_weak(encrypt), + /* K23 */ be_nested_str_weak(MTR_X3A_X20_X3CAck_X20_X20_X20_X20_X20_X20_X20_X28_X256i_X29_X20ack_X3D_X25i_X20id_X3D_X25i), + /* K24 */ be_nested_str_weak(session), + /* K25 */ be_nested_str_weak(local_session_id), + /* K26 */ be_nested_str_weak(ack_message_counter), + /* K27 */ be_nested_str_weak(message_counter), + /* K28 */ be_nested_str_weak(send_response_frame), + /* K29 */ be_nested_str_weak(last_counter), }), be_str_weak(send_im), &be_const_str_solidified, - ( &(const binstruction[87]) { /* code */ + ( &(const binstruction[111]) { /* code */ 0xA40A0000, // 0000 IMPORT R2 K0 0xB80E0200, // 0001 GETNGBL R3 K1 0x8C0C0702, // 0002 GETMET R3 R3 K2 @@ -1102,76 +992,100 @@ be_local_closure(Matter_IM_ReportDataSubscribed_send_im, /* name */ 0x7C140A00, // 000E CALL R5 5 0x5818000C, // 000F LDCONST R6 K12 0x7C0C0600, // 0010 CALL R3 3 - 0x880C0109, // 0011 GETMBR R3 R0 K9 - 0x740E0001, // 0012 JMPT R3 #0015 - 0x500C0000, // 0013 LDBOOL R3 0 0 - 0x80040600, // 0014 RET 1 R3 - 0x600C000C, // 0015 GETGBL R3 G12 - 0x8810010D, // 0016 GETMBR R4 R0 K13 - 0x8810090E, // 0017 GETMBR R4 R4 K14 - 0x7C0C0200, // 0018 CALL R3 1 - 0x240C070B, // 0019 GT R3 R3 K11 - 0x780E002B, // 001A JMPF R3 #0047 - 0x880C010F, // 001B GETMBR R3 R0 K15 - 0x780E000E, // 001C JMPF R3 #002C - 0x600C0003, // 001D GETGBL R3 G3 - 0x5C100000, // 001E MOVE R4 R0 - 0x7C0C0200, // 001F CALL R3 1 - 0x8C0C0710, // 0020 GETMET R3 R3 K16 - 0x5C140200, // 0021 MOVE R5 R1 - 0x7C0C0400, // 0022 CALL R3 2 - 0x5C100600, // 0023 MOVE R4 R3 - 0x74120001, // 0024 JMPT R4 #0027 - 0x50100000, // 0025 LDBOOL R4 0 0 - 0x80040800, // 0026 RET 1 R4 - 0x50100000, // 0027 LDBOOL R4 0 0 - 0x90021E04, // 0028 SETMBR R0 K15 R4 - 0x50100000, // 0029 LDBOOL R4 0 0 - 0x80040800, // 002A RET 1 R4 - 0x70020019, // 002B JMP #0046 - 0x880C0107, // 002C GETMBR R3 R0 K7 - 0x8C0C0711, // 002D GETMET R3 R3 K17 - 0x50140000, // 002E LDBOOL R5 0 0 - 0x7C0C0400, // 002F CALL R3 2 - 0x8C100712, // 0030 GETMET R4 R3 K18 - 0x7C100200, // 0031 CALL R4 1 - 0x8C100713, // 0032 GETMET R4 R3 K19 - 0x7C100200, // 0033 CALL R4 1 - 0xB8120200, // 0034 GETNGBL R4 K1 - 0x8C100902, // 0035 GETMET R4 R4 K2 - 0x8C180503, // 0036 GETMET R6 R2 K3 - 0x58200014, // 0037 LDCONST R8 K20 - 0x88240715, // 0038 GETMBR R9 R3 K21 - 0x88241316, // 0039 GETMBR R9 R9 K22 - 0x88280717, // 003A GETMBR R10 R3 K23 - 0x882C0718, // 003B GETMBR R11 R3 K24 - 0x7C180A00, // 003C CALL R6 5 - 0x581C000C, // 003D LDCONST R7 K12 - 0x7C100600, // 003E CALL R4 3 - 0x8C100319, // 003F GETMET R4 R1 K25 - 0x5C180600, // 0040 MOVE R6 R3 - 0x7C100400, // 0041 CALL R4 2 - 0x88100718, // 0042 GETMBR R4 R3 K24 - 0x90023404, // 0043 SETMBR R0 K26 R4 - 0x50100200, // 0044 LDBOOL R4 1 0 - 0x80040800, // 0045 RET 1 R4 - 0x7002000E, // 0046 JMP #0056 - 0x880C010F, // 0047 GETMBR R3 R0 K15 - 0x780E000A, // 0048 JMPF R3 #0054 - 0x600C0003, // 0049 GETGBL R3 G3 - 0x5C100000, // 004A MOVE R4 R0 - 0x7C0C0200, // 004B CALL R3 1 - 0x8C0C0710, // 004C GETMET R3 R3 K16 - 0x5C140200, // 004D MOVE R5 R1 - 0x7C0C0400, // 004E CALL R3 2 - 0x500C0000, // 004F LDBOOL R3 0 0 - 0x90021E03, // 0050 SETMBR R0 K15 R3 - 0x500C0000, // 0051 LDBOOL R3 0 0 - 0x80040600, // 0052 RET 1 R3 - 0x70020001, // 0053 JMP #0056 - 0x500C0200, // 0054 LDBOOL R3 1 0 - 0x80040600, // 0055 RET 1 R3 - 0x80000000, // 0056 RET 0 + 0xB80E0200, // 0011 GETNGBL R3 K1 + 0x8C0C0702, // 0012 GETMET R3 R3 K2 + 0x8C140503, // 0013 GETMET R5 R2 K3 + 0x581C000D, // 0014 LDCONST R7 K13 + 0x6020000C, // 0015 GETGBL R8 G12 + 0x8824010E, // 0016 GETMBR R9 R0 K14 + 0x8824130F, // 0017 GETMBR R9 R9 K15 + 0x7C200200, // 0018 CALL R8 1 + 0x60240008, // 0019 GETGBL R9 G8 + 0x88280109, // 001A GETMBR R10 R0 K9 + 0x7C240200, // 001B CALL R9 1 + 0x60280008, // 001C GETGBL R10 G8 + 0x882C0110, // 001D GETMBR R11 R0 K16 + 0x7C280200, // 001E CALL R10 1 + 0x7C140A00, // 001F CALL R5 5 + 0x5818000C, // 0020 LDCONST R6 K12 + 0x7C0C0600, // 0021 CALL R3 3 + 0x880C0109, // 0022 GETMBR R3 R0 K9 + 0x740E0001, // 0023 JMPT R3 #0026 + 0x500C0000, // 0024 LDBOOL R3 0 0 + 0x80040600, // 0025 RET 1 R3 + 0x600C000C, // 0026 GETGBL R3 G12 + 0x8810010E, // 0027 GETMBR R4 R0 K14 + 0x8810090F, // 0028 GETMBR R4 R4 K15 + 0x7C0C0200, // 0029 CALL R3 1 + 0x240C070B, // 002A GT R3 R3 K11 + 0x780E0034, // 002B JMPF R3 #0061 + 0x880C0110, // 002C GETMBR R3 R0 K16 + 0x780E0017, // 002D JMPF R3 #0046 + 0x600C0003, // 002E GETGBL R3 G3 + 0x5C100000, // 002F MOVE R4 R0 + 0x7C0C0200, // 0030 CALL R3 1 + 0x8C0C0711, // 0031 GETMET R3 R3 K17 + 0x5C140200, // 0032 MOVE R5 R1 + 0x7C0C0400, // 0033 CALL R3 2 + 0xB80E0200, // 0034 GETNGBL R3 K1 + 0x8C0C0702, // 0035 GETMET R3 R3 K2 + 0x8C140503, // 0036 GETMET R5 R2 K3 + 0x581C0012, // 0037 LDCONST R7 K18 + 0x88200113, // 0038 GETMBR R8 R0 K19 + 0x7C140600, // 0039 CALL R5 3 + 0x5818000C, // 003A LDCONST R6 K12 + 0x7C0C0600, // 003B CALL R3 3 + 0x880C0113, // 003C GETMBR R3 R0 K19 + 0x740E0000, // 003D JMPT R3 #003F + 0x80000600, // 003E RET 0 + 0x500C0000, // 003F LDBOOL R3 0 0 + 0x90022003, // 0040 SETMBR R0 K16 R3 + 0x500C0000, // 0041 LDBOOL R3 0 0 + 0x90021203, // 0042 SETMBR R0 K9 R3 + 0x500C0000, // 0043 LDBOOL R3 0 0 + 0x90022603, // 0044 SETMBR R0 K19 R3 + 0x70020019, // 0045 JMP #0060 + 0x880C0107, // 0046 GETMBR R3 R0 K7 + 0x8C0C0714, // 0047 GETMET R3 R3 K20 + 0x50140000, // 0048 LDBOOL R5 0 0 + 0x7C0C0400, // 0049 CALL R3 2 + 0x8C100715, // 004A GETMET R4 R3 K21 + 0x7C100200, // 004B CALL R4 1 + 0x8C100716, // 004C GETMET R4 R3 K22 + 0x7C100200, // 004D CALL R4 1 + 0xB8120200, // 004E GETNGBL R4 K1 + 0x8C100902, // 004F GETMET R4 R4 K2 + 0x8C180503, // 0050 GETMET R6 R2 K3 + 0x58200017, // 0051 LDCONST R8 K23 + 0x88240718, // 0052 GETMBR R9 R3 K24 + 0x88241319, // 0053 GETMBR R9 R9 K25 + 0x8828071A, // 0054 GETMBR R10 R3 K26 + 0x882C071B, // 0055 GETMBR R11 R3 K27 + 0x7C180A00, // 0056 CALL R6 5 + 0x581C000C, // 0057 LDCONST R7 K12 + 0x7C100600, // 0058 CALL R4 3 + 0x8C10031C, // 0059 GETMET R4 R1 K28 + 0x5C180600, // 005A MOVE R6 R3 + 0x7C100400, // 005B CALL R4 2 + 0x8810071B, // 005C GETMBR R4 R3 K27 + 0x90023A04, // 005D SETMBR R0 K29 R4 + 0x50100200, // 005E LDBOOL R4 1 0 + 0x90022604, // 005F SETMBR R0 K19 R4 + 0x7002000C, // 0060 JMP #006E + 0x880C0110, // 0061 GETMBR R3 R0 K16 + 0x780E0008, // 0062 JMPF R3 #006C + 0x600C0003, // 0063 GETGBL R3 G3 + 0x5C100000, // 0064 MOVE R4 R0 + 0x7C0C0200, // 0065 CALL R3 1 + 0x8C0C0711, // 0066 GETMET R3 R3 K17 + 0x5C140200, // 0067 MOVE R5 R1 + 0x7C0C0400, // 0068 CALL R3 2 + 0x500C0000, // 0069 LDBOOL R3 0 0 + 0x90022003, // 006A SETMBR R0 K16 R3 + 0x70020001, // 006B JMP #006E + 0x500C0200, // 006C LDBOOL R3 1 0 + 0x90022603, // 006D SETMBR R0 K19 R3 + 0x80000000, // 006E RET 0 }) ) ); @@ -1416,6 +1330,342 @@ void be_load_Matter_IM_ReportDataSubscribed_class(bvm *vm) { be_pop(vm, 1); } +extern const bclass be_class_Matter_IM_SubscribedHeartbeat; + +/******************************************************************** +** Solidified function: status_error_received +********************************************************************/ +be_local_closure(Matter_IM_SubscribedHeartbeat_status_error_received, /* name */ + be_nested_proto( + 10, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[11]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(log), + /* K3 */ be_nested_str_weak(format), + /* K4 */ be_nested_str_weak(MTR_X3A_X20Matter_IM_SubscribedHeartbeat_X20status_error_received_X20sub_X3D_X25i_X20exch_X3D_X25i), + /* K5 */ be_nested_str_weak(sub), + /* K6 */ be_nested_str_weak(subscription_id), + /* K7 */ be_nested_str_weak(resp), + /* K8 */ be_nested_str_weak(exchange_id), + /* K9 */ be_const_int(3), + /* K10 */ be_nested_str_weak(remove_self), + }), + be_str_weak(status_error_received), + &be_const_str_solidified, + ( &(const binstruction[17]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0xB80E0200, // 0001 GETNGBL R3 K1 + 0x8C0C0702, // 0002 GETMET R3 R3 K2 + 0x8C140503, // 0003 GETMET R5 R2 K3 + 0x581C0004, // 0004 LDCONST R7 K4 + 0x88200105, // 0005 GETMBR R8 R0 K5 + 0x88201106, // 0006 GETMBR R8 R8 K6 + 0x88240107, // 0007 GETMBR R9 R0 K7 + 0x88241308, // 0008 GETMBR R9 R9 K8 + 0x7C140800, // 0009 CALL R5 4 + 0x58180009, // 000A LDCONST R6 K9 + 0x7C0C0600, // 000B CALL R3 3 + 0x880C0105, // 000C GETMBR R3 R0 K5 + 0x8C0C070A, // 000D GETMET R3 R3 K10 + 0x7C0C0200, // 000E CALL R3 1 + 0x500C0000, // 000F LDBOOL R3 0 0 + 0x80040600, // 0010 RET 1 R3 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: send_im +********************************************************************/ +be_local_closure(Matter_IM_SubscribedHeartbeat_send_im, /* name */ + be_nested_proto( + 11, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[14]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(log), + /* K3 */ be_nested_str_weak(format), + /* K4 */ be_nested_str_weak(MTR_X3A_X20Matter_IM_SubscribedHeartbeat_X20send_X20sub_X3D_X25i_X20exch_X3D_X25i_X20ready_X3D_X25i), + /* K5 */ be_nested_str_weak(sub), + /* K6 */ be_nested_str_weak(subscription_id), + /* K7 */ be_nested_str_weak(resp), + /* K8 */ be_nested_str_weak(exchange_id), + /* K9 */ be_nested_str_weak(ready), + /* K10 */ be_const_int(1), + /* K11 */ be_const_int(0), + /* K12 */ be_const_int(3), + /* K13 */ be_nested_str_weak(send_im), + }), + be_str_weak(send_im), + &be_const_str_solidified, + ( &(const binstruction[30]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0xB80E0200, // 0001 GETNGBL R3 K1 + 0x8C0C0702, // 0002 GETMET R3 R3 K2 + 0x8C140503, // 0003 GETMET R5 R2 K3 + 0x581C0004, // 0004 LDCONST R7 K4 + 0x88200105, // 0005 GETMBR R8 R0 K5 + 0x88201106, // 0006 GETMBR R8 R8 K6 + 0x88240107, // 0007 GETMBR R9 R0 K7 + 0x88241308, // 0008 GETMBR R9 R9 K8 + 0x88280109, // 0009 GETMBR R10 R0 K9 + 0x782A0001, // 000A JMPF R10 #000D + 0x5828000A, // 000B LDCONST R10 K10 + 0x70020000, // 000C JMP #000E + 0x5828000B, // 000D LDCONST R10 K11 + 0x7C140A00, // 000E CALL R5 5 + 0x5818000C, // 000F LDCONST R6 K12 + 0x7C0C0600, // 0010 CALL R3 3 + 0x880C0109, // 0011 GETMBR R3 R0 K9 + 0x740E0001, // 0012 JMPT R3 #0015 + 0x500C0000, // 0013 LDBOOL R3 0 0 + 0x80040600, // 0014 RET 1 R3 + 0x600C0003, // 0015 GETGBL R3 G3 + 0x5C100000, // 0016 MOVE R4 R0 + 0x7C0C0200, // 0017 CALL R3 1 + 0x8C0C070D, // 0018 GETMET R3 R3 K13 + 0x5C140200, // 0019 MOVE R5 R1 + 0x7C0C0400, // 001A CALL R3 2 + 0x500C0000, // 001B LDBOOL R3 0 0 + 0x90021203, // 001C SETMBR R0 K9 R3 + 0x80000000, // 001D RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: ack_received +********************************************************************/ +be_local_closure(Matter_IM_SubscribedHeartbeat_ack_received, /* name */ + be_nested_proto( + 9, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[10]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(log), + /* K3 */ be_nested_str_weak(format), + /* K4 */ be_nested_str_weak(MTR_X3A_X20Matter_IM_SubscribedHeartbeat_X20ack_received_X20sub_X3D_X25i), + /* K5 */ be_nested_str_weak(sub), + /* K6 */ be_nested_str_weak(subscription_id), + /* K7 */ be_const_int(3), + /* K8 */ be_nested_str_weak(ack_received), + /* K9 */ be_nested_str_weak(finish), + }), + be_str_weak(ack_received), + &be_const_str_solidified, + ( &(const binstruction[20]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0xB80E0200, // 0001 GETNGBL R3 K1 + 0x8C0C0702, // 0002 GETMET R3 R3 K2 + 0x8C140503, // 0003 GETMET R5 R2 K3 + 0x581C0004, // 0004 LDCONST R7 K4 + 0x88200105, // 0005 GETMBR R8 R0 K5 + 0x88201106, // 0006 GETMBR R8 R8 K6 + 0x7C140600, // 0007 CALL R5 3 + 0x58180007, // 0008 LDCONST R6 K7 + 0x7C0C0600, // 0009 CALL R3 3 + 0x600C0003, // 000A GETGBL R3 G3 + 0x5C100000, // 000B MOVE R4 R0 + 0x7C0C0200, // 000C CALL R3 1 + 0x8C0C0708, // 000D GETMET R3 R3 K8 + 0x5C140200, // 000E MOVE R5 R1 + 0x7C0C0400, // 000F CALL R3 2 + 0x500C0200, // 0010 LDBOOL R3 1 0 + 0x90021203, // 0011 SETMBR R0 K9 R3 + 0x500C0200, // 0012 LDBOOL R3 1 0 + 0x80040600, // 0013 RET 1 R3 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: reached_timeout +********************************************************************/ +be_local_closure(Matter_IM_SubscribedHeartbeat_reached_timeout, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(sub), + /* K1 */ be_nested_str_weak(remove_self), + }), + be_str_weak(reached_timeout), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x7C040200, // 0002 CALL R1 1 + 0x80000000, // 0003 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: status_ok_received +********************************************************************/ +be_local_closure(Matter_IM_SubscribedHeartbeat_status_ok_received, /* name */ + be_nested_proto( + 10, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[10]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(log), + /* K3 */ be_nested_str_weak(format), + /* K4 */ be_nested_str_weak(MTR_X3A_X20Matter_IM_SubscribedHeartbeat_X20status_ok_received_X20sub_X3D_X25i_X20exch_X3D_X25i), + /* K5 */ be_nested_str_weak(sub), + /* K6 */ be_nested_str_weak(subscription_id), + /* K7 */ be_nested_str_weak(resp), + /* K8 */ be_nested_str_weak(exchange_id), + /* K9 */ be_const_int(3), + }), + be_str_weak(status_ok_received), + &be_const_str_solidified, + ( &(const binstruction[14]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0xB80E0200, // 0001 GETNGBL R3 K1 + 0x8C0C0702, // 0002 GETMET R3 R3 K2 + 0x8C140503, // 0003 GETMET R5 R2 K3 + 0x581C0004, // 0004 LDCONST R7 K4 + 0x88200105, // 0005 GETMBR R8 R0 K5 + 0x88201106, // 0006 GETMBR R8 R8 K6 + 0x88240107, // 0007 GETMBR R9 R0 K7 + 0x88241308, // 0008 GETMBR R9 R9 K8 + 0x7C140800, // 0009 CALL R5 4 + 0x58180009, // 000A LDCONST R6 K9 + 0x7C0C0600, // 000B CALL R3 3 + 0x500C0000, // 000C LDBOOL R3 0 0 + 0x80040600, // 000D RET 1 R3 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: init +********************************************************************/ +be_local_closure(Matter_IM_SubscribedHeartbeat_init, /* name */ + be_nested_proto( + 11, /* nstack */ + 5, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[11]) { /* constants */ + /* K0 */ be_nested_str_weak(resp), + /* K1 */ be_nested_str_weak(matter), + /* K2 */ be_nested_str_weak(Frame), + /* K3 */ be_nested_str_weak(initiate_response), + /* K4 */ be_nested_str_weak(data), + /* K5 */ be_nested_str_weak(ready), + /* K6 */ be_nested_str_weak(expiration), + /* K7 */ be_nested_str_weak(tasmota), + /* K8 */ be_nested_str_weak(millis), + /* K9 */ be_nested_str_weak(MSG_TIMEOUT), + /* K10 */ be_nested_str_weak(sub), + }), + be_str_weak(init), + &be_const_str_solidified, + ( &(const binstruction[20]) { /* code */ + 0xB8160200, // 0000 GETNGBL R5 K1 + 0x88140B02, // 0001 GETMBR R5 R5 K2 + 0x8C140B03, // 0002 GETMET R5 R5 K3 + 0x5C1C0200, // 0003 MOVE R7 R1 + 0x5C200400, // 0004 MOVE R8 R2 + 0x54260004, // 0005 LDINT R9 5 + 0x50280200, // 0006 LDBOOL R10 1 0 + 0x7C140A00, // 0007 CALL R5 5 + 0x90020005, // 0008 SETMBR R0 K0 R5 + 0x90020803, // 0009 SETMBR R0 K4 R3 + 0x50140200, // 000A LDBOOL R5 1 0 + 0x90020A05, // 000B SETMBR R0 K5 R5 + 0xB8160E00, // 000C GETNGBL R5 K7 + 0x8C140B08, // 000D GETMET R5 R5 K8 + 0x7C140200, // 000E CALL R5 1 + 0x88180109, // 000F GETMBR R6 R0 K9 + 0x00140A06, // 0010 ADD R5 R5 R6 + 0x90020C05, // 0011 SETMBR R0 K6 R5 + 0x90021404, // 0012 SETMBR R0 K10 R4 + 0x80000000, // 0013 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified class: Matter_IM_SubscribedHeartbeat +********************************************************************/ +extern const bclass be_class_Matter_IM_ReportData; +be_local_class(Matter_IM_SubscribedHeartbeat, + 1, + &be_class_Matter_IM_ReportData, + be_nested_map(7, + ( (struct bmapnode*) &(const bmapnode[]) { + { be_const_key_weak(init, 1), be_const_closure(Matter_IM_SubscribedHeartbeat_init_closure) }, + { be_const_key_weak(status_ok_received, -1), be_const_closure(Matter_IM_SubscribedHeartbeat_status_ok_received_closure) }, + { be_const_key_weak(sub, 6), be_const_var(0) }, + { be_const_key_weak(ack_received, -1), be_const_closure(Matter_IM_SubscribedHeartbeat_ack_received_closure) }, + { be_const_key_weak(reached_timeout, -1), be_const_closure(Matter_IM_SubscribedHeartbeat_reached_timeout_closure) }, + { be_const_key_weak(status_error_received, 0), be_const_closure(Matter_IM_SubscribedHeartbeat_status_error_received_closure) }, + { be_const_key_weak(send_im, -1), be_const_closure(Matter_IM_SubscribedHeartbeat_send_im_closure) }, + })), + be_str_weak(Matter_IM_SubscribedHeartbeat) +); +/*******************************************************************/ + +void be_load_Matter_IM_SubscribedHeartbeat_class(bvm *vm) { + be_pushntvclass(vm, &be_class_Matter_IM_SubscribedHeartbeat); + be_setglobal(vm, "Matter_IM_SubscribedHeartbeat"); + be_pop(vm, 1); +} + extern const bclass be_class_Matter_IM_SubscribeResponse; /******************************************************************** @@ -1547,7 +1797,7 @@ be_local_closure(Matter_IM_SubscribeResponse_send_im, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[27]) { /* constants */ + ( &(const bvalue[28]) { /* constants */ /* K0 */ be_nested_str_weak(string), /* K1 */ be_nested_str_weak(tasmota), /* K2 */ be_nested_str_weak(log), @@ -1561,24 +1811,25 @@ be_local_closure(Matter_IM_SubscribeResponse_send_im, /* name */ /* K10 */ be_const_int(3), /* K11 */ be_nested_str_weak(report_data_phase), /* K12 */ be_nested_str_weak(send_im), - /* K13 */ be_nested_str_weak(resp), - /* K14 */ be_nested_str_weak(matter), - /* K15 */ be_nested_str_weak(SubscribeResponseMessage), - /* K16 */ be_nested_str_weak(max_interval), - /* K17 */ be_nested_str_weak(opcode), - /* K18 */ be_nested_str_weak(encode_frame), - /* K19 */ be_nested_str_weak(to_TLV), - /* K20 */ be_nested_str_weak(tlv2raw), - /* K21 */ be_nested_str_weak(encrypt), - /* K22 */ be_nested_str_weak(send_response_frame), - /* K23 */ be_nested_str_weak(last_counter), - /* K24 */ be_nested_str_weak(message_counter), - /* K25 */ be_nested_str_weak(MTR_X3A_X20Send_X20SubscribeResponseMessage_X20sub_X3D_X25i_X20id_X3D_X25i), - /* K26 */ be_nested_str_weak(re_arm), + /* K13 */ be_nested_str_weak(finish), + /* K14 */ be_nested_str_weak(resp), + /* K15 */ be_nested_str_weak(matter), + /* K16 */ be_nested_str_weak(SubscribeResponseMessage), + /* K17 */ be_nested_str_weak(max_interval), + /* K18 */ be_nested_str_weak(opcode), + /* K19 */ be_nested_str_weak(encode_frame), + /* K20 */ be_nested_str_weak(to_TLV), + /* K21 */ be_nested_str_weak(tlv2raw), + /* K22 */ be_nested_str_weak(encrypt), + /* K23 */ be_nested_str_weak(send_response_frame), + /* K24 */ be_nested_str_weak(last_counter), + /* K25 */ be_nested_str_weak(message_counter), + /* K26 */ be_nested_str_weak(MTR_X3A_X20Send_X20SubscribeResponseMessage_X20sub_X3D_X25i_X20id_X3D_X25i), + /* K27 */ be_nested_str_weak(re_arm), }), be_str_weak(send_im), &be_const_str_solidified, - ( &(const binstruction[77]) { /* code */ + ( &(const binstruction[78]) { /* code */ 0xA40A0000, // 0000 IMPORT R2 K0 0xB80E0200, // 0001 GETNGBL R3 K1 0x8C0C0702, // 0002 GETMET R3 R3 K2 @@ -1599,63 +1850,64 @@ be_local_closure(Matter_IM_SubscribeResponse_send_im, /* name */ 0x500C0000, // 0011 LDBOOL R3 0 0 0x80040600, // 0012 RET 1 R3 0x880C010B, // 0013 GETMBR R3 R0 K11 - 0x780E000D, // 0014 JMPF R3 #0023 + 0x780E000E, // 0014 JMPF R3 #0024 0x600C0003, // 0015 GETGBL R3 G3 0x5C100000, // 0016 MOVE R4 R0 0x7C0C0200, // 0017 CALL R3 1 0x8C0C070C, // 0018 GETMET R3 R3 K12 0x5C140200, // 0019 MOVE R5 R1 0x7C0C0400, // 001A CALL R3 2 - 0x780E0001, // 001B JMPF R3 #001E - 0x50100000, // 001C LDBOOL R4 0 0 - 0x90021604, // 001D SETMBR R0 K11 R4 - 0x50100000, // 001E LDBOOL R4 0 0 - 0x90020E04, // 001F SETMBR R0 K7 R4 - 0x50100000, // 0020 LDBOOL R4 0 0 - 0x80040800, // 0021 RET 1 R4 - 0x70020028, // 0022 JMP #004C - 0x880C010D, // 0023 GETMBR R3 R0 K13 - 0xB8121C00, // 0024 GETNGBL R4 K14 - 0x8C10090F, // 0025 GETMET R4 R4 K15 - 0x7C100200, // 0026 CALL R4 1 - 0x88140105, // 0027 GETMBR R5 R0 K5 - 0x88140B06, // 0028 GETMBR R5 R5 K6 - 0x90120C05, // 0029 SETMBR R4 K6 R5 - 0x88140105, // 002A GETMBR R5 R0 K5 - 0x88140B10, // 002B GETMBR R5 R5 K16 - 0x90122005, // 002C SETMBR R4 K16 R5 - 0x8814010D, // 002D GETMBR R5 R0 K13 - 0x541A0003, // 002E LDINT R6 4 - 0x90162206, // 002F SETMBR R5 K17 R6 - 0x8C140712, // 0030 GETMET R5 R3 K18 - 0x8C1C0913, // 0031 GETMET R7 R4 K19 - 0x7C1C0200, // 0032 CALL R7 1 - 0x8C1C0F14, // 0033 GETMET R7 R7 K20 - 0x7C1C0200, // 0034 CALL R7 1 - 0x7C140400, // 0035 CALL R5 2 - 0x8C140715, // 0036 GETMET R5 R3 K21 - 0x7C140200, // 0037 CALL R5 1 - 0x8C140316, // 0038 GETMET R5 R1 K22 - 0x5C1C0600, // 0039 MOVE R7 R3 - 0x7C140400, // 003A CALL R5 2 - 0x88140718, // 003B GETMBR R5 R3 K24 - 0x90022E05, // 003C SETMBR R0 K23 R5 - 0xB8160200, // 003D GETNGBL R5 K1 - 0x8C140B02, // 003E GETMET R5 R5 K2 - 0x8C1C0503, // 003F GETMET R7 R2 K3 - 0x58240019, // 0040 LDCONST R9 K25 - 0x88280105, // 0041 GETMBR R10 R0 K5 - 0x88281506, // 0042 GETMBR R10 R10 K6 - 0x882C0718, // 0043 GETMBR R11 R3 K24 - 0x7C1C0800, // 0044 CALL R7 4 - 0x5820000A, // 0045 LDCONST R8 K10 - 0x7C140600, // 0046 CALL R5 3 - 0x88140105, // 0047 GETMBR R5 R0 K5 - 0x8C140B1A, // 0048 GETMET R5 R5 K26 - 0x7C140200, // 0049 CALL R5 1 - 0x50140200, // 004A LDBOOL R5 1 0 - 0x80040A00, // 004B RET 1 R5 - 0x80000000, // 004C RET 0 + 0x880C010D, // 001B GETMBR R3 R0 K13 + 0x780E0003, // 001C JMPF R3 #0021 + 0x500C0000, // 001D LDBOOL R3 0 0 + 0x90021603, // 001E SETMBR R0 K11 R3 + 0x500C0000, // 001F LDBOOL R3 0 0 + 0x90021A03, // 0020 SETMBR R0 K13 R3 + 0x500C0000, // 0021 LDBOOL R3 0 0 + 0x90020E03, // 0022 SETMBR R0 K7 R3 + 0x70020028, // 0023 JMP #004D + 0x880C010E, // 0024 GETMBR R3 R0 K14 + 0xB8121E00, // 0025 GETNGBL R4 K15 + 0x8C100910, // 0026 GETMET R4 R4 K16 + 0x7C100200, // 0027 CALL R4 1 + 0x88140105, // 0028 GETMBR R5 R0 K5 + 0x88140B06, // 0029 GETMBR R5 R5 K6 + 0x90120C05, // 002A SETMBR R4 K6 R5 + 0x88140105, // 002B GETMBR R5 R0 K5 + 0x88140B11, // 002C GETMBR R5 R5 K17 + 0x90122205, // 002D SETMBR R4 K17 R5 + 0x8814010E, // 002E GETMBR R5 R0 K14 + 0x541A0003, // 002F LDINT R6 4 + 0x90162406, // 0030 SETMBR R5 K18 R6 + 0x8C140713, // 0031 GETMET R5 R3 K19 + 0x8C1C0914, // 0032 GETMET R7 R4 K20 + 0x7C1C0200, // 0033 CALL R7 1 + 0x8C1C0F15, // 0034 GETMET R7 R7 K21 + 0x7C1C0200, // 0035 CALL R7 1 + 0x7C140400, // 0036 CALL R5 2 + 0x8C140716, // 0037 GETMET R5 R3 K22 + 0x7C140200, // 0038 CALL R5 1 + 0x8C140317, // 0039 GETMET R5 R1 K23 + 0x5C1C0600, // 003A MOVE R7 R3 + 0x7C140400, // 003B CALL R5 2 + 0x88140719, // 003C GETMBR R5 R3 K25 + 0x90023005, // 003D SETMBR R0 K24 R5 + 0xB8160200, // 003E GETNGBL R5 K1 + 0x8C140B02, // 003F GETMET R5 R5 K2 + 0x8C1C0503, // 0040 GETMET R7 R2 K3 + 0x5824001A, // 0041 LDCONST R9 K26 + 0x88280105, // 0042 GETMBR R10 R0 K5 + 0x88281506, // 0043 GETMBR R10 R10 K6 + 0x882C0719, // 0044 GETMBR R11 R3 K25 + 0x7C1C0800, // 0045 CALL R7 4 + 0x5820000A, // 0046 LDCONST R8 K10 + 0x7C140600, // 0047 CALL R5 3 + 0x88140105, // 0048 GETMBR R5 R0 K5 + 0x8C140B1B, // 0049 GETMET R5 R5 K27 + 0x7C140200, // 004A CALL R5 1 + 0x50140200, // 004B LDBOOL R5 1 0 + 0x90021A05, // 004C SETMBR R0 K13 R5 + 0x80000000, // 004D RET 0 }) ) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM_Subscription.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM_Subscription.h index ca7ef54a5..e2f48b099 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM_Subscription.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM_Subscription.h @@ -441,7 +441,7 @@ be_local_closure(Matter_IM_Subscription_Shop_every_250ms, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[12]) { /* constants */ + ( &(const bvalue[14]) { /* constants */ /* K0 */ be_const_int(0), /* K1 */ be_nested_str_weak(subs), /* K2 */ be_nested_str_weak(wait_status), @@ -454,10 +454,12 @@ be_local_closure(Matter_IM_Subscription_Shop_every_250ms, /* name */ /* K9 */ be_nested_str_weak(clear_before_arm), /* K10 */ be_const_int(1), /* K11 */ be_nested_str_weak(expiration), + /* K12 */ be_nested_str_weak(send_subscribe_heartbeat), + /* K13 */ be_nested_str_weak(re_arm), }), be_str_weak(every_250ms), &be_const_str_solidified, - ( &(const binstruction[52]) { /* code */ + ( &(const binstruction[54]) { /* code */ 0x58040000, // 0000 LDCONST R1 K0 0x6008000C, // 0001 GETGBL R2 G12 0x880C0101, // 0002 GETMBR R3 R0 K1 @@ -491,25 +493,27 @@ be_local_closure(Matter_IM_Subscription_Shop_every_250ms, /* name */ 0x880C0101, // 001E GETMBR R3 R0 K1 0x7C080200, // 001F CALL R2 1 0x14080202, // 0020 LT R2 R1 R2 - 0x780A0010, // 0021 JMPF R2 #0033 + 0x780A0012, // 0021 JMPF R2 #0035 0x88080101, // 0022 GETMBR R2 R0 K1 0x94080401, // 0023 GETIDX R2 R2 R1 0x880C0502, // 0024 GETMBR R3 R2 K2 - 0x740E000A, // 0025 JMPT R3 #0031 + 0x740E000C, // 0025 JMPT R3 #0033 0xB80E0800, // 0026 GETNGBL R3 K4 0x8C0C0705, // 0027 GETMET R3 R3 K5 0x8814050B, // 0028 GETMBR R5 R2 K11 0x7C0C0400, // 0029 CALL R3 2 - 0x780E0005, // 002A JMPF R3 #0031 + 0x780E0007, // 002A JMPF R3 #0033 0x880C0107, // 002B GETMBR R3 R0 K7 - 0x8C0C0708, // 002C GETMET R3 R3 K8 + 0x8C0C070C, // 002C GETMET R3 R3 K12 0x5C140400, // 002D MOVE R5 R2 0x7C0C0400, // 002E CALL R3 2 0x8C0C0509, // 002F GETMET R3 R2 K9 0x7C0C0200, // 0030 CALL R3 1 - 0x0004030A, // 0031 ADD R1 R1 K10 - 0x7001FFE9, // 0032 JMP #001D - 0x80000000, // 0033 RET 0 + 0x8C0C050D, // 0031 GETMET R3 R2 K13 + 0x7C0C0200, // 0032 CALL R3 1 + 0x0004030A, // 0033 ADD R1 R1 K10 + 0x7001FFE7, // 0034 JMP #001D + 0x80000000, // 0035 RET 0 }) ) ); 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 59441effa..24a47772d 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_MessageHandler.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_MessageHandler.h @@ -221,490 +221,482 @@ be_local_closure(Matter_MessageHandler_msg_received, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[76]) { /* constants */ + ( &(const bvalue[75]) { /* constants */ /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(log), - /* K3 */ be_nested_str_weak(MTR_X3A_X20MessageHandler_X3A_X3Amsg_received_X20raw_X3D), - /* K4 */ be_nested_str_weak(tohex), - /* K5 */ be_nested_str_weak(matter), - /* K6 */ be_nested_str_weak(Frame), - /* K7 */ be_nested_str_weak(decode_header), - /* K8 */ be_nested_str_weak(sec_p), - /* K9 */ be_nested_str_weak(MTR_X3A_X20CONTROL_X20MESSAGE_X3D), - /* K10 */ be_nested_str_weak(inspect), - /* K11 */ be_nested_str_weak(device), - /* K12 */ be_nested_str_weak(sessions), - /* K13 */ be_nested_str_weak(find_session_source_id_unsecure), - /* K14 */ be_nested_str_weak(source_node_id), - /* K15 */ be_nested_str_weak(MTR_X3A_X20find_X20session_X20by_X20source_node_id_X20_X3D_X20), - /* K16 */ be_nested_str_weak(_X20session_id_X20_X3D_X20), - /* K17 */ be_nested_str_weak(local_session_id), - /* K18 */ be_const_int(2), - /* K19 */ be_nested_str_weak(control_message), - /* K20 */ be_nested_str_weak(process_incoming_control_message), - /* K21 */ be_const_int(0), - /* K22 */ be_nested_str_weak(sec_sesstype), - /* K23 */ be_const_int(3), - /* K24 */ be_nested_str_weak(_ip), - /* K25 */ be_nested_str_weak(_port), - /* K26 */ be_nested_str_weak(_message_handler), - /* K27 */ be_nested_str_weak(session), - /* K28 */ be_nested_str_weak(_counter_insecure_rcv), - /* K29 */ be_nested_str_weak(validate), - /* K30 */ be_nested_str_weak(message_counter), - /* K31 */ be_nested_str_weak(format), - /* K32 */ 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), - /* K33 */ be_nested_str_weak(val), - /* K34 */ be_nested_str_weak(send_simple_ack), - /* K35 */ be_nested_str_weak(decode_payload), - /* K36 */ be_nested_str_weak(received_ack), - /* K37 */ be_nested_str_weak(opcode), - /* K38 */ be_nested_str_weak(get_opcode_name), - /* K39 */ be_nested_str_weak(0x_X2502X), - /* K40 */ be_nested_str_weak(MTR_X3A_X20_X3EReceived_X20_X20_X28_X256i_X29_X20_X25s_X20rid_X3D_X25i_X20exch_X3D_X25i_X20from_X20_X5B_X25s_X5D_X3A_X25i), - /* K41 */ be_nested_str_weak(exchange_id), - /* K42 */ 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), - /* K43 */ be_nested_str_weak(x_flag_r), - /* K44 */ be_nested_str_weak(_X7Breliable_X7D_X20), - /* K45 */ be_nested_str_weak(), - /* K46 */ be_nested_str_weak(ack_message_counter), - /* K47 */ be_nested_str_weak(commissioning), - /* K48 */ be_nested_str_weak(process_incoming), - /* K49 */ be_nested_str_weak(MTR_X3A_X20decode_X20header_X3A_X20local_session_id_X3D_X25i_X20message_counter_X3D_X25i), - /* K50 */ be_nested_str_weak(get_session_by_local_session_id), - /* K51 */ be_nested_str_weak(MTR_X3A_X20unknown_X20local_session_id_X3D), - /* K52 */ be_nested_str_weak(counter_rcv_validate), - /* K53 */ be_nested_str_weak(MTR_X3A_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Duplicate_X20encrypted_X20message_X20_X3D_X20), - /* K54 */ be_nested_str_weak(_X20counter_X3D), - /* K55 */ be_nested_str_weak(counter_rcv), - /* K56 */ be_nested_str_weak(send_encrypted_ack), - /* K57 */ be_nested_str_weak(decrypt), - /* K58 */ be_nested_str_weak(raw), - /* K59 */ be_nested_str_weak(payload_idx), - /* K60 */ be_const_int(1), - /* K61 */ be_nested_str_weak(MTR_X3A_X20idx_X3D_X25i_X20clear_X3D_X25s), - /* K62 */ be_nested_str_weak(MTR_X3A_X20_X3E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Decrypted_X20message_X3A_X20protocol_id_X3A), - /* K63 */ be_nested_str_weak(protocol_id), - /* K64 */ be_nested_str_weak(_X20opcode_X3D), - /* K65 */ be_nested_str_weak(_X20exchange_id_X3D), - /* K66 */ be_nested_str_weak(MTR_X3A_X20_X3Ercv_X20_X20_X20_X20_X20_X20_X20_X28_X256i_X29_X20_X5B_X2502X_X2F_X2502X_X5D_X20rid_X3D_X25i_X20exch_X3D_X25i_X20ack_X3D_X25s_X20_X25sfrom_X20_X5B_X25s_X5D_X3A_X25i), - /* K67 */ be_nested_str_weak(MTR_X3A_X20PROTOCOL_ID_SECURE_CHANNEL_X20), - /* K68 */ be_nested_str_weak(im), - /* K69 */ be_nested_str_weak(process_incoming_ack), - /* K70 */ be_nested_str_weak(send_enqueued), - /* K71 */ be_nested_str_weak(MTR_X3A_X20ignoring_X20unhandled_X20protocol_id_X3A), - /* K72 */ be_nested_str_weak(MTR_X3A_X20MessageHandler_X3A_X3Amsg_received_X20exception_X3A_X20), - /* K73 */ be_nested_str_weak(_X3B), - /* K74 */ be_nested_str_weak(debug), - /* K75 */ be_nested_str_weak(traceback), + /* K1 */ be_nested_str_weak(matter), + /* K2 */ be_nested_str_weak(Frame), + /* K3 */ be_nested_str_weak(decode_header), + /* K4 */ be_nested_str_weak(sec_p), + /* K5 */ be_nested_str_weak(tasmota), + /* K6 */ be_nested_str_weak(log), + /* K7 */ be_nested_str_weak(MTR_X3A_X20CONTROL_X20MESSAGE_X3D), + /* K8 */ be_nested_str_weak(inspect), + /* K9 */ be_nested_str_weak(device), + /* K10 */ be_nested_str_weak(sessions), + /* K11 */ be_nested_str_weak(find_session_source_id_unsecure), + /* K12 */ be_nested_str_weak(source_node_id), + /* K13 */ be_nested_str_weak(MTR_X3A_X20find_X20session_X20by_X20source_node_id_X20_X3D_X20), + /* K14 */ be_nested_str_weak(_X20session_id_X20_X3D_X20), + /* K15 */ be_nested_str_weak(local_session_id), + /* K16 */ be_const_int(2), + /* K17 */ be_nested_str_weak(control_message), + /* K18 */ be_nested_str_weak(process_incoming_control_message), + /* K19 */ be_const_int(0), + /* K20 */ be_nested_str_weak(sec_sesstype), + /* K21 */ be_const_int(3), + /* K22 */ be_nested_str_weak(_ip), + /* K23 */ be_nested_str_weak(_port), + /* K24 */ be_nested_str_weak(_message_handler), + /* K25 */ be_nested_str_weak(session), + /* K26 */ be_nested_str_weak(_counter_insecure_rcv), + /* K27 */ be_nested_str_weak(validate), + /* K28 */ be_nested_str_weak(message_counter), + /* K29 */ be_nested_str_weak(format), + /* K30 */ 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), + /* K31 */ be_nested_str_weak(val), + /* K32 */ be_nested_str_weak(send_simple_ack), + /* K33 */ be_nested_str_weak(decode_payload), + /* K34 */ be_nested_str_weak(received_ack), + /* K35 */ be_nested_str_weak(opcode), + /* K36 */ be_nested_str_weak(get_opcode_name), + /* K37 */ be_nested_str_weak(0x_X2502X), + /* K38 */ be_nested_str_weak(MTR_X3A_X20_X3EReceived_X20_X20_X28_X256i_X29_X20_X25s_X20rid_X3D_X25i_X20exch_X3D_X25i_X20from_X20_X5B_X25s_X5D_X3A_X25i), + /* K39 */ be_nested_str_weak(exchange_id), + /* K40 */ 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), + /* K41 */ be_nested_str_weak(x_flag_r), + /* K42 */ be_nested_str_weak(_X7Breliable_X7D_X20), + /* K43 */ be_nested_str_weak(), + /* K44 */ be_nested_str_weak(ack_message_counter), + /* K45 */ be_nested_str_weak(commissioning), + /* K46 */ be_nested_str_weak(process_incoming), + /* K47 */ be_nested_str_weak(MTR_X3A_X20decode_X20header_X3A_X20local_session_id_X3D_X25i_X20message_counter_X3D_X25i), + /* K48 */ be_nested_str_weak(get_session_by_local_session_id), + /* K49 */ be_nested_str_weak(MTR_X3A_X20unknown_X20local_session_id_X3D), + /* K50 */ be_nested_str_weak(counter_rcv_validate), + /* K51 */ be_nested_str_weak(MTR_X3A_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Duplicate_X20encrypted_X20message_X20_X3D_X20), + /* K52 */ be_nested_str_weak(_X20counter_X3D), + /* K53 */ be_nested_str_weak(counter_rcv), + /* K54 */ be_nested_str_weak(send_encrypted_ack), + /* K55 */ be_nested_str_weak(decrypt), + /* K56 */ be_nested_str_weak(raw), + /* K57 */ be_nested_str_weak(payload_idx), + /* K58 */ be_const_int(1), + /* K59 */ be_nested_str_weak(MTR_X3A_X20idx_X3D_X25i_X20clear_X3D_X25s), + /* K60 */ be_nested_str_weak(tohex), + /* K61 */ be_nested_str_weak(MTR_X3A_X20_X3E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Decrypted_X20message_X3A_X20protocol_id_X3A), + /* K62 */ be_nested_str_weak(protocol_id), + /* K63 */ be_nested_str_weak(_X20opcode_X3D), + /* K64 */ be_nested_str_weak(_X20exchange_id_X3D), + /* K65 */ be_nested_str_weak(MTR_X3A_X20_X3Ercv_X20_X20_X20_X20_X20_X20_X20_X28_X256i_X29_X20_X5B_X2502X_X2F_X2502X_X5D_X20rid_X3D_X25i_X20exch_X3D_X25i_X20ack_X3D_X25s_X20_X25sfrom_X20_X5B_X25s_X5D_X3A_X25i), + /* K66 */ be_nested_str_weak(MTR_X3A_X20PROTOCOL_ID_SECURE_CHANNEL_X20), + /* K67 */ be_nested_str_weak(im), + /* K68 */ be_nested_str_weak(process_incoming_ack), + /* K69 */ be_nested_str_weak(send_enqueued), + /* K70 */ be_nested_str_weak(MTR_X3A_X20ignoring_X20unhandled_X20protocol_id_X3A), + /* K71 */ be_nested_str_weak(MTR_X3A_X20MessageHandler_X3A_X3Amsg_received_X20exception_X3A_X20), + /* K72 */ be_nested_str_weak(_X3B), + /* K73 */ be_nested_str_weak(debug), + /* K74 */ be_nested_str_weak(traceback), }), be_str_weak(msg_received), &be_const_str_solidified, - ( &(const binstruction[403]) { /* code */ + ( &(const binstruction[396]) { /* code */ 0xA4120000, // 0000 IMPORT R4 K0 0x50140000, // 0001 LDBOOL R5 0 0 - 0xA8020179, // 0002 EXBLK 0 #017D + 0xA8020172, // 0002 EXBLK 0 #0176 0xB81A0200, // 0003 GETNGBL R6 K1 0x8C180D02, // 0004 GETMET R6 R6 K2 - 0x8C200304, // 0005 GETMET R8 R1 K4 - 0x7C200200, // 0006 CALL R8 1 - 0x00220608, // 0007 ADD R8 K3 R8 - 0x54260003, // 0008 LDINT R9 4 - 0x7C180600, // 0009 CALL R6 3 - 0xB81A0A00, // 000A GETNGBL R6 K5 - 0x8C180D06, // 000B GETMET R6 R6 K6 - 0x5C200000, // 000C MOVE R8 R0 - 0x5C240200, // 000D MOVE R9 R1 - 0x5C280400, // 000E MOVE R10 R2 - 0x5C2C0600, // 000F MOVE R11 R3 - 0x7C180A00, // 0010 CALL R6 5 - 0x8C1C0D07, // 0011 GETMET R7 R6 K7 - 0x7C1C0200, // 0012 CALL R7 1 - 0x5C200E00, // 0013 MOVE R8 R7 - 0x74220002, // 0014 JMPT R8 #0018 - 0x50200000, // 0015 LDBOOL R8 0 0 - 0xA8040001, // 0016 EXBLK 1 1 - 0x80041000, // 0017 RET 1 R8 - 0x88200D08, // 0018 GETMBR R8 R6 K8 - 0x78220021, // 0019 JMPF R8 #003C - 0xB8220200, // 001A GETNGBL R8 K1 - 0x8C201102, // 001B GETMET R8 R8 K2 - 0xB82A0A00, // 001C GETNGBL R10 K5 - 0x8C28150A, // 001D GETMET R10 R10 K10 - 0x5C300C00, // 001E MOVE R12 R6 - 0x7C280400, // 001F CALL R10 2 - 0x002A120A, // 0020 ADD R10 K9 R10 - 0x7C200400, // 0021 CALL R8 2 - 0x8820010B, // 0022 GETMBR R8 R0 K11 - 0x8820110C, // 0023 GETMBR R8 R8 K12 - 0x8C20110D, // 0024 GETMET R8 R8 K13 - 0x88280D0E, // 0025 GETMBR R10 R6 K14 - 0x542E0059, // 0026 LDINT R11 90 - 0x7C200600, // 0027 CALL R8 3 - 0xB8260200, // 0028 GETNGBL R9 K1 - 0x8C241302, // 0029 GETMET R9 R9 K2 - 0x602C0008, // 002A GETGBL R11 G8 - 0x88300D0E, // 002B GETMBR R12 R6 K14 - 0x7C2C0200, // 002C CALL R11 1 - 0x002E1E0B, // 002D ADD R11 K15 R11 - 0x002C1710, // 002E ADD R11 R11 K16 - 0x60300008, // 002F GETGBL R12 G8 - 0x88341111, // 0030 GETMBR R13 R8 K17 - 0x7C300200, // 0031 CALL R12 1 - 0x002C160C, // 0032 ADD R11 R11 R12 - 0x58300012, // 0033 LDCONST R12 K18 - 0x7C240600, // 0034 CALL R9 3 - 0x88240113, // 0035 GETMBR R9 R0 K19 - 0x8C241314, // 0036 GETMET R9 R9 K20 - 0x5C2C0C00, // 0037 MOVE R11 R6 - 0x7C240400, // 0038 CALL R9 2 - 0xA8040001, // 0039 EXBLK 1 1 - 0x80041200, // 003A RET 1 R9 - 0x7002013C, // 003B JMP #0179 - 0x88200D11, // 003C GETMBR R8 R6 K17 - 0x1C201115, // 003D EQ R8 R8 K21 - 0x7822007D, // 003E JMPF R8 #00BD - 0x88200D16, // 003F GETMBR R8 R6 K22 - 0x1C201115, // 0040 EQ R8 R8 K21 - 0x7822007A, // 0041 JMPF R8 #00BD - 0x8820010B, // 0042 GETMBR R8 R0 K11 - 0x8820110C, // 0043 GETMBR R8 R8 K12 - 0x8C20110D, // 0044 GETMET R8 R8 K13 - 0x88280D0E, // 0045 GETMBR R10 R6 K14 - 0x542E0059, // 0046 LDINT R11 90 - 0x7C200600, // 0047 CALL R8 3 - 0xB8260200, // 0048 GETNGBL R9 K1 - 0x8C241302, // 0049 GETMET R9 R9 K2 - 0x602C0008, // 004A GETGBL R11 G8 - 0x88300D0E, // 004B GETMBR R12 R6 K14 - 0x7C2C0200, // 004C CALL R11 1 - 0x002E1E0B, // 004D ADD R11 K15 R11 - 0x002C1710, // 004E ADD R11 R11 K16 - 0x60300008, // 004F GETGBL R12 G8 - 0x88341111, // 0050 GETMBR R13 R8 K17 - 0x7C300200, // 0051 CALL R12 1 - 0x002C160C, // 0052 ADD R11 R11 R12 - 0x58300017, // 0053 LDCONST R12 K23 - 0x7C240600, // 0054 CALL R9 3 - 0x780A0000, // 0055 JMPF R2 #0057 - 0x90223002, // 0056 SETMBR R8 K24 R2 - 0x780E0000, // 0057 JMPF R3 #0059 - 0x90223203, // 0058 SETMBR R8 K25 R3 - 0x90223400, // 0059 SETMBR R8 K26 R0 - 0x901A3608, // 005A SETMBR R6 K27 R8 - 0x8824111C, // 005B GETMBR R9 R8 K28 - 0x8C24131D, // 005C GETMET R9 R9 K29 - 0x882C0D1E, // 005D GETMBR R11 R6 K30 - 0x50300000, // 005E LDBOOL R12 0 0 - 0x7C240600, // 005F CALL R9 3 - 0x74260011, // 0060 JMPT R9 #0073 - 0xB8260200, // 0061 GETNGBL R9 K1 - 0x8C241302, // 0062 GETMET R9 R9 K2 - 0x8C2C091F, // 0063 GETMET R11 R4 K31 - 0x58340020, // 0064 LDCONST R13 K32 - 0x88380D1E, // 0065 GETMBR R14 R6 K30 - 0x883C111C, // 0066 GETMBR R15 R8 K28 - 0x8C3C1F21, // 0067 GETMET R15 R15 K33 - 0x7C3C0200, // 0068 CALL R15 1 - 0x7C2C0800, // 0069 CALL R11 4 - 0x58300017, // 006A LDCONST R12 K23 - 0x7C240600, // 006B CALL R9 3 - 0x8C240122, // 006C GETMET R9 R0 K34 - 0x5C2C0C00, // 006D MOVE R11 R6 - 0x50300000, // 006E LDBOOL R12 0 0 - 0x7C240600, // 006F CALL R9 3 - 0x50240000, // 0070 LDBOOL R9 0 0 - 0xA8040001, // 0071 EXBLK 1 1 - 0x80041200, // 0072 RET 1 R9 - 0x8C240D23, // 0073 GETMET R9 R6 K35 - 0x7C240200, // 0074 CALL R9 1 - 0x74260002, // 0075 JMPT R9 #0079 - 0x50240000, // 0076 LDBOOL R9 0 0 - 0xA8040001, // 0077 EXBLK 1 1 - 0x80041200, // 0078 RET 1 R9 - 0x8824010B, // 0079 GETMBR R9 R0 K11 - 0x8C241324, // 007A GETMET R9 R9 K36 - 0x5C2C0C00, // 007B MOVE R11 R6 - 0x7C240400, // 007C CALL R9 2 - 0x88240D25, // 007D GETMBR R9 R6 K37 - 0x542A000F, // 007E LDINT R10 16 - 0x2024120A, // 007F NE R9 R9 R10 - 0x78260018, // 0080 JMPF R9 #009A - 0xB8260A00, // 0081 GETNGBL R9 K5 - 0x8C241326, // 0082 GETMET R9 R9 K38 - 0x882C0D25, // 0083 GETMBR R11 R6 K37 - 0x7C240400, // 0084 CALL R9 2 - 0x5C281200, // 0085 MOVE R10 R9 - 0x742A0004, // 0086 JMPT R10 #008C - 0x8C28091F, // 0087 GETMET R10 R4 K31 - 0x58300027, // 0088 LDCONST R12 K39 - 0x88340D25, // 0089 GETMBR R13 R6 K37 - 0x7C280600, // 008A CALL R10 3 - 0x5C241400, // 008B MOVE R9 R10 - 0xB82A0200, // 008C GETNGBL R10 K1 - 0x8C281502, // 008D GETMET R10 R10 K2 - 0x8C30091F, // 008E GETMET R12 R4 K31 - 0x58380028, // 008F LDCONST R14 K40 - 0x883C1111, // 0090 GETMBR R15 R8 K17 - 0x5C401200, // 0091 MOVE R16 R9 - 0x88440D1E, // 0092 GETMBR R17 R6 K30 - 0x88480D29, // 0093 GETMBR R18 R6 K41 - 0x5C4C0400, // 0094 MOVE R19 R2 - 0x5C500600, // 0095 MOVE R20 R3 - 0x7C301000, // 0096 CALL R12 8 - 0x58340012, // 0097 LDCONST R13 K18 - 0x7C280600, // 0098 CALL R10 3 - 0x70020013, // 0099 JMP #00AE - 0xB8260200, // 009A GETNGBL R9 K1 - 0x8C241302, // 009B GETMET R9 R9 K2 - 0x8C2C091F, // 009C GETMET R11 R4 K31 - 0x5834002A, // 009D LDCONST R13 K42 - 0x88381111, // 009E GETMBR R14 R8 K17 - 0x883C0D1E, // 009F GETMBR R15 R6 K30 - 0x88400D2B, // 00A0 GETMBR R16 R6 K43 - 0x78420001, // 00A1 JMPF R16 #00A4 - 0x5840002C, // 00A2 LDCONST R16 K44 - 0x70020000, // 00A3 JMP #00A5 - 0x5840002D, // 00A4 LDCONST R16 K45 - 0x88440D29, // 00A5 GETMBR R17 R6 K41 - 0x60480008, // 00A6 GETGBL R18 G8 - 0x884C0D2E, // 00A7 GETMBR R19 R6 K46 - 0x7C480200, // 00A8 CALL R18 1 - 0x5C4C0400, // 00A9 MOVE R19 R2 - 0x5C500600, // 00AA MOVE R20 R3 - 0x7C2C1200, // 00AB CALL R11 9 - 0x58300017, // 00AC LDCONST R12 K23 - 0x7C240600, // 00AD CALL R9 3 - 0x8824012F, // 00AE GETMBR R9 R0 K47 - 0x8C241330, // 00AF GETMET R9 R9 K48 - 0x5C2C0C00, // 00B0 MOVE R11 R6 - 0x7C240400, // 00B1 CALL R9 2 - 0x5C141200, // 00B2 MOVE R5 R9 - 0x5C240A00, // 00B3 MOVE R9 R5 - 0x74260003, // 00B4 JMPT R9 #00B9 - 0x8C240122, // 00B5 GETMET R9 R0 K34 - 0x5C2C0C00, // 00B6 MOVE R11 R6 - 0x50300000, // 00B7 LDBOOL R12 0 0 - 0x7C240600, // 00B8 CALL R9 3 - 0x50240200, // 00B9 LDBOOL R9 1 0 - 0xA8040001, // 00BA EXBLK 1 1 - 0x80041200, // 00BB RET 1 R9 - 0x700200BB, // 00BC JMP #0179 - 0xB8220200, // 00BD GETNGBL R8 K1 - 0x8C201102, // 00BE GETMET R8 R8 K2 - 0x8C28091F, // 00BF GETMET R10 R4 K31 - 0x58300031, // 00C0 LDCONST R12 K49 - 0x88340D11, // 00C1 GETMBR R13 R6 K17 - 0x88380D1E, // 00C2 GETMBR R14 R6 K30 - 0x7C280800, // 00C3 CALL R10 4 - 0x582C0017, // 00C4 LDCONST R11 K23 - 0x7C200600, // 00C5 CALL R8 3 - 0x8820010B, // 00C6 GETMBR R8 R0 K11 - 0x8820110C, // 00C7 GETMBR R8 R8 K12 - 0x8C201132, // 00C8 GETMET R8 R8 K50 - 0x88280D11, // 00C9 GETMBR R10 R6 K17 - 0x7C200400, // 00CA CALL R8 2 - 0x4C240000, // 00CB LDNIL R9 - 0x1C241009, // 00CC EQ R9 R8 R9 - 0x7826000A, // 00CD JMPF R9 #00D9 - 0xB8260200, // 00CE GETNGBL R9 K1 - 0x8C241302, // 00CF GETMET R9 R9 K2 - 0x602C0008, // 00D0 GETGBL R11 G8 - 0x88300D11, // 00D1 GETMBR R12 R6 K17 - 0x7C2C0200, // 00D2 CALL R11 1 - 0x002E660B, // 00D3 ADD R11 K51 R11 - 0x58300012, // 00D4 LDCONST R12 K18 - 0x7C240600, // 00D5 CALL R9 3 - 0x50240000, // 00D6 LDBOOL R9 0 0 - 0xA8040001, // 00D7 EXBLK 1 1 - 0x80041200, // 00D8 RET 1 R9 - 0x780A0000, // 00D9 JMPF R2 #00DB - 0x90223002, // 00DA SETMBR R8 K24 R2 - 0x780E0000, // 00DB JMPF R3 #00DD - 0x90223203, // 00DC SETMBR R8 K25 R3 - 0x90223400, // 00DD SETMBR R8 K26 R0 - 0x901A3608, // 00DE SETMBR R6 K27 R8 - 0x8C241134, // 00DF GETMET R9 R8 K52 - 0x882C0D1E, // 00E0 GETMBR R11 R6 K30 - 0x50300200, // 00E1 LDBOOL R12 1 0 - 0x7C240600, // 00E2 CALL R9 3 - 0x74260013, // 00E3 JMPT R9 #00F8 - 0xB8260200, // 00E4 GETNGBL R9 K1 - 0x8C241302, // 00E5 GETMET R9 R9 K2 - 0x602C0008, // 00E6 GETGBL R11 G8 - 0x88300D1E, // 00E7 GETMBR R12 R6 K30 - 0x7C2C0200, // 00E8 CALL R11 1 - 0x002E6A0B, // 00E9 ADD R11 K53 R11 - 0x002C1736, // 00EA ADD R11 R11 K54 - 0x60300008, // 00EB GETGBL R12 G8 - 0x88341137, // 00EC GETMBR R13 R8 K55 - 0x7C300200, // 00ED CALL R12 1 - 0x002C160C, // 00EE ADD R11 R11 R12 - 0x58300017, // 00EF LDCONST R12 K23 - 0x7C240600, // 00F0 CALL R9 3 - 0x8C240138, // 00F1 GETMET R9 R0 K56 - 0x5C2C0C00, // 00F2 MOVE R11 R6 - 0x50300000, // 00F3 LDBOOL R12 0 0 - 0x7C240600, // 00F4 CALL R9 3 - 0x50240000, // 00F5 LDBOOL R9 0 0 + 0x5C200000, // 0005 MOVE R8 R0 + 0x5C240200, // 0006 MOVE R9 R1 + 0x5C280400, // 0007 MOVE R10 R2 + 0x5C2C0600, // 0008 MOVE R11 R3 + 0x7C180A00, // 0009 CALL R6 5 + 0x8C1C0D03, // 000A GETMET R7 R6 K3 + 0x7C1C0200, // 000B CALL R7 1 + 0x5C200E00, // 000C MOVE R8 R7 + 0x74220002, // 000D JMPT R8 #0011 + 0x50200000, // 000E LDBOOL R8 0 0 + 0xA8040001, // 000F EXBLK 1 1 + 0x80041000, // 0010 RET 1 R8 + 0x88200D04, // 0011 GETMBR R8 R6 K4 + 0x78220021, // 0012 JMPF R8 #0035 + 0xB8220A00, // 0013 GETNGBL R8 K5 + 0x8C201106, // 0014 GETMET R8 R8 K6 + 0xB82A0200, // 0015 GETNGBL R10 K1 + 0x8C281508, // 0016 GETMET R10 R10 K8 + 0x5C300C00, // 0017 MOVE R12 R6 + 0x7C280400, // 0018 CALL R10 2 + 0x002A0E0A, // 0019 ADD R10 K7 R10 + 0x7C200400, // 001A CALL R8 2 + 0x88200109, // 001B GETMBR R8 R0 K9 + 0x8820110A, // 001C GETMBR R8 R8 K10 + 0x8C20110B, // 001D GETMET R8 R8 K11 + 0x88280D0C, // 001E GETMBR R10 R6 K12 + 0x542E0059, // 001F LDINT R11 90 + 0x7C200600, // 0020 CALL R8 3 + 0xB8260A00, // 0021 GETNGBL R9 K5 + 0x8C241306, // 0022 GETMET R9 R9 K6 + 0x602C0008, // 0023 GETGBL R11 G8 + 0x88300D0C, // 0024 GETMBR R12 R6 K12 + 0x7C2C0200, // 0025 CALL R11 1 + 0x002E1A0B, // 0026 ADD R11 K13 R11 + 0x002C170E, // 0027 ADD R11 R11 K14 + 0x60300008, // 0028 GETGBL R12 G8 + 0x8834110F, // 0029 GETMBR R13 R8 K15 + 0x7C300200, // 002A CALL R12 1 + 0x002C160C, // 002B ADD R11 R11 R12 + 0x58300010, // 002C LDCONST R12 K16 + 0x7C240600, // 002D CALL R9 3 + 0x88240111, // 002E GETMBR R9 R0 K17 + 0x8C241312, // 002F GETMET R9 R9 K18 + 0x5C2C0C00, // 0030 MOVE R11 R6 + 0x7C240400, // 0031 CALL R9 2 + 0xA8040001, // 0032 EXBLK 1 1 + 0x80041200, // 0033 RET 1 R9 + 0x7002013C, // 0034 JMP #0172 + 0x88200D0F, // 0035 GETMBR R8 R6 K15 + 0x1C201113, // 0036 EQ R8 R8 K19 + 0x7822007D, // 0037 JMPF R8 #00B6 + 0x88200D14, // 0038 GETMBR R8 R6 K20 + 0x1C201113, // 0039 EQ R8 R8 K19 + 0x7822007A, // 003A JMPF R8 #00B6 + 0x88200109, // 003B GETMBR R8 R0 K9 + 0x8820110A, // 003C GETMBR R8 R8 K10 + 0x8C20110B, // 003D GETMET R8 R8 K11 + 0x88280D0C, // 003E GETMBR R10 R6 K12 + 0x542E0059, // 003F LDINT R11 90 + 0x7C200600, // 0040 CALL R8 3 + 0xB8260A00, // 0041 GETNGBL R9 K5 + 0x8C241306, // 0042 GETMET R9 R9 K6 + 0x602C0008, // 0043 GETGBL R11 G8 + 0x88300D0C, // 0044 GETMBR R12 R6 K12 + 0x7C2C0200, // 0045 CALL R11 1 + 0x002E1A0B, // 0046 ADD R11 K13 R11 + 0x002C170E, // 0047 ADD R11 R11 K14 + 0x60300008, // 0048 GETGBL R12 G8 + 0x8834110F, // 0049 GETMBR R13 R8 K15 + 0x7C300200, // 004A CALL R12 1 + 0x002C160C, // 004B ADD R11 R11 R12 + 0x58300015, // 004C LDCONST R12 K21 + 0x7C240600, // 004D CALL R9 3 + 0x780A0000, // 004E JMPF R2 #0050 + 0x90222C02, // 004F SETMBR R8 K22 R2 + 0x780E0000, // 0050 JMPF R3 #0052 + 0x90222E03, // 0051 SETMBR R8 K23 R3 + 0x90223000, // 0052 SETMBR R8 K24 R0 + 0x901A3208, // 0053 SETMBR R6 K25 R8 + 0x8824111A, // 0054 GETMBR R9 R8 K26 + 0x8C24131B, // 0055 GETMET R9 R9 K27 + 0x882C0D1C, // 0056 GETMBR R11 R6 K28 + 0x50300000, // 0057 LDBOOL R12 0 0 + 0x7C240600, // 0058 CALL R9 3 + 0x74260011, // 0059 JMPT R9 #006C + 0xB8260A00, // 005A GETNGBL R9 K5 + 0x8C241306, // 005B GETMET R9 R9 K6 + 0x8C2C091D, // 005C GETMET R11 R4 K29 + 0x5834001E, // 005D LDCONST R13 K30 + 0x88380D1C, // 005E GETMBR R14 R6 K28 + 0x883C111A, // 005F GETMBR R15 R8 K26 + 0x8C3C1F1F, // 0060 GETMET R15 R15 K31 + 0x7C3C0200, // 0061 CALL R15 1 + 0x7C2C0800, // 0062 CALL R11 4 + 0x58300015, // 0063 LDCONST R12 K21 + 0x7C240600, // 0064 CALL R9 3 + 0x8C240120, // 0065 GETMET R9 R0 K32 + 0x5C2C0C00, // 0066 MOVE R11 R6 + 0x50300000, // 0067 LDBOOL R12 0 0 + 0x7C240600, // 0068 CALL R9 3 + 0x50240000, // 0069 LDBOOL R9 0 0 + 0xA8040001, // 006A EXBLK 1 1 + 0x80041200, // 006B RET 1 R9 + 0x8C240D21, // 006C GETMET R9 R6 K33 + 0x7C240200, // 006D CALL R9 1 + 0x74260002, // 006E JMPT R9 #0072 + 0x50240000, // 006F LDBOOL R9 0 0 + 0xA8040001, // 0070 EXBLK 1 1 + 0x80041200, // 0071 RET 1 R9 + 0x88240109, // 0072 GETMBR R9 R0 K9 + 0x8C241322, // 0073 GETMET R9 R9 K34 + 0x5C2C0C00, // 0074 MOVE R11 R6 + 0x7C240400, // 0075 CALL R9 2 + 0x88240D23, // 0076 GETMBR R9 R6 K35 + 0x542A000F, // 0077 LDINT R10 16 + 0x2024120A, // 0078 NE R9 R9 R10 + 0x78260018, // 0079 JMPF R9 #0093 + 0xB8260200, // 007A GETNGBL R9 K1 + 0x8C241324, // 007B GETMET R9 R9 K36 + 0x882C0D23, // 007C GETMBR R11 R6 K35 + 0x7C240400, // 007D CALL R9 2 + 0x5C281200, // 007E MOVE R10 R9 + 0x742A0004, // 007F JMPT R10 #0085 + 0x8C28091D, // 0080 GETMET R10 R4 K29 + 0x58300025, // 0081 LDCONST R12 K37 + 0x88340D23, // 0082 GETMBR R13 R6 K35 + 0x7C280600, // 0083 CALL R10 3 + 0x5C241400, // 0084 MOVE R9 R10 + 0xB82A0A00, // 0085 GETNGBL R10 K5 + 0x8C281506, // 0086 GETMET R10 R10 K6 + 0x8C30091D, // 0087 GETMET R12 R4 K29 + 0x58380026, // 0088 LDCONST R14 K38 + 0x883C110F, // 0089 GETMBR R15 R8 K15 + 0x5C401200, // 008A MOVE R16 R9 + 0x88440D1C, // 008B GETMBR R17 R6 K28 + 0x88480D27, // 008C GETMBR R18 R6 K39 + 0x5C4C0400, // 008D MOVE R19 R2 + 0x5C500600, // 008E MOVE R20 R3 + 0x7C301000, // 008F CALL R12 8 + 0x58340010, // 0090 LDCONST R13 K16 + 0x7C280600, // 0091 CALL R10 3 + 0x70020013, // 0092 JMP #00A7 + 0xB8260A00, // 0093 GETNGBL R9 K5 + 0x8C241306, // 0094 GETMET R9 R9 K6 + 0x8C2C091D, // 0095 GETMET R11 R4 K29 + 0x58340028, // 0096 LDCONST R13 K40 + 0x8838110F, // 0097 GETMBR R14 R8 K15 + 0x883C0D1C, // 0098 GETMBR R15 R6 K28 + 0x88400D29, // 0099 GETMBR R16 R6 K41 + 0x78420001, // 009A JMPF R16 #009D + 0x5840002A, // 009B LDCONST R16 K42 + 0x70020000, // 009C JMP #009E + 0x5840002B, // 009D LDCONST R16 K43 + 0x88440D27, // 009E GETMBR R17 R6 K39 + 0x60480008, // 009F GETGBL R18 G8 + 0x884C0D2C, // 00A0 GETMBR R19 R6 K44 + 0x7C480200, // 00A1 CALL R18 1 + 0x5C4C0400, // 00A2 MOVE R19 R2 + 0x5C500600, // 00A3 MOVE R20 R3 + 0x7C2C1200, // 00A4 CALL R11 9 + 0x58300015, // 00A5 LDCONST R12 K21 + 0x7C240600, // 00A6 CALL R9 3 + 0x8824012D, // 00A7 GETMBR R9 R0 K45 + 0x8C24132E, // 00A8 GETMET R9 R9 K46 + 0x5C2C0C00, // 00A9 MOVE R11 R6 + 0x7C240400, // 00AA CALL R9 2 + 0x5C141200, // 00AB MOVE R5 R9 + 0x5C240A00, // 00AC MOVE R9 R5 + 0x74260003, // 00AD JMPT R9 #00B2 + 0x8C240120, // 00AE GETMET R9 R0 K32 + 0x5C2C0C00, // 00AF MOVE R11 R6 + 0x50300000, // 00B0 LDBOOL R12 0 0 + 0x7C240600, // 00B1 CALL R9 3 + 0x50240200, // 00B2 LDBOOL R9 1 0 + 0xA8040001, // 00B3 EXBLK 1 1 + 0x80041200, // 00B4 RET 1 R9 + 0x700200BB, // 00B5 JMP #0172 + 0xB8220A00, // 00B6 GETNGBL R8 K5 + 0x8C201106, // 00B7 GETMET R8 R8 K6 + 0x8C28091D, // 00B8 GETMET R10 R4 K29 + 0x5830002F, // 00B9 LDCONST R12 K47 + 0x88340D0F, // 00BA GETMBR R13 R6 K15 + 0x88380D1C, // 00BB GETMBR R14 R6 K28 + 0x7C280800, // 00BC CALL R10 4 + 0x582C0015, // 00BD LDCONST R11 K21 + 0x7C200600, // 00BE CALL R8 3 + 0x88200109, // 00BF GETMBR R8 R0 K9 + 0x8820110A, // 00C0 GETMBR R8 R8 K10 + 0x8C201130, // 00C1 GETMET R8 R8 K48 + 0x88280D0F, // 00C2 GETMBR R10 R6 K15 + 0x7C200400, // 00C3 CALL R8 2 + 0x4C240000, // 00C4 LDNIL R9 + 0x1C241009, // 00C5 EQ R9 R8 R9 + 0x7826000A, // 00C6 JMPF R9 #00D2 + 0xB8260A00, // 00C7 GETNGBL R9 K5 + 0x8C241306, // 00C8 GETMET R9 R9 K6 + 0x602C0008, // 00C9 GETGBL R11 G8 + 0x88300D0F, // 00CA GETMBR R12 R6 K15 + 0x7C2C0200, // 00CB CALL R11 1 + 0x002E620B, // 00CC ADD R11 K49 R11 + 0x58300010, // 00CD LDCONST R12 K16 + 0x7C240600, // 00CE CALL R9 3 + 0x50240000, // 00CF LDBOOL R9 0 0 + 0xA8040001, // 00D0 EXBLK 1 1 + 0x80041200, // 00D1 RET 1 R9 + 0x780A0000, // 00D2 JMPF R2 #00D4 + 0x90222C02, // 00D3 SETMBR R8 K22 R2 + 0x780E0000, // 00D4 JMPF R3 #00D6 + 0x90222E03, // 00D5 SETMBR R8 K23 R3 + 0x90223000, // 00D6 SETMBR R8 K24 R0 + 0x901A3208, // 00D7 SETMBR R6 K25 R8 + 0x8C241132, // 00D8 GETMET R9 R8 K50 + 0x882C0D1C, // 00D9 GETMBR R11 R6 K28 + 0x50300200, // 00DA LDBOOL R12 1 0 + 0x7C240600, // 00DB CALL R9 3 + 0x74260013, // 00DC JMPT R9 #00F1 + 0xB8260A00, // 00DD GETNGBL R9 K5 + 0x8C241306, // 00DE GETMET R9 R9 K6 + 0x602C0008, // 00DF GETGBL R11 G8 + 0x88300D1C, // 00E0 GETMBR R12 R6 K28 + 0x7C2C0200, // 00E1 CALL R11 1 + 0x002E660B, // 00E2 ADD R11 K51 R11 + 0x002C1734, // 00E3 ADD R11 R11 K52 + 0x60300008, // 00E4 GETGBL R12 G8 + 0x88341135, // 00E5 GETMBR R13 R8 K53 + 0x7C300200, // 00E6 CALL R12 1 + 0x002C160C, // 00E7 ADD R11 R11 R12 + 0x58300015, // 00E8 LDCONST R12 K21 + 0x7C240600, // 00E9 CALL R9 3 + 0x8C240136, // 00EA GETMET R9 R0 K54 + 0x5C2C0C00, // 00EB MOVE R11 R6 + 0x50300000, // 00EC LDBOOL R12 0 0 + 0x7C240600, // 00ED CALL R9 3 + 0x50240000, // 00EE LDBOOL R9 0 0 + 0xA8040001, // 00EF EXBLK 1 1 + 0x80041200, // 00F0 RET 1 R9 + 0x8C240D37, // 00F1 GETMET R9 R6 K55 + 0x7C240200, // 00F2 CALL R9 1 + 0x5C281200, // 00F3 MOVE R10 R9 + 0x742A0002, // 00F4 JMPT R10 #00F8 + 0x50280000, // 00F5 LDBOOL R10 0 0 0xA8040001, // 00F6 EXBLK 1 1 - 0x80041200, // 00F7 RET 1 R9 - 0x8C240D39, // 00F8 GETMET R9 R6 K57 - 0x7C240200, // 00F9 CALL R9 1 - 0x5C281200, // 00FA MOVE R10 R9 - 0x742A0002, // 00FB JMPT R10 #00FF - 0x50280000, // 00FC LDBOOL R10 0 0 - 0xA8040001, // 00FD EXBLK 1 1 - 0x80041400, // 00FE RET 1 R10 - 0x88280D3B, // 00FF GETMBR R10 R6 K59 - 0x0428153C, // 0100 SUB R10 R10 K60 - 0x402A2A0A, // 0101 CONNECT R10 K21 R10 - 0x882C0D3A, // 0102 GETMBR R11 R6 K58 - 0x9428160A, // 0103 GETIDX R10 R11 R10 - 0x901A740A, // 0104 SETMBR R6 K58 R10 - 0x88280D3A, // 0105 GETMBR R10 R6 K58 - 0x40281409, // 0106 CONNECT R10 R10 R9 - 0xB82A0200, // 0107 GETNGBL R10 K1 - 0x8C281502, // 0108 GETMET R10 R10 K2 - 0x8C30091F, // 0109 GETMET R12 R4 K31 - 0x5838003D, // 010A LDCONST R14 K61 - 0x883C0D3B, // 010B GETMBR R15 R6 K59 - 0x88400D3A, // 010C GETMBR R16 R6 K58 - 0x8C402104, // 010D GETMET R16 R16 K4 - 0x7C400200, // 010E CALL R16 1 - 0x7C300800, // 010F CALL R12 4 - 0x54360003, // 0110 LDINT R13 4 - 0x7C280600, // 0111 CALL R10 3 - 0x8C280D23, // 0112 GETMET R10 R6 K35 - 0x7C280200, // 0113 CALL R10 1 - 0xB82A0200, // 0114 GETNGBL R10 K1 - 0x8C281502, // 0115 GETMET R10 R10 K2 - 0x60300008, // 0116 GETGBL R12 G8 - 0x88340D3F, // 0117 GETMBR R13 R6 K63 - 0x7C300200, // 0118 CALL R12 1 - 0x00327C0C, // 0119 ADD R12 K62 R12 - 0x00301940, // 011A ADD R12 R12 K64 - 0x60340008, // 011B GETGBL R13 G8 - 0x88380D25, // 011C GETMBR R14 R6 K37 + 0x80041400, // 00F7 RET 1 R10 + 0x88280D39, // 00F8 GETMBR R10 R6 K57 + 0x0428153A, // 00F9 SUB R10 R10 K58 + 0x402A260A, // 00FA CONNECT R10 K19 R10 + 0x882C0D38, // 00FB GETMBR R11 R6 K56 + 0x9428160A, // 00FC GETIDX R10 R11 R10 + 0x901A700A, // 00FD SETMBR R6 K56 R10 + 0x88280D38, // 00FE GETMBR R10 R6 K56 + 0x40281409, // 00FF CONNECT R10 R10 R9 + 0xB82A0A00, // 0100 GETNGBL R10 K5 + 0x8C281506, // 0101 GETMET R10 R10 K6 + 0x8C30091D, // 0102 GETMET R12 R4 K29 + 0x5838003B, // 0103 LDCONST R14 K59 + 0x883C0D39, // 0104 GETMBR R15 R6 K57 + 0x88400D38, // 0105 GETMBR R16 R6 K56 + 0x8C40213C, // 0106 GETMET R16 R16 K60 + 0x7C400200, // 0107 CALL R16 1 + 0x7C300800, // 0108 CALL R12 4 + 0x54360003, // 0109 LDINT R13 4 + 0x7C280600, // 010A CALL R10 3 + 0x8C280D21, // 010B GETMET R10 R6 K33 + 0x7C280200, // 010C CALL R10 1 + 0xB82A0A00, // 010D GETNGBL R10 K5 + 0x8C281506, // 010E GETMET R10 R10 K6 + 0x60300008, // 010F GETGBL R12 G8 + 0x88340D3E, // 0110 GETMBR R13 R6 K62 + 0x7C300200, // 0111 CALL R12 1 + 0x00327A0C, // 0112 ADD R12 K61 R12 + 0x0030193F, // 0113 ADD R12 R12 K63 + 0x60340008, // 0114 GETGBL R13 G8 + 0x88380D23, // 0115 GETMBR R14 R6 K35 + 0x7C340200, // 0116 CALL R13 1 + 0x0030180D, // 0117 ADD R12 R12 R13 + 0x00301940, // 0118 ADD R12 R12 K64 + 0x60340008, // 0119 GETGBL R13 G8 + 0x88380D27, // 011A GETMBR R14 R6 K39 + 0x543EFFFE, // 011B LDINT R15 65535 + 0x2C381C0F, // 011C AND R14 R14 R15 0x7C340200, // 011D CALL R13 1 0x0030180D, // 011E ADD R12 R12 R13 - 0x00301941, // 011F ADD R12 R12 K65 - 0x60340008, // 0120 GETGBL R13 G8 - 0x88380D29, // 0121 GETMBR R14 R6 K41 - 0x543EFFFE, // 0122 LDINT R15 65535 - 0x2C381C0F, // 0123 AND R14 R14 R15 - 0x7C340200, // 0124 CALL R13 1 - 0x0030180D, // 0125 ADD R12 R12 R13 - 0x58340017, // 0126 LDCONST R13 K23 - 0x7C280600, // 0127 CALL R10 3 - 0xB82A0200, // 0128 GETNGBL R10 K1 - 0x8C281502, // 0129 GETMET R10 R10 K2 - 0x8C30091F, // 012A GETMET R12 R4 K31 - 0x58380042, // 012B LDCONST R14 K66 - 0x883C1111, // 012C GETMBR R15 R8 K17 - 0x88400D3F, // 012D GETMBR R16 R6 K63 - 0x88440D25, // 012E GETMBR R17 R6 K37 - 0x88480D1E, // 012F GETMBR R18 R6 K30 - 0x884C0D29, // 0130 GETMBR R19 R6 K41 - 0x60500008, // 0131 GETGBL R20 G8 - 0x88540D2E, // 0132 GETMBR R21 R6 K46 - 0x7C500200, // 0133 CALL R20 1 - 0x88540D2B, // 0134 GETMBR R21 R6 K43 - 0x78560001, // 0135 JMPF R21 #0138 - 0x5854002C, // 0136 LDCONST R21 K44 - 0x70020000, // 0137 JMP #0139 - 0x5854002D, // 0138 LDCONST R21 K45 - 0x5C580400, // 0139 MOVE R22 R2 - 0x5C5C0600, // 013A MOVE R23 R3 - 0x7C301600, // 013B CALL R12 11 - 0x58340017, // 013C LDCONST R13 K23 - 0x7C280600, // 013D CALL R10 3 - 0x8828010B, // 013E GETMBR R10 R0 K11 - 0x8C281524, // 013F GETMET R10 R10 K36 - 0x5C300C00, // 0140 MOVE R12 R6 - 0x7C280400, // 0141 CALL R10 2 - 0x88280D3F, // 0142 GETMBR R10 R6 K63 - 0x1C2C1515, // 0143 EQ R11 R10 K21 - 0x782E0018, // 0144 JMPF R11 #015E - 0xB82E0200, // 0145 GETNGBL R11 K1 - 0x8C2C1702, // 0146 GETMET R11 R11 K2 - 0xB8360A00, // 0147 GETNGBL R13 K5 - 0x8C341B0A, // 0148 GETMET R13 R13 K10 - 0x5C3C0C00, // 0149 MOVE R15 R6 - 0x7C340400, // 014A CALL R13 2 - 0x0036860D, // 014B ADD R13 K67 R13 - 0x58380017, // 014C LDCONST R14 K23 - 0x7C2C0600, // 014D CALL R11 3 - 0x882C0D25, // 014E GETMBR R11 R6 K37 - 0x5432000F, // 014F LDINT R12 16 - 0x1C2C160C, // 0150 EQ R11 R11 R12 - 0x782E0009, // 0151 JMPF R11 #015C - 0x882C0144, // 0152 GETMBR R11 R0 K68 - 0x8C2C1745, // 0153 GETMET R11 R11 K69 - 0x5C340C00, // 0154 MOVE R13 R6 - 0x7C2C0400, // 0155 CALL R11 2 - 0x5C141600, // 0156 MOVE R5 R11 - 0x78160003, // 0157 JMPF R5 #015C - 0x882C0144, // 0158 GETMBR R11 R0 K68 - 0x8C2C1746, // 0159 GETMET R11 R11 K70 - 0x5C340000, // 015A MOVE R13 R0 - 0x7C2C0400, // 015B CALL R11 2 - 0x50140200, // 015C LDBOOL R5 1 0 - 0x7002001A, // 015D JMP #0179 - 0x1C2C153C, // 015E EQ R11 R10 K60 - 0x782E0010, // 015F JMPF R11 #0171 - 0x882C0144, // 0160 GETMBR R11 R0 K68 - 0x8C2C1730, // 0161 GETMET R11 R11 K48 - 0x5C340C00, // 0162 MOVE R13 R6 - 0x7C2C0400, // 0163 CALL R11 2 - 0x5C141600, // 0164 MOVE R5 R11 - 0x78160004, // 0165 JMPF R5 #016B - 0x882C0144, // 0166 GETMBR R11 R0 K68 - 0x8C2C1746, // 0167 GETMET R11 R11 K70 - 0x5C340000, // 0168 MOVE R13 R0 - 0x7C2C0400, // 0169 CALL R11 2 - 0x70020003, // 016A JMP #016F - 0x8C2C0138, // 016B GETMET R11 R0 K56 - 0x5C340C00, // 016C MOVE R13 R6 - 0x50380200, // 016D LDBOOL R14 1 0 - 0x7C2C0600, // 016E CALL R11 3 - 0x50140200, // 016F LDBOOL R5 1 0 - 0x70020007, // 0170 JMP #0179 - 0xB82E0200, // 0171 GETNGBL R11 K1 - 0x8C2C1702, // 0172 GETMET R11 R11 K2 - 0x60340008, // 0173 GETGBL R13 G8 - 0x5C381400, // 0174 MOVE R14 R10 - 0x7C340200, // 0175 CALL R13 1 - 0x00368E0D, // 0176 ADD R13 K71 R13 - 0x58380017, // 0177 LDCONST R14 K23 - 0x7C2C0600, // 0178 CALL R11 3 - 0xA8040001, // 0179 EXBLK 1 1 - 0x80040A00, // 017A RET 1 R5 - 0xA8040001, // 017B EXBLK 1 1 - 0x70020014, // 017C JMP #0192 - 0xAC180002, // 017D CATCH R6 0 2 - 0x70020011, // 017E JMP #0191 - 0xB8220200, // 017F GETNGBL R8 K1 - 0x8C201102, // 0180 GETMET R8 R8 K2 - 0x60280008, // 0181 GETGBL R10 G8 - 0x5C2C0C00, // 0182 MOVE R11 R6 - 0x7C280200, // 0183 CALL R10 1 - 0x002A900A, // 0184 ADD R10 K72 R10 - 0x00281549, // 0185 ADD R10 R10 K73 - 0x602C0008, // 0186 GETGBL R11 G8 - 0x5C300E00, // 0187 MOVE R12 R7 - 0x7C2C0200, // 0188 CALL R11 1 - 0x0028140B, // 0189 ADD R10 R10 R11 - 0x7C200400, // 018A CALL R8 2 - 0xA4229400, // 018B IMPORT R8 K74 - 0x8C24114B, // 018C GETMET R9 R8 K75 - 0x7C240200, // 018D CALL R9 1 - 0x50240000, // 018E LDBOOL R9 0 0 - 0x80041200, // 018F RET 1 R9 - 0x70020000, // 0190 JMP #0192 - 0xB0080000, // 0191 RAISE 2 R0 R0 - 0x80000000, // 0192 RET 0 + 0x58340015, // 011F LDCONST R13 K21 + 0x7C280600, // 0120 CALL R10 3 + 0xB82A0A00, // 0121 GETNGBL R10 K5 + 0x8C281506, // 0122 GETMET R10 R10 K6 + 0x8C30091D, // 0123 GETMET R12 R4 K29 + 0x58380041, // 0124 LDCONST R14 K65 + 0x883C110F, // 0125 GETMBR R15 R8 K15 + 0x88400D3E, // 0126 GETMBR R16 R6 K62 + 0x88440D23, // 0127 GETMBR R17 R6 K35 + 0x88480D1C, // 0128 GETMBR R18 R6 K28 + 0x884C0D27, // 0129 GETMBR R19 R6 K39 + 0x60500008, // 012A GETGBL R20 G8 + 0x88540D2C, // 012B GETMBR R21 R6 K44 + 0x7C500200, // 012C CALL R20 1 + 0x88540D29, // 012D GETMBR R21 R6 K41 + 0x78560001, // 012E JMPF R21 #0131 + 0x5854002A, // 012F LDCONST R21 K42 + 0x70020000, // 0130 JMP #0132 + 0x5854002B, // 0131 LDCONST R21 K43 + 0x5C580400, // 0132 MOVE R22 R2 + 0x5C5C0600, // 0133 MOVE R23 R3 + 0x7C301600, // 0134 CALL R12 11 + 0x58340015, // 0135 LDCONST R13 K21 + 0x7C280600, // 0136 CALL R10 3 + 0x88280109, // 0137 GETMBR R10 R0 K9 + 0x8C281522, // 0138 GETMET R10 R10 K34 + 0x5C300C00, // 0139 MOVE R12 R6 + 0x7C280400, // 013A CALL R10 2 + 0x88280D3E, // 013B GETMBR R10 R6 K62 + 0x1C2C1513, // 013C EQ R11 R10 K19 + 0x782E0018, // 013D JMPF R11 #0157 + 0xB82E0A00, // 013E GETNGBL R11 K5 + 0x8C2C1706, // 013F GETMET R11 R11 K6 + 0xB8360200, // 0140 GETNGBL R13 K1 + 0x8C341B08, // 0141 GETMET R13 R13 K8 + 0x5C3C0C00, // 0142 MOVE R15 R6 + 0x7C340400, // 0143 CALL R13 2 + 0x0036840D, // 0144 ADD R13 K66 R13 + 0x58380015, // 0145 LDCONST R14 K21 + 0x7C2C0600, // 0146 CALL R11 3 + 0x882C0D23, // 0147 GETMBR R11 R6 K35 + 0x5432000F, // 0148 LDINT R12 16 + 0x1C2C160C, // 0149 EQ R11 R11 R12 + 0x782E0009, // 014A JMPF R11 #0155 + 0x882C0143, // 014B GETMBR R11 R0 K67 + 0x8C2C1744, // 014C GETMET R11 R11 K68 + 0x5C340C00, // 014D MOVE R13 R6 + 0x7C2C0400, // 014E CALL R11 2 + 0x5C141600, // 014F MOVE R5 R11 + 0x78160003, // 0150 JMPF R5 #0155 + 0x882C0143, // 0151 GETMBR R11 R0 K67 + 0x8C2C1745, // 0152 GETMET R11 R11 K69 + 0x5C340000, // 0153 MOVE R13 R0 + 0x7C2C0400, // 0154 CALL R11 2 + 0x50140200, // 0155 LDBOOL R5 1 0 + 0x7002001A, // 0156 JMP #0172 + 0x1C2C153A, // 0157 EQ R11 R10 K58 + 0x782E0010, // 0158 JMPF R11 #016A + 0x882C0143, // 0159 GETMBR R11 R0 K67 + 0x8C2C172E, // 015A GETMET R11 R11 K46 + 0x5C340C00, // 015B MOVE R13 R6 + 0x7C2C0400, // 015C CALL R11 2 + 0x5C141600, // 015D MOVE R5 R11 + 0x78160004, // 015E JMPF R5 #0164 + 0x882C0143, // 015F GETMBR R11 R0 K67 + 0x8C2C1745, // 0160 GETMET R11 R11 K69 + 0x5C340000, // 0161 MOVE R13 R0 + 0x7C2C0400, // 0162 CALL R11 2 + 0x70020003, // 0163 JMP #0168 + 0x8C2C0136, // 0164 GETMET R11 R0 K54 + 0x5C340C00, // 0165 MOVE R13 R6 + 0x50380200, // 0166 LDBOOL R14 1 0 + 0x7C2C0600, // 0167 CALL R11 3 + 0x50140200, // 0168 LDBOOL R5 1 0 + 0x70020007, // 0169 JMP #0172 + 0xB82E0A00, // 016A GETNGBL R11 K5 + 0x8C2C1706, // 016B GETMET R11 R11 K6 + 0x60340008, // 016C GETGBL R13 G8 + 0x5C381400, // 016D MOVE R14 R10 + 0x7C340200, // 016E CALL R13 1 + 0x00368C0D, // 016F ADD R13 K70 R13 + 0x58380015, // 0170 LDCONST R14 K21 + 0x7C2C0600, // 0171 CALL R11 3 + 0xA8040001, // 0172 EXBLK 1 1 + 0x80040A00, // 0173 RET 1 R5 + 0xA8040001, // 0174 EXBLK 1 1 + 0x70020014, // 0175 JMP #018B + 0xAC180002, // 0176 CATCH R6 0 2 + 0x70020011, // 0177 JMP #018A + 0xB8220A00, // 0178 GETNGBL R8 K5 + 0x8C201106, // 0179 GETMET R8 R8 K6 + 0x60280008, // 017A GETGBL R10 G8 + 0x5C2C0C00, // 017B MOVE R11 R6 + 0x7C280200, // 017C CALL R10 1 + 0x002A8E0A, // 017D ADD R10 K71 R10 + 0x00281548, // 017E ADD R10 R10 K72 + 0x602C0008, // 017F GETGBL R11 G8 + 0x5C300E00, // 0180 MOVE R12 R7 + 0x7C2C0200, // 0181 CALL R11 1 + 0x0028140B, // 0182 ADD R10 R10 R11 + 0x7C200400, // 0183 CALL R8 2 + 0xA4229200, // 0184 IMPORT R8 K73 + 0x8C24114A, // 0185 GETMET R9 R8 K74 + 0x7C240200, // 0186 CALL R9 1 + 0x50240000, // 0187 LDBOOL R9 0 0 + 0x80041200, // 0188 RET 1 R9 + 0x70020000, // 0189 JMP #018B + 0xB0080000, // 018A RAISE 2 R0 R0 + 0x80000000, // 018B RET 0 }) ) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Path.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Path.h new file mode 100644 index 000000000..1916265ee --- /dev/null +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Path.h @@ -0,0 +1,149 @@ +/* Solidification of Matter_Path.h */ +/********************************************************************\ +* Generated code, don't edit * +\********************************************************************/ +#include "be_constobj.h" + +extern const bclass be_class_Matter_Path; + +/******************************************************************** +** Solidified function: tostring +********************************************************************/ +be_local_closure(Matter_Path_tostring, /* name */ + be_nested_proto( + 7, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[15]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(), + /* K2 */ be_nested_str_weak(endpoint), + /* K3 */ be_nested_str_weak(format), + /* K4 */ be_nested_str_weak(_X5B_X2502X_X5D), + /* K5 */ be_nested_str_weak(_X5B_X2A_X2A_X5D), + /* K6 */ be_nested_str_weak(cluster), + /* K7 */ be_nested_str_weak(_X2504X_X2F), + /* K8 */ be_nested_str_weak(_X2A_X2A_X2A_X2A_X2F), + /* K9 */ be_nested_str_weak(attribute), + /* K10 */ be_nested_str_weak(_X2504X), + /* K11 */ be_nested_str_weak(command), + /* K12 */ be_nested_str_weak(_X2A_X2A_X2A_X2A), + /* K13 */ be_nested_str_weak(Exception_X3E_X20), + /* K14 */ be_nested_str_weak(_X2C_X20), + }), + be_str_weak(tostring), + &be_const_str_solidified, + ( &(const binstruction[75]) { /* code */ + 0xA802003A, // 0000 EXBLK 0 #003C + 0xA4060000, // 0001 IMPORT R1 K0 + 0x58080001, // 0002 LDCONST R2 K1 + 0x880C0102, // 0003 GETMBR R3 R0 K2 + 0x4C100000, // 0004 LDNIL R4 + 0x200C0604, // 0005 NE R3 R3 R4 + 0x780E0004, // 0006 JMPF R3 #000C + 0x8C0C0303, // 0007 GETMET R3 R1 K3 + 0x58140004, // 0008 LDCONST R5 K4 + 0x88180102, // 0009 GETMBR R6 R0 K2 + 0x7C0C0600, // 000A CALL R3 3 + 0x70020000, // 000B JMP #000D + 0x580C0005, // 000C LDCONST R3 K5 + 0x00080403, // 000D ADD R2 R2 R3 + 0x880C0106, // 000E GETMBR R3 R0 K6 + 0x4C100000, // 000F LDNIL R4 + 0x200C0604, // 0010 NE R3 R3 R4 + 0x780E0004, // 0011 JMPF R3 #0017 + 0x8C0C0303, // 0012 GETMET R3 R1 K3 + 0x58140007, // 0013 LDCONST R5 K7 + 0x88180106, // 0014 GETMBR R6 R0 K6 + 0x7C0C0600, // 0015 CALL R3 3 + 0x70020000, // 0016 JMP #0018 + 0x580C0008, // 0017 LDCONST R3 K8 + 0x00080403, // 0018 ADD R2 R2 R3 + 0x880C0109, // 0019 GETMBR R3 R0 K9 + 0x4C100000, // 001A LDNIL R4 + 0x200C0604, // 001B NE R3 R3 R4 + 0x780E0004, // 001C JMPF R3 #0022 + 0x8C0C0303, // 001D GETMET R3 R1 K3 + 0x5814000A, // 001E LDCONST R5 K10 + 0x88180109, // 001F GETMBR R6 R0 K9 + 0x7C0C0600, // 0020 CALL R3 3 + 0x70020000, // 0021 JMP #0023 + 0x580C0001, // 0022 LDCONST R3 K1 + 0x00080403, // 0023 ADD R2 R2 R3 + 0x880C010B, // 0024 GETMBR R3 R0 K11 + 0x4C100000, // 0025 LDNIL R4 + 0x200C0604, // 0026 NE R3 R3 R4 + 0x780E0004, // 0027 JMPF R3 #002D + 0x8C0C0303, // 0028 GETMET R3 R1 K3 + 0x5814000A, // 0029 LDCONST R5 K10 + 0x8818010B, // 002A GETMBR R6 R0 K11 + 0x7C0C0600, // 002B CALL R3 3 + 0x70020000, // 002C JMP #002E + 0x580C0001, // 002D LDCONST R3 K1 + 0x00080403, // 002E ADD R2 R2 R3 + 0x880C0109, // 002F GETMBR R3 R0 K9 + 0x4C100000, // 0030 LDNIL R4 + 0x1C0C0604, // 0031 EQ R3 R3 R4 + 0x780E0004, // 0032 JMPF R3 #0038 + 0x880C010B, // 0033 GETMBR R3 R0 K11 + 0x4C100000, // 0034 LDNIL R4 + 0x1C0C0604, // 0035 EQ R3 R3 R4 + 0x780E0000, // 0036 JMPF R3 #0038 + 0x0008050C, // 0037 ADD R2 R2 K12 + 0xA8040001, // 0038 EXBLK 1 1 + 0x80040400, // 0039 RET 1 R2 + 0xA8040001, // 003A EXBLK 1 1 + 0x7002000D, // 003B JMP #004A + 0xAC040002, // 003C CATCH R1 0 2 + 0x7002000A, // 003D JMP #0049 + 0x600C0008, // 003E GETGBL R3 G8 + 0x5C100200, // 003F MOVE R4 R1 + 0x7C0C0200, // 0040 CALL R3 1 + 0x000E1A03, // 0041 ADD R3 K13 R3 + 0x000C070E, // 0042 ADD R3 R3 K14 + 0x60100008, // 0043 GETGBL R4 G8 + 0x5C140400, // 0044 MOVE R5 R2 + 0x7C100200, // 0045 CALL R4 1 + 0x000C0604, // 0046 ADD R3 R3 R4 + 0x80040600, // 0047 RET 1 R3 + 0x70020000, // 0048 JMP #004A + 0xB0080000, // 0049 RAISE 2 R0 R0 + 0x80000000, // 004A RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified class: Matter_Path +********************************************************************/ +be_local_class(Matter_Path, + 6, + NULL, + be_nested_map(7, + ( (struct bmapnode*) &(const bmapnode[]) { + { be_const_key_weak(log, 4), be_const_var(5) }, + { be_const_key_weak(command, 2), be_const_var(3) }, + { be_const_key_weak(status, -1), be_const_var(4) }, + { be_const_key_weak(tostring, -1), be_const_closure(Matter_Path_tostring_closure) }, + { be_const_key_weak(cluster, 5), be_const_var(1) }, + { be_const_key_weak(endpoint, -1), be_const_var(0) }, + { be_const_key_weak(attribute, -1), be_const_var(2) }, + })), + be_str_weak(Matter_Path) +); +/*******************************************************************/ + +void be_load_Matter_Path_class(bvm *vm) { + be_pushntvclass(vm, &be_class_Matter_Path); + be_setglobal(vm, "Matter_Path"); + be_pop(vm, 1); +} +/********************************************************************/ +/* End of solidification */