From be40830bc07aad777abacb2355b4596227c89be9 Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Thu, 4 Jul 2024 20:47:32 +0200 Subject: [PATCH] Matter support for 'Generic Switch' based on Tasmota Buttons (#21731) --- CHANGELOG.md | 1 + .../berry_matter/src/be_matter_module.c | 2 +- .../src/embedded/Matter_EventHandler.be | 147 +- .../src/embedded/Matter_IM_Message.be | 76 +- ...tter_Plugin_2_Sensor_GenericSwitch_Btn.be} | 78 +- .../berry_matter/src/embedded/Matter_UI.be | 1 + .../src/embedded/Matter_zz_Device.be | 38 + .../solidify/solidified_Matter_EventHandler.h | 451 +- .../solidify/solidified_Matter_IM_Message.h | 214 +- ...ied_Matter_Plugin_2_Sensor_GenericSwitch.h | 350 - ...Matter_Plugin_2_Sensor_GenericSwitch_Btn.h | 498 + .../src/solidify/solidified_Matter_UI.h | 2 +- .../solidify/solidified_Matter_zz_Device.h | 9293 +++++++++-------- 13 files changed, 5962 insertions(+), 5189 deletions(-) rename lib/libesp32/berry_matter/src/embedded/{Matter_Plugin_2_Sensor_GenericSwitch.be => Matter_Plugin_2_Sensor_GenericSwitch_Btn.be} (50%) delete mode 100644 lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_2_Sensor_GenericSwitch.h create mode 100644 lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_2_Sensor_GenericSwitch_Btn.h diff --git a/CHANGELOG.md b/CHANGELOG.md index 8e68ae57a..42406f0ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ All notable changes to this project will be documented in this file. - NeoPool data validation and communication statistics default enabled for ESP32 only (#21721) - `FUNC_BUTTON_PRESSED` now contains `press_counter` encoded in `XdrvMailbox.command_code` (#21724) - Berry `int64` added `low32()` and `high32()` methods, used in Matter +- Matter support for 'Generic Switch' based on Tasmota Buttons ### Breaking Changed diff --git a/lib/libesp32/berry_matter/src/be_matter_module.c b/lib/libesp32/berry_matter/src/be_matter_module.c index 34d480df3..c6cce0315 100644 --- a/lib/libesp32/berry_matter/src/be_matter_module.c +++ b/lib/libesp32/berry_matter/src/be_matter_module.c @@ -272,7 +272,7 @@ extern const bclass be_class_Matter_TLV; // need to declare it upfront because #include "solidify/solidified_Matter_Plugin_3_Sensor_Rain.h" #include "solidify/solidified_Matter_Plugin_3_Sensor_Waterleak.h" #include "solidify/solidified_Matter_Plugin_2_Fan.h" -#include "solidify/solidified_Matter_Plugin_2_Sensor_GenericSwitch.h" +#include "solidify/solidified_Matter_Plugin_2_Sensor_GenericSwitch_Btn.h" #include "solidify/solidified_Matter_Plugin_9_Virt_Fan.h" #include "solidify/solidified_Matter_Plugin_9_Virt_Sensor_Contact.h" #include "solidify/solidified_Matter_Plugin_9_Virt_Sensor_Occupancy.h" diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_EventHandler.be b/lib/libesp32/berry_matter/src/embedded/Matter_EventHandler.be index 5c1f17434..c910077c6 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_EventHandler.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_EventHandler.be @@ -72,28 +72,139 @@ class Matter_EventQueued # free up some space def to_raw_bytes() if (self.raw_tlv == nil) - var event_report = matter.EventReportIB() - var event_ib = matter.EventDataIB() - event_report.event_data = event_ib - var event_path = matter.EventPathIB() - event_path.endpoint = self.endpoint - event_path.cluster = self.cluster - event_path.event = self.event_id - event_path.is_urgent = self.is_urgent - event_ib.path = event_path - event_ib.priority = self.priority - event_ib.event_number = self.event_no - event_ib.epoch_timestamp = self.epoch_timestamp - event_ib.data = matter.TLV.Matter_TLV_struct() - if (self.data0 != nil) event_ib.data.add_obj(0, self.data0) end - if (self.data1 != nil) event_ib.data.add_obj(1, self.data1) end - if (self.data2 != nil) event_ib.data.add_obj(2, self.data2) end + self.raw_tlv = bytes(64) + self.eventreport2raw(self.raw_tlv, self.endpoint, self.cluster, self.event_id, self.is_urgent, self.priority, self.event_no, self.epoch_timestamp, self.data0, self.data1, self.data2) + # var event_report = matter.EventReportIB() + # var event_ib = matter.EventDataIB() + # event_report.event_data = event_ib + # var event_path = matter.EventPathIB() + # event_path.endpoint = self.endpoint + # event_path.cluster = self.cluster + # event_path.event = self.event_id + # event_path.is_urgent = self.is_urgent + # event_ib.path = event_path + # event_ib.priority = self.priority + # event_ib.event_number = self.event_no + # event_ib.epoch_timestamp = self.epoch_timestamp + # event_ib.data = matter.TLV.Matter_TLV_struct() + # if (self.data0 != nil) event_ib.data.add_obj(0, self.data0) end + # if (self.data1 != nil) event_ib.data.add_obj(1, self.data1) end + # if (self.data2 != nil) event_ib.data.add_obj(2, self.data2) end - self.raw_tlv = event_report.to_TLV().tlv2raw() # bytes() + # self.raw_tlv = event_report.to_TLV().tlv2raw() # bytes() end return self.raw_tlv end + ############################################################# + # eventreport2raw + # + # 15 = EventReportIB + # 3501 = EventDataIB + # + def eventreport2raw(raw, endpoint, cluster, event, is_urgent, priority, event_no, epoch_timestamp, data0, data1, data2) + # open struct EventReportIB + raw.add(0x15, 1) # add 15 + # open sturct EventDataIB + raw.add(0x3501, -2) # add 3501 + # add path + self.eventpath2raw(raw, endpoint, cluster, event, is_urgent) + # add EventNumber + raw.add(0x2701, -2) # 2701 FFFFFFFFFFFFFFFF + raw.add(event_no.low32(), 4) # int64 low part + raw.add(event_no.high32(), 4) # int64 high part + # priority + raw.add(0x2402, -2) # add 2402 + raw.add(priority, 1) # add priority as one byte + # EpochTimestamp + raw.add(0x2603, -2) # add 2603 + raw.add(epoch_timestamp, 4) # add epoch as 32 bits + # Data struct + raw.add(0x3507, -2) # add 3507 + + # data0 + if (data0 != nil) + data0.tag_sub = 0 + data0.tlv2raw(raw) + end + # data1 + if (data1 != nil) + data1.tag_sub = 1 + data1.tlv2raw(raw) + end + # data2 + if (data2 != nil) + data2.tag_sub = 2 + data2.tlv2raw(raw) + end + + # close struct Data + raw.add(0x18, 1) # add 18 + # close struct EventDataIB + raw.add(0x18, 1) # add 18 + # close struct EventReportIB + raw.add(0x18, 1) # add 18 + end + + ############################################################# + # eventpath2raw + # + # Encodes endpoint/cluster/attribute as `EventPathIB` elements + # Takes sub-tag + # + # 1 = EventPathIB + # 0 = Node + # 1 = Endpoint + # 2 = Cluster + # 3 = Event + # 4 = IsUrgent + # + # 3700 0 = LIST + # 2401 01 1 = 1U (U1) + # 2402 39 2 = 0x39U (U1) + # 2403 11 3 = 0x11U (U1) + # 2904 4 = true + # 18 + def eventpath2raw(raw, endpoint, cluster, event, is_urgent) + # open struct + raw.add(0x3700, -2) # add 3700 + # add endpoint + if endpoint <= 0xFF # endpoint is 16 bits max + raw.add(0x2401, -2) # add 2401 + raw.add(endpoint, 1) + else + raw.add(0x2501, -2) # add 2501 + raw.add(endpoint, 2) + end + # add cluster + if cluster <= 0xFF # cluster is 32 bits max + raw.add(0x2402, -2) # add 2402 + raw.add(cluster, 1) + elif cluster <= 0xFFFF + raw.add(0x2502, -2) # add 2502 + raw.add(cluster, 2) + else + raw.add(0x2602, -2) # add 2602 + raw.add(cluster, 4) + end + # add event + if event <= 0xFF # cluster is 32 bits max + raw.add(0x2403, -2) # add 2403 + raw.add(event, 1) + else + raw.add(0x2503, -2) # add 2503 + raw.add(event, 2) + end + # IsUrgent + if is_urgent + raw.add(0x2904, -2) # add 2904 + else + raw.add(0x2804, -2) # add 2804 + end + # close + raw.add(0x18, 1) # add 18 + end + ################################################################################# # compact # @@ -372,7 +483,7 @@ class Matter_EventHandler log(f"MTR: +Add_Event ({priority_str}{new_event.event_no:8s}) [{new_event.endpoint:02X}]{new_event.cluster:04X}/{new_event.event_id:02X} {event_name}- {data_str}", 2) end self.queue_event(new_event) - # check if we have an subscription interested in this new event + # check if we have a subscription interested in this new event self.device.message_handler.im.subs_shop.event_published(new_event) end diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_IM_Message.be b/lib/libesp32/berry_matter/src/embedded/Matter_IM_Message.be index d0b596091..7559236e1 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_IM_Message.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_IM_Message.be @@ -352,27 +352,73 @@ class Matter_IM_ReportData_Pull : Matter_IM_Message ########## Response # prepare the response - var ret = matter.ReportDataMessage() - ret.subscription_id = self.subscription_id - ret.suppress_response = self.suppress_response - # ret.suppress_response = true - if (data != nil && size(data) > 0) - ret.attribute_reports = [data] - end - if (data_ev != nil && size(data_ev) > 0) - ret.event_reports = [data_ev] - end - ret.more_chunked_messages = (self.data != nil) || (self.data_ev != nil) # we got more data to send + # Manually craft payload + var more_chunked_messages = (self.data != nil) || (self.data_ev != nil) + var raw = bytes(self.MAX_MESSAGE) - # print(">>>>> send elements before encode") - var encoded_tlv = ret.to_TLV().tlv2raw(bytes(self.MAX_MESSAGE)) # takes time - resp.encode_frame(encoded_tlv) # payload in cleartext, pre-allocate max buffer + # open struct ReportDataMessage + raw.add(0x15, 1) # add 15 + # open sturct EventDataIB + if (self.subscription_id != nil) + raw.add(0x2500, -2) # add 2500 + raw.add(self.subscription_id, 2) # add subscription_id as 16 bits + end + # do we have attributes? + if (data != nil && size(data) > 0) + raw.add(0x3601, -2) # add 3601 + raw.append(data) + raw.add(0x18, 1) # add 18 + end + # do we have events? + if (data_ev != nil && size(data_ev) > 0) + raw.add(0x3602, -2) # add 3601 + raw.append(data_ev) + raw.add(0x18, 1) # add 18 + end + # MoreChunkedMessages + if more_chunked_messages # we got more data to send + raw.add(0x2903, -2) # add 2903 + else + raw.add(0x2803, -2) # add 2803 + end + # SuppressResponse + if (self.suppress_response != nil) + if self.suppress_response + raw.add(0x2904, -2) # add 2904 + else + raw.add(0x2804, -2) # add 2804 + end + end + # InteractionModelRevision + raw.add(0x24FF, -2) # add 24FF + raw.add(0x01, 1) # add 01 + # close struct ReportDataMessage + raw.add(0x18, 1) # add 18 + # log(f">>>: {raw.tohex()}", 3) + + # ##### Previous code + # var ret = matter.ReportDataMessage() + # ret.subscription_id = self.subscription_id + # ret.suppress_response = self.suppress_response + # if (data != nil && size(data) > 0) + # ret.attribute_reports = [data] + # end + # if (data_ev != nil && size(data_ev) > 0) + # ret.event_reports = [data_ev] + # end + # ret.more_chunked_messages = (self.data != nil) || (self.data_ev != nil) # we got more data to send + # var encoded_tlv = ret.to_TLV().tlv2raw(bytes(self.MAX_MESSAGE)) # takes time + # resp.encode_frame(encoded_tlv) # payload in cleartext, pre-allocate max buffer + # log(f">>>: {encoded_tlv.tohex()}", 3) + # ##### Previous code + + resp.encode_frame(raw) # payload in cleartext, pre-allocate max buffer resp.encrypt() # log(format("MTR: int(x) # function to convert argument to the right type - static var UPDATE_TIME = 750 # update every 750ms - TODO still necessary? + # static var UPDATE_TIME = 750 # update every 750ms - TODO still necessary? static var CLUSTERS = matter.consolidate_clusters(_class, { # 0x001D: inherited # Descriptor Cluster 9.5 p.453 # 0x0039: [3,5,0x0A,0x0F,0x11,0x12], # Bridged Device Basic Information 9.13 p.485 @@ -39,7 +39,7 @@ class Matter_Plugin_Sensor_GenericSwitch : Matter_Plugin_Device static var TYPES = { 0x000F: 2 } # Generic Switch, rev 2 var tasmota_switch_index # Switch number in Tasmota (one based) - var shadow_value + var shadow_position ############################################################# # parse_configuration @@ -53,10 +53,20 @@ class Matter_Plugin_Sensor_GenericSwitch : Matter_Plugin_Device ############################################################# # Update shadow # - def update_shadow() - super(self).update_shadow() - self.shadow_value = false - # TODO + # def update_shadow() + # super(self).update_shadow() + # self.shadow_position = false + # # TODO + # end + + ############################################################# + # Model + # + def set_position(position) + if position != self.shadow_position + self.attribute_updated(0x003B, 0x0001) + self.shadow_position = position + end end ############################################################# @@ -73,12 +83,12 @@ class Matter_Plugin_Sensor_GenericSwitch : Matter_Plugin_Device if attribute == 0x0000 # ---------- NumberOfPositions / uint8 ---------- return tlv_solo.set(TLV.U1, 2) # default to 2 positions elif attribute == 0x0001 # ---------- CurrentPosition / uint8 ---------- - return tlv_solo.set(TLV.U1, 0) # TODO read value + return tlv_solo.set_or_nil(TLV.U1, self.shadow_position) elif attribute == 0x0002 # ---------- MultiPressMax / uint8 ---------- - return tlv_solo.set(TLV.U1, 2) # up to double press + return tlv_solo.set(TLV.U1, 5) # up to penta press elif attribute == 0xFFFC # ---------- FeatureMap / map32 ---------- - return tlv_solo.set(TLV.U4, 0x02 + 0x04 + 0x08) # MomentarySwitch + MomentarySwitchRelease + MomentarySwitchLongPress + return tlv_solo.set(TLV.U4, 0x02 | 0x04 | 0x08 | 0x10) # MomentarySwitch + MomentarySwitchRelease + MomentarySwitchLongPress + MomentarySwitchMultiPress end end @@ -96,5 +106,39 @@ class Matter_Plugin_Sensor_GenericSwitch : Matter_Plugin_Device return f',"Switch":{int(self.shadow_onoff)}' end + ##################################################################### + # button_handler - a button event happened + # + # Args: + # - button: (int) button number (base 1) + # - mode: (int) 0=static report every second, 1=button state changed (immediate), 2=multi-press status (delayed) + # - state: 1=button pressed, 0=button released, 2..5+=multi-press complete + def button_handler(button, mode, state, press_counter) + # if tasmota.loglevel(3) && (mode != 0) # only if actual action + # log(f"MTR: button_event {button}/{mode}:{state}", 3) + # end + # adjust value of position first, either regular secondly updates (mode==0) or change in state (mode==1) + if (mode == 0) || (mode == 1) + self.set_position(state) + end + # publish event for (mode==1), InitialPress and ShortRelease + if (mode == 1) + if state # InitialPress + self.publish_event(0x003B, 0x01, matter.EVENT_INFO, matter.TLV.Matter_TLV_item().set(matter.TLV.U1, 1)) # InitialPress, position hardcoded to 1 + else + self.publish_event(0x003B, 0x03, matter.EVENT_INFO, matter.TLV.Matter_TLV_item().set(matter.TLV.U1, 1)) # ShortRelease, previous position hardcoded to 1 + end + # check if there is an ungoing multi-press + if (state == 1) && (press_counter > 0) + # MultiPressOngoing + self.publish_event(0x003B, 0x05, matter.EVENT_INFO, matter.TLV.Matter_TLV_item().set(matter.TLV.U1, 1), + matter.TLV.Matter_TLV_item().set(matter.TLV.U1, press_counter + 1)) # MultiPressCom­ plete + end + elif (mode == 2) && (press_counter > 0) # Multipress + self.publish_event(0x003B, 0x06, matter.EVENT_INFO, matter.TLV.Matter_TLV_item().set(matter.TLV.U1, 1), + matter.TLV.Matter_TLV_item().set(matter.TLV.U1, press_counter)) # MultiPressCom­ plete + end + end + end -matter.Plugin_Sensor_GenericSwitch = Matter_Plugin_Sensor_GenericSwitch +matter.Plugin_Sensor_GenericSwitch_Btn = Matter_Plugin_Sensor_GenericSwitch_Btn diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_UI.be b/lib/libesp32/berry_matter/src/embedded/Matter_UI.be index 6f917ed6b..6917a9d7b 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_UI.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_UI.be @@ -33,6 +33,7 @@ import matter ################################################################################# class Matter_UI static var _CLASSES_TYPES = "|relay|light0|light1|light2|light3|shutter|shutter+tilt" + "|gensw_btn" "|temperature|pressure|illuminance|humidity|occupancy|onoff|contact|flow|rain|waterleak" "|airquality" "|-virtual|v_relay|v_light0|v_light1|v_light2|v_light3" diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_zz_Device.be b/lib/libesp32/berry_matter/src/embedded/Matter_zz_Device.be index da92a33ef..94dfc3fff 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_zz_Device.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_zz_Device.be @@ -285,6 +285,44 @@ class Matter_Device return ret end + ##################################################################### + # Driver handling of buttons + ##################################################################### + # Attach driver `button_pressed` + def button_pressed(cmd, idx) + var state = (idx >> 16) & 0xFF + var last_state = (idx >> 8) & 0xFF + var index = (idx & 0xFF) + var press_counter = (idx >> 24) & 0xFF + self.button_handler(index + 1, (state != last_state) ? 1 : 0, state ? 0 : 1, press_counter) # invert state, originally '0' means press, turn it into '1' + end + # Attach driver `button_multi_pressed` + def button_multi_pressed(cmd, idx) + var press_counter = (idx >> 8) & 0xFF + var index = (idx & 0xFF) + self.button_handler(index + 1, 2, 0, press_counter) + end + ##################################################################### + # Centralize to a single call + # + # Args: + # - button: (int) button number (base 1) + # - mode: (int) 0=static report every second, 1=button state changed (immediate), 2=multi-press status (delayed) + # - state: 1=button pressed, 0=button released, 2..5+=multi-press complete + def button_handler(button, mode, state, press_counter) + # log(f"MTR: button_handler({button=}, {mode=}, {state=})", 3) + # call all plugins, use a manual loop to avoid creating a new object + var idx = 0 + import introspect + while idx < size(self.plugins) + var pi = self.plugins[idx] + if introspect.contains(pi, "button_handler") + self.plugins[idx].button_handler(button, mode, state, press_counter) + end + idx += 1 + end + end + ############################################################# # dispatch every second click to sub-objects that need it def every_second() diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_EventHandler.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_EventHandler.h index 84a9fb13a..235660506 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_EventHandler.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_EventHandler.h @@ -791,42 +791,13 @@ be_local_class(Matter_EventHandler, extern const bclass be_class_Matter_EventQueued; -/******************************************************************** -** Solidified function: compact -********************************************************************/ -extern const bclass be_class_Matter_EventQueued; -be_local_closure(class_Matter_EventQueued_compact, /* name */ - be_nested_proto( - 2, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_EventQueued, - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(raw_tlv), - }), - be_str_weak(compact), - &be_const_str_solidified, - ( &(const binstruction[ 3]) { /* code */ - 0x4C040000, // 0000 LDNIL R1 - 0x90020001, // 0001 SETMBR R0 K0 R1 - 0x80000000, // 0002 RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: to_raw_bytes ********************************************************************/ extern const bclass be_class_Matter_EventQueued; be_local_closure(class_Matter_EventQueued_to_raw_bytes, /* name */ be_nested_proto( - 8, /* nstack */ + 14, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -834,107 +805,46 @@ be_local_closure(class_Matter_EventQueued_to_raw_bytes, /* name */ 0, /* has sup protos */ &be_class_Matter_EventQueued, 1, /* has constants */ - ( &(const bvalue[28]) { /* constants */ + ( &(const bvalue[12]) { /* constants */ /* K0 */ be_nested_str_weak(raw_tlv), - /* K1 */ be_nested_str_weak(matter), - /* K2 */ be_nested_str_weak(EventReportIB), - /* K3 */ be_nested_str_weak(EventDataIB), - /* K4 */ be_nested_str_weak(event_data), - /* K5 */ be_nested_str_weak(EventPathIB), - /* K6 */ be_nested_str_weak(endpoint), - /* K7 */ be_nested_str_weak(cluster), - /* K8 */ be_nested_str_weak(event), - /* K9 */ be_nested_str_weak(event_id), - /* K10 */ be_nested_str_weak(is_urgent), - /* K11 */ be_nested_str_weak(path), - /* K12 */ be_nested_str_weak(priority), - /* K13 */ be_nested_str_weak(event_number), - /* K14 */ be_nested_str_weak(event_no), - /* K15 */ be_nested_str_weak(epoch_timestamp), - /* K16 */ be_nested_str_weak(data), - /* K17 */ be_nested_str_weak(TLV), - /* K18 */ be_nested_str_weak(Matter_TLV_struct), - /* K19 */ be_nested_str_weak(data0), - /* K20 */ be_nested_str_weak(add_obj), - /* K21 */ be_const_int(0), - /* K22 */ be_nested_str_weak(data1), - /* K23 */ be_const_int(1), - /* K24 */ be_nested_str_weak(data2), - /* K25 */ be_const_int(2), - /* K26 */ be_nested_str_weak(to_TLV), - /* K27 */ be_nested_str_weak(tlv2raw), + /* K1 */ be_nested_str_weak(eventreport2raw), + /* K2 */ be_nested_str_weak(endpoint), + /* K3 */ be_nested_str_weak(cluster), + /* K4 */ be_nested_str_weak(event_id), + /* K5 */ be_nested_str_weak(is_urgent), + /* K6 */ be_nested_str_weak(priority), + /* K7 */ be_nested_str_weak(event_no), + /* K8 */ be_nested_str_weak(epoch_timestamp), + /* K9 */ be_nested_str_weak(data0), + /* K10 */ be_nested_str_weak(data1), + /* K11 */ be_nested_str_weak(data2), }), be_str_weak(to_raw_bytes), &be_const_str_solidified, - ( &(const binstruction[68]) { /* code */ + ( &(const binstruction[23]) { /* code */ 0x88040100, // 0000 GETMBR R1 R0 K0 0x4C080000, // 0001 LDNIL R2 0x1C040202, // 0002 EQ R1 R1 R2 - 0x7806003D, // 0003 JMPF R1 #0042 - 0xB8060200, // 0004 GETNGBL R1 K1 - 0x8C040302, // 0005 GETMET R1 R1 K2 + 0x78060010, // 0003 JMPF R1 #0015 + 0x60040015, // 0004 GETGBL R1 G21 + 0x540A003F, // 0005 LDINT R2 64 0x7C040200, // 0006 CALL R1 1 - 0xB80A0200, // 0007 GETNGBL R2 K1 - 0x8C080503, // 0008 GETMET R2 R2 K3 - 0x7C080200, // 0009 CALL R2 1 - 0x90060802, // 000A SETMBR R1 K4 R2 - 0xB80E0200, // 000B GETNGBL R3 K1 - 0x8C0C0705, // 000C GETMET R3 R3 K5 - 0x7C0C0200, // 000D CALL R3 1 - 0x88100106, // 000E GETMBR R4 R0 K6 - 0x900E0C04, // 000F SETMBR R3 K6 R4 - 0x88100107, // 0010 GETMBR R4 R0 K7 - 0x900E0E04, // 0011 SETMBR R3 K7 R4 - 0x88100109, // 0012 GETMBR R4 R0 K9 - 0x900E1004, // 0013 SETMBR R3 K8 R4 - 0x8810010A, // 0014 GETMBR R4 R0 K10 - 0x900E1404, // 0015 SETMBR R3 K10 R4 - 0x900A1603, // 0016 SETMBR R2 K11 R3 - 0x8810010C, // 0017 GETMBR R4 R0 K12 - 0x900A1804, // 0018 SETMBR R2 K12 R4 - 0x8810010E, // 0019 GETMBR R4 R0 K14 - 0x900A1A04, // 001A SETMBR R2 K13 R4 - 0x8810010F, // 001B GETMBR R4 R0 K15 - 0x900A1E04, // 001C SETMBR R2 K15 R4 - 0xB8120200, // 001D GETNGBL R4 K1 - 0x88100911, // 001E GETMBR R4 R4 K17 - 0x8C100912, // 001F GETMET R4 R4 K18 - 0x7C100200, // 0020 CALL R4 1 - 0x900A2004, // 0021 SETMBR R2 K16 R4 - 0x88100113, // 0022 GETMBR R4 R0 K19 - 0x4C140000, // 0023 LDNIL R5 - 0x20100805, // 0024 NE R4 R4 R5 - 0x78120004, // 0025 JMPF R4 #002B - 0x88100510, // 0026 GETMBR R4 R2 K16 - 0x8C100914, // 0027 GETMET R4 R4 K20 - 0x58180015, // 0028 LDCONST R6 K21 - 0x881C0113, // 0029 GETMBR R7 R0 K19 - 0x7C100600, // 002A CALL R4 3 - 0x88100116, // 002B GETMBR R4 R0 K22 - 0x4C140000, // 002C LDNIL R5 - 0x20100805, // 002D NE R4 R4 R5 - 0x78120004, // 002E JMPF R4 #0034 - 0x88100510, // 002F GETMBR R4 R2 K16 - 0x8C100914, // 0030 GETMET R4 R4 K20 - 0x58180017, // 0031 LDCONST R6 K23 - 0x881C0116, // 0032 GETMBR R7 R0 K22 - 0x7C100600, // 0033 CALL R4 3 - 0x88100118, // 0034 GETMBR R4 R0 K24 - 0x4C140000, // 0035 LDNIL R5 - 0x20100805, // 0036 NE R4 R4 R5 - 0x78120004, // 0037 JMPF R4 #003D - 0x88100510, // 0038 GETMBR R4 R2 K16 - 0x8C100914, // 0039 GETMET R4 R4 K20 - 0x58180019, // 003A LDCONST R6 K25 - 0x881C0118, // 003B GETMBR R7 R0 K24 - 0x7C100600, // 003C CALL R4 3 - 0x8C10031A, // 003D GETMET R4 R1 K26 - 0x7C100200, // 003E CALL R4 1 - 0x8C10091B, // 003F GETMET R4 R4 K27 - 0x7C100200, // 0040 CALL R4 1 - 0x90020004, // 0041 SETMBR R0 K0 R4 - 0x88040100, // 0042 GETMBR R1 R0 K0 - 0x80040200, // 0043 RET 1 R1 + 0x90020001, // 0007 SETMBR R0 K0 R1 + 0x8C040101, // 0008 GETMET R1 R0 K1 + 0x880C0100, // 0009 GETMBR R3 R0 K0 + 0x88100102, // 000A GETMBR R4 R0 K2 + 0x88140103, // 000B GETMBR R5 R0 K3 + 0x88180104, // 000C GETMBR R6 R0 K4 + 0x881C0105, // 000D GETMBR R7 R0 K5 + 0x88200106, // 000E GETMBR R8 R0 K6 + 0x88240107, // 000F GETMBR R9 R0 K7 + 0x88280108, // 0010 GETMBR R10 R0 K8 + 0x882C0109, // 0011 GETMBR R11 R0 K9 + 0x8830010A, // 0012 GETMBR R12 R0 K10 + 0x8834010B, // 0013 GETMBR R13 R0 K11 + 0x7C041800, // 0014 CALL R1 12 + 0x88040100, // 0015 GETMBR R1 R0 K0 + 0x80040200, // 0016 RET 1 R1 }) ) ); @@ -1019,28 +929,295 @@ be_local_closure(class_Matter_EventQueued_init, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: compact +********************************************************************/ +extern const bclass be_class_Matter_EventQueued; +be_local_closure(class_Matter_EventQueued_compact, /* name */ + be_nested_proto( + 2, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_EventQueued, + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(raw_tlv), + }), + be_str_weak(compact), + &be_const_str_solidified, + ( &(const binstruction[ 3]) { /* code */ + 0x4C040000, // 0000 LDNIL R1 + 0x90020001, // 0001 SETMBR R0 K0 R1 + 0x80000000, // 0002 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: eventpath2raw +********************************************************************/ +extern const bclass be_class_Matter_EventQueued; +be_local_closure(class_Matter_EventQueued_eventpath2raw, /* name */ + be_nested_proto( + 10, /* nstack */ + 6, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_EventQueued, + 1, /* has constants */ + ( &(const bvalue[ 3]) { /* constants */ + /* K0 */ be_nested_str_weak(add), + /* K1 */ be_const_int(1), + /* K2 */ be_const_int(2), + }), + be_str_weak(eventpath2raw), + &be_const_str_solidified, + ( &(const binstruction[91]) { /* code */ + 0x8C180300, // 0000 GETMET R6 R1 K0 + 0x542236FF, // 0001 LDINT R8 14080 + 0x5425FFFD, // 0002 LDINT R9 -2 + 0x7C180600, // 0003 CALL R6 3 + 0x541A00FE, // 0004 LDINT R6 255 + 0x18180406, // 0005 LE R6 R2 R6 + 0x781A0008, // 0006 JMPF R6 #0010 + 0x8C180300, // 0007 GETMET R6 R1 K0 + 0x54222400, // 0008 LDINT R8 9217 + 0x5425FFFD, // 0009 LDINT R9 -2 + 0x7C180600, // 000A CALL R6 3 + 0x8C180300, // 000B GETMET R6 R1 K0 + 0x5C200400, // 000C MOVE R8 R2 + 0x58240001, // 000D LDCONST R9 K1 + 0x7C180600, // 000E CALL R6 3 + 0x70020007, // 000F JMP #0018 + 0x8C180300, // 0010 GETMET R6 R1 K0 + 0x54222500, // 0011 LDINT R8 9473 + 0x5425FFFD, // 0012 LDINT R9 -2 + 0x7C180600, // 0013 CALL R6 3 + 0x8C180300, // 0014 GETMET R6 R1 K0 + 0x5C200400, // 0015 MOVE R8 R2 + 0x58240002, // 0016 LDCONST R9 K2 + 0x7C180600, // 0017 CALL R6 3 + 0x541A00FE, // 0018 LDINT R6 255 + 0x18180606, // 0019 LE R6 R3 R6 + 0x781A0008, // 001A JMPF R6 #0024 + 0x8C180300, // 001B GETMET R6 R1 K0 + 0x54222401, // 001C LDINT R8 9218 + 0x5425FFFD, // 001D LDINT R9 -2 + 0x7C180600, // 001E CALL R6 3 + 0x8C180300, // 001F GETMET R6 R1 K0 + 0x5C200600, // 0020 MOVE R8 R3 + 0x58240001, // 0021 LDCONST R9 K1 + 0x7C180600, // 0022 CALL R6 3 + 0x70020013, // 0023 JMP #0038 + 0x541AFFFE, // 0024 LDINT R6 65535 + 0x18180606, // 0025 LE R6 R3 R6 + 0x781A0008, // 0026 JMPF R6 #0030 + 0x8C180300, // 0027 GETMET R6 R1 K0 + 0x54222501, // 0028 LDINT R8 9474 + 0x5425FFFD, // 0029 LDINT R9 -2 + 0x7C180600, // 002A CALL R6 3 + 0x8C180300, // 002B GETMET R6 R1 K0 + 0x5C200600, // 002C MOVE R8 R3 + 0x58240002, // 002D LDCONST R9 K2 + 0x7C180600, // 002E CALL R6 3 + 0x70020007, // 002F JMP #0038 + 0x8C180300, // 0030 GETMET R6 R1 K0 + 0x54222601, // 0031 LDINT R8 9730 + 0x5425FFFD, // 0032 LDINT R9 -2 + 0x7C180600, // 0033 CALL R6 3 + 0x8C180300, // 0034 GETMET R6 R1 K0 + 0x5C200600, // 0035 MOVE R8 R3 + 0x54260003, // 0036 LDINT R9 4 + 0x7C180600, // 0037 CALL R6 3 + 0x541A00FE, // 0038 LDINT R6 255 + 0x18180806, // 0039 LE R6 R4 R6 + 0x781A0008, // 003A JMPF R6 #0044 + 0x8C180300, // 003B GETMET R6 R1 K0 + 0x54222402, // 003C LDINT R8 9219 + 0x5425FFFD, // 003D LDINT R9 -2 + 0x7C180600, // 003E CALL R6 3 + 0x8C180300, // 003F GETMET R6 R1 K0 + 0x5C200800, // 0040 MOVE R8 R4 + 0x58240001, // 0041 LDCONST R9 K1 + 0x7C180600, // 0042 CALL R6 3 + 0x70020007, // 0043 JMP #004C + 0x8C180300, // 0044 GETMET R6 R1 K0 + 0x54222502, // 0045 LDINT R8 9475 + 0x5425FFFD, // 0046 LDINT R9 -2 + 0x7C180600, // 0047 CALL R6 3 + 0x8C180300, // 0048 GETMET R6 R1 K0 + 0x5C200800, // 0049 MOVE R8 R4 + 0x58240002, // 004A LDCONST R9 K2 + 0x7C180600, // 004B CALL R6 3 + 0x78160004, // 004C JMPF R5 #0052 + 0x8C180300, // 004D GETMET R6 R1 K0 + 0x54222903, // 004E LDINT R8 10500 + 0x5425FFFD, // 004F LDINT R9 -2 + 0x7C180600, // 0050 CALL R6 3 + 0x70020003, // 0051 JMP #0056 + 0x8C180300, // 0052 GETMET R6 R1 K0 + 0x54222803, // 0053 LDINT R8 10244 + 0x5425FFFD, // 0054 LDINT R9 -2 + 0x7C180600, // 0055 CALL R6 3 + 0x8C180300, // 0056 GETMET R6 R1 K0 + 0x54220017, // 0057 LDINT R8 24 + 0x58240001, // 0058 LDCONST R9 K1 + 0x7C180600, // 0059 CALL R6 3 + 0x80000000, // 005A RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: eventreport2raw +********************************************************************/ +extern const bclass be_class_Matter_EventQueued; +be_local_closure(class_Matter_EventQueued_eventreport2raw, /* name */ + be_nested_proto( + 19, /* nstack */ + 12, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_EventQueued, + 1, /* has constants */ + ( &(const bvalue[ 9]) { /* constants */ + /* K0 */ be_nested_str_weak(add), + /* K1 */ be_const_int(1), + /* K2 */ be_nested_str_weak(eventpath2raw), + /* K3 */ be_nested_str_weak(low32), + /* K4 */ be_nested_str_weak(high32), + /* K5 */ be_nested_str_weak(tag_sub), + /* K6 */ be_const_int(0), + /* K7 */ be_nested_str_weak(tlv2raw), + /* K8 */ be_const_int(2), + }), + be_str_weak(eventreport2raw), + &be_const_str_solidified, + ( &(const binstruction[83]) { /* code */ + 0x8C300300, // 0000 GETMET R12 R1 K0 + 0x543A0014, // 0001 LDINT R14 21 + 0x583C0001, // 0002 LDCONST R15 K1 + 0x7C300600, // 0003 CALL R12 3 + 0x8C300300, // 0004 GETMET R12 R1 K0 + 0x543A3500, // 0005 LDINT R14 13569 + 0x543DFFFD, // 0006 LDINT R15 -2 + 0x7C300600, // 0007 CALL R12 3 + 0x8C300102, // 0008 GETMET R12 R0 K2 + 0x5C380200, // 0009 MOVE R14 R1 + 0x5C3C0400, // 000A MOVE R15 R2 + 0x5C400600, // 000B MOVE R16 R3 + 0x5C440800, // 000C MOVE R17 R4 + 0x5C480A00, // 000D MOVE R18 R5 + 0x7C300C00, // 000E CALL R12 6 + 0x8C300300, // 000F GETMET R12 R1 K0 + 0x543A2700, // 0010 LDINT R14 9985 + 0x543DFFFD, // 0011 LDINT R15 -2 + 0x7C300600, // 0012 CALL R12 3 + 0x8C300300, // 0013 GETMET R12 R1 K0 + 0x8C380F03, // 0014 GETMET R14 R7 K3 + 0x7C380200, // 0015 CALL R14 1 + 0x543E0003, // 0016 LDINT R15 4 + 0x7C300600, // 0017 CALL R12 3 + 0x8C300300, // 0018 GETMET R12 R1 K0 + 0x8C380F04, // 0019 GETMET R14 R7 K4 + 0x7C380200, // 001A CALL R14 1 + 0x543E0003, // 001B LDINT R15 4 + 0x7C300600, // 001C CALL R12 3 + 0x8C300300, // 001D GETMET R12 R1 K0 + 0x543A2401, // 001E LDINT R14 9218 + 0x543DFFFD, // 001F LDINT R15 -2 + 0x7C300600, // 0020 CALL R12 3 + 0x8C300300, // 0021 GETMET R12 R1 K0 + 0x5C380C00, // 0022 MOVE R14 R6 + 0x583C0001, // 0023 LDCONST R15 K1 + 0x7C300600, // 0024 CALL R12 3 + 0x8C300300, // 0025 GETMET R12 R1 K0 + 0x543A2602, // 0026 LDINT R14 9731 + 0x543DFFFD, // 0027 LDINT R15 -2 + 0x7C300600, // 0028 CALL R12 3 + 0x8C300300, // 0029 GETMET R12 R1 K0 + 0x5C381000, // 002A MOVE R14 R8 + 0x543E0003, // 002B LDINT R15 4 + 0x7C300600, // 002C CALL R12 3 + 0x8C300300, // 002D GETMET R12 R1 K0 + 0x543A3506, // 002E LDINT R14 13575 + 0x543DFFFD, // 002F LDINT R15 -2 + 0x7C300600, // 0030 CALL R12 3 + 0x4C300000, // 0031 LDNIL R12 + 0x2030120C, // 0032 NE R12 R9 R12 + 0x78320003, // 0033 JMPF R12 #0038 + 0x90260B06, // 0034 SETMBR R9 K5 K6 + 0x8C301307, // 0035 GETMET R12 R9 K7 + 0x5C380200, // 0036 MOVE R14 R1 + 0x7C300400, // 0037 CALL R12 2 + 0x4C300000, // 0038 LDNIL R12 + 0x2030140C, // 0039 NE R12 R10 R12 + 0x78320003, // 003A JMPF R12 #003F + 0x902A0B01, // 003B SETMBR R10 K5 K1 + 0x8C301507, // 003C GETMET R12 R10 K7 + 0x5C380200, // 003D MOVE R14 R1 + 0x7C300400, // 003E CALL R12 2 + 0x4C300000, // 003F LDNIL R12 + 0x2030160C, // 0040 NE R12 R11 R12 + 0x78320003, // 0041 JMPF R12 #0046 + 0x902E0B08, // 0042 SETMBR R11 K5 K8 + 0x8C301707, // 0043 GETMET R12 R11 K7 + 0x5C380200, // 0044 MOVE R14 R1 + 0x7C300400, // 0045 CALL R12 2 + 0x8C300300, // 0046 GETMET R12 R1 K0 + 0x543A0017, // 0047 LDINT R14 24 + 0x583C0001, // 0048 LDCONST R15 K1 + 0x7C300600, // 0049 CALL R12 3 + 0x8C300300, // 004A GETMET R12 R1 K0 + 0x543A0017, // 004B LDINT R14 24 + 0x583C0001, // 004C LDCONST R15 K1 + 0x7C300600, // 004D CALL R12 3 + 0x8C300300, // 004E GETMET R12 R1 K0 + 0x543A0017, // 004F LDINT R14 24 + 0x583C0001, // 0050 LDCONST R15 K1 + 0x7C300600, // 0051 CALL R12 3 + 0x80000000, // 0052 RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified class: Matter_EventQueued ********************************************************************/ be_local_class(Matter_EventQueued, 11, NULL, - be_nested_map(14, + be_nested_map(16, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(endpoint, -1), be_const_var(0) }, - { be_const_key_weak(epoch_timestamp, -1), be_const_var(9) }, - { be_const_key_weak(compact, -1), be_const_closure(class_Matter_EventQueued_compact_closure) }, - { be_const_key_weak(init, 10), be_const_closure(class_Matter_EventQueued_init_closure) }, - { be_const_key_weak(data2, 11), be_const_var(7) }, - { be_const_key_weak(event_no, 3), be_const_var(8) }, - { be_const_key_weak(raw_tlv, -1), be_const_var(10) }, - { be_const_key_weak(is_urgent, 12), be_const_var(3) }, - { be_const_key_weak(data1, -1), be_const_var(6) }, - { be_const_key_weak(priority, 4), be_const_var(4) }, - { be_const_key_weak(event_id, -1), be_const_var(2) }, - { be_const_key_weak(to_raw_bytes, 1), be_const_closure(class_Matter_EventQueued_to_raw_bytes_closure) }, - { be_const_key_weak(cluster, -1), be_const_var(1) }, { be_const_key_weak(data0, -1), be_const_var(5) }, + { be_const_key_weak(eventreport2raw, -1), be_const_closure(class_Matter_EventQueued_eventreport2raw_closure) }, + { be_const_key_weak(event_id, 11), be_const_var(2) }, + { be_const_key_weak(init, -1), be_const_closure(class_Matter_EventQueued_init_closure) }, + { be_const_key_weak(data1, 14), be_const_var(6) }, + { be_const_key_weak(data2, 1), be_const_var(7) }, + { be_const_key_weak(compact, -1), be_const_closure(class_Matter_EventQueued_compact_closure) }, + { be_const_key_weak(is_urgent, -1), be_const_var(3) }, + { be_const_key_weak(eventpath2raw, -1), be_const_closure(class_Matter_EventQueued_eventpath2raw_closure) }, + { be_const_key_weak(epoch_timestamp, 10), be_const_var(9) }, + { be_const_key_weak(priority, -1), be_const_var(4) }, + { be_const_key_weak(cluster, -1), be_const_var(1) }, + { be_const_key_weak(raw_tlv, 4), be_const_var(10) }, + { be_const_key_weak(to_raw_bytes, 2), be_const_closure(class_Matter_EventQueued_to_raw_bytes_closure) }, + { be_const_key_weak(endpoint, -1), be_const_var(0) }, + { be_const_key_weak(event_no, 0), be_const_var(8) }, })), be_str_weak(Matter_EventQueued) ); 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 17b3fe498..38d74e2f5 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 @@ -567,7 +567,7 @@ be_local_closure(class_Matter_IM_ReportData_Pull_send_im, /* name */ 0, /* has sup protos */ &be_class_Matter_IM_ReportData_Pull, 1, /* has constants */ - ( &(const bvalue[51]) { /* constants */ + ( &(const bvalue[47]) { /* constants */ /* K0 */ be_nested_str_weak(resp), /* K1 */ be_nested_str_weak(data), /* K2 */ be_nested_str_weak(device), @@ -603,26 +603,22 @@ be_local_closure(class_Matter_IM_ReportData_Pull_send_im, /* name */ /* K32 */ be_nested_str_weak(cluster), /* K33 */ be_nested_str_weak(event_id), /* K34 */ be_nested_str_weak(to_raw_bytes), - /* K35 */ be_nested_str_weak(matter), - /* K36 */ be_nested_str_weak(ReportDataMessage), + /* K35 */ be_nested_str_weak(add), + /* K36 */ be_const_int(1), /* K37 */ be_nested_str_weak(subscription_id), - /* K38 */ be_nested_str_weak(suppress_response), - /* K39 */ be_nested_str_weak(attribute_reports), - /* K40 */ be_nested_str_weak(event_reports), - /* K41 */ be_nested_str_weak(more_chunked_messages), - /* K42 */ be_nested_str_weak(to_TLV), - /* K43 */ be_nested_str_weak(tlv2raw), - /* K44 */ be_nested_str_weak(encode_frame), - /* K45 */ be_nested_str_weak(encrypt), - /* K46 */ be_nested_str_weak(send_response_frame), - /* K47 */ be_nested_str_weak(last_counter), - /* K48 */ be_nested_str_weak(message_counter), - /* K49 */ be_nested_str_weak(ready), - /* K50 */ be_nested_str_weak(finishing), + /* K38 */ be_const_int(2), + /* K39 */ be_nested_str_weak(suppress_response), + /* K40 */ be_nested_str_weak(encode_frame), + /* K41 */ be_nested_str_weak(encrypt), + /* K42 */ be_nested_str_weak(send_response_frame), + /* K43 */ be_nested_str_weak(last_counter), + /* K44 */ be_nested_str_weak(message_counter), + /* K45 */ be_nested_str_weak(ready), + /* K46 */ be_nested_str_weak(finishing), }), be_str_weak(send_im), &be_const_str_solidified, - ( &(const binstruction[307]) { /* code */ + ( &(const binstruction[361]) { /* code */ 0x88080100, // 0000 GETMBR R2 R0 K0 0x880C0101, // 0001 GETMBR R3 R0 K1 0x4C100000, // 0002 LDNIL R4 @@ -863,73 +859,127 @@ be_local_closure(class_Matter_IM_ReportData_Pull_send_im, /* name */ 0x4C240000, // 00ED LDNIL R9 0x90020A09, // 00EE SETMBR R0 K5 R9 0x7001FF90, // 00EF JMP #0081 - 0xB81E4600, // 00F0 GETNGBL R7 K35 - 0x8C1C0F24, // 00F1 GETMET R7 R7 K36 - 0x7C1C0200, // 00F2 CALL R7 1 - 0x88200125, // 00F3 GETMBR R8 R0 K37 - 0x901E4A08, // 00F4 SETMBR R7 K37 R8 - 0x88200126, // 00F5 GETMBR R8 R0 K38 - 0x901E4C08, // 00F6 SETMBR R7 K38 R8 - 0x4C200000, // 00F7 LDNIL R8 - 0x20200608, // 00F8 NE R8 R3 R8 - 0x78220008, // 00F9 JMPF R8 #0103 - 0x6020000C, // 00FA GETGBL R8 G12 - 0x5C240600, // 00FB MOVE R9 R3 + 0x881C0101, // 00F0 GETMBR R7 R0 K1 + 0x4C200000, // 00F1 LDNIL R8 + 0x201C0E08, // 00F2 NE R7 R7 R8 + 0x741E0004, // 00F3 JMPT R7 #00F9 + 0x881C0104, // 00F4 GETMBR R7 R0 K4 + 0x4C200000, // 00F5 LDNIL R8 + 0x201C0E08, // 00F6 NE R7 R7 R8 + 0x741E0000, // 00F7 JMPT R7 #00F9 + 0x501C0001, // 00F8 LDBOOL R7 0 1 + 0x501C0200, // 00F9 LDBOOL R7 1 0 + 0x60200015, // 00FA GETGBL R8 G21 + 0x8824010E, // 00FB GETMBR R9 R0 K14 0x7C200200, // 00FC CALL R8 1 - 0x24201107, // 00FD GT R8 R8 K7 - 0x78220003, // 00FE JMPF R8 #0103 - 0x60200012, // 00FF GETGBL R8 G18 - 0x7C200000, // 0100 CALL R8 0 - 0x40241003, // 0101 CONNECT R9 R8 R3 - 0x901E4E08, // 0102 SETMBR R7 K39 R8 - 0x4C200000, // 0103 LDNIL R8 - 0x20200C08, // 0104 NE R8 R6 R8 - 0x78220008, // 0105 JMPF R8 #010F - 0x6020000C, // 0106 GETGBL R8 G12 - 0x5C240C00, // 0107 MOVE R9 R6 - 0x7C200200, // 0108 CALL R8 1 - 0x24201107, // 0109 GT R8 R8 K7 - 0x78220003, // 010A JMPF R8 #010F - 0x60200012, // 010B GETGBL R8 G18 - 0x7C200000, // 010C CALL R8 0 - 0x40241006, // 010D CONNECT R9 R8 R6 - 0x901E5008, // 010E SETMBR R7 K40 R8 - 0x88200101, // 010F GETMBR R8 R0 K1 - 0x4C240000, // 0110 LDNIL R9 - 0x20201009, // 0111 NE R8 R8 R9 - 0x74220004, // 0112 JMPT R8 #0118 - 0x88200104, // 0113 GETMBR R8 R0 K4 - 0x4C240000, // 0114 LDNIL R9 - 0x20201009, // 0115 NE R8 R8 R9 - 0x74220000, // 0116 JMPT R8 #0118 - 0x50200001, // 0117 LDBOOL R8 0 1 - 0x50200200, // 0118 LDBOOL R8 1 0 - 0x901E5208, // 0119 SETMBR R7 K41 R8 - 0x8C200F2A, // 011A GETMET R8 R7 K42 - 0x7C200200, // 011B CALL R8 1 - 0x8C20112B, // 011C GETMET R8 R8 K43 - 0x60280015, // 011D GETGBL R10 G21 - 0x882C010E, // 011E GETMBR R11 R0 K14 - 0x7C280200, // 011F CALL R10 1 - 0x7C200400, // 0120 CALL R8 2 - 0x8C24052C, // 0121 GETMET R9 R2 K44 - 0x5C2C1000, // 0122 MOVE R11 R8 - 0x7C240400, // 0123 CALL R9 2 - 0x8C24052D, // 0124 GETMET R9 R2 K45 + 0x8C241123, // 00FD GETMET R9 R8 K35 + 0x542E0014, // 00FE LDINT R11 21 + 0x58300024, // 00FF LDCONST R12 K36 + 0x7C240600, // 0100 CALL R9 3 + 0x88240125, // 0101 GETMBR R9 R0 K37 + 0x4C280000, // 0102 LDNIL R10 + 0x2024120A, // 0103 NE R9 R9 R10 + 0x78260007, // 0104 JMPF R9 #010D + 0x8C241123, // 0105 GETMET R9 R8 K35 + 0x542E24FF, // 0106 LDINT R11 9472 + 0x5431FFFD, // 0107 LDINT R12 -2 + 0x7C240600, // 0108 CALL R9 3 + 0x8C241123, // 0109 GETMET R9 R8 K35 + 0x882C0125, // 010A GETMBR R11 R0 K37 + 0x58300026, // 010B LDCONST R12 K38 + 0x7C240600, // 010C CALL R9 3 + 0x4C240000, // 010D LDNIL R9 + 0x20240609, // 010E NE R9 R3 R9 + 0x7826000F, // 010F JMPF R9 #0120 + 0x6024000C, // 0110 GETGBL R9 G12 + 0x5C280600, // 0111 MOVE R10 R3 + 0x7C240200, // 0112 CALL R9 1 + 0x24241307, // 0113 GT R9 R9 K7 + 0x7826000A, // 0114 JMPF R9 #0120 + 0x8C241123, // 0115 GETMET R9 R8 K35 + 0x542E3600, // 0116 LDINT R11 13825 + 0x5431FFFD, // 0117 LDINT R12 -2 + 0x7C240600, // 0118 CALL R9 3 + 0x8C24110F, // 0119 GETMET R9 R8 K15 + 0x5C2C0600, // 011A MOVE R11 R3 + 0x7C240400, // 011B CALL R9 2 + 0x8C241123, // 011C GETMET R9 R8 K35 + 0x542E0017, // 011D LDINT R11 24 + 0x58300024, // 011E LDCONST R12 K36 + 0x7C240600, // 011F CALL R9 3 + 0x4C240000, // 0120 LDNIL R9 + 0x20240C09, // 0121 NE R9 R6 R9 + 0x7826000F, // 0122 JMPF R9 #0133 + 0x6024000C, // 0123 GETGBL R9 G12 + 0x5C280C00, // 0124 MOVE R10 R6 0x7C240200, // 0125 CALL R9 1 - 0x8C24032E, // 0126 GETMET R9 R1 K46 - 0x5C2C0400, // 0127 MOVE R11 R2 - 0x7C240400, // 0128 CALL R9 2 - 0x88240530, // 0129 GETMBR R9 R2 K48 - 0x90025E09, // 012A SETMBR R0 K47 R9 - 0x88240F29, // 012B GETMBR R9 R7 K41 - 0x78260002, // 012C JMPF R9 #0130 - 0x50240000, // 012D LDBOOL R9 0 0 - 0x90026209, // 012E SETMBR R0 K49 R9 - 0x70020001, // 012F JMP #0132 - 0x50240200, // 0130 LDBOOL R9 1 0 - 0x90026409, // 0131 SETMBR R0 K50 R9 - 0x80000000, // 0132 RET 0 + 0x24241307, // 0126 GT R9 R9 K7 + 0x7826000A, // 0127 JMPF R9 #0133 + 0x8C241123, // 0128 GETMET R9 R8 K35 + 0x542E3601, // 0129 LDINT R11 13826 + 0x5431FFFD, // 012A LDINT R12 -2 + 0x7C240600, // 012B CALL R9 3 + 0x8C24110F, // 012C GETMET R9 R8 K15 + 0x5C2C0C00, // 012D MOVE R11 R6 + 0x7C240400, // 012E CALL R9 2 + 0x8C241123, // 012F GETMET R9 R8 K35 + 0x542E0017, // 0130 LDINT R11 24 + 0x58300024, // 0131 LDCONST R12 K36 + 0x7C240600, // 0132 CALL R9 3 + 0x781E0004, // 0133 JMPF R7 #0139 + 0x8C241123, // 0134 GETMET R9 R8 K35 + 0x542E2902, // 0135 LDINT R11 10499 + 0x5431FFFD, // 0136 LDINT R12 -2 + 0x7C240600, // 0137 CALL R9 3 + 0x70020003, // 0138 JMP #013D + 0x8C241123, // 0139 GETMET R9 R8 K35 + 0x542E2802, // 013A LDINT R11 10243 + 0x5431FFFD, // 013B LDINT R12 -2 + 0x7C240600, // 013C CALL R9 3 + 0x88240127, // 013D GETMBR R9 R0 K39 + 0x4C280000, // 013E LDNIL R10 + 0x2024120A, // 013F NE R9 R9 R10 + 0x7826000A, // 0140 JMPF R9 #014C + 0x88240127, // 0141 GETMBR R9 R0 K39 + 0x78260004, // 0142 JMPF R9 #0148 + 0x8C241123, // 0143 GETMET R9 R8 K35 + 0x542E2903, // 0144 LDINT R11 10500 + 0x5431FFFD, // 0145 LDINT R12 -2 + 0x7C240600, // 0146 CALL R9 3 + 0x70020003, // 0147 JMP #014C + 0x8C241123, // 0148 GETMET R9 R8 K35 + 0x542E2803, // 0149 LDINT R11 10244 + 0x5431FFFD, // 014A LDINT R12 -2 + 0x7C240600, // 014B CALL R9 3 + 0x8C241123, // 014C GETMET R9 R8 K35 + 0x542E24FE, // 014D LDINT R11 9471 + 0x5431FFFD, // 014E LDINT R12 -2 + 0x7C240600, // 014F CALL R9 3 + 0x8C241123, // 0150 GETMET R9 R8 K35 + 0x582C0024, // 0151 LDCONST R11 K36 + 0x58300024, // 0152 LDCONST R12 K36 + 0x7C240600, // 0153 CALL R9 3 + 0x8C241123, // 0154 GETMET R9 R8 K35 + 0x542E0017, // 0155 LDINT R11 24 + 0x58300024, // 0156 LDCONST R12 K36 + 0x7C240600, // 0157 CALL R9 3 + 0x8C240528, // 0158 GETMET R9 R2 K40 + 0x5C2C1000, // 0159 MOVE R11 R8 + 0x7C240400, // 015A CALL R9 2 + 0x8C240529, // 015B GETMET R9 R2 K41 + 0x7C240200, // 015C CALL R9 1 + 0x8C24032A, // 015D GETMET R9 R1 K42 + 0x5C2C0400, // 015E MOVE R11 R2 + 0x7C240400, // 015F CALL R9 2 + 0x8824052C, // 0160 GETMBR R9 R2 K44 + 0x90025609, // 0161 SETMBR R0 K43 R9 + 0x781E0002, // 0162 JMPF R7 #0166 + 0x50240000, // 0163 LDBOOL R9 0 0 + 0x90025A09, // 0164 SETMBR R0 K45 R9 + 0x70020001, // 0165 JMP #0168 + 0x50240200, // 0166 LDBOOL R9 1 0 + 0x90025C09, // 0167 SETMBR R0 K46 R9 + 0x80000000, // 0168 RET 0 }) ) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_2_Sensor_GenericSwitch.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_2_Sensor_GenericSwitch.h deleted file mode 100644 index 6f6e9d11c..000000000 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_2_Sensor_GenericSwitch.h +++ /dev/null @@ -1,350 +0,0 @@ -/* Solidification of Matter_Plugin_2_Sensor_GenericSwitch.h */ -/********************************************************************\ -* Generated code, don't edit * -\********************************************************************/ -#include "be_constobj.h" - -extern const bclass be_class_Matter_Plugin_Sensor_GenericSwitch; - -/******************************************************************** -** Solidified function: -********************************************************************/ -be_local_closure(class_Matter_Plugin_Sensor_GenericSwitch__X3Clambda_X3E, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x60040009, // 0000 GETGBL R1 G9 - 0x5C080000, // 0001 MOVE R2 R0 - 0x7C040200, // 0002 CALL R1 1 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: parse_configuration -********************************************************************/ -extern const bclass be_class_Matter_Plugin_Sensor_GenericSwitch; -be_local_closure(class_Matter_Plugin_Sensor_GenericSwitch_parse_configuration, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Plugin_Sensor_GenericSwitch, - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota_switch_index), - /* K1 */ be_nested_str_weak(find), - /* K2 */ be_nested_str_weak(ARG), - /* K3 */ be_const_int(1), - /* K4 */ be_const_int(0), - }), - be_str_weak(parse_configuration), - &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0x60080009, // 0000 GETGBL R2 G9 - 0x8C0C0301, // 0001 GETMET R3 R1 K1 - 0x88140102, // 0002 GETMBR R5 R0 K2 - 0x58180003, // 0003 LDCONST R6 K3 - 0x7C0C0600, // 0004 CALL R3 3 - 0x7C080200, // 0005 CALL R2 1 - 0x90020002, // 0006 SETMBR R0 K0 R2 - 0x88080100, // 0007 GETMBR R2 R0 K0 - 0x18080504, // 0008 LE R2 R2 K4 - 0x780A0000, // 0009 JMPF R2 #000B - 0x90020103, // 000A SETMBR R0 K0 K3 - 0x80000000, // 000B RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: update_shadow -********************************************************************/ -extern const bclass be_class_Matter_Plugin_Sensor_GenericSwitch; -be_local_closure(class_Matter_Plugin_Sensor_GenericSwitch_update_shadow, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Plugin_Sensor_GenericSwitch, - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(update_shadow), - /* K1 */ be_nested_str_weak(shadow_value), - }), - be_str_weak(update_shadow), - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x60040003, // 0000 GETGBL R1 G3 - 0x5C080000, // 0001 MOVE R2 R0 - 0x7C040200, // 0002 CALL R1 1 - 0x8C040300, // 0003 GETMET R1 R1 K0 - 0x7C040200, // 0004 CALL R1 1 - 0x50040000, // 0005 LDBOOL R1 0 0 - 0x90020201, // 0006 SETMBR R0 K1 R1 - 0x80000000, // 0007 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: read_attribute -********************************************************************/ -extern const bclass be_class_Matter_Plugin_Sensor_GenericSwitch; -be_local_closure(class_Matter_Plugin_Sensor_GenericSwitch_read_attribute, /* name */ - be_nested_proto( - 12, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Plugin_Sensor_GenericSwitch, - 1, /* has constants */ - ( &(const bvalue[11]) { /* constants */ - /* K0 */ be_nested_str_weak(matter), - /* K1 */ be_nested_str_weak(TLV), - /* K2 */ be_nested_str_weak(cluster), - /* K3 */ be_nested_str_weak(attribute), - /* K4 */ be_const_int(0), - /* K5 */ be_nested_str_weak(set), - /* K6 */ be_nested_str_weak(U1), - /* K7 */ be_const_int(2), - /* K8 */ be_const_int(1), - /* K9 */ be_nested_str_weak(U4), - /* K10 */ be_nested_str_weak(read_attribute), - }), - be_str_weak(read_attribute), - &be_const_str_solidified, - ( &(const binstruction[51]) { /* code */ - 0xB8120000, // 0000 GETNGBL R4 K0 - 0x88100901, // 0001 GETMBR R4 R4 K1 - 0x88140502, // 0002 GETMBR R5 R2 K2 - 0x88180503, // 0003 GETMBR R6 R2 K3 - 0x541E003A, // 0004 LDINT R7 59 - 0x1C1C0A07, // 0005 EQ R7 R5 R7 - 0x781E0022, // 0006 JMPF R7 #002A - 0x1C1C0D04, // 0007 EQ R7 R6 K4 - 0x781E0005, // 0008 JMPF R7 #000F - 0x8C1C0705, // 0009 GETMET R7 R3 K5 - 0x88240906, // 000A GETMBR R9 R4 K6 - 0x58280007, // 000B LDCONST R10 K7 - 0x7C1C0600, // 000C CALL R7 3 - 0x80040E00, // 000D RET 1 R7 - 0x7002001A, // 000E JMP #002A - 0x1C1C0D08, // 000F EQ R7 R6 K8 - 0x781E0005, // 0010 JMPF R7 #0017 - 0x8C1C0705, // 0011 GETMET R7 R3 K5 - 0x88240906, // 0012 GETMBR R9 R4 K6 - 0x58280004, // 0013 LDCONST R10 K4 - 0x7C1C0600, // 0014 CALL R7 3 - 0x80040E00, // 0015 RET 1 R7 - 0x70020012, // 0016 JMP #002A - 0x1C1C0D07, // 0017 EQ R7 R6 K7 - 0x781E0005, // 0018 JMPF R7 #001F - 0x8C1C0705, // 0019 GETMET R7 R3 K5 - 0x88240906, // 001A GETMBR R9 R4 K6 - 0x58280007, // 001B LDCONST R10 K7 - 0x7C1C0600, // 001C CALL R7 3 - 0x80040E00, // 001D RET 1 R7 - 0x7002000A, // 001E JMP #002A - 0x541EFFFB, // 001F LDINT R7 65532 - 0x1C1C0C07, // 0020 EQ R7 R6 R7 - 0x781E0007, // 0021 JMPF R7 #002A - 0x8C1C0705, // 0022 GETMET R7 R3 K5 - 0x88240909, // 0023 GETMBR R9 R4 K9 - 0x542A0003, // 0024 LDINT R10 4 - 0x002A0E0A, // 0025 ADD R10 K7 R10 - 0x542E0007, // 0026 LDINT R11 8 - 0x0028140B, // 0027 ADD R10 R10 R11 - 0x7C1C0600, // 0028 CALL R7 3 - 0x80040E00, // 0029 RET 1 R7 - 0x601C0003, // 002A GETGBL R7 G3 - 0x5C200000, // 002B MOVE R8 R0 - 0x7C1C0200, // 002C CALL R7 1 - 0x8C1C0F0A, // 002D GETMET R7 R7 K10 - 0x5C240200, // 002E MOVE R9 R1 - 0x5C280400, // 002F MOVE R10 R2 - 0x5C2C0600, // 0030 MOVE R11 R3 - 0x7C1C0800, // 0031 CALL R7 4 - 0x80040E00, // 0032 RET 1 R7 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: append_state_json -********************************************************************/ -extern const bclass be_class_Matter_Plugin_Sensor_GenericSwitch; -be_local_closure(class_Matter_Plugin_Sensor_GenericSwitch_append_state_json, /* name */ - be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Plugin_Sensor_GenericSwitch, - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(_X2C_X22Switch_X22_X3A_X25s), - /* K1 */ be_nested_str_weak(shadow_onoff), - }), - be_str_weak(append_state_json), - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x60040018, // 0000 GETGBL R1 G24 - 0x58080000, // 0001 LDCONST R2 K0 - 0x600C0009, // 0002 GETGBL R3 G9 - 0x88100101, // 0003 GETMBR R4 R0 K1 - 0x7C0C0200, // 0004 CALL R3 1 - 0x7C040400, // 0005 CALL R1 2 - 0x80040200, // 0006 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified class: Matter_Plugin_Sensor_GenericSwitch -********************************************************************/ -extern const bclass be_class_Matter_Plugin_Device; -be_local_class(Matter_Plugin_Sensor_GenericSwitch, - 2, - &be_class_Matter_Plugin_Device, - be_nested_map(14, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(CLUSTERS, 6), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { - be_const_map( * be_nested_map(6, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_int(5, 1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { - be_const_list( * be_nested_list(12, - ( (struct bvalue*) &(const bvalue[]) { - be_const_int(0), - be_const_int(1), - be_const_int(2), - be_const_int(3), - be_const_int(4), - be_const_int(5), - be_const_int(65528), - be_const_int(65529), - be_const_int(65530), - be_const_int(65531), - be_const_int(65532), - be_const_int(65533), - })) ) } )) }, - { be_const_key_int(29, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { - be_const_list( * be_nested_list(10, - ( (struct bvalue*) &(const bvalue[]) { - be_const_int(0), - be_const_int(1), - be_const_int(2), - be_const_int(3), - be_const_int(65528), - be_const_int(65529), - be_const_int(65530), - be_const_int(65531), - be_const_int(65532), - be_const_int(65533), - })) ) } )) }, - { be_const_key_int(57, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { - be_const_list( * be_nested_list(12, - ( (struct bvalue*) &(const bvalue[]) { - be_const_int(3), - be_const_int(5), - be_const_int(10), - be_const_int(15), - be_const_int(17), - be_const_int(18), - be_const_int(65528), - be_const_int(65529), - be_const_int(65530), - be_const_int(65531), - be_const_int(65532), - be_const_int(65533), - })) ) } )) }, - { be_const_key_int(3, 2), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { - be_const_list( * be_nested_list(8, - ( (struct bvalue*) &(const bvalue[]) { - be_const_int(0), - be_const_int(1), - be_const_int(65528), - be_const_int(65529), - be_const_int(65530), - be_const_int(65531), - be_const_int(65532), - be_const_int(65533), - })) ) } )) }, - { be_const_key_int(4, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { - be_const_list( * be_nested_list(7, - ( (struct bvalue*) &(const bvalue[]) { - be_const_int(0), - be_const_int(65528), - be_const_int(65529), - be_const_int(65530), - be_const_int(65531), - be_const_int(65532), - be_const_int(65533), - })) ) } )) }, - { be_const_key_int(59, 0), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { - be_const_list( * be_nested_list(9, - ( (struct bvalue*) &(const bvalue[]) { - be_const_int(0), - be_const_int(1), - be_const_int(2), - be_const_int(65528), - be_const_int(65529), - be_const_int(65530), - be_const_int(65531), - be_const_int(65532), - be_const_int(65533), - })) ) } )) }, - })) ) } )) }, - { be_const_key_weak(ARG, -1), be_nested_str_weak(switch) }, - { be_const_key_weak(UPDATE_TIME, 4), be_const_int(750) }, - { be_const_key_weak(TYPE, -1), be_nested_str_weak(gensw) }, - { be_const_key_weak(append_state_json, 9), be_const_closure(class_Matter_Plugin_Sensor_GenericSwitch_append_state_json_closure) }, - { be_const_key_weak(DISPLAY_NAME, -1), be_nested_str_weak(Generic_X20Switch) }, - { be_const_key_weak(read_attribute, -1), be_const_closure(class_Matter_Plugin_Sensor_GenericSwitch_read_attribute_closure) }, - { be_const_key_weak(update_shadow, -1), be_const_closure(class_Matter_Plugin_Sensor_GenericSwitch_update_shadow_closure) }, - { be_const_key_weak(ARG_HINT, 12), be_nested_str_weak(Switch_X3Cx_X3E_X20number) }, - { be_const_key_weak(tasmota_switch_index, 13), be_const_var(0) }, - { be_const_key_weak(TYPES, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { - be_const_map( * be_nested_map(1, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_int(15, -1), be_const_int(2) }, - })) ) } )) }, - { be_const_key_weak(parse_configuration, 8), be_const_closure(class_Matter_Plugin_Sensor_GenericSwitch_parse_configuration_closure) }, - { be_const_key_weak(shadow_value, -1), be_const_var(1) }, - { be_const_key_weak(ARG_TYPE, -1), be_const_static_closure(class_Matter_Plugin_Sensor_GenericSwitch__X3Clambda_X3E_closure) }, - })), - be_str_weak(Matter_Plugin_Sensor_GenericSwitch) -); -/********************************************************************/ -/* End of solidification */ diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_2_Sensor_GenericSwitch_Btn.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_2_Sensor_GenericSwitch_Btn.h new file mode 100644 index 000000000..18f3a86ce --- /dev/null +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_2_Sensor_GenericSwitch_Btn.h @@ -0,0 +1,498 @@ +/* Solidification of Matter_Plugin_2_Sensor_GenericSwitch_Btn.h */ +/********************************************************************\ +* Generated code, don't edit * +\********************************************************************/ +#include "be_constobj.h" + +extern const bclass be_class_Matter_Plugin_Sensor_GenericSwitch_Btn; + +/******************************************************************** +** Solidified function: read_attribute +********************************************************************/ +extern const bclass be_class_Matter_Plugin_Sensor_GenericSwitch_Btn; +be_local_closure(class_Matter_Plugin_Sensor_GenericSwitch_Btn_read_attribute, /* name */ + be_nested_proto( + 12, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Plugin_Sensor_GenericSwitch_Btn, + 1, /* has constants */ + ( &(const bvalue[13]) { /* constants */ + /* K0 */ be_nested_str_weak(matter), + /* K1 */ be_nested_str_weak(TLV), + /* K2 */ be_nested_str_weak(cluster), + /* K3 */ be_nested_str_weak(attribute), + /* K4 */ be_const_int(0), + /* K5 */ be_nested_str_weak(set), + /* K6 */ be_nested_str_weak(U1), + /* K7 */ be_const_int(2), + /* K8 */ be_const_int(1), + /* K9 */ be_nested_str_weak(set_or_nil), + /* K10 */ be_nested_str_weak(shadow_position), + /* K11 */ be_nested_str_weak(U4), + /* K12 */ be_nested_str_weak(read_attribute), + }), + be_str_weak(read_attribute), + &be_const_str_solidified, + ( &(const binstruction[53]) { /* code */ + 0xB8120000, // 0000 GETNGBL R4 K0 + 0x88100901, // 0001 GETMBR R4 R4 K1 + 0x88140502, // 0002 GETMBR R5 R2 K2 + 0x88180503, // 0003 GETMBR R6 R2 K3 + 0x541E003A, // 0004 LDINT R7 59 + 0x1C1C0A07, // 0005 EQ R7 R5 R7 + 0x781E0024, // 0006 JMPF R7 #002C + 0x1C1C0D04, // 0007 EQ R7 R6 K4 + 0x781E0005, // 0008 JMPF R7 #000F + 0x8C1C0705, // 0009 GETMET R7 R3 K5 + 0x88240906, // 000A GETMBR R9 R4 K6 + 0x58280007, // 000B LDCONST R10 K7 + 0x7C1C0600, // 000C CALL R7 3 + 0x80040E00, // 000D RET 1 R7 + 0x7002001C, // 000E JMP #002C + 0x1C1C0D08, // 000F EQ R7 R6 K8 + 0x781E0005, // 0010 JMPF R7 #0017 + 0x8C1C0709, // 0011 GETMET R7 R3 K9 + 0x88240906, // 0012 GETMBR R9 R4 K6 + 0x8828010A, // 0013 GETMBR R10 R0 K10 + 0x7C1C0600, // 0014 CALL R7 3 + 0x80040E00, // 0015 RET 1 R7 + 0x70020014, // 0016 JMP #002C + 0x1C1C0D07, // 0017 EQ R7 R6 K7 + 0x781E0005, // 0018 JMPF R7 #001F + 0x8C1C0705, // 0019 GETMET R7 R3 K5 + 0x88240906, // 001A GETMBR R9 R4 K6 + 0x542A0004, // 001B LDINT R10 5 + 0x7C1C0600, // 001C CALL R7 3 + 0x80040E00, // 001D RET 1 R7 + 0x7002000C, // 001E JMP #002C + 0x541EFFFB, // 001F LDINT R7 65532 + 0x1C1C0C07, // 0020 EQ R7 R6 R7 + 0x781E0009, // 0021 JMPF R7 #002C + 0x8C1C0705, // 0022 GETMET R7 R3 K5 + 0x8824090B, // 0023 GETMBR R9 R4 K11 + 0x542A0003, // 0024 LDINT R10 4 + 0x302A0E0A, // 0025 OR R10 K7 R10 + 0x542E0007, // 0026 LDINT R11 8 + 0x3028140B, // 0027 OR R10 R10 R11 + 0x542E000F, // 0028 LDINT R11 16 + 0x3028140B, // 0029 OR R10 R10 R11 + 0x7C1C0600, // 002A CALL R7 3 + 0x80040E00, // 002B RET 1 R7 + 0x601C0003, // 002C GETGBL R7 G3 + 0x5C200000, // 002D MOVE R8 R0 + 0x7C1C0200, // 002E CALL R7 1 + 0x8C1C0F0C, // 002F GETMET R7 R7 K12 + 0x5C240200, // 0030 MOVE R9 R1 + 0x5C280400, // 0031 MOVE R10 R2 + 0x5C2C0600, // 0032 MOVE R11 R3 + 0x7C1C0800, // 0033 CALL R7 4 + 0x80040E00, // 0034 RET 1 R7 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: +********************************************************************/ +be_local_closure(class_Matter_Plugin_Sensor_GenericSwitch_Btn__X3Clambda_X3E, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 0, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x60040009, // 0000 GETGBL R1 G9 + 0x5C080000, // 0001 MOVE R2 R0 + 0x7C040200, // 0002 CALL R1 1 + 0x80040200, // 0003 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: set_position +********************************************************************/ +extern const bclass be_class_Matter_Plugin_Sensor_GenericSwitch_Btn; +be_local_closure(class_Matter_Plugin_Sensor_GenericSwitch_Btn_set_position, /* name */ + be_nested_proto( + 6, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Plugin_Sensor_GenericSwitch_Btn, + 1, /* has constants */ + ( &(const bvalue[ 3]) { /* constants */ + /* K0 */ be_nested_str_weak(shadow_position), + /* K1 */ be_nested_str_weak(attribute_updated), + /* K2 */ be_const_int(1), + }), + be_str_weak(set_position), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x20080202, // 0001 NE R2 R1 R2 + 0x780A0004, // 0002 JMPF R2 #0008 + 0x8C080101, // 0003 GETMET R2 R0 K1 + 0x5412003A, // 0004 LDINT R4 59 + 0x58140002, // 0005 LDCONST R5 K2 + 0x7C080600, // 0006 CALL R2 3 + 0x90020001, // 0007 SETMBR R0 K0 R1 + 0x80000000, // 0008 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: parse_configuration +********************************************************************/ +extern const bclass be_class_Matter_Plugin_Sensor_GenericSwitch_Btn; +be_local_closure(class_Matter_Plugin_Sensor_GenericSwitch_Btn_parse_configuration, /* name */ + be_nested_proto( + 7, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Plugin_Sensor_GenericSwitch_Btn, + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota_switch_index), + /* K1 */ be_nested_str_weak(find), + /* K2 */ be_nested_str_weak(ARG), + /* K3 */ be_const_int(1), + /* K4 */ be_const_int(0), + }), + be_str_weak(parse_configuration), + &be_const_str_solidified, + ( &(const binstruction[12]) { /* code */ + 0x60080009, // 0000 GETGBL R2 G9 + 0x8C0C0301, // 0001 GETMET R3 R1 K1 + 0x88140102, // 0002 GETMBR R5 R0 K2 + 0x58180003, // 0003 LDCONST R6 K3 + 0x7C0C0600, // 0004 CALL R3 3 + 0x7C080200, // 0005 CALL R2 1 + 0x90020002, // 0006 SETMBR R0 K0 R2 + 0x88080100, // 0007 GETMBR R2 R0 K0 + 0x18080504, // 0008 LE R2 R2 K4 + 0x780A0000, // 0009 JMPF R2 #000B + 0x90020103, // 000A SETMBR R0 K0 K3 + 0x80000000, // 000B RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: append_state_json +********************************************************************/ +extern const bclass be_class_Matter_Plugin_Sensor_GenericSwitch_Btn; +be_local_closure(class_Matter_Plugin_Sensor_GenericSwitch_Btn_append_state_json, /* name */ + be_nested_proto( + 5, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Plugin_Sensor_GenericSwitch_Btn, + 1, /* has constants */ + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(_X2C_X22Switch_X22_X3A_X25s), + /* K1 */ be_nested_str_weak(shadow_onoff), + }), + be_str_weak(append_state_json), + &be_const_str_solidified, + ( &(const binstruction[ 7]) { /* code */ + 0x60040018, // 0000 GETGBL R1 G24 + 0x58080000, // 0001 LDCONST R2 K0 + 0x600C0009, // 0002 GETGBL R3 G9 + 0x88100101, // 0003 GETMBR R4 R0 K1 + 0x7C0C0200, // 0004 CALL R3 1 + 0x7C040400, // 0005 CALL R1 2 + 0x80040200, // 0006 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: button_handler +********************************************************************/ +extern const bclass be_class_Matter_Plugin_Sensor_GenericSwitch_Btn; +be_local_closure(class_Matter_Plugin_Sensor_GenericSwitch_Btn_button_handler, /* name */ + be_nested_proto( + 15, /* nstack */ + 5, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Plugin_Sensor_GenericSwitch_Btn, + 1, /* has constants */ + ( &(const bvalue[12]) { /* constants */ + /* K0 */ be_const_int(0), + /* K1 */ be_const_int(1), + /* K2 */ be_nested_str_weak(set_position), + /* K3 */ be_nested_str_weak(publish_event), + /* K4 */ be_nested_str_weak(matter), + /* K5 */ be_nested_str_weak(EVENT_INFO), + /* K6 */ be_nested_str_weak(TLV), + /* K7 */ be_nested_str_weak(Matter_TLV_item), + /* K8 */ be_nested_str_weak(set), + /* K9 */ be_nested_str_weak(U1), + /* K10 */ be_const_int(3), + /* K11 */ be_const_int(2), + }), + be_str_weak(button_handler), + &be_const_str_solidified, + ( &(const binstruction[105]) { /* code */ + 0x1C140500, // 0000 EQ R5 R2 K0 + 0x74160001, // 0001 JMPT R5 #0004 + 0x1C140501, // 0002 EQ R5 R2 K1 + 0x78160002, // 0003 JMPF R5 #0007 + 0x8C140102, // 0004 GETMET R5 R0 K2 + 0x5C1C0600, // 0005 MOVE R7 R3 + 0x7C140400, // 0006 CALL R5 2 + 0x1C140501, // 0007 EQ R5 R2 K1 + 0x78160040, // 0008 JMPF R5 #004A + 0x780E0010, // 0009 JMPF R3 #001B + 0x8C140103, // 000A GETMET R5 R0 K3 + 0x541E003A, // 000B LDINT R7 59 + 0x58200001, // 000C LDCONST R8 K1 + 0xB8260800, // 000D GETNGBL R9 K4 + 0x88241305, // 000E GETMBR R9 R9 K5 + 0xB82A0800, // 000F GETNGBL R10 K4 + 0x88281506, // 0010 GETMBR R10 R10 K6 + 0x8C281507, // 0011 GETMET R10 R10 K7 + 0x7C280200, // 0012 CALL R10 1 + 0x8C281508, // 0013 GETMET R10 R10 K8 + 0xB8320800, // 0014 GETNGBL R12 K4 + 0x88301906, // 0015 GETMBR R12 R12 K6 + 0x88301909, // 0016 GETMBR R12 R12 K9 + 0x58340001, // 0017 LDCONST R13 K1 + 0x7C280600, // 0018 CALL R10 3 + 0x7C140A00, // 0019 CALL R5 5 + 0x7002000F, // 001A JMP #002B + 0x8C140103, // 001B GETMET R5 R0 K3 + 0x541E003A, // 001C LDINT R7 59 + 0x5820000A, // 001D LDCONST R8 K10 + 0xB8260800, // 001E GETNGBL R9 K4 + 0x88241305, // 001F GETMBR R9 R9 K5 + 0xB82A0800, // 0020 GETNGBL R10 K4 + 0x88281506, // 0021 GETMBR R10 R10 K6 + 0x8C281507, // 0022 GETMET R10 R10 K7 + 0x7C280200, // 0023 CALL R10 1 + 0x8C281508, // 0024 GETMET R10 R10 K8 + 0xB8320800, // 0025 GETNGBL R12 K4 + 0x88301906, // 0026 GETMBR R12 R12 K6 + 0x88301909, // 0027 GETMBR R12 R12 K9 + 0x58340001, // 0028 LDCONST R13 K1 + 0x7C280600, // 0029 CALL R10 3 + 0x7C140A00, // 002A CALL R5 5 + 0x1C140701, // 002B EQ R5 R3 K1 + 0x7816001B, // 002C JMPF R5 #0049 + 0x24140900, // 002D GT R5 R4 K0 + 0x78160019, // 002E JMPF R5 #0049 + 0x8C140103, // 002F GETMET R5 R0 K3 + 0x541E003A, // 0030 LDINT R7 59 + 0x54220004, // 0031 LDINT R8 5 + 0xB8260800, // 0032 GETNGBL R9 K4 + 0x88241305, // 0033 GETMBR R9 R9 K5 + 0xB82A0800, // 0034 GETNGBL R10 K4 + 0x88281506, // 0035 GETMBR R10 R10 K6 + 0x8C281507, // 0036 GETMET R10 R10 K7 + 0x7C280200, // 0037 CALL R10 1 + 0x8C281508, // 0038 GETMET R10 R10 K8 + 0xB8320800, // 0039 GETNGBL R12 K4 + 0x88301906, // 003A GETMBR R12 R12 K6 + 0x88301909, // 003B GETMBR R12 R12 K9 + 0x58340001, // 003C LDCONST R13 K1 + 0x7C280600, // 003D CALL R10 3 + 0xB82E0800, // 003E GETNGBL R11 K4 + 0x882C1706, // 003F GETMBR R11 R11 K6 + 0x8C2C1707, // 0040 GETMET R11 R11 K7 + 0x7C2C0200, // 0041 CALL R11 1 + 0x8C2C1708, // 0042 GETMET R11 R11 K8 + 0xB8360800, // 0043 GETNGBL R13 K4 + 0x88341B06, // 0044 GETMBR R13 R13 K6 + 0x88341B09, // 0045 GETMBR R13 R13 K9 + 0x00380901, // 0046 ADD R14 R4 K1 + 0x7C2C0600, // 0047 CALL R11 3 + 0x7C140C00, // 0048 CALL R5 6 + 0x7002001D, // 0049 JMP #0068 + 0x1C14050B, // 004A EQ R5 R2 K11 + 0x7816001B, // 004B JMPF R5 #0068 + 0x24140900, // 004C GT R5 R4 K0 + 0x78160019, // 004D JMPF R5 #0068 + 0x8C140103, // 004E GETMET R5 R0 K3 + 0x541E003A, // 004F LDINT R7 59 + 0x54220005, // 0050 LDINT R8 6 + 0xB8260800, // 0051 GETNGBL R9 K4 + 0x88241305, // 0052 GETMBR R9 R9 K5 + 0xB82A0800, // 0053 GETNGBL R10 K4 + 0x88281506, // 0054 GETMBR R10 R10 K6 + 0x8C281507, // 0055 GETMET R10 R10 K7 + 0x7C280200, // 0056 CALL R10 1 + 0x8C281508, // 0057 GETMET R10 R10 K8 + 0xB8320800, // 0058 GETNGBL R12 K4 + 0x88301906, // 0059 GETMBR R12 R12 K6 + 0x88301909, // 005A GETMBR R12 R12 K9 + 0x58340001, // 005B LDCONST R13 K1 + 0x7C280600, // 005C CALL R10 3 + 0xB82E0800, // 005D GETNGBL R11 K4 + 0x882C1706, // 005E GETMBR R11 R11 K6 + 0x8C2C1707, // 005F GETMET R11 R11 K7 + 0x7C2C0200, // 0060 CALL R11 1 + 0x8C2C1708, // 0061 GETMET R11 R11 K8 + 0xB8360800, // 0062 GETNGBL R13 K4 + 0x88341B06, // 0063 GETMBR R13 R13 K6 + 0x88341B09, // 0064 GETMBR R13 R13 K9 + 0x5C380800, // 0065 MOVE R14 R4 + 0x7C2C0600, // 0066 CALL R11 3 + 0x7C140C00, // 0067 CALL R5 6 + 0x80000000, // 0068 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified class: Matter_Plugin_Sensor_GenericSwitch_Btn +********************************************************************/ +extern const bclass be_class_Matter_Plugin_Device; +be_local_class(Matter_Plugin_Sensor_GenericSwitch_Btn, + 2, + &be_class_Matter_Plugin_Device, + be_nested_map(14, + ( (struct bmapnode*) &(const bmapnode[]) { + { be_const_key_weak(read_attribute, 4), be_const_closure(class_Matter_Plugin_Sensor_GenericSwitch_Btn_read_attribute_closure) }, + { be_const_key_weak(ARG, -1), be_nested_str_weak(button) }, + { be_const_key_weak(ARG_TYPE, 6), be_const_static_closure(class_Matter_Plugin_Sensor_GenericSwitch_Btn__X3Clambda_X3E_closure) }, + { be_const_key_weak(TYPE, 9), be_nested_str_weak(gensw_btn) }, + { be_const_key_weak(button_handler, 13), be_const_closure(class_Matter_Plugin_Sensor_GenericSwitch_Btn_button_handler_closure) }, + { be_const_key_weak(DISPLAY_NAME, -1), be_nested_str_weak(Generic_X20Switch_X2FButton) }, + { be_const_key_weak(append_state_json, 12), be_const_closure(class_Matter_Plugin_Sensor_GenericSwitch_Btn_append_state_json_closure) }, + { be_const_key_weak(set_position, -1), be_const_closure(class_Matter_Plugin_Sensor_GenericSwitch_Btn_set_position_closure) }, + { be_const_key_weak(parse_configuration, -1), be_const_closure(class_Matter_Plugin_Sensor_GenericSwitch_Btn_parse_configuration_closure) }, + { be_const_key_weak(shadow_position, -1), be_const_var(1) }, + { be_const_key_weak(TYPES, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + be_const_map( * be_nested_map(1, + ( (struct bmapnode*) &(const bmapnode[]) { + { be_const_key_int(15, -1), be_const_int(2) }, + })) ) } )) }, + { be_const_key_weak(ARG_HINT, 8), be_nested_str_weak(Button_X3Cx_X3E_X20number) }, + { be_const_key_weak(tasmota_switch_index, -1), be_const_var(0) }, + { be_const_key_weak(CLUSTERS, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + be_const_map( * be_nested_map(6, + ( (struct bmapnode*) &(const bmapnode[]) { + { be_const_key_int(5, 1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { + be_const_list( * be_nested_list(12, + ( (struct bvalue*) &(const bvalue[]) { + be_const_int(0), + be_const_int(1), + be_const_int(2), + be_const_int(3), + be_const_int(4), + be_const_int(5), + be_const_int(65528), + be_const_int(65529), + be_const_int(65530), + be_const_int(65531), + be_const_int(65532), + be_const_int(65533), + })) ) } )) }, + { be_const_key_int(29, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { + be_const_list( * be_nested_list(10, + ( (struct bvalue*) &(const bvalue[]) { + be_const_int(0), + be_const_int(1), + be_const_int(2), + be_const_int(3), + be_const_int(65528), + be_const_int(65529), + be_const_int(65530), + be_const_int(65531), + be_const_int(65532), + be_const_int(65533), + })) ) } )) }, + { be_const_key_int(57, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { + be_const_list( * be_nested_list(12, + ( (struct bvalue*) &(const bvalue[]) { + be_const_int(3), + be_const_int(5), + be_const_int(10), + be_const_int(15), + be_const_int(17), + be_const_int(18), + be_const_int(65528), + be_const_int(65529), + be_const_int(65530), + be_const_int(65531), + be_const_int(65532), + be_const_int(65533), + })) ) } )) }, + { be_const_key_int(3, 2), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { + be_const_list( * be_nested_list(8, + ( (struct bvalue*) &(const bvalue[]) { + be_const_int(0), + be_const_int(1), + be_const_int(65528), + be_const_int(65529), + be_const_int(65530), + be_const_int(65531), + be_const_int(65532), + be_const_int(65533), + })) ) } )) }, + { be_const_key_int(4, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { + be_const_list( * be_nested_list(7, + ( (struct bvalue*) &(const bvalue[]) { + be_const_int(0), + be_const_int(65528), + be_const_int(65529), + be_const_int(65530), + be_const_int(65531), + be_const_int(65532), + be_const_int(65533), + })) ) } )) }, + { be_const_key_int(59, 0), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { + be_const_list( * be_nested_list(9, + ( (struct bvalue*) &(const bvalue[]) { + be_const_int(0), + be_const_int(1), + be_const_int(2), + be_const_int(65528), + be_const_int(65529), + be_const_int(65530), + be_const_int(65531), + be_const_int(65532), + be_const_int(65533), + })) ) } )) }, + })) ) } )) }, + })), + be_str_weak(Matter_Plugin_Sensor_GenericSwitch_Btn) +); +/********************************************************************/ +/* End of solidification */ diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UI.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UI.h index b2d5e1d38..81415b3f9 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UI.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UI.h @@ -3397,7 +3397,7 @@ be_local_class(Matter_UI, { be_const_key_weak(show_commissioning_info, -1), be_const_closure(class_Matter_UI_show_commissioning_info_closure) }, { be_const_key_weak(page_part_ctl, 18), be_const_closure(class_Matter_UI_page_part_ctl_closure) }, { be_const_key_weak(show_fabric_info, -1), be_const_closure(class_Matter_UI_show_fabric_info_closure) }, - { be_const_key_weak(_CLASSES_TYPES, 4), be_nested_str_long(_X7Crelay_X7Clight0_X7Clight1_X7Clight2_X7Clight3_X7Cshutter_X7Cshutter_X2Btilt_X7Ctemperature_X7Cpressure_X7Cilluminance_X7Chumidity_X7Coccupancy_X7Conoff_X7Ccontact_X7Cflow_X7Crain_X7Cwaterleak_X7Cairquality_X7C_X2Dvirtual_X7Cv_relay_X7Cv_light0_X7Cv_light1_X7Cv_light2_X7Cv_light3_X7Cv_fan_X7Cv_temp_X7Cv_pressure_X7Cv_illuminance_X7Cv_humidity_X7Cv_occupancy_X7Cv_contact_X7Cv_flow_X7Cv_rain_X7Cv_waterleak_X7Cv_airquality) }, + { be_const_key_weak(_CLASSES_TYPES, 4), be_nested_str_long(_X7Crelay_X7Clight0_X7Clight1_X7Clight2_X7Clight3_X7Cshutter_X7Cshutter_X2Btilt_X7Cgensw_btn_X7Ctemperature_X7Cpressure_X7Cilluminance_X7Chumidity_X7Coccupancy_X7Conoff_X7Ccontact_X7Cflow_X7Crain_X7Cwaterleak_X7Cairquality_X7C_X2Dvirtual_X7Cv_relay_X7Cv_light0_X7Cv_light1_X7Cv_light2_X7Cv_light3_X7Cv_fan_X7Cv_temp_X7Cv_pressure_X7Cv_illuminance_X7Cv_humidity_X7Cv_occupancy_X7Cv_contact_X7Cv_flow_X7Cv_rain_X7Cv_waterleak_X7Cv_airquality) }, { be_const_key_weak(web_get_arg, -1), be_const_closure(class_Matter_UI_web_get_arg_closure) }, { be_const_key_weak(plugin_option, 5), be_const_closure(class_Matter_UI_plugin_option_closure) }, { be_const_key_weak(web_add_config_button, -1), be_const_closure(class_Matter_UI_web_add_config_button_closure) }, diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_zz_Device.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_zz_Device.h index da9af4b11..da547af87 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_zz_Device.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_zz_Device.h @@ -7,44 +7,12 @@ extern const bclass be_class_Matter_Device; /******************************************************************** -** Solidified function: save_before_restart +** Solidified function: start_commissioning_complete ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_save_before_restart, /* name */ +be_local_closure(class_Matter_Device_start_commissioning_complete, /* name */ be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(stop_basic_commissioning), - /* K1 */ be_nested_str_weak(mdns_remove_op_discovery_all_fabrics), - }), - be_str_weak(save_before_restart), - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x7C040200, // 0001 CALL R1 1 - 0x8C040101, // 0002 GETMET R1 R0 K1 - 0x7C040200, // 0003 CALL R1 1 - 0x80000000, // 0004 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: msg_send -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_msg_send, /* name */ - be_nested_proto( - 5, /* nstack */ + 10, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -52,18 +20,44 @@ be_local_closure(class_Matter_Device_msg_send, /* name */ 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(udp_server), - /* K1 */ be_nested_str_weak(send_UDP), + ( &(const bvalue[10]) { /* constants */ + /* K0 */ be_nested_str_weak(get_fabric), + /* K1 */ be_nested_str_weak(get_fabric_id), + /* K2 */ be_nested_str_weak(copy), + /* K3 */ be_nested_str_weak(reverse), + /* K4 */ be_nested_str_weak(tohex), + /* K5 */ be_nested_str_weak(get_admin_vendor_name), + /* K6 */ be_nested_str_weak(log), + /* K7 */ be_nested_str_weak(MTR_X3A_X20_X2D_X2D_X2D_X20Commissioning_X20complete_X20for_X20Fabric_X20_X27_X25s_X27_X20_X28Vendor_X20_X25s_X29_X20_X2D_X2D_X2D), + /* K8 */ be_const_int(2), + /* K9 */ be_nested_str_weak(stop_basic_commissioning), }), - be_str_weak(msg_send), + be_str_weak(start_commissioning_complete), &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x5C100200, // 0002 MOVE R4 R1 - 0x7C080400, // 0003 CALL R2 2 - 0x80040400, // 0004 RET 1 R2 + ( &(const binstruction[23]) { /* code */ + 0x8C080300, // 0000 GETMET R2 R1 K0 + 0x7C080200, // 0001 CALL R2 1 + 0x8C0C0501, // 0002 GETMET R3 R2 K1 + 0x7C0C0200, // 0003 CALL R3 1 + 0x8C0C0702, // 0004 GETMET R3 R3 K2 + 0x7C0C0200, // 0005 CALL R3 1 + 0x8C0C0703, // 0006 GETMET R3 R3 K3 + 0x7C0C0200, // 0007 CALL R3 1 + 0x8C0C0704, // 0008 GETMET R3 R3 K4 + 0x7C0C0200, // 0009 CALL R3 1 + 0x8C100505, // 000A GETMET R4 R2 K5 + 0x7C100200, // 000B CALL R4 1 + 0xB8160C00, // 000C GETNGBL R5 K6 + 0x60180018, // 000D GETGBL R6 G24 + 0x581C0007, // 000E LDCONST R7 K7 + 0x5C200600, // 000F MOVE R8 R3 + 0x5C240800, // 0010 MOVE R9 R4 + 0x7C180600, // 0011 CALL R6 3 + 0x581C0008, // 0012 LDCONST R7 K8 + 0x7C140400, // 0013 CALL R5 2 + 0x8C140109, // 0014 GETMET R5 R0 K9 + 0x7C140200, // 0015 CALL R5 1 + 0x80000000, // 0016 RET 0 }) ) ); @@ -71,710 +65,82 @@ be_local_closure(class_Matter_Device_msg_send, /* name */ /******************************************************************** -** Solidified function: mdns_remove_PASE +** Solidified function: k2l_num ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_mdns_remove_PASE, /* name */ +be_local_closure(class_Matter_Device_k2l_num, /* name */ be_nested_proto( 9, /* nstack */ 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[19]) { /* constants */ - /* K0 */ be_nested_str_weak(mdns), - /* K1 */ be_nested_str_weak(mdns_pase_eth), - /* K2 */ be_nested_str_weak(log), - /* K3 */ be_nested_str_weak(MTR_X3A_X20calling_X20mdns_X2Eremove_service_X28_X25s_X2C_X20_X25s_X2C_X20_X25s_X2C_X20_X25s_X29), - /* K4 */ be_nested_str_weak(_matterc), - /* K5 */ be_nested_str_weak(_udp), - /* K6 */ be_nested_str_weak(commissioning_instance_eth), - /* K7 */ be_nested_str_weak(hostname_eth), - /* K8 */ be_const_int(3), - /* K9 */ be_nested_str_weak(MTR_X3A_X20remove_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27), - /* K10 */ be_nested_str_weak(eth), - /* K11 */ be_nested_str_weak(remove_service), - /* K12 */ be_nested_str_weak(mdns_pase_wifi), - /* K13 */ be_nested_str_weak(commissioning_instance_wifi), - /* K14 */ be_nested_str_weak(hostname_wifi), - /* K15 */ be_nested_str_weak(wifi), - /* K16 */ be_nested_str_weak(MTR_X3A_X20Exception), - /* K17 */ be_nested_str_weak(_X7C), - /* K18 */ be_const_int(2), - }), - be_str_weak(mdns_remove_PASE), - &be_const_str_solidified, - ( &(const binstruction[77]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA8020039, // 0001 EXBLK 0 #003C - 0x88080101, // 0002 GETMBR R2 R0 K1 - 0x780A0019, // 0003 JMPF R2 #001E - 0xB80A0400, // 0004 GETNGBL R2 K2 - 0x600C0018, // 0005 GETGBL R3 G24 - 0x58100003, // 0006 LDCONST R4 K3 - 0x58140004, // 0007 LDCONST R5 K4 - 0x58180005, // 0008 LDCONST R6 K5 - 0x881C0106, // 0009 GETMBR R7 R0 K6 - 0x88200107, // 000A GETMBR R8 R0 K7 - 0x7C0C0A00, // 000B CALL R3 5 - 0x58100008, // 000C LDCONST R4 K8 - 0x7C080400, // 000D CALL R2 2 - 0xB80A0400, // 000E GETNGBL R2 K2 - 0x600C0018, // 000F GETGBL R3 G24 - 0x58100009, // 0010 LDCONST R4 K9 - 0x5814000A, // 0011 LDCONST R5 K10 - 0x88180106, // 0012 GETMBR R6 R0 K6 - 0x7C0C0600, // 0013 CALL R3 3 - 0x58100008, // 0014 LDCONST R4 K8 - 0x7C080400, // 0015 CALL R2 2 - 0x50080000, // 0016 LDBOOL R2 0 0 - 0x90020202, // 0017 SETMBR R0 K1 R2 - 0x8C08030B, // 0018 GETMET R2 R1 K11 - 0x58100004, // 0019 LDCONST R4 K4 - 0x58140005, // 001A LDCONST R5 K5 - 0x88180106, // 001B GETMBR R6 R0 K6 - 0x881C0107, // 001C GETMBR R7 R0 K7 - 0x7C080A00, // 001D CALL R2 5 - 0x8808010C, // 001E GETMBR R2 R0 K12 - 0x780A0019, // 001F JMPF R2 #003A - 0xB80A0400, // 0020 GETNGBL R2 K2 - 0x600C0018, // 0021 GETGBL R3 G24 - 0x58100003, // 0022 LDCONST R4 K3 - 0x58140004, // 0023 LDCONST R5 K4 - 0x58180005, // 0024 LDCONST R6 K5 - 0x881C010D, // 0025 GETMBR R7 R0 K13 - 0x8820010E, // 0026 GETMBR R8 R0 K14 - 0x7C0C0A00, // 0027 CALL R3 5 - 0x58100008, // 0028 LDCONST R4 K8 - 0x7C080400, // 0029 CALL R2 2 - 0xB80A0400, // 002A GETNGBL R2 K2 - 0x600C0018, // 002B GETGBL R3 G24 - 0x58100009, // 002C LDCONST R4 K9 - 0x5814000F, // 002D LDCONST R5 K15 - 0x8818010D, // 002E GETMBR R6 R0 K13 - 0x7C0C0600, // 002F CALL R3 3 - 0x58100008, // 0030 LDCONST R4 K8 - 0x7C080400, // 0031 CALL R2 2 - 0x50080000, // 0032 LDBOOL R2 0 0 - 0x90021802, // 0033 SETMBR R0 K12 R2 - 0x8C08030B, // 0034 GETMET R2 R1 K11 - 0x58100004, // 0035 LDCONST R4 K4 - 0x58140005, // 0036 LDCONST R5 K5 - 0x8818010D, // 0037 GETMBR R6 R0 K13 - 0x881C010E, // 0038 GETMBR R7 R0 K14 - 0x7C080A00, // 0039 CALL R2 5 - 0xA8040001, // 003A EXBLK 1 1 - 0x7002000F, // 003B JMP #004C - 0xAC080002, // 003C CATCH R2 0 2 - 0x7002000C, // 003D JMP #004B - 0xB8120400, // 003E GETNGBL R4 K2 - 0x60140008, // 003F GETGBL R5 G8 - 0x5C180400, // 0040 MOVE R6 R2 - 0x7C140200, // 0041 CALL R5 1 - 0x00162005, // 0042 ADD R5 K16 R5 - 0x00140B11, // 0043 ADD R5 R5 K17 - 0x60180008, // 0044 GETGBL R6 G8 - 0x5C1C0600, // 0045 MOVE R7 R3 - 0x7C180200, // 0046 CALL R6 1 - 0x00140A06, // 0047 ADD R5 R5 R6 - 0x58180012, // 0048 LDCONST R6 K18 - 0x7C100400, // 0049 CALL R4 2 - 0x70020000, // 004A JMP #004C - 0xB0080000, // 004B RAISE 2 R0 R0 - 0x80000000, // 004C RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: compute_qrcode_content -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_compute_qrcode_content, /* name */ - be_nested_proto( - 8, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[12]) { /* constants */ - /* K0 */ be_nested_str_weak(resize), - /* K1 */ be_nested_str_weak(setbits), - /* K2 */ be_const_int(3), - /* K3 */ be_nested_str_weak(VENDOR_ID), - /* K4 */ be_nested_str_weak(PRODUCT_ID), - /* K5 */ be_nested_str_weak(root_discriminator), - /* K6 */ be_nested_str_weak(root_passcode), - /* K7 */ be_const_int(134217727), - /* K8 */ be_nested_str_weak(MT_X3A), - /* K9 */ be_nested_str_weak(matter), - /* K10 */ be_nested_str_weak(Base38), - /* K11 */ be_nested_str_weak(encode), - }), - be_str_weak(compute_qrcode_content), - &be_const_str_solidified, - ( &(const binstruction[40]) { /* code */ - 0x60040015, // 0000 GETGBL R1 G21 - 0x7C040000, // 0001 CALL R1 0 - 0x8C040300, // 0002 GETMET R1 R1 K0 - 0x540E000A, // 0003 LDINT R3 11 - 0x7C040400, // 0004 CALL R1 2 - 0x8C080301, // 0005 GETMET R2 R1 K1 - 0x58100002, // 0006 LDCONST R4 K2 - 0x5416000F, // 0007 LDINT R5 16 - 0x88180103, // 0008 GETMBR R6 R0 K3 - 0x7C080800, // 0009 CALL R2 4 - 0x8C080301, // 000A GETMET R2 R1 K1 - 0x54120012, // 000B LDINT R4 19 - 0x5416000F, // 000C LDINT R5 16 - 0x88180104, // 000D GETMBR R6 R0 K4 - 0x7C080800, // 000E CALL R2 4 - 0x8C080301, // 000F GETMET R2 R1 K1 - 0x54120024, // 0010 LDINT R4 37 - 0x54160007, // 0011 LDINT R5 8 - 0x541A0003, // 0012 LDINT R6 4 - 0x7C080800, // 0013 CALL R2 4 - 0x8C080301, // 0014 GETMET R2 R1 K1 - 0x5412002C, // 0015 LDINT R4 45 - 0x5416000B, // 0016 LDINT R5 12 - 0x88180105, // 0017 GETMBR R6 R0 K5 - 0x541E0FFE, // 0018 LDINT R7 4095 - 0x2C180C07, // 0019 AND R6 R6 R7 - 0x7C080800, // 001A CALL R2 4 - 0x8C080301, // 001B GETMET R2 R1 K1 - 0x54120038, // 001C LDINT R4 57 - 0x5416001A, // 001D LDINT R5 27 - 0x88180106, // 001E GETMBR R6 R0 K6 - 0x2C180D07, // 001F AND R6 R6 K7 - 0x7C080800, // 0020 CALL R2 4 - 0xB80A1200, // 0021 GETNGBL R2 K9 - 0x8808050A, // 0022 GETMBR R2 R2 K10 - 0x8C08050B, // 0023 GETMET R2 R2 K11 - 0x5C100200, // 0024 MOVE R4 R1 - 0x7C080400, // 0025 CALL R2 2 - 0x000A1002, // 0026 ADD R2 K8 R2 - 0x80040400, // 0027 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: _init_basic_commissioning -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device__init_basic_commissioning, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(sessions), - /* K1 */ be_nested_str_weak(count_active_fabrics), - /* K2 */ be_const_int(0), - /* K3 */ be_nested_str_weak(start_root_basic_commissioning), - }), - be_str_weak(_init_basic_commissioning), - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x1C040302, // 0003 EQ R1 R1 K2 - 0x78060001, // 0004 JMPF R1 #0007 - 0x8C040103, // 0005 GETMET R1 R0 K3 - 0x7C040200, // 0006 CALL R1 1 - 0x80000000, // 0007 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: read_sensors_scheduler -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_read_sensors_scheduler, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 7]) { /* constants */ - /* K0 */ be_nested_str_weak(probe_sensor_time), - /* K1 */ be_nested_str_weak(probe_sensor_timestamp), - /* K2 */ be_const_int(0), - /* K3 */ be_nested_str_weak(tasmota), - /* K4 */ be_nested_str_weak(time_reached), - /* K5 */ be_nested_str_weak(_trigger_read_sensors), - /* K6 */ be_nested_str_weak(millis), - }), - be_str_weak(read_sensors_scheduler), - &be_const_str_solidified, - ( &(const binstruction[21]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x4C080000, // 0001 LDNIL R2 - 0x1C040202, // 0002 EQ R1 R1 R2 - 0x78060000, // 0003 JMPF R1 #0005 - 0x80000200, // 0004 RET 0 - 0x88040101, // 0005 GETMBR R1 R0 K1 - 0x1C040302, // 0006 EQ R1 R1 K2 - 0x74060004, // 0007 JMPT R1 #000D - 0xB8060600, // 0008 GETNGBL R1 K3 - 0x8C040304, // 0009 GETMET R1 R1 K4 - 0x880C0101, // 000A GETMBR R3 R0 K1 - 0x7C040400, // 000B CALL R1 2 - 0x78060006, // 000C JMPF R1 #0014 - 0x8C040105, // 000D GETMET R1 R0 K5 - 0x7C040200, // 000E CALL R1 1 - 0xB8060600, // 000F GETNGBL R1 K3 - 0x8C040306, // 0010 GETMET R1 R1 K6 - 0x880C0100, // 0011 GETMBR R3 R0 K0 - 0x7C040400, // 0012 CALL R1 2 - 0x90020201, // 0013 SETMBR R0 K1 R1 - 0x80000000, // 0014 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: add_read_sensors_schedule -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_add_read_sensors_schedule, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(probe_sensor_time), - /* K1 */ be_nested_str_weak(probe_sensor_timestamp), - /* K2 */ be_nested_str_weak(matter), - /* K3 */ be_nested_str_weak(jitter), - }), - be_str_weak(add_read_sensors_schedule), - &be_const_str_solidified, - ( &(const binstruction[14]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x4C0C0000, // 0001 LDNIL R3 - 0x1C080403, // 0002 EQ R2 R2 R3 - 0x740A0002, // 0003 JMPT R2 #0007 - 0x88080100, // 0004 GETMBR R2 R0 K0 - 0x24080401, // 0005 GT R2 R2 R1 - 0x780A0005, // 0006 JMPF R2 #000D - 0x90020001, // 0007 SETMBR R0 K0 R1 - 0xB80A0400, // 0008 GETNGBL R2 K2 - 0x8C080503, // 0009 GETMET R2 R2 K3 - 0x5C100200, // 000A MOVE R4 R1 - 0x7C080400, // 000B CALL R2 2 - 0x90020202, // 000C SETMBR R0 K1 R2 - 0x80000000, // 000D RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: start_operational_discovery_deferred -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_start_operational_discovery_deferred, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 2]) { - be_nested_proto( - 3, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 2]) { /* upvals */ - be_local_const_upval(1, 0), - be_local_const_upval(1, 1), - }), - 0, /* has sup protos */ - NULL, - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(start_operational_discovery), - }), - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x68080001, // 0002 GETUPV R2 U1 - 0x7C000400, // 0003 CALL R0 2 - 0x80040000, // 0004 RET 1 R0 - }) - ), - &be_class_Matter_Device, - }), - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(set_timer), - /* K2 */ be_const_int(0), - }), - be_str_weak(start_operational_discovery_deferred), - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0xB80A0000, // 0000 GETNGBL R2 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x58100002, // 0002 LDCONST R4 K2 - 0x84140000, // 0003 CLOSURE R5 P0 - 0x7C080600, // 0004 CALL R2 3 - 0xA0000000, // 0005 CLOSE R0 - 0x80000000, // 0006 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_active_endpoints -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_get_active_endpoints, /* name */ - be_nested_proto( - 9, /* nstack */ - 2, /* argc */ - 2, /* varg */ + 4, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_nested_str_weak(plugins), - /* K1 */ be_nested_str_weak(get_endpoint), - /* K2 */ be_const_int(0), - /* K3 */ be_nested_str_weak(find), - /* K4 */ be_nested_str_weak(push), - /* K5 */ be_nested_str_weak(stop_iteration), - }), - be_str_weak(get_active_endpoints), - &be_const_str_solidified, - ( &(const binstruction[28]) { /* code */ - 0x60080012, // 0000 GETGBL R2 G18 - 0x7C080000, // 0001 CALL R2 0 - 0x600C0010, // 0002 GETGBL R3 G16 - 0x88100100, // 0003 GETMBR R4 R0 K0 - 0x7C0C0200, // 0004 CALL R3 1 - 0xA8020011, // 0005 EXBLK 0 #0018 - 0x5C100600, // 0006 MOVE R4 R3 - 0x7C100000, // 0007 CALL R4 0 - 0x8C140901, // 0008 GETMET R5 R4 K1 - 0x7C140200, // 0009 CALL R5 1 - 0x78060002, // 000A JMPF R1 #000E - 0x1C180B02, // 000B EQ R6 R5 K2 - 0x781A0000, // 000C JMPF R6 #000E - 0x7001FFF7, // 000D JMP #0006 - 0x8C180503, // 000E GETMET R6 R2 K3 - 0x5C200A00, // 000F MOVE R8 R5 - 0x7C180400, // 0010 CALL R6 2 - 0x4C1C0000, // 0011 LDNIL R7 - 0x1C180C07, // 0012 EQ R6 R6 R7 - 0x781A0002, // 0013 JMPF R6 #0017 - 0x8C180504, // 0014 GETMET R6 R2 K4 - 0x5C200A00, // 0015 MOVE R8 R5 - 0x7C180400, // 0016 CALL R6 2 - 0x7001FFED, // 0017 JMP #0006 - 0x580C0005, // 0018 LDCONST R3 K5 - 0xAC0C0200, // 0019 CATCH R3 1 0 - 0xB0080000, // 001A RAISE 2 R0 R0 - 0x80040400, // 001B RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: invoke_request -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_invoke_request, /* name */ - be_nested_proto( - 12, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 8]) { /* constants */ - /* K0 */ be_const_int(0), - /* K1 */ be_nested_str_weak(endpoint), - /* K2 */ be_nested_str_weak(plugins), - /* K3 */ be_nested_str_weak(invoke_request), - /* K4 */ be_const_int(1), - /* K5 */ be_nested_str_weak(status), - /* K6 */ be_nested_str_weak(matter), - /* K7 */ be_nested_str_weak(UNSUPPORTED_ENDPOINT), - }), - be_str_weak(invoke_request), - &be_const_str_solidified, - ( &(const binstruction[24]) { /* code */ - 0x58100000, // 0000 LDCONST R4 K0 - 0x88140701, // 0001 GETMBR R5 R3 K1 - 0x6018000C, // 0002 GETGBL R6 G12 - 0x881C0102, // 0003 GETMBR R7 R0 K2 - 0x7C180200, // 0004 CALL R6 1 - 0x14180806, // 0005 LT R6 R4 R6 - 0x781A000C, // 0006 JMPF R6 #0014 - 0x88180102, // 0007 GETMBR R6 R0 K2 - 0x94180C04, // 0008 GETIDX R6 R6 R4 - 0x881C0D01, // 0009 GETMBR R7 R6 K1 - 0x1C1C0E05, // 000A EQ R7 R7 R5 - 0x781E0005, // 000B JMPF R7 #0012 - 0x8C1C0D03, // 000C GETMET R7 R6 K3 - 0x5C240200, // 000D MOVE R9 R1 - 0x5C280400, // 000E MOVE R10 R2 - 0x5C2C0600, // 000F MOVE R11 R3 - 0x7C1C0800, // 0010 CALL R7 4 - 0x80040E00, // 0011 RET 1 R7 - 0x00100904, // 0012 ADD R4 R4 K4 - 0x7001FFED, // 0013 JMP #0002 - 0xB81A0C00, // 0014 GETNGBL R6 K6 - 0x88180D07, // 0015 GETMBR R6 R6 K7 - 0x900E0A06, // 0016 SETMBR R3 K5 R6 - 0x80000000, // 0017 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: _instantiate_plugins_from_config -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device__instantiate_plugins_from_config, /* name */ - be_nested_proto( - 17, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[31]) { /* constants */ - /* K0 */ be_nested_str_weak(k2l_num), - /* K1 */ be_nested_str_weak(plugins), + /* K0 */ be_const_class(be_class_Matter_Device), + /* K1 */ be_nested_str_weak(keys), /* K2 */ be_nested_str_weak(push), - /* K3 */ be_nested_str_weak(matter), - /* K4 */ be_nested_str_weak(Plugin_Root), + /* K3 */ be_nested_str_weak(stop_iteration), + /* K4 */ be_const_int(1), /* K5 */ be_const_int(0), - /* K6 */ be_nested_str_weak(log), - /* K7 */ be_nested_str_weak(MTR_X3A_X20Configuring_X20endpoints), - /* K8 */ be_const_int(2), - /* K9 */ be_nested_str_weak(MTR_X3A_X20_X20_X20endpoint_X20_X3D_X20_X255i_X20type_X3A_X25s_X25s), - /* K10 */ be_nested_str_weak(root), - /* K11 */ be_nested_str_weak(), - /* K12 */ be_nested_str_weak(Plugin_Aggregator), - /* K13 */ be_nested_str_weak(AGGREGATOR_ENDPOINT), - /* K14 */ be_nested_str_weak(aggregator), - /* K15 */ be_nested_str_weak(find), - /* K16 */ be_nested_str_weak(type), - /* K17 */ be_nested_str_weak(MTR_X3A_X20no_X20class_X20name_X2C_X20skipping), - /* K18 */ be_const_int(3), - /* K19 */ be_nested_str_weak(MTR_X3A_X20only_X20one_X20root_X20node_X20allowed), - /* K20 */ be_nested_str_weak(plugins_classes), - /* K21 */ be_nested_str_weak(MTR_X3A_X20unknown_X20class_X20name_X20_X27), - /* K22 */ be_nested_str_weak(_X27_X20skipping), - /* K23 */ be_nested_str_weak(conf_to_log), - /* K24 */ be_nested_str_weak(MTR_X3A_X20Exception), - /* K25 */ be_nested_str_weak(_X7C), - /* K26 */ be_nested_str_weak(stop_iteration), - /* K27 */ be_nested_str_weak(tasmota), - /* K28 */ be_nested_str_weak(publish_result), - /* K29 */ be_nested_str_weak(_X7B_X22Matter_X22_X3A_X7B_X22Initialized_X22_X3A1_X7D_X7D), - /* K30 */ be_nested_str_weak(Matter), }), - be_str_weak(_instantiate_plugins_from_config), + be_str_weak(k2l_num), &be_const_str_solidified, - ( &(const binstruction[146]) { /* code */ - 0x8C080100, // 0000 GETMET R2 R0 K0 - 0x5C100200, // 0001 MOVE R4 R1 - 0x7C080400, // 0002 CALL R2 2 - 0x880C0101, // 0003 GETMBR R3 R0 K1 - 0x8C0C0702, // 0004 GETMET R3 R3 K2 - 0xB8160600, // 0005 GETNGBL R5 K3 - 0x8C140B04, // 0006 GETMET R5 R5 K4 - 0x5C1C0000, // 0007 MOVE R7 R0 - 0x58200005, // 0008 LDCONST R8 K5 - 0x60240013, // 0009 GETGBL R9 G19 - 0x7C240000, // 000A CALL R9 0 - 0x7C140800, // 000B CALL R5 4 - 0x7C0C0400, // 000C CALL R3 2 - 0xB80E0C00, // 000D GETNGBL R3 K6 - 0x58100007, // 000E LDCONST R4 K7 - 0x58140008, // 000F LDCONST R5 K8 - 0x7C0C0400, // 0010 CALL R3 2 - 0xB80E0C00, // 0011 GETNGBL R3 K6 - 0x60100018, // 0012 GETGBL R4 G24 - 0x58140009, // 0013 LDCONST R5 K9 - 0x58180005, // 0014 LDCONST R6 K5 - 0x581C000A, // 0015 LDCONST R7 K10 - 0x5820000B, // 0016 LDCONST R8 K11 - 0x7C100800, // 0017 CALL R4 4 - 0x58140008, // 0018 LDCONST R5 K8 - 0x7C0C0400, // 0019 CALL R3 2 - 0x880C0101, // 001A GETMBR R3 R0 K1 - 0x8C0C0702, // 001B GETMET R3 R3 K2 - 0xB8160600, // 001C GETNGBL R5 K3 - 0x8C140B0C, // 001D GETMET R5 R5 K12 - 0x5C1C0000, // 001E MOVE R7 R0 - 0xB8220600, // 001F GETNGBL R8 K3 - 0x8820110D, // 0020 GETMBR R8 R8 K13 - 0x60240013, // 0021 GETGBL R9 G19 - 0x7C240000, // 0022 CALL R9 0 - 0x7C140800, // 0023 CALL R5 4 - 0x7C0C0400, // 0024 CALL R3 2 - 0xB80E0C00, // 0025 GETNGBL R3 K6 - 0x60100018, // 0026 GETGBL R4 G24 - 0x58140009, // 0027 LDCONST R5 K9 - 0xB81A0600, // 0028 GETNGBL R6 K3 - 0x88180D0D, // 0029 GETMBR R6 R6 K13 - 0x581C000E, // 002A LDCONST R7 K14 - 0x5820000B, // 002B LDCONST R8 K11 - 0x7C100800, // 002C CALL R4 4 - 0x58140008, // 002D LDCONST R5 K8 - 0x7C0C0400, // 002E CALL R3 2 - 0x600C0010, // 002F GETGBL R3 G16 - 0x5C100400, // 0030 MOVE R4 R2 - 0x7C0C0200, // 0031 CALL R3 1 - 0xA8020055, // 0032 EXBLK 0 #0089 - 0x5C100600, // 0033 MOVE R4 R3 - 0x7C100000, // 0034 CALL R4 0 - 0x1C140905, // 0035 EQ R5 R4 K5 - 0x78160000, // 0036 JMPF R5 #0038 - 0x7001FFFA, // 0037 JMP #0033 - 0xA802003E, // 0038 EXBLK 0 #0078 - 0x60140008, // 0039 GETGBL R5 G8 - 0x5C180800, // 003A MOVE R6 R4 - 0x7C140200, // 003B CALL R5 1 - 0x94140205, // 003C GETIDX R5 R1 R5 - 0x8C180B0F, // 003D GETMET R6 R5 K15 - 0x58200010, // 003E LDCONST R8 K16 - 0x7C180400, // 003F CALL R6 2 - 0x4C1C0000, // 0040 LDNIL R7 - 0x1C1C0C07, // 0041 EQ R7 R6 R7 - 0x781E0005, // 0042 JMPF R7 #0049 - 0xB81E0C00, // 0043 GETNGBL R7 K6 - 0x58200011, // 0044 LDCONST R8 K17 - 0x58240012, // 0045 LDCONST R9 K18 - 0x7C1C0400, // 0046 CALL R7 2 - 0xA8040001, // 0047 EXBLK 1 1 - 0x7001FFE9, // 0048 JMP #0033 - 0x1C1C0D0A, // 0049 EQ R7 R6 K10 - 0x781E0005, // 004A JMPF R7 #0051 - 0xB81E0C00, // 004B GETNGBL R7 K6 - 0x58200013, // 004C LDCONST R8 K19 - 0x58240012, // 004D LDCONST R9 K18 - 0x7C1C0400, // 004E CALL R7 2 - 0xA8040001, // 004F EXBLK 1 1 - 0x7001FFE1, // 0050 JMP #0033 - 0x881C0114, // 0051 GETMBR R7 R0 K20 - 0x8C1C0F0F, // 0052 GETMET R7 R7 K15 - 0x5C240C00, // 0053 MOVE R9 R6 - 0x7C1C0400, // 0054 CALL R7 2 - 0x4C200000, // 0055 LDNIL R8 - 0x1C200E08, // 0056 EQ R8 R7 R8 - 0x78220009, // 0057 JMPF R8 #0062 - 0xB8220C00, // 0058 GETNGBL R8 K6 - 0x60240008, // 0059 GETGBL R9 G8 - 0x5C280C00, // 005A MOVE R10 R6 - 0x7C240200, // 005B CALL R9 1 - 0x00262A09, // 005C ADD R9 K21 R9 - 0x00241316, // 005D ADD R9 R9 K22 - 0x58280008, // 005E LDCONST R10 K8 - 0x7C200400, // 005F CALL R8 2 - 0xA8040001, // 0060 EXBLK 1 1 - 0x7001FFD0, // 0061 JMP #0033 - 0x5C200E00, // 0062 MOVE R8 R7 - 0x5C240000, // 0063 MOVE R9 R0 - 0x5C280800, // 0064 MOVE R10 R4 - 0x5C2C0A00, // 0065 MOVE R11 R5 - 0x7C200600, // 0066 CALL R8 3 - 0x88240101, // 0067 GETMBR R9 R0 K1 - 0x8C241302, // 0068 GETMET R9 R9 K2 - 0x5C2C1000, // 0069 MOVE R11 R8 - 0x7C240400, // 006A CALL R9 2 - 0xB8260C00, // 006B GETNGBL R9 K6 - 0x60280018, // 006C GETGBL R10 G24 - 0x582C0009, // 006D LDCONST R11 K9 - 0x5C300800, // 006E MOVE R12 R4 - 0x5C340C00, // 006F MOVE R13 R6 - 0x8C380117, // 0070 GETMET R14 R0 K23 - 0x5C400A00, // 0071 MOVE R16 R5 - 0x7C380400, // 0072 CALL R14 2 - 0x7C280800, // 0073 CALL R10 4 - 0x582C0008, // 0074 LDCONST R11 K8 - 0x7C240400, // 0075 CALL R9 2 - 0xA8040001, // 0076 EXBLK 1 1 - 0x7002000F, // 0077 JMP #0088 - 0xAC140002, // 0078 CATCH R5 0 2 - 0x7002000C, // 0079 JMP #0087 - 0xB81E0C00, // 007A GETNGBL R7 K6 - 0x60200008, // 007B GETGBL R8 G8 - 0x5C240A00, // 007C MOVE R9 R5 - 0x7C200200, // 007D CALL R8 1 - 0x00223008, // 007E ADD R8 K24 R8 - 0x00201119, // 007F ADD R8 R8 K25 - 0x60240008, // 0080 GETGBL R9 G8 - 0x5C280C00, // 0081 MOVE R10 R6 - 0x7C240200, // 0082 CALL R9 1 - 0x00201009, // 0083 ADD R8 R8 R9 - 0x58240008, // 0084 LDCONST R9 K8 - 0x7C1C0400, // 0085 CALL R7 2 - 0x70020000, // 0086 JMP #0088 - 0xB0080000, // 0087 RAISE 2 R0 R0 - 0x7001FFA9, // 0088 JMP #0033 - 0x580C001A, // 0089 LDCONST R3 K26 - 0xAC0C0200, // 008A CATCH R3 1 0 - 0xB0080000, // 008B RAISE 2 R0 R0 - 0xB80E3600, // 008C GETNGBL R3 K27 - 0x8C0C071C, // 008D GETMET R3 R3 K28 - 0x5814001D, // 008E LDCONST R5 K29 - 0x5818001E, // 008F LDCONST R6 K30 - 0x7C0C0600, // 0090 CALL R3 3 - 0x80000000, // 0091 RET 0 + ( &(const binstruction[52]) { /* code */ + 0x58040000, // 0000 LDCONST R1 K0 + 0x60080012, // 0001 GETGBL R2 G18 + 0x7C080000, // 0002 CALL R2 0 + 0x4C0C0000, // 0003 LDNIL R3 + 0x1C0C0003, // 0004 EQ R3 R0 R3 + 0x780E0000, // 0005 JMPF R3 #0007 + 0x80040400, // 0006 RET 1 R2 + 0x600C0010, // 0007 GETGBL R3 G16 + 0x8C100101, // 0008 GETMET R4 R0 K1 + 0x7C100200, // 0009 CALL R4 1 + 0x7C0C0200, // 000A CALL R3 1 + 0xA8020007, // 000B EXBLK 0 #0014 + 0x5C100600, // 000C MOVE R4 R3 + 0x7C100000, // 000D CALL R4 0 + 0x8C140502, // 000E GETMET R5 R2 K2 + 0x601C0009, // 000F GETGBL R7 G9 + 0x5C200800, // 0010 MOVE R8 R4 + 0x7C1C0200, // 0011 CALL R7 1 + 0x7C140400, // 0012 CALL R5 2 + 0x7001FFF7, // 0013 JMP #000C + 0x580C0003, // 0014 LDCONST R3 K3 + 0xAC0C0200, // 0015 CATCH R3 1 0 + 0xB0080000, // 0016 RAISE 2 R0 R0 + 0x600C0010, // 0017 GETGBL R3 G16 + 0x6010000C, // 0018 GETGBL R4 G12 + 0x5C140400, // 0019 MOVE R5 R2 + 0x7C100200, // 001A CALL R4 1 + 0x04100904, // 001B SUB R4 R4 K4 + 0x40120804, // 001C CONNECT R4 K4 R4 + 0x7C0C0200, // 001D CALL R3 1 + 0xA8020010, // 001E EXBLK 0 #0030 + 0x5C100600, // 001F MOVE R4 R3 + 0x7C100000, // 0020 CALL R4 0 + 0x94140404, // 0021 GETIDX R5 R2 R4 + 0x5C180800, // 0022 MOVE R6 R4 + 0x241C0D05, // 0023 GT R7 R6 K5 + 0x781E0008, // 0024 JMPF R7 #002E + 0x041C0D04, // 0025 SUB R7 R6 K4 + 0x941C0407, // 0026 GETIDX R7 R2 R7 + 0x241C0E05, // 0027 GT R7 R7 R5 + 0x781E0004, // 0028 JMPF R7 #002E + 0x041C0D04, // 0029 SUB R7 R6 K4 + 0x941C0407, // 002A GETIDX R7 R2 R7 + 0x98080C07, // 002B SETIDX R2 R6 R7 + 0x04180D04, // 002C SUB R6 R6 K4 + 0x7001FFF4, // 002D JMP #0023 + 0x98080C05, // 002E SETIDX R2 R6 R5 + 0x7001FFEE, // 002F JMP #001F + 0x580C0003, // 0030 LDCONST R3 K3 + 0xAC0C0200, // 0031 CATCH R3 1 0 + 0xB0080000, // 0032 RAISE 2 R0 R0 + 0x80040400, // 0033 RET 1 R2 }) ) ); @@ -782,12 +148,12 @@ be_local_closure(class_Matter_Device__instantiate_plugins_from_config, /* name /******************************************************************** -** Solidified function: start_operational_discovery +** Solidified function: remove_fabric ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_start_operational_discovery, /* name */ +be_local_closure(class_Matter_Device_remove_fabric, /* name */ be_nested_proto( - 7, /* nstack */ + 5, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -795,23 +161,58 @@ be_local_closure(class_Matter_Device_start_operational_discovery, /* name */ 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(crypto), - /* K1 */ be_nested_str_weak(mdns), - /* K2 */ be_nested_str_weak(stop_basic_commissioning), - /* K3 */ be_nested_str_weak(mdns_announce_op_discovery), + ( &(const bvalue[15]) { /* constants */ + /* K0 */ be_nested_str_weak(log), + /* K1 */ be_nested_str_weak(MTR_X3A_X20removing_X20fabric_X20), + /* K2 */ be_nested_str_weak(get_fabric_id), + /* K3 */ be_nested_str_weak(copy), + /* K4 */ be_nested_str_weak(reverse), + /* K5 */ be_nested_str_weak(tohex), + /* K6 */ be_const_int(2), + /* K7 */ be_nested_str_weak(message_handler), + /* K8 */ be_nested_str_weak(im), + /* K9 */ be_nested_str_weak(subs_shop), + /* K10 */ be_nested_str_weak(remove_by_fabric), + /* K11 */ be_nested_str_weak(mdns_remove_op_discovery), + /* K12 */ be_nested_str_weak(sessions), + /* K13 */ be_nested_str_weak(remove_fabric), + /* K14 */ be_nested_str_weak(save_fabrics), }), - be_str_weak(start_operational_discovery), + be_str_weak(remove_fabric), &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0xA40E0200, // 0001 IMPORT R3 K1 - 0x8C100102, // 0002 GETMET R4 R0 K2 - 0x7C100200, // 0003 CALL R4 1 - 0x8C100103, // 0004 GETMET R4 R0 K3 - 0x5C180200, // 0005 MOVE R6 R1 - 0x7C100400, // 0006 CALL R4 2 - 0x80000000, // 0007 RET 0 + ( &(const binstruction[32]) { /* code */ + 0x4C080000, // 0000 LDNIL R2 + 0x20080202, // 0001 NE R2 R1 R2 + 0x780A0018, // 0002 JMPF R2 #001C + 0xB80A0000, // 0003 GETNGBL R2 K0 + 0x8C0C0302, // 0004 GETMET R3 R1 K2 + 0x7C0C0200, // 0005 CALL R3 1 + 0x8C0C0703, // 0006 GETMET R3 R3 K3 + 0x7C0C0200, // 0007 CALL R3 1 + 0x8C0C0704, // 0008 GETMET R3 R3 K4 + 0x7C0C0200, // 0009 CALL R3 1 + 0x8C0C0705, // 000A GETMET R3 R3 K5 + 0x7C0C0200, // 000B CALL R3 1 + 0x000E0203, // 000C ADD R3 K1 R3 + 0x58100006, // 000D LDCONST R4 K6 + 0x7C080400, // 000E CALL R2 2 + 0x88080107, // 000F GETMBR R2 R0 K7 + 0x88080508, // 0010 GETMBR R2 R2 K8 + 0x88080509, // 0011 GETMBR R2 R2 K9 + 0x8C08050A, // 0012 GETMET R2 R2 K10 + 0x5C100200, // 0013 MOVE R4 R1 + 0x7C080400, // 0014 CALL R2 2 + 0x8C08010B, // 0015 GETMET R2 R0 K11 + 0x5C100200, // 0016 MOVE R4 R1 + 0x7C080400, // 0017 CALL R2 2 + 0x8808010C, // 0018 GETMBR R2 R0 K12 + 0x8C08050D, // 0019 GETMET R2 R2 K13 + 0x5C100200, // 001A MOVE R4 R1 + 0x7C080400, // 001B CALL R2 2 + 0x8808010C, // 001C GETMBR R2 R0 K12 + 0x8C08050E, // 001D GETMET R2 R2 K14 + 0x7C080200, // 001E CALL R2 1 + 0x80000000, // 001F RET 0 }) ) ); @@ -1015,813 +416,10 @@ be_local_closure(class_Matter_Device__mdns_announce_hostname, /* name */ /******************************************************************** -** Solidified function: bridge_remove_endpoint +** Solidified function: save_before_restart ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_bridge_remove_endpoint, /* name */ - be_nested_proto( - 10, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[17]) { /* constants */ - /* K0 */ be_nested_str_weak(json), - /* K1 */ be_nested_str_weak(plugins_config), - /* K2 */ be_nested_str_weak(contains), - /* K3 */ be_nested_str_weak(log), - /* K4 */ be_nested_str_weak(MTR_X3A_X20Cannot_X20remove_X20an_X20enpoint_X20not_X20configured_X3A_X20), - /* K5 */ be_const_int(3), - /* K6 */ be_nested_str_weak(MTR_X3A_X20deleting_X20endpoint_X20_X3D_X20_X25i), - /* K7 */ be_const_int(2), - /* K8 */ be_nested_str_weak(remove), - /* K9 */ be_nested_str_weak(plugins_persist), - /* K10 */ be_const_int(0), - /* K11 */ be_nested_str_weak(plugins), - /* K12 */ be_nested_str_weak(get_endpoint), - /* K13 */ be_const_int(1), - /* K14 */ be_nested_str_weak(clean_remotes), - /* K15 */ be_nested_str_weak(save_param), - /* K16 */ be_nested_str_weak(signal_endpoints_changed), - }), - be_str_weak(bridge_remove_endpoint), - &be_const_str_solidified, - ( &(const binstruction[56]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0x600C0008, // 0001 GETGBL R3 G8 - 0x5C100200, // 0002 MOVE R4 R1 - 0x7C0C0200, // 0003 CALL R3 1 - 0x4C100000, // 0004 LDNIL R4 - 0x4C140000, // 0005 LDNIL R5 - 0x88180101, // 0006 GETMBR R6 R0 K1 - 0x8C180D02, // 0007 GETMET R6 R6 K2 - 0x5C200600, // 0008 MOVE R8 R3 - 0x7C180400, // 0009 CALL R6 2 - 0x741A0004, // 000A JMPT R6 #0010 - 0xB81A0600, // 000B GETNGBL R6 K3 - 0x001E0803, // 000C ADD R7 K4 R3 - 0x58200005, // 000D LDCONST R8 K5 - 0x7C180400, // 000E CALL R6 2 - 0x80000C00, // 000F RET 0 - 0xB81A0600, // 0010 GETNGBL R6 K3 - 0x601C0018, // 0011 GETGBL R7 G24 - 0x58200006, // 0012 LDCONST R8 K6 - 0x5C240200, // 0013 MOVE R9 R1 - 0x7C1C0400, // 0014 CALL R7 2 - 0x58200007, // 0015 LDCONST R8 K7 - 0x7C180400, // 0016 CALL R6 2 - 0x88180101, // 0017 GETMBR R6 R0 K1 - 0x8C180D08, // 0018 GETMET R6 R6 K8 - 0x5C200600, // 0019 MOVE R8 R3 - 0x7C180400, // 001A CALL R6 2 - 0x50180200, // 001B LDBOOL R6 1 0 - 0x90021206, // 001C SETMBR R0 K9 R6 - 0x5818000A, // 001D LDCONST R6 K10 - 0x601C000C, // 001E GETGBL R7 G12 - 0x8820010B, // 001F GETMBR R8 R0 K11 - 0x7C1C0200, // 0020 CALL R7 1 - 0x141C0C07, // 0021 LT R7 R6 R7 - 0x781E000D, // 0022 JMPF R7 #0031 - 0x881C010B, // 0023 GETMBR R7 R0 K11 - 0x941C0E06, // 0024 GETIDX R7 R7 R6 - 0x8C1C0F0C, // 0025 GETMET R7 R7 K12 - 0x7C1C0200, // 0026 CALL R7 1 - 0x1C1C0207, // 0027 EQ R7 R1 R7 - 0x781E0005, // 0028 JMPF R7 #002F - 0x881C010B, // 0029 GETMBR R7 R0 K11 - 0x8C1C0F08, // 002A GETMET R7 R7 K8 - 0x5C240C00, // 002B MOVE R9 R6 - 0x7C1C0400, // 002C CALL R7 2 - 0x70020002, // 002D JMP #0031 - 0x70020000, // 002E JMP #0030 - 0x00180D0D, // 002F ADD R6 R6 K13 - 0x7001FFEC, // 0030 JMP #001E - 0x8C1C010E, // 0031 GETMET R7 R0 K14 - 0x7C1C0200, // 0032 CALL R7 1 - 0x8C1C010F, // 0033 GETMET R7 R0 K15 - 0x7C1C0200, // 0034 CALL R7 1 - 0x8C1C0110, // 0035 GETMET R7 R0 K16 - 0x7C1C0200, // 0036 CALL R7 1 - 0x80000000, // 0037 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: start_mdns_announce_hostnames -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_start_mdns_announce_hostnames, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 3]) { - be_nested_proto( - 4, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(_mdns_announce_hostname), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(remove_rule), - /* K3 */ be_nested_str_weak(Wifi_X23Connected), - /* K4 */ be_nested_str_weak(matter_mdns_host), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x50080000, // 0002 LDBOOL R2 0 0 - 0x7C000400, // 0003 CALL R0 2 - 0xB8020200, // 0004 GETNGBL R0 K1 - 0x8C000102, // 0005 GETMET R0 R0 K2 - 0x58080003, // 0006 LDCONST R2 K3 - 0x580C0004, // 0007 LDCONST R3 K4 - 0x7C000600, // 0008 CALL R0 3 - 0x80000000, // 0009 RET 0 - }) - ), - be_nested_proto( - 4, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(_mdns_announce_hostname), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(remove_rule), - /* K3 */ be_nested_str_weak(Eth_X23Connected), - /* K4 */ be_nested_str_weak(matter_mdns_host), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x50080200, // 0002 LDBOOL R2 1 0 - 0x7C000400, // 0003 CALL R0 2 - 0xB8020200, // 0004 GETNGBL R0 K1 - 0x8C000102, // 0005 GETMET R0 R0 K2 - 0x58080003, // 0006 LDCONST R2 K3 - 0x580C0004, // 0007 LDCONST R3 K4 - 0x7C000600, // 0008 CALL R0 3 - 0x80000000, // 0009 RET 0 - }) - ), - &be_class_Matter_Device, - }), - 1, /* has constants */ - ( &(const bvalue[ 9]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(wifi), - /* K2 */ be_nested_str_weak(up), - /* K3 */ be_nested_str_weak(_mdns_announce_hostname), - /* K4 */ be_nested_str_weak(add_rule), - /* K5 */ be_nested_str_weak(Wifi_X23Connected), - /* K6 */ be_nested_str_weak(matter_mdns_host), - /* K7 */ be_nested_str_weak(eth), - /* K8 */ be_nested_str_weak(Eth_X23Connected), - }), - be_str_weak(start_mdns_announce_hostnames), - &be_const_str_solidified, - ( &(const binstruction[32]) { /* code */ - 0xB8060000, // 0000 GETNGBL R1 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x94040302, // 0003 GETIDX R1 R1 K2 - 0x78060003, // 0004 JMPF R1 #0009 - 0x8C040103, // 0005 GETMET R1 R0 K3 - 0x500C0000, // 0006 LDBOOL R3 0 0 - 0x7C040400, // 0007 CALL R1 2 - 0x70020005, // 0008 JMP #000F - 0xB8060000, // 0009 GETNGBL R1 K0 - 0x8C040304, // 000A GETMET R1 R1 K4 - 0x580C0005, // 000B LDCONST R3 K5 - 0x84100000, // 000C CLOSURE R4 P0 - 0x58140006, // 000D LDCONST R5 K6 - 0x7C040800, // 000E CALL R1 4 - 0xB8060000, // 000F GETNGBL R1 K0 - 0x8C040307, // 0010 GETMET R1 R1 K7 - 0x7C040200, // 0011 CALL R1 1 - 0x94040302, // 0012 GETIDX R1 R1 K2 - 0x78060003, // 0013 JMPF R1 #0018 - 0x8C040103, // 0014 GETMET R1 R0 K3 - 0x500C0200, // 0015 LDBOOL R3 1 0 - 0x7C040400, // 0016 CALL R1 2 - 0x70020005, // 0017 JMP #001E - 0xB8060000, // 0018 GETNGBL R1 K0 - 0x8C040304, // 0019 GETMET R1 R1 K4 - 0x580C0008, // 001A LDCONST R3 K8 - 0x84100001, // 001B CLOSURE R4 P1 - 0x58140006, // 001C LDCONST R5 K6 - 0x7C040800, // 001D CALL R1 4 - 0xA0000000, // 001E CLOSE R0 - 0x80000000, // 001F RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: _start_udp -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device__start_udp, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 2]) { - be_nested_proto( - 8, /* nstack */ - 3, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(msg_received), - }), - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x680C0000, // 0000 GETUPV R3 U0 - 0x8C0C0700, // 0001 GETMET R3 R3 K0 - 0x5C140000, // 0002 MOVE R5 R0 - 0x5C180200, // 0003 MOVE R6 R1 - 0x5C1C0400, // 0004 MOVE R7 R2 - 0x7C0C0800, // 0005 CALL R3 4 - 0x80040600, // 0006 RET 1 R3 - }) - ), - &be_class_Matter_Device, - }), - 1, /* has constants */ - ( &(const bvalue[ 8]) { /* constants */ - /* K0 */ be_nested_str_weak(udp_server), - /* K1 */ be_nested_str_weak(log), - /* K2 */ be_nested_str_weak(MTR_X3A_X20Starting_X20UDP_X20server_X20on_X20port_X3A_X20), - /* K3 */ be_const_int(2), - /* K4 */ be_nested_str_weak(matter), - /* K5 */ be_nested_str_weak(UDPServer), - /* K6 */ be_nested_str_weak(), - /* K7 */ be_nested_str_weak(start), - }), - be_str_weak(_start_udp), - &be_const_str_solidified, - ( &(const binstruction[27]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x780A0000, // 0001 JMPF R2 #0003 - 0x80000400, // 0002 RET 0 - 0x4C080000, // 0003 LDNIL R2 - 0x1C080202, // 0004 EQ R2 R1 R2 - 0x780A0000, // 0005 JMPF R2 #0007 - 0x540615A3, // 0006 LDINT R1 5540 - 0xB80A0200, // 0007 GETNGBL R2 K1 - 0x600C0008, // 0008 GETGBL R3 G8 - 0x5C100200, // 0009 MOVE R4 R1 - 0x7C0C0200, // 000A CALL R3 1 - 0x000E0403, // 000B ADD R3 K2 R3 - 0x58100003, // 000C LDCONST R4 K3 - 0x7C080400, // 000D CALL R2 2 - 0xB80A0800, // 000E GETNGBL R2 K4 - 0x8C080505, // 000F GETMET R2 R2 K5 - 0x5C100000, // 0010 MOVE R4 R0 - 0x58140006, // 0011 LDCONST R5 K6 - 0x5C180200, // 0012 MOVE R6 R1 - 0x7C080800, // 0013 CALL R2 4 - 0x90020002, // 0014 SETMBR R0 K0 R2 - 0x88080100, // 0015 GETMBR R2 R0 K0 - 0x8C080507, // 0016 GETMET R2 R2 K7 - 0x84100000, // 0017 CLOSURE R4 P0 - 0x7C080400, // 0018 CALL R2 2 - 0xA0000000, // 0019 CLOSE R0 - 0x80000000, // 001A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: signal_endpoints_changed -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_signal_endpoints_changed, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(attribute_updated), - /* K1 */ be_const_int(0), - /* K2 */ be_const_int(3), - /* K3 */ be_nested_str_weak(matter), - /* K4 */ be_nested_str_weak(AGGREGATOR_ENDPOINT), - }), - be_str_weak(signal_endpoints_changed), - &be_const_str_solidified, - ( &(const binstruction[14]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x580C0001, // 0001 LDCONST R3 K1 - 0x5412001C, // 0002 LDINT R4 29 - 0x58140002, // 0003 LDCONST R5 K2 - 0x50180000, // 0004 LDBOOL R6 0 0 - 0x7C040A00, // 0005 CALL R1 5 - 0x8C040100, // 0006 GETMET R1 R0 K0 - 0xB80E0600, // 0007 GETNGBL R3 K3 - 0x880C0704, // 0008 GETMBR R3 R3 K4 - 0x5412001C, // 0009 LDINT R4 29 - 0x58140002, // 000A LDCONST R5 K2 - 0x50180000, // 000B LDBOOL R6 0 0 - 0x7C040A00, // 000C CALL R1 5 - 0x80000000, // 000D RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: sort_distinct -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_sort_distinct, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 4, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_const_class(be_class_Matter_Device), - /* K1 */ be_const_int(1), - /* K2 */ be_const_int(0), - /* K3 */ be_nested_str_weak(stop_iteration), - /* K4 */ be_nested_str_weak(remove), - }), - be_str_weak(sort_distinct), - &be_const_str_solidified, - ( &(const binstruction[53]) { /* code */ - 0x58040000, // 0000 LDCONST R1 K0 - 0x60080010, // 0001 GETGBL R2 G16 - 0x600C000C, // 0002 GETGBL R3 G12 - 0x5C100000, // 0003 MOVE R4 R0 - 0x7C0C0200, // 0004 CALL R3 1 - 0x040C0701, // 0005 SUB R3 R3 K1 - 0x400E0203, // 0006 CONNECT R3 K1 R3 - 0x7C080200, // 0007 CALL R2 1 - 0xA8020010, // 0008 EXBLK 0 #001A - 0x5C0C0400, // 0009 MOVE R3 R2 - 0x7C0C0000, // 000A CALL R3 0 - 0x94100003, // 000B GETIDX R4 R0 R3 - 0x5C140600, // 000C MOVE R5 R3 - 0x24180B02, // 000D GT R6 R5 K2 - 0x781A0008, // 000E JMPF R6 #0018 - 0x04180B01, // 000F SUB R6 R5 K1 - 0x94180006, // 0010 GETIDX R6 R0 R6 - 0x24180C04, // 0011 GT R6 R6 R4 - 0x781A0004, // 0012 JMPF R6 #0018 - 0x04180B01, // 0013 SUB R6 R5 K1 - 0x94180006, // 0014 GETIDX R6 R0 R6 - 0x98000A06, // 0015 SETIDX R0 R5 R6 - 0x04140B01, // 0016 SUB R5 R5 K1 - 0x7001FFF4, // 0017 JMP #000D - 0x98000A04, // 0018 SETIDX R0 R5 R4 - 0x7001FFEE, // 0019 JMP #0009 - 0x58080003, // 001A LDCONST R2 K3 - 0xAC080200, // 001B CATCH R2 1 0 - 0xB0080000, // 001C RAISE 2 R0 R0 - 0x58080001, // 001D LDCONST R2 K1 - 0x600C000C, // 001E GETGBL R3 G12 - 0x5C100000, // 001F MOVE R4 R0 - 0x7C0C0200, // 0020 CALL R3 1 - 0x180C0701, // 0021 LE R3 R3 K1 - 0x780E0000, // 0022 JMPF R3 #0024 - 0x80040000, // 0023 RET 1 R0 - 0x940C0102, // 0024 GETIDX R3 R0 K2 - 0x6010000C, // 0025 GETGBL R4 G12 - 0x5C140000, // 0026 MOVE R5 R0 - 0x7C100200, // 0027 CALL R4 1 - 0x14100404, // 0028 LT R4 R2 R4 - 0x78120009, // 0029 JMPF R4 #0034 - 0x94100002, // 002A GETIDX R4 R0 R2 - 0x1C100803, // 002B EQ R4 R4 R3 - 0x78120003, // 002C JMPF R4 #0031 - 0x8C100104, // 002D GETMET R4 R0 K4 - 0x5C180400, // 002E MOVE R6 R2 - 0x7C100400, // 002F CALL R4 2 - 0x70020001, // 0030 JMP #0033 - 0x940C0002, // 0031 GETIDX R3 R0 R2 - 0x00080501, // 0032 ADD R2 R2 K1 - 0x7001FFF0, // 0033 JMP #0025 - 0x80040000, // 0034 RET 1 R0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: mdns_remove_op_discovery_all_fabrics -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_mdns_remove_op_discovery_all_fabrics, /* name */ - be_nested_proto( - 6, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_nested_str_weak(sessions), - /* K1 */ be_nested_str_weak(active_fabrics), - /* K2 */ be_nested_str_weak(get_device_id), - /* K3 */ be_nested_str_weak(get_fabric_id), - /* K4 */ be_nested_str_weak(mdns_remove_op_discovery), - /* K5 */ be_nested_str_weak(stop_iteration), - }), - be_str_weak(mdns_remove_op_discovery_all_fabrics), - &be_const_str_solidified, - ( &(const binstruction[22]) { /* code */ - 0x60040010, // 0000 GETGBL R1 G16 - 0x88080100, // 0001 GETMBR R2 R0 K0 - 0x8C080501, // 0002 GETMET R2 R2 K1 - 0x7C080200, // 0003 CALL R2 1 - 0x7C040200, // 0004 CALL R1 1 - 0xA802000B, // 0005 EXBLK 0 #0012 - 0x5C080200, // 0006 MOVE R2 R1 - 0x7C080000, // 0007 CALL R2 0 - 0x8C0C0502, // 0008 GETMET R3 R2 K2 - 0x7C0C0200, // 0009 CALL R3 1 - 0x780E0005, // 000A JMPF R3 #0011 - 0x8C0C0503, // 000B GETMET R3 R2 K3 - 0x7C0C0200, // 000C CALL R3 1 - 0x780E0002, // 000D JMPF R3 #0011 - 0x8C0C0104, // 000E GETMET R3 R0 K4 - 0x5C140400, // 000F MOVE R5 R2 - 0x7C0C0400, // 0010 CALL R3 2 - 0x7001FFF3, // 0011 JMP #0006 - 0x58040005, // 0012 LDCONST R1 K5 - 0xAC040200, // 0013 CATCH R1 1 0 - 0xB0080000, // 0014 RAISE 2 R0 R0 - 0x80000000, // 0015 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: received_ack -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_received_ack, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(udp_server), - /* K1 */ be_nested_str_weak(received_ack), - }), - be_str_weak(received_ack), - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x5C100200, // 0002 MOVE R4 R1 - 0x7C080400, // 0003 CALL R2 2 - 0x80040400, // 0004 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: resolve_attribute_read_solo -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_resolve_attribute_read_solo, /* name */ - be_nested_proto( - 10, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[11]) { /* constants */ - /* K0 */ be_nested_str_weak(endpoint), - /* K1 */ be_nested_str_weak(cluster), - /* K2 */ be_nested_str_weak(attribute), - /* K3 */ be_nested_str_weak(find_plugin_by_endpoint), - /* K4 */ be_nested_str_weak(status), - /* K5 */ be_nested_str_weak(matter), - /* K6 */ be_nested_str_weak(UNSUPPORTED_ENDPOINT), - /* K7 */ be_nested_str_weak(contains_cluster), - /* K8 */ be_nested_str_weak(UNSUPPORTED_CLUSTER), - /* K9 */ be_nested_str_weak(contains_attribute), - /* K10 */ be_nested_str_weak(UNSUPPORTED_ATTRIBUTE), - }), - be_str_weak(resolve_attribute_read_solo), - &be_const_str_solidified, - ( &(const binstruction[47]) { /* code */ - 0x88080300, // 0000 GETMBR R2 R1 K0 - 0x880C0301, // 0001 GETMBR R3 R1 K1 - 0x88100302, // 0002 GETMBR R4 R1 K2 - 0x4C140000, // 0003 LDNIL R5 - 0x1C140405, // 0004 EQ R5 R2 R5 - 0x74160005, // 0005 JMPT R5 #000C - 0x4C140000, // 0006 LDNIL R5 - 0x1C140605, // 0007 EQ R5 R3 R5 - 0x74160002, // 0008 JMPT R5 #000C - 0x4C140000, // 0009 LDNIL R5 - 0x1C140805, // 000A EQ R5 R4 R5 - 0x78160001, // 000B JMPF R5 #000E - 0x4C140000, // 000C LDNIL R5 - 0x80040A00, // 000D RET 1 R5 - 0x8C140103, // 000E GETMET R5 R0 K3 - 0x5C1C0400, // 000F MOVE R7 R2 - 0x7C140400, // 0010 CALL R5 2 - 0x4C180000, // 0011 LDNIL R6 - 0x1C180A06, // 0012 EQ R6 R5 R6 - 0x781A0005, // 0013 JMPF R6 #001A - 0xB81A0A00, // 0014 GETNGBL R6 K5 - 0x88180D06, // 0015 GETMBR R6 R6 K6 - 0x90060806, // 0016 SETMBR R1 K4 R6 - 0x4C180000, // 0017 LDNIL R6 - 0x80040C00, // 0018 RET 1 R6 - 0x70020013, // 0019 JMP #002E - 0x8C180B07, // 001A GETMET R6 R5 K7 - 0x5C200600, // 001B MOVE R8 R3 - 0x7C180400, // 001C CALL R6 2 - 0x741A0005, // 001D JMPT R6 #0024 - 0xB81A0A00, // 001E GETNGBL R6 K5 - 0x88180D08, // 001F GETMBR R6 R6 K8 - 0x90060806, // 0020 SETMBR R1 K4 R6 - 0x4C180000, // 0021 LDNIL R6 - 0x80040C00, // 0022 RET 1 R6 - 0x70020009, // 0023 JMP #002E - 0x8C180B09, // 0024 GETMET R6 R5 K9 - 0x5C200600, // 0025 MOVE R8 R3 - 0x5C240800, // 0026 MOVE R9 R4 - 0x7C180600, // 0027 CALL R6 3 - 0x741A0004, // 0028 JMPT R6 #002E - 0xB81A0A00, // 0029 GETNGBL R6 K5 - 0x88180D0A, // 002A GETMBR R6 R6 K10 - 0x90060806, // 002B SETMBR R1 K4 R6 - 0x4C180000, // 002C LDNIL R6 - 0x80040C00, // 002D RET 1 R6 - 0x80040A00, // 002E RET 1 R5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: register_http_remote -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_register_http_remote, /* name */ - be_nested_proto( - 9, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 8]) { /* constants */ - /* K0 */ be_nested_str_weak(http_remotes), - /* K1 */ be_nested_str_weak(contains), - /* K2 */ be_nested_str_weak(get_timeout), - /* K3 */ be_nested_str_weak(set_timeout), - /* K4 */ be_nested_str_weak(matter), - /* K5 */ be_nested_str_weak(HTTP_remote), - /* K6 */ be_nested_str_weak(plugins_config_remotes), - /* K7 */ be_nested_str_weak(set_info), - }), - be_str_weak(register_http_remote), - &be_const_str_solidified, - ( &(const binstruction[42]) { /* code */ - 0x880C0100, // 0000 GETMBR R3 R0 K0 - 0x4C100000, // 0001 LDNIL R4 - 0x1C0C0604, // 0002 EQ R3 R3 R4 - 0x780E0002, // 0003 JMPF R3 #0007 - 0x600C0013, // 0004 GETGBL R3 G19 - 0x7C0C0000, // 0005 CALL R3 0 - 0x90020003, // 0006 SETMBR R0 K0 R3 - 0x4C0C0000, // 0007 LDNIL R3 - 0x88100100, // 0008 GETMBR R4 R0 K0 - 0x8C100901, // 0009 GETMET R4 R4 K1 - 0x5C180200, // 000A MOVE R6 R1 - 0x7C100400, // 000B CALL R4 2 - 0x78120009, // 000C JMPF R4 #0017 - 0x88100100, // 000D GETMBR R4 R0 K0 - 0x940C0801, // 000E GETIDX R3 R4 R1 - 0x8C140702, // 000F GETMET R5 R3 K2 - 0x7C140200, // 0010 CALL R5 1 - 0x14140405, // 0011 LT R5 R2 R5 - 0x78160002, // 0012 JMPF R5 #0016 - 0x8C140703, // 0013 GETMET R5 R3 K3 - 0x5C1C0400, // 0014 MOVE R7 R2 - 0x7C140400, // 0015 CALL R5 2 - 0x70020011, // 0016 JMP #0029 - 0xB8120800, // 0017 GETNGBL R4 K4 - 0x8C100905, // 0018 GETMET R4 R4 K5 - 0x5C180000, // 0019 MOVE R6 R0 - 0x5C1C0200, // 001A MOVE R7 R1 - 0x5C200400, // 001B MOVE R8 R2 - 0x7C100800, // 001C CALL R4 4 - 0x5C0C0800, // 001D MOVE R3 R4 - 0x88100106, // 001E GETMBR R4 R0 K6 - 0x8C100901, // 001F GETMET R4 R4 K1 - 0x5C180200, // 0020 MOVE R6 R1 - 0x7C100400, // 0021 CALL R4 2 - 0x78120003, // 0022 JMPF R4 #0027 - 0x8C100707, // 0023 GETMET R4 R3 K7 - 0x88180106, // 0024 GETMBR R6 R0 K6 - 0x94180C01, // 0025 GETIDX R6 R6 R1 - 0x7C100400, // 0026 CALL R4 2 - 0x88100100, // 0027 GETMBR R4 R0 K0 - 0x98100203, // 0028 SETIDX R4 R1 R3 - 0x80040600, // 0029 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: bridge_add_endpoint -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_bridge_add_endpoint, /* name */ - be_nested_proto( - 16, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[20]) { /* constants */ - /* K0 */ be_nested_str_weak(plugins_classes), - /* K1 */ be_nested_str_weak(find), - /* K2 */ be_nested_str_weak(log), - /* K3 */ be_nested_str_weak(MTR_X3A_X20unknown_X20class_X20name_X20_X27), - /* K4 */ be_nested_str_weak(_X27_X20skipping), - /* K5 */ be_const_int(3), - /* K6 */ be_nested_str_weak(next_ep), - /* K7 */ be_nested_str_weak(plugins), - /* K8 */ be_nested_str_weak(push), - /* K9 */ be_nested_str_weak(type), - /* K10 */ be_nested_str_weak(keys), - /* K11 */ be_nested_str_weak(stop_iteration), - /* K12 */ be_nested_str_weak(MTR_X3A_X20adding_X20endpoint_X20_X3D_X20_X25i_X20type_X3A_X25s_X25s), - /* K13 */ be_nested_str_weak(conf_to_log), - /* K14 */ be_const_int(2), - /* K15 */ be_nested_str_weak(plugins_config), - /* K16 */ be_nested_str_weak(plugins_persist), - /* K17 */ be_const_int(1), - /* K18 */ be_nested_str_weak(save_param), - /* K19 */ be_nested_str_weak(signal_endpoints_changed), - }), - be_str_weak(bridge_add_endpoint), - &be_const_str_solidified, - ( &(const binstruction[68]) { /* code */ - 0x880C0100, // 0000 GETMBR R3 R0 K0 - 0x8C0C0701, // 0001 GETMET R3 R3 K1 - 0x5C140200, // 0002 MOVE R5 R1 - 0x7C0C0400, // 0003 CALL R3 2 - 0x4C100000, // 0004 LDNIL R4 - 0x1C100604, // 0005 EQ R4 R3 R4 - 0x78120008, // 0006 JMPF R4 #0010 - 0xB8120400, // 0007 GETNGBL R4 K2 - 0x60140008, // 0008 GETGBL R5 G8 - 0x5C180200, // 0009 MOVE R6 R1 - 0x7C140200, // 000A CALL R5 1 - 0x00160605, // 000B ADD R5 K3 R5 - 0x00140B04, // 000C ADD R5 R5 K4 - 0x58180005, // 000D LDCONST R6 K5 - 0x7C100400, // 000E CALL R4 2 - 0x80000800, // 000F RET 0 - 0x88100106, // 0010 GETMBR R4 R0 K6 - 0x60140008, // 0011 GETGBL R5 G8 - 0x5C180800, // 0012 MOVE R6 R4 - 0x7C140200, // 0013 CALL R5 1 - 0x5C180600, // 0014 MOVE R6 R3 - 0x5C1C0000, // 0015 MOVE R7 R0 - 0x5C200800, // 0016 MOVE R8 R4 - 0x5C240400, // 0017 MOVE R9 R2 - 0x7C180600, // 0018 CALL R6 3 - 0x881C0107, // 0019 GETMBR R7 R0 K7 - 0x8C1C0F08, // 001A GETMET R7 R7 K8 - 0x5C240C00, // 001B MOVE R9 R6 - 0x7C1C0400, // 001C CALL R7 2 - 0x601C0013, // 001D GETGBL R7 G19 - 0x7C1C0000, // 001E CALL R7 0 - 0x981E1201, // 001F SETIDX R7 K9 R1 - 0x60200010, // 0020 GETGBL R8 G16 - 0x8C24050A, // 0021 GETMET R9 R2 K10 - 0x7C240200, // 0022 CALL R9 1 - 0x7C200200, // 0023 CALL R8 1 - 0xA8020004, // 0024 EXBLK 0 #002A - 0x5C241000, // 0025 MOVE R9 R8 - 0x7C240000, // 0026 CALL R9 0 - 0x94280409, // 0027 GETIDX R10 R2 R9 - 0x981C120A, // 0028 SETIDX R7 R9 R10 - 0x7001FFFA, // 0029 JMP #0025 - 0x5820000B, // 002A LDCONST R8 K11 - 0xAC200200, // 002B CATCH R8 1 0 - 0xB0080000, // 002C RAISE 2 R0 R0 - 0xB8220400, // 002D GETNGBL R8 K2 - 0x60240018, // 002E GETGBL R9 G24 - 0x5828000C, // 002F LDCONST R10 K12 - 0x5C2C0800, // 0030 MOVE R11 R4 - 0x5C300200, // 0031 MOVE R12 R1 - 0x8C34010D, // 0032 GETMET R13 R0 K13 - 0x5C3C0400, // 0033 MOVE R15 R2 - 0x7C340400, // 0034 CALL R13 2 - 0x7C240800, // 0035 CALL R9 4 - 0x5828000E, // 0036 LDCONST R10 K14 - 0x7C200400, // 0037 CALL R8 2 - 0x8820010F, // 0038 GETMBR R8 R0 K15 - 0x98200A07, // 0039 SETIDX R8 R5 R7 - 0x50200200, // 003A LDBOOL R8 1 0 - 0x90022008, // 003B SETMBR R0 K16 R8 - 0x88200106, // 003C GETMBR R8 R0 K6 - 0x00201111, // 003D ADD R8 R8 K17 - 0x90020C08, // 003E SETMBR R0 K6 R8 - 0x8C200112, // 003F GETMET R8 R0 K18 - 0x7C200200, // 0040 CALL R8 1 - 0x8C200113, // 0041 GETMET R8 R0 K19 - 0x7C200200, // 0042 CALL R8 1 - 0x80040800, // 0043 RET 1 R4 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: is_root_commissioning_open -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_is_root_commissioning_open, /* name */ +be_local_closure(class_Matter_Device_save_before_restart, /* name */ be_nested_proto( 3, /* nstack */ 1, /* argc */ @@ -1832,23 +430,17 @@ be_local_closure(class_Matter_Device_is_root_commissioning_open, /* name */ &be_class_Matter_Device, 1, /* has constants */ ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(commissioning_open), - /* K1 */ be_nested_str_weak(commissioning_admin_fabric), + /* K0 */ be_nested_str_weak(stop_basic_commissioning), + /* K1 */ be_nested_str_weak(mdns_remove_op_discovery_all_fabrics), }), - be_str_weak(is_root_commissioning_open), + be_str_weak(save_before_restart), &be_const_str_solidified, - ( &(const binstruction[11]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x4C080000, // 0001 LDNIL R2 - 0x20040202, // 0002 NE R1 R1 R2 - 0x78060003, // 0003 JMPF R1 #0008 - 0x88040101, // 0004 GETMBR R1 R0 K1 - 0x4C080000, // 0005 LDNIL R2 - 0x1C040202, // 0006 EQ R1 R1 R2 - 0x74060000, // 0007 JMPT R1 #0009 - 0x50040001, // 0008 LDBOOL R1 0 1 - 0x50040200, // 0009 LDBOOL R1 1 0 - 0x80040200, // 000A RET 1 R1 + ( &(const binstruction[ 5]) { /* code */ + 0x8C040100, // 0000 GETMET R1 R0 K0 + 0x7C040200, // 0001 CALL R1 1 + 0x8C040101, // 0002 GETMET R1 R0 K1 + 0x7C040200, // 0003 CALL R1 1 + 0x80000000, // 0004 RET 0 }) ) ); @@ -1856,12 +448,12 @@ be_local_closure(class_Matter_Device_is_root_commissioning_open, /* name */ /******************************************************************** -** Solidified function: load_param +** Solidified function: every_second ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_load_param, /* name */ +be_local_closure(class_Matter_Device_every_second, /* name */ be_nested_proto( - 12, /* nstack */ + 4, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -1869,180 +461,39 @@ be_local_closure(class_Matter_Device_load_param, /* name */ 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ - ( &(const bvalue[36]) { /* constants */ - /* K0 */ be_nested_str_weak(crypto), - /* K1 */ be_nested_str_weak(FILENAME), - /* K2 */ be_nested_str_weak(read), - /* K3 */ be_nested_str_weak(close), - /* K4 */ be_nested_str_weak(json), - /* K5 */ be_nested_str_weak(load), - /* K6 */ be_nested_str_weak(root_discriminator), - /* K7 */ be_nested_str_weak(find), - /* K8 */ be_nested_str_weak(distinguish), - /* K9 */ be_nested_str_weak(root_passcode), - /* K10 */ be_nested_str_weak(passcode), - /* K11 */ be_nested_str_weak(ipv4only), - /* K12 */ be_nested_str_weak(disable_bridge_mode), - /* K13 */ be_nested_str_weak(next_ep), - /* K14 */ be_nested_str_weak(nextep), - /* K15 */ be_nested_str_weak(plugins_config), - /* K16 */ be_nested_str_weak(config), - /* K17 */ be_nested_str_weak(debug), - /* K18 */ be_nested_str_weak(log), - /* K19 */ be_nested_str_weak(MTR_X3A_X20Load_config_X20_X3D_X20_X25s), - /* K20 */ be_const_int(3), - /* K21 */ be_nested_str_weak(adjust_next_ep), - /* K22 */ be_nested_str_weak(check_config_ep), - /* K23 */ be_nested_str_weak(plugins_persist), - /* K24 */ be_nested_str_weak(plugins_config_remotes), - /* K25 */ be_nested_str_weak(remotes), - /* K26 */ be_nested_str_weak(MTR_X3A_X20load_remotes_X20_X3D_X20), - /* K27 */ be_nested_str_weak(io_error), - /* K28 */ be_nested_str_weak(MTR_X3A_X20load_param_X20Exception_X3A), - /* K29 */ be_nested_str_weak(_X7C), - /* K30 */ be_const_int(2), - /* K31 */ be_nested_str_weak(random), - /* K32 */ be_nested_str_weak(get), - /* K33 */ be_const_int(0), - /* K34 */ be_nested_str_weak(generate_random_passcode), - /* K35 */ be_nested_str_weak(save_param), + ( &(const bvalue[ 7]) { /* constants */ + /* K0 */ be_nested_str_weak(sessions), + /* K1 */ be_nested_str_weak(every_second), + /* K2 */ be_nested_str_weak(message_handler), + /* K3 */ be_nested_str_weak(events), + /* K4 */ be_nested_str_weak(commissioning_open), + /* K5 */ be_nested_str_weak(tasmota), + /* K6 */ be_nested_str_weak(time_reached), }), - be_str_weak(load_param), + be_str_weak(every_second), &be_const_str_solidified, - ( &(const binstruction[133]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x50080000, // 0001 LDBOOL R2 0 0 - 0xA8020054, // 0002 EXBLK 0 #0058 - 0x600C0011, // 0003 GETGBL R3 G17 - 0x88100101, // 0004 GETMBR R4 R0 K1 - 0x7C0C0200, // 0005 CALL R3 1 - 0x8C100702, // 0006 GETMET R4 R3 K2 - 0x7C100200, // 0007 CALL R4 1 - 0x8C140703, // 0008 GETMET R5 R3 K3 - 0x7C140200, // 0009 CALL R5 1 - 0xA4160800, // 000A IMPORT R5 K4 - 0x8C180B05, // 000B GETMET R6 R5 K5 - 0x5C200800, // 000C MOVE R8 R4 - 0x7C180400, // 000D CALL R6 2 - 0x8C1C0D07, // 000E GETMET R7 R6 K7 - 0x58240008, // 000F LDCONST R9 K8 - 0x88280106, // 0010 GETMBR R10 R0 K6 - 0x7C1C0600, // 0011 CALL R7 3 - 0x90020C07, // 0012 SETMBR R0 K6 R7 - 0x8C1C0D07, // 0013 GETMET R7 R6 K7 - 0x5824000A, // 0014 LDCONST R9 K10 - 0x88280109, // 0015 GETMBR R10 R0 K9 - 0x7C1C0600, // 0016 CALL R7 3 - 0x90021207, // 0017 SETMBR R0 K9 R7 - 0x601C0017, // 0018 GETGBL R7 G23 - 0x8C200D07, // 0019 GETMET R8 R6 K7 - 0x5828000B, // 001A LDCONST R10 K11 - 0x502C0000, // 001B LDBOOL R11 0 0 - 0x7C200600, // 001C CALL R8 3 - 0x7C1C0200, // 001D CALL R7 1 - 0x90021607, // 001E SETMBR R0 K11 R7 - 0x601C0017, // 001F GETGBL R7 G23 - 0x8C200D07, // 0020 GETMET R8 R6 K7 - 0x5828000C, // 0021 LDCONST R10 K12 - 0x502C0000, // 0022 LDBOOL R11 0 0 - 0x7C200600, // 0023 CALL R8 3 - 0x7C1C0200, // 0024 CALL R7 1 - 0x90021807, // 0025 SETMBR R0 K12 R7 - 0x8C1C0D07, // 0026 GETMET R7 R6 K7 - 0x5824000E, // 0027 LDCONST R9 K14 - 0x8828010D, // 0028 GETMBR R10 R0 K13 - 0x7C1C0600, // 0029 CALL R7 3 - 0x90021A07, // 002A SETMBR R0 K13 R7 - 0x8C1C0D07, // 002B GETMET R7 R6 K7 - 0x58240010, // 002C LDCONST R9 K16 - 0x7C1C0400, // 002D CALL R7 2 - 0x90021E07, // 002E SETMBR R0 K15 R7 - 0x601C0017, // 002F GETGBL R7 G23 - 0x8C200D07, // 0030 GETMET R8 R6 K7 - 0x58280011, // 0031 LDCONST R10 K17 - 0x7C200400, // 0032 CALL R8 2 - 0x7C1C0200, // 0033 CALL R7 1 - 0x90022207, // 0034 SETMBR R0 K17 R7 - 0x881C010F, // 0035 GETMBR R7 R0 K15 - 0x4C200000, // 0036 LDNIL R8 - 0x201C0E08, // 0037 NE R7 R7 R8 - 0x781E000D, // 0038 JMPF R7 #0047 - 0xB81E2400, // 0039 GETNGBL R7 K18 - 0x60200018, // 003A GETGBL R8 G24 - 0x58240013, // 003B LDCONST R9 K19 - 0x8828010F, // 003C GETMBR R10 R0 K15 - 0x7C200400, // 003D CALL R8 2 - 0x58240014, // 003E LDCONST R9 K20 - 0x7C1C0400, // 003F CALL R7 2 - 0x8C1C0115, // 0040 GETMET R7 R0 K21 - 0x7C1C0200, // 0041 CALL R7 1 - 0x8C1C0116, // 0042 GETMET R7 R0 K22 - 0x7C1C0200, // 0043 CALL R7 1 - 0x5C080E00, // 0044 MOVE R2 R7 - 0x501C0200, // 0045 LDBOOL R7 1 0 - 0x90022E07, // 0046 SETMBR R0 K23 R7 - 0x8C1C0D07, // 0047 GETMET R7 R6 K7 - 0x58240019, // 0048 LDCONST R9 K25 - 0x60280013, // 0049 GETGBL R10 G19 - 0x7C280000, // 004A CALL R10 0 - 0x7C1C0600, // 004B CALL R7 3 - 0x90023007, // 004C SETMBR R0 K24 R7 - 0x881C0118, // 004D GETMBR R7 R0 K24 - 0x781E0006, // 004E JMPF R7 #0056 - 0xB81E2400, // 004F GETNGBL R7 K18 - 0x60200008, // 0050 GETGBL R8 G8 - 0x88240118, // 0051 GETMBR R9 R0 K24 - 0x7C200200, // 0052 CALL R8 1 - 0x00223408, // 0053 ADD R8 K26 R8 - 0x58240014, // 0054 LDCONST R9 K20 - 0x7C1C0400, // 0055 CALL R7 2 - 0xA8040001, // 0056 EXBLK 1 1 - 0x70020011, // 0057 JMP #006A - 0xAC0C0002, // 0058 CATCH R3 0 2 - 0x7002000E, // 0059 JMP #0069 - 0x2014071B, // 005A NE R5 R3 K27 - 0x7816000B, // 005B JMPF R5 #0068 - 0xB8162400, // 005C GETNGBL R5 K18 - 0x60180008, // 005D GETGBL R6 G8 - 0x5C1C0600, // 005E MOVE R7 R3 - 0x7C180200, // 005F CALL R6 1 - 0x001A3806, // 0060 ADD R6 K28 R6 - 0x00180D1D, // 0061 ADD R6 R6 K29 - 0x601C0008, // 0062 GETGBL R7 G8 - 0x5C200800, // 0063 MOVE R8 R4 - 0x7C1C0200, // 0064 CALL R7 1 - 0x00180C07, // 0065 ADD R6 R6 R7 - 0x581C001E, // 0066 LDCONST R7 K30 - 0x7C140400, // 0067 CALL R5 2 - 0x70020000, // 0068 JMP #006A - 0xB0080000, // 0069 RAISE 2 R0 R0 - 0x880C0106, // 006A GETMBR R3 R0 K6 - 0x4C100000, // 006B LDNIL R4 - 0x1C0C0604, // 006C EQ R3 R3 R4 - 0x780E000A, // 006D JMPF R3 #0079 - 0x8C0C031F, // 006E GETMET R3 R1 K31 - 0x5814001E, // 006F LDCONST R5 K30 - 0x7C0C0400, // 0070 CALL R3 2 - 0x8C0C0720, // 0071 GETMET R3 R3 K32 - 0x58140021, // 0072 LDCONST R5 K33 - 0x5818001E, // 0073 LDCONST R6 K30 - 0x7C0C0600, // 0074 CALL R3 3 - 0x54120FFE, // 0075 LDINT R4 4095 - 0x2C0C0604, // 0076 AND R3 R3 R4 - 0x90020C03, // 0077 SETMBR R0 K6 R3 - 0x50080200, // 0078 LDBOOL R2 1 0 - 0x880C0109, // 0079 GETMBR R3 R0 K9 - 0x4C100000, // 007A LDNIL R4 - 0x1C0C0604, // 007B EQ R3 R3 R4 - 0x780E0003, // 007C JMPF R3 #0081 - 0x8C0C0122, // 007D GETMET R3 R0 K34 - 0x7C0C0200, // 007E CALL R3 1 - 0x90021203, // 007F SETMBR R0 K9 R3 - 0x50080200, // 0080 LDBOOL R2 1 0 - 0x780A0001, // 0081 JMPF R2 #0084 - 0x8C0C0123, // 0082 GETMET R3 R0 K35 - 0x7C0C0200, // 0083 CALL R3 1 - 0x80000000, // 0084 RET 0 + ( &(const binstruction[21]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x7C040200, // 0002 CALL R1 1 + 0x88040102, // 0003 GETMBR R1 R0 K2 + 0x8C040301, // 0004 GETMET R1 R1 K1 + 0x7C040200, // 0005 CALL R1 1 + 0x88040103, // 0006 GETMBR R1 R0 K3 + 0x8C040301, // 0007 GETMET R1 R1 K1 + 0x7C040200, // 0008 CALL R1 1 + 0x88040104, // 0009 GETMBR R1 R0 K4 + 0x4C080000, // 000A LDNIL R2 + 0x20040202, // 000B NE R1 R1 R2 + 0x78060006, // 000C JMPF R1 #0014 + 0xB8060A00, // 000D GETNGBL R1 K5 + 0x8C040306, // 000E GETMET R1 R1 K6 + 0x880C0104, // 000F GETMBR R3 R0 K4 + 0x7C040400, // 0010 CALL R1 2 + 0x78060001, // 0011 JMPF R1 #0014 + 0x4C040000, // 0012 LDNIL R1 + 0x90020801, // 0013 SETMBR R0 K4 R1 + 0x80000000, // 0014 RET 0 }) ) ); @@ -2050,12 +501,130 @@ be_local_closure(class_Matter_Device_load_param, /* name */ /******************************************************************** -** Solidified function: start_commissioning_complete +** Solidified function: stop ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_start_commissioning_complete, /* name */ +be_local_closure(class_Matter_Device_stop, /* name */ be_nested_proto( - 10, /* nstack */ + 4, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota), + /* K1 */ be_nested_str_weak(remove_driver), + /* K2 */ be_nested_str_weak(udp_server), + /* K3 */ be_nested_str_weak(stop), + }), + be_str_weak(stop), + &be_const_str_solidified, + ( &(const binstruction[10]) { /* code */ + 0xB8060000, // 0000 GETNGBL R1 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x5C0C0000, // 0002 MOVE R3 R0 + 0x7C040400, // 0003 CALL R1 2 + 0x88040102, // 0004 GETMBR R1 R0 K2 + 0x78060002, // 0005 JMPF R1 #0009 + 0x88040102, // 0006 GETMBR R1 R0 K2 + 0x8C040303, // 0007 GETMET R1 R1 K3 + 0x7C040200, // 0008 CALL R1 1 + 0x80000000, // 0009 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: every_250ms +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_every_250ms, /* name */ + be_nested_proto( + 4, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(read_sensors_scheduler), + /* K1 */ be_const_int(0), + /* K2 */ be_nested_str_weak(plugins), + /* K3 */ be_nested_str_weak(every_250ms), + /* K4 */ be_const_int(1), + }), + be_str_weak(every_250ms), + &be_const_str_solidified, + ( &(const binstruction[15]) { /* code */ + 0x8C040100, // 0000 GETMET R1 R0 K0 + 0x7C040200, // 0001 CALL R1 1 + 0x58040001, // 0002 LDCONST R1 K1 + 0x6008000C, // 0003 GETGBL R2 G12 + 0x880C0102, // 0004 GETMBR R3 R0 K2 + 0x7C080200, // 0005 CALL R2 1 + 0x14080202, // 0006 LT R2 R1 R2 + 0x780A0005, // 0007 JMPF R2 #000E + 0x88080102, // 0008 GETMBR R2 R0 K2 + 0x94080401, // 0009 GETIDX R2 R2 R1 + 0x8C080503, // 000A GETMET R2 R2 K3 + 0x7C080200, // 000B CALL R2 1 + 0x00040304, // 000C ADD R1 R1 K4 + 0x7001FFF4, // 000D JMP #0003 + 0x80000000, // 000E RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: msg_received +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_msg_received, /* name */ + be_nested_proto( + 9, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(message_handler), + /* K1 */ be_nested_str_weak(msg_received), + }), + be_str_weak(msg_received), + &be_const_str_solidified, + ( &(const binstruction[ 7]) { /* code */ + 0x88100100, // 0000 GETMBR R4 R0 K0 + 0x8C100901, // 0001 GETMET R4 R4 K1 + 0x5C180200, // 0002 MOVE R6 R1 + 0x5C1C0400, // 0003 MOVE R7 R2 + 0x5C200600, // 0004 MOVE R8 R3 + 0x7C100800, // 0005 CALL R4 4 + 0x80040800, // 0006 RET 1 R4 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: add_read_sensors_schedule +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_add_read_sensors_schedule, /* name */ + be_nested_proto( + 5, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -2063,44 +632,29 @@ be_local_closure(class_Matter_Device_start_commissioning_complete, /* name */ 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ - ( &(const bvalue[10]) { /* constants */ - /* K0 */ be_nested_str_weak(get_fabric), - /* K1 */ be_nested_str_weak(get_fabric_id), - /* K2 */ be_nested_str_weak(copy), - /* K3 */ be_nested_str_weak(reverse), - /* K4 */ be_nested_str_weak(tohex), - /* K5 */ be_nested_str_weak(get_admin_vendor_name), - /* K6 */ be_nested_str_weak(log), - /* K7 */ be_nested_str_weak(MTR_X3A_X20_X2D_X2D_X2D_X20Commissioning_X20complete_X20for_X20Fabric_X20_X27_X25s_X27_X20_X28Vendor_X20_X25s_X29_X20_X2D_X2D_X2D), - /* K8 */ be_const_int(2), - /* K9 */ be_nested_str_weak(stop_basic_commissioning), + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(probe_sensor_time), + /* K1 */ be_nested_str_weak(probe_sensor_timestamp), + /* K2 */ be_nested_str_weak(matter), + /* K3 */ be_nested_str_weak(jitter), }), - be_str_weak(start_commissioning_complete), + be_str_weak(add_read_sensors_schedule), &be_const_str_solidified, - ( &(const binstruction[23]) { /* code */ - 0x8C080300, // 0000 GETMET R2 R1 K0 - 0x7C080200, // 0001 CALL R2 1 - 0x8C0C0501, // 0002 GETMET R3 R2 K1 - 0x7C0C0200, // 0003 CALL R3 1 - 0x8C0C0702, // 0004 GETMET R3 R3 K2 - 0x7C0C0200, // 0005 CALL R3 1 - 0x8C0C0703, // 0006 GETMET R3 R3 K3 - 0x7C0C0200, // 0007 CALL R3 1 - 0x8C0C0704, // 0008 GETMET R3 R3 K4 - 0x7C0C0200, // 0009 CALL R3 1 - 0x8C100505, // 000A GETMET R4 R2 K5 - 0x7C100200, // 000B CALL R4 1 - 0xB8160C00, // 000C GETNGBL R5 K6 - 0x60180018, // 000D GETGBL R6 G24 - 0x581C0007, // 000E LDCONST R7 K7 - 0x5C200600, // 000F MOVE R8 R3 - 0x5C240800, // 0010 MOVE R9 R4 - 0x7C180600, // 0011 CALL R6 3 - 0x581C0008, // 0012 LDCONST R7 K8 - 0x7C140400, // 0013 CALL R5 2 - 0x8C140109, // 0014 GETMET R5 R0 K9 - 0x7C140200, // 0015 CALL R5 1 - 0x80000000, // 0016 RET 0 + ( &(const binstruction[14]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x4C0C0000, // 0001 LDNIL R3 + 0x1C080403, // 0002 EQ R2 R2 R3 + 0x740A0002, // 0003 JMPT R2 #0007 + 0x88080100, // 0004 GETMBR R2 R0 K0 + 0x24080401, // 0005 GT R2 R2 R1 + 0x780A0005, // 0006 JMPF R2 #000D + 0x90020001, // 0007 SETMBR R0 K0 R1 + 0xB80A0400, // 0008 GETNGBL R2 K2 + 0x8C080503, // 0009 GETMET R2 R2 K3 + 0x5C100200, // 000A MOVE R4 R1 + 0x7C080400, // 000B CALL R2 2 + 0x90020202, // 000C SETMBR R0 K1 R2 + 0x80000000, // 000D RET 0 }) ) ); @@ -2160,80 +714,265 @@ be_local_closure(class_Matter_Device_attribute_updated, /* name */ /******************************************************************** -** Solidified function: k2l +** Solidified function: invoke_request ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_k2l, /* name */ +be_local_closure(class_Matter_Device_invoke_request, /* name */ be_nested_proto( - 8, /* nstack */ + 12, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 8]) { /* constants */ + /* K0 */ be_const_int(0), + /* K1 */ be_nested_str_weak(endpoint), + /* K2 */ be_nested_str_weak(plugins), + /* K3 */ be_nested_str_weak(invoke_request), + /* K4 */ be_const_int(1), + /* K5 */ be_nested_str_weak(status), + /* K6 */ be_nested_str_weak(matter), + /* K7 */ be_nested_str_weak(UNSUPPORTED_ENDPOINT), + }), + be_str_weak(invoke_request), + &be_const_str_solidified, + ( &(const binstruction[24]) { /* code */ + 0x58100000, // 0000 LDCONST R4 K0 + 0x88140701, // 0001 GETMBR R5 R3 K1 + 0x6018000C, // 0002 GETGBL R6 G12 + 0x881C0102, // 0003 GETMBR R7 R0 K2 + 0x7C180200, // 0004 CALL R6 1 + 0x14180806, // 0005 LT R6 R4 R6 + 0x781A000C, // 0006 JMPF R6 #0014 + 0x88180102, // 0007 GETMBR R6 R0 K2 + 0x94180C04, // 0008 GETIDX R6 R6 R4 + 0x881C0D01, // 0009 GETMBR R7 R6 K1 + 0x1C1C0E05, // 000A EQ R7 R7 R5 + 0x781E0005, // 000B JMPF R7 #0012 + 0x8C1C0D03, // 000C GETMET R7 R6 K3 + 0x5C240200, // 000D MOVE R9 R1 + 0x5C280400, // 000E MOVE R10 R2 + 0x5C2C0600, // 000F MOVE R11 R3 + 0x7C1C0800, // 0010 CALL R7 4 + 0x80040E00, // 0011 RET 1 R7 + 0x00100904, // 0012 ADD R4 R4 K4 + 0x7001FFED, // 0013 JMP #0002 + 0xB81A0C00, // 0014 GETNGBL R6 K6 + 0x88180D07, // 0015 GETMBR R6 R6 K7 + 0x900E0A06, // 0016 SETMBR R3 K5 R6 + 0x80000000, // 0017 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: autoconf_device +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_autoconf_device, /* name */ + be_nested_proto( + 5, /* nstack */ 1, /* argc */ - 4, /* varg */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[15]) { /* constants */ + /* K0 */ be_nested_str_weak(json), + /* K1 */ be_nested_str_weak(plugins), + /* K2 */ be_const_int(0), + /* K3 */ be_nested_str_weak(plugins_persist), + /* K4 */ be_nested_str_weak(plugins_config), + /* K5 */ be_nested_str_weak(autoconf_device_map), + /* K6 */ be_nested_str_weak(plugins_config_remotes), + /* K7 */ be_nested_str_weak(adjust_next_ep), + /* K8 */ be_nested_str_weak(log), + /* K9 */ be_nested_str_weak(MTR_X3A_X20autoconfig_X20_X3D_X20), + /* K10 */ be_const_int(3), + /* K11 */ be_nested_str_weak(_instantiate_plugins_from_config), + /* K12 */ be_nested_str_weak(sessions), + /* K13 */ be_nested_str_weak(count_active_fabrics), + /* K14 */ be_nested_str_weak(save_param), + }), + be_str_weak(autoconf_device), + &be_const_str_solidified, + ( &(const binstruction[39]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x6008000C, // 0001 GETGBL R2 G12 + 0x880C0101, // 0002 GETMBR R3 R0 K1 + 0x7C080200, // 0003 CALL R2 1 + 0x24080502, // 0004 GT R2 R2 K2 + 0x780A0000, // 0005 JMPF R2 #0007 + 0x80000400, // 0006 RET 0 + 0x88080103, // 0007 GETMBR R2 R0 K3 + 0x740A000E, // 0008 JMPT R2 #0018 + 0x8C080105, // 0009 GETMET R2 R0 K5 + 0x7C080200, // 000A CALL R2 1 + 0x90020802, // 000B SETMBR R0 K4 R2 + 0x60080013, // 000C GETGBL R2 G19 + 0x7C080000, // 000D CALL R2 0 + 0x90020C02, // 000E SETMBR R0 K6 R2 + 0x8C080107, // 000F GETMET R2 R0 K7 + 0x7C080200, // 0010 CALL R2 1 + 0xB80A1000, // 0011 GETNGBL R2 K8 + 0x600C0008, // 0012 GETGBL R3 G8 + 0x88100104, // 0013 GETMBR R4 R0 K4 + 0x7C0C0200, // 0014 CALL R3 1 + 0x000E1203, // 0015 ADD R3 K9 R3 + 0x5810000A, // 0016 LDCONST R4 K10 + 0x7C080400, // 0017 CALL R2 2 + 0x8C08010B, // 0018 GETMET R2 R0 K11 + 0x88100104, // 0019 GETMBR R4 R0 K4 + 0x7C080400, // 001A CALL R2 2 + 0x88080103, // 001B GETMBR R2 R0 K3 + 0x740A0008, // 001C JMPT R2 #0026 + 0x8808010C, // 001D GETMBR R2 R0 K12 + 0x8C08050D, // 001E GETMET R2 R2 K13 + 0x7C080200, // 001F CALL R2 1 + 0x24080502, // 0020 GT R2 R2 K2 + 0x780A0003, // 0021 JMPF R2 #0026 + 0x50080200, // 0022 LDBOOL R2 1 0 + 0x90020602, // 0023 SETMBR R0 K3 R2 + 0x8C08010E, // 0024 GETMET R2 R0 K14 + 0x7C080200, // 0025 CALL R2 1 + 0x80000000, // 0026 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_plugin_class_displayname +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_get_plugin_class_displayname, /* name */ + be_nested_proto( + 5, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(plugins_classes), + /* K1 */ be_nested_str_weak(find), + /* K2 */ be_nested_str_weak(DISPLAY_NAME), + /* K3 */ be_nested_str_weak(), + }), + be_str_weak(get_plugin_class_displayname), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x5C100200, // 0002 MOVE R4 R1 + 0x7C080400, // 0003 CALL R2 2 + 0x780A0001, // 0004 JMPF R2 #0007 + 0x880C0502, // 0005 GETMBR R3 R2 K2 + 0x70020000, // 0006 JMP #0008 + 0x580C0003, // 0007 LDCONST R3 K3 + 0x80040600, // 0008 RET 1 R3 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: every_50ms +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_every_50ms, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(tick), + /* K1 */ be_const_int(1), + /* K2 */ be_nested_str_weak(message_handler), + /* K3 */ be_nested_str_weak(every_50ms), + }), + be_str_weak(every_50ms), + &be_const_str_solidified, + ( &(const binstruction[ 7]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x00040301, // 0001 ADD R1 R1 K1 + 0x90020001, // 0002 SETMBR R0 K0 R1 + 0x88040102, // 0003 GETMBR R1 R0 K2 + 0x8C040303, // 0004 GETMET R1 R1 K3 + 0x7C040200, // 0005 CALL R1 1 + 0x80000000, // 0006 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: button_handler +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_button_handler, /* name */ + be_nested_proto( + 14, /* nstack */ + 5, /* argc */ + 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_const_class(be_class_Matter_Device), - /* K1 */ be_nested_str_weak(keys), - /* K2 */ be_nested_str_weak(push), - /* K3 */ be_nested_str_weak(stop_iteration), - /* K4 */ be_const_int(1), - /* K5 */ be_const_int(0), + /* K0 */ be_const_int(0), + /* K1 */ be_nested_str_weak(introspect), + /* K2 */ be_nested_str_weak(plugins), + /* K3 */ be_nested_str_weak(contains), + /* K4 */ be_nested_str_weak(button_handler), + /* K5 */ be_const_int(1), }), - be_str_weak(k2l), + be_str_weak(button_handler), &be_const_str_solidified, - ( &(const binstruction[50]) { /* code */ - 0x58040000, // 0000 LDCONST R1 K0 - 0x60080012, // 0001 GETGBL R2 G18 - 0x7C080000, // 0002 CALL R2 0 - 0x4C0C0000, // 0003 LDNIL R3 - 0x1C0C0003, // 0004 EQ R3 R0 R3 - 0x780E0000, // 0005 JMPF R3 #0007 - 0x80040400, // 0006 RET 1 R2 - 0x600C0010, // 0007 GETGBL R3 G16 - 0x8C100101, // 0008 GETMET R4 R0 K1 - 0x7C100200, // 0009 CALL R4 1 - 0x7C0C0200, // 000A CALL R3 1 - 0xA8020005, // 000B EXBLK 0 #0012 - 0x5C100600, // 000C MOVE R4 R3 - 0x7C100000, // 000D CALL R4 0 - 0x8C140502, // 000E GETMET R5 R2 K2 - 0x5C1C0800, // 000F MOVE R7 R4 - 0x7C140400, // 0010 CALL R5 2 - 0x7001FFF9, // 0011 JMP #000C - 0x580C0003, // 0012 LDCONST R3 K3 - 0xAC0C0200, // 0013 CATCH R3 1 0 - 0xB0080000, // 0014 RAISE 2 R0 R0 - 0x600C0010, // 0015 GETGBL R3 G16 - 0x6010000C, // 0016 GETGBL R4 G12 - 0x5C140400, // 0017 MOVE R5 R2 - 0x7C100200, // 0018 CALL R4 1 - 0x04100904, // 0019 SUB R4 R4 K4 - 0x40120804, // 001A CONNECT R4 K4 R4 - 0x7C0C0200, // 001B CALL R3 1 - 0xA8020010, // 001C EXBLK 0 #002E - 0x5C100600, // 001D MOVE R4 R3 - 0x7C100000, // 001E CALL R4 0 - 0x94140404, // 001F GETIDX R5 R2 R4 - 0x5C180800, // 0020 MOVE R6 R4 - 0x241C0D05, // 0021 GT R7 R6 K5 - 0x781E0008, // 0022 JMPF R7 #002C - 0x041C0D04, // 0023 SUB R7 R6 K4 - 0x941C0407, // 0024 GETIDX R7 R2 R7 - 0x241C0E05, // 0025 GT R7 R7 R5 - 0x781E0004, // 0026 JMPF R7 #002C - 0x041C0D04, // 0027 SUB R7 R6 K4 - 0x941C0407, // 0028 GETIDX R7 R2 R7 - 0x98080C07, // 0029 SETIDX R2 R6 R7 - 0x04180D04, // 002A SUB R6 R6 K4 - 0x7001FFF4, // 002B JMP #0021 - 0x98080C05, // 002C SETIDX R2 R6 R5 - 0x7001FFEE, // 002D JMP #001D - 0x580C0003, // 002E LDCONST R3 K3 - 0xAC0C0200, // 002F CATCH R3 1 0 - 0xB0080000, // 0030 RAISE 2 R0 R0 - 0x80040400, // 0031 RET 1 R2 + ( &(const binstruction[25]) { /* code */ + 0x58140000, // 0000 LDCONST R5 K0 + 0xA41A0200, // 0001 IMPORT R6 K1 + 0x601C000C, // 0002 GETGBL R7 G12 + 0x88200102, // 0003 GETMBR R8 R0 K2 + 0x7C1C0200, // 0004 CALL R7 1 + 0x141C0A07, // 0005 LT R7 R5 R7 + 0x781E0010, // 0006 JMPF R7 #0018 + 0x881C0102, // 0007 GETMBR R7 R0 K2 + 0x941C0E05, // 0008 GETIDX R7 R7 R5 + 0x8C200D03, // 0009 GETMET R8 R6 K3 + 0x5C280E00, // 000A MOVE R10 R7 + 0x582C0004, // 000B LDCONST R11 K4 + 0x7C200600, // 000C CALL R8 3 + 0x78220007, // 000D JMPF R8 #0016 + 0x88200102, // 000E GETMBR R8 R0 K2 + 0x94201005, // 000F GETIDX R8 R8 R5 + 0x8C201104, // 0010 GETMET R8 R8 K4 + 0x5C280200, // 0011 MOVE R10 R1 + 0x5C2C0400, // 0012 MOVE R11 R2 + 0x5C300600, // 0013 MOVE R12 R3 + 0x5C340800, // 0014 MOVE R13 R4 + 0x7C200A00, // 0015 CALL R8 5 + 0x00140B05, // 0016 ADD R5 R5 K5 + 0x7001FFE9, // 0017 JMP #0002 + 0x80000000, // 0018 RET 0 }) ) ); @@ -2371,12 +1110,12 @@ be_local_closure(class_Matter_Device_register_commands, /* name */ /******************************************************************** -** Solidified function: check_config_ep +** Solidified function: compute_qrcode_content ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_check_config_ep, /* name */ +be_local_closure(class_Matter_Device_compute_qrcode_content, /* name */ be_nested_proto( - 10, /* nstack */ + 8, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -2384,102 +1123,63 @@ be_local_closure(class_Matter_Device_check_config_ep, /* name */ 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ - ( &(const bvalue[14]) { /* constants */ - /* K0 */ be_nested_str_weak(plugins_config), - /* K1 */ be_nested_str_weak(keys), - /* K2 */ be_nested_str_weak(push), - /* K3 */ be_nested_str_weak(stop_iteration), - /* K4 */ be_const_int(0), - /* K5 */ be_nested_str_weak(log), - /* K6 */ be_nested_str_weak(MTR_X3A_X20invalid_X20entry_X20with_X20ep_X20_X270_X27), - /* K7 */ be_const_int(2), - /* K8 */ be_nested_str_weak(remove), + ( &(const bvalue[12]) { /* constants */ + /* K0 */ be_nested_str_weak(resize), + /* K1 */ be_nested_str_weak(setbits), + /* K2 */ be_const_int(3), + /* K3 */ be_nested_str_weak(VENDOR_ID), + /* K4 */ be_nested_str_weak(PRODUCT_ID), + /* K5 */ be_nested_str_weak(root_discriminator), + /* K6 */ be_nested_str_weak(root_passcode), + /* K7 */ be_const_int(134217727), + /* K8 */ be_nested_str_weak(MT_X3A), /* K9 */ be_nested_str_weak(matter), - /* K10 */ be_nested_str_weak(AGGREGATOR_ENDPOINT), - /* K11 */ be_nested_str_weak(MTR_X3A_X20endpoint_X20_X25s_X20collides_X20wit_X20aggregator_X2C_X20relocating_X20to_X20_X25s), - /* K12 */ be_nested_str_weak(next_ep), - /* K13 */ be_const_int(1), + /* K10 */ be_nested_str_weak(Base38), + /* K11 */ be_nested_str_weak(encode), }), - be_str_weak(check_config_ep), + be_str_weak(compute_qrcode_content), &be_const_str_solidified, - ( &(const binstruction[77]) { /* code */ - 0x50040000, // 0000 LDBOOL R1 0 0 - 0x60080012, // 0001 GETGBL R2 G18 - 0x7C080000, // 0002 CALL R2 0 - 0x600C0010, // 0003 GETGBL R3 G16 - 0x88100100, // 0004 GETMBR R4 R0 K0 - 0x8C100901, // 0005 GETMET R4 R4 K1 - 0x7C100200, // 0006 CALL R4 1 - 0x7C0C0200, // 0007 CALL R3 1 - 0xA8020007, // 0008 EXBLK 0 #0011 - 0x5C100600, // 0009 MOVE R4 R3 - 0x7C100000, // 000A CALL R4 0 - 0x8C140502, // 000B GETMET R5 R2 K2 - 0x601C0009, // 000C GETGBL R7 G9 - 0x5C200800, // 000D MOVE R8 R4 - 0x7C1C0200, // 000E CALL R7 1 - 0x7C140400, // 000F CALL R5 2 - 0x7001FFF7, // 0010 JMP #0009 - 0x580C0003, // 0011 LDCONST R3 K3 - 0xAC0C0200, // 0012 CATCH R3 1 0 - 0xB0080000, // 0013 RAISE 2 R0 R0 - 0x600C0010, // 0014 GETGBL R3 G16 - 0x5C100400, // 0015 MOVE R4 R2 - 0x7C0C0200, // 0016 CALL R3 1 - 0xA8020030, // 0017 EXBLK 0 #0049 - 0x5C100600, // 0018 MOVE R4 R3 - 0x7C100000, // 0019 CALL R4 0 - 0x1C140904, // 001A EQ R5 R4 K4 - 0x7816000B, // 001B JMPF R5 #0028 - 0xB8160A00, // 001C GETNGBL R5 K5 - 0x58180006, // 001D LDCONST R6 K6 - 0x581C0007, // 001E LDCONST R7 K7 - 0x7C140400, // 001F CALL R5 2 - 0x88140100, // 0020 GETMBR R5 R0 K0 - 0x8C140B08, // 0021 GETMET R5 R5 K8 - 0x601C0008, // 0022 GETGBL R7 G8 - 0x5C200800, // 0023 MOVE R8 R4 - 0x7C1C0200, // 0024 CALL R7 1 - 0x7C140400, // 0025 CALL R5 2 - 0x50040200, // 0026 LDBOOL R1 1 0 - 0x7002001F, // 0027 JMP #0048 - 0xB8161200, // 0028 GETNGBL R5 K9 - 0x88140B0A, // 0029 GETMBR R5 R5 K10 - 0x1C140805, // 002A EQ R5 R4 R5 - 0x7816001B, // 002B JMPF R5 #0048 - 0x50040200, // 002C LDBOOL R1 1 0 - 0xB8160A00, // 002D GETNGBL R5 K5 - 0x60180018, // 002E GETGBL R6 G24 - 0x581C000B, // 002F LDCONST R7 K11 - 0x5C200800, // 0030 MOVE R8 R4 - 0x8824010C, // 0031 GETMBR R9 R0 K12 - 0x7C180600, // 0032 CALL R6 3 - 0x581C0007, // 0033 LDCONST R7 K7 - 0x7C140400, // 0034 CALL R5 2 - 0x60140008, // 0035 GETGBL R5 G8 - 0x8818010C, // 0036 GETMBR R6 R0 K12 - 0x7C140200, // 0037 CALL R5 1 - 0x88180100, // 0038 GETMBR R6 R0 K0 - 0x601C0008, // 0039 GETGBL R7 G8 - 0x5C200800, // 003A MOVE R8 R4 - 0x7C1C0200, // 003B CALL R7 1 - 0x88200100, // 003C GETMBR R8 R0 K0 - 0x941C1007, // 003D GETIDX R7 R8 R7 - 0x98180A07, // 003E SETIDX R6 R5 R7 - 0x88140100, // 003F GETMBR R5 R0 K0 - 0x8C140B08, // 0040 GETMET R5 R5 K8 - 0x601C0008, // 0041 GETGBL R7 G8 - 0x5C200800, // 0042 MOVE R8 R4 - 0x7C1C0200, // 0043 CALL R7 1 - 0x7C140400, // 0044 CALL R5 2 - 0x8814010C, // 0045 GETMBR R5 R0 K12 - 0x00140B0D, // 0046 ADD R5 R5 K13 - 0x90021805, // 0047 SETMBR R0 K12 R5 - 0x7001FFCE, // 0048 JMP #0018 - 0x580C0003, // 0049 LDCONST R3 K3 - 0xAC0C0200, // 004A CATCH R3 1 0 - 0xB0080000, // 004B RAISE 2 R0 R0 - 0x80040200, // 004C RET 1 R1 + ( &(const binstruction[40]) { /* code */ + 0x60040015, // 0000 GETGBL R1 G21 + 0x7C040000, // 0001 CALL R1 0 + 0x8C040300, // 0002 GETMET R1 R1 K0 + 0x540E000A, // 0003 LDINT R3 11 + 0x7C040400, // 0004 CALL R1 2 + 0x8C080301, // 0005 GETMET R2 R1 K1 + 0x58100002, // 0006 LDCONST R4 K2 + 0x5416000F, // 0007 LDINT R5 16 + 0x88180103, // 0008 GETMBR R6 R0 K3 + 0x7C080800, // 0009 CALL R2 4 + 0x8C080301, // 000A GETMET R2 R1 K1 + 0x54120012, // 000B LDINT R4 19 + 0x5416000F, // 000C LDINT R5 16 + 0x88180104, // 000D GETMBR R6 R0 K4 + 0x7C080800, // 000E CALL R2 4 + 0x8C080301, // 000F GETMET R2 R1 K1 + 0x54120024, // 0010 LDINT R4 37 + 0x54160007, // 0011 LDINT R5 8 + 0x541A0003, // 0012 LDINT R6 4 + 0x7C080800, // 0013 CALL R2 4 + 0x8C080301, // 0014 GETMET R2 R1 K1 + 0x5412002C, // 0015 LDINT R4 45 + 0x5416000B, // 0016 LDINT R5 12 + 0x88180105, // 0017 GETMBR R6 R0 K5 + 0x541E0FFE, // 0018 LDINT R7 4095 + 0x2C180C07, // 0019 AND R6 R6 R7 + 0x7C080800, // 001A CALL R2 4 + 0x8C080301, // 001B GETMET R2 R1 K1 + 0x54120038, // 001C LDINT R4 57 + 0x5416001A, // 001D LDINT R5 27 + 0x88180106, // 001E GETMBR R6 R0 K6 + 0x2C180D07, // 001F AND R6 R6 K7 + 0x7C080800, // 0020 CALL R2 4 + 0xB80A1200, // 0021 GETNGBL R2 K9 + 0x8808050A, // 0022 GETMBR R2 R2 K10 + 0x8C08050B, // 0023 GETMET R2 R2 K11 + 0x5C100200, // 0024 MOVE R4 R1 + 0x7C080400, // 0025 CALL R2 2 + 0x000A1002, // 0026 ADD R2 K8 R2 + 0x80040400, // 0027 RET 1 R2 }) ) ); @@ -2487,967 +1187,10 @@ be_local_closure(class_Matter_Device_check_config_ep, /* name */ /******************************************************************** -** Solidified function: every_50ms +** Solidified function: resolve_attribute_read_solo ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_every_50ms, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(tick), - /* K1 */ be_const_int(1), - /* K2 */ be_nested_str_weak(message_handler), - /* K3 */ be_nested_str_weak(every_50ms), - }), - be_str_weak(every_50ms), - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x00040301, // 0001 ADD R1 R1 K1 - 0x90020001, // 0002 SETMBR R0 K0 R1 - 0x88040102, // 0003 GETMBR R1 R0 K2 - 0x8C040303, // 0004 GETMET R1 R1 K3 - 0x7C040200, // 0005 CALL R1 1 - 0x80000000, // 0006 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: conf_to_log -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_conf_to_log, /* name */ - be_nested_proto( - 9, /* nstack */ - 1, /* argc */ - 4, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_const_class(be_class_Matter_Device), - /* K1 */ be_nested_str_weak(), - /* K2 */ be_nested_str_weak(k2l), - /* K3 */ be_nested_str_weak(type), - /* K4 */ be_nested_str_weak(_X20_X25s_X3A_X25s), - /* K5 */ be_nested_str_weak(stop_iteration), - }), - be_str_weak(conf_to_log), - &be_const_str_solidified, - ( &(const binstruction[24]) { /* code */ - 0x58040000, // 0000 LDCONST R1 K0 - 0x58080001, // 0001 LDCONST R2 K1 - 0x600C0010, // 0002 GETGBL R3 G16 - 0x8C100302, // 0003 GETMET R4 R1 K2 - 0x5C180000, // 0004 MOVE R6 R0 - 0x7C100400, // 0005 CALL R4 2 - 0x7C0C0200, // 0006 CALL R3 1 - 0xA802000B, // 0007 EXBLK 0 #0014 - 0x5C100600, // 0008 MOVE R4 R3 - 0x7C100000, // 0009 CALL R4 0 - 0x1C140903, // 000A EQ R5 R4 K3 - 0x78160000, // 000B JMPF R5 #000D - 0x7001FFFA, // 000C JMP #0008 - 0x60140018, // 000D GETGBL R5 G24 - 0x58180004, // 000E LDCONST R6 K4 - 0x5C1C0800, // 000F MOVE R7 R4 - 0x94200004, // 0010 GETIDX R8 R0 R4 - 0x7C140600, // 0011 CALL R5 3 - 0x00080405, // 0012 ADD R2 R2 R5 - 0x7001FFF3, // 0013 JMP #0008 - 0x580C0005, // 0014 LDCONST R3 K5 - 0xAC0C0200, // 0015 CATCH R3 1 0 - 0xB0080000, // 0016 RAISE 2 R0 R0 - 0x80040400, // 0017 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: k2l_num -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_k2l_num, /* name */ - be_nested_proto( - 9, /* nstack */ - 1, /* argc */ - 4, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_const_class(be_class_Matter_Device), - /* K1 */ be_nested_str_weak(keys), - /* K2 */ be_nested_str_weak(push), - /* K3 */ be_nested_str_weak(stop_iteration), - /* K4 */ be_const_int(1), - /* K5 */ be_const_int(0), - }), - be_str_weak(k2l_num), - &be_const_str_solidified, - ( &(const binstruction[52]) { /* code */ - 0x58040000, // 0000 LDCONST R1 K0 - 0x60080012, // 0001 GETGBL R2 G18 - 0x7C080000, // 0002 CALL R2 0 - 0x4C0C0000, // 0003 LDNIL R3 - 0x1C0C0003, // 0004 EQ R3 R0 R3 - 0x780E0000, // 0005 JMPF R3 #0007 - 0x80040400, // 0006 RET 1 R2 - 0x600C0010, // 0007 GETGBL R3 G16 - 0x8C100101, // 0008 GETMET R4 R0 K1 - 0x7C100200, // 0009 CALL R4 1 - 0x7C0C0200, // 000A CALL R3 1 - 0xA8020007, // 000B EXBLK 0 #0014 - 0x5C100600, // 000C MOVE R4 R3 - 0x7C100000, // 000D CALL R4 0 - 0x8C140502, // 000E GETMET R5 R2 K2 - 0x601C0009, // 000F GETGBL R7 G9 - 0x5C200800, // 0010 MOVE R8 R4 - 0x7C1C0200, // 0011 CALL R7 1 - 0x7C140400, // 0012 CALL R5 2 - 0x7001FFF7, // 0013 JMP #000C - 0x580C0003, // 0014 LDCONST R3 K3 - 0xAC0C0200, // 0015 CATCH R3 1 0 - 0xB0080000, // 0016 RAISE 2 R0 R0 - 0x600C0010, // 0017 GETGBL R3 G16 - 0x6010000C, // 0018 GETGBL R4 G12 - 0x5C140400, // 0019 MOVE R5 R2 - 0x7C100200, // 001A CALL R4 1 - 0x04100904, // 001B SUB R4 R4 K4 - 0x40120804, // 001C CONNECT R4 K4 R4 - 0x7C0C0200, // 001D CALL R3 1 - 0xA8020010, // 001E EXBLK 0 #0030 - 0x5C100600, // 001F MOVE R4 R3 - 0x7C100000, // 0020 CALL R4 0 - 0x94140404, // 0021 GETIDX R5 R2 R4 - 0x5C180800, // 0022 MOVE R6 R4 - 0x241C0D05, // 0023 GT R7 R6 K5 - 0x781E0008, // 0024 JMPF R7 #002E - 0x041C0D04, // 0025 SUB R7 R6 K4 - 0x941C0407, // 0026 GETIDX R7 R2 R7 - 0x241C0E05, // 0027 GT R7 R7 R5 - 0x781E0004, // 0028 JMPF R7 #002E - 0x041C0D04, // 0029 SUB R7 R6 K4 - 0x941C0407, // 002A GETIDX R7 R2 R7 - 0x98080C07, // 002B SETIDX R2 R6 R7 - 0x04180D04, // 002C SUB R6 R6 K4 - 0x7001FFF4, // 002D JMP #0023 - 0x98080C05, // 002E SETIDX R2 R6 R5 - 0x7001FFEE, // 002F JMP #001F - 0x580C0003, // 0030 LDCONST R3 K3 - 0xAC0C0200, // 0031 CATCH R3 1 0 - 0xB0080000, // 0032 RAISE 2 R0 R0 - 0x80040400, // 0033 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: stop -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_stop, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(remove_driver), - /* K2 */ be_nested_str_weak(udp_server), - /* K3 */ be_nested_str_weak(stop), - }), - be_str_weak(stop), - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0xB8060000, // 0000 GETNGBL R1 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x5C0C0000, // 0002 MOVE R3 R0 - 0x7C040400, // 0003 CALL R1 2 - 0x88040102, // 0004 GETMBR R1 R0 K2 - 0x78060002, // 0005 JMPF R1 #0009 - 0x88040102, // 0006 GETMBR R1 R0 K2 - 0x8C040303, // 0007 GETMET R1 R1 K3 - 0x7C040200, // 0008 CALL R1 1 - 0x80000000, // 0009 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_plugin_class_arg -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_get_plugin_class_arg, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(plugins_classes), - /* K1 */ be_nested_str_weak(find), - /* K2 */ be_nested_str_weak(ARG), - /* K3 */ be_nested_str_weak(), - }), - be_str_weak(get_plugin_class_arg), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x5C100200, // 0002 MOVE R4 R1 - 0x7C080400, // 0003 CALL R2 2 - 0x780A0001, // 0004 JMPF R2 #0007 - 0x880C0502, // 0005 GETMBR R3 R2 K2 - 0x70020000, // 0006 JMP #0008 - 0x580C0003, // 0007 LDCONST R3 K3 - 0x80040600, // 0008 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: autoconf_device_map -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_autoconf_device_map, /* name */ - be_nested_proto( - 19, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[38]) { /* constants */ - /* K0 */ be_nested_str_weak(json), - /* K1 */ be_nested_str_weak(matter), - /* K2 */ be_nested_str_weak(START_ENDPOINT), - /* K3 */ be_nested_str_weak(light), - /* K4 */ be_nested_str_weak(get), - /* K5 */ be_nested_str_weak(find), - /* K6 */ be_nested_str_weak(channels), - /* K7 */ be_nested_str_weak(), - /* K8 */ be_const_int(0), - /* K9 */ be_const_int(1), - /* K10 */ be_nested_str_weak(type), - /* K11 */ be_nested_str_weak(light1), - /* K12 */ be_const_int(2), - /* K13 */ be_nested_str_weak(light2), - /* K14 */ be_nested_str_weak(light3), - /* K15 */ be_nested_str_weak(tasmota), - /* K16 */ be_nested_str_weak(cmd), - /* K17 */ be_nested_str_weak(Status_X2013), - /* K18 */ be_nested_str_weak(log), - /* K19 */ be_nested_str_weak(MTR_X3A_X20Status_X2013_X20_X3D_X20), - /* K20 */ be_const_int(3), - /* K21 */ be_nested_str_weak(contains), - /* K22 */ be_nested_str_weak(StatusSHT), - /* K23 */ be_nested_str_weak(SHT), - /* K24 */ be_nested_str_weak(MTR_X3A_X20_X27_X25s_X27_X20_X3D_X20_X25s), - /* K25 */ be_nested_str_weak(Relay1), - /* K26 */ be_nested_str_weak(Relay2), - /* K27 */ be_nested_str_weak(push), - /* K28 */ be_nested_str_weak(MTR_X3A_X20relay1_X3D_X25s_X20relay2_X3D_X25s), - /* K29 */ be_nested_str_weak(TiltConfig), - /* K30 */ be_nested_str_weak(shutter_X2Btilt), - /* K31 */ be_nested_str_weak(shutter), - /* K32 */ be_nested_str_weak(get_power), - /* K33 */ be_nested_str_weak(relay), - /* K34 */ be_nested_str_weak(load), - /* K35 */ be_nested_str_weak(read_sensors), - /* K36 */ be_nested_str_weak(autoconf_sensors_list), - /* K37 */ be_nested_str_weak(stop_iteration), - }), - be_str_weak(autoconf_device_map), - &be_const_str_solidified, - ( &(const binstruction[196]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x60080013, // 0001 GETGBL R2 G19 - 0x7C080000, // 0002 CALL R2 0 - 0xB80E0200, // 0003 GETNGBL R3 K1 - 0x880C0702, // 0004 GETMBR R3 R3 K2 - 0x50100000, // 0005 LDBOOL R4 0 0 - 0xA4160600, // 0006 IMPORT R5 K3 - 0x8C180B04, // 0007 GETMET R6 R5 K4 - 0x7C180200, // 0008 CALL R6 1 - 0x4C1C0000, // 0009 LDNIL R7 - 0x201C0C07, // 000A NE R7 R6 R7 - 0x781E0024, // 000B JMPF R7 #0031 - 0x601C000C, // 000C GETGBL R7 G12 - 0x8C200D05, // 000D GETMET R8 R6 K5 - 0x58280006, // 000E LDCONST R10 K6 - 0x582C0007, // 000F LDCONST R11 K7 - 0x7C200600, // 0010 CALL R8 3 - 0x7C1C0200, // 0011 CALL R7 1 - 0x24200F08, // 0012 GT R8 R7 K8 - 0x7822001C, // 0013 JMPF R8 #0031 - 0x1C200F09, // 0014 EQ R8 R7 K9 - 0x78220007, // 0015 JMPF R8 #001E - 0x60200008, // 0016 GETGBL R8 G8 - 0x5C240600, // 0017 MOVE R9 R3 - 0x7C200200, // 0018 CALL R8 1 - 0x60240013, // 0019 GETGBL R9 G19 - 0x7C240000, // 001A CALL R9 0 - 0x9826150B, // 001B SETIDX R9 K10 K11 - 0x98081009, // 001C SETIDX R2 R8 R9 - 0x70020010, // 001D JMP #002F - 0x1C200F0C, // 001E EQ R8 R7 K12 - 0x78220007, // 001F JMPF R8 #0028 - 0x60200008, // 0020 GETGBL R8 G8 - 0x5C240600, // 0021 MOVE R9 R3 - 0x7C200200, // 0022 CALL R8 1 - 0x60240013, // 0023 GETGBL R9 G19 - 0x7C240000, // 0024 CALL R9 0 - 0x9826150D, // 0025 SETIDX R9 K10 K13 - 0x98081009, // 0026 SETIDX R2 R8 R9 - 0x70020006, // 0027 JMP #002F - 0x60200008, // 0028 GETGBL R8 G8 - 0x5C240600, // 0029 MOVE R9 R3 - 0x7C200200, // 002A CALL R8 1 - 0x60240013, // 002B GETGBL R9 G19 - 0x7C240000, // 002C CALL R9 0 - 0x9826150E, // 002D SETIDX R9 K10 K14 - 0x98081009, // 002E SETIDX R2 R8 R9 - 0x50100200, // 002F LDBOOL R4 1 0 - 0x000C0709, // 0030 ADD R3 R3 K9 - 0xB81E1E00, // 0031 GETNGBL R7 K15 - 0x8C1C0F10, // 0032 GETMET R7 R7 K16 - 0x58240011, // 0033 LDCONST R9 K17 - 0x50280200, // 0034 LDBOOL R10 1 0 - 0x7C1C0600, // 0035 CALL R7 3 - 0x60200012, // 0036 GETGBL R8 G18 - 0x7C200000, // 0037 CALL R8 0 - 0xB8262400, // 0038 GETNGBL R9 K18 - 0x60280008, // 0039 GETGBL R10 G8 - 0x5C2C0E00, // 003A MOVE R11 R7 - 0x7C280200, // 003B CALL R10 1 - 0x002A260A, // 003C ADD R10 K19 R10 - 0x582C0014, // 003D LDCONST R11 K20 - 0x7C240400, // 003E CALL R9 2 - 0x4C240000, // 003F LDNIL R9 - 0x20240E09, // 0040 NE R9 R7 R9 - 0x7826004D, // 0041 JMPF R9 #0090 - 0x8C240F15, // 0042 GETMET R9 R7 K21 - 0x582C0016, // 0043 LDCONST R11 K22 - 0x7C240400, // 0044 CALL R9 2 - 0x78260049, // 0045 JMPF R9 #0090 - 0x941C0F16, // 0046 GETIDX R7 R7 K22 - 0x58240008, // 0047 LDCONST R9 K8 - 0x50280200, // 0048 LDBOOL R10 1 0 - 0x782A0045, // 0049 JMPF R10 #0090 - 0x60280008, // 004A GETGBL R10 G8 - 0x5C2C1200, // 004B MOVE R11 R9 - 0x7C280200, // 004C CALL R10 1 - 0x002A2E0A, // 004D ADD R10 K23 R10 - 0x8C2C0F15, // 004E GETMET R11 R7 K21 - 0x5C341400, // 004F MOVE R13 R10 - 0x7C2C0400, // 0050 CALL R11 2 - 0x742E0000, // 0051 JMPT R11 #0053 - 0x7002003C, // 0052 JMP #0090 - 0x942C0E0A, // 0053 GETIDX R11 R7 R10 - 0xB8322400, // 0054 GETNGBL R12 K18 - 0x60340018, // 0055 GETGBL R13 G24 - 0x58380018, // 0056 LDCONST R14 K24 - 0x5C3C1400, // 0057 MOVE R15 R10 - 0x60400008, // 0058 GETGBL R16 G8 - 0x5C441600, // 0059 MOVE R17 R11 - 0x7C400200, // 005A CALL R16 1 - 0x7C340600, // 005B CALL R13 3 - 0x58380014, // 005C LDCONST R14 K20 - 0x7C300400, // 005D CALL R12 2 - 0x8C301705, // 005E GETMET R12 R11 K5 - 0x58380019, // 005F LDCONST R14 K25 - 0x543DFFFE, // 0060 LDINT R15 -1 - 0x7C300600, // 0061 CALL R12 3 - 0x8C341705, // 0062 GETMET R13 R11 K5 - 0x583C001A, // 0063 LDCONST R15 K26 - 0x5441FFFE, // 0064 LDINT R16 -1 - 0x7C340600, // 0065 CALL R13 3 - 0x24381908, // 0066 GT R14 R12 K8 - 0x783A0002, // 0067 JMPF R14 #006B - 0x8C38111B, // 0068 GETMET R14 R8 K27 - 0x04401909, // 0069 SUB R16 R12 K9 - 0x7C380400, // 006A CALL R14 2 - 0x24381B08, // 006B GT R14 R13 K8 - 0x783A0002, // 006C JMPF R14 #0070 - 0x8C38111B, // 006D GETMET R14 R8 K27 - 0x04401B09, // 006E SUB R16 R13 K9 - 0x7C380400, // 006F CALL R14 2 - 0xB83A2400, // 0070 GETNGBL R14 K18 - 0x603C0018, // 0071 GETGBL R15 G24 - 0x5840001C, // 0072 LDCONST R16 K28 - 0x5C441800, // 0073 MOVE R17 R12 - 0x5C481A00, // 0074 MOVE R18 R13 - 0x7C3C0600, // 0075 CALL R15 3 - 0x58400014, // 0076 LDCONST R16 K20 - 0x7C380400, // 0077 CALL R14 2 - 0x8C381705, // 0078 GETMET R14 R11 K5 - 0x5840001D, // 0079 LDCONST R16 K29 - 0x7C380400, // 007A CALL R14 2 - 0x783A0002, // 007B JMPF R14 #007F - 0x943C1D0C, // 007C GETIDX R15 R14 K12 - 0x243C1F08, // 007D GT R15 R15 K8 - 0x743E0000, // 007E JMPT R15 #0080 - 0x503C0001, // 007F LDBOOL R15 0 1 - 0x503C0200, // 0080 LDBOOL R15 1 0 - 0x60400008, // 0081 GETGBL R16 G8 - 0x5C440600, // 0082 MOVE R17 R3 - 0x7C400200, // 0083 CALL R16 1 - 0x60440013, // 0084 GETGBL R17 G19 - 0x7C440000, // 0085 CALL R17 0 - 0x783E0001, // 0086 JMPF R15 #0089 - 0x5848001E, // 0087 LDCONST R18 K30 - 0x70020000, // 0088 JMP #008A - 0x5848001F, // 0089 LDCONST R18 K31 - 0x98461412, // 008A SETIDX R17 K10 R18 - 0x98463E09, // 008B SETIDX R17 K31 R9 - 0x98082011, // 008C SETIDX R2 R16 R17 - 0x000C0709, // 008D ADD R3 R3 K9 - 0x00241309, // 008E ADD R9 R9 K9 - 0x7001FFB7, // 008F JMP #0048 - 0x6024000C, // 0090 GETGBL R9 G12 - 0xB82A1E00, // 0091 GETNGBL R10 K15 - 0x8C281520, // 0092 GETMET R10 R10 K32 - 0x7C280200, // 0093 CALL R10 1 - 0x7C240200, // 0094 CALL R9 1 - 0x58280008, // 0095 LDCONST R10 K8 - 0x78120000, // 0096 JMPF R4 #0098 - 0x04241309, // 0097 SUB R9 R9 K9 - 0x142C1409, // 0098 LT R11 R10 R9 - 0x782E0011, // 0099 JMPF R11 #00AC - 0x8C2C1105, // 009A GETMET R11 R8 K5 - 0x5C341400, // 009B MOVE R13 R10 - 0x7C2C0400, // 009C CALL R11 2 - 0x4C300000, // 009D LDNIL R12 - 0x1C2C160C, // 009E EQ R11 R11 R12 - 0x782E0009, // 009F JMPF R11 #00AA - 0x602C0008, // 00A0 GETGBL R11 G8 - 0x5C300600, // 00A1 MOVE R12 R3 - 0x7C2C0200, // 00A2 CALL R11 1 - 0x60300013, // 00A3 GETGBL R12 G19 - 0x7C300000, // 00A4 CALL R12 0 - 0x98321521, // 00A5 SETIDX R12 K10 K33 - 0x00341509, // 00A6 ADD R13 R10 K9 - 0x9832420D, // 00A7 SETIDX R12 K33 R13 - 0x9808160C, // 00A8 SETIDX R2 R11 R12 - 0x000C0709, // 00A9 ADD R3 R3 K9 - 0x00281509, // 00AA ADD R10 R10 K9 - 0x7001FFEB, // 00AB JMP #0098 - 0x8C2C0322, // 00AC GETMET R11 R1 K34 - 0xB8361E00, // 00AD GETNGBL R13 K15 - 0x8C341B23, // 00AE GETMET R13 R13 K35 - 0x7C340200, // 00AF CALL R13 1 - 0x7C2C0400, // 00B0 CALL R11 2 - 0x8C300124, // 00B1 GETMET R12 R0 K36 - 0x5C381600, // 00B2 MOVE R14 R11 - 0x7C300400, // 00B3 CALL R12 2 - 0x60340010, // 00B4 GETGBL R13 G16 - 0x5C381800, // 00B5 MOVE R14 R12 - 0x7C340200, // 00B6 CALL R13 1 - 0xA8020007, // 00B7 EXBLK 0 #00C0 - 0x5C381A00, // 00B8 MOVE R14 R13 - 0x7C380000, // 00B9 CALL R14 0 - 0x603C0008, // 00BA GETGBL R15 G8 - 0x5C400600, // 00BB MOVE R16 R3 - 0x7C3C0200, // 00BC CALL R15 1 - 0x98081E0E, // 00BD SETIDX R2 R15 R14 - 0x000C0709, // 00BE ADD R3 R3 K9 - 0x7001FFF7, // 00BF JMP #00B8 - 0x58340025, // 00C0 LDCONST R13 K37 - 0xAC340200, // 00C1 CATCH R13 1 0 - 0xB0080000, // 00C2 RAISE 2 R0 R0 - 0x80040400, // 00C3 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: remove_fabric -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_remove_fabric, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[15]) { /* constants */ - /* K0 */ be_nested_str_weak(log), - /* K1 */ be_nested_str_weak(MTR_X3A_X20removing_X20fabric_X20), - /* K2 */ be_nested_str_weak(get_fabric_id), - /* K3 */ be_nested_str_weak(copy), - /* K4 */ be_nested_str_weak(reverse), - /* K5 */ be_nested_str_weak(tohex), - /* K6 */ be_const_int(2), - /* K7 */ be_nested_str_weak(message_handler), - /* K8 */ be_nested_str_weak(im), - /* K9 */ be_nested_str_weak(subs_shop), - /* K10 */ be_nested_str_weak(remove_by_fabric), - /* K11 */ be_nested_str_weak(mdns_remove_op_discovery), - /* K12 */ be_nested_str_weak(sessions), - /* K13 */ be_nested_str_weak(remove_fabric), - /* K14 */ be_nested_str_weak(save_fabrics), - }), - be_str_weak(remove_fabric), - &be_const_str_solidified, - ( &(const binstruction[32]) { /* code */ - 0x4C080000, // 0000 LDNIL R2 - 0x20080202, // 0001 NE R2 R1 R2 - 0x780A0018, // 0002 JMPF R2 #001C - 0xB80A0000, // 0003 GETNGBL R2 K0 - 0x8C0C0302, // 0004 GETMET R3 R1 K2 - 0x7C0C0200, // 0005 CALL R3 1 - 0x8C0C0703, // 0006 GETMET R3 R3 K3 - 0x7C0C0200, // 0007 CALL R3 1 - 0x8C0C0704, // 0008 GETMET R3 R3 K4 - 0x7C0C0200, // 0009 CALL R3 1 - 0x8C0C0705, // 000A GETMET R3 R3 K5 - 0x7C0C0200, // 000B CALL R3 1 - 0x000E0203, // 000C ADD R3 K1 R3 - 0x58100006, // 000D LDCONST R4 K6 - 0x7C080400, // 000E CALL R2 2 - 0x88080107, // 000F GETMBR R2 R0 K7 - 0x88080508, // 0010 GETMBR R2 R2 K8 - 0x88080509, // 0011 GETMBR R2 R2 K9 - 0x8C08050A, // 0012 GETMET R2 R2 K10 - 0x5C100200, // 0013 MOVE R4 R1 - 0x7C080400, // 0014 CALL R2 2 - 0x8C08010B, // 0015 GETMET R2 R0 K11 - 0x5C100200, // 0016 MOVE R4 R1 - 0x7C080400, // 0017 CALL R2 2 - 0x8808010C, // 0018 GETMBR R2 R0 K12 - 0x8C08050D, // 0019 GETMET R2 R2 K13 - 0x5C100200, // 001A MOVE R4 R1 - 0x7C080400, // 001B CALL R2 2 - 0x8808010C, // 001C GETMBR R2 R0 K12 - 0x8C08050E, // 001D GETMET R2 R2 K14 - 0x7C080200, // 001E CALL R2 1 - 0x80000000, // 001F RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_init, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 3]) { - be_nested_proto( - 4, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(start), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(remove_rule), - /* K3 */ be_nested_str_weak(Wifi_X23Connected), - /* K4 */ be_nested_str_weak(matter_start), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x7C000200, // 0002 CALL R0 1 - 0xB8020200, // 0003 GETNGBL R0 K1 - 0x8C000102, // 0004 GETMET R0 R0 K2 - 0x58080003, // 0005 LDCONST R2 K3 - 0x580C0004, // 0006 LDCONST R3 K4 - 0x7C000600, // 0007 CALL R0 3 - 0x80000000, // 0008 RET 0 - }) - ), - be_nested_proto( - 4, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(start), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(remove_rule), - /* K3 */ be_nested_str_weak(Eth_X23Connected), - /* K4 */ be_nested_str_weak(matter_start), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x7C000200, // 0002 CALL R0 1 - 0xB8020200, // 0003 GETNGBL R0 K1 - 0x8C000102, // 0004 GETMET R0 R0 K2 - 0x58080003, // 0005 LDCONST R2 K3 - 0x580C0004, // 0006 LDCONST R3 K4 - 0x7C000600, // 0007 CALL R0 3 - 0x80000000, // 0008 RET 0 - }) - ), - &be_class_Matter_Device, - }), - 1, /* has constants */ - ( &(const bvalue[38]) { /* constants */ - /* K0 */ be_nested_str_weak(crypto), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(get_option), - /* K3 */ be_nested_str_weak(matter), - /* K4 */ be_nested_str_weak(MATTER_OPTION), - /* K5 */ be_nested_str_weak(UI), - /* K6 */ be_nested_str_weak(profiler), - /* K7 */ be_nested_str_weak(Profiler), - /* K8 */ be_nested_str_weak(started), - /* K9 */ be_nested_str_weak(tick), - /* K10 */ be_const_int(0), - /* K11 */ be_nested_str_weak(plugins), - /* K12 */ be_nested_str_weak(plugins_persist), - /* K13 */ be_nested_str_weak(plugins_config_remotes), - /* K14 */ be_nested_str_weak(next_ep), - /* K15 */ be_const_int(2), - /* K16 */ be_nested_str_weak(ipv4only), - /* K17 */ be_nested_str_weak(disable_bridge_mode), - /* K18 */ be_nested_str_weak(load_param), - /* K19 */ be_nested_str_weak(sessions), - /* K20 */ be_nested_str_weak(Session_Store), - /* K21 */ be_nested_str_weak(load_fabrics), - /* K22 */ be_nested_str_weak(message_handler), - /* K23 */ be_nested_str_weak(MessageHandler), - /* K24 */ be_nested_str_weak(events), - /* K25 */ be_nested_str_weak(EventHandler), - /* K26 */ be_nested_str_weak(ui), - /* K27 */ be_nested_str_weak(wifi), - /* K28 */ be_nested_str_weak(up), - /* K29 */ be_nested_str_weak(eth), - /* K30 */ be_nested_str_weak(start), - /* K31 */ be_nested_str_weak(add_rule), - /* K32 */ be_nested_str_weak(Wifi_X23Connected), - /* K33 */ be_nested_str_weak(matter_start), - /* K34 */ be_nested_str_weak(Eth_X23Connected), - /* K35 */ be_nested_str_weak(_init_basic_commissioning), - /* K36 */ be_nested_str_weak(add_driver), - /* K37 */ be_nested_str_weak(register_commands), - }), - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[102]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xB80A0200, // 0001 GETNGBL R2 K1 - 0x8C080502, // 0002 GETMET R2 R2 K2 - 0xB8120600, // 0003 GETNGBL R4 K3 - 0x88100904, // 0004 GETMBR R4 R4 K4 - 0x7C080400, // 0005 CALL R2 2 - 0x740A0004, // 0006 JMPT R2 #000C - 0xB80A0600, // 0007 GETNGBL R2 K3 - 0x8C080505, // 0008 GETMET R2 R2 K5 - 0x5C100000, // 0009 MOVE R4 R0 - 0x7C080400, // 000A CALL R2 2 - 0x80000400, // 000B RET 0 - 0xB80A0600, // 000C GETNGBL R2 K3 - 0xB80E0600, // 000D GETNGBL R3 K3 - 0x8C0C0707, // 000E GETMET R3 R3 K7 - 0x7C0C0200, // 000F CALL R3 1 - 0x900A0C03, // 0010 SETMBR R2 K6 R3 - 0x50080000, // 0011 LDBOOL R2 0 0 - 0x90021002, // 0012 SETMBR R0 K8 R2 - 0x9002130A, // 0013 SETMBR R0 K9 K10 - 0x60080012, // 0014 GETGBL R2 G18 - 0x7C080000, // 0015 CALL R2 0 - 0x90021602, // 0016 SETMBR R0 K11 R2 - 0x50080000, // 0017 LDBOOL R2 0 0 - 0x90021802, // 0018 SETMBR R0 K12 R2 - 0x60080013, // 0019 GETGBL R2 G19 - 0x7C080000, // 001A CALL R2 0 - 0x90021A02, // 001B SETMBR R0 K13 R2 - 0x90021D0F, // 001C SETMBR R0 K14 K15 - 0x50080000, // 001D LDBOOL R2 0 0 - 0x90022002, // 001E SETMBR R0 K16 R2 - 0x50080000, // 001F LDBOOL R2 0 0 - 0x90022202, // 0020 SETMBR R0 K17 R2 - 0x8C080112, // 0021 GETMET R2 R0 K18 - 0x7C080200, // 0022 CALL R2 1 - 0xB80A0600, // 0023 GETNGBL R2 K3 - 0x8C080514, // 0024 GETMET R2 R2 K20 - 0x5C100000, // 0025 MOVE R4 R0 - 0x7C080400, // 0026 CALL R2 2 - 0x90022602, // 0027 SETMBR R0 K19 R2 - 0x88080113, // 0028 GETMBR R2 R0 K19 - 0x8C080515, // 0029 GETMET R2 R2 K21 - 0x7C080200, // 002A CALL R2 1 - 0xB80A0600, // 002B GETNGBL R2 K3 - 0x8C080517, // 002C GETMET R2 R2 K23 - 0x5C100000, // 002D MOVE R4 R0 - 0x7C080400, // 002E CALL R2 2 - 0x90022C02, // 002F SETMBR R0 K22 R2 - 0xB80A0600, // 0030 GETNGBL R2 K3 - 0x8C080519, // 0031 GETMET R2 R2 K25 - 0x5C100000, // 0032 MOVE R4 R0 - 0x7C080400, // 0033 CALL R2 2 - 0x90023002, // 0034 SETMBR R0 K24 R2 - 0xB80A0600, // 0035 GETNGBL R2 K3 - 0x8C080505, // 0036 GETMET R2 R2 K5 - 0x5C100000, // 0037 MOVE R4 R0 - 0x7C080400, // 0038 CALL R2 2 - 0x90023402, // 0039 SETMBR R0 K26 R2 - 0xB80A0200, // 003A GETNGBL R2 K1 - 0x8C08051B, // 003B GETMET R2 R2 K27 - 0x7C080200, // 003C CALL R2 1 - 0x9408051C, // 003D GETIDX R2 R2 K28 - 0x740A0004, // 003E JMPT R2 #0044 - 0xB80A0200, // 003F GETNGBL R2 K1 - 0x8C08051D, // 0040 GETMET R2 R2 K29 - 0x7C080200, // 0041 CALL R2 1 - 0x9408051C, // 0042 GETIDX R2 R2 K28 - 0x780A0001, // 0043 JMPF R2 #0046 - 0x8C08011E, // 0044 GETMET R2 R0 K30 - 0x7C080200, // 0045 CALL R2 1 - 0xB80A0200, // 0046 GETNGBL R2 K1 - 0x8C08051B, // 0047 GETMET R2 R2 K27 - 0x7C080200, // 0048 CALL R2 1 - 0x9408051C, // 0049 GETIDX R2 R2 K28 - 0x740A0005, // 004A JMPT R2 #0051 - 0xB80A0200, // 004B GETNGBL R2 K1 - 0x8C08051F, // 004C GETMET R2 R2 K31 - 0x58100020, // 004D LDCONST R4 K32 - 0x84140000, // 004E CLOSURE R5 P0 - 0x58180021, // 004F LDCONST R6 K33 - 0x7C080800, // 0050 CALL R2 4 - 0xB80A0200, // 0051 GETNGBL R2 K1 - 0x8C08051D, // 0052 GETMET R2 R2 K29 - 0x7C080200, // 0053 CALL R2 1 - 0x9408051C, // 0054 GETIDX R2 R2 K28 - 0x740A0005, // 0055 JMPT R2 #005C - 0xB80A0200, // 0056 GETNGBL R2 K1 - 0x8C08051F, // 0057 GETMET R2 R2 K31 - 0x58100022, // 0058 LDCONST R4 K34 - 0x84140001, // 0059 CLOSURE R5 P1 - 0x58180021, // 005A LDCONST R6 K33 - 0x7C080800, // 005B CALL R2 4 - 0x8C080123, // 005C GETMET R2 R0 K35 - 0x7C080200, // 005D CALL R2 1 - 0xB80A0200, // 005E GETNGBL R2 K1 - 0x8C080524, // 005F GETMET R2 R2 K36 - 0x5C100000, // 0060 MOVE R4 R0 - 0x7C080400, // 0061 CALL R2 2 - 0x8C080125, // 0062 GETMET R2 R0 K37 - 0x7C080200, // 0063 CALL R2 1 - 0xA0000000, // 0064 CLOSE R0 - 0x80000000, // 0065 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: is_commissioning_open -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_is_commissioning_open, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(commissioning_open), - }), - be_str_weak(is_commissioning_open), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x4C080000, // 0001 LDNIL R2 - 0x20040202, // 0002 NE R1 R1 R2 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: adjust_next_ep -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_adjust_next_ep, /* name */ - be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(plugins_config), - /* K1 */ be_nested_str_weak(keys), - /* K2 */ be_nested_str_weak(next_ep), - /* K3 */ be_const_int(1), - /* K4 */ be_nested_str_weak(stop_iteration), - }), - be_str_weak(adjust_next_ep), - &be_const_str_solidified, - ( &(const binstruction[21]) { /* code */ - 0x60040010, // 0000 GETGBL R1 G16 - 0x88080100, // 0001 GETMBR R2 R0 K0 - 0x8C080501, // 0002 GETMET R2 R2 K1 - 0x7C080200, // 0003 CALL R2 1 - 0x7C040200, // 0004 CALL R1 1 - 0xA802000A, // 0005 EXBLK 0 #0011 - 0x5C080200, // 0006 MOVE R2 R1 - 0x7C080000, // 0007 CALL R2 0 - 0x600C0009, // 0008 GETGBL R3 G9 - 0x5C100400, // 0009 MOVE R4 R2 - 0x7C0C0200, // 000A CALL R3 1 - 0x88100102, // 000B GETMBR R4 R0 K2 - 0x28100604, // 000C GE R4 R3 R4 - 0x78120001, // 000D JMPF R4 #0010 - 0x00100703, // 000E ADD R4 R3 K3 - 0x90020404, // 000F SETMBR R0 K2 R4 - 0x7001FFF4, // 0010 JMP #0006 - 0x58040004, // 0011 LDCONST R1 K4 - 0xAC040200, // 0012 CATCH R1 1 0 - 0xB0080000, // 0013 RAISE 2 R0 R0 - 0x80000000, // 0014 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: stop_basic_commissioning -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_stop_basic_commissioning, /* name */ - be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[13]) { /* constants */ - /* K0 */ be_nested_str_weak(is_root_commissioning_open), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(publish_result), - /* K3 */ be_nested_str_weak(_X7B_X22Matter_X22_X3A_X7B_X22Commissioning_X22_X3A0_X7D_X7D), - /* K4 */ be_nested_str_weak(Matter), - /* K5 */ be_nested_str_weak(commissioning_open), - /* K6 */ be_nested_str_weak(mdns_remove_PASE), - /* K7 */ be_nested_str_weak(commissioning_iterations), - /* K8 */ be_nested_str_weak(commissioning_discriminator), - /* K9 */ be_nested_str_weak(commissioning_salt), - /* K10 */ be_nested_str_weak(commissioning_w0), - /* K11 */ be_nested_str_weak(commissioning_L), - /* K12 */ be_nested_str_weak(commissioning_admin_fabric), - }), - be_str_weak(stop_basic_commissioning), - &be_const_str_solidified, - ( &(const binstruction[25]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x7C040200, // 0001 CALL R1 1 - 0x78060004, // 0002 JMPF R1 #0008 - 0xB8060200, // 0003 GETNGBL R1 K1 - 0x8C040302, // 0004 GETMET R1 R1 K2 - 0x580C0003, // 0005 LDCONST R3 K3 - 0x58100004, // 0006 LDCONST R4 K4 - 0x7C040600, // 0007 CALL R1 3 - 0x4C040000, // 0008 LDNIL R1 - 0x90020A01, // 0009 SETMBR R0 K5 R1 - 0x8C040106, // 000A GETMET R1 R0 K6 - 0x7C040200, // 000B CALL R1 1 - 0x4C040000, // 000C LDNIL R1 - 0x90020E01, // 000D SETMBR R0 K7 R1 - 0x4C040000, // 000E LDNIL R1 - 0x90021001, // 000F SETMBR R0 K8 R1 - 0x4C040000, // 0010 LDNIL R1 - 0x90021201, // 0011 SETMBR R0 K9 R1 - 0x4C040000, // 0012 LDNIL R1 - 0x90021401, // 0013 SETMBR R0 K10 R1 - 0x4C040000, // 0014 LDNIL R1 - 0x90021601, // 0015 SETMBR R0 K11 R1 - 0x4C040000, // 0016 LDNIL R1 - 0x90021801, // 0017 SETMBR R0 K12 R1 - 0x80000000, // 0018 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: autoconf_sensors_list -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_autoconf_sensors_list, /* name */ +be_local_closure(class_Matter_Device_resolve_attribute_read_solo, /* name */ be_nested_proto( 10, /* nstack */ 2, /* argc */ @@ -3457,148 +1200,69 @@ be_local_closure(class_Matter_Device_autoconf_sensors_list, /* name */ 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ - ( &(const bvalue[18]) { /* constants */ - /* K0 */ be_nested_str_weak(k2l), - /* K1 */ be_nested_str_weak(contains), - /* K2 */ be_nested_str_weak(Temperature), - /* K3 */ be_nested_str_weak(_X23Temperature), - /* K4 */ be_nested_str_weak(push), - /* K5 */ be_nested_str_weak(type), - /* K6 */ be_nested_str_weak(temperature), - /* K7 */ be_nested_str_weak(filter), - /* K8 */ be_nested_str_weak(stop_iteration), - /* K9 */ be_nested_str_weak(Pressure), - /* K10 */ be_nested_str_weak(_X23Pressure), - /* K11 */ be_nested_str_weak(pressure), - /* K12 */ be_nested_str_weak(Illuminance), - /* K13 */ be_nested_str_weak(_X23Illuminance), - /* K14 */ be_nested_str_weak(illuminance), - /* K15 */ be_nested_str_weak(Humidity), - /* K16 */ be_nested_str_weak(_X23Humidity), - /* K17 */ be_nested_str_weak(humidity), + ( &(const bvalue[11]) { /* constants */ + /* K0 */ be_nested_str_weak(endpoint), + /* K1 */ be_nested_str_weak(cluster), + /* K2 */ be_nested_str_weak(attribute), + /* K3 */ be_nested_str_weak(find_plugin_by_endpoint), + /* K4 */ be_nested_str_weak(status), + /* K5 */ be_nested_str_weak(matter), + /* K6 */ be_nested_str_weak(UNSUPPORTED_ENDPOINT), + /* K7 */ be_nested_str_weak(contains_cluster), + /* K8 */ be_nested_str_weak(UNSUPPORTED_CLUSTER), + /* K9 */ be_nested_str_weak(contains_attribute), + /* K10 */ be_nested_str_weak(UNSUPPORTED_ATTRIBUTE), }), - be_str_weak(autoconf_sensors_list), + be_str_weak(resolve_attribute_read_solo), &be_const_str_solidified, - ( &(const binstruction[119]) { /* code */ - 0x60080012, // 0000 GETGBL R2 G18 - 0x7C080000, // 0001 CALL R2 0 - 0x600C0010, // 0002 GETGBL R3 G16 - 0x8C100100, // 0003 GETMET R4 R0 K0 - 0x5C180200, // 0004 MOVE R6 R1 - 0x7C100400, // 0005 CALL R4 2 - 0x7C0C0200, // 0006 CALL R3 1 - 0xA8020013, // 0007 EXBLK 0 #001C - 0x5C100600, // 0008 MOVE R4 R3 - 0x7C100000, // 0009 CALL R4 0 - 0x94140204, // 000A GETIDX R5 R1 R4 - 0x6018000F, // 000B GETGBL R6 G15 - 0x5C1C0A00, // 000C MOVE R7 R5 - 0x60200013, // 000D GETGBL R8 G19 - 0x7C180400, // 000E CALL R6 2 - 0x781A000A, // 000F JMPF R6 #001B - 0x8C180B01, // 0010 GETMET R6 R5 K1 - 0x58200002, // 0011 LDCONST R8 K2 - 0x7C180400, // 0012 CALL R6 2 - 0x781A0006, // 0013 JMPF R6 #001B - 0x00180903, // 0014 ADD R6 R4 K3 - 0x8C1C0504, // 0015 GETMET R7 R2 K4 - 0x60240013, // 0016 GETGBL R9 G19 - 0x7C240000, // 0017 CALL R9 0 - 0x98260B06, // 0018 SETIDX R9 K5 K6 - 0x98260E06, // 0019 SETIDX R9 K7 R6 - 0x7C1C0400, // 001A CALL R7 2 - 0x7001FFEB, // 001B JMP #0008 - 0x580C0008, // 001C LDCONST R3 K8 - 0xAC0C0200, // 001D CATCH R3 1 0 - 0xB0080000, // 001E RAISE 2 R0 R0 - 0x600C0010, // 001F GETGBL R3 G16 - 0x8C100100, // 0020 GETMET R4 R0 K0 - 0x5C180200, // 0021 MOVE R6 R1 - 0x7C100400, // 0022 CALL R4 2 - 0x7C0C0200, // 0023 CALL R3 1 - 0xA8020013, // 0024 EXBLK 0 #0039 - 0x5C100600, // 0025 MOVE R4 R3 - 0x7C100000, // 0026 CALL R4 0 - 0x94140204, // 0027 GETIDX R5 R1 R4 - 0x6018000F, // 0028 GETGBL R6 G15 - 0x5C1C0A00, // 0029 MOVE R7 R5 - 0x60200013, // 002A GETGBL R8 G19 - 0x7C180400, // 002B CALL R6 2 - 0x781A000A, // 002C JMPF R6 #0038 - 0x8C180B01, // 002D GETMET R6 R5 K1 - 0x58200009, // 002E LDCONST R8 K9 - 0x7C180400, // 002F CALL R6 2 - 0x781A0006, // 0030 JMPF R6 #0038 - 0x0018090A, // 0031 ADD R6 R4 K10 - 0x8C1C0504, // 0032 GETMET R7 R2 K4 - 0x60240013, // 0033 GETGBL R9 G19 - 0x7C240000, // 0034 CALL R9 0 - 0x98260B0B, // 0035 SETIDX R9 K5 K11 - 0x98260E06, // 0036 SETIDX R9 K7 R6 - 0x7C1C0400, // 0037 CALL R7 2 - 0x7001FFEB, // 0038 JMP #0025 - 0x580C0008, // 0039 LDCONST R3 K8 - 0xAC0C0200, // 003A CATCH R3 1 0 - 0xB0080000, // 003B RAISE 2 R0 R0 - 0x600C0010, // 003C GETGBL R3 G16 - 0x8C100100, // 003D GETMET R4 R0 K0 - 0x5C180200, // 003E MOVE R6 R1 - 0x7C100400, // 003F CALL R4 2 - 0x7C0C0200, // 0040 CALL R3 1 - 0xA8020013, // 0041 EXBLK 0 #0056 - 0x5C100600, // 0042 MOVE R4 R3 - 0x7C100000, // 0043 CALL R4 0 - 0x94140204, // 0044 GETIDX R5 R1 R4 - 0x6018000F, // 0045 GETGBL R6 G15 - 0x5C1C0A00, // 0046 MOVE R7 R5 - 0x60200013, // 0047 GETGBL R8 G19 - 0x7C180400, // 0048 CALL R6 2 - 0x781A000A, // 0049 JMPF R6 #0055 - 0x8C180B01, // 004A GETMET R6 R5 K1 - 0x5820000C, // 004B LDCONST R8 K12 - 0x7C180400, // 004C CALL R6 2 - 0x781A0006, // 004D JMPF R6 #0055 - 0x0018090D, // 004E ADD R6 R4 K13 - 0x8C1C0504, // 004F GETMET R7 R2 K4 - 0x60240013, // 0050 GETGBL R9 G19 - 0x7C240000, // 0051 CALL R9 0 - 0x98260B0E, // 0052 SETIDX R9 K5 K14 - 0x98260E06, // 0053 SETIDX R9 K7 R6 - 0x7C1C0400, // 0054 CALL R7 2 - 0x7001FFEB, // 0055 JMP #0042 - 0x580C0008, // 0056 LDCONST R3 K8 - 0xAC0C0200, // 0057 CATCH R3 1 0 - 0xB0080000, // 0058 RAISE 2 R0 R0 - 0x600C0010, // 0059 GETGBL R3 G16 - 0x8C100100, // 005A GETMET R4 R0 K0 - 0x5C180200, // 005B MOVE R6 R1 - 0x7C100400, // 005C CALL R4 2 - 0x7C0C0200, // 005D CALL R3 1 - 0xA8020013, // 005E EXBLK 0 #0073 - 0x5C100600, // 005F MOVE R4 R3 - 0x7C100000, // 0060 CALL R4 0 - 0x94140204, // 0061 GETIDX R5 R1 R4 - 0x6018000F, // 0062 GETGBL R6 G15 - 0x5C1C0A00, // 0063 MOVE R7 R5 - 0x60200013, // 0064 GETGBL R8 G19 - 0x7C180400, // 0065 CALL R6 2 - 0x781A000A, // 0066 JMPF R6 #0072 - 0x8C180B01, // 0067 GETMET R6 R5 K1 - 0x5820000F, // 0068 LDCONST R8 K15 - 0x7C180400, // 0069 CALL R6 2 - 0x781A0006, // 006A JMPF R6 #0072 - 0x00180910, // 006B ADD R6 R4 K16 - 0x8C1C0504, // 006C GETMET R7 R2 K4 - 0x60240013, // 006D GETGBL R9 G19 - 0x7C240000, // 006E CALL R9 0 - 0x98260B11, // 006F SETIDX R9 K5 K17 - 0x98260E06, // 0070 SETIDX R9 K7 R6 - 0x7C1C0400, // 0071 CALL R7 2 - 0x7001FFEB, // 0072 JMP #005F - 0x580C0008, // 0073 LDCONST R3 K8 - 0xAC0C0200, // 0074 CATCH R3 1 0 - 0xB0080000, // 0075 RAISE 2 R0 R0 - 0x80040400, // 0076 RET 1 R2 + ( &(const binstruction[47]) { /* code */ + 0x88080300, // 0000 GETMBR R2 R1 K0 + 0x880C0301, // 0001 GETMBR R3 R1 K1 + 0x88100302, // 0002 GETMBR R4 R1 K2 + 0x4C140000, // 0003 LDNIL R5 + 0x1C140405, // 0004 EQ R5 R2 R5 + 0x74160005, // 0005 JMPT R5 #000C + 0x4C140000, // 0006 LDNIL R5 + 0x1C140605, // 0007 EQ R5 R3 R5 + 0x74160002, // 0008 JMPT R5 #000C + 0x4C140000, // 0009 LDNIL R5 + 0x1C140805, // 000A EQ R5 R4 R5 + 0x78160001, // 000B JMPF R5 #000E + 0x4C140000, // 000C LDNIL R5 + 0x80040A00, // 000D RET 1 R5 + 0x8C140103, // 000E GETMET R5 R0 K3 + 0x5C1C0400, // 000F MOVE R7 R2 + 0x7C140400, // 0010 CALL R5 2 + 0x4C180000, // 0011 LDNIL R6 + 0x1C180A06, // 0012 EQ R6 R5 R6 + 0x781A0005, // 0013 JMPF R6 #001A + 0xB81A0A00, // 0014 GETNGBL R6 K5 + 0x88180D06, // 0015 GETMBR R6 R6 K6 + 0x90060806, // 0016 SETMBR R1 K4 R6 + 0x4C180000, // 0017 LDNIL R6 + 0x80040C00, // 0018 RET 1 R6 + 0x70020013, // 0019 JMP #002E + 0x8C180B07, // 001A GETMET R6 R5 K7 + 0x5C200600, // 001B MOVE R8 R3 + 0x7C180400, // 001C CALL R6 2 + 0x741A0005, // 001D JMPT R6 #0024 + 0xB81A0A00, // 001E GETNGBL R6 K5 + 0x88180D08, // 001F GETMBR R6 R6 K8 + 0x90060806, // 0020 SETMBR R1 K4 R6 + 0x4C180000, // 0021 LDNIL R6 + 0x80040C00, // 0022 RET 1 R6 + 0x70020009, // 0023 JMP #002E + 0x8C180B09, // 0024 GETMET R6 R5 K9 + 0x5C200600, // 0025 MOVE R8 R3 + 0x5C240800, // 0026 MOVE R9 R4 + 0x7C180600, // 0027 CALL R6 3 + 0x741A0004, // 0028 JMPT R6 #002E + 0xB81A0A00, // 0029 GETNGBL R6 K5 + 0x88180D0A, // 002A GETMBR R6 R6 K10 + 0x90060806, // 002B SETMBR R1 K4 R6 + 0x4C180000, // 002C LDNIL R6 + 0x80040C00, // 002D RET 1 R6 + 0x80040A00, // 002E RET 1 R5 }) ) ); @@ -3670,13 +1334,13 @@ be_local_closure(class_Matter_Device_update_remotes_info, /* name */ /******************************************************************** -** Solidified function: get_plugin_class_displayname +** Solidified function: button_multi_pressed ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_get_plugin_class_displayname, /* name */ +be_local_closure(class_Matter_Device_button_multi_pressed, /* name */ be_nested_proto( - 5, /* nstack */ - 2, /* argc */ + 11, /* nstack */ + 3, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ @@ -3684,23 +1348,27 @@ be_local_closure(class_Matter_Device_get_plugin_class_displayname, /* name */ &be_class_Matter_Device, 1, /* has constants */ ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(plugins_classes), - /* K1 */ be_nested_str_weak(find), - /* K2 */ be_nested_str_weak(DISPLAY_NAME), - /* K3 */ be_nested_str_weak(), + /* K0 */ be_nested_str_weak(button_handler), + /* K1 */ be_const_int(1), + /* K2 */ be_const_int(2), + /* K3 */ be_const_int(0), }), - be_str_weak(get_plugin_class_displayname), + be_str_weak(button_multi_pressed), &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x5C100200, // 0002 MOVE R4 R1 - 0x7C080400, // 0003 CALL R2 2 - 0x780A0001, // 0004 JMPF R2 #0007 - 0x880C0502, // 0005 GETMBR R3 R2 K2 - 0x70020000, // 0006 JMP #0008 - 0x580C0003, // 0007 LDCONST R3 K3 - 0x80040600, // 0008 RET 1 R3 + ( &(const binstruction[13]) { /* code */ + 0x540E0007, // 0000 LDINT R3 8 + 0x3C0C0403, // 0001 SHR R3 R2 R3 + 0x541200FE, // 0002 LDINT R4 255 + 0x2C0C0604, // 0003 AND R3 R3 R4 + 0x541200FE, // 0004 LDINT R4 255 + 0x2C100404, // 0005 AND R4 R2 R4 + 0x8C140100, // 0006 GETMET R5 R0 K0 + 0x001C0901, // 0007 ADD R7 R4 K1 + 0x58200002, // 0008 LDCONST R8 K2 + 0x58240003, // 0009 LDCONST R9 K3 + 0x5C280600, // 000A MOVE R10 R3 + 0x7C140A00, // 000B CALL R5 5 + 0x80000000, // 000C RET 0 }) ) ); @@ -3708,61 +1376,82 @@ be_local_closure(class_Matter_Device_get_plugin_class_displayname, /* name */ /******************************************************************** -** Solidified function: start_commissioning_complete_deferred +** Solidified function: sort_distinct ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_start_commissioning_complete_deferred, /* name */ +be_local_closure(class_Matter_Device_sort_distinct, /* name */ be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 2, /* varg */ + 7, /* nstack */ + 1, /* argc */ + 4, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 2]) { - be_nested_proto( - 3, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 2]) { /* upvals */ - be_local_const_upval(1, 0), - be_local_const_upval(1, 1), - }), - 0, /* has sup protos */ - NULL, - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(start_commissioning_complete), - }), - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x68080001, // 0002 GETUPV R2 U1 - 0x7C000400, // 0003 CALL R0 2 - 0x80040000, // 0004 RET 1 R0 - }) - ), + 0, /* has sup protos */ &be_class_Matter_Device, - }), 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(set_timer), + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_const_class(be_class_Matter_Device), + /* K1 */ be_const_int(1), /* K2 */ be_const_int(0), + /* K3 */ be_nested_str_weak(stop_iteration), + /* K4 */ be_nested_str_weak(remove), }), - be_str_weak(start_commissioning_complete_deferred), + be_str_weak(sort_distinct), &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0xB80A0000, // 0000 GETNGBL R2 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x58100002, // 0002 LDCONST R4 K2 - 0x84140000, // 0003 CLOSURE R5 P0 - 0x7C080600, // 0004 CALL R2 3 - 0xA0000000, // 0005 CLOSE R0 - 0x80000000, // 0006 RET 0 + ( &(const binstruction[53]) { /* code */ + 0x58040000, // 0000 LDCONST R1 K0 + 0x60080010, // 0001 GETGBL R2 G16 + 0x600C000C, // 0002 GETGBL R3 G12 + 0x5C100000, // 0003 MOVE R4 R0 + 0x7C0C0200, // 0004 CALL R3 1 + 0x040C0701, // 0005 SUB R3 R3 K1 + 0x400E0203, // 0006 CONNECT R3 K1 R3 + 0x7C080200, // 0007 CALL R2 1 + 0xA8020010, // 0008 EXBLK 0 #001A + 0x5C0C0400, // 0009 MOVE R3 R2 + 0x7C0C0000, // 000A CALL R3 0 + 0x94100003, // 000B GETIDX R4 R0 R3 + 0x5C140600, // 000C MOVE R5 R3 + 0x24180B02, // 000D GT R6 R5 K2 + 0x781A0008, // 000E JMPF R6 #0018 + 0x04180B01, // 000F SUB R6 R5 K1 + 0x94180006, // 0010 GETIDX R6 R0 R6 + 0x24180C04, // 0011 GT R6 R6 R4 + 0x781A0004, // 0012 JMPF R6 #0018 + 0x04180B01, // 0013 SUB R6 R5 K1 + 0x94180006, // 0014 GETIDX R6 R0 R6 + 0x98000A06, // 0015 SETIDX R0 R5 R6 + 0x04140B01, // 0016 SUB R5 R5 K1 + 0x7001FFF4, // 0017 JMP #000D + 0x98000A04, // 0018 SETIDX R0 R5 R4 + 0x7001FFEE, // 0019 JMP #0009 + 0x58080003, // 001A LDCONST R2 K3 + 0xAC080200, // 001B CATCH R2 1 0 + 0xB0080000, // 001C RAISE 2 R0 R0 + 0x58080001, // 001D LDCONST R2 K1 + 0x600C000C, // 001E GETGBL R3 G12 + 0x5C100000, // 001F MOVE R4 R0 + 0x7C0C0200, // 0020 CALL R3 1 + 0x180C0701, // 0021 LE R3 R3 K1 + 0x780E0000, // 0022 JMPF R3 #0024 + 0x80040000, // 0023 RET 1 R0 + 0x940C0102, // 0024 GETIDX R3 R0 K2 + 0x6010000C, // 0025 GETGBL R4 G12 + 0x5C140000, // 0026 MOVE R5 R0 + 0x7C100200, // 0027 CALL R4 1 + 0x14100404, // 0028 LT R4 R2 R4 + 0x78120009, // 0029 JMPF R4 #0034 + 0x94100002, // 002A GETIDX R4 R0 R2 + 0x1C100803, // 002B EQ R4 R4 R3 + 0x78120003, // 002C JMPF R4 #0031 + 0x8C100104, // 002D GETMET R4 R0 K4 + 0x5C180400, // 002E MOVE R6 R2 + 0x7C100400, // 002F CALL R4 2 + 0x70020001, // 0030 JMP #0033 + 0x940C0002, // 0031 GETIDX R3 R0 R2 + 0x00080501, // 0032 ADD R2 R2 K1 + 0x7001FFF0, // 0033 JMP #0025 + 0x80040000, // 0034 RET 1 R0 }) ) ); @@ -3770,461 +1459,10 @@ be_local_closure(class_Matter_Device_start_commissioning_complete_deferred, /* /******************************************************************** -** Solidified function: _trigger_read_sensors +** Solidified function: mdns_remove_PASE ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device__trigger_read_sensors, /* name */ - be_nested_proto( - 8, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[13]) { /* constants */ - /* K0 */ be_nested_str_weak(json), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(read_sensors), - /* K3 */ be_nested_str_weak(loglevel), - /* K4 */ be_const_int(3), - /* K5 */ be_nested_str_weak(log), - /* K6 */ be_nested_str_weak(MTR_X3A_X20read_sensors_X3A_X20), - /* K7 */ be_nested_str_weak(load), - /* K8 */ be_const_int(0), - /* K9 */ be_nested_str_weak(plugins), - /* K10 */ be_nested_str_weak(parse_sensors), - /* K11 */ be_const_int(1), - /* K12 */ be_nested_str_weak(MTR_X3A_X20unable_X20to_X20parse_X20read_sensors_X3A_X20), - }), - be_str_weak(_trigger_read_sensors), - &be_const_str_solidified, - ( &(const binstruction[48]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xB80A0200, // 0001 GETNGBL R2 K1 - 0x8C080502, // 0002 GETMET R2 R2 K2 - 0x7C080200, // 0003 CALL R2 1 - 0xB80E0200, // 0004 GETNGBL R3 K1 - 0x8C0C0703, // 0005 GETMET R3 R3 K3 - 0x58140004, // 0006 LDCONST R5 K4 - 0x7C0C0400, // 0007 CALL R3 2 - 0x780E0006, // 0008 JMPF R3 #0010 - 0xB80E0A00, // 0009 GETNGBL R3 K5 - 0x60100008, // 000A GETGBL R4 G8 - 0x5C140400, // 000B MOVE R5 R2 - 0x7C100200, // 000C CALL R4 1 - 0x00120C04, // 000D ADD R4 K6 R4 - 0x58140004, // 000E LDCONST R5 K4 - 0x7C0C0400, // 000F CALL R3 2 - 0x4C0C0000, // 0010 LDNIL R3 - 0x1C0C0403, // 0011 EQ R3 R2 R3 - 0x780E0000, // 0012 JMPF R3 #0014 - 0x80000600, // 0013 RET 0 - 0x8C0C0307, // 0014 GETMET R3 R1 K7 - 0x5C140400, // 0015 MOVE R5 R2 - 0x7C0C0400, // 0016 CALL R3 2 - 0x4C100000, // 0017 LDNIL R4 - 0x20100604, // 0018 NE R4 R3 R4 - 0x7812000D, // 0019 JMPF R4 #0028 - 0x58100008, // 001A LDCONST R4 K8 - 0x6014000C, // 001B GETGBL R5 G12 - 0x88180109, // 001C GETMBR R6 R0 K9 - 0x7C140200, // 001D CALL R5 1 - 0x14140805, // 001E LT R5 R4 R5 - 0x78160006, // 001F JMPF R5 #0027 - 0x88140109, // 0020 GETMBR R5 R0 K9 - 0x94140A04, // 0021 GETIDX R5 R5 R4 - 0x8C140B0A, // 0022 GETMET R5 R5 K10 - 0x5C1C0600, // 0023 MOVE R7 R3 - 0x7C140400, // 0024 CALL R5 2 - 0x0010090B, // 0025 ADD R4 R4 K11 - 0x7001FFF3, // 0026 JMP #001B - 0x70020006, // 0027 JMP #002F - 0xB8120A00, // 0028 GETNGBL R4 K5 - 0x60140008, // 0029 GETGBL R5 G8 - 0x5C180400, // 002A MOVE R6 R2 - 0x7C140200, // 002B CALL R5 1 - 0x00161805, // 002C ADD R5 K12 R5 - 0x58180004, // 002D LDCONST R6 K4 - 0x7C100400, // 002E CALL R4 2 - 0x80000000, // 002F RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: every_second -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_every_second, /* name */ - be_nested_proto( - 4, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 7]) { /* constants */ - /* K0 */ be_nested_str_weak(sessions), - /* K1 */ be_nested_str_weak(every_second), - /* K2 */ be_nested_str_weak(message_handler), - /* K3 */ be_nested_str_weak(events), - /* K4 */ be_nested_str_weak(commissioning_open), - /* K5 */ be_nested_str_weak(tasmota), - /* K6 */ be_nested_str_weak(time_reached), - }), - be_str_weak(every_second), - &be_const_str_solidified, - ( &(const binstruction[21]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x88040102, // 0003 GETMBR R1 R0 K2 - 0x8C040301, // 0004 GETMET R1 R1 K1 - 0x7C040200, // 0005 CALL R1 1 - 0x88040103, // 0006 GETMBR R1 R0 K3 - 0x8C040301, // 0007 GETMET R1 R1 K1 - 0x7C040200, // 0008 CALL R1 1 - 0x88040104, // 0009 GETMBR R1 R0 K4 - 0x4C080000, // 000A LDNIL R2 - 0x20040202, // 000B NE R1 R1 R2 - 0x78060006, // 000C JMPF R1 #0014 - 0xB8060A00, // 000D GETNGBL R1 K5 - 0x8C040306, // 000E GETMET R1 R1 K6 - 0x880C0104, // 000F GETMBR R3 R0 K4 - 0x7C040400, // 0010 CALL R1 2 - 0x78060001, // 0011 JMPF R1 #0014 - 0x4C040000, // 0012 LDNIL R1 - 0x90020801, // 0013 SETMBR R0 K4 R1 - 0x80000000, // 0014 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: start_basic_commissioning -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_start_basic_commissioning, /* name */ - be_nested_proto( - 13, /* nstack */ - 8, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 3]) { - be_nested_proto( - 4, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(mdns_announce_PASE), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(remove_rule), - /* K3 */ be_nested_str_weak(Wifi_X23Connected), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x7C000200, // 0002 CALL R0 1 - 0xB8020200, // 0003 GETNGBL R0 K1 - 0x8C000102, // 0004 GETMET R0 R0 K2 - 0x58080003, // 0005 LDCONST R2 K3 - 0x580C0000, // 0006 LDCONST R3 K0 - 0x7C000600, // 0007 CALL R0 3 - 0x80000000, // 0008 RET 0 - }) - ), - be_nested_proto( - 4, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(mdns_announce_PASE), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(remove_rule), - /* K3 */ be_nested_str_weak(Eth_X23Connected), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x7C000200, // 0002 CALL R0 1 - 0xB8020200, // 0003 GETNGBL R0 K1 - 0x8C000102, // 0004 GETMET R0 R0 K2 - 0x58080003, // 0005 LDCONST R2 K3 - 0x580C0000, // 0006 LDCONST R3 K0 - 0x7C000600, // 0007 CALL R0 3 - 0x80000000, // 0008 RET 0 - }) - ), - &be_class_Matter_Device, - }), - 1, /* has constants */ - ( &(const bvalue[16]) { /* constants */ - /* K0 */ be_nested_str_weak(commissioning_open), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(millis), - /* K3 */ be_nested_str_weak(commissioning_iterations), - /* K4 */ be_nested_str_weak(commissioning_discriminator), - /* K5 */ be_nested_str_weak(commissioning_salt), - /* K6 */ be_nested_str_weak(commissioning_w0), - /* K7 */ be_nested_str_weak(commissioning_L), - /* K8 */ be_nested_str_weak(commissioning_admin_fabric), - /* K9 */ be_nested_str_weak(wifi), - /* K10 */ be_nested_str_weak(up), - /* K11 */ be_nested_str_weak(eth), - /* K12 */ be_nested_str_weak(mdns_announce_PASE), - /* K13 */ be_nested_str_weak(add_rule), - /* K14 */ be_nested_str_weak(Wifi_X23Connected), - /* K15 */ be_nested_str_weak(Eth_X23Connected), - }), - be_str_weak(start_basic_commissioning), - &be_const_str_solidified, - ( &(const binstruction[40]) { /* code */ - 0xB8220200, // 0000 GETNGBL R8 K1 - 0x8C201102, // 0001 GETMET R8 R8 K2 - 0x7C200200, // 0002 CALL R8 1 - 0x542603E7, // 0003 LDINT R9 1000 - 0x08240209, // 0004 MUL R9 R1 R9 - 0x00201009, // 0005 ADD R8 R8 R9 - 0x90020008, // 0006 SETMBR R0 K0 R8 - 0x90020602, // 0007 SETMBR R0 K3 R2 - 0x90020803, // 0008 SETMBR R0 K4 R3 - 0x90020A04, // 0009 SETMBR R0 K5 R4 - 0x90020C05, // 000A SETMBR R0 K6 R5 - 0x90020E06, // 000B SETMBR R0 K7 R6 - 0x90021007, // 000C SETMBR R0 K8 R7 - 0xB8220200, // 000D GETNGBL R8 K1 - 0x8C201109, // 000E GETMET R8 R8 K9 - 0x7C200200, // 000F CALL R8 1 - 0x9420110A, // 0010 GETIDX R8 R8 K10 - 0x74220004, // 0011 JMPT R8 #0017 - 0xB8220200, // 0012 GETNGBL R8 K1 - 0x8C20110B, // 0013 GETMET R8 R8 K11 - 0x7C200200, // 0014 CALL R8 1 - 0x9420110A, // 0015 GETIDX R8 R8 K10 - 0x78220002, // 0016 JMPF R8 #001A - 0x8C20010C, // 0017 GETMET R8 R0 K12 - 0x7C200200, // 0018 CALL R8 1 - 0x7002000B, // 0019 JMP #0026 - 0xB8220200, // 001A GETNGBL R8 K1 - 0x8C20110D, // 001B GETMET R8 R8 K13 - 0x5828000E, // 001C LDCONST R10 K14 - 0x842C0000, // 001D CLOSURE R11 P0 - 0x5830000C, // 001E LDCONST R12 K12 - 0x7C200800, // 001F CALL R8 4 - 0xB8220200, // 0020 GETNGBL R8 K1 - 0x8C20110D, // 0021 GETMET R8 R8 K13 - 0x5828000F, // 0022 LDCONST R10 K15 - 0x842C0001, // 0023 CLOSURE R11 P1 - 0x5830000C, // 0024 LDCONST R12 K12 - 0x7C200800, // 0025 CALL R8 4 - 0xA0000000, // 0026 CLOSE R0 - 0x80000000, // 0027 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: mdns_announce_op_discovery -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_mdns_announce_op_discovery, /* name */ - be_nested_proto( - 14, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[27]) { /* constants */ - /* K0 */ be_nested_str_weak(mdns), - /* K1 */ be_nested_str_weak(get_device_id), - /* K2 */ be_nested_str_weak(copy), - /* K3 */ be_nested_str_weak(reverse), - /* K4 */ be_nested_str_weak(get_fabric_compressed), - /* K5 */ be_nested_str_weak(tohex), - /* K6 */ be_nested_str_weak(_X2D), - /* K7 */ be_nested_str_weak(log), - /* K8 */ be_nested_str_weak(MTR_X3A_X20Operational_X20Discovery_X20node_X20_X3D_X20), - /* K9 */ be_const_int(3), - /* K10 */ be_nested_str_weak(tasmota), - /* K11 */ be_nested_str_weak(eth), - /* K12 */ be_nested_str_weak(find), - /* K13 */ be_nested_str_weak(up), - /* K14 */ be_nested_str_weak(MTR_X3A_X20adding_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27_X20ptr_X20to_X20_X60_X25s_X2Elocal_X60), - /* K15 */ be_nested_str_weak(hostname_eth), - /* K16 */ be_nested_str_weak(add_service), - /* K17 */ be_nested_str_weak(_matter), - /* K18 */ be_nested_str_weak(_tcp), - /* K19 */ be_nested_str_weak(_I), - /* K20 */ be_nested_str_weak(MTR_X3A_X20adding_X20subtype_X3A_X20), - /* K21 */ be_nested_str_weak(add_subtype), - /* K22 */ be_nested_str_weak(wifi), - /* K23 */ be_nested_str_weak(hostname_wifi), - /* K24 */ be_nested_str_weak(MTR_X3A_X20Exception), - /* K25 */ be_nested_str_weak(_X7C), - /* K26 */ be_const_int(2), - }), - be_str_weak(mdns_announce_op_discovery), - &be_const_str_solidified, - ( &(const binstruction[115]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0xA802005F, // 0001 EXBLK 0 #0062 - 0x8C0C0301, // 0002 GETMET R3 R1 K1 - 0x7C0C0200, // 0003 CALL R3 1 - 0x8C0C0702, // 0004 GETMET R3 R3 K2 - 0x7C0C0200, // 0005 CALL R3 1 - 0x8C0C0703, // 0006 GETMET R3 R3 K3 - 0x7C0C0200, // 0007 CALL R3 1 - 0x8C100304, // 0008 GETMET R4 R1 K4 - 0x7C100200, // 0009 CALL R4 1 - 0x8C140905, // 000A GETMET R5 R4 K5 - 0x7C140200, // 000B CALL R5 1 - 0x00140B06, // 000C ADD R5 R5 K6 - 0x8C180705, // 000D GETMET R6 R3 K5 - 0x7C180200, // 000E CALL R6 1 - 0x00140A06, // 000F ADD R5 R5 R6 - 0xB81A0E00, // 0010 GETNGBL R6 K7 - 0x001E1005, // 0011 ADD R7 K8 R5 - 0x58200009, // 0012 LDCONST R8 K9 - 0x7C180400, // 0013 CALL R6 2 - 0xB81A1400, // 0014 GETNGBL R6 K10 - 0x8C180D0B, // 0015 GETMET R6 R6 K11 - 0x7C180200, // 0016 CALL R6 1 - 0x8C180D0C, // 0017 GETMET R6 R6 K12 - 0x5820000D, // 0018 LDCONST R8 K13 - 0x7C180400, // 0019 CALL R6 2 - 0x781A001E, // 001A JMPF R6 #003A - 0xB81A0E00, // 001B GETNGBL R6 K7 - 0x601C0018, // 001C GETGBL R7 G24 - 0x5820000E, // 001D LDCONST R8 K14 - 0x5824000B, // 001E LDCONST R9 K11 - 0x5C280A00, // 001F MOVE R10 R5 - 0x882C010F, // 0020 GETMBR R11 R0 K15 - 0x7C1C0800, // 0021 CALL R7 4 - 0x58200009, // 0022 LDCONST R8 K9 - 0x7C180400, // 0023 CALL R6 2 - 0x8C180510, // 0024 GETMET R6 R2 K16 - 0x58200011, // 0025 LDCONST R8 K17 - 0x58240012, // 0026 LDCONST R9 K18 - 0x542A15A3, // 0027 LDINT R10 5540 - 0x4C2C0000, // 0028 LDNIL R11 - 0x5C300A00, // 0029 MOVE R12 R5 - 0x8834010F, // 002A GETMBR R13 R0 K15 - 0x7C180E00, // 002B CALL R6 7 - 0x8C180905, // 002C GETMET R6 R4 K5 - 0x7C180200, // 002D CALL R6 1 - 0x001A2606, // 002E ADD R6 K19 R6 - 0xB81E0E00, // 002F GETNGBL R7 K7 - 0x00222806, // 0030 ADD R8 K20 R6 - 0x58240009, // 0031 LDCONST R9 K9 - 0x7C1C0400, // 0032 CALL R7 2 - 0x8C1C0515, // 0033 GETMET R7 R2 K21 - 0x58240011, // 0034 LDCONST R9 K17 - 0x58280012, // 0035 LDCONST R10 K18 - 0x5C2C0A00, // 0036 MOVE R11 R5 - 0x8830010F, // 0037 GETMBR R12 R0 K15 - 0x5C340C00, // 0038 MOVE R13 R6 - 0x7C1C0C00, // 0039 CALL R7 6 - 0xB81A1400, // 003A GETNGBL R6 K10 - 0x8C180D16, // 003B GETMET R6 R6 K22 - 0x7C180200, // 003C CALL R6 1 - 0x8C180D0C, // 003D GETMET R6 R6 K12 - 0x5820000D, // 003E LDCONST R8 K13 - 0x7C180400, // 003F CALL R6 2 - 0x781A001E, // 0040 JMPF R6 #0060 - 0xB81A0E00, // 0041 GETNGBL R6 K7 - 0x601C0018, // 0042 GETGBL R7 G24 - 0x5820000E, // 0043 LDCONST R8 K14 - 0x58240016, // 0044 LDCONST R9 K22 - 0x5C280A00, // 0045 MOVE R10 R5 - 0x882C0117, // 0046 GETMBR R11 R0 K23 - 0x7C1C0800, // 0047 CALL R7 4 - 0x58200009, // 0048 LDCONST R8 K9 - 0x7C180400, // 0049 CALL R6 2 - 0x8C180510, // 004A GETMET R6 R2 K16 - 0x58200011, // 004B LDCONST R8 K17 - 0x58240012, // 004C LDCONST R9 K18 - 0x542A15A3, // 004D LDINT R10 5540 - 0x4C2C0000, // 004E LDNIL R11 - 0x5C300A00, // 004F MOVE R12 R5 - 0x88340117, // 0050 GETMBR R13 R0 K23 - 0x7C180E00, // 0051 CALL R6 7 - 0x8C180905, // 0052 GETMET R6 R4 K5 - 0x7C180200, // 0053 CALL R6 1 - 0x001A2606, // 0054 ADD R6 K19 R6 - 0xB81E0E00, // 0055 GETNGBL R7 K7 - 0x00222806, // 0056 ADD R8 K20 R6 - 0x58240009, // 0057 LDCONST R9 K9 - 0x7C1C0400, // 0058 CALL R7 2 - 0x8C1C0515, // 0059 GETMET R7 R2 K21 - 0x58240011, // 005A LDCONST R9 K17 - 0x58280012, // 005B LDCONST R10 K18 - 0x5C2C0A00, // 005C MOVE R11 R5 - 0x88300117, // 005D GETMBR R12 R0 K23 - 0x5C340C00, // 005E MOVE R13 R6 - 0x7C1C0C00, // 005F CALL R7 6 - 0xA8040001, // 0060 EXBLK 1 1 - 0x7002000F, // 0061 JMP #0072 - 0xAC0C0002, // 0062 CATCH R3 0 2 - 0x7002000C, // 0063 JMP #0071 - 0xB8160E00, // 0064 GETNGBL R5 K7 - 0x60180008, // 0065 GETGBL R6 G8 - 0x5C1C0600, // 0066 MOVE R7 R3 - 0x7C180200, // 0067 CALL R6 1 - 0x001A3006, // 0068 ADD R6 K24 R6 - 0x00180D19, // 0069 ADD R6 R6 K25 - 0x601C0008, // 006A GETGBL R7 G8 - 0x5C200800, // 006B MOVE R8 R4 - 0x7C1C0200, // 006C CALL R7 1 - 0x00180C07, // 006D ADD R6 R6 R7 - 0x581C001A, // 006E LDCONST R7 K26 - 0x7C140400, // 006F CALL R5 2 - 0x70020000, // 0070 JMP #0072 - 0xB0080000, // 0071 RAISE 2 R0 R0 - 0x80000000, // 0072 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: compute_manual_pairing_code -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_compute_manual_pairing_code, /* name */ +be_local_closure(class_Matter_Device_mdns_remove_PASE, /* name */ be_nested_proto( 9, /* nstack */ 1, /* argc */ @@ -4234,168 +1472,141 @@ be_local_closure(class_Matter_Device_compute_manual_pairing_code, /* name */ 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ - ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_nested_str_weak(root_discriminator), - /* K1 */ be_nested_str_weak(root_passcode), - /* K2 */ be_nested_str_weak(_X251i_X2505i_X2504i), - /* K3 */ be_nested_str_weak(matter), - /* K4 */ be_nested_str_weak(Verhoeff), - /* K5 */ be_nested_str_weak(checksum), + ( &(const bvalue[19]) { /* constants */ + /* K0 */ be_nested_str_weak(mdns), + /* K1 */ be_nested_str_weak(mdns_pase_eth), + /* K2 */ be_nested_str_weak(log), + /* K3 */ be_nested_str_weak(MTR_X3A_X20calling_X20mdns_X2Eremove_service_X28_X25s_X2C_X20_X25s_X2C_X20_X25s_X2C_X20_X25s_X29), + /* K4 */ be_nested_str_weak(_matterc), + /* K5 */ be_nested_str_weak(_udp), + /* K6 */ be_nested_str_weak(commissioning_instance_eth), + /* K7 */ be_nested_str_weak(hostname_eth), + /* K8 */ be_const_int(3), + /* K9 */ be_nested_str_weak(MTR_X3A_X20remove_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27), + /* K10 */ be_nested_str_weak(eth), + /* K11 */ be_nested_str_weak(remove_service), + /* K12 */ be_nested_str_weak(mdns_pase_wifi), + /* K13 */ be_nested_str_weak(commissioning_instance_wifi), + /* K14 */ be_nested_str_weak(hostname_wifi), + /* K15 */ be_nested_str_weak(wifi), + /* K16 */ be_nested_str_weak(MTR_X3A_X20Exception), + /* K17 */ be_nested_str_weak(_X7C), + /* K18 */ be_const_int(2), }), - be_str_weak(compute_manual_pairing_code), + be_str_weak(mdns_remove_PASE), &be_const_str_solidified, - ( &(const binstruction[30]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x540A0FFE, // 0001 LDINT R2 4095 - 0x2C040202, // 0002 AND R1 R1 R2 - 0x540A0009, // 0003 LDINT R2 10 - 0x3C040202, // 0004 SHR R1 R1 R2 - 0x88080100, // 0005 GETMBR R2 R0 K0 - 0x540E02FF, // 0006 LDINT R3 768 - 0x2C080403, // 0007 AND R2 R2 R3 - 0x540E0005, // 0008 LDINT R3 6 - 0x38080403, // 0009 SHL R2 R2 R3 - 0x880C0101, // 000A GETMBR R3 R0 K1 - 0x54123FFE, // 000B LDINT R4 16383 - 0x2C0C0604, // 000C AND R3 R3 R4 - 0x30080403, // 000D OR R2 R2 R3 - 0x880C0101, // 000E GETMBR R3 R0 K1 - 0x5412000D, // 000F LDINT R4 14 - 0x3C0C0604, // 0010 SHR R3 R3 R4 - 0x60100018, // 0011 GETGBL R4 G24 - 0x58140002, // 0012 LDCONST R5 K2 - 0x5C180200, // 0013 MOVE R6 R1 - 0x5C1C0400, // 0014 MOVE R7 R2 - 0x5C200600, // 0015 MOVE R8 R3 - 0x7C100800, // 0016 CALL R4 4 - 0xB8160600, // 0017 GETNGBL R5 K3 - 0x88140B04, // 0018 GETMBR R5 R5 K4 - 0x8C140B05, // 0019 GETMET R5 R5 K5 - 0x5C1C0800, // 001A MOVE R7 R4 - 0x7C140400, // 001B CALL R5 2 - 0x00100805, // 001C ADD R4 R4 R5 - 0x80040800, // 001D RET 1 R4 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: event_fabrics_saved -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_event_fabrics_saved, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(sessions), - /* K1 */ be_nested_str_weak(count_active_fabrics), - /* K2 */ be_const_int(0), - /* K3 */ be_nested_str_weak(plugins_persist), - /* K4 */ be_nested_str_weak(save_param), - }), - be_str_weak(event_fabrics_saved), - &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x24040302, // 0003 GT R1 R1 K2 - 0x78060005, // 0004 JMPF R1 #000B - 0x88040103, // 0005 GETMBR R1 R0 K3 - 0x74060003, // 0006 JMPT R1 #000B - 0x50040200, // 0007 LDBOOL R1 1 0 - 0x90020601, // 0008 SETMBR R0 K3 R1 - 0x8C040104, // 0009 GETMET R1 R0 K4 - 0x7C040200, // 000A CALL R1 1 - 0x80000000, // 000B RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: autoconf_device -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_autoconf_device, /* name */ - be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[15]) { /* constants */ - /* K0 */ be_nested_str_weak(json), - /* K1 */ be_nested_str_weak(plugins), - /* K2 */ be_const_int(0), - /* K3 */ be_nested_str_weak(plugins_persist), - /* K4 */ be_nested_str_weak(plugins_config), - /* K5 */ be_nested_str_weak(autoconf_device_map), - /* K6 */ be_nested_str_weak(plugins_config_remotes), - /* K7 */ be_nested_str_weak(adjust_next_ep), - /* K8 */ be_nested_str_weak(log), - /* K9 */ be_nested_str_weak(MTR_X3A_X20autoconfig_X20_X3D_X20), - /* K10 */ be_const_int(3), - /* K11 */ be_nested_str_weak(_instantiate_plugins_from_config), - /* K12 */ be_nested_str_weak(sessions), - /* K13 */ be_nested_str_weak(count_active_fabrics), - /* K14 */ be_nested_str_weak(save_param), - }), - be_str_weak(autoconf_device), - &be_const_str_solidified, - ( &(const binstruction[39]) { /* code */ + ( &(const binstruction[77]) { /* code */ 0xA4060000, // 0000 IMPORT R1 K0 - 0x6008000C, // 0001 GETGBL R2 G12 - 0x880C0101, // 0002 GETMBR R3 R0 K1 - 0x7C080200, // 0003 CALL R2 1 - 0x24080502, // 0004 GT R2 R2 K2 - 0x780A0000, // 0005 JMPF R2 #0007 - 0x80000400, // 0006 RET 0 - 0x88080103, // 0007 GETMBR R2 R0 K3 - 0x740A000E, // 0008 JMPT R2 #0018 - 0x8C080105, // 0009 GETMET R2 R0 K5 - 0x7C080200, // 000A CALL R2 1 - 0x90020802, // 000B SETMBR R0 K4 R2 - 0x60080013, // 000C GETGBL R2 G19 - 0x7C080000, // 000D CALL R2 0 - 0x90020C02, // 000E SETMBR R0 K6 R2 - 0x8C080107, // 000F GETMET R2 R0 K7 - 0x7C080200, // 0010 CALL R2 1 - 0xB80A1000, // 0011 GETNGBL R2 K8 - 0x600C0008, // 0012 GETGBL R3 G8 - 0x88100104, // 0013 GETMBR R4 R0 K4 - 0x7C0C0200, // 0014 CALL R3 1 - 0x000E1203, // 0015 ADD R3 K9 R3 - 0x5810000A, // 0016 LDCONST R4 K10 - 0x7C080400, // 0017 CALL R2 2 - 0x8C08010B, // 0018 GETMET R2 R0 K11 - 0x88100104, // 0019 GETMBR R4 R0 K4 - 0x7C080400, // 001A CALL R2 2 - 0x88080103, // 001B GETMBR R2 R0 K3 - 0x740A0008, // 001C JMPT R2 #0026 - 0x8808010C, // 001D GETMBR R2 R0 K12 - 0x8C08050D, // 001E GETMET R2 R2 K13 - 0x7C080200, // 001F CALL R2 1 - 0x24080502, // 0020 GT R2 R2 K2 - 0x780A0003, // 0021 JMPF R2 #0026 - 0x50080200, // 0022 LDBOOL R2 1 0 - 0x90020602, // 0023 SETMBR R0 K3 R2 - 0x8C08010E, // 0024 GETMET R2 R0 K14 - 0x7C080200, // 0025 CALL R2 1 - 0x80000000, // 0026 RET 0 + 0xA8020039, // 0001 EXBLK 0 #003C + 0x88080101, // 0002 GETMBR R2 R0 K1 + 0x780A0019, // 0003 JMPF R2 #001E + 0xB80A0400, // 0004 GETNGBL R2 K2 + 0x600C0018, // 0005 GETGBL R3 G24 + 0x58100003, // 0006 LDCONST R4 K3 + 0x58140004, // 0007 LDCONST R5 K4 + 0x58180005, // 0008 LDCONST R6 K5 + 0x881C0106, // 0009 GETMBR R7 R0 K6 + 0x88200107, // 000A GETMBR R8 R0 K7 + 0x7C0C0A00, // 000B CALL R3 5 + 0x58100008, // 000C LDCONST R4 K8 + 0x7C080400, // 000D CALL R2 2 + 0xB80A0400, // 000E GETNGBL R2 K2 + 0x600C0018, // 000F GETGBL R3 G24 + 0x58100009, // 0010 LDCONST R4 K9 + 0x5814000A, // 0011 LDCONST R5 K10 + 0x88180106, // 0012 GETMBR R6 R0 K6 + 0x7C0C0600, // 0013 CALL R3 3 + 0x58100008, // 0014 LDCONST R4 K8 + 0x7C080400, // 0015 CALL R2 2 + 0x50080000, // 0016 LDBOOL R2 0 0 + 0x90020202, // 0017 SETMBR R0 K1 R2 + 0x8C08030B, // 0018 GETMET R2 R1 K11 + 0x58100004, // 0019 LDCONST R4 K4 + 0x58140005, // 001A LDCONST R5 K5 + 0x88180106, // 001B GETMBR R6 R0 K6 + 0x881C0107, // 001C GETMBR R7 R0 K7 + 0x7C080A00, // 001D CALL R2 5 + 0x8808010C, // 001E GETMBR R2 R0 K12 + 0x780A0019, // 001F JMPF R2 #003A + 0xB80A0400, // 0020 GETNGBL R2 K2 + 0x600C0018, // 0021 GETGBL R3 G24 + 0x58100003, // 0022 LDCONST R4 K3 + 0x58140004, // 0023 LDCONST R5 K4 + 0x58180005, // 0024 LDCONST R6 K5 + 0x881C010D, // 0025 GETMBR R7 R0 K13 + 0x8820010E, // 0026 GETMBR R8 R0 K14 + 0x7C0C0A00, // 0027 CALL R3 5 + 0x58100008, // 0028 LDCONST R4 K8 + 0x7C080400, // 0029 CALL R2 2 + 0xB80A0400, // 002A GETNGBL R2 K2 + 0x600C0018, // 002B GETGBL R3 G24 + 0x58100009, // 002C LDCONST R4 K9 + 0x5814000F, // 002D LDCONST R5 K15 + 0x8818010D, // 002E GETMBR R6 R0 K13 + 0x7C0C0600, // 002F CALL R3 3 + 0x58100008, // 0030 LDCONST R4 K8 + 0x7C080400, // 0031 CALL R2 2 + 0x50080000, // 0032 LDBOOL R2 0 0 + 0x90021802, // 0033 SETMBR R0 K12 R2 + 0x8C08030B, // 0034 GETMET R2 R1 K11 + 0x58100004, // 0035 LDCONST R4 K4 + 0x58140005, // 0036 LDCONST R5 K5 + 0x8818010D, // 0037 GETMBR R6 R0 K13 + 0x881C010E, // 0038 GETMBR R7 R0 K14 + 0x7C080A00, // 0039 CALL R2 5 + 0xA8040001, // 003A EXBLK 1 1 + 0x7002000F, // 003B JMP #004C + 0xAC080002, // 003C CATCH R2 0 2 + 0x7002000C, // 003D JMP #004B + 0xB8120400, // 003E GETNGBL R4 K2 + 0x60140008, // 003F GETGBL R5 G8 + 0x5C180400, // 0040 MOVE R6 R2 + 0x7C140200, // 0041 CALL R5 1 + 0x00162005, // 0042 ADD R5 K16 R5 + 0x00140B11, // 0043 ADD R5 R5 K17 + 0x60180008, // 0044 GETGBL R6 G8 + 0x5C1C0600, // 0045 MOVE R7 R3 + 0x7C180200, // 0046 CALL R6 1 + 0x00140A06, // 0047 ADD R5 R5 R6 + 0x58180012, // 0048 LDCONST R6 K18 + 0x7C100400, // 0049 CALL R4 2 + 0x70020000, // 004A JMP #004C + 0xB0080000, // 004B RAISE 2 R0 R0 + 0x80000000, // 004C RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_plugin_remote_info +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_get_plugin_remote_info, /* name */ + be_nested_proto( + 6, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(plugins_config_remotes), + /* K1 */ be_nested_str_weak(find), + }), + be_str_weak(get_plugin_remote_info), + &be_const_str_solidified, + ( &(const binstruction[ 7]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x5C100200, // 0002 MOVE R4 R1 + 0x60140013, // 0003 GETGBL R5 G19 + 0x7C140000, // 0004 CALL R5 0 + 0x7C080600, // 0005 CALL R2 3 + 0x80040400, // 0006 RET 1 R2 }) ) ); @@ -4525,12 +1736,12 @@ be_local_closure(class_Matter_Device_start_root_basic_commissioning, /* name * /******************************************************************** -** Solidified function: mdns_announce_op_discovery_all_fabrics +** Solidified function: event_fabrics_saved ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_mdns_announce_op_discovery_all_fabrics, /* name */ +be_local_closure(class_Matter_Device_event_fabrics_saved, /* name */ be_nested_proto( - 6, /* nstack */ + 3, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -4538,39 +1749,28 @@ be_local_closure(class_Matter_Device_mdns_announce_op_discovery_all_fabrics, / 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ - ( &(const bvalue[ 6]) { /* constants */ + ( &(const bvalue[ 5]) { /* constants */ /* K0 */ be_nested_str_weak(sessions), - /* K1 */ be_nested_str_weak(active_fabrics), - /* K2 */ be_nested_str_weak(get_device_id), - /* K3 */ be_nested_str_weak(get_fabric_id), - /* K4 */ be_nested_str_weak(mdns_announce_op_discovery), - /* K5 */ be_nested_str_weak(stop_iteration), + /* K1 */ be_nested_str_weak(count_active_fabrics), + /* K2 */ be_const_int(0), + /* K3 */ be_nested_str_weak(plugins_persist), + /* K4 */ be_nested_str_weak(save_param), }), - be_str_weak(mdns_announce_op_discovery_all_fabrics), + be_str_weak(event_fabrics_saved), &be_const_str_solidified, - ( &(const binstruction[22]) { /* code */ - 0x60040010, // 0000 GETGBL R1 G16 - 0x88080100, // 0001 GETMBR R2 R0 K0 - 0x8C080501, // 0002 GETMET R2 R2 K1 - 0x7C080200, // 0003 CALL R2 1 - 0x7C040200, // 0004 CALL R1 1 - 0xA802000B, // 0005 EXBLK 0 #0012 - 0x5C080200, // 0006 MOVE R2 R1 - 0x7C080000, // 0007 CALL R2 0 - 0x8C0C0502, // 0008 GETMET R3 R2 K2 - 0x7C0C0200, // 0009 CALL R3 1 - 0x780E0005, // 000A JMPF R3 #0011 - 0x8C0C0503, // 000B GETMET R3 R2 K3 - 0x7C0C0200, // 000C CALL R3 1 - 0x780E0002, // 000D JMPF R3 #0011 - 0x8C0C0104, // 000E GETMET R3 R0 K4 - 0x5C140400, // 000F MOVE R5 R2 - 0x7C0C0400, // 0010 CALL R3 2 - 0x7001FFF3, // 0011 JMP #0006 - 0x58040005, // 0012 LDCONST R1 K5 - 0xAC040200, // 0013 CATCH R1 1 0 - 0xB0080000, // 0014 RAISE 2 R0 R0 - 0x80000000, // 0015 RET 0 + ( &(const binstruction[12]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x7C040200, // 0002 CALL R1 1 + 0x24040302, // 0003 GT R1 R1 K2 + 0x78060005, // 0004 JMPF R1 #000B + 0x88040103, // 0005 GETMBR R1 R0 K3 + 0x74060003, // 0006 JMPT R1 #000B + 0x50040200, // 0007 LDBOOL R1 1 0 + 0x90020601, // 0008 SETMBR R0 K3 R1 + 0x8C040104, // 0009 GETMET R1 R0 K4 + 0x7C040200, // 000A CALL R1 1 + 0x80000000, // 000B RET 0 }) ) ); @@ -4578,170 +1778,133 @@ be_local_closure(class_Matter_Device_mdns_announce_op_discovery_all_fabrics, / /******************************************************************** -** Solidified function: mdns_remove_op_discovery +** Solidified function: start_mdns_announce_hostnames ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_mdns_remove_op_discovery, /* name */ - be_nested_proto( - 12, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[23]) { /* constants */ - /* K0 */ be_nested_str_weak(mdns), - /* K1 */ be_nested_str_weak(get_device_id), - /* K2 */ be_nested_str_weak(copy), - /* K3 */ be_nested_str_weak(reverse), - /* K4 */ be_nested_str_weak(get_fabric_compressed), - /* K5 */ be_nested_str_weak(tohex), - /* K6 */ be_nested_str_weak(_X2D), - /* K7 */ be_nested_str_weak(tasmota), - /* K8 */ be_nested_str_weak(eth), - /* K9 */ be_nested_str_weak(find), - /* K10 */ be_nested_str_weak(up), - /* K11 */ be_nested_str_weak(log), - /* K12 */ be_nested_str_weak(MTR_X3A_X20remove_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27), - /* K13 */ be_const_int(3), - /* K14 */ be_nested_str_weak(remove_service), - /* K15 */ be_nested_str_weak(_matter), - /* K16 */ be_nested_str_weak(_tcp), - /* K17 */ be_nested_str_weak(hostname_eth), - /* K18 */ be_nested_str_weak(wifi), - /* K19 */ be_nested_str_weak(hostname_wifi), - /* K20 */ be_nested_str_weak(MTR_X3A_X20Exception), - /* K21 */ be_nested_str_weak(_X7C), - /* K22 */ be_const_int(2), - }), - be_str_weak(mdns_remove_op_discovery), - &be_const_str_solidified, - ( &(const binstruction[77]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0xA8020039, // 0001 EXBLK 0 #003C - 0x8C0C0301, // 0002 GETMET R3 R1 K1 - 0x7C0C0200, // 0003 CALL R3 1 - 0x8C0C0702, // 0004 GETMET R3 R3 K2 - 0x7C0C0200, // 0005 CALL R3 1 - 0x8C0C0703, // 0006 GETMET R3 R3 K3 - 0x7C0C0200, // 0007 CALL R3 1 - 0x8C100304, // 0008 GETMET R4 R1 K4 - 0x7C100200, // 0009 CALL R4 1 - 0x8C140905, // 000A GETMET R5 R4 K5 - 0x7C140200, // 000B CALL R5 1 - 0x00140B06, // 000C ADD R5 R5 K6 - 0x8C180705, // 000D GETMET R6 R3 K5 - 0x7C180200, // 000E CALL R6 1 - 0x00140A06, // 000F ADD R5 R5 R6 - 0xB81A0E00, // 0010 GETNGBL R6 K7 - 0x8C180D08, // 0011 GETMET R6 R6 K8 - 0x7C180200, // 0012 CALL R6 1 - 0x8C180D09, // 0013 GETMET R6 R6 K9 - 0x5820000A, // 0014 LDCONST R8 K10 - 0x7C180400, // 0015 CALL R6 2 - 0x781A000D, // 0016 JMPF R6 #0025 - 0xB81A1600, // 0017 GETNGBL R6 K11 - 0x601C0018, // 0018 GETGBL R7 G24 - 0x5820000C, // 0019 LDCONST R8 K12 - 0x58240008, // 001A LDCONST R9 K8 - 0x5C280A00, // 001B MOVE R10 R5 - 0x7C1C0600, // 001C CALL R7 3 - 0x5820000D, // 001D LDCONST R8 K13 - 0x7C180400, // 001E CALL R6 2 - 0x8C18050E, // 001F GETMET R6 R2 K14 - 0x5820000F, // 0020 LDCONST R8 K15 - 0x58240010, // 0021 LDCONST R9 K16 - 0x5C280A00, // 0022 MOVE R10 R5 - 0x882C0111, // 0023 GETMBR R11 R0 K17 - 0x7C180A00, // 0024 CALL R6 5 - 0xB81A0E00, // 0025 GETNGBL R6 K7 - 0x8C180D12, // 0026 GETMET R6 R6 K18 - 0x7C180200, // 0027 CALL R6 1 - 0x8C180D09, // 0028 GETMET R6 R6 K9 - 0x5820000A, // 0029 LDCONST R8 K10 - 0x7C180400, // 002A CALL R6 2 - 0x781A000D, // 002B JMPF R6 #003A - 0xB81A1600, // 002C GETNGBL R6 K11 - 0x601C0018, // 002D GETGBL R7 G24 - 0x5820000C, // 002E LDCONST R8 K12 - 0x58240012, // 002F LDCONST R9 K18 - 0x5C280A00, // 0030 MOVE R10 R5 - 0x7C1C0600, // 0031 CALL R7 3 - 0x5820000D, // 0032 LDCONST R8 K13 - 0x7C180400, // 0033 CALL R6 2 - 0x8C18050E, // 0034 GETMET R6 R2 K14 - 0x5820000F, // 0035 LDCONST R8 K15 - 0x58240010, // 0036 LDCONST R9 K16 - 0x5C280A00, // 0037 MOVE R10 R5 - 0x882C0113, // 0038 GETMBR R11 R0 K19 - 0x7C180A00, // 0039 CALL R6 5 - 0xA8040001, // 003A EXBLK 1 1 - 0x7002000F, // 003B JMP #004C - 0xAC0C0002, // 003C CATCH R3 0 2 - 0x7002000C, // 003D JMP #004B - 0xB8161600, // 003E GETNGBL R5 K11 - 0x60180008, // 003F GETGBL R6 G8 - 0x5C1C0600, // 0040 MOVE R7 R3 - 0x7C180200, // 0041 CALL R6 1 - 0x001A2806, // 0042 ADD R6 K20 R6 - 0x00180D15, // 0043 ADD R6 R6 K21 - 0x601C0008, // 0044 GETGBL R7 G8 - 0x5C200800, // 0045 MOVE R8 R4 - 0x7C1C0200, // 0046 CALL R7 1 - 0x00180C07, // 0047 ADD R6 R6 R7 - 0x581C0016, // 0048 LDCONST R7 K22 - 0x7C140400, // 0049 CALL R5 2 - 0x70020000, // 004A JMP #004C - 0xB0080000, // 004B RAISE 2 R0 R0 - 0x80000000, // 004C RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: find_plugin_by_endpoint -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_find_plugin_by_endpoint, /* name */ +be_local_closure(class_Matter_Device_start_mdns_announce_hostnames, /* name */ be_nested_proto( 6, /* nstack */ - 2, /* argc */ + 1, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ - 0, /* has sup protos */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 3]) { + be_nested_proto( + 4, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(_mdns_announce_hostname), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(remove_rule), + /* K3 */ be_nested_str_weak(Wifi_X23Connected), + /* K4 */ be_nested_str_weak(matter_mdns_host), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[10]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x50080000, // 0002 LDBOOL R2 0 0 + 0x7C000400, // 0003 CALL R0 2 + 0xB8020200, // 0004 GETNGBL R0 K1 + 0x8C000102, // 0005 GETMET R0 R0 K2 + 0x58080003, // 0006 LDCONST R2 K3 + 0x580C0004, // 0007 LDCONST R3 K4 + 0x7C000600, // 0008 CALL R0 3 + 0x80000000, // 0009 RET 0 + }) + ), + be_nested_proto( + 4, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(_mdns_announce_hostname), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(remove_rule), + /* K3 */ be_nested_str_weak(Eth_X23Connected), + /* K4 */ be_nested_str_weak(matter_mdns_host), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[10]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x50080200, // 0002 LDBOOL R2 1 0 + 0x7C000400, // 0003 CALL R0 2 + 0xB8020200, // 0004 GETNGBL R0 K1 + 0x8C000102, // 0005 GETMET R0 R0 K2 + 0x58080003, // 0006 LDCONST R2 K3 + 0x580C0004, // 0007 LDCONST R3 K4 + 0x7C000600, // 0008 CALL R0 3 + 0x80000000, // 0009 RET 0 + }) + ), &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_const_int(0), - /* K1 */ be_nested_str_weak(plugins), - /* K2 */ be_nested_str_weak(get_endpoint), - /* K3 */ be_const_int(1), }), - be_str_weak(find_plugin_by_endpoint), + 1, /* has constants */ + ( &(const bvalue[ 9]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota), + /* K1 */ be_nested_str_weak(wifi), + /* K2 */ be_nested_str_weak(up), + /* K3 */ be_nested_str_weak(_mdns_announce_hostname), + /* K4 */ be_nested_str_weak(add_rule), + /* K5 */ be_nested_str_weak(Wifi_X23Connected), + /* K6 */ be_nested_str_weak(matter_mdns_host), + /* K7 */ be_nested_str_weak(eth), + /* K8 */ be_nested_str_weak(Eth_X23Connected), + }), + be_str_weak(start_mdns_announce_hostnames), &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ - 0x58080000, // 0000 LDCONST R2 K0 - 0x600C000C, // 0001 GETGBL R3 G12 - 0x88100101, // 0002 GETMBR R4 R0 K1 - 0x7C0C0200, // 0003 CALL R3 1 - 0x140C0403, // 0004 LT R3 R2 R3 - 0x780E0008, // 0005 JMPF R3 #000F - 0x880C0101, // 0006 GETMBR R3 R0 K1 - 0x940C0602, // 0007 GETIDX R3 R3 R2 - 0x8C100702, // 0008 GETMET R4 R3 K2 - 0x7C100200, // 0009 CALL R4 1 - 0x1C100801, // 000A EQ R4 R4 R1 - 0x78120000, // 000B JMPF R4 #000D - 0x80040600, // 000C RET 1 R3 - 0x00080503, // 000D ADD R2 R2 K3 - 0x7001FFF1, // 000E JMP #0001 - 0x4C0C0000, // 000F LDNIL R3 - 0x80040600, // 0010 RET 1 R3 + ( &(const binstruction[32]) { /* code */ + 0xB8060000, // 0000 GETNGBL R1 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x7C040200, // 0002 CALL R1 1 + 0x94040302, // 0003 GETIDX R1 R1 K2 + 0x78060003, // 0004 JMPF R1 #0009 + 0x8C040103, // 0005 GETMET R1 R0 K3 + 0x500C0000, // 0006 LDBOOL R3 0 0 + 0x7C040400, // 0007 CALL R1 2 + 0x70020005, // 0008 JMP #000F + 0xB8060000, // 0009 GETNGBL R1 K0 + 0x8C040304, // 000A GETMET R1 R1 K4 + 0x580C0005, // 000B LDCONST R3 K5 + 0x84100000, // 000C CLOSURE R4 P0 + 0x58140006, // 000D LDCONST R5 K6 + 0x7C040800, // 000E CALL R1 4 + 0xB8060000, // 000F GETNGBL R1 K0 + 0x8C040307, // 0010 GETMET R1 R1 K7 + 0x7C040200, // 0011 CALL R1 1 + 0x94040302, // 0012 GETIDX R1 R1 K2 + 0x78060003, // 0013 JMPF R1 #0018 + 0x8C040103, // 0014 GETMET R1 R0 K3 + 0x500C0200, // 0015 LDBOOL R3 1 0 + 0x7C040400, // 0016 CALL R1 2 + 0x70020005, // 0017 JMP #001E + 0xB8060000, // 0018 GETNGBL R1 K0 + 0x8C040304, // 0019 GETMET R1 R1 K4 + 0x580C0008, // 001A LDCONST R3 K8 + 0x84100001, // 001B CLOSURE R4 P1 + 0x58140006, // 001C LDCONST R5 K6 + 0x7C040800, // 001D CALL R1 4 + 0xA0000000, // 001E CLOSE R0 + 0x80000000, // 001F RET 0 }) ) ); @@ -5035,6 +2198,1766 @@ be_local_closure(class_Matter_Device_mdns_announce_PASE, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: autoconf_sensors_list +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_autoconf_sensors_list, /* name */ + be_nested_proto( + 10, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[18]) { /* constants */ + /* K0 */ be_nested_str_weak(k2l), + /* K1 */ be_nested_str_weak(contains), + /* K2 */ be_nested_str_weak(Temperature), + /* K3 */ be_nested_str_weak(_X23Temperature), + /* K4 */ be_nested_str_weak(push), + /* K5 */ be_nested_str_weak(type), + /* K6 */ be_nested_str_weak(temperature), + /* K7 */ be_nested_str_weak(filter), + /* K8 */ be_nested_str_weak(stop_iteration), + /* K9 */ be_nested_str_weak(Pressure), + /* K10 */ be_nested_str_weak(_X23Pressure), + /* K11 */ be_nested_str_weak(pressure), + /* K12 */ be_nested_str_weak(Illuminance), + /* K13 */ be_nested_str_weak(_X23Illuminance), + /* K14 */ be_nested_str_weak(illuminance), + /* K15 */ be_nested_str_weak(Humidity), + /* K16 */ be_nested_str_weak(_X23Humidity), + /* K17 */ be_nested_str_weak(humidity), + }), + be_str_weak(autoconf_sensors_list), + &be_const_str_solidified, + ( &(const binstruction[119]) { /* code */ + 0x60080012, // 0000 GETGBL R2 G18 + 0x7C080000, // 0001 CALL R2 0 + 0x600C0010, // 0002 GETGBL R3 G16 + 0x8C100100, // 0003 GETMET R4 R0 K0 + 0x5C180200, // 0004 MOVE R6 R1 + 0x7C100400, // 0005 CALL R4 2 + 0x7C0C0200, // 0006 CALL R3 1 + 0xA8020013, // 0007 EXBLK 0 #001C + 0x5C100600, // 0008 MOVE R4 R3 + 0x7C100000, // 0009 CALL R4 0 + 0x94140204, // 000A GETIDX R5 R1 R4 + 0x6018000F, // 000B GETGBL R6 G15 + 0x5C1C0A00, // 000C MOVE R7 R5 + 0x60200013, // 000D GETGBL R8 G19 + 0x7C180400, // 000E CALL R6 2 + 0x781A000A, // 000F JMPF R6 #001B + 0x8C180B01, // 0010 GETMET R6 R5 K1 + 0x58200002, // 0011 LDCONST R8 K2 + 0x7C180400, // 0012 CALL R6 2 + 0x781A0006, // 0013 JMPF R6 #001B + 0x00180903, // 0014 ADD R6 R4 K3 + 0x8C1C0504, // 0015 GETMET R7 R2 K4 + 0x60240013, // 0016 GETGBL R9 G19 + 0x7C240000, // 0017 CALL R9 0 + 0x98260B06, // 0018 SETIDX R9 K5 K6 + 0x98260E06, // 0019 SETIDX R9 K7 R6 + 0x7C1C0400, // 001A CALL R7 2 + 0x7001FFEB, // 001B JMP #0008 + 0x580C0008, // 001C LDCONST R3 K8 + 0xAC0C0200, // 001D CATCH R3 1 0 + 0xB0080000, // 001E RAISE 2 R0 R0 + 0x600C0010, // 001F GETGBL R3 G16 + 0x8C100100, // 0020 GETMET R4 R0 K0 + 0x5C180200, // 0021 MOVE R6 R1 + 0x7C100400, // 0022 CALL R4 2 + 0x7C0C0200, // 0023 CALL R3 1 + 0xA8020013, // 0024 EXBLK 0 #0039 + 0x5C100600, // 0025 MOVE R4 R3 + 0x7C100000, // 0026 CALL R4 0 + 0x94140204, // 0027 GETIDX R5 R1 R4 + 0x6018000F, // 0028 GETGBL R6 G15 + 0x5C1C0A00, // 0029 MOVE R7 R5 + 0x60200013, // 002A GETGBL R8 G19 + 0x7C180400, // 002B CALL R6 2 + 0x781A000A, // 002C JMPF R6 #0038 + 0x8C180B01, // 002D GETMET R6 R5 K1 + 0x58200009, // 002E LDCONST R8 K9 + 0x7C180400, // 002F CALL R6 2 + 0x781A0006, // 0030 JMPF R6 #0038 + 0x0018090A, // 0031 ADD R6 R4 K10 + 0x8C1C0504, // 0032 GETMET R7 R2 K4 + 0x60240013, // 0033 GETGBL R9 G19 + 0x7C240000, // 0034 CALL R9 0 + 0x98260B0B, // 0035 SETIDX R9 K5 K11 + 0x98260E06, // 0036 SETIDX R9 K7 R6 + 0x7C1C0400, // 0037 CALL R7 2 + 0x7001FFEB, // 0038 JMP #0025 + 0x580C0008, // 0039 LDCONST R3 K8 + 0xAC0C0200, // 003A CATCH R3 1 0 + 0xB0080000, // 003B RAISE 2 R0 R0 + 0x600C0010, // 003C GETGBL R3 G16 + 0x8C100100, // 003D GETMET R4 R0 K0 + 0x5C180200, // 003E MOVE R6 R1 + 0x7C100400, // 003F CALL R4 2 + 0x7C0C0200, // 0040 CALL R3 1 + 0xA8020013, // 0041 EXBLK 0 #0056 + 0x5C100600, // 0042 MOVE R4 R3 + 0x7C100000, // 0043 CALL R4 0 + 0x94140204, // 0044 GETIDX R5 R1 R4 + 0x6018000F, // 0045 GETGBL R6 G15 + 0x5C1C0A00, // 0046 MOVE R7 R5 + 0x60200013, // 0047 GETGBL R8 G19 + 0x7C180400, // 0048 CALL R6 2 + 0x781A000A, // 0049 JMPF R6 #0055 + 0x8C180B01, // 004A GETMET R6 R5 K1 + 0x5820000C, // 004B LDCONST R8 K12 + 0x7C180400, // 004C CALL R6 2 + 0x781A0006, // 004D JMPF R6 #0055 + 0x0018090D, // 004E ADD R6 R4 K13 + 0x8C1C0504, // 004F GETMET R7 R2 K4 + 0x60240013, // 0050 GETGBL R9 G19 + 0x7C240000, // 0051 CALL R9 0 + 0x98260B0E, // 0052 SETIDX R9 K5 K14 + 0x98260E06, // 0053 SETIDX R9 K7 R6 + 0x7C1C0400, // 0054 CALL R7 2 + 0x7001FFEB, // 0055 JMP #0042 + 0x580C0008, // 0056 LDCONST R3 K8 + 0xAC0C0200, // 0057 CATCH R3 1 0 + 0xB0080000, // 0058 RAISE 2 R0 R0 + 0x600C0010, // 0059 GETGBL R3 G16 + 0x8C100100, // 005A GETMET R4 R0 K0 + 0x5C180200, // 005B MOVE R6 R1 + 0x7C100400, // 005C CALL R4 2 + 0x7C0C0200, // 005D CALL R3 1 + 0xA8020013, // 005E EXBLK 0 #0073 + 0x5C100600, // 005F MOVE R4 R3 + 0x7C100000, // 0060 CALL R4 0 + 0x94140204, // 0061 GETIDX R5 R1 R4 + 0x6018000F, // 0062 GETGBL R6 G15 + 0x5C1C0A00, // 0063 MOVE R7 R5 + 0x60200013, // 0064 GETGBL R8 G19 + 0x7C180400, // 0065 CALL R6 2 + 0x781A000A, // 0066 JMPF R6 #0072 + 0x8C180B01, // 0067 GETMET R6 R5 K1 + 0x5820000F, // 0068 LDCONST R8 K15 + 0x7C180400, // 0069 CALL R6 2 + 0x781A0006, // 006A JMPF R6 #0072 + 0x00180910, // 006B ADD R6 R4 K16 + 0x8C1C0504, // 006C GETMET R7 R2 K4 + 0x60240013, // 006D GETGBL R9 G19 + 0x7C240000, // 006E CALL R9 0 + 0x98260B11, // 006F SETIDX R9 K5 K17 + 0x98260E06, // 0070 SETIDX R9 K7 R6 + 0x7C1C0400, // 0071 CALL R7 2 + 0x7001FFEB, // 0072 JMP #005F + 0x580C0008, // 0073 LDCONST R3 K8 + 0xAC0C0200, // 0074 CATCH R3 1 0 + 0xB0080000, // 0075 RAISE 2 R0 R0 + 0x80040400, // 0076 RET 1 R2 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: process_attribute_expansion +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_process_attribute_expansion, /* name */ + be_nested_proto( + 12, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 9]) { /* constants */ + /* K0 */ be_nested_str_weak(endpoint), + /* K1 */ be_nested_str_weak(cluster), + /* K2 */ be_nested_str_weak(attribute), + /* K3 */ be_nested_str_weak(matter), + /* K4 */ be_nested_str_weak(PathGenerator), + /* K5 */ be_nested_str_weak(start), + /* K6 */ be_nested_str_weak(is_direct), + /* K7 */ be_nested_str_weak(next_attribute), + /* K8 */ be_nested_str_weak(get_pi), + }), + be_str_weak(process_attribute_expansion), + &be_const_str_solidified, + ( &(const binstruction[28]) { /* code */ + 0x880C0300, // 0000 GETMBR R3 R1 K0 + 0x88100301, // 0001 GETMBR R4 R1 K1 + 0x88140302, // 0002 GETMBR R5 R1 K2 + 0xB81A0600, // 0003 GETNGBL R6 K3 + 0x8C180D04, // 0004 GETMET R6 R6 K4 + 0x5C200000, // 0005 MOVE R8 R0 + 0x7C180400, // 0006 CALL R6 2 + 0x8C1C0D05, // 0007 GETMET R7 R6 K5 + 0x5C240600, // 0008 MOVE R9 R3 + 0x5C280800, // 0009 MOVE R10 R4 + 0x5C2C0A00, // 000A MOVE R11 R5 + 0x7C1C0800, // 000B CALL R7 4 + 0x8C1C0D06, // 000C GETMET R7 R6 K6 + 0x7C1C0200, // 000D CALL R7 1 + 0x4C200000, // 000E LDNIL R8 + 0x8C240D07, // 000F GETMET R9 R6 K7 + 0x7C240200, // 0010 CALL R9 1 + 0x5C201200, // 0011 MOVE R8 R9 + 0x4C280000, // 0012 LDNIL R10 + 0x2024120A, // 0013 NE R9 R9 R10 + 0x78260005, // 0014 JMPF R9 #001B + 0x5C240400, // 0015 MOVE R9 R2 + 0x8C280D08, // 0016 GETMET R10 R6 K8 + 0x7C280200, // 0017 CALL R10 1 + 0x5C2C1000, // 0018 MOVE R11 R8 + 0x7C240400, // 0019 CALL R9 2 + 0x7001FFF3, // 001A JMP #000F + 0x80000000, // 001B RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: stop_basic_commissioning +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_stop_basic_commissioning, /* name */ + be_nested_proto( + 5, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[13]) { /* constants */ + /* K0 */ be_nested_str_weak(is_root_commissioning_open), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(publish_result), + /* K3 */ be_nested_str_weak(_X7B_X22Matter_X22_X3A_X7B_X22Commissioning_X22_X3A0_X7D_X7D), + /* K4 */ be_nested_str_weak(Matter), + /* K5 */ be_nested_str_weak(commissioning_open), + /* K6 */ be_nested_str_weak(mdns_remove_PASE), + /* K7 */ be_nested_str_weak(commissioning_iterations), + /* K8 */ be_nested_str_weak(commissioning_discriminator), + /* K9 */ be_nested_str_weak(commissioning_salt), + /* K10 */ be_nested_str_weak(commissioning_w0), + /* K11 */ be_nested_str_weak(commissioning_L), + /* K12 */ be_nested_str_weak(commissioning_admin_fabric), + }), + be_str_weak(stop_basic_commissioning), + &be_const_str_solidified, + ( &(const binstruction[25]) { /* code */ + 0x8C040100, // 0000 GETMET R1 R0 K0 + 0x7C040200, // 0001 CALL R1 1 + 0x78060004, // 0002 JMPF R1 #0008 + 0xB8060200, // 0003 GETNGBL R1 K1 + 0x8C040302, // 0004 GETMET R1 R1 K2 + 0x580C0003, // 0005 LDCONST R3 K3 + 0x58100004, // 0006 LDCONST R4 K4 + 0x7C040600, // 0007 CALL R1 3 + 0x4C040000, // 0008 LDNIL R1 + 0x90020A01, // 0009 SETMBR R0 K5 R1 + 0x8C040106, // 000A GETMET R1 R0 K6 + 0x7C040200, // 000B CALL R1 1 + 0x4C040000, // 000C LDNIL R1 + 0x90020E01, // 000D SETMBR R0 K7 R1 + 0x4C040000, // 000E LDNIL R1 + 0x90021001, // 000F SETMBR R0 K8 R1 + 0x4C040000, // 0010 LDNIL R1 + 0x90021201, // 0011 SETMBR R0 K9 R1 + 0x4C040000, // 0012 LDNIL R1 + 0x90021401, // 0013 SETMBR R0 K10 R1 + 0x4C040000, // 0014 LDNIL R1 + 0x90021601, // 0015 SETMBR R0 K11 R1 + 0x4C040000, // 0016 LDNIL R1 + 0x90021801, // 0017 SETMBR R0 K12 R1 + 0x80000000, // 0018 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: clean_remotes +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_clean_remotes, /* name */ + be_nested_proto( + 10, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[17]) { /* constants */ + /* K0 */ be_nested_str_weak(introspect), + /* K1 */ be_nested_str_weak(http_remotes), + /* K2 */ be_const_int(0), + /* K3 */ be_nested_str_weak(stop_iteration), + /* K4 */ be_nested_str_weak(plugins), + /* K5 */ be_nested_str_weak(get), + /* K6 */ be_nested_str_weak(http_remote), + /* K7 */ be_nested_str_weak(find), + /* K8 */ be_const_int(1), + /* K9 */ be_nested_str_weak(keys), + /* K10 */ be_nested_str_weak(push), + /* K11 */ be_nested_str_weak(log), + /* K12 */ be_nested_str_weak(MTR_X3A_X20remove_X20unused_X20remote_X3A_X20), + /* K13 */ be_nested_str_weak(addr), + /* K14 */ be_const_int(3), + /* K15 */ be_nested_str_weak(close), + /* K16 */ be_nested_str_weak(remove), + }), + be_str_weak(clean_remotes), + &be_const_str_solidified, + ( &(const binstruction[80]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x88080101, // 0001 GETMBR R2 R0 K1 + 0x780A004B, // 0002 JMPF R2 #004F + 0x60080013, // 0003 GETGBL R2 G19 + 0x7C080000, // 0004 CALL R2 0 + 0x600C0010, // 0005 GETGBL R3 G16 + 0x88100101, // 0006 GETMBR R4 R0 K1 + 0x7C0C0200, // 0007 CALL R3 1 + 0xA8020003, // 0008 EXBLK 0 #000D + 0x5C100600, // 0009 MOVE R4 R3 + 0x7C100000, // 000A CALL R4 0 + 0x98080902, // 000B SETIDX R2 R4 K2 + 0x7001FFFB, // 000C JMP #0009 + 0x580C0003, // 000D LDCONST R3 K3 + 0xAC0C0200, // 000E CATCH R3 1 0 + 0xB0080000, // 000F RAISE 2 R0 R0 + 0x600C0010, // 0010 GETGBL R3 G16 + 0x88100104, // 0011 GETMBR R4 R0 K4 + 0x7C0C0200, // 0012 CALL R3 1 + 0xA802000F, // 0013 EXBLK 0 #0024 + 0x5C100600, // 0014 MOVE R4 R3 + 0x7C100000, // 0015 CALL R4 0 + 0x8C140305, // 0016 GETMET R5 R1 K5 + 0x5C1C0800, // 0017 MOVE R7 R4 + 0x58200006, // 0018 LDCONST R8 K6 + 0x7C140600, // 0019 CALL R5 3 + 0x4C180000, // 001A LDNIL R6 + 0x20180A06, // 001B NE R6 R5 R6 + 0x781A0005, // 001C JMPF R6 #0023 + 0x8C180507, // 001D GETMET R6 R2 K7 + 0x5C200A00, // 001E MOVE R8 R5 + 0x58240002, // 001F LDCONST R9 K2 + 0x7C180600, // 0020 CALL R6 3 + 0x00180D08, // 0021 ADD R6 R6 K8 + 0x98080A06, // 0022 SETIDX R2 R5 R6 + 0x7001FFEF, // 0023 JMP #0014 + 0x580C0003, // 0024 LDCONST R3 K3 + 0xAC0C0200, // 0025 CATCH R3 1 0 + 0xB0080000, // 0026 RAISE 2 R0 R0 + 0x600C0012, // 0027 GETGBL R3 G18 + 0x7C0C0000, // 0028 CALL R3 0 + 0x60100010, // 0029 GETGBL R4 G16 + 0x8C140509, // 002A GETMET R5 R2 K9 + 0x7C140200, // 002B CALL R5 1 + 0x7C100200, // 002C CALL R4 1 + 0xA8020008, // 002D EXBLK 0 #0037 + 0x5C140800, // 002E MOVE R5 R4 + 0x7C140000, // 002F CALL R5 0 + 0x94180405, // 0030 GETIDX R6 R2 R5 + 0x1C180D02, // 0031 EQ R6 R6 K2 + 0x781A0002, // 0032 JMPF R6 #0036 + 0x8C18070A, // 0033 GETMET R6 R3 K10 + 0x5C200A00, // 0034 MOVE R8 R5 + 0x7C180400, // 0035 CALL R6 2 + 0x7001FFF6, // 0036 JMP #002E + 0x58100003, // 0037 LDCONST R4 K3 + 0xAC100200, // 0038 CATCH R4 1 0 + 0xB0080000, // 0039 RAISE 2 R0 R0 + 0x60100010, // 003A GETGBL R4 G16 + 0x5C140600, // 003B MOVE R5 R3 + 0x7C100200, // 003C CALL R4 1 + 0xA802000D, // 003D EXBLK 0 #004C + 0x5C140800, // 003E MOVE R5 R4 + 0x7C140000, // 003F CALL R5 0 + 0xB81A1600, // 0040 GETNGBL R6 K11 + 0x881C0B0D, // 0041 GETMBR R7 R5 K13 + 0x001E1807, // 0042 ADD R7 K12 R7 + 0x5820000E, // 0043 LDCONST R8 K14 + 0x7C180400, // 0044 CALL R6 2 + 0x8C180B0F, // 0045 GETMET R6 R5 K15 + 0x7C180200, // 0046 CALL R6 1 + 0x88180101, // 0047 GETMBR R6 R0 K1 + 0x8C180D10, // 0048 GETMET R6 R6 K16 + 0x88200B0D, // 0049 GETMBR R8 R5 K13 + 0x7C180400, // 004A CALL R6 2 + 0x7001FFF1, // 004B JMP #003E + 0x58100003, // 004C LDCONST R4 K3 + 0xAC100200, // 004D CATCH R4 1 0 + 0xB0080000, // 004E RAISE 2 R0 R0 + 0x80000000, // 004F RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: init +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_init, /* name */ + be_nested_proto( + 7, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 3]) { + be_nested_proto( + 4, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(start), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(remove_rule), + /* K3 */ be_nested_str_weak(Wifi_X23Connected), + /* K4 */ be_nested_str_weak(matter_start), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x7C000200, // 0002 CALL R0 1 + 0xB8020200, // 0003 GETNGBL R0 K1 + 0x8C000102, // 0004 GETMET R0 R0 K2 + 0x58080003, // 0005 LDCONST R2 K3 + 0x580C0004, // 0006 LDCONST R3 K4 + 0x7C000600, // 0007 CALL R0 3 + 0x80000000, // 0008 RET 0 + }) + ), + be_nested_proto( + 4, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(start), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(remove_rule), + /* K3 */ be_nested_str_weak(Eth_X23Connected), + /* K4 */ be_nested_str_weak(matter_start), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x7C000200, // 0002 CALL R0 1 + 0xB8020200, // 0003 GETNGBL R0 K1 + 0x8C000102, // 0004 GETMET R0 R0 K2 + 0x58080003, // 0005 LDCONST R2 K3 + 0x580C0004, // 0006 LDCONST R3 K4 + 0x7C000600, // 0007 CALL R0 3 + 0x80000000, // 0008 RET 0 + }) + ), + &be_class_Matter_Device, + }), + 1, /* has constants */ + ( &(const bvalue[38]) { /* constants */ + /* K0 */ be_nested_str_weak(crypto), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(get_option), + /* K3 */ be_nested_str_weak(matter), + /* K4 */ be_nested_str_weak(MATTER_OPTION), + /* K5 */ be_nested_str_weak(UI), + /* K6 */ be_nested_str_weak(profiler), + /* K7 */ be_nested_str_weak(Profiler), + /* K8 */ be_nested_str_weak(started), + /* K9 */ be_nested_str_weak(tick), + /* K10 */ be_const_int(0), + /* K11 */ be_nested_str_weak(plugins), + /* K12 */ be_nested_str_weak(plugins_persist), + /* K13 */ be_nested_str_weak(plugins_config_remotes), + /* K14 */ be_nested_str_weak(next_ep), + /* K15 */ be_const_int(2), + /* K16 */ be_nested_str_weak(ipv4only), + /* K17 */ be_nested_str_weak(disable_bridge_mode), + /* K18 */ be_nested_str_weak(load_param), + /* K19 */ be_nested_str_weak(sessions), + /* K20 */ be_nested_str_weak(Session_Store), + /* K21 */ be_nested_str_weak(load_fabrics), + /* K22 */ be_nested_str_weak(message_handler), + /* K23 */ be_nested_str_weak(MessageHandler), + /* K24 */ be_nested_str_weak(events), + /* K25 */ be_nested_str_weak(EventHandler), + /* K26 */ be_nested_str_weak(ui), + /* K27 */ be_nested_str_weak(wifi), + /* K28 */ be_nested_str_weak(up), + /* K29 */ be_nested_str_weak(eth), + /* K30 */ be_nested_str_weak(start), + /* K31 */ be_nested_str_weak(add_rule), + /* K32 */ be_nested_str_weak(Wifi_X23Connected), + /* K33 */ be_nested_str_weak(matter_start), + /* K34 */ be_nested_str_weak(Eth_X23Connected), + /* K35 */ be_nested_str_weak(_init_basic_commissioning), + /* K36 */ be_nested_str_weak(add_driver), + /* K37 */ be_nested_str_weak(register_commands), + }), + be_str_weak(init), + &be_const_str_solidified, + ( &(const binstruction[102]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xB80A0200, // 0001 GETNGBL R2 K1 + 0x8C080502, // 0002 GETMET R2 R2 K2 + 0xB8120600, // 0003 GETNGBL R4 K3 + 0x88100904, // 0004 GETMBR R4 R4 K4 + 0x7C080400, // 0005 CALL R2 2 + 0x740A0004, // 0006 JMPT R2 #000C + 0xB80A0600, // 0007 GETNGBL R2 K3 + 0x8C080505, // 0008 GETMET R2 R2 K5 + 0x5C100000, // 0009 MOVE R4 R0 + 0x7C080400, // 000A CALL R2 2 + 0x80000400, // 000B RET 0 + 0xB80A0600, // 000C GETNGBL R2 K3 + 0xB80E0600, // 000D GETNGBL R3 K3 + 0x8C0C0707, // 000E GETMET R3 R3 K7 + 0x7C0C0200, // 000F CALL R3 1 + 0x900A0C03, // 0010 SETMBR R2 K6 R3 + 0x50080000, // 0011 LDBOOL R2 0 0 + 0x90021002, // 0012 SETMBR R0 K8 R2 + 0x9002130A, // 0013 SETMBR R0 K9 K10 + 0x60080012, // 0014 GETGBL R2 G18 + 0x7C080000, // 0015 CALL R2 0 + 0x90021602, // 0016 SETMBR R0 K11 R2 + 0x50080000, // 0017 LDBOOL R2 0 0 + 0x90021802, // 0018 SETMBR R0 K12 R2 + 0x60080013, // 0019 GETGBL R2 G19 + 0x7C080000, // 001A CALL R2 0 + 0x90021A02, // 001B SETMBR R0 K13 R2 + 0x90021D0F, // 001C SETMBR R0 K14 K15 + 0x50080000, // 001D LDBOOL R2 0 0 + 0x90022002, // 001E SETMBR R0 K16 R2 + 0x50080000, // 001F LDBOOL R2 0 0 + 0x90022202, // 0020 SETMBR R0 K17 R2 + 0x8C080112, // 0021 GETMET R2 R0 K18 + 0x7C080200, // 0022 CALL R2 1 + 0xB80A0600, // 0023 GETNGBL R2 K3 + 0x8C080514, // 0024 GETMET R2 R2 K20 + 0x5C100000, // 0025 MOVE R4 R0 + 0x7C080400, // 0026 CALL R2 2 + 0x90022602, // 0027 SETMBR R0 K19 R2 + 0x88080113, // 0028 GETMBR R2 R0 K19 + 0x8C080515, // 0029 GETMET R2 R2 K21 + 0x7C080200, // 002A CALL R2 1 + 0xB80A0600, // 002B GETNGBL R2 K3 + 0x8C080517, // 002C GETMET R2 R2 K23 + 0x5C100000, // 002D MOVE R4 R0 + 0x7C080400, // 002E CALL R2 2 + 0x90022C02, // 002F SETMBR R0 K22 R2 + 0xB80A0600, // 0030 GETNGBL R2 K3 + 0x8C080519, // 0031 GETMET R2 R2 K25 + 0x5C100000, // 0032 MOVE R4 R0 + 0x7C080400, // 0033 CALL R2 2 + 0x90023002, // 0034 SETMBR R0 K24 R2 + 0xB80A0600, // 0035 GETNGBL R2 K3 + 0x8C080505, // 0036 GETMET R2 R2 K5 + 0x5C100000, // 0037 MOVE R4 R0 + 0x7C080400, // 0038 CALL R2 2 + 0x90023402, // 0039 SETMBR R0 K26 R2 + 0xB80A0200, // 003A GETNGBL R2 K1 + 0x8C08051B, // 003B GETMET R2 R2 K27 + 0x7C080200, // 003C CALL R2 1 + 0x9408051C, // 003D GETIDX R2 R2 K28 + 0x740A0004, // 003E JMPT R2 #0044 + 0xB80A0200, // 003F GETNGBL R2 K1 + 0x8C08051D, // 0040 GETMET R2 R2 K29 + 0x7C080200, // 0041 CALL R2 1 + 0x9408051C, // 0042 GETIDX R2 R2 K28 + 0x780A0001, // 0043 JMPF R2 #0046 + 0x8C08011E, // 0044 GETMET R2 R0 K30 + 0x7C080200, // 0045 CALL R2 1 + 0xB80A0200, // 0046 GETNGBL R2 K1 + 0x8C08051B, // 0047 GETMET R2 R2 K27 + 0x7C080200, // 0048 CALL R2 1 + 0x9408051C, // 0049 GETIDX R2 R2 K28 + 0x740A0005, // 004A JMPT R2 #0051 + 0xB80A0200, // 004B GETNGBL R2 K1 + 0x8C08051F, // 004C GETMET R2 R2 K31 + 0x58100020, // 004D LDCONST R4 K32 + 0x84140000, // 004E CLOSURE R5 P0 + 0x58180021, // 004F LDCONST R6 K33 + 0x7C080800, // 0050 CALL R2 4 + 0xB80A0200, // 0051 GETNGBL R2 K1 + 0x8C08051D, // 0052 GETMET R2 R2 K29 + 0x7C080200, // 0053 CALL R2 1 + 0x9408051C, // 0054 GETIDX R2 R2 K28 + 0x740A0005, // 0055 JMPT R2 #005C + 0xB80A0200, // 0056 GETNGBL R2 K1 + 0x8C08051F, // 0057 GETMET R2 R2 K31 + 0x58100022, // 0058 LDCONST R4 K34 + 0x84140001, // 0059 CLOSURE R5 P1 + 0x58180021, // 005A LDCONST R6 K33 + 0x7C080800, // 005B CALL R2 4 + 0x8C080123, // 005C GETMET R2 R0 K35 + 0x7C080200, // 005D CALL R2 1 + 0xB80A0200, // 005E GETNGBL R2 K1 + 0x8C080524, // 005F GETMET R2 R2 K36 + 0x5C100000, // 0060 MOVE R4 R0 + 0x7C080400, // 0061 CALL R2 2 + 0x8C080125, // 0062 GETMET R2 R0 K37 + 0x7C080200, // 0063 CALL R2 1 + 0xA0000000, // 0064 CLOSE R0 + 0x80000000, // 0065 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: mdns_remove_op_discovery +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_mdns_remove_op_discovery, /* name */ + be_nested_proto( + 12, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[23]) { /* constants */ + /* K0 */ be_nested_str_weak(mdns), + /* K1 */ be_nested_str_weak(get_device_id), + /* K2 */ be_nested_str_weak(copy), + /* K3 */ be_nested_str_weak(reverse), + /* K4 */ be_nested_str_weak(get_fabric_compressed), + /* K5 */ be_nested_str_weak(tohex), + /* K6 */ be_nested_str_weak(_X2D), + /* K7 */ be_nested_str_weak(tasmota), + /* K8 */ be_nested_str_weak(eth), + /* K9 */ be_nested_str_weak(find), + /* K10 */ be_nested_str_weak(up), + /* K11 */ be_nested_str_weak(log), + /* K12 */ be_nested_str_weak(MTR_X3A_X20remove_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27), + /* K13 */ be_const_int(3), + /* K14 */ be_nested_str_weak(remove_service), + /* K15 */ be_nested_str_weak(_matter), + /* K16 */ be_nested_str_weak(_tcp), + /* K17 */ be_nested_str_weak(hostname_eth), + /* K18 */ be_nested_str_weak(wifi), + /* K19 */ be_nested_str_weak(hostname_wifi), + /* K20 */ be_nested_str_weak(MTR_X3A_X20Exception), + /* K21 */ be_nested_str_weak(_X7C), + /* K22 */ be_const_int(2), + }), + be_str_weak(mdns_remove_op_discovery), + &be_const_str_solidified, + ( &(const binstruction[77]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0xA8020039, // 0001 EXBLK 0 #003C + 0x8C0C0301, // 0002 GETMET R3 R1 K1 + 0x7C0C0200, // 0003 CALL R3 1 + 0x8C0C0702, // 0004 GETMET R3 R3 K2 + 0x7C0C0200, // 0005 CALL R3 1 + 0x8C0C0703, // 0006 GETMET R3 R3 K3 + 0x7C0C0200, // 0007 CALL R3 1 + 0x8C100304, // 0008 GETMET R4 R1 K4 + 0x7C100200, // 0009 CALL R4 1 + 0x8C140905, // 000A GETMET R5 R4 K5 + 0x7C140200, // 000B CALL R5 1 + 0x00140B06, // 000C ADD R5 R5 K6 + 0x8C180705, // 000D GETMET R6 R3 K5 + 0x7C180200, // 000E CALL R6 1 + 0x00140A06, // 000F ADD R5 R5 R6 + 0xB81A0E00, // 0010 GETNGBL R6 K7 + 0x8C180D08, // 0011 GETMET R6 R6 K8 + 0x7C180200, // 0012 CALL R6 1 + 0x8C180D09, // 0013 GETMET R6 R6 K9 + 0x5820000A, // 0014 LDCONST R8 K10 + 0x7C180400, // 0015 CALL R6 2 + 0x781A000D, // 0016 JMPF R6 #0025 + 0xB81A1600, // 0017 GETNGBL R6 K11 + 0x601C0018, // 0018 GETGBL R7 G24 + 0x5820000C, // 0019 LDCONST R8 K12 + 0x58240008, // 001A LDCONST R9 K8 + 0x5C280A00, // 001B MOVE R10 R5 + 0x7C1C0600, // 001C CALL R7 3 + 0x5820000D, // 001D LDCONST R8 K13 + 0x7C180400, // 001E CALL R6 2 + 0x8C18050E, // 001F GETMET R6 R2 K14 + 0x5820000F, // 0020 LDCONST R8 K15 + 0x58240010, // 0021 LDCONST R9 K16 + 0x5C280A00, // 0022 MOVE R10 R5 + 0x882C0111, // 0023 GETMBR R11 R0 K17 + 0x7C180A00, // 0024 CALL R6 5 + 0xB81A0E00, // 0025 GETNGBL R6 K7 + 0x8C180D12, // 0026 GETMET R6 R6 K18 + 0x7C180200, // 0027 CALL R6 1 + 0x8C180D09, // 0028 GETMET R6 R6 K9 + 0x5820000A, // 0029 LDCONST R8 K10 + 0x7C180400, // 002A CALL R6 2 + 0x781A000D, // 002B JMPF R6 #003A + 0xB81A1600, // 002C GETNGBL R6 K11 + 0x601C0018, // 002D GETGBL R7 G24 + 0x5820000C, // 002E LDCONST R8 K12 + 0x58240012, // 002F LDCONST R9 K18 + 0x5C280A00, // 0030 MOVE R10 R5 + 0x7C1C0600, // 0031 CALL R7 3 + 0x5820000D, // 0032 LDCONST R8 K13 + 0x7C180400, // 0033 CALL R6 2 + 0x8C18050E, // 0034 GETMET R6 R2 K14 + 0x5820000F, // 0035 LDCONST R8 K15 + 0x58240010, // 0036 LDCONST R9 K16 + 0x5C280A00, // 0037 MOVE R10 R5 + 0x882C0113, // 0038 GETMBR R11 R0 K19 + 0x7C180A00, // 0039 CALL R6 5 + 0xA8040001, // 003A EXBLK 1 1 + 0x7002000F, // 003B JMP #004C + 0xAC0C0002, // 003C CATCH R3 0 2 + 0x7002000C, // 003D JMP #004B + 0xB8161600, // 003E GETNGBL R5 K11 + 0x60180008, // 003F GETGBL R6 G8 + 0x5C1C0600, // 0040 MOVE R7 R3 + 0x7C180200, // 0041 CALL R6 1 + 0x001A2806, // 0042 ADD R6 K20 R6 + 0x00180D15, // 0043 ADD R6 R6 K21 + 0x601C0008, // 0044 GETGBL R7 G8 + 0x5C200800, // 0045 MOVE R8 R4 + 0x7C1C0200, // 0046 CALL R7 1 + 0x00180C07, // 0047 ADD R6 R6 R7 + 0x581C0016, // 0048 LDCONST R7 K22 + 0x7C140400, // 0049 CALL R5 2 + 0x70020000, // 004A JMP #004C + 0xB0080000, // 004B RAISE 2 R0 R0 + 0x80000000, // 004C RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: _start_udp +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device__start_udp, /* name */ + be_nested_proto( + 7, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 2]) { + be_nested_proto( + 8, /* nstack */ + 3, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(msg_received), + }), + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 7]) { /* code */ + 0x680C0000, // 0000 GETUPV R3 U0 + 0x8C0C0700, // 0001 GETMET R3 R3 K0 + 0x5C140000, // 0002 MOVE R5 R0 + 0x5C180200, // 0003 MOVE R6 R1 + 0x5C1C0400, // 0004 MOVE R7 R2 + 0x7C0C0800, // 0005 CALL R3 4 + 0x80040600, // 0006 RET 1 R3 + }) + ), + &be_class_Matter_Device, + }), + 1, /* has constants */ + ( &(const bvalue[ 8]) { /* constants */ + /* K0 */ be_nested_str_weak(udp_server), + /* K1 */ be_nested_str_weak(log), + /* K2 */ be_nested_str_weak(MTR_X3A_X20Starting_X20UDP_X20server_X20on_X20port_X3A_X20), + /* K3 */ be_const_int(2), + /* K4 */ be_nested_str_weak(matter), + /* K5 */ be_nested_str_weak(UDPServer), + /* K6 */ be_nested_str_weak(), + /* K7 */ be_nested_str_weak(start), + }), + be_str_weak(_start_udp), + &be_const_str_solidified, + ( &(const binstruction[27]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x780A0000, // 0001 JMPF R2 #0003 + 0x80000400, // 0002 RET 0 + 0x4C080000, // 0003 LDNIL R2 + 0x1C080202, // 0004 EQ R2 R1 R2 + 0x780A0000, // 0005 JMPF R2 #0007 + 0x540615A3, // 0006 LDINT R1 5540 + 0xB80A0200, // 0007 GETNGBL R2 K1 + 0x600C0008, // 0008 GETGBL R3 G8 + 0x5C100200, // 0009 MOVE R4 R1 + 0x7C0C0200, // 000A CALL R3 1 + 0x000E0403, // 000B ADD R3 K2 R3 + 0x58100003, // 000C LDCONST R4 K3 + 0x7C080400, // 000D CALL R2 2 + 0xB80A0800, // 000E GETNGBL R2 K4 + 0x8C080505, // 000F GETMET R2 R2 K5 + 0x5C100000, // 0010 MOVE R4 R0 + 0x58140006, // 0011 LDCONST R5 K6 + 0x5C180200, // 0012 MOVE R6 R1 + 0x7C080800, // 0013 CALL R2 4 + 0x90020002, // 0014 SETMBR R0 K0 R2 + 0x88080100, // 0015 GETMBR R2 R0 K0 + 0x8C080507, // 0016 GETMET R2 R2 K7 + 0x84100000, // 0017 CLOSURE R4 P0 + 0x7C080400, // 0018 CALL R2 2 + 0xA0000000, // 0019 CLOSE R0 + 0x80000000, // 001A RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: adjust_next_ep +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_adjust_next_ep, /* name */ + be_nested_proto( + 5, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(plugins_config), + /* K1 */ be_nested_str_weak(keys), + /* K2 */ be_nested_str_weak(next_ep), + /* K3 */ be_const_int(1), + /* K4 */ be_nested_str_weak(stop_iteration), + }), + be_str_weak(adjust_next_ep), + &be_const_str_solidified, + ( &(const binstruction[21]) { /* code */ + 0x60040010, // 0000 GETGBL R1 G16 + 0x88080100, // 0001 GETMBR R2 R0 K0 + 0x8C080501, // 0002 GETMET R2 R2 K1 + 0x7C080200, // 0003 CALL R2 1 + 0x7C040200, // 0004 CALL R1 1 + 0xA802000A, // 0005 EXBLK 0 #0011 + 0x5C080200, // 0006 MOVE R2 R1 + 0x7C080000, // 0007 CALL R2 0 + 0x600C0009, // 0008 GETGBL R3 G9 + 0x5C100400, // 0009 MOVE R4 R2 + 0x7C0C0200, // 000A CALL R3 1 + 0x88100102, // 000B GETMBR R4 R0 K2 + 0x28100604, // 000C GE R4 R3 R4 + 0x78120001, // 000D JMPF R4 #0010 + 0x00100703, // 000E ADD R4 R3 K3 + 0x90020404, // 000F SETMBR R0 K2 R4 + 0x7001FFF4, // 0010 JMP #0006 + 0x58040004, // 0011 LDCONST R1 K4 + 0xAC040200, // 0012 CATCH R1 1 0 + 0xB0080000, // 0013 RAISE 2 R0 R0 + 0x80000000, // 0014 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: _trigger_read_sensors +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device__trigger_read_sensors, /* name */ + be_nested_proto( + 8, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[13]) { /* constants */ + /* K0 */ be_nested_str_weak(json), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(read_sensors), + /* K3 */ be_nested_str_weak(loglevel), + /* K4 */ be_const_int(3), + /* K5 */ be_nested_str_weak(log), + /* K6 */ be_nested_str_weak(MTR_X3A_X20read_sensors_X3A_X20), + /* K7 */ be_nested_str_weak(load), + /* K8 */ be_const_int(0), + /* K9 */ be_nested_str_weak(plugins), + /* K10 */ be_nested_str_weak(parse_sensors), + /* K11 */ be_const_int(1), + /* K12 */ be_nested_str_weak(MTR_X3A_X20unable_X20to_X20parse_X20read_sensors_X3A_X20), + }), + be_str_weak(_trigger_read_sensors), + &be_const_str_solidified, + ( &(const binstruction[48]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xB80A0200, // 0001 GETNGBL R2 K1 + 0x8C080502, // 0002 GETMET R2 R2 K2 + 0x7C080200, // 0003 CALL R2 1 + 0xB80E0200, // 0004 GETNGBL R3 K1 + 0x8C0C0703, // 0005 GETMET R3 R3 K3 + 0x58140004, // 0006 LDCONST R5 K4 + 0x7C0C0400, // 0007 CALL R3 2 + 0x780E0006, // 0008 JMPF R3 #0010 + 0xB80E0A00, // 0009 GETNGBL R3 K5 + 0x60100008, // 000A GETGBL R4 G8 + 0x5C140400, // 000B MOVE R5 R2 + 0x7C100200, // 000C CALL R4 1 + 0x00120C04, // 000D ADD R4 K6 R4 + 0x58140004, // 000E LDCONST R5 K4 + 0x7C0C0400, // 000F CALL R3 2 + 0x4C0C0000, // 0010 LDNIL R3 + 0x1C0C0403, // 0011 EQ R3 R2 R3 + 0x780E0000, // 0012 JMPF R3 #0014 + 0x80000600, // 0013 RET 0 + 0x8C0C0307, // 0014 GETMET R3 R1 K7 + 0x5C140400, // 0015 MOVE R5 R2 + 0x7C0C0400, // 0016 CALL R3 2 + 0x4C100000, // 0017 LDNIL R4 + 0x20100604, // 0018 NE R4 R3 R4 + 0x7812000D, // 0019 JMPF R4 #0028 + 0x58100008, // 001A LDCONST R4 K8 + 0x6014000C, // 001B GETGBL R5 G12 + 0x88180109, // 001C GETMBR R6 R0 K9 + 0x7C140200, // 001D CALL R5 1 + 0x14140805, // 001E LT R5 R4 R5 + 0x78160006, // 001F JMPF R5 #0027 + 0x88140109, // 0020 GETMBR R5 R0 K9 + 0x94140A04, // 0021 GETIDX R5 R5 R4 + 0x8C140B0A, // 0022 GETMET R5 R5 K10 + 0x5C1C0600, // 0023 MOVE R7 R3 + 0x7C140400, // 0024 CALL R5 2 + 0x0010090B, // 0025 ADD R4 R4 K11 + 0x7001FFF3, // 0026 JMP #001B + 0x70020006, // 0027 JMP #002F + 0xB8120A00, // 0028 GETNGBL R4 K5 + 0x60140008, // 0029 GETGBL R5 G8 + 0x5C180400, // 002A MOVE R6 R2 + 0x7C140200, // 002B CALL R5 1 + 0x00161805, // 002C ADD R5 K12 R5 + 0x58180004, // 002D LDCONST R6 K4 + 0x7C100400, // 002E CALL R4 2 + 0x80000000, // 002F RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: _instantiate_plugins_from_config +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device__instantiate_plugins_from_config, /* name */ + be_nested_proto( + 17, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[31]) { /* constants */ + /* K0 */ be_nested_str_weak(k2l_num), + /* K1 */ be_nested_str_weak(plugins), + /* K2 */ be_nested_str_weak(push), + /* K3 */ be_nested_str_weak(matter), + /* K4 */ be_nested_str_weak(Plugin_Root), + /* K5 */ be_const_int(0), + /* K6 */ be_nested_str_weak(log), + /* K7 */ be_nested_str_weak(MTR_X3A_X20Configuring_X20endpoints), + /* K8 */ be_const_int(2), + /* K9 */ be_nested_str_weak(MTR_X3A_X20_X20_X20endpoint_X20_X3D_X20_X255i_X20type_X3A_X25s_X25s), + /* K10 */ be_nested_str_weak(root), + /* K11 */ be_nested_str_weak(), + /* K12 */ be_nested_str_weak(Plugin_Aggregator), + /* K13 */ be_nested_str_weak(AGGREGATOR_ENDPOINT), + /* K14 */ be_nested_str_weak(aggregator), + /* K15 */ be_nested_str_weak(find), + /* K16 */ be_nested_str_weak(type), + /* K17 */ be_nested_str_weak(MTR_X3A_X20no_X20class_X20name_X2C_X20skipping), + /* K18 */ be_const_int(3), + /* K19 */ be_nested_str_weak(MTR_X3A_X20only_X20one_X20root_X20node_X20allowed), + /* K20 */ be_nested_str_weak(plugins_classes), + /* K21 */ be_nested_str_weak(MTR_X3A_X20unknown_X20class_X20name_X20_X27), + /* K22 */ be_nested_str_weak(_X27_X20skipping), + /* K23 */ be_nested_str_weak(conf_to_log), + /* K24 */ be_nested_str_weak(MTR_X3A_X20Exception), + /* K25 */ be_nested_str_weak(_X7C), + /* K26 */ be_nested_str_weak(stop_iteration), + /* K27 */ be_nested_str_weak(tasmota), + /* K28 */ be_nested_str_weak(publish_result), + /* K29 */ be_nested_str_weak(_X7B_X22Matter_X22_X3A_X7B_X22Initialized_X22_X3A1_X7D_X7D), + /* K30 */ be_nested_str_weak(Matter), + }), + be_str_weak(_instantiate_plugins_from_config), + &be_const_str_solidified, + ( &(const binstruction[146]) { /* code */ + 0x8C080100, // 0000 GETMET R2 R0 K0 + 0x5C100200, // 0001 MOVE R4 R1 + 0x7C080400, // 0002 CALL R2 2 + 0x880C0101, // 0003 GETMBR R3 R0 K1 + 0x8C0C0702, // 0004 GETMET R3 R3 K2 + 0xB8160600, // 0005 GETNGBL R5 K3 + 0x8C140B04, // 0006 GETMET R5 R5 K4 + 0x5C1C0000, // 0007 MOVE R7 R0 + 0x58200005, // 0008 LDCONST R8 K5 + 0x60240013, // 0009 GETGBL R9 G19 + 0x7C240000, // 000A CALL R9 0 + 0x7C140800, // 000B CALL R5 4 + 0x7C0C0400, // 000C CALL R3 2 + 0xB80E0C00, // 000D GETNGBL R3 K6 + 0x58100007, // 000E LDCONST R4 K7 + 0x58140008, // 000F LDCONST R5 K8 + 0x7C0C0400, // 0010 CALL R3 2 + 0xB80E0C00, // 0011 GETNGBL R3 K6 + 0x60100018, // 0012 GETGBL R4 G24 + 0x58140009, // 0013 LDCONST R5 K9 + 0x58180005, // 0014 LDCONST R6 K5 + 0x581C000A, // 0015 LDCONST R7 K10 + 0x5820000B, // 0016 LDCONST R8 K11 + 0x7C100800, // 0017 CALL R4 4 + 0x58140008, // 0018 LDCONST R5 K8 + 0x7C0C0400, // 0019 CALL R3 2 + 0x880C0101, // 001A GETMBR R3 R0 K1 + 0x8C0C0702, // 001B GETMET R3 R3 K2 + 0xB8160600, // 001C GETNGBL R5 K3 + 0x8C140B0C, // 001D GETMET R5 R5 K12 + 0x5C1C0000, // 001E MOVE R7 R0 + 0xB8220600, // 001F GETNGBL R8 K3 + 0x8820110D, // 0020 GETMBR R8 R8 K13 + 0x60240013, // 0021 GETGBL R9 G19 + 0x7C240000, // 0022 CALL R9 0 + 0x7C140800, // 0023 CALL R5 4 + 0x7C0C0400, // 0024 CALL R3 2 + 0xB80E0C00, // 0025 GETNGBL R3 K6 + 0x60100018, // 0026 GETGBL R4 G24 + 0x58140009, // 0027 LDCONST R5 K9 + 0xB81A0600, // 0028 GETNGBL R6 K3 + 0x88180D0D, // 0029 GETMBR R6 R6 K13 + 0x581C000E, // 002A LDCONST R7 K14 + 0x5820000B, // 002B LDCONST R8 K11 + 0x7C100800, // 002C CALL R4 4 + 0x58140008, // 002D LDCONST R5 K8 + 0x7C0C0400, // 002E CALL R3 2 + 0x600C0010, // 002F GETGBL R3 G16 + 0x5C100400, // 0030 MOVE R4 R2 + 0x7C0C0200, // 0031 CALL R3 1 + 0xA8020055, // 0032 EXBLK 0 #0089 + 0x5C100600, // 0033 MOVE R4 R3 + 0x7C100000, // 0034 CALL R4 0 + 0x1C140905, // 0035 EQ R5 R4 K5 + 0x78160000, // 0036 JMPF R5 #0038 + 0x7001FFFA, // 0037 JMP #0033 + 0xA802003E, // 0038 EXBLK 0 #0078 + 0x60140008, // 0039 GETGBL R5 G8 + 0x5C180800, // 003A MOVE R6 R4 + 0x7C140200, // 003B CALL R5 1 + 0x94140205, // 003C GETIDX R5 R1 R5 + 0x8C180B0F, // 003D GETMET R6 R5 K15 + 0x58200010, // 003E LDCONST R8 K16 + 0x7C180400, // 003F CALL R6 2 + 0x4C1C0000, // 0040 LDNIL R7 + 0x1C1C0C07, // 0041 EQ R7 R6 R7 + 0x781E0005, // 0042 JMPF R7 #0049 + 0xB81E0C00, // 0043 GETNGBL R7 K6 + 0x58200011, // 0044 LDCONST R8 K17 + 0x58240012, // 0045 LDCONST R9 K18 + 0x7C1C0400, // 0046 CALL R7 2 + 0xA8040001, // 0047 EXBLK 1 1 + 0x7001FFE9, // 0048 JMP #0033 + 0x1C1C0D0A, // 0049 EQ R7 R6 K10 + 0x781E0005, // 004A JMPF R7 #0051 + 0xB81E0C00, // 004B GETNGBL R7 K6 + 0x58200013, // 004C LDCONST R8 K19 + 0x58240012, // 004D LDCONST R9 K18 + 0x7C1C0400, // 004E CALL R7 2 + 0xA8040001, // 004F EXBLK 1 1 + 0x7001FFE1, // 0050 JMP #0033 + 0x881C0114, // 0051 GETMBR R7 R0 K20 + 0x8C1C0F0F, // 0052 GETMET R7 R7 K15 + 0x5C240C00, // 0053 MOVE R9 R6 + 0x7C1C0400, // 0054 CALL R7 2 + 0x4C200000, // 0055 LDNIL R8 + 0x1C200E08, // 0056 EQ R8 R7 R8 + 0x78220009, // 0057 JMPF R8 #0062 + 0xB8220C00, // 0058 GETNGBL R8 K6 + 0x60240008, // 0059 GETGBL R9 G8 + 0x5C280C00, // 005A MOVE R10 R6 + 0x7C240200, // 005B CALL R9 1 + 0x00262A09, // 005C ADD R9 K21 R9 + 0x00241316, // 005D ADD R9 R9 K22 + 0x58280008, // 005E LDCONST R10 K8 + 0x7C200400, // 005F CALL R8 2 + 0xA8040001, // 0060 EXBLK 1 1 + 0x7001FFD0, // 0061 JMP #0033 + 0x5C200E00, // 0062 MOVE R8 R7 + 0x5C240000, // 0063 MOVE R9 R0 + 0x5C280800, // 0064 MOVE R10 R4 + 0x5C2C0A00, // 0065 MOVE R11 R5 + 0x7C200600, // 0066 CALL R8 3 + 0x88240101, // 0067 GETMBR R9 R0 K1 + 0x8C241302, // 0068 GETMET R9 R9 K2 + 0x5C2C1000, // 0069 MOVE R11 R8 + 0x7C240400, // 006A CALL R9 2 + 0xB8260C00, // 006B GETNGBL R9 K6 + 0x60280018, // 006C GETGBL R10 G24 + 0x582C0009, // 006D LDCONST R11 K9 + 0x5C300800, // 006E MOVE R12 R4 + 0x5C340C00, // 006F MOVE R13 R6 + 0x8C380117, // 0070 GETMET R14 R0 K23 + 0x5C400A00, // 0071 MOVE R16 R5 + 0x7C380400, // 0072 CALL R14 2 + 0x7C280800, // 0073 CALL R10 4 + 0x582C0008, // 0074 LDCONST R11 K8 + 0x7C240400, // 0075 CALL R9 2 + 0xA8040001, // 0076 EXBLK 1 1 + 0x7002000F, // 0077 JMP #0088 + 0xAC140002, // 0078 CATCH R5 0 2 + 0x7002000C, // 0079 JMP #0087 + 0xB81E0C00, // 007A GETNGBL R7 K6 + 0x60200008, // 007B GETGBL R8 G8 + 0x5C240A00, // 007C MOVE R9 R5 + 0x7C200200, // 007D CALL R8 1 + 0x00223008, // 007E ADD R8 K24 R8 + 0x00201119, // 007F ADD R8 R8 K25 + 0x60240008, // 0080 GETGBL R9 G8 + 0x5C280C00, // 0081 MOVE R10 R6 + 0x7C240200, // 0082 CALL R9 1 + 0x00201009, // 0083 ADD R8 R8 R9 + 0x58240008, // 0084 LDCONST R9 K8 + 0x7C1C0400, // 0085 CALL R7 2 + 0x70020000, // 0086 JMP #0088 + 0xB0080000, // 0087 RAISE 2 R0 R0 + 0x7001FFA9, // 0088 JMP #0033 + 0x580C001A, // 0089 LDCONST R3 K26 + 0xAC0C0200, // 008A CATCH R3 1 0 + 0xB0080000, // 008B RAISE 2 R0 R0 + 0xB80E3600, // 008C GETNGBL R3 K27 + 0x8C0C071C, // 008D GETMET R3 R3 K28 + 0x5814001D, // 008E LDCONST R5 K29 + 0x5818001E, // 008F LDCONST R6 K30 + 0x7C0C0600, // 0090 CALL R3 3 + 0x80000000, // 0091 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: mdns_announce_op_discovery +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_mdns_announce_op_discovery, /* name */ + be_nested_proto( + 14, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[27]) { /* constants */ + /* K0 */ be_nested_str_weak(mdns), + /* K1 */ be_nested_str_weak(get_device_id), + /* K2 */ be_nested_str_weak(copy), + /* K3 */ be_nested_str_weak(reverse), + /* K4 */ be_nested_str_weak(get_fabric_compressed), + /* K5 */ be_nested_str_weak(tohex), + /* K6 */ be_nested_str_weak(_X2D), + /* K7 */ be_nested_str_weak(log), + /* K8 */ be_nested_str_weak(MTR_X3A_X20Operational_X20Discovery_X20node_X20_X3D_X20), + /* K9 */ be_const_int(3), + /* K10 */ be_nested_str_weak(tasmota), + /* K11 */ be_nested_str_weak(eth), + /* K12 */ be_nested_str_weak(find), + /* K13 */ be_nested_str_weak(up), + /* K14 */ be_nested_str_weak(MTR_X3A_X20adding_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27_X20ptr_X20to_X20_X60_X25s_X2Elocal_X60), + /* K15 */ be_nested_str_weak(hostname_eth), + /* K16 */ be_nested_str_weak(add_service), + /* K17 */ be_nested_str_weak(_matter), + /* K18 */ be_nested_str_weak(_tcp), + /* K19 */ be_nested_str_weak(_I), + /* K20 */ be_nested_str_weak(MTR_X3A_X20adding_X20subtype_X3A_X20), + /* K21 */ be_nested_str_weak(add_subtype), + /* K22 */ be_nested_str_weak(wifi), + /* K23 */ be_nested_str_weak(hostname_wifi), + /* K24 */ be_nested_str_weak(MTR_X3A_X20Exception), + /* K25 */ be_nested_str_weak(_X7C), + /* K26 */ be_const_int(2), + }), + be_str_weak(mdns_announce_op_discovery), + &be_const_str_solidified, + ( &(const binstruction[115]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0xA802005F, // 0001 EXBLK 0 #0062 + 0x8C0C0301, // 0002 GETMET R3 R1 K1 + 0x7C0C0200, // 0003 CALL R3 1 + 0x8C0C0702, // 0004 GETMET R3 R3 K2 + 0x7C0C0200, // 0005 CALL R3 1 + 0x8C0C0703, // 0006 GETMET R3 R3 K3 + 0x7C0C0200, // 0007 CALL R3 1 + 0x8C100304, // 0008 GETMET R4 R1 K4 + 0x7C100200, // 0009 CALL R4 1 + 0x8C140905, // 000A GETMET R5 R4 K5 + 0x7C140200, // 000B CALL R5 1 + 0x00140B06, // 000C ADD R5 R5 K6 + 0x8C180705, // 000D GETMET R6 R3 K5 + 0x7C180200, // 000E CALL R6 1 + 0x00140A06, // 000F ADD R5 R5 R6 + 0xB81A0E00, // 0010 GETNGBL R6 K7 + 0x001E1005, // 0011 ADD R7 K8 R5 + 0x58200009, // 0012 LDCONST R8 K9 + 0x7C180400, // 0013 CALL R6 2 + 0xB81A1400, // 0014 GETNGBL R6 K10 + 0x8C180D0B, // 0015 GETMET R6 R6 K11 + 0x7C180200, // 0016 CALL R6 1 + 0x8C180D0C, // 0017 GETMET R6 R6 K12 + 0x5820000D, // 0018 LDCONST R8 K13 + 0x7C180400, // 0019 CALL R6 2 + 0x781A001E, // 001A JMPF R6 #003A + 0xB81A0E00, // 001B GETNGBL R6 K7 + 0x601C0018, // 001C GETGBL R7 G24 + 0x5820000E, // 001D LDCONST R8 K14 + 0x5824000B, // 001E LDCONST R9 K11 + 0x5C280A00, // 001F MOVE R10 R5 + 0x882C010F, // 0020 GETMBR R11 R0 K15 + 0x7C1C0800, // 0021 CALL R7 4 + 0x58200009, // 0022 LDCONST R8 K9 + 0x7C180400, // 0023 CALL R6 2 + 0x8C180510, // 0024 GETMET R6 R2 K16 + 0x58200011, // 0025 LDCONST R8 K17 + 0x58240012, // 0026 LDCONST R9 K18 + 0x542A15A3, // 0027 LDINT R10 5540 + 0x4C2C0000, // 0028 LDNIL R11 + 0x5C300A00, // 0029 MOVE R12 R5 + 0x8834010F, // 002A GETMBR R13 R0 K15 + 0x7C180E00, // 002B CALL R6 7 + 0x8C180905, // 002C GETMET R6 R4 K5 + 0x7C180200, // 002D CALL R6 1 + 0x001A2606, // 002E ADD R6 K19 R6 + 0xB81E0E00, // 002F GETNGBL R7 K7 + 0x00222806, // 0030 ADD R8 K20 R6 + 0x58240009, // 0031 LDCONST R9 K9 + 0x7C1C0400, // 0032 CALL R7 2 + 0x8C1C0515, // 0033 GETMET R7 R2 K21 + 0x58240011, // 0034 LDCONST R9 K17 + 0x58280012, // 0035 LDCONST R10 K18 + 0x5C2C0A00, // 0036 MOVE R11 R5 + 0x8830010F, // 0037 GETMBR R12 R0 K15 + 0x5C340C00, // 0038 MOVE R13 R6 + 0x7C1C0C00, // 0039 CALL R7 6 + 0xB81A1400, // 003A GETNGBL R6 K10 + 0x8C180D16, // 003B GETMET R6 R6 K22 + 0x7C180200, // 003C CALL R6 1 + 0x8C180D0C, // 003D GETMET R6 R6 K12 + 0x5820000D, // 003E LDCONST R8 K13 + 0x7C180400, // 003F CALL R6 2 + 0x781A001E, // 0040 JMPF R6 #0060 + 0xB81A0E00, // 0041 GETNGBL R6 K7 + 0x601C0018, // 0042 GETGBL R7 G24 + 0x5820000E, // 0043 LDCONST R8 K14 + 0x58240016, // 0044 LDCONST R9 K22 + 0x5C280A00, // 0045 MOVE R10 R5 + 0x882C0117, // 0046 GETMBR R11 R0 K23 + 0x7C1C0800, // 0047 CALL R7 4 + 0x58200009, // 0048 LDCONST R8 K9 + 0x7C180400, // 0049 CALL R6 2 + 0x8C180510, // 004A GETMET R6 R2 K16 + 0x58200011, // 004B LDCONST R8 K17 + 0x58240012, // 004C LDCONST R9 K18 + 0x542A15A3, // 004D LDINT R10 5540 + 0x4C2C0000, // 004E LDNIL R11 + 0x5C300A00, // 004F MOVE R12 R5 + 0x88340117, // 0050 GETMBR R13 R0 K23 + 0x7C180E00, // 0051 CALL R6 7 + 0x8C180905, // 0052 GETMET R6 R4 K5 + 0x7C180200, // 0053 CALL R6 1 + 0x001A2606, // 0054 ADD R6 K19 R6 + 0xB81E0E00, // 0055 GETNGBL R7 K7 + 0x00222806, // 0056 ADD R8 K20 R6 + 0x58240009, // 0057 LDCONST R9 K9 + 0x7C1C0400, // 0058 CALL R7 2 + 0x8C1C0515, // 0059 GETMET R7 R2 K21 + 0x58240011, // 005A LDCONST R9 K17 + 0x58280012, // 005B LDCONST R10 K18 + 0x5C2C0A00, // 005C MOVE R11 R5 + 0x88300117, // 005D GETMBR R12 R0 K23 + 0x5C340C00, // 005E MOVE R13 R6 + 0x7C1C0C00, // 005F CALL R7 6 + 0xA8040001, // 0060 EXBLK 1 1 + 0x7002000F, // 0061 JMP #0072 + 0xAC0C0002, // 0062 CATCH R3 0 2 + 0x7002000C, // 0063 JMP #0071 + 0xB8160E00, // 0064 GETNGBL R5 K7 + 0x60180008, // 0065 GETGBL R6 G8 + 0x5C1C0600, // 0066 MOVE R7 R3 + 0x7C180200, // 0067 CALL R6 1 + 0x001A3006, // 0068 ADD R6 K24 R6 + 0x00180D19, // 0069 ADD R6 R6 K25 + 0x601C0008, // 006A GETGBL R7 G8 + 0x5C200800, // 006B MOVE R8 R4 + 0x7C1C0200, // 006C CALL R7 1 + 0x00180C07, // 006D ADD R6 R6 R7 + 0x581C001A, // 006E LDCONST R7 K26 + 0x7C140400, // 006F CALL R5 2 + 0x70020000, // 0070 JMP #0072 + 0xB0080000, // 0071 RAISE 2 R0 R0 + 0x80000000, // 0072 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: start_commissioning_complete_deferred +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_start_commissioning_complete_deferred, /* name */ + be_nested_proto( + 6, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 2]) { + be_nested_proto( + 3, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 2]) { /* upvals */ + be_local_const_upval(1, 0), + be_local_const_upval(1, 1), + }), + 0, /* has sup protos */ + NULL, + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(start_commissioning_complete), + }), + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 5]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x68080001, // 0002 GETUPV R2 U1 + 0x7C000400, // 0003 CALL R0 2 + 0x80040000, // 0004 RET 1 R0 + }) + ), + &be_class_Matter_Device, + }), + 1, /* has constants */ + ( &(const bvalue[ 3]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota), + /* K1 */ be_nested_str_weak(set_timer), + /* K2 */ be_const_int(0), + }), + be_str_weak(start_commissioning_complete_deferred), + &be_const_str_solidified, + ( &(const binstruction[ 7]) { /* code */ + 0xB80A0000, // 0000 GETNGBL R2 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x58100002, // 0002 LDCONST R4 K2 + 0x84140000, // 0003 CLOSURE R5 P0 + 0x7C080600, // 0004 CALL R2 3 + 0xA0000000, // 0005 CLOSE R0 + 0x80000000, // 0006 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: read_sensors_scheduler +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_read_sensors_scheduler, /* name */ + be_nested_proto( + 4, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 7]) { /* constants */ + /* K0 */ be_nested_str_weak(probe_sensor_time), + /* K1 */ be_nested_str_weak(probe_sensor_timestamp), + /* K2 */ be_const_int(0), + /* K3 */ be_nested_str_weak(tasmota), + /* K4 */ be_nested_str_weak(time_reached), + /* K5 */ be_nested_str_weak(_trigger_read_sensors), + /* K6 */ be_nested_str_weak(millis), + }), + be_str_weak(read_sensors_scheduler), + &be_const_str_solidified, + ( &(const binstruction[21]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x4C080000, // 0001 LDNIL R2 + 0x1C040202, // 0002 EQ R1 R1 R2 + 0x78060000, // 0003 JMPF R1 #0005 + 0x80000200, // 0004 RET 0 + 0x88040101, // 0005 GETMBR R1 R0 K1 + 0x1C040302, // 0006 EQ R1 R1 K2 + 0x74060004, // 0007 JMPT R1 #000D + 0xB8060600, // 0008 GETNGBL R1 K3 + 0x8C040304, // 0009 GETMET R1 R1 K4 + 0x880C0101, // 000A GETMBR R3 R0 K1 + 0x7C040400, // 000B CALL R1 2 + 0x78060006, // 000C JMPF R1 #0014 + 0x8C040105, // 000D GETMET R1 R0 K5 + 0x7C040200, // 000E CALL R1 1 + 0xB8060600, // 000F GETNGBL R1 K3 + 0x8C040306, // 0010 GETMET R1 R1 K6 + 0x880C0100, // 0011 GETMBR R3 R0 K0 + 0x7C040400, // 0012 CALL R1 2 + 0x90020201, // 0013 SETMBR R0 K1 R1 + 0x80000000, // 0014 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: bridge_remove_endpoint +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_bridge_remove_endpoint, /* name */ + be_nested_proto( + 10, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[17]) { /* constants */ + /* K0 */ be_nested_str_weak(json), + /* K1 */ be_nested_str_weak(plugins_config), + /* K2 */ be_nested_str_weak(contains), + /* K3 */ be_nested_str_weak(log), + /* K4 */ be_nested_str_weak(MTR_X3A_X20Cannot_X20remove_X20an_X20enpoint_X20not_X20configured_X3A_X20), + /* K5 */ be_const_int(3), + /* K6 */ be_nested_str_weak(MTR_X3A_X20deleting_X20endpoint_X20_X3D_X20_X25i), + /* K7 */ be_const_int(2), + /* K8 */ be_nested_str_weak(remove), + /* K9 */ be_nested_str_weak(plugins_persist), + /* K10 */ be_const_int(0), + /* K11 */ be_nested_str_weak(plugins), + /* K12 */ be_nested_str_weak(get_endpoint), + /* K13 */ be_const_int(1), + /* K14 */ be_nested_str_weak(clean_remotes), + /* K15 */ be_nested_str_weak(save_param), + /* K16 */ be_nested_str_weak(signal_endpoints_changed), + }), + be_str_weak(bridge_remove_endpoint), + &be_const_str_solidified, + ( &(const binstruction[56]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0x600C0008, // 0001 GETGBL R3 G8 + 0x5C100200, // 0002 MOVE R4 R1 + 0x7C0C0200, // 0003 CALL R3 1 + 0x4C100000, // 0004 LDNIL R4 + 0x4C140000, // 0005 LDNIL R5 + 0x88180101, // 0006 GETMBR R6 R0 K1 + 0x8C180D02, // 0007 GETMET R6 R6 K2 + 0x5C200600, // 0008 MOVE R8 R3 + 0x7C180400, // 0009 CALL R6 2 + 0x741A0004, // 000A JMPT R6 #0010 + 0xB81A0600, // 000B GETNGBL R6 K3 + 0x001E0803, // 000C ADD R7 K4 R3 + 0x58200005, // 000D LDCONST R8 K5 + 0x7C180400, // 000E CALL R6 2 + 0x80000C00, // 000F RET 0 + 0xB81A0600, // 0010 GETNGBL R6 K3 + 0x601C0018, // 0011 GETGBL R7 G24 + 0x58200006, // 0012 LDCONST R8 K6 + 0x5C240200, // 0013 MOVE R9 R1 + 0x7C1C0400, // 0014 CALL R7 2 + 0x58200007, // 0015 LDCONST R8 K7 + 0x7C180400, // 0016 CALL R6 2 + 0x88180101, // 0017 GETMBR R6 R0 K1 + 0x8C180D08, // 0018 GETMET R6 R6 K8 + 0x5C200600, // 0019 MOVE R8 R3 + 0x7C180400, // 001A CALL R6 2 + 0x50180200, // 001B LDBOOL R6 1 0 + 0x90021206, // 001C SETMBR R0 K9 R6 + 0x5818000A, // 001D LDCONST R6 K10 + 0x601C000C, // 001E GETGBL R7 G12 + 0x8820010B, // 001F GETMBR R8 R0 K11 + 0x7C1C0200, // 0020 CALL R7 1 + 0x141C0C07, // 0021 LT R7 R6 R7 + 0x781E000D, // 0022 JMPF R7 #0031 + 0x881C010B, // 0023 GETMBR R7 R0 K11 + 0x941C0E06, // 0024 GETIDX R7 R7 R6 + 0x8C1C0F0C, // 0025 GETMET R7 R7 K12 + 0x7C1C0200, // 0026 CALL R7 1 + 0x1C1C0207, // 0027 EQ R7 R1 R7 + 0x781E0005, // 0028 JMPF R7 #002F + 0x881C010B, // 0029 GETMBR R7 R0 K11 + 0x8C1C0F08, // 002A GETMET R7 R7 K8 + 0x5C240C00, // 002B MOVE R9 R6 + 0x7C1C0400, // 002C CALL R7 2 + 0x70020002, // 002D JMP #0031 + 0x70020000, // 002E JMP #0030 + 0x00180D0D, // 002F ADD R6 R6 K13 + 0x7001FFEC, // 0030 JMP #001E + 0x8C1C010E, // 0031 GETMET R7 R0 K14 + 0x7C1C0200, // 0032 CALL R7 1 + 0x8C1C010F, // 0033 GETMET R7 R0 K15 + 0x7C1C0200, // 0034 CALL R7 1 + 0x8C1C0110, // 0035 GETMET R7 R0 K16 + 0x7C1C0200, // 0036 CALL R7 1 + 0x80000000, // 0037 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: bridge_add_endpoint +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_bridge_add_endpoint, /* name */ + be_nested_proto( + 16, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[20]) { /* constants */ + /* K0 */ be_nested_str_weak(plugins_classes), + /* K1 */ be_nested_str_weak(find), + /* K2 */ be_nested_str_weak(log), + /* K3 */ be_nested_str_weak(MTR_X3A_X20unknown_X20class_X20name_X20_X27), + /* K4 */ be_nested_str_weak(_X27_X20skipping), + /* K5 */ be_const_int(3), + /* K6 */ be_nested_str_weak(next_ep), + /* K7 */ be_nested_str_weak(plugins), + /* K8 */ be_nested_str_weak(push), + /* K9 */ be_nested_str_weak(type), + /* K10 */ be_nested_str_weak(keys), + /* K11 */ be_nested_str_weak(stop_iteration), + /* K12 */ be_nested_str_weak(MTR_X3A_X20adding_X20endpoint_X20_X3D_X20_X25i_X20type_X3A_X25s_X25s), + /* K13 */ be_nested_str_weak(conf_to_log), + /* K14 */ be_const_int(2), + /* K15 */ be_nested_str_weak(plugins_config), + /* K16 */ be_nested_str_weak(plugins_persist), + /* K17 */ be_const_int(1), + /* K18 */ be_nested_str_weak(save_param), + /* K19 */ be_nested_str_weak(signal_endpoints_changed), + }), + be_str_weak(bridge_add_endpoint), + &be_const_str_solidified, + ( &(const binstruction[68]) { /* code */ + 0x880C0100, // 0000 GETMBR R3 R0 K0 + 0x8C0C0701, // 0001 GETMET R3 R3 K1 + 0x5C140200, // 0002 MOVE R5 R1 + 0x7C0C0400, // 0003 CALL R3 2 + 0x4C100000, // 0004 LDNIL R4 + 0x1C100604, // 0005 EQ R4 R3 R4 + 0x78120008, // 0006 JMPF R4 #0010 + 0xB8120400, // 0007 GETNGBL R4 K2 + 0x60140008, // 0008 GETGBL R5 G8 + 0x5C180200, // 0009 MOVE R6 R1 + 0x7C140200, // 000A CALL R5 1 + 0x00160605, // 000B ADD R5 K3 R5 + 0x00140B04, // 000C ADD R5 R5 K4 + 0x58180005, // 000D LDCONST R6 K5 + 0x7C100400, // 000E CALL R4 2 + 0x80000800, // 000F RET 0 + 0x88100106, // 0010 GETMBR R4 R0 K6 + 0x60140008, // 0011 GETGBL R5 G8 + 0x5C180800, // 0012 MOVE R6 R4 + 0x7C140200, // 0013 CALL R5 1 + 0x5C180600, // 0014 MOVE R6 R3 + 0x5C1C0000, // 0015 MOVE R7 R0 + 0x5C200800, // 0016 MOVE R8 R4 + 0x5C240400, // 0017 MOVE R9 R2 + 0x7C180600, // 0018 CALL R6 3 + 0x881C0107, // 0019 GETMBR R7 R0 K7 + 0x8C1C0F08, // 001A GETMET R7 R7 K8 + 0x5C240C00, // 001B MOVE R9 R6 + 0x7C1C0400, // 001C CALL R7 2 + 0x601C0013, // 001D GETGBL R7 G19 + 0x7C1C0000, // 001E CALL R7 0 + 0x981E1201, // 001F SETIDX R7 K9 R1 + 0x60200010, // 0020 GETGBL R8 G16 + 0x8C24050A, // 0021 GETMET R9 R2 K10 + 0x7C240200, // 0022 CALL R9 1 + 0x7C200200, // 0023 CALL R8 1 + 0xA8020004, // 0024 EXBLK 0 #002A + 0x5C241000, // 0025 MOVE R9 R8 + 0x7C240000, // 0026 CALL R9 0 + 0x94280409, // 0027 GETIDX R10 R2 R9 + 0x981C120A, // 0028 SETIDX R7 R9 R10 + 0x7001FFFA, // 0029 JMP #0025 + 0x5820000B, // 002A LDCONST R8 K11 + 0xAC200200, // 002B CATCH R8 1 0 + 0xB0080000, // 002C RAISE 2 R0 R0 + 0xB8220400, // 002D GETNGBL R8 K2 + 0x60240018, // 002E GETGBL R9 G24 + 0x5828000C, // 002F LDCONST R10 K12 + 0x5C2C0800, // 0030 MOVE R11 R4 + 0x5C300200, // 0031 MOVE R12 R1 + 0x8C34010D, // 0032 GETMET R13 R0 K13 + 0x5C3C0400, // 0033 MOVE R15 R2 + 0x7C340400, // 0034 CALL R13 2 + 0x7C240800, // 0035 CALL R9 4 + 0x5828000E, // 0036 LDCONST R10 K14 + 0x7C200400, // 0037 CALL R8 2 + 0x8820010F, // 0038 GETMBR R8 R0 K15 + 0x98200A07, // 0039 SETIDX R8 R5 R7 + 0x50200200, // 003A LDBOOL R8 1 0 + 0x90022008, // 003B SETMBR R0 K16 R8 + 0x88200106, // 003C GETMBR R8 R0 K6 + 0x00201111, // 003D ADD R8 R8 K17 + 0x90020C08, // 003E SETMBR R0 K6 R8 + 0x8C200112, // 003F GETMET R8 R0 K18 + 0x7C200200, // 0040 CALL R8 1 + 0x8C200113, // 0041 GETMET R8 R0 K19 + 0x7C200200, // 0042 CALL R8 1 + 0x80040800, // 0043 RET 1 R4 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: is_root_commissioning_open +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_is_root_commissioning_open, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(commissioning_open), + /* K1 */ be_nested_str_weak(commissioning_admin_fabric), + }), + be_str_weak(is_root_commissioning_open), + &be_const_str_solidified, + ( &(const binstruction[11]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x4C080000, // 0001 LDNIL R2 + 0x20040202, // 0002 NE R1 R1 R2 + 0x78060003, // 0003 JMPF R1 #0008 + 0x88040101, // 0004 GETMBR R1 R0 K1 + 0x4C080000, // 0005 LDNIL R2 + 0x1C040202, // 0006 EQ R1 R1 R2 + 0x74060000, // 0007 JMPT R1 #0009 + 0x50040001, // 0008 LDBOOL R1 0 1 + 0x50040200, // 0009 LDBOOL R1 1 0 + 0x80040200, // 000A RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: start_operational_discovery +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_start_operational_discovery, /* name */ + be_nested_proto( + 7, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(crypto), + /* K1 */ be_nested_str_weak(mdns), + /* K2 */ be_nested_str_weak(stop_basic_commissioning), + /* K3 */ be_nested_str_weak(mdns_announce_op_discovery), + }), + be_str_weak(start_operational_discovery), + &be_const_str_solidified, + ( &(const binstruction[ 8]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0xA40E0200, // 0001 IMPORT R3 K1 + 0x8C100102, // 0002 GETMET R4 R0 K2 + 0x7C100200, // 0003 CALL R4 1 + 0x8C100103, // 0004 GETMET R4 R0 K3 + 0x5C180200, // 0005 MOVE R6 R1 + 0x7C100400, // 0006 CALL R4 2 + 0x80000000, // 0007 RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: MtrInfo ********************************************************************/ @@ -5110,12 +4033,12 @@ be_local_closure(class_Matter_Device_MtrInfo, /* name */ /******************************************************************** -** Solidified function: every_250ms +** Solidified function: signal_endpoints_changed ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_every_250ms, /* name */ +be_local_closure(class_Matter_Device_signal_endpoints_changed, /* name */ be_nested_proto( - 4, /* nstack */ + 7, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -5124,405 +4047,29 @@ be_local_closure(class_Matter_Device_every_250ms, /* name */ &be_class_Matter_Device, 1, /* has constants */ ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(read_sensors_scheduler), + /* K0 */ be_nested_str_weak(attribute_updated), /* K1 */ be_const_int(0), - /* K2 */ be_nested_str_weak(plugins), - /* K3 */ be_nested_str_weak(every_250ms), - /* K4 */ be_const_int(1), - }), - be_str_weak(every_250ms), - &be_const_str_solidified, - ( &(const binstruction[15]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x7C040200, // 0001 CALL R1 1 - 0x58040001, // 0002 LDCONST R1 K1 - 0x6008000C, // 0003 GETGBL R2 G12 - 0x880C0102, // 0004 GETMBR R3 R0 K2 - 0x7C080200, // 0005 CALL R2 1 - 0x14080202, // 0006 LT R2 R1 R2 - 0x780A0005, // 0007 JMPF R2 #000E - 0x88080102, // 0008 GETMBR R2 R0 K2 - 0x94080401, // 0009 GETIDX R2 R2 R1 - 0x8C080503, // 000A GETMET R2 R2 K3 - 0x7C080200, // 000B CALL R2 1 - 0x00040304, // 000C ADD R1 R1 K4 - 0x7001FFF4, // 000D JMP #0003 - 0x80000000, // 000E RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: generate_random_passcode -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_generate_random_passcode, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 8]) { /* constants */ - /* K0 */ be_nested_str_weak(crypto), - /* K1 */ be_nested_str_weak(random), - /* K2 */ be_nested_str_weak(get), - /* K3 */ be_const_int(0), - /* K4 */ be_const_int(134217727), - /* K5 */ be_const_int(99999998), - /* K6 */ be_nested_str_weak(PASSCODE_INVALID), - /* K7 */ be_nested_str_weak(stop_iteration), - }), - be_str_weak(generate_random_passcode), - &be_const_str_solidified, - ( &(const binstruction[35]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x4C080000, // 0001 LDNIL R2 - 0x500C0200, // 0002 LDBOOL R3 1 0 - 0x780E001D, // 0003 JMPF R3 #0022 - 0x8C0C0301, // 0004 GETMET R3 R1 K1 - 0x54160003, // 0005 LDINT R5 4 - 0x7C0C0400, // 0006 CALL R3 2 - 0x8C0C0702, // 0007 GETMET R3 R3 K2 - 0x58140003, // 0008 LDCONST R5 K3 - 0x541A0003, // 0009 LDINT R6 4 - 0x7C0C0600, // 000A CALL R3 3 - 0x2C0C0704, // 000B AND R3 R3 K4 - 0x5C080600, // 000C MOVE R2 R3 - 0x240C0505, // 000D GT R3 R2 K5 - 0x780E0000, // 000E JMPF R3 #0010 - 0x7001FFF1, // 000F JMP #0002 - 0x600C0010, // 0010 GETGBL R3 G16 - 0x88100106, // 0011 GETMBR R4 R0 K6 - 0x7C0C0200, // 0012 CALL R3 1 - 0xA8020005, // 0013 EXBLK 0 #001A - 0x5C100600, // 0014 MOVE R4 R3 - 0x7C100000, // 0015 CALL R4 0 - 0x1C140404, // 0016 EQ R5 R2 R4 - 0x78160000, // 0017 JMPF R5 #0019 - 0x4C080000, // 0018 LDNIL R2 - 0x7001FFF9, // 0019 JMP #0014 - 0x580C0007, // 001A LDCONST R3 K7 - 0xAC0C0200, // 001B CATCH R3 1 0 - 0xB0080000, // 001C RAISE 2 R0 R0 - 0x4C0C0000, // 001D LDNIL R3 - 0x200C0403, // 001E NE R3 R2 R3 - 0x780E0000, // 001F JMPF R3 #0021 - 0x80040400, // 0020 RET 1 R2 - 0x7001FFDF, // 0021 JMP #0002 - 0x80000000, // 0022 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: MtrJoin -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_MtrJoin, /* name */ - be_nested_proto( - 8, /* nstack */ - 5, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(start_root_basic_commissioning), - /* K1 */ be_nested_str_weak(stop_basic_commissioning), - /* K2 */ be_nested_str_weak(tasmota), - /* K3 */ be_nested_str_weak(resp_cmnd_done), - }), - be_str_weak(MtrJoin), - &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0x60140009, // 0000 GETGBL R5 G9 - 0x5C180600, // 0001 MOVE R6 R3 - 0x7C140200, // 0002 CALL R5 1 - 0x78160002, // 0003 JMPF R5 #0007 - 0x8C180100, // 0004 GETMET R6 R0 K0 - 0x7C180200, // 0005 CALL R6 1 - 0x70020001, // 0006 JMP #0009 - 0x8C180101, // 0007 GETMET R6 R0 K1 - 0x7C180200, // 0008 CALL R6 1 - 0xB81A0400, // 0009 GETNGBL R6 K2 - 0x8C180D03, // 000A GETMET R6 R6 K3 - 0x7C180200, // 000B CALL R6 1 - 0x80000000, // 000C RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: process_attribute_expansion -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_process_attribute_expansion, /* name */ - be_nested_proto( - 12, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 9]) { /* constants */ - /* K0 */ be_nested_str_weak(endpoint), - /* K1 */ be_nested_str_weak(cluster), - /* K2 */ be_nested_str_weak(attribute), + /* K2 */ be_const_int(3), /* K3 */ be_nested_str_weak(matter), - /* K4 */ be_nested_str_weak(PathGenerator), - /* K5 */ be_nested_str_weak(start), - /* K6 */ be_nested_str_weak(is_direct), - /* K7 */ be_nested_str_weak(next_attribute), - /* K8 */ be_nested_str_weak(get_pi), + /* K4 */ be_nested_str_weak(AGGREGATOR_ENDPOINT), }), - be_str_weak(process_attribute_expansion), + be_str_weak(signal_endpoints_changed), &be_const_str_solidified, - ( &(const binstruction[28]) { /* code */ - 0x880C0300, // 0000 GETMBR R3 R1 K0 - 0x88100301, // 0001 GETMBR R4 R1 K1 - 0x88140302, // 0002 GETMBR R5 R1 K2 - 0xB81A0600, // 0003 GETNGBL R6 K3 - 0x8C180D04, // 0004 GETMET R6 R6 K4 - 0x5C200000, // 0005 MOVE R8 R0 - 0x7C180400, // 0006 CALL R6 2 - 0x8C1C0D05, // 0007 GETMET R7 R6 K5 - 0x5C240600, // 0008 MOVE R9 R3 - 0x5C280800, // 0009 MOVE R10 R4 - 0x5C2C0A00, // 000A MOVE R11 R5 - 0x7C1C0800, // 000B CALL R7 4 - 0x8C1C0D06, // 000C GETMET R7 R6 K6 - 0x7C1C0200, // 000D CALL R7 1 - 0x4C200000, // 000E LDNIL R8 - 0x8C240D07, // 000F GETMET R9 R6 K7 - 0x7C240200, // 0010 CALL R9 1 - 0x5C201200, // 0011 MOVE R8 R9 - 0x4C280000, // 0012 LDNIL R10 - 0x2024120A, // 0013 NE R9 R9 R10 - 0x78260005, // 0014 JMPF R9 #001B - 0x5C240400, // 0015 MOVE R9 R2 - 0x8C280D08, // 0016 GETMET R10 R6 K8 - 0x7C280200, // 0017 CALL R10 1 - 0x5C2C1000, // 0018 MOVE R11 R8 - 0x7C240400, // 0019 CALL R9 2 - 0x7001FFF3, // 001A JMP #000F - 0x80000000, // 001B RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: find_plugin_by_friendly_name -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_find_plugin_by_friendly_name, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_const_int(0), - /* K1 */ be_nested_str_weak(plugins), - /* K2 */ be_nested_str_weak(get_name), - /* K3 */ be_const_int(1), - }), - be_str_weak(find_plugin_by_friendly_name), - &be_const_str_solidified, - ( &(const binstruction[35]) { /* code */ - 0x4C080000, // 0000 LDNIL R2 - 0x1C080202, // 0001 EQ R2 R1 R2 - 0x740A0004, // 0002 JMPT R2 #0008 - 0x6008000C, // 0003 GETGBL R2 G12 - 0x5C0C0200, // 0004 MOVE R3 R1 - 0x7C080200, // 0005 CALL R2 1 - 0x1C080500, // 0006 EQ R2 R2 K0 - 0x780A0001, // 0007 JMPF R2 #000A - 0x4C080000, // 0008 LDNIL R2 - 0x80040400, // 0009 RET 1 R2 - 0x58080000, // 000A LDCONST R2 K0 - 0x600C000C, // 000B GETGBL R3 G12 - 0x88100101, // 000C GETMBR R4 R0 K1 - 0x7C0C0200, // 000D CALL R3 1 - 0x140C0403, // 000E LT R3 R2 R3 - 0x780E0010, // 000F JMPF R3 #0021 - 0x880C0101, // 0010 GETMBR R3 R0 K1 - 0x940C0602, // 0011 GETIDX R3 R3 R2 - 0x8C100702, // 0012 GETMET R4 R3 K2 - 0x7C100200, // 0013 CALL R4 1 - 0x4C140000, // 0014 LDNIL R5 - 0x20140805, // 0015 NE R5 R4 R5 - 0x78160007, // 0016 JMPF R5 #001F - 0x6014000C, // 0017 GETGBL R5 G12 - 0x5C180800, // 0018 MOVE R6 R4 - 0x7C140200, // 0019 CALL R5 1 - 0x24140B00, // 001A GT R5 R5 K0 - 0x78160002, // 001B JMPF R5 #001F - 0x1C140801, // 001C EQ R5 R4 R1 - 0x78160000, // 001D JMPF R5 #001F - 0x80040600, // 001E RET 1 R3 - 0x00080503, // 001F ADD R2 R2 K3 - 0x7001FFE9, // 0020 JMP #000B - 0x4C0C0000, // 0021 LDNIL R3 - 0x80040600, // 0022 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: save_param -********************************************************************/ -extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_save_param, /* name */ - be_nested_proto( - 9, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - &be_class_Matter_Device, - 1, /* has constants */ - ( &(const bvalue[31]) { /* constants */ - /* K0 */ be_nested_str_weak(json), - /* K1 */ be_nested_str_weak(update_remotes_info), - /* K2 */ be_nested_str_weak(_X7B_X22distinguish_X22_X3A_X25i_X2C_X22passcode_X22_X3A_X25i_X2C_X22ipv4only_X22_X3A_X25s_X2C_X22disable_bridge_mode_X22_X3A_X25s_X2C_X22nextep_X22_X3A_X25i), - /* K3 */ be_nested_str_weak(root_discriminator), - /* K4 */ be_nested_str_weak(root_passcode), - /* K5 */ be_nested_str_weak(ipv4only), - /* K6 */ be_nested_str_weak(true), - /* K7 */ be_nested_str_weak(false), - /* K8 */ be_nested_str_weak(disable_bridge_mode), - /* K9 */ be_nested_str_weak(next_ep), - /* K10 */ be_nested_str_weak(debug), - /* K11 */ be_nested_str_weak(_X2C_X22debug_X22_X3Atrue), - /* K12 */ be_nested_str_weak(plugins_persist), - /* K13 */ be_nested_str_weak(_X2C_X0A_X22config_X22_X3A), - /* K14 */ be_nested_str_weak(dump), - /* K15 */ be_nested_str_weak(plugins_config), - /* K16 */ be_nested_str_weak(plugins_config_remotes), - /* K17 */ be_const_int(0), - /* K18 */ be_nested_str_weak(_X2C_X0A_X22remotes_X22_X3A), - /* K19 */ be_nested_str_weak(_X7D), - /* K20 */ be_nested_str_weak(FILENAME), - /* K21 */ be_nested_str_weak(w), - /* K22 */ be_nested_str_weak(write), - /* K23 */ be_nested_str_weak(close), - /* K24 */ be_nested_str_weak(log), - /* K25 */ be_nested_str_weak(MTR_X3A_X20_X3DSaved_X20_X20_X20_X20_X20parameters_X25s), - /* K26 */ be_nested_str_weak(_X20and_X20configuration), - /* K27 */ be_nested_str_weak(), - /* K28 */ be_const_int(2), - /* K29 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Asave_X20Exception_X3A), - /* K30 */ be_nested_str_weak(_X7C), - }), - be_str_weak(save_param), - &be_const_str_solidified, - ( &(const binstruction[83]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x8C080101, // 0001 GETMET R2 R0 K1 - 0x7C080200, // 0002 CALL R2 1 - 0x60080018, // 0003 GETGBL R2 G24 - 0x580C0002, // 0004 LDCONST R3 K2 - 0x88100103, // 0005 GETMBR R4 R0 K3 - 0x88140104, // 0006 GETMBR R5 R0 K4 - 0x88180105, // 0007 GETMBR R6 R0 K5 - 0x781A0001, // 0008 JMPF R6 #000B - 0x58180006, // 0009 LDCONST R6 K6 - 0x70020000, // 000A JMP #000C - 0x58180007, // 000B LDCONST R6 K7 - 0x881C0108, // 000C GETMBR R7 R0 K8 - 0x781E0001, // 000D JMPF R7 #0010 - 0x581C0006, // 000E LDCONST R7 K6 - 0x70020000, // 000F JMP #0011 - 0x581C0007, // 0010 LDCONST R7 K7 - 0x88200109, // 0011 GETMBR R8 R0 K9 - 0x7C080C00, // 0012 CALL R2 6 - 0x880C010A, // 0013 GETMBR R3 R0 K10 - 0x780E0000, // 0014 JMPF R3 #0016 - 0x0008050B, // 0015 ADD R2 R2 K11 - 0x880C010C, // 0016 GETMBR R3 R0 K12 - 0x780E000E, // 0017 JMPF R3 #0027 - 0x0008050D, // 0018 ADD R2 R2 K13 - 0x8C0C030E, // 0019 GETMET R3 R1 K14 - 0x8814010F, // 001A GETMBR R5 R0 K15 - 0x7C0C0400, // 001B CALL R3 2 - 0x00080403, // 001C ADD R2 R2 R3 - 0x600C000C, // 001D GETGBL R3 G12 - 0x88100110, // 001E GETMBR R4 R0 K16 - 0x7C0C0200, // 001F CALL R3 1 - 0x240C0711, // 0020 GT R3 R3 K17 - 0x780E0004, // 0021 JMPF R3 #0027 - 0x00080512, // 0022 ADD R2 R2 K18 - 0x8C0C030E, // 0023 GETMET R3 R1 K14 - 0x88140110, // 0024 GETMBR R5 R0 K16 - 0x7C0C0400, // 0025 CALL R3 2 - 0x00080403, // 0026 ADD R2 R2 R3 - 0x00080513, // 0027 ADD R2 R2 K19 - 0xA8020017, // 0028 EXBLK 0 #0041 - 0x600C0011, // 0029 GETGBL R3 G17 - 0x88100114, // 002A GETMBR R4 R0 K20 - 0x58140015, // 002B LDCONST R5 K21 - 0x7C0C0400, // 002C CALL R3 2 - 0x8C100716, // 002D GETMET R4 R3 K22 - 0x5C180400, // 002E MOVE R6 R2 - 0x7C100400, // 002F CALL R4 2 - 0x8C100717, // 0030 GETMET R4 R3 K23 - 0x7C100200, // 0031 CALL R4 1 - 0xB8123000, // 0032 GETNGBL R4 K24 - 0x60140018, // 0033 GETGBL R5 G24 - 0x58180019, // 0034 LDCONST R6 K25 - 0x881C010C, // 0035 GETMBR R7 R0 K12 - 0x781E0001, // 0036 JMPF R7 #0039 - 0x581C001A, // 0037 LDCONST R7 K26 - 0x70020000, // 0038 JMP #003A - 0x581C001B, // 0039 LDCONST R7 K27 - 0x7C140400, // 003A CALL R5 2 - 0x5818001C, // 003B LDCONST R6 K28 - 0x7C100400, // 003C CALL R4 2 - 0xA8040001, // 003D EXBLK 1 1 - 0x80040400, // 003E RET 1 R2 - 0xA8040001, // 003F EXBLK 1 1 - 0x70020010, // 0040 JMP #0052 - 0xAC0C0002, // 0041 CATCH R3 0 2 - 0x7002000D, // 0042 JMP #0051 - 0xB8163000, // 0043 GETNGBL R5 K24 - 0x60180008, // 0044 GETGBL R6 G8 - 0x5C1C0600, // 0045 MOVE R7 R3 - 0x7C180200, // 0046 CALL R6 1 - 0x001A3A06, // 0047 ADD R6 K29 R6 - 0x00180D1E, // 0048 ADD R6 R6 K30 - 0x601C0008, // 0049 GETGBL R7 G8 - 0x5C200800, // 004A MOVE R8 R4 - 0x7C1C0200, // 004B CALL R7 1 - 0x00180C07, // 004C ADD R6 R6 R7 - 0x581C001C, // 004D LDCONST R7 K28 - 0x7C140400, // 004E CALL R5 2 - 0x80040400, // 004F RET 1 R2 - 0x70020000, // 0050 JMP #0052 - 0xB0080000, // 0051 RAISE 2 R0 R0 - 0x80000000, // 0052 RET 0 + ( &(const binstruction[14]) { /* code */ + 0x8C040100, // 0000 GETMET R1 R0 K0 + 0x580C0001, // 0001 LDCONST R3 K1 + 0x5412001C, // 0002 LDINT R4 29 + 0x58140002, // 0003 LDCONST R5 K2 + 0x50180000, // 0004 LDBOOL R6 0 0 + 0x7C040A00, // 0005 CALL R1 5 + 0x8C040100, // 0006 GETMET R1 R0 K0 + 0xB80E0600, // 0007 GETNGBL R3 K3 + 0x880C0704, // 0008 GETMBR R3 R3 K4 + 0x5412001C, // 0009 LDINT R4 29 + 0x58140002, // 000A LDCONST R5 K2 + 0x50180000, // 000B LDBOOL R6 0 0 + 0x7C040A00, // 000C CALL R1 5 + 0x80000000, // 000D RET 0 }) ) ); @@ -5706,33 +4253,487 @@ be_local_closure(class_Matter_Device_MtrUpdate, /* name */ /******************************************************************** -** Solidified function: get_plugin_remote_info +** Solidified function: start_operational_discovery_deferred ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_get_plugin_remote_info, /* name */ +be_local_closure(class_Matter_Device_start_operational_discovery_deferred, /* name */ be_nested_proto( 6, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 2]) { + be_nested_proto( + 3, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 2]) { /* upvals */ + be_local_const_upval(1, 0), + be_local_const_upval(1, 1), + }), + 0, /* has sup protos */ + NULL, + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(start_operational_discovery), + }), + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 5]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x68080001, // 0002 GETUPV R2 U1 + 0x7C000400, // 0003 CALL R0 2 + 0x80040000, // 0004 RET 1 R0 + }) + ), + &be_class_Matter_Device, + }), + 1, /* has constants */ + ( &(const bvalue[ 3]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota), + /* K1 */ be_nested_str_weak(set_timer), + /* K2 */ be_const_int(0), + }), + be_str_weak(start_operational_discovery_deferred), + &be_const_str_solidified, + ( &(const binstruction[ 7]) { /* code */ + 0xB80A0000, // 0000 GETNGBL R2 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x58100002, // 0002 LDCONST R4 K2 + 0x84140000, // 0003 CLOSURE R5 P0 + 0x7C080600, // 0004 CALL R2 3 + 0xA0000000, // 0005 CLOSE R0 + 0x80000000, // 0006 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: save_param +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_save_param, /* name */ + be_nested_proto( + 9, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[31]) { /* constants */ + /* K0 */ be_nested_str_weak(json), + /* K1 */ be_nested_str_weak(update_remotes_info), + /* K2 */ be_nested_str_weak(_X7B_X22distinguish_X22_X3A_X25i_X2C_X22passcode_X22_X3A_X25i_X2C_X22ipv4only_X22_X3A_X25s_X2C_X22disable_bridge_mode_X22_X3A_X25s_X2C_X22nextep_X22_X3A_X25i), + /* K3 */ be_nested_str_weak(root_discriminator), + /* K4 */ be_nested_str_weak(root_passcode), + /* K5 */ be_nested_str_weak(ipv4only), + /* K6 */ be_nested_str_weak(true), + /* K7 */ be_nested_str_weak(false), + /* K8 */ be_nested_str_weak(disable_bridge_mode), + /* K9 */ be_nested_str_weak(next_ep), + /* K10 */ be_nested_str_weak(debug), + /* K11 */ be_nested_str_weak(_X2C_X22debug_X22_X3Atrue), + /* K12 */ be_nested_str_weak(plugins_persist), + /* K13 */ be_nested_str_weak(_X2C_X0A_X22config_X22_X3A), + /* K14 */ be_nested_str_weak(dump), + /* K15 */ be_nested_str_weak(plugins_config), + /* K16 */ be_nested_str_weak(plugins_config_remotes), + /* K17 */ be_const_int(0), + /* K18 */ be_nested_str_weak(_X2C_X0A_X22remotes_X22_X3A), + /* K19 */ be_nested_str_weak(_X7D), + /* K20 */ be_nested_str_weak(FILENAME), + /* K21 */ be_nested_str_weak(w), + /* K22 */ be_nested_str_weak(write), + /* K23 */ be_nested_str_weak(close), + /* K24 */ be_nested_str_weak(log), + /* K25 */ be_nested_str_weak(MTR_X3A_X20_X3DSaved_X20_X20_X20_X20_X20parameters_X25s), + /* K26 */ be_nested_str_weak(_X20and_X20configuration), + /* K27 */ be_nested_str_weak(), + /* K28 */ be_const_int(2), + /* K29 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Asave_X20Exception_X3A), + /* K30 */ be_nested_str_weak(_X7C), + }), + be_str_weak(save_param), + &be_const_str_solidified, + ( &(const binstruction[83]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x8C080101, // 0001 GETMET R2 R0 K1 + 0x7C080200, // 0002 CALL R2 1 + 0x60080018, // 0003 GETGBL R2 G24 + 0x580C0002, // 0004 LDCONST R3 K2 + 0x88100103, // 0005 GETMBR R4 R0 K3 + 0x88140104, // 0006 GETMBR R5 R0 K4 + 0x88180105, // 0007 GETMBR R6 R0 K5 + 0x781A0001, // 0008 JMPF R6 #000B + 0x58180006, // 0009 LDCONST R6 K6 + 0x70020000, // 000A JMP #000C + 0x58180007, // 000B LDCONST R6 K7 + 0x881C0108, // 000C GETMBR R7 R0 K8 + 0x781E0001, // 000D JMPF R7 #0010 + 0x581C0006, // 000E LDCONST R7 K6 + 0x70020000, // 000F JMP #0011 + 0x581C0007, // 0010 LDCONST R7 K7 + 0x88200109, // 0011 GETMBR R8 R0 K9 + 0x7C080C00, // 0012 CALL R2 6 + 0x880C010A, // 0013 GETMBR R3 R0 K10 + 0x780E0000, // 0014 JMPF R3 #0016 + 0x0008050B, // 0015 ADD R2 R2 K11 + 0x880C010C, // 0016 GETMBR R3 R0 K12 + 0x780E000E, // 0017 JMPF R3 #0027 + 0x0008050D, // 0018 ADD R2 R2 K13 + 0x8C0C030E, // 0019 GETMET R3 R1 K14 + 0x8814010F, // 001A GETMBR R5 R0 K15 + 0x7C0C0400, // 001B CALL R3 2 + 0x00080403, // 001C ADD R2 R2 R3 + 0x600C000C, // 001D GETGBL R3 G12 + 0x88100110, // 001E GETMBR R4 R0 K16 + 0x7C0C0200, // 001F CALL R3 1 + 0x240C0711, // 0020 GT R3 R3 K17 + 0x780E0004, // 0021 JMPF R3 #0027 + 0x00080512, // 0022 ADD R2 R2 K18 + 0x8C0C030E, // 0023 GETMET R3 R1 K14 + 0x88140110, // 0024 GETMBR R5 R0 K16 + 0x7C0C0400, // 0025 CALL R3 2 + 0x00080403, // 0026 ADD R2 R2 R3 + 0x00080513, // 0027 ADD R2 R2 K19 + 0xA8020017, // 0028 EXBLK 0 #0041 + 0x600C0011, // 0029 GETGBL R3 G17 + 0x88100114, // 002A GETMBR R4 R0 K20 + 0x58140015, // 002B LDCONST R5 K21 + 0x7C0C0400, // 002C CALL R3 2 + 0x8C100716, // 002D GETMET R4 R3 K22 + 0x5C180400, // 002E MOVE R6 R2 + 0x7C100400, // 002F CALL R4 2 + 0x8C100717, // 0030 GETMET R4 R3 K23 + 0x7C100200, // 0031 CALL R4 1 + 0xB8123000, // 0032 GETNGBL R4 K24 + 0x60140018, // 0033 GETGBL R5 G24 + 0x58180019, // 0034 LDCONST R6 K25 + 0x881C010C, // 0035 GETMBR R7 R0 K12 + 0x781E0001, // 0036 JMPF R7 #0039 + 0x581C001A, // 0037 LDCONST R7 K26 + 0x70020000, // 0038 JMP #003A + 0x581C001B, // 0039 LDCONST R7 K27 + 0x7C140400, // 003A CALL R5 2 + 0x5818001C, // 003B LDCONST R6 K28 + 0x7C100400, // 003C CALL R4 2 + 0xA8040001, // 003D EXBLK 1 1 + 0x80040400, // 003E RET 1 R2 + 0xA8040001, // 003F EXBLK 1 1 + 0x70020010, // 0040 JMP #0052 + 0xAC0C0002, // 0041 CATCH R3 0 2 + 0x7002000D, // 0042 JMP #0051 + 0xB8163000, // 0043 GETNGBL R5 K24 + 0x60180008, // 0044 GETGBL R6 G8 + 0x5C1C0600, // 0045 MOVE R7 R3 + 0x7C180200, // 0046 CALL R6 1 + 0x001A3A06, // 0047 ADD R6 K29 R6 + 0x00180D1E, // 0048 ADD R6 R6 K30 + 0x601C0008, // 0049 GETGBL R7 G8 + 0x5C200800, // 004A MOVE R8 R4 + 0x7C1C0200, // 004B CALL R7 1 + 0x00180C07, // 004C ADD R6 R6 R7 + 0x581C001C, // 004D LDCONST R7 K28 + 0x7C140400, // 004E CALL R5 2 + 0x80040400, // 004F RET 1 R2 + 0x70020000, // 0050 JMP #0052 + 0xB0080000, // 0051 RAISE 2 R0 R0 + 0x80000000, // 0052 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: load_param +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_load_param, /* name */ + be_nested_proto( + 12, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[36]) { /* constants */ + /* K0 */ be_nested_str_weak(crypto), + /* K1 */ be_nested_str_weak(FILENAME), + /* K2 */ be_nested_str_weak(read), + /* K3 */ be_nested_str_weak(close), + /* K4 */ be_nested_str_weak(json), + /* K5 */ be_nested_str_weak(load), + /* K6 */ be_nested_str_weak(root_discriminator), + /* K7 */ be_nested_str_weak(find), + /* K8 */ be_nested_str_weak(distinguish), + /* K9 */ be_nested_str_weak(root_passcode), + /* K10 */ be_nested_str_weak(passcode), + /* K11 */ be_nested_str_weak(ipv4only), + /* K12 */ be_nested_str_weak(disable_bridge_mode), + /* K13 */ be_nested_str_weak(next_ep), + /* K14 */ be_nested_str_weak(nextep), + /* K15 */ be_nested_str_weak(plugins_config), + /* K16 */ be_nested_str_weak(config), + /* K17 */ be_nested_str_weak(debug), + /* K18 */ be_nested_str_weak(log), + /* K19 */ be_nested_str_weak(MTR_X3A_X20Load_config_X20_X3D_X20_X25s), + /* K20 */ be_const_int(3), + /* K21 */ be_nested_str_weak(adjust_next_ep), + /* K22 */ be_nested_str_weak(check_config_ep), + /* K23 */ be_nested_str_weak(plugins_persist), + /* K24 */ be_nested_str_weak(plugins_config_remotes), + /* K25 */ be_nested_str_weak(remotes), + /* K26 */ be_nested_str_weak(MTR_X3A_X20load_remotes_X20_X3D_X20), + /* K27 */ be_nested_str_weak(io_error), + /* K28 */ be_nested_str_weak(MTR_X3A_X20load_param_X20Exception_X3A), + /* K29 */ be_nested_str_weak(_X7C), + /* K30 */ be_const_int(2), + /* K31 */ be_nested_str_weak(random), + /* K32 */ be_nested_str_weak(get), + /* K33 */ be_const_int(0), + /* K34 */ be_nested_str_weak(generate_random_passcode), + /* K35 */ be_nested_str_weak(save_param), + }), + be_str_weak(load_param), + &be_const_str_solidified, + ( &(const binstruction[133]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x50080000, // 0001 LDBOOL R2 0 0 + 0xA8020054, // 0002 EXBLK 0 #0058 + 0x600C0011, // 0003 GETGBL R3 G17 + 0x88100101, // 0004 GETMBR R4 R0 K1 + 0x7C0C0200, // 0005 CALL R3 1 + 0x8C100702, // 0006 GETMET R4 R3 K2 + 0x7C100200, // 0007 CALL R4 1 + 0x8C140703, // 0008 GETMET R5 R3 K3 + 0x7C140200, // 0009 CALL R5 1 + 0xA4160800, // 000A IMPORT R5 K4 + 0x8C180B05, // 000B GETMET R6 R5 K5 + 0x5C200800, // 000C MOVE R8 R4 + 0x7C180400, // 000D CALL R6 2 + 0x8C1C0D07, // 000E GETMET R7 R6 K7 + 0x58240008, // 000F LDCONST R9 K8 + 0x88280106, // 0010 GETMBR R10 R0 K6 + 0x7C1C0600, // 0011 CALL R7 3 + 0x90020C07, // 0012 SETMBR R0 K6 R7 + 0x8C1C0D07, // 0013 GETMET R7 R6 K7 + 0x5824000A, // 0014 LDCONST R9 K10 + 0x88280109, // 0015 GETMBR R10 R0 K9 + 0x7C1C0600, // 0016 CALL R7 3 + 0x90021207, // 0017 SETMBR R0 K9 R7 + 0x601C0017, // 0018 GETGBL R7 G23 + 0x8C200D07, // 0019 GETMET R8 R6 K7 + 0x5828000B, // 001A LDCONST R10 K11 + 0x502C0000, // 001B LDBOOL R11 0 0 + 0x7C200600, // 001C CALL R8 3 + 0x7C1C0200, // 001D CALL R7 1 + 0x90021607, // 001E SETMBR R0 K11 R7 + 0x601C0017, // 001F GETGBL R7 G23 + 0x8C200D07, // 0020 GETMET R8 R6 K7 + 0x5828000C, // 0021 LDCONST R10 K12 + 0x502C0000, // 0022 LDBOOL R11 0 0 + 0x7C200600, // 0023 CALL R8 3 + 0x7C1C0200, // 0024 CALL R7 1 + 0x90021807, // 0025 SETMBR R0 K12 R7 + 0x8C1C0D07, // 0026 GETMET R7 R6 K7 + 0x5824000E, // 0027 LDCONST R9 K14 + 0x8828010D, // 0028 GETMBR R10 R0 K13 + 0x7C1C0600, // 0029 CALL R7 3 + 0x90021A07, // 002A SETMBR R0 K13 R7 + 0x8C1C0D07, // 002B GETMET R7 R6 K7 + 0x58240010, // 002C LDCONST R9 K16 + 0x7C1C0400, // 002D CALL R7 2 + 0x90021E07, // 002E SETMBR R0 K15 R7 + 0x601C0017, // 002F GETGBL R7 G23 + 0x8C200D07, // 0030 GETMET R8 R6 K7 + 0x58280011, // 0031 LDCONST R10 K17 + 0x7C200400, // 0032 CALL R8 2 + 0x7C1C0200, // 0033 CALL R7 1 + 0x90022207, // 0034 SETMBR R0 K17 R7 + 0x881C010F, // 0035 GETMBR R7 R0 K15 + 0x4C200000, // 0036 LDNIL R8 + 0x201C0E08, // 0037 NE R7 R7 R8 + 0x781E000D, // 0038 JMPF R7 #0047 + 0xB81E2400, // 0039 GETNGBL R7 K18 + 0x60200018, // 003A GETGBL R8 G24 + 0x58240013, // 003B LDCONST R9 K19 + 0x8828010F, // 003C GETMBR R10 R0 K15 + 0x7C200400, // 003D CALL R8 2 + 0x58240014, // 003E LDCONST R9 K20 + 0x7C1C0400, // 003F CALL R7 2 + 0x8C1C0115, // 0040 GETMET R7 R0 K21 + 0x7C1C0200, // 0041 CALL R7 1 + 0x8C1C0116, // 0042 GETMET R7 R0 K22 + 0x7C1C0200, // 0043 CALL R7 1 + 0x5C080E00, // 0044 MOVE R2 R7 + 0x501C0200, // 0045 LDBOOL R7 1 0 + 0x90022E07, // 0046 SETMBR R0 K23 R7 + 0x8C1C0D07, // 0047 GETMET R7 R6 K7 + 0x58240019, // 0048 LDCONST R9 K25 + 0x60280013, // 0049 GETGBL R10 G19 + 0x7C280000, // 004A CALL R10 0 + 0x7C1C0600, // 004B CALL R7 3 + 0x90023007, // 004C SETMBR R0 K24 R7 + 0x881C0118, // 004D GETMBR R7 R0 K24 + 0x781E0006, // 004E JMPF R7 #0056 + 0xB81E2400, // 004F GETNGBL R7 K18 + 0x60200008, // 0050 GETGBL R8 G8 + 0x88240118, // 0051 GETMBR R9 R0 K24 + 0x7C200200, // 0052 CALL R8 1 + 0x00223408, // 0053 ADD R8 K26 R8 + 0x58240014, // 0054 LDCONST R9 K20 + 0x7C1C0400, // 0055 CALL R7 2 + 0xA8040001, // 0056 EXBLK 1 1 + 0x70020011, // 0057 JMP #006A + 0xAC0C0002, // 0058 CATCH R3 0 2 + 0x7002000E, // 0059 JMP #0069 + 0x2014071B, // 005A NE R5 R3 K27 + 0x7816000B, // 005B JMPF R5 #0068 + 0xB8162400, // 005C GETNGBL R5 K18 + 0x60180008, // 005D GETGBL R6 G8 + 0x5C1C0600, // 005E MOVE R7 R3 + 0x7C180200, // 005F CALL R6 1 + 0x001A3806, // 0060 ADD R6 K28 R6 + 0x00180D1D, // 0061 ADD R6 R6 K29 + 0x601C0008, // 0062 GETGBL R7 G8 + 0x5C200800, // 0063 MOVE R8 R4 + 0x7C1C0200, // 0064 CALL R7 1 + 0x00180C07, // 0065 ADD R6 R6 R7 + 0x581C001E, // 0066 LDCONST R7 K30 + 0x7C140400, // 0067 CALL R5 2 + 0x70020000, // 0068 JMP #006A + 0xB0080000, // 0069 RAISE 2 R0 R0 + 0x880C0106, // 006A GETMBR R3 R0 K6 + 0x4C100000, // 006B LDNIL R4 + 0x1C0C0604, // 006C EQ R3 R3 R4 + 0x780E000A, // 006D JMPF R3 #0079 + 0x8C0C031F, // 006E GETMET R3 R1 K31 + 0x5814001E, // 006F LDCONST R5 K30 + 0x7C0C0400, // 0070 CALL R3 2 + 0x8C0C0720, // 0071 GETMET R3 R3 K32 + 0x58140021, // 0072 LDCONST R5 K33 + 0x5818001E, // 0073 LDCONST R6 K30 + 0x7C0C0600, // 0074 CALL R3 3 + 0x54120FFE, // 0075 LDINT R4 4095 + 0x2C0C0604, // 0076 AND R3 R3 R4 + 0x90020C03, // 0077 SETMBR R0 K6 R3 + 0x50080200, // 0078 LDBOOL R2 1 0 + 0x880C0109, // 0079 GETMBR R3 R0 K9 + 0x4C100000, // 007A LDNIL R4 + 0x1C0C0604, // 007B EQ R3 R3 R4 + 0x780E0003, // 007C JMPF R3 #0081 + 0x8C0C0122, // 007D GETMET R3 R0 K34 + 0x7C0C0200, // 007E CALL R3 1 + 0x90021203, // 007F SETMBR R0 K9 R3 + 0x50080200, // 0080 LDBOOL R2 1 0 + 0x780A0001, // 0081 JMPF R2 #0084 + 0x8C0C0123, // 0082 GETMET R3 R0 K35 + 0x7C0C0200, // 0083 CALL R3 1 + 0x80000000, // 0084 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: compute_manual_pairing_code +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_compute_manual_pairing_code, /* name */ + be_nested_proto( + 9, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 6]) { /* constants */ + /* K0 */ be_nested_str_weak(root_discriminator), + /* K1 */ be_nested_str_weak(root_passcode), + /* K2 */ be_nested_str_weak(_X251i_X2505i_X2504i), + /* K3 */ be_nested_str_weak(matter), + /* K4 */ be_nested_str_weak(Verhoeff), + /* K5 */ be_nested_str_weak(checksum), + }), + be_str_weak(compute_manual_pairing_code), + &be_const_str_solidified, + ( &(const binstruction[30]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x540A0FFE, // 0001 LDINT R2 4095 + 0x2C040202, // 0002 AND R1 R1 R2 + 0x540A0009, // 0003 LDINT R2 10 + 0x3C040202, // 0004 SHR R1 R1 R2 + 0x88080100, // 0005 GETMBR R2 R0 K0 + 0x540E02FF, // 0006 LDINT R3 768 + 0x2C080403, // 0007 AND R2 R2 R3 + 0x540E0005, // 0008 LDINT R3 6 + 0x38080403, // 0009 SHL R2 R2 R3 + 0x880C0101, // 000A GETMBR R3 R0 K1 + 0x54123FFE, // 000B LDINT R4 16383 + 0x2C0C0604, // 000C AND R3 R3 R4 + 0x30080403, // 000D OR R2 R2 R3 + 0x880C0101, // 000E GETMBR R3 R0 K1 + 0x5412000D, // 000F LDINT R4 14 + 0x3C0C0604, // 0010 SHR R3 R3 R4 + 0x60100018, // 0011 GETGBL R4 G24 + 0x58140002, // 0012 LDCONST R5 K2 + 0x5C180200, // 0013 MOVE R6 R1 + 0x5C1C0400, // 0014 MOVE R7 R2 + 0x5C200600, // 0015 MOVE R8 R3 + 0x7C100800, // 0016 CALL R4 4 + 0xB8160600, // 0017 GETNGBL R5 K3 + 0x88140B04, // 0018 GETMBR R5 R5 K4 + 0x8C140B05, // 0019 GETMET R5 R5 K5 + 0x5C1C0800, // 001A MOVE R7 R4 + 0x7C140400, // 001B CALL R5 2 + 0x00100805, // 001C ADD R4 R4 R5 + 0x80040800, // 001D RET 1 R4 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: msg_send +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_msg_send, /* name */ + be_nested_proto( + 5, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(plugins_config_remotes), - /* K1 */ be_nested_str_weak(find), + /* K0 */ be_nested_str_weak(udp_server), + /* K1 */ be_nested_str_weak(send_UDP), }), - be_str_weak(get_plugin_remote_info), + be_str_weak(msg_send), &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ + ( &(const binstruction[ 5]) { /* code */ 0x88080100, // 0000 GETMBR R2 R0 K0 0x8C080501, // 0001 GETMET R2 R2 K1 0x5C100200, // 0002 MOVE R4 R1 - 0x60140013, // 0003 GETGBL R5 G19 - 0x7C140000, // 0004 CALL R5 0 - 0x7C080600, // 0005 CALL R2 3 - 0x80040400, // 0006 RET 1 R2 + 0x7C080400, // 0003 CALL R2 2 + 0x80040400, // 0004 RET 1 R2 }) ) ); @@ -5740,10 +4741,184 @@ be_local_closure(class_Matter_Device_get_plugin_remote_info, /* name */ /******************************************************************** -** Solidified function: clean_remotes +** Solidified function: button_pressed ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_clean_remotes, /* name */ +be_local_closure(class_Matter_Device_button_pressed, /* name */ + be_nested_proto( + 13, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 3]) { /* constants */ + /* K0 */ be_nested_str_weak(button_handler), + /* K1 */ be_const_int(1), + /* K2 */ be_const_int(0), + }), + be_str_weak(button_pressed), + &be_const_str_solidified, + ( &(const binstruction[28]) { /* code */ + 0x540E000F, // 0000 LDINT R3 16 + 0x3C0C0403, // 0001 SHR R3 R2 R3 + 0x541200FE, // 0002 LDINT R4 255 + 0x2C0C0604, // 0003 AND R3 R3 R4 + 0x54120007, // 0004 LDINT R4 8 + 0x3C100404, // 0005 SHR R4 R2 R4 + 0x541600FE, // 0006 LDINT R5 255 + 0x2C100805, // 0007 AND R4 R4 R5 + 0x541600FE, // 0008 LDINT R5 255 + 0x2C140405, // 0009 AND R5 R2 R5 + 0x541A0017, // 000A LDINT R6 24 + 0x3C180406, // 000B SHR R6 R2 R6 + 0x541E00FE, // 000C LDINT R7 255 + 0x2C180C07, // 000D AND R6 R6 R7 + 0x8C1C0100, // 000E GETMET R7 R0 K0 + 0x00240B01, // 000F ADD R9 R5 K1 + 0x20280604, // 0010 NE R10 R3 R4 + 0x782A0001, // 0011 JMPF R10 #0014 + 0x58280001, // 0012 LDCONST R10 K1 + 0x70020000, // 0013 JMP #0015 + 0x58280002, // 0014 LDCONST R10 K2 + 0x780E0001, // 0015 JMPF R3 #0018 + 0x582C0002, // 0016 LDCONST R11 K2 + 0x70020000, // 0017 JMP #0019 + 0x582C0001, // 0018 LDCONST R11 K1 + 0x5C300C00, // 0019 MOVE R12 R6 + 0x7C1C0A00, // 001A CALL R7 5 + 0x80000000, // 001B RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: start +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_start, /* name */ + be_nested_proto( + 4, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(started), + /* K1 */ be_nested_str_weak(autoconf_device), + /* K2 */ be_nested_str_weak(_start_udp), + /* K3 */ be_nested_str_weak(UDP_PORT), + /* K4 */ be_nested_str_weak(start_mdns_announce_hostnames), + }), + be_str_weak(start), + &be_const_str_solidified, + ( &(const binstruction[13]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x78060000, // 0001 JMPF R1 #0003 + 0x80000200, // 0002 RET 0 + 0x8C040101, // 0003 GETMET R1 R0 K1 + 0x7C040200, // 0004 CALL R1 1 + 0x8C040102, // 0005 GETMET R1 R0 K2 + 0x880C0103, // 0006 GETMBR R3 R0 K3 + 0x7C040400, // 0007 CALL R1 2 + 0x8C040104, // 0008 GETMET R1 R0 K4 + 0x7C040200, // 0009 CALL R1 1 + 0x50040200, // 000A LDBOOL R1 1 0 + 0x90020001, // 000B SETMBR R0 K0 R1 + 0x80000000, // 000C RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: register_http_remote +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_register_http_remote, /* name */ + be_nested_proto( + 9, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 8]) { /* constants */ + /* K0 */ be_nested_str_weak(http_remotes), + /* K1 */ be_nested_str_weak(contains), + /* K2 */ be_nested_str_weak(get_timeout), + /* K3 */ be_nested_str_weak(set_timeout), + /* K4 */ be_nested_str_weak(matter), + /* K5 */ be_nested_str_weak(HTTP_remote), + /* K6 */ be_nested_str_weak(plugins_config_remotes), + /* K7 */ be_nested_str_weak(set_info), + }), + be_str_weak(register_http_remote), + &be_const_str_solidified, + ( &(const binstruction[42]) { /* code */ + 0x880C0100, // 0000 GETMBR R3 R0 K0 + 0x4C100000, // 0001 LDNIL R4 + 0x1C0C0604, // 0002 EQ R3 R3 R4 + 0x780E0002, // 0003 JMPF R3 #0007 + 0x600C0013, // 0004 GETGBL R3 G19 + 0x7C0C0000, // 0005 CALL R3 0 + 0x90020003, // 0006 SETMBR R0 K0 R3 + 0x4C0C0000, // 0007 LDNIL R3 + 0x88100100, // 0008 GETMBR R4 R0 K0 + 0x8C100901, // 0009 GETMET R4 R4 K1 + 0x5C180200, // 000A MOVE R6 R1 + 0x7C100400, // 000B CALL R4 2 + 0x78120009, // 000C JMPF R4 #0017 + 0x88100100, // 000D GETMBR R4 R0 K0 + 0x940C0801, // 000E GETIDX R3 R4 R1 + 0x8C140702, // 000F GETMET R5 R3 K2 + 0x7C140200, // 0010 CALL R5 1 + 0x14140405, // 0011 LT R5 R2 R5 + 0x78160002, // 0012 JMPF R5 #0016 + 0x8C140703, // 0013 GETMET R5 R3 K3 + 0x5C1C0400, // 0014 MOVE R7 R2 + 0x7C140400, // 0015 CALL R5 2 + 0x70020011, // 0016 JMP #0029 + 0xB8120800, // 0017 GETNGBL R4 K4 + 0x8C100905, // 0018 GETMET R4 R4 K5 + 0x5C180000, // 0019 MOVE R6 R0 + 0x5C1C0200, // 001A MOVE R7 R1 + 0x5C200400, // 001B MOVE R8 R2 + 0x7C100800, // 001C CALL R4 4 + 0x5C0C0800, // 001D MOVE R3 R4 + 0x88100106, // 001E GETMBR R4 R0 K6 + 0x8C100901, // 001F GETMET R4 R4 K1 + 0x5C180200, // 0020 MOVE R6 R1 + 0x7C100400, // 0021 CALL R4 2 + 0x78120003, // 0022 JMPF R4 #0027 + 0x8C100707, // 0023 GETMET R4 R3 K7 + 0x88180106, // 0024 GETMBR R6 R0 K6 + 0x94180C01, // 0025 GETIDX R6 R6 R1 + 0x7C100400, // 0026 CALL R4 2 + 0x88100100, // 0027 GETMBR R4 R0 K0 + 0x98100203, // 0028 SETIDX R4 R1 R3 + 0x80040600, // 0029 RET 1 R3 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: check_config_ep +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_check_config_ep, /* name */ be_nested_proto( 10, /* nstack */ 1, /* argc */ @@ -5753,108 +4928,102 @@ be_local_closure(class_Matter_Device_clean_remotes, /* name */ 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ - ( &(const bvalue[17]) { /* constants */ - /* K0 */ be_nested_str_weak(introspect), - /* K1 */ be_nested_str_weak(http_remotes), - /* K2 */ be_const_int(0), + ( &(const bvalue[14]) { /* constants */ + /* K0 */ be_nested_str_weak(plugins_config), + /* K1 */ be_nested_str_weak(keys), + /* K2 */ be_nested_str_weak(push), /* K3 */ be_nested_str_weak(stop_iteration), - /* K4 */ be_nested_str_weak(plugins), - /* K5 */ be_nested_str_weak(get), - /* K6 */ be_nested_str_weak(http_remote), - /* K7 */ be_nested_str_weak(find), - /* K8 */ be_const_int(1), - /* K9 */ be_nested_str_weak(keys), - /* K10 */ be_nested_str_weak(push), - /* K11 */ be_nested_str_weak(log), - /* K12 */ be_nested_str_weak(MTR_X3A_X20remove_X20unused_X20remote_X3A_X20), - /* K13 */ be_nested_str_weak(addr), - /* K14 */ be_const_int(3), - /* K15 */ be_nested_str_weak(close), - /* K16 */ be_nested_str_weak(remove), + /* K4 */ be_const_int(0), + /* K5 */ be_nested_str_weak(log), + /* K6 */ be_nested_str_weak(MTR_X3A_X20invalid_X20entry_X20with_X20ep_X20_X270_X27), + /* K7 */ be_const_int(2), + /* K8 */ be_nested_str_weak(remove), + /* K9 */ be_nested_str_weak(matter), + /* K10 */ be_nested_str_weak(AGGREGATOR_ENDPOINT), + /* K11 */ be_nested_str_weak(MTR_X3A_X20endpoint_X20_X25s_X20collides_X20wit_X20aggregator_X2C_X20relocating_X20to_X20_X25s), + /* K12 */ be_nested_str_weak(next_ep), + /* K13 */ be_const_int(1), }), - be_str_weak(clean_remotes), + be_str_weak(check_config_ep), &be_const_str_solidified, - ( &(const binstruction[80]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x88080101, // 0001 GETMBR R2 R0 K1 - 0x780A004B, // 0002 JMPF R2 #004F - 0x60080013, // 0003 GETGBL R2 G19 - 0x7C080000, // 0004 CALL R2 0 - 0x600C0010, // 0005 GETGBL R3 G16 - 0x88100101, // 0006 GETMBR R4 R0 K1 + ( &(const binstruction[77]) { /* code */ + 0x50040000, // 0000 LDBOOL R1 0 0 + 0x60080012, // 0001 GETGBL R2 G18 + 0x7C080000, // 0002 CALL R2 0 + 0x600C0010, // 0003 GETGBL R3 G16 + 0x88100100, // 0004 GETMBR R4 R0 K0 + 0x8C100901, // 0005 GETMET R4 R4 K1 + 0x7C100200, // 0006 CALL R4 1 0x7C0C0200, // 0007 CALL R3 1 - 0xA8020003, // 0008 EXBLK 0 #000D + 0xA8020007, // 0008 EXBLK 0 #0011 0x5C100600, // 0009 MOVE R4 R3 0x7C100000, // 000A CALL R4 0 - 0x98080902, // 000B SETIDX R2 R4 K2 - 0x7001FFFB, // 000C JMP #0009 - 0x580C0003, // 000D LDCONST R3 K3 - 0xAC0C0200, // 000E CATCH R3 1 0 - 0xB0080000, // 000F RAISE 2 R0 R0 - 0x600C0010, // 0010 GETGBL R3 G16 - 0x88100104, // 0011 GETMBR R4 R0 K4 - 0x7C0C0200, // 0012 CALL R3 1 - 0xA802000F, // 0013 EXBLK 0 #0024 - 0x5C100600, // 0014 MOVE R4 R3 - 0x7C100000, // 0015 CALL R4 0 - 0x8C140305, // 0016 GETMET R5 R1 K5 - 0x5C1C0800, // 0017 MOVE R7 R4 - 0x58200006, // 0018 LDCONST R8 K6 - 0x7C140600, // 0019 CALL R5 3 - 0x4C180000, // 001A LDNIL R6 - 0x20180A06, // 001B NE R6 R5 R6 - 0x781A0005, // 001C JMPF R6 #0023 - 0x8C180507, // 001D GETMET R6 R2 K7 - 0x5C200A00, // 001E MOVE R8 R5 - 0x58240002, // 001F LDCONST R9 K2 - 0x7C180600, // 0020 CALL R6 3 - 0x00180D08, // 0021 ADD R6 R6 K8 - 0x98080A06, // 0022 SETIDX R2 R5 R6 - 0x7001FFEF, // 0023 JMP #0014 - 0x580C0003, // 0024 LDCONST R3 K3 - 0xAC0C0200, // 0025 CATCH R3 1 0 - 0xB0080000, // 0026 RAISE 2 R0 R0 - 0x600C0012, // 0027 GETGBL R3 G18 - 0x7C0C0000, // 0028 CALL R3 0 - 0x60100010, // 0029 GETGBL R4 G16 - 0x8C140509, // 002A GETMET R5 R2 K9 - 0x7C140200, // 002B CALL R5 1 - 0x7C100200, // 002C CALL R4 1 - 0xA8020008, // 002D EXBLK 0 #0037 - 0x5C140800, // 002E MOVE R5 R4 - 0x7C140000, // 002F CALL R5 0 - 0x94180405, // 0030 GETIDX R6 R2 R5 - 0x1C180D02, // 0031 EQ R6 R6 K2 - 0x781A0002, // 0032 JMPF R6 #0036 - 0x8C18070A, // 0033 GETMET R6 R3 K10 - 0x5C200A00, // 0034 MOVE R8 R5 - 0x7C180400, // 0035 CALL R6 2 - 0x7001FFF6, // 0036 JMP #002E - 0x58100003, // 0037 LDCONST R4 K3 - 0xAC100200, // 0038 CATCH R4 1 0 - 0xB0080000, // 0039 RAISE 2 R0 R0 - 0x60100010, // 003A GETGBL R4 G16 - 0x5C140600, // 003B MOVE R5 R3 - 0x7C100200, // 003C CALL R4 1 - 0xA802000D, // 003D EXBLK 0 #004C - 0x5C140800, // 003E MOVE R5 R4 - 0x7C140000, // 003F CALL R5 0 - 0xB81A1600, // 0040 GETNGBL R6 K11 - 0x881C0B0D, // 0041 GETMBR R7 R5 K13 - 0x001E1807, // 0042 ADD R7 K12 R7 - 0x5820000E, // 0043 LDCONST R8 K14 - 0x7C180400, // 0044 CALL R6 2 - 0x8C180B0F, // 0045 GETMET R6 R5 K15 - 0x7C180200, // 0046 CALL R6 1 - 0x88180101, // 0047 GETMBR R6 R0 K1 - 0x8C180D10, // 0048 GETMET R6 R6 K16 - 0x88200B0D, // 0049 GETMBR R8 R5 K13 - 0x7C180400, // 004A CALL R6 2 - 0x7001FFF1, // 004B JMP #003E - 0x58100003, // 004C LDCONST R4 K3 - 0xAC100200, // 004D CATCH R4 1 0 - 0xB0080000, // 004E RAISE 2 R0 R0 - 0x80000000, // 004F RET 0 + 0x8C140502, // 000B GETMET R5 R2 K2 + 0x601C0009, // 000C GETGBL R7 G9 + 0x5C200800, // 000D MOVE R8 R4 + 0x7C1C0200, // 000E CALL R7 1 + 0x7C140400, // 000F CALL R5 2 + 0x7001FFF7, // 0010 JMP #0009 + 0x580C0003, // 0011 LDCONST R3 K3 + 0xAC0C0200, // 0012 CATCH R3 1 0 + 0xB0080000, // 0013 RAISE 2 R0 R0 + 0x600C0010, // 0014 GETGBL R3 G16 + 0x5C100400, // 0015 MOVE R4 R2 + 0x7C0C0200, // 0016 CALL R3 1 + 0xA8020030, // 0017 EXBLK 0 #0049 + 0x5C100600, // 0018 MOVE R4 R3 + 0x7C100000, // 0019 CALL R4 0 + 0x1C140904, // 001A EQ R5 R4 K4 + 0x7816000B, // 001B JMPF R5 #0028 + 0xB8160A00, // 001C GETNGBL R5 K5 + 0x58180006, // 001D LDCONST R6 K6 + 0x581C0007, // 001E LDCONST R7 K7 + 0x7C140400, // 001F CALL R5 2 + 0x88140100, // 0020 GETMBR R5 R0 K0 + 0x8C140B08, // 0021 GETMET R5 R5 K8 + 0x601C0008, // 0022 GETGBL R7 G8 + 0x5C200800, // 0023 MOVE R8 R4 + 0x7C1C0200, // 0024 CALL R7 1 + 0x7C140400, // 0025 CALL R5 2 + 0x50040200, // 0026 LDBOOL R1 1 0 + 0x7002001F, // 0027 JMP #0048 + 0xB8161200, // 0028 GETNGBL R5 K9 + 0x88140B0A, // 0029 GETMBR R5 R5 K10 + 0x1C140805, // 002A EQ R5 R4 R5 + 0x7816001B, // 002B JMPF R5 #0048 + 0x50040200, // 002C LDBOOL R1 1 0 + 0xB8160A00, // 002D GETNGBL R5 K5 + 0x60180018, // 002E GETGBL R6 G24 + 0x581C000B, // 002F LDCONST R7 K11 + 0x5C200800, // 0030 MOVE R8 R4 + 0x8824010C, // 0031 GETMBR R9 R0 K12 + 0x7C180600, // 0032 CALL R6 3 + 0x581C0007, // 0033 LDCONST R7 K7 + 0x7C140400, // 0034 CALL R5 2 + 0x60140008, // 0035 GETGBL R5 G8 + 0x8818010C, // 0036 GETMBR R6 R0 K12 + 0x7C140200, // 0037 CALL R5 1 + 0x88180100, // 0038 GETMBR R6 R0 K0 + 0x601C0008, // 0039 GETGBL R7 G8 + 0x5C200800, // 003A MOVE R8 R4 + 0x7C1C0200, // 003B CALL R7 1 + 0x88200100, // 003C GETMBR R8 R0 K0 + 0x941C1007, // 003D GETIDX R7 R8 R7 + 0x98180A07, // 003E SETIDX R6 R5 R7 + 0x88140100, // 003F GETMBR R5 R0 K0 + 0x8C140B08, // 0040 GETMET R5 R5 K8 + 0x601C0008, // 0041 GETGBL R7 G8 + 0x5C200800, // 0042 MOVE R8 R4 + 0x7C1C0200, // 0043 CALL R7 1 + 0x7C140400, // 0044 CALL R5 2 + 0x8814010C, // 0045 GETMBR R5 R0 K12 + 0x00140B0D, // 0046 ADD R5 R5 K13 + 0x90021805, // 0047 SETMBR R0 K12 R5 + 0x7001FFCE, // 0048 JMP #0018 + 0x580C0003, // 0049 LDCONST R3 K3 + 0xAC0C0200, // 004A CATCH R3 1 0 + 0xB0080000, // 004B RAISE 2 R0 R0 + 0x80040200, // 004C RET 1 R1 }) ) ); @@ -5862,13 +5031,318 @@ be_local_closure(class_Matter_Device_clean_remotes, /* name */ /******************************************************************** -** Solidified function: msg_received +** Solidified function: mdns_remove_op_discovery_all_fabrics ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_msg_received, /* name */ +be_local_closure(class_Matter_Device_mdns_remove_op_discovery_all_fabrics, /* name */ + be_nested_proto( + 6, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 6]) { /* constants */ + /* K0 */ be_nested_str_weak(sessions), + /* K1 */ be_nested_str_weak(active_fabrics), + /* K2 */ be_nested_str_weak(get_device_id), + /* K3 */ be_nested_str_weak(get_fabric_id), + /* K4 */ be_nested_str_weak(mdns_remove_op_discovery), + /* K5 */ be_nested_str_weak(stop_iteration), + }), + be_str_weak(mdns_remove_op_discovery_all_fabrics), + &be_const_str_solidified, + ( &(const binstruction[22]) { /* code */ + 0x60040010, // 0000 GETGBL R1 G16 + 0x88080100, // 0001 GETMBR R2 R0 K0 + 0x8C080501, // 0002 GETMET R2 R2 K1 + 0x7C080200, // 0003 CALL R2 1 + 0x7C040200, // 0004 CALL R1 1 + 0xA802000B, // 0005 EXBLK 0 #0012 + 0x5C080200, // 0006 MOVE R2 R1 + 0x7C080000, // 0007 CALL R2 0 + 0x8C0C0502, // 0008 GETMET R3 R2 K2 + 0x7C0C0200, // 0009 CALL R3 1 + 0x780E0005, // 000A JMPF R3 #0011 + 0x8C0C0503, // 000B GETMET R3 R2 K3 + 0x7C0C0200, // 000C CALL R3 1 + 0x780E0002, // 000D JMPF R3 #0011 + 0x8C0C0104, // 000E GETMET R3 R0 K4 + 0x5C140400, // 000F MOVE R5 R2 + 0x7C0C0400, // 0010 CALL R3 2 + 0x7001FFF3, // 0011 JMP #0006 + 0x58040005, // 0012 LDCONST R1 K5 + 0xAC040200, // 0013 CATCH R1 1 0 + 0xB0080000, // 0014 RAISE 2 R0 R0 + 0x80000000, // 0015 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: mdns_announce_op_discovery_all_fabrics +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_mdns_announce_op_discovery_all_fabrics, /* name */ + be_nested_proto( + 6, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 6]) { /* constants */ + /* K0 */ be_nested_str_weak(sessions), + /* K1 */ be_nested_str_weak(active_fabrics), + /* K2 */ be_nested_str_weak(get_device_id), + /* K3 */ be_nested_str_weak(get_fabric_id), + /* K4 */ be_nested_str_weak(mdns_announce_op_discovery), + /* K5 */ be_nested_str_weak(stop_iteration), + }), + be_str_weak(mdns_announce_op_discovery_all_fabrics), + &be_const_str_solidified, + ( &(const binstruction[22]) { /* code */ + 0x60040010, // 0000 GETGBL R1 G16 + 0x88080100, // 0001 GETMBR R2 R0 K0 + 0x8C080501, // 0002 GETMET R2 R2 K1 + 0x7C080200, // 0003 CALL R2 1 + 0x7C040200, // 0004 CALL R1 1 + 0xA802000B, // 0005 EXBLK 0 #0012 + 0x5C080200, // 0006 MOVE R2 R1 + 0x7C080000, // 0007 CALL R2 0 + 0x8C0C0502, // 0008 GETMET R3 R2 K2 + 0x7C0C0200, // 0009 CALL R3 1 + 0x780E0005, // 000A JMPF R3 #0011 + 0x8C0C0503, // 000B GETMET R3 R2 K3 + 0x7C0C0200, // 000C CALL R3 1 + 0x780E0002, // 000D JMPF R3 #0011 + 0x8C0C0104, // 000E GETMET R3 R0 K4 + 0x5C140400, // 000F MOVE R5 R2 + 0x7C0C0400, // 0010 CALL R3 2 + 0x7001FFF3, // 0011 JMP #0006 + 0x58040005, // 0012 LDCONST R1 K5 + 0xAC040200, // 0013 CATCH R1 1 0 + 0xB0080000, // 0014 RAISE 2 R0 R0 + 0x80000000, // 0015 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: generate_random_passcode +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_generate_random_passcode, /* name */ + be_nested_proto( + 7, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 8]) { /* constants */ + /* K0 */ be_nested_str_weak(crypto), + /* K1 */ be_nested_str_weak(random), + /* K2 */ be_nested_str_weak(get), + /* K3 */ be_const_int(0), + /* K4 */ be_const_int(134217727), + /* K5 */ be_const_int(99999998), + /* K6 */ be_nested_str_weak(PASSCODE_INVALID), + /* K7 */ be_nested_str_weak(stop_iteration), + }), + be_str_weak(generate_random_passcode), + &be_const_str_solidified, + ( &(const binstruction[35]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x4C080000, // 0001 LDNIL R2 + 0x500C0200, // 0002 LDBOOL R3 1 0 + 0x780E001D, // 0003 JMPF R3 #0022 + 0x8C0C0301, // 0004 GETMET R3 R1 K1 + 0x54160003, // 0005 LDINT R5 4 + 0x7C0C0400, // 0006 CALL R3 2 + 0x8C0C0702, // 0007 GETMET R3 R3 K2 + 0x58140003, // 0008 LDCONST R5 K3 + 0x541A0003, // 0009 LDINT R6 4 + 0x7C0C0600, // 000A CALL R3 3 + 0x2C0C0704, // 000B AND R3 R3 K4 + 0x5C080600, // 000C MOVE R2 R3 + 0x240C0505, // 000D GT R3 R2 K5 + 0x780E0000, // 000E JMPF R3 #0010 + 0x7001FFF1, // 000F JMP #0002 + 0x600C0010, // 0010 GETGBL R3 G16 + 0x88100106, // 0011 GETMBR R4 R0 K6 + 0x7C0C0200, // 0012 CALL R3 1 + 0xA8020005, // 0013 EXBLK 0 #001A + 0x5C100600, // 0014 MOVE R4 R3 + 0x7C100000, // 0015 CALL R4 0 + 0x1C140404, // 0016 EQ R5 R2 R4 + 0x78160000, // 0017 JMPF R5 #0019 + 0x4C080000, // 0018 LDNIL R2 + 0x7001FFF9, // 0019 JMP #0014 + 0x580C0007, // 001A LDCONST R3 K7 + 0xAC0C0200, // 001B CATCH R3 1 0 + 0xB0080000, // 001C RAISE 2 R0 R0 + 0x4C0C0000, // 001D LDNIL R3 + 0x200C0403, // 001E NE R3 R2 R3 + 0x780E0000, // 001F JMPF R3 #0021 + 0x80040400, // 0020 RET 1 R2 + 0x7001FFDF, // 0021 JMP #0002 + 0x80000000, // 0022 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: is_commissioning_open +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_is_commissioning_open, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(commissioning_open), + }), + be_str_weak(is_commissioning_open), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x4C080000, // 0001 LDNIL R2 + 0x20040202, // 0002 NE R1 R1 R2 + 0x80040200, // 0003 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: find_plugin_by_endpoint +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_find_plugin_by_endpoint, /* name */ + be_nested_proto( + 6, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_const_int(0), + /* K1 */ be_nested_str_weak(plugins), + /* K2 */ be_nested_str_weak(get_endpoint), + /* K3 */ be_const_int(1), + }), + be_str_weak(find_plugin_by_endpoint), + &be_const_str_solidified, + ( &(const binstruction[17]) { /* code */ + 0x58080000, // 0000 LDCONST R2 K0 + 0x600C000C, // 0001 GETGBL R3 G12 + 0x88100101, // 0002 GETMBR R4 R0 K1 + 0x7C0C0200, // 0003 CALL R3 1 + 0x140C0403, // 0004 LT R3 R2 R3 + 0x780E0008, // 0005 JMPF R3 #000F + 0x880C0101, // 0006 GETMBR R3 R0 K1 + 0x940C0602, // 0007 GETIDX R3 R3 R2 + 0x8C100702, // 0008 GETMET R4 R3 K2 + 0x7C100200, // 0009 CALL R4 1 + 0x1C100801, // 000A EQ R4 R4 R1 + 0x78120000, // 000B JMPF R4 #000D + 0x80040600, // 000C RET 1 R3 + 0x00080503, // 000D ADD R2 R2 K3 + 0x7001FFF1, // 000E JMP #0001 + 0x4C0C0000, // 000F LDNIL R3 + 0x80040600, // 0010 RET 1 R3 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: conf_to_log +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_conf_to_log, /* name */ be_nested_proto( 9, /* nstack */ - 4, /* argc */ + 1, /* argc */ + 4, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 6]) { /* constants */ + /* K0 */ be_const_class(be_class_Matter_Device), + /* K1 */ be_nested_str_weak(), + /* K2 */ be_nested_str_weak(k2l), + /* K3 */ be_nested_str_weak(type), + /* K4 */ be_nested_str_weak(_X20_X25s_X3A_X25s), + /* K5 */ be_nested_str_weak(stop_iteration), + }), + be_str_weak(conf_to_log), + &be_const_str_solidified, + ( &(const binstruction[24]) { /* code */ + 0x58040000, // 0000 LDCONST R1 K0 + 0x58080001, // 0001 LDCONST R2 K1 + 0x600C0010, // 0002 GETGBL R3 G16 + 0x8C100302, // 0003 GETMET R4 R1 K2 + 0x5C180000, // 0004 MOVE R6 R0 + 0x7C100400, // 0005 CALL R4 2 + 0x7C0C0200, // 0006 CALL R3 1 + 0xA802000B, // 0007 EXBLK 0 #0014 + 0x5C100600, // 0008 MOVE R4 R3 + 0x7C100000, // 0009 CALL R4 0 + 0x1C140903, // 000A EQ R5 R4 K3 + 0x78160000, // 000B JMPF R5 #000D + 0x7001FFFA, // 000C JMP #0008 + 0x60140018, // 000D GETGBL R5 G24 + 0x58180004, // 000E LDCONST R6 K4 + 0x5C1C0800, // 000F MOVE R7 R4 + 0x94200004, // 0010 GETIDX R8 R0 R4 + 0x7C140600, // 0011 CALL R5 3 + 0x00080405, // 0012 ADD R2 R2 R5 + 0x7001FFF3, // 0013 JMP #0008 + 0x580C0005, // 0014 LDCONST R3 K5 + 0xAC0C0200, // 0015 CATCH R3 1 0 + 0xB0080000, // 0016 RAISE 2 R0 R0 + 0x80040400, // 0017 RET 1 R2 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: received_ack +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_received_ack, /* name */ + be_nested_proto( + 5, /* nstack */ + 2, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ @@ -5876,19 +5350,17 @@ be_local_closure(class_Matter_Device_msg_received, /* name */ &be_class_Matter_Device, 1, /* has constants */ ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(message_handler), - /* K1 */ be_nested_str_weak(msg_received), + /* K0 */ be_nested_str_weak(udp_server), + /* K1 */ be_nested_str_weak(received_ack), }), - be_str_weak(msg_received), + be_str_weak(received_ack), &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x88100100, // 0000 GETMBR R4 R0 K0 - 0x8C100901, // 0001 GETMET R4 R4 K1 - 0x5C180200, // 0002 MOVE R6 R1 - 0x5C1C0400, // 0003 MOVE R7 R2 - 0x5C200600, // 0004 MOVE R8 R3 - 0x7C100800, // 0005 CALL R4 4 - 0x80040800, // 0006 RET 1 R4 + ( &(const binstruction[ 5]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x5C100200, // 0002 MOVE R4 R1 + 0x7C080400, // 0003 CALL R2 2 + 0x80040400, // 0004 RET 1 R2 }) ) ); @@ -5947,12 +5419,276 @@ be_local_closure(class_Matter_Device_MtrInfo_one, /* name */ /******************************************************************** -** Solidified function: start +** Solidified function: get_plugin_class_arg ********************************************************************/ extern const bclass be_class_Matter_Device; -be_local_closure(class_Matter_Device_start, /* name */ +be_local_closure(class_Matter_Device_get_plugin_class_arg, /* name */ be_nested_proto( - 4, /* nstack */ + 5, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(plugins_classes), + /* K1 */ be_nested_str_weak(find), + /* K2 */ be_nested_str_weak(ARG), + /* K3 */ be_nested_str_weak(), + }), + be_str_weak(get_plugin_class_arg), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x5C100200, // 0002 MOVE R4 R1 + 0x7C080400, // 0003 CALL R2 2 + 0x780A0001, // 0004 JMPF R2 #0007 + 0x880C0502, // 0005 GETMBR R3 R2 K2 + 0x70020000, // 0006 JMP #0008 + 0x580C0003, // 0007 LDCONST R3 K3 + 0x80040600, // 0008 RET 1 R3 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: k2l +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_k2l, /* name */ + be_nested_proto( + 8, /* nstack */ + 1, /* argc */ + 4, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 6]) { /* constants */ + /* K0 */ be_const_class(be_class_Matter_Device), + /* K1 */ be_nested_str_weak(keys), + /* K2 */ be_nested_str_weak(push), + /* K3 */ be_nested_str_weak(stop_iteration), + /* K4 */ be_const_int(1), + /* K5 */ be_const_int(0), + }), + be_str_weak(k2l), + &be_const_str_solidified, + ( &(const binstruction[50]) { /* code */ + 0x58040000, // 0000 LDCONST R1 K0 + 0x60080012, // 0001 GETGBL R2 G18 + 0x7C080000, // 0002 CALL R2 0 + 0x4C0C0000, // 0003 LDNIL R3 + 0x1C0C0003, // 0004 EQ R3 R0 R3 + 0x780E0000, // 0005 JMPF R3 #0007 + 0x80040400, // 0006 RET 1 R2 + 0x600C0010, // 0007 GETGBL R3 G16 + 0x8C100101, // 0008 GETMET R4 R0 K1 + 0x7C100200, // 0009 CALL R4 1 + 0x7C0C0200, // 000A CALL R3 1 + 0xA8020005, // 000B EXBLK 0 #0012 + 0x5C100600, // 000C MOVE R4 R3 + 0x7C100000, // 000D CALL R4 0 + 0x8C140502, // 000E GETMET R5 R2 K2 + 0x5C1C0800, // 000F MOVE R7 R4 + 0x7C140400, // 0010 CALL R5 2 + 0x7001FFF9, // 0011 JMP #000C + 0x580C0003, // 0012 LDCONST R3 K3 + 0xAC0C0200, // 0013 CATCH R3 1 0 + 0xB0080000, // 0014 RAISE 2 R0 R0 + 0x600C0010, // 0015 GETGBL R3 G16 + 0x6010000C, // 0016 GETGBL R4 G12 + 0x5C140400, // 0017 MOVE R5 R2 + 0x7C100200, // 0018 CALL R4 1 + 0x04100904, // 0019 SUB R4 R4 K4 + 0x40120804, // 001A CONNECT R4 K4 R4 + 0x7C0C0200, // 001B CALL R3 1 + 0xA8020010, // 001C EXBLK 0 #002E + 0x5C100600, // 001D MOVE R4 R3 + 0x7C100000, // 001E CALL R4 0 + 0x94140404, // 001F GETIDX R5 R2 R4 + 0x5C180800, // 0020 MOVE R6 R4 + 0x241C0D05, // 0021 GT R7 R6 K5 + 0x781E0008, // 0022 JMPF R7 #002C + 0x041C0D04, // 0023 SUB R7 R6 K4 + 0x941C0407, // 0024 GETIDX R7 R2 R7 + 0x241C0E05, // 0025 GT R7 R7 R5 + 0x781E0004, // 0026 JMPF R7 #002C + 0x041C0D04, // 0027 SUB R7 R6 K4 + 0x941C0407, // 0028 GETIDX R7 R2 R7 + 0x98080C07, // 0029 SETIDX R2 R6 R7 + 0x04180D04, // 002A SUB R6 R6 K4 + 0x7001FFF4, // 002B JMP #0021 + 0x98080C05, // 002C SETIDX R2 R6 R5 + 0x7001FFEE, // 002D JMP #001D + 0x580C0003, // 002E LDCONST R3 K3 + 0xAC0C0200, // 002F CATCH R3 1 0 + 0xB0080000, // 0030 RAISE 2 R0 R0 + 0x80040400, // 0031 RET 1 R2 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: start_basic_commissioning +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_start_basic_commissioning, /* name */ + be_nested_proto( + 13, /* nstack */ + 8, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 3]) { + be_nested_proto( + 4, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(mdns_announce_PASE), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(remove_rule), + /* K3 */ be_nested_str_weak(Wifi_X23Connected), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x7C000200, // 0002 CALL R0 1 + 0xB8020200, // 0003 GETNGBL R0 K1 + 0x8C000102, // 0004 GETMET R0 R0 K2 + 0x58080003, // 0005 LDCONST R2 K3 + 0x580C0000, // 0006 LDCONST R3 K0 + 0x7C000600, // 0007 CALL R0 3 + 0x80000000, // 0008 RET 0 + }) + ), + be_nested_proto( + 4, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(mdns_announce_PASE), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(remove_rule), + /* K3 */ be_nested_str_weak(Eth_X23Connected), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x7C000200, // 0002 CALL R0 1 + 0xB8020200, // 0003 GETNGBL R0 K1 + 0x8C000102, // 0004 GETMET R0 R0 K2 + 0x58080003, // 0005 LDCONST R2 K3 + 0x580C0000, // 0006 LDCONST R3 K0 + 0x7C000600, // 0007 CALL R0 3 + 0x80000000, // 0008 RET 0 + }) + ), + &be_class_Matter_Device, + }), + 1, /* has constants */ + ( &(const bvalue[16]) { /* constants */ + /* K0 */ be_nested_str_weak(commissioning_open), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(millis), + /* K3 */ be_nested_str_weak(commissioning_iterations), + /* K4 */ be_nested_str_weak(commissioning_discriminator), + /* K5 */ be_nested_str_weak(commissioning_salt), + /* K6 */ be_nested_str_weak(commissioning_w0), + /* K7 */ be_nested_str_weak(commissioning_L), + /* K8 */ be_nested_str_weak(commissioning_admin_fabric), + /* K9 */ be_nested_str_weak(wifi), + /* K10 */ be_nested_str_weak(up), + /* K11 */ be_nested_str_weak(eth), + /* K12 */ be_nested_str_weak(mdns_announce_PASE), + /* K13 */ be_nested_str_weak(add_rule), + /* K14 */ be_nested_str_weak(Wifi_X23Connected), + /* K15 */ be_nested_str_weak(Eth_X23Connected), + }), + be_str_weak(start_basic_commissioning), + &be_const_str_solidified, + ( &(const binstruction[40]) { /* code */ + 0xB8220200, // 0000 GETNGBL R8 K1 + 0x8C201102, // 0001 GETMET R8 R8 K2 + 0x7C200200, // 0002 CALL R8 1 + 0x542603E7, // 0003 LDINT R9 1000 + 0x08240209, // 0004 MUL R9 R1 R9 + 0x00201009, // 0005 ADD R8 R8 R9 + 0x90020008, // 0006 SETMBR R0 K0 R8 + 0x90020602, // 0007 SETMBR R0 K3 R2 + 0x90020803, // 0008 SETMBR R0 K4 R3 + 0x90020A04, // 0009 SETMBR R0 K5 R4 + 0x90020C05, // 000A SETMBR R0 K6 R5 + 0x90020E06, // 000B SETMBR R0 K7 R6 + 0x90021007, // 000C SETMBR R0 K8 R7 + 0xB8220200, // 000D GETNGBL R8 K1 + 0x8C201109, // 000E GETMET R8 R8 K9 + 0x7C200200, // 000F CALL R8 1 + 0x9420110A, // 0010 GETIDX R8 R8 K10 + 0x74220004, // 0011 JMPT R8 #0017 + 0xB8220200, // 0012 GETNGBL R8 K1 + 0x8C20110B, // 0013 GETMET R8 R8 K11 + 0x7C200200, // 0014 CALL R8 1 + 0x9420110A, // 0015 GETIDX R8 R8 K10 + 0x78220002, // 0016 JMPF R8 #001A + 0x8C20010C, // 0017 GETMET R8 R0 K12 + 0x7C200200, // 0018 CALL R8 1 + 0x7002000B, // 0019 JMP #0026 + 0xB8220200, // 001A GETNGBL R8 K1 + 0x8C20110D, // 001B GETMET R8 R8 K13 + 0x5828000E, // 001C LDCONST R10 K14 + 0x842C0000, // 001D CLOSURE R11 P0 + 0x5830000C, // 001E LDCONST R12 K12 + 0x7C200800, // 001F CALL R8 4 + 0xB8220200, // 0020 GETNGBL R8 K1 + 0x8C20110D, // 0021 GETMET R8 R8 K13 + 0x5828000F, // 0022 LDCONST R10 K15 + 0x842C0001, // 0023 CLOSURE R11 P1 + 0x5830000C, // 0024 LDCONST R12 K12 + 0x7C200800, // 0025 CALL R8 4 + 0xA0000000, // 0026 CLOSE R0 + 0x80000000, // 0027 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: _init_basic_commissioning +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device__init_basic_commissioning, /* name */ + be_nested_proto( + 3, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -5960,28 +5696,446 @@ be_local_closure(class_Matter_Device_start, /* name */ 0, /* has sup protos */ &be_class_Matter_Device, 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(started), - /* K1 */ be_nested_str_weak(autoconf_device), - /* K2 */ be_nested_str_weak(_start_udp), - /* K3 */ be_nested_str_weak(UDP_PORT), - /* K4 */ be_nested_str_weak(start_mdns_announce_hostnames), + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(sessions), + /* K1 */ be_nested_str_weak(count_active_fabrics), + /* K2 */ be_const_int(0), + /* K3 */ be_nested_str_weak(start_root_basic_commissioning), }), - be_str_weak(start), + be_str_weak(_init_basic_commissioning), + &be_const_str_solidified, + ( &(const binstruction[ 8]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x7C040200, // 0002 CALL R1 1 + 0x1C040302, // 0003 EQ R1 R1 K2 + 0x78060001, // 0004 JMPF R1 #0007 + 0x8C040103, // 0005 GETMET R1 R0 K3 + 0x7C040200, // 0006 CALL R1 1 + 0x80000000, // 0007 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: find_plugin_by_friendly_name +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_find_plugin_by_friendly_name, /* name */ + be_nested_proto( + 7, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_const_int(0), + /* K1 */ be_nested_str_weak(plugins), + /* K2 */ be_nested_str_weak(get_name), + /* K3 */ be_const_int(1), + }), + be_str_weak(find_plugin_by_friendly_name), + &be_const_str_solidified, + ( &(const binstruction[35]) { /* code */ + 0x4C080000, // 0000 LDNIL R2 + 0x1C080202, // 0001 EQ R2 R1 R2 + 0x740A0004, // 0002 JMPT R2 #0008 + 0x6008000C, // 0003 GETGBL R2 G12 + 0x5C0C0200, // 0004 MOVE R3 R1 + 0x7C080200, // 0005 CALL R2 1 + 0x1C080500, // 0006 EQ R2 R2 K0 + 0x780A0001, // 0007 JMPF R2 #000A + 0x4C080000, // 0008 LDNIL R2 + 0x80040400, // 0009 RET 1 R2 + 0x58080000, // 000A LDCONST R2 K0 + 0x600C000C, // 000B GETGBL R3 G12 + 0x88100101, // 000C GETMBR R4 R0 K1 + 0x7C0C0200, // 000D CALL R3 1 + 0x140C0403, // 000E LT R3 R2 R3 + 0x780E0010, // 000F JMPF R3 #0021 + 0x880C0101, // 0010 GETMBR R3 R0 K1 + 0x940C0602, // 0011 GETIDX R3 R3 R2 + 0x8C100702, // 0012 GETMET R4 R3 K2 + 0x7C100200, // 0013 CALL R4 1 + 0x4C140000, // 0014 LDNIL R5 + 0x20140805, // 0015 NE R5 R4 R5 + 0x78160007, // 0016 JMPF R5 #001F + 0x6014000C, // 0017 GETGBL R5 G12 + 0x5C180800, // 0018 MOVE R6 R4 + 0x7C140200, // 0019 CALL R5 1 + 0x24140B00, // 001A GT R5 R5 K0 + 0x78160002, // 001B JMPF R5 #001F + 0x1C140801, // 001C EQ R5 R4 R1 + 0x78160000, // 001D JMPF R5 #001F + 0x80040600, // 001E RET 1 R3 + 0x00080503, // 001F ADD R2 R2 K3 + 0x7001FFE9, // 0020 JMP #000B + 0x4C0C0000, // 0021 LDNIL R3 + 0x80040600, // 0022 RET 1 R3 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: autoconf_device_map +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_autoconf_device_map, /* name */ + be_nested_proto( + 19, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[38]) { /* constants */ + /* K0 */ be_nested_str_weak(json), + /* K1 */ be_nested_str_weak(matter), + /* K2 */ be_nested_str_weak(START_ENDPOINT), + /* K3 */ be_nested_str_weak(light), + /* K4 */ be_nested_str_weak(get), + /* K5 */ be_nested_str_weak(find), + /* K6 */ be_nested_str_weak(channels), + /* K7 */ be_nested_str_weak(), + /* K8 */ be_const_int(0), + /* K9 */ be_const_int(1), + /* K10 */ be_nested_str_weak(type), + /* K11 */ be_nested_str_weak(light1), + /* K12 */ be_const_int(2), + /* K13 */ be_nested_str_weak(light2), + /* K14 */ be_nested_str_weak(light3), + /* K15 */ be_nested_str_weak(tasmota), + /* K16 */ be_nested_str_weak(cmd), + /* K17 */ be_nested_str_weak(Status_X2013), + /* K18 */ be_nested_str_weak(log), + /* K19 */ be_nested_str_weak(MTR_X3A_X20Status_X2013_X20_X3D_X20), + /* K20 */ be_const_int(3), + /* K21 */ be_nested_str_weak(contains), + /* K22 */ be_nested_str_weak(StatusSHT), + /* K23 */ be_nested_str_weak(SHT), + /* K24 */ be_nested_str_weak(MTR_X3A_X20_X27_X25s_X27_X20_X3D_X20_X25s), + /* K25 */ be_nested_str_weak(Relay1), + /* K26 */ be_nested_str_weak(Relay2), + /* K27 */ be_nested_str_weak(push), + /* K28 */ be_nested_str_weak(MTR_X3A_X20relay1_X3D_X25s_X20relay2_X3D_X25s), + /* K29 */ be_nested_str_weak(TiltConfig), + /* K30 */ be_nested_str_weak(shutter_X2Btilt), + /* K31 */ be_nested_str_weak(shutter), + /* K32 */ be_nested_str_weak(get_power), + /* K33 */ be_nested_str_weak(relay), + /* K34 */ be_nested_str_weak(load), + /* K35 */ be_nested_str_weak(read_sensors), + /* K36 */ be_nested_str_weak(autoconf_sensors_list), + /* K37 */ be_nested_str_weak(stop_iteration), + }), + be_str_weak(autoconf_device_map), + &be_const_str_solidified, + ( &(const binstruction[196]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x60080013, // 0001 GETGBL R2 G19 + 0x7C080000, // 0002 CALL R2 0 + 0xB80E0200, // 0003 GETNGBL R3 K1 + 0x880C0702, // 0004 GETMBR R3 R3 K2 + 0x50100000, // 0005 LDBOOL R4 0 0 + 0xA4160600, // 0006 IMPORT R5 K3 + 0x8C180B04, // 0007 GETMET R6 R5 K4 + 0x7C180200, // 0008 CALL R6 1 + 0x4C1C0000, // 0009 LDNIL R7 + 0x201C0C07, // 000A NE R7 R6 R7 + 0x781E0024, // 000B JMPF R7 #0031 + 0x601C000C, // 000C GETGBL R7 G12 + 0x8C200D05, // 000D GETMET R8 R6 K5 + 0x58280006, // 000E LDCONST R10 K6 + 0x582C0007, // 000F LDCONST R11 K7 + 0x7C200600, // 0010 CALL R8 3 + 0x7C1C0200, // 0011 CALL R7 1 + 0x24200F08, // 0012 GT R8 R7 K8 + 0x7822001C, // 0013 JMPF R8 #0031 + 0x1C200F09, // 0014 EQ R8 R7 K9 + 0x78220007, // 0015 JMPF R8 #001E + 0x60200008, // 0016 GETGBL R8 G8 + 0x5C240600, // 0017 MOVE R9 R3 + 0x7C200200, // 0018 CALL R8 1 + 0x60240013, // 0019 GETGBL R9 G19 + 0x7C240000, // 001A CALL R9 0 + 0x9826150B, // 001B SETIDX R9 K10 K11 + 0x98081009, // 001C SETIDX R2 R8 R9 + 0x70020010, // 001D JMP #002F + 0x1C200F0C, // 001E EQ R8 R7 K12 + 0x78220007, // 001F JMPF R8 #0028 + 0x60200008, // 0020 GETGBL R8 G8 + 0x5C240600, // 0021 MOVE R9 R3 + 0x7C200200, // 0022 CALL R8 1 + 0x60240013, // 0023 GETGBL R9 G19 + 0x7C240000, // 0024 CALL R9 0 + 0x9826150D, // 0025 SETIDX R9 K10 K13 + 0x98081009, // 0026 SETIDX R2 R8 R9 + 0x70020006, // 0027 JMP #002F + 0x60200008, // 0028 GETGBL R8 G8 + 0x5C240600, // 0029 MOVE R9 R3 + 0x7C200200, // 002A CALL R8 1 + 0x60240013, // 002B GETGBL R9 G19 + 0x7C240000, // 002C CALL R9 0 + 0x9826150E, // 002D SETIDX R9 K10 K14 + 0x98081009, // 002E SETIDX R2 R8 R9 + 0x50100200, // 002F LDBOOL R4 1 0 + 0x000C0709, // 0030 ADD R3 R3 K9 + 0xB81E1E00, // 0031 GETNGBL R7 K15 + 0x8C1C0F10, // 0032 GETMET R7 R7 K16 + 0x58240011, // 0033 LDCONST R9 K17 + 0x50280200, // 0034 LDBOOL R10 1 0 + 0x7C1C0600, // 0035 CALL R7 3 + 0x60200012, // 0036 GETGBL R8 G18 + 0x7C200000, // 0037 CALL R8 0 + 0xB8262400, // 0038 GETNGBL R9 K18 + 0x60280008, // 0039 GETGBL R10 G8 + 0x5C2C0E00, // 003A MOVE R11 R7 + 0x7C280200, // 003B CALL R10 1 + 0x002A260A, // 003C ADD R10 K19 R10 + 0x582C0014, // 003D LDCONST R11 K20 + 0x7C240400, // 003E CALL R9 2 + 0x4C240000, // 003F LDNIL R9 + 0x20240E09, // 0040 NE R9 R7 R9 + 0x7826004D, // 0041 JMPF R9 #0090 + 0x8C240F15, // 0042 GETMET R9 R7 K21 + 0x582C0016, // 0043 LDCONST R11 K22 + 0x7C240400, // 0044 CALL R9 2 + 0x78260049, // 0045 JMPF R9 #0090 + 0x941C0F16, // 0046 GETIDX R7 R7 K22 + 0x58240008, // 0047 LDCONST R9 K8 + 0x50280200, // 0048 LDBOOL R10 1 0 + 0x782A0045, // 0049 JMPF R10 #0090 + 0x60280008, // 004A GETGBL R10 G8 + 0x5C2C1200, // 004B MOVE R11 R9 + 0x7C280200, // 004C CALL R10 1 + 0x002A2E0A, // 004D ADD R10 K23 R10 + 0x8C2C0F15, // 004E GETMET R11 R7 K21 + 0x5C341400, // 004F MOVE R13 R10 + 0x7C2C0400, // 0050 CALL R11 2 + 0x742E0000, // 0051 JMPT R11 #0053 + 0x7002003C, // 0052 JMP #0090 + 0x942C0E0A, // 0053 GETIDX R11 R7 R10 + 0xB8322400, // 0054 GETNGBL R12 K18 + 0x60340018, // 0055 GETGBL R13 G24 + 0x58380018, // 0056 LDCONST R14 K24 + 0x5C3C1400, // 0057 MOVE R15 R10 + 0x60400008, // 0058 GETGBL R16 G8 + 0x5C441600, // 0059 MOVE R17 R11 + 0x7C400200, // 005A CALL R16 1 + 0x7C340600, // 005B CALL R13 3 + 0x58380014, // 005C LDCONST R14 K20 + 0x7C300400, // 005D CALL R12 2 + 0x8C301705, // 005E GETMET R12 R11 K5 + 0x58380019, // 005F LDCONST R14 K25 + 0x543DFFFE, // 0060 LDINT R15 -1 + 0x7C300600, // 0061 CALL R12 3 + 0x8C341705, // 0062 GETMET R13 R11 K5 + 0x583C001A, // 0063 LDCONST R15 K26 + 0x5441FFFE, // 0064 LDINT R16 -1 + 0x7C340600, // 0065 CALL R13 3 + 0x24381908, // 0066 GT R14 R12 K8 + 0x783A0002, // 0067 JMPF R14 #006B + 0x8C38111B, // 0068 GETMET R14 R8 K27 + 0x04401909, // 0069 SUB R16 R12 K9 + 0x7C380400, // 006A CALL R14 2 + 0x24381B08, // 006B GT R14 R13 K8 + 0x783A0002, // 006C JMPF R14 #0070 + 0x8C38111B, // 006D GETMET R14 R8 K27 + 0x04401B09, // 006E SUB R16 R13 K9 + 0x7C380400, // 006F CALL R14 2 + 0xB83A2400, // 0070 GETNGBL R14 K18 + 0x603C0018, // 0071 GETGBL R15 G24 + 0x5840001C, // 0072 LDCONST R16 K28 + 0x5C441800, // 0073 MOVE R17 R12 + 0x5C481A00, // 0074 MOVE R18 R13 + 0x7C3C0600, // 0075 CALL R15 3 + 0x58400014, // 0076 LDCONST R16 K20 + 0x7C380400, // 0077 CALL R14 2 + 0x8C381705, // 0078 GETMET R14 R11 K5 + 0x5840001D, // 0079 LDCONST R16 K29 + 0x7C380400, // 007A CALL R14 2 + 0x783A0002, // 007B JMPF R14 #007F + 0x943C1D0C, // 007C GETIDX R15 R14 K12 + 0x243C1F08, // 007D GT R15 R15 K8 + 0x743E0000, // 007E JMPT R15 #0080 + 0x503C0001, // 007F LDBOOL R15 0 1 + 0x503C0200, // 0080 LDBOOL R15 1 0 + 0x60400008, // 0081 GETGBL R16 G8 + 0x5C440600, // 0082 MOVE R17 R3 + 0x7C400200, // 0083 CALL R16 1 + 0x60440013, // 0084 GETGBL R17 G19 + 0x7C440000, // 0085 CALL R17 0 + 0x783E0001, // 0086 JMPF R15 #0089 + 0x5848001E, // 0087 LDCONST R18 K30 + 0x70020000, // 0088 JMP #008A + 0x5848001F, // 0089 LDCONST R18 K31 + 0x98461412, // 008A SETIDX R17 K10 R18 + 0x98463E09, // 008B SETIDX R17 K31 R9 + 0x98082011, // 008C SETIDX R2 R16 R17 + 0x000C0709, // 008D ADD R3 R3 K9 + 0x00241309, // 008E ADD R9 R9 K9 + 0x7001FFB7, // 008F JMP #0048 + 0x6024000C, // 0090 GETGBL R9 G12 + 0xB82A1E00, // 0091 GETNGBL R10 K15 + 0x8C281520, // 0092 GETMET R10 R10 K32 + 0x7C280200, // 0093 CALL R10 1 + 0x7C240200, // 0094 CALL R9 1 + 0x58280008, // 0095 LDCONST R10 K8 + 0x78120000, // 0096 JMPF R4 #0098 + 0x04241309, // 0097 SUB R9 R9 K9 + 0x142C1409, // 0098 LT R11 R10 R9 + 0x782E0011, // 0099 JMPF R11 #00AC + 0x8C2C1105, // 009A GETMET R11 R8 K5 + 0x5C341400, // 009B MOVE R13 R10 + 0x7C2C0400, // 009C CALL R11 2 + 0x4C300000, // 009D LDNIL R12 + 0x1C2C160C, // 009E EQ R11 R11 R12 + 0x782E0009, // 009F JMPF R11 #00AA + 0x602C0008, // 00A0 GETGBL R11 G8 + 0x5C300600, // 00A1 MOVE R12 R3 + 0x7C2C0200, // 00A2 CALL R11 1 + 0x60300013, // 00A3 GETGBL R12 G19 + 0x7C300000, // 00A4 CALL R12 0 + 0x98321521, // 00A5 SETIDX R12 K10 K33 + 0x00341509, // 00A6 ADD R13 R10 K9 + 0x9832420D, // 00A7 SETIDX R12 K33 R13 + 0x9808160C, // 00A8 SETIDX R2 R11 R12 + 0x000C0709, // 00A9 ADD R3 R3 K9 + 0x00281509, // 00AA ADD R10 R10 K9 + 0x7001FFEB, // 00AB JMP #0098 + 0x8C2C0322, // 00AC GETMET R11 R1 K34 + 0xB8361E00, // 00AD GETNGBL R13 K15 + 0x8C341B23, // 00AE GETMET R13 R13 K35 + 0x7C340200, // 00AF CALL R13 1 + 0x7C2C0400, // 00B0 CALL R11 2 + 0x8C300124, // 00B1 GETMET R12 R0 K36 + 0x5C381600, // 00B2 MOVE R14 R11 + 0x7C300400, // 00B3 CALL R12 2 + 0x60340010, // 00B4 GETGBL R13 G16 + 0x5C381800, // 00B5 MOVE R14 R12 + 0x7C340200, // 00B6 CALL R13 1 + 0xA8020007, // 00B7 EXBLK 0 #00C0 + 0x5C381A00, // 00B8 MOVE R14 R13 + 0x7C380000, // 00B9 CALL R14 0 + 0x603C0008, // 00BA GETGBL R15 G8 + 0x5C400600, // 00BB MOVE R16 R3 + 0x7C3C0200, // 00BC CALL R15 1 + 0x98081E0E, // 00BD SETIDX R2 R15 R14 + 0x000C0709, // 00BE ADD R3 R3 K9 + 0x7001FFF7, // 00BF JMP #00B8 + 0x58340025, // 00C0 LDCONST R13 K37 + 0xAC340200, // 00C1 CATCH R13 1 0 + 0xB0080000, // 00C2 RAISE 2 R0 R0 + 0x80040400, // 00C3 RET 1 R2 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_active_endpoints +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_get_active_endpoints, /* name */ + be_nested_proto( + 9, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 6]) { /* constants */ + /* K0 */ be_nested_str_weak(plugins), + /* K1 */ be_nested_str_weak(get_endpoint), + /* K2 */ be_const_int(0), + /* K3 */ be_nested_str_weak(find), + /* K4 */ be_nested_str_weak(push), + /* K5 */ be_nested_str_weak(stop_iteration), + }), + be_str_weak(get_active_endpoints), + &be_const_str_solidified, + ( &(const binstruction[28]) { /* code */ + 0x60080012, // 0000 GETGBL R2 G18 + 0x7C080000, // 0001 CALL R2 0 + 0x600C0010, // 0002 GETGBL R3 G16 + 0x88100100, // 0003 GETMBR R4 R0 K0 + 0x7C0C0200, // 0004 CALL R3 1 + 0xA8020011, // 0005 EXBLK 0 #0018 + 0x5C100600, // 0006 MOVE R4 R3 + 0x7C100000, // 0007 CALL R4 0 + 0x8C140901, // 0008 GETMET R5 R4 K1 + 0x7C140200, // 0009 CALL R5 1 + 0x78060002, // 000A JMPF R1 #000E + 0x1C180B02, // 000B EQ R6 R5 K2 + 0x781A0000, // 000C JMPF R6 #000E + 0x7001FFF7, // 000D JMP #0006 + 0x8C180503, // 000E GETMET R6 R2 K3 + 0x5C200A00, // 000F MOVE R8 R5 + 0x7C180400, // 0010 CALL R6 2 + 0x4C1C0000, // 0011 LDNIL R7 + 0x1C180C07, // 0012 EQ R6 R6 R7 + 0x781A0002, // 0013 JMPF R6 #0017 + 0x8C180504, // 0014 GETMET R6 R2 K4 + 0x5C200A00, // 0015 MOVE R8 R5 + 0x7C180400, // 0016 CALL R6 2 + 0x7001FFED, // 0017 JMP #0006 + 0x580C0005, // 0018 LDCONST R3 K5 + 0xAC0C0200, // 0019 CATCH R3 1 0 + 0xB0080000, // 001A RAISE 2 R0 R0 + 0x80040400, // 001B RET 1 R2 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: MtrJoin +********************************************************************/ +extern const bclass be_class_Matter_Device; +be_local_closure(class_Matter_Device_MtrJoin, /* name */ + be_nested_proto( + 8, /* nstack */ + 5, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + &be_class_Matter_Device, + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(start_root_basic_commissioning), + /* K1 */ be_nested_str_weak(stop_basic_commissioning), + /* K2 */ be_nested_str_weak(tasmota), + /* K3 */ be_nested_str_weak(resp_cmnd_done), + }), + be_str_weak(MtrJoin), &be_const_str_solidified, ( &(const binstruction[13]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x78060000, // 0001 JMPF R1 #0003 - 0x80000200, // 0002 RET 0 - 0x8C040101, // 0003 GETMET R1 R0 K1 - 0x7C040200, // 0004 CALL R1 1 - 0x8C040102, // 0005 GETMET R1 R0 K2 - 0x880C0103, // 0006 GETMBR R3 R0 K3 - 0x7C040400, // 0007 CALL R1 2 - 0x8C040104, // 0008 GETMET R1 R0 K4 - 0x7C040200, // 0009 CALL R1 1 - 0x50040200, // 000A LDBOOL R1 1 0 - 0x90020001, // 000B SETMBR R0 K0 R1 + 0x60140009, // 0000 GETGBL R5 G9 + 0x5C180600, // 0001 MOVE R6 R3 + 0x7C140200, // 0002 CALL R5 1 + 0x78160002, // 0003 JMPF R5 #0007 + 0x8C180100, // 0004 GETMET R6 R0 K0 + 0x7C180200, // 0005 CALL R6 1 + 0x70020001, // 0006 JMP #0009 + 0x8C180101, // 0007 GETMET R6 R0 K1 + 0x7C180200, // 0008 CALL R6 1 + 0xB81A0400, // 0009 GETNGBL R6 K2 + 0x8C180D03, // 000A GETMET R6 R6 K3 + 0x7C180200, // 000B CALL R6 1 0x80000000, // 000C RET 0 }) ) @@ -5995,39 +6149,85 @@ be_local_closure(class_Matter_Device_start, /* name */ be_local_class(Matter_Device, 34, NULL, - be_nested_map(112, + be_nested_map(115, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(commissioning_salt, -1), be_const_var(15) }, - { be_const_key_weak(msg_send, 0), be_const_closure(class_Matter_Device_msg_send_closure) }, - { be_const_key_weak(bridge_remove_endpoint, -1), be_const_closure(class_Matter_Device_bridge_remove_endpoint_closure) }, - { be_const_key_weak(MtrInfo_one, -1), be_const_closure(class_Matter_Device_MtrInfo_one_closure) }, - { be_const_key_weak(plugins_persist, -1), be_const_var(2) }, - { be_const_key_weak(_init_basic_commissioning, -1), be_const_closure(class_Matter_Device__init_basic_commissioning_closure) }, - { be_const_key_weak(root_discriminator, -1), be_const_var(26) }, - { be_const_key_weak(read_sensors_scheduler, -1), be_const_closure(class_Matter_Device_read_sensors_scheduler_closure) }, - { be_const_key_weak(hostname_wifi, -1), be_const_var(21) }, - { be_const_key_weak(start_operational_discovery_deferred, -1), be_const_closure(class_Matter_Device_start_operational_discovery_deferred_closure) }, - { be_const_key_weak(plugins_config, -1), be_const_var(3) }, - { be_const_key_weak(get_active_endpoints, -1), be_const_closure(class_Matter_Device_get_active_endpoints_closure) }, + { be_const_key_weak(start_commissioning_complete, 110), be_const_closure(class_Matter_Device_start_commissioning_complete_closure) }, + { be_const_key_weak(k2l_num, -1), be_const_static_closure(class_Matter_Device_k2l_num_closure) }, + { be_const_key_weak(remove_fabric, 17), be_const_closure(class_Matter_Device_remove_fabric_closure) }, + { be_const_key_weak(_mdns_announce_hostname, 36), be_const_closure(class_Matter_Device__mdns_announce_hostname_closure) }, + { be_const_key_weak(add_read_sensors_schedule, -1), be_const_closure(class_Matter_Device_add_read_sensors_schedule_closure) }, + { be_const_key_weak(every_second, 109), be_const_closure(class_Matter_Device_every_second_closure) }, + { be_const_key_weak(compute_qrcode_content, -1), be_const_closure(class_Matter_Device_compute_qrcode_content_closure) }, + { be_const_key_weak(commissioning_w0, -1), be_const_var(16) }, { be_const_key_weak(msg_received, -1), be_const_closure(class_Matter_Device_msg_received_closure) }, - { be_const_key_weak(http_remotes, 41), be_const_var(25) }, - { be_const_key_weak(commissioning_instance_eth, 40), be_const_var(20) }, - { be_const_key_weak(clean_remotes, -1), be_const_closure(class_Matter_Device_clean_remotes_closure) }, - { be_const_key_weak(hostname_eth, -1), be_const_var(22) }, - { be_const_key_weak(start_operational_discovery, 47), be_const_closure(class_Matter_Device_start_operational_discovery_closure) }, - { be_const_key_weak(_mdns_announce_hostname, -1), be_const_closure(class_Matter_Device__mdns_announce_hostname_closure) }, - { be_const_key_weak(add_read_sensors_schedule, 38), be_const_closure(class_Matter_Device_add_read_sensors_schedule_closure) }, - { be_const_key_weak(events, 62), be_const_var(11) }, - { be_const_key_weak(start_mdns_announce_hostnames, -1), be_const_closure(class_Matter_Device_start_mdns_announce_hostnames_closure) }, - { be_const_key_weak(_start_udp, 75), be_const_closure(class_Matter_Device__start_udp_closure) }, - { be_const_key_weak(compute_qrcode_content, 70), be_const_closure(class_Matter_Device_compute_qrcode_content_closure) }, - { be_const_key_weak(get_plugin_remote_info, 93), be_const_closure(class_Matter_Device_get_plugin_remote_info_closure) }, - { be_const_key_weak(_instantiate_plugins_from_config, 107), be_const_closure(class_Matter_Device__instantiate_plugins_from_config_closure) }, - { be_const_key_weak(mdns_remove_op_discovery_all_fabrics, -1), be_const_closure(class_Matter_Device_mdns_remove_op_discovery_all_fabrics_closure) }, - { be_const_key_weak(udp_server, -1), be_const_var(5) }, - { be_const_key_weak(sessions, -1), be_const_var(8) }, + { be_const_key_weak(get_plugin_remote_info, -1), be_const_closure(class_Matter_Device_get_plugin_remote_info_closure) }, + { be_const_key_weak(attribute_updated, -1), be_const_closure(class_Matter_Device_attribute_updated_closure) }, + { be_const_key_weak(probe_sensor_timestamp, -1), be_const_var(33) }, + { be_const_key_weak(get_active_endpoints, 81), be_const_closure(class_Matter_Device_get_active_endpoints_closure) }, + { be_const_key_weak(commissioning_salt, -1), be_const_var(15) }, + { be_const_key_weak(autoconf_device, 84), be_const_closure(class_Matter_Device_autoconf_device_closure) }, + { be_const_key_weak(ipv4only, -1), be_const_var(28) }, + { be_const_key_weak(PASE_TIMEOUT, 37), be_const_int(600) }, + { be_const_key_weak(ui, 6), be_const_var(9) }, + { be_const_key_weak(every_50ms, -1), be_const_closure(class_Matter_Device_every_50ms_closure) }, + { be_const_key_weak(button_handler, -1), be_const_closure(class_Matter_Device_button_handler_closure) }, + { be_const_key_weak(autoconf_device_map, -1), be_const_closure(class_Matter_Device_autoconf_device_map_closure) }, + { be_const_key_weak(find_plugin_by_friendly_name, 86), be_const_closure(class_Matter_Device_find_plugin_by_friendly_name_closure) }, + { be_const_key_weak(debug, 95), be_const_var(31) }, + { be_const_key_weak(events, 52), be_const_var(11) }, { be_const_key_weak(resolve_attribute_read_solo, -1), be_const_closure(class_Matter_Device_resolve_attribute_read_solo_closure) }, - { be_const_key_weak(started, 15), be_const_var(0) }, + { be_const_key_weak(update_remotes_info, -1), be_const_closure(class_Matter_Device_update_remotes_info_closure) }, + { be_const_key_weak(plugins_persist, -1), be_const_var(2) }, + { be_const_key_weak(button_multi_pressed, 98), be_const_closure(class_Matter_Device_button_multi_pressed_closure) }, + { be_const_key_weak(udp_server, 76), be_const_var(5) }, + { be_const_key_weak(message_handler, -1), be_const_var(7) }, + { be_const_key_weak(mdns_remove_PASE, -1), be_const_closure(class_Matter_Device_mdns_remove_PASE_closure) }, + { be_const_key_weak(plugins, -1), be_const_var(1) }, + { be_const_key_weak(invoke_request, 9), be_const_closure(class_Matter_Device_invoke_request_closure) }, + { be_const_key_weak(_init_basic_commissioning, -1), be_const_closure(class_Matter_Device__init_basic_commissioning_closure) }, + { be_const_key_weak(disable_bridge_mode, 11), be_const_var(29) }, + { be_const_key_weak(start_basic_commissioning, 77), be_const_closure(class_Matter_Device_start_basic_commissioning_closure) }, + { be_const_key_weak(sessions, -1), be_const_var(8) }, + { be_const_key_weak(get_plugin_class_arg, -1), be_const_closure(class_Matter_Device_get_plugin_class_arg_closure) }, + { be_const_key_weak(MtrInfo_one, 79), be_const_closure(class_Matter_Device_MtrInfo_one_closure) }, + { be_const_key_weak(start_mdns_announce_hostnames, -1), be_const_closure(class_Matter_Device_start_mdns_announce_hostnames_closure) }, + { be_const_key_weak(mdns_pase_wifi, -1), be_const_var(24) }, + { be_const_key_weak(commissioning_instance_wifi, -1), be_const_var(19) }, + { be_const_key_weak(mdns_announce_PASE, -1), be_const_closure(class_Matter_Device_mdns_announce_PASE_closure) }, + { be_const_key_weak(save_before_restart, 103), be_const_closure(class_Matter_Device_save_before_restart_closure) }, + { be_const_key_weak(autoconf_sensors_list, -1), be_const_closure(class_Matter_Device_autoconf_sensors_list_closure) }, + { be_const_key_weak(start_commissioning_complete_deferred, -1), be_const_closure(class_Matter_Device_start_commissioning_complete_deferred_closure) }, + { be_const_key_weak(next_ep, -1), be_const_var(30) }, + { be_const_key_weak(conf_to_log, -1), be_const_static_closure(class_Matter_Device_conf_to_log_closure) }, + { be_const_key_weak(process_attribute_expansion, -1), be_const_closure(class_Matter_Device_process_attribute_expansion_closure) }, + { be_const_key_weak(stop_basic_commissioning, -1), be_const_closure(class_Matter_Device_stop_basic_commissioning_closure) }, + { be_const_key_weak(clean_remotes, -1), be_const_closure(class_Matter_Device_clean_remotes_closure) }, + { be_const_key_weak(FILENAME, -1), be_nested_str_weak(_matter_device_X2Ejson) }, + { be_const_key_weak(UDP_PORT, -1), be_const_int(5540) }, + { be_const_key_weak(_start_udp, -1), be_const_closure(class_Matter_Device__start_udp_closure) }, + { be_const_key_weak(adjust_next_ep, -1), be_const_closure(class_Matter_Device_adjust_next_ep_closure) }, + { be_const_key_weak(find_plugin_by_endpoint, 64), be_const_closure(class_Matter_Device_find_plugin_by_endpoint_closure) }, + { be_const_key_weak(_instantiate_plugins_from_config, -1), be_const_closure(class_Matter_Device__instantiate_plugins_from_config_closure) }, + { be_const_key_weak(mdns_announce_op_discovery, -1), be_const_closure(class_Matter_Device_mdns_announce_op_discovery_closure) }, + { be_const_key_weak(is_commissioning_open, 74), be_const_closure(class_Matter_Device_is_commissioning_open_closure) }, + { be_const_key_weak(PRODUCT_ID, -1), be_const_int(32768) }, + { be_const_key_weak(init, 45), be_const_closure(class_Matter_Device_init_closure) }, + { be_const_key_weak(read_sensors_scheduler, 87), be_const_closure(class_Matter_Device_read_sensors_scheduler_closure) }, + { be_const_key_weak(bridge_remove_endpoint, 12), be_const_closure(class_Matter_Device_bridge_remove_endpoint_closure) }, + { be_const_key_weak(http_remotes, -1), be_const_var(25) }, + { be_const_key_weak(tick, -1), be_const_var(10) }, + { be_const_key_weak(bridge_add_endpoint, -1), be_const_closure(class_Matter_Device_bridge_add_endpoint_closure) }, + { be_const_key_weak(is_root_commissioning_open, -1), be_const_closure(class_Matter_Device_is_root_commissioning_open_closure) }, + { be_const_key_weak(_trigger_read_sensors, 96), be_const_closure(class_Matter_Device__trigger_read_sensors_closure) }, + { be_const_key_weak(MtrUpdate, -1), be_const_closure(class_Matter_Device_MtrUpdate_closure) }, + { be_const_key_weak(commissioning_open, -1), be_const_var(12) }, + { be_const_key_weak(generate_random_passcode, -1), be_const_closure(class_Matter_Device_generate_random_passcode_closure) }, + { be_const_key_weak(hostname_wifi, 78), be_const_var(21) }, + { be_const_key_weak(start_operational_discovery_deferred, -1), be_const_closure(class_Matter_Device_start_operational_discovery_deferred_closure) }, + { be_const_key_weak(save_param, -1), be_const_closure(class_Matter_Device_save_param_closure) }, + { be_const_key_weak(load_param, -1), be_const_closure(class_Matter_Device_load_param_closure) }, + { be_const_key_weak(commissioning_admin_fabric, -1), be_const_var(18) }, + { be_const_key_weak(compute_manual_pairing_code, 93), be_const_closure(class_Matter_Device_compute_manual_pairing_code_closure) }, { be_const_key_weak(PASSCODE_INVALID, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { be_const_list( * be_nested_list(12, ( (struct bvalue*) &(const bvalue[]) { @@ -6044,43 +6244,33 @@ be_local_class(Matter_Device, be_const_int(12345678), be_const_int(87654321), })) ) } )) }, - { be_const_key_weak(bridge_add_endpoint, 85), be_const_closure(class_Matter_Device_bridge_add_endpoint_closure) }, + { be_const_key_weak(VENDOR_ID, 68), be_const_int(65521) }, + { be_const_key_weak(mdns_remove_op_discovery_all_fabrics, 101), be_const_closure(class_Matter_Device_mdns_remove_op_discovery_all_fabrics_closure) }, + { be_const_key_weak(register_http_remote, -1), be_const_closure(class_Matter_Device_register_http_remote_closure) }, + { be_const_key_weak(commissioning_iterations, -1), be_const_var(13) }, { be_const_key_weak(profiler, -1), be_const_var(6) }, - { be_const_key_weak(MtrUpdate, -1), be_const_closure(class_Matter_Device_MtrUpdate_closure) }, - { be_const_key_weak(load_param, -1), be_const_closure(class_Matter_Device_load_param_closure) }, - { be_const_key_weak(save_param, 77), be_const_closure(class_Matter_Device_save_param_closure) }, - { be_const_key_weak(get_plugin_class_arg, -1), be_const_closure(class_Matter_Device_get_plugin_class_arg_closure) }, - { be_const_key_weak(init, 2), be_const_closure(class_Matter_Device_init_closure) }, - { be_const_key_weak(process_attribute_expansion, 105), be_const_closure(class_Matter_Device_process_attribute_expansion_closure) }, - { be_const_key_weak(is_commissioning_open, -1), be_const_closure(class_Matter_Device_is_commissioning_open_closure) }, - { be_const_key_weak(generate_random_passcode, -1), be_const_closure(class_Matter_Device_generate_random_passcode_closure) }, - { be_const_key_weak(commissioning_instance_wifi, -1), be_const_var(19) }, - { be_const_key_weak(register_commands, 34), be_const_closure(class_Matter_Device_register_commands_closure) }, - { be_const_key_weak(every_250ms, 50), be_const_closure(class_Matter_Device_every_250ms_closure) }, - { be_const_key_weak(commissioning_L, -1), be_const_var(17) }, { be_const_key_weak(check_config_ep, -1), be_const_closure(class_Matter_Device_check_config_ep_closure) }, - { be_const_key_weak(update_remotes_info, -1), be_const_closure(class_Matter_Device_update_remotes_info_closure) }, - { be_const_key_weak(conf_to_log, -1), be_const_static_closure(class_Matter_Device_conf_to_log_closure) }, - { be_const_key_weak(probe_sensor_time, -1), be_const_var(32) }, - { be_const_key_weak(next_ep, 49), be_const_var(30) }, - { be_const_key_weak(mdns_pase_eth, 57), be_const_var(23) }, - { be_const_key_weak(tick, -1), be_const_var(10) }, - { be_const_key_weak(mdns_pase_wifi, -1), be_const_var(24) }, - { be_const_key_weak(autoconf_device_map, -1), be_const_closure(class_Matter_Device_autoconf_device_map_closure) }, - { be_const_key_weak(remove_fabric, 65), be_const_closure(class_Matter_Device_remove_fabric_closure) }, - { be_const_key_weak(probe_sensor_timestamp, 76), be_const_var(33) }, - { be_const_key_weak(mdns_announce_PASE, 37), be_const_closure(class_Matter_Device_mdns_announce_PASE_closure) }, - { be_const_key_weak(adjust_next_ep, -1), be_const_closure(class_Matter_Device_adjust_next_ep_closure) }, - { be_const_key_weak(ui, 24), be_const_var(9) }, - { be_const_key_weak(PRODUCT_ID, 92), be_const_int(32768) }, - { be_const_key_weak(autoconf_sensors_list, -1), be_const_closure(class_Matter_Device_autoconf_sensors_list_closure) }, - { be_const_key_weak(find_plugin_by_endpoint, -1), be_const_closure(class_Matter_Device_find_plugin_by_endpoint_closure) }, - { be_const_key_weak(PBKDF_ITERATIONS, -1), be_const_int(1000) }, - { be_const_key_weak(plugins_classes, 44), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + { be_const_key_weak(commissioning_L, -1), be_const_var(17) }, + { be_const_key_weak(commissioning_discriminator, -1), be_const_var(14) }, + { be_const_key_weak(start, -1), be_const_closure(class_Matter_Device_start_closure) }, + { be_const_key_weak(button_pressed, -1), be_const_closure(class_Matter_Device_button_pressed_closure) }, + { be_const_key_weak(msg_send, 35), be_const_closure(class_Matter_Device_msg_send_closure) }, + { be_const_key_weak(mdns_announce_op_discovery_all_fabrics, 55), be_const_closure(class_Matter_Device_mdns_announce_op_discovery_all_fabrics_closure) }, + { be_const_key_weak(probe_sensor_time, 47), be_const_var(32) }, + { be_const_key_weak(get_plugin_class_displayname, 70), be_const_closure(class_Matter_Device_get_plugin_class_displayname_closure) }, + { be_const_key_weak(root_discriminator, -1), be_const_var(26) }, + { be_const_key_weak(signal_endpoints_changed, 4), be_const_closure(class_Matter_Device_signal_endpoints_changed_closure) }, + { be_const_key_weak(PBKDF_ITERATIONS, 58), be_const_int(1000) }, + { be_const_key_weak(event_fabrics_saved, -1), be_const_closure(class_Matter_Device_event_fabrics_saved_closure) }, + { be_const_key_weak(start_operational_discovery, -1), be_const_closure(class_Matter_Device_start_operational_discovery_closure) }, + { be_const_key_weak(stop, 51), be_const_closure(class_Matter_Device_stop_closure) }, + { be_const_key_weak(sort_distinct, -1), be_const_static_closure(class_Matter_Device_sort_distinct_closure) }, + { be_const_key_weak(received_ack, -1), be_const_closure(class_Matter_Device_received_ack_closure) }, + { be_const_key_weak(plugins_classes, 38), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(53, ( (struct bmapnode*) &(const bmapnode[]) { { be_const_key_weak(occupancy, -1), be_const_class(be_class_Matter_Plugin_Sensor_Occupancy) }, - { be_const_key_weak(light0, -1), be_const_class(be_class_Matter_Plugin_Light0) }, + { be_const_key_weak(pressure, -1), be_const_class(be_class_Matter_Plugin_Sensor_Pressure) }, { be_const_key_weak(http_light2, -1), be_const_class(be_class_Matter_Plugin_Bridge_Light2) }, { be_const_key_weak(v_contact, 36), be_const_class(be_class_Matter_Plugin_Virt_Sensor_Contact) }, { be_const_key_weak(v_occupancy, -1), be_const_class(be_class_Matter_Plugin_Virt_Sensor_Occupancy) }, @@ -6089,29 +6279,29 @@ be_local_class(Matter_Device, { be_const_key_weak(shutter, -1), be_const_class(be_class_Matter_Plugin_Shutter) }, { be_const_key_weak(v_pressure, -1), be_const_class(be_class_Matter_Plugin_Virt_Sensor_Pressure) }, { be_const_key_weak(http_rain, -1), be_const_class(be_class_Matter_Plugin_Bridge_Sensor_Rain) }, - { be_const_key_weak(http_pressure, 32), be_const_class(be_class_Matter_Plugin_Bridge_Sensor_Pressure) }, + { be_const_key_weak(http_pressure, 12), be_const_class(be_class_Matter_Plugin_Bridge_Sensor_Pressure) }, { be_const_key_weak(v_light2, -1), be_const_class(be_class_Matter_Plugin_Virt_Light2) }, - { be_const_key_weak(pressure, -1), be_const_class(be_class_Matter_Plugin_Sensor_Pressure) }, + { be_const_key_weak(v_flow, -1), be_const_class(be_class_Matter_Plugin_Virt_Sensor_Flow) }, { be_const_key_weak(relay, -1), be_const_class(be_class_Matter_Plugin_OnOff) }, - { be_const_key_weak(v_illuminance, 41), be_const_class(be_class_Matter_Plugin_Virt_Sensor_Illuminance) }, - { be_const_key_weak(shutter_X2Btilt, -1), be_const_class(be_class_Matter_Plugin_ShutterTilt) }, - { be_const_key_weak(temperature, 29), be_const_class(be_class_Matter_Plugin_Sensor_Temp) }, + { be_const_key_weak(v_illuminance, 29), be_const_class(be_class_Matter_Plugin_Virt_Sensor_Illuminance) }, + { be_const_key_weak(v_airquality, -1), be_const_class(be_class_Matter_Plugin_Virt_Sensor_Air_Quality) }, + { be_const_key_weak(temperature, 20), be_const_class(be_class_Matter_Plugin_Sensor_Temp) }, { be_const_key_weak(waterleak, -1), be_const_class(be_class_Matter_Plugin_Sensor_Waterleak) }, { be_const_key_weak(v_fan, -1), be_const_class(be_class_Matter_Plugin_Virt_Fan) }, { be_const_key_weak(http_occupancy, 6), be_const_class(be_class_Matter_Plugin_Bridge_Sensor_Occupancy) }, - { be_const_key_weak(v_airquality, -1), be_const_class(be_class_Matter_Plugin_Virt_Sensor_Air_Quality) }, + { be_const_key_weak(http_relay, -1), be_const_class(be_class_Matter_Plugin_Bridge_OnOff) }, { be_const_key_weak(fan, -1), be_const_class(be_class_Matter_Plugin_Fan) }, { be_const_key_weak(light1, -1), be_const_class(be_class_Matter_Plugin_Light1) }, { be_const_key_weak(root, -1), be_const_class(be_class_Matter_Plugin_Root) }, { be_const_key_weak(illuminance, -1), be_const_class(be_class_Matter_Plugin_Sensor_Illuminance) }, - { be_const_key_weak(v_temp, 20), be_const_class(be_class_Matter_Plugin_Virt_Sensor_Temp) }, + { be_const_key_weak(v_temp, 15), be_const_class(be_class_Matter_Plugin_Virt_Sensor_Temp) }, { be_const_key_weak(v_light1, -1), be_const_class(be_class_Matter_Plugin_Virt_Light1) }, { be_const_key_weak(v_waterleak, -1), be_const_class(be_class_Matter_Plugin_Virt_Sensor_Waterleak) }, { be_const_key_weak(v_relay, -1), be_const_class(be_class_Matter_Plugin_Virt_OnOff) }, - { be_const_key_weak(http_relay, -1), be_const_class(be_class_Matter_Plugin_Bridge_OnOff) }, + { be_const_key_weak(contact, 52), be_const_class(be_class_Matter_Plugin_Sensor_Contact) }, { be_const_key_weak(light2, 27), be_const_class(be_class_Matter_Plugin_Light2) }, { be_const_key_weak(http_light1, -1), be_const_class(be_class_Matter_Plugin_Bridge_Light1) }, - { be_const_key_weak(v_flow, -1), be_const_class(be_class_Matter_Plugin_Virt_Sensor_Flow) }, + { be_const_key_weak(gensw_btn, -1), be_const_class(be_class_Matter_Plugin_Sensor_GenericSwitch_Btn) }, { be_const_key_weak(onoff, -1), be_const_class(be_class_Matter_Plugin_Sensor_OnOff) }, { be_const_key_weak(v_light0, -1), be_const_class(be_class_Matter_Plugin_Virt_Light0) }, { be_const_key_weak(light3, -1), be_const_class(be_class_Matter_Plugin_Light3) }, @@ -6120,66 +6310,33 @@ be_local_class(Matter_Device, { be_const_key_weak(v_rain, 43), be_const_class(be_class_Matter_Plugin_Virt_Sensor_Rain) }, { be_const_key_weak(http_light0, -1), be_const_class(be_class_Matter_Plugin_Bridge_Light0) }, { be_const_key_weak(http_waterleak, 45), be_const_class(be_class_Matter_Plugin_Bridge_Sensor_Waterleak) }, - { be_const_key_weak(contact, 1), be_const_class(be_class_Matter_Plugin_Sensor_Contact) }, + { be_const_key_weak(shutter_X2Btilt, -1), be_const_class(be_class_Matter_Plugin_ShutterTilt) }, { be_const_key_weak(v_light3, -1), be_const_class(be_class_Matter_Plugin_Virt_Light3) }, { be_const_key_weak(airquality, 35), be_const_class(be_class_Matter_Plugin_Sensor_Air_Quality) }, { be_const_key_weak(http_flow, -1), be_const_class(be_class_Matter_Plugin_Bridge_Sensor_Flow) }, { be_const_key_weak(humidity, -1), be_const_class(be_class_Matter_Plugin_Sensor_Humidity) }, - { be_const_key_weak(http_temperature, 15), be_const_class(be_class_Matter_Plugin_Bridge_Sensor_Temp) }, + { be_const_key_weak(http_temperature, 41), be_const_class(be_class_Matter_Plugin_Bridge_Sensor_Temp) }, { be_const_key_weak(http_light3, -1), be_const_class(be_class_Matter_Plugin_Bridge_Light3) }, - { be_const_key_weak(v_humidity, 12), be_const_class(be_class_Matter_Plugin_Virt_Sensor_Humidity) }, + { be_const_key_weak(v_humidity, 1), be_const_class(be_class_Matter_Plugin_Virt_Sensor_Humidity) }, { be_const_key_weak(http_airquality, -1), be_const_class(be_class_Matter_Plugin_Bridge_Sensor_Air_Quality) }, { be_const_key_weak(aggregator, 11), be_const_class(be_class_Matter_Plugin_Aggregator) }, { be_const_key_weak(rain, -1), be_const_class(be_class_Matter_Plugin_Sensor_Rain) }, - { be_const_key_weak(gensw, -1), be_const_class(be_class_Matter_Plugin_Sensor_GenericSwitch) }, + { be_const_key_weak(light0, -1), be_const_class(be_class_Matter_Plugin_Light0) }, })) ) } )) }, { be_const_key_weak(mdns_remove_op_discovery, -1), be_const_closure(class_Matter_Device_mdns_remove_op_discovery_closure) }, - { be_const_key_weak(mdns_remove_PASE, 86), be_const_closure(class_Matter_Device_mdns_remove_PASE_closure) }, - { be_const_key_weak(mdns_announce_op_discovery_all_fabrics, -1), be_const_closure(class_Matter_Device_mdns_announce_op_discovery_all_fabrics_closure) }, - { be_const_key_weak(PASE_TIMEOUT, -1), be_const_int(600) }, - { be_const_key_weak(debug, 84), be_const_var(31) }, - { be_const_key_weak(signal_endpoints_changed, -1), be_const_closure(class_Matter_Device_signal_endpoints_changed_closure) }, - { be_const_key_weak(_trigger_read_sensors, -1), be_const_closure(class_Matter_Device__trigger_read_sensors_closure) }, - { be_const_key_weak(received_ack, 69), be_const_closure(class_Matter_Device_received_ack_closure) }, - { be_const_key_weak(every_second, -1), be_const_closure(class_Matter_Device_every_second_closure) }, - { be_const_key_weak(plugins_config_remotes, 80), be_const_var(4) }, - { be_const_key_weak(sort_distinct, -1), be_const_static_closure(class_Matter_Device_sort_distinct_closure) }, - { be_const_key_weak(message_handler, 99), be_const_var(7) }, - { be_const_key_weak(compute_manual_pairing_code, 68), be_const_closure(class_Matter_Device_compute_manual_pairing_code_closure) }, - { be_const_key_weak(event_fabrics_saved, -1), be_const_closure(class_Matter_Device_event_fabrics_saved_closure) }, - { be_const_key_weak(autoconf_device, -1), be_const_closure(class_Matter_Device_autoconf_device_closure) }, - { be_const_key_weak(start_basic_commissioning, -1), be_const_closure(class_Matter_Device_start_basic_commissioning_closure) }, - { be_const_key_weak(start_root_basic_commissioning, -1), be_const_closure(class_Matter_Device_start_root_basic_commissioning_closure) }, - { be_const_key_weak(commissioning_w0, -1), be_const_var(16) }, - { be_const_key_weak(start_commissioning_complete_deferred, 67), be_const_closure(class_Matter_Device_start_commissioning_complete_deferred_closure) }, - { be_const_key_weak(every_50ms, -1), be_const_closure(class_Matter_Device_every_50ms_closure) }, - { be_const_key_weak(commissioning_admin_fabric, -1), be_const_var(18) }, - { be_const_key_weak(get_plugin_class_displayname, -1), be_const_closure(class_Matter_Device_get_plugin_class_displayname_closure) }, - { be_const_key_weak(start_commissioning_complete, 56), be_const_closure(class_Matter_Device_start_commissioning_complete_closure) }, - { be_const_key_weak(FILENAME, 12), be_nested_str_weak(_matter_device_X2Ejson) }, - { be_const_key_weak(commissioning_open, -1), be_const_var(12) }, - { be_const_key_weak(MtrInfo, -1), be_const_closure(class_Matter_Device_MtrInfo_closure) }, - { be_const_key_weak(invoke_request, 45), be_const_closure(class_Matter_Device_invoke_request_closure) }, - { be_const_key_weak(stop_basic_commissioning, -1), be_const_closure(class_Matter_Device_stop_basic_commissioning_closure) }, - { be_const_key_weak(commissioning_discriminator, 103), be_const_var(14) }, - { be_const_key_weak(MtrJoin, -1), be_const_closure(class_Matter_Device_MtrJoin_closure) }, - { be_const_key_weak(is_root_commissioning_open, 39), be_const_closure(class_Matter_Device_is_root_commissioning_open_closure) }, - { be_const_key_weak(find_plugin_by_friendly_name, -1), be_const_closure(class_Matter_Device_find_plugin_by_friendly_name_closure) }, - { be_const_key_weak(disable_bridge_mode, -1), be_const_var(29) }, - { be_const_key_weak(UDP_PORT, 36), be_const_int(5540) }, - { be_const_key_weak(k2l_num, -1), be_const_static_closure(class_Matter_Device_k2l_num_closure) }, - { be_const_key_weak(register_http_remote, 33), be_const_closure(class_Matter_Device_register_http_remote_closure) }, - { be_const_key_weak(stop, 31), be_const_closure(class_Matter_Device_stop_closure) }, - { be_const_key_weak(mdns_announce_op_discovery, 27), be_const_closure(class_Matter_Device_mdns_announce_op_discovery_closure) }, - { be_const_key_weak(plugins, -1), be_const_var(1) }, - { be_const_key_weak(ipv4only, 16), be_const_var(28) }, - { be_const_key_weak(attribute_updated, -1), be_const_closure(class_Matter_Device_attribute_updated_closure) }, - { be_const_key_weak(save_before_restart, 14), be_const_closure(class_Matter_Device_save_before_restart_closure) }, - { be_const_key_weak(VENDOR_ID, -1), be_const_int(65521) }, - { be_const_key_weak(k2l, 8), be_const_static_closure(class_Matter_Device_k2l_closure) }, - { be_const_key_weak(commissioning_iterations, 3), be_const_var(13) }, + { be_const_key_weak(k2l, -1), be_const_static_closure(class_Matter_Device_k2l_closure) }, + { be_const_key_weak(plugins_config, -1), be_const_var(3) }, + { be_const_key_weak(hostname_eth, 33), be_const_var(22) }, + { be_const_key_weak(every_250ms, 28), be_const_closure(class_Matter_Device_every_250ms_closure) }, + { be_const_key_weak(register_commands, 21), be_const_closure(class_Matter_Device_register_commands_closure) }, + { be_const_key_weak(MtrInfo, 20), be_const_closure(class_Matter_Device_MtrInfo_closure) }, { be_const_key_weak(root_passcode, -1), be_const_var(27) }, - { be_const_key_weak(start, -1), be_const_closure(class_Matter_Device_start_closure) }, + { be_const_key_weak(start_root_basic_commissioning, -1), be_const_closure(class_Matter_Device_start_root_basic_commissioning_closure) }, + { be_const_key_weak(mdns_pase_eth, -1), be_const_var(23) }, + { be_const_key_weak(started, -1), be_const_var(0) }, + { be_const_key_weak(commissioning_instance_eth, 7), be_const_var(20) }, + { be_const_key_weak(plugins_config_remotes, -1), be_const_var(4) }, + { be_const_key_weak(MtrJoin, -1), be_const_closure(class_Matter_Device_MtrJoin_closure) }, })), be_str_weak(Matter_Device) );