From e158b181d689ea63c8b849df9b4597ff4d3aee0d Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sun, 16 Apr 2023 13:52:10 +0200 Subject: [PATCH 1/7] Add SDM72D_M config --- tasmota/energy_modbus_configs/configurations.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasmota/energy_modbus_configs/configurations.md b/tasmota/energy_modbus_configs/configurations.md index 68084c46c3da..cde39a0c6852 100644 --- a/tasmota/energy_modbus_configs/configurations.md +++ b/tasmota/energy_modbus_configs/configurations.md @@ -35,6 +35,8 @@ WE517 {"Name":"WE517","Baud":9600,"Config":"8E1","Address":1,"Funct ``` SDM72 {"Name":"SDM72","Baud":9600,"Config":"8N1","Address":0x01,"Function":0x04,"Power":0x0034,"Total":0x0156,"ExportActive":0x004A,"User":[{"R":0x0502,"J":"ImportActive","G":"Import Active","U":"kWh","D":24},{"R":0x0502,"J":"ExportPower","G":"Export Power","U":"W","D":23},{"R":0x0500,"J":"ImportPower","G":"Import Power","U":"W","D":23}]} +SDM72D_M {"Name":"SDM72D-M","Baud":9600,"Config":"8N1","Address":1,"Function":4,"Voltage":[0,2,4],"Current":[6,8,10],"Power":[12,14,16],"ApparentPower":[18,20,22],"ReactivePower":[24,26,28],"Factor":[30,32,34],"Frequency":70,"ExportActive":74,"Total":342,"User":[{"R":42,"J":"AverageVoltage","G":"Average Voltage","U":"V","D":21},{"R":46,"J":"AverageCurrent","G":"Average Current","U":"A","D":22},{"R":48,"J":"TotalCurrents","G":"Total Currents","U":"A","D":22},{"R":52,"J":"TotalPower","G":"Total Power","U":"W","D":23},{"R":56,"J":"TotalApparentPower","G":"Total Apparent Power","U":"W","D":23},{"R":60,"J":"TotalReactivePower","G":"Total Reactive Power","U":"W","D":23},{"R":62,"J":"TotalPowerFactor","G":"Total Power Factor","U":"W","D":2},{"R":72,"J":"ImportActive","G":"Import Active","U":"kWh","D":24},{"R":396,"J":"DiffPower","G":"Diff Power","U":"kWh","D":24},{"R":1280,"J":"TotalImportActive","G":"Total Import Active","U":"W","D":23},{"R":1282,"J":"TotalExportActive","G":"Total Export Active","U":"W","D":23}]} + SDM120 {"Name":"SDM120","Baud":2400,"Config":"8N1","Address":1,"Function":4,"Voltage":0,"Current":6,"Power":12,"ApparentPower":18,"ReactivePower":24,"Factor":30,"Frequency":70,"Total":342,"ExportActive":0x004A,"User":[{"R":0x0048,"J":"ImportActive","G":"Import Active","U":"kWh","D":24},{"R":0x004E,"J":"ExportReactive","G":"Export Reactive","U":"kVArh","D":24},{"R":0x004C,"J":"ImportReactive","G":"Import Reactive","U":"kVArh","D":24},{"R":0x0024,"J":"PhaseAngle","G":"Phase Angle","U":"Deg","D":2}]} SDM230 {"Name":"SDM230 with two user registers","Baud":2400,"Config":"8N1","Address":1,"Function":4,"Voltage":0,"Current":6,"Power":12,"ApparentPower":18,"ReactivePower":24,"Factor":30,"Frequency":70,"Total":342,"ExportActive":0x004A,"User":[{"R":0x004E,"J":"ExportReactive","G":"Export Reactive","U":"kVArh","D":3},{"R":0x0024,"J":"PhaseAngle","G":"Phase Angle","U":"Deg","D":2}]} From 96f6f69f13e048c97d24a263418826375c45eb8c Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Sun, 16 Apr 2023 14:39:29 +0200 Subject: [PATCH 2/7] Increase TasmotaClient receive buffer Increase TasmotaClient receive buffer from 100 to 250 (#18427) --- tasmota/tasmota_xdrv_driver/xdrv_31_tasmota_client.ino | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_31_tasmota_client.ino b/tasmota/tasmota_xdrv_driver/xdrv_31_tasmota_client.ino index d15900189db4..e4d41988e684 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_31_tasmota_client.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_31_tasmota_client.ino @@ -441,7 +441,7 @@ void TasmotaClient_Show(void) { if ((TClient.type) && (TClientSettings.features.func_json_append)) { TasmotaClient_sendCmnd(CMND_GET_JSON, 0); - char buffer[100]; + char buffer[250]; // Keep size below 255 to stay within 8-bits index and len uint8_t len = TasmotaClient_receiveData(buffer, sizeof(buffer) -1); buffer[len] = '\0'; From de45a7af26264b3fee6f33614665a4fd9ea55633 Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Sun, 16 Apr 2023 17:43:49 +0200 Subject: [PATCH 3/7] Berry add `searchall()` and `matchall()` to `re` module and pre-compiled patterns (#18429) --- CHANGELOG.md | 1 + lib/libesp32/berry/default/be_re_lib.c | 38 ++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 497e507da002..9a9842195891 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ All notable changes to this project will be documented in this file. - Support for GDK101 gamma radiation sensor by Petr Novacek (#18390) - Matter support in now stabilized for Apple and Google (not tested with Alexa) - Berry `instrospect.name()` to get names of functions, modules and classes (#18422) +- Berry add `searchall()` and `matchall()` to `re` module and pre-compiled patterns ### Breaking Changed diff --git a/lib/libesp32/berry/default/be_re_lib.c b/lib/libesp32/berry/default/be_re_lib.c index 87ec811a3cfb..6bd1165919f9 100644 --- a/lib/libesp32/berry/default/be_re_lib.c +++ b/lib/libesp32/berry/default/be_re_lib.c @@ -175,6 +175,42 @@ int re_pattern_search(bvm *vm) { be_raise(vm, "type_error", NULL); } +// Berry: `re_pattern.searchall(s:string) -> list(list(string))` +int re_pattern_match_search_all(bvm *vm, bbool is_anchored) { + int32_t argc = be_top(vm); // Get the number of arguments + if (argc >= 2 && be_isstring(vm, 2)) { + const char * hay = be_tostring(vm, 2); + be_getmember(vm, 1, "_p"); + ByteProg * code = (ByteProg*) be_tocomptr(vm, -1); + int limit = -1; + if (argc >= 3) { + limit = be_toint(vm, 3); + } + + be_newobject(vm, "list"); + for (int i = limit; i != 0 && hay != NULL; i--) { + hay = be_re_match_search_run(vm, code, hay, is_anchored); + if (hay != NULL) { + be_data_push(vm, -2); // add sub list to list + } + be_pop(vm, 1); + } + be_pop(vm, 1); + be_return(vm); + } + be_raise(vm, "type_error", NULL); +} + +// Berry: `re_pattern.searchall(s:string) -> list(list(string))` +int re_pattern_search_all(bvm *vm) { + return re_pattern_match_search_all(vm, bfalse); +} + +// Berry: `re_pattern.matchall(s:string) -> list(list(string))` +int re_pattern_match_all(bvm *vm) { + return re_pattern_match_search_all(vm, btrue); +} + // Berry: `re_pattern.match(s:string) -> list(string)` int re_pattern_match(bvm *vm) { int32_t argc = be_top(vm); // Get the number of arguments @@ -277,7 +313,9 @@ module re (scope: global) { class be_class_re_pattern (scope: global, name: re_pattern) { _p, var search, func(re_pattern_search) + searchall, func(re_pattern_search_all) match, func(re_pattern_match) + matchall, func(re_pattern_match_all) split, func(re_pattern_split) } @const_object_info_end */ From 82e94108d4c1dc9ec2a23180e6675eadd4766c61 Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Sun, 16 Apr 2023 22:09:09 +0200 Subject: [PATCH 4/7] Matter automatically exposes all detected Temperature sensors (#18430) * Matter automatically exposes all detected Temperature sensors * Read sensors every 30 seconds * Fix sensor numbering --- CHANGELOG.md | 1 + .../src/embedded/Matter_Commissioning.be | 24 +- .../src/embedded/Matter_Device.be | 31 +- .../src/embedded/Matter_IM_Message.be | 4 +- .../solidified_Matter_Commissioning.h | 100 +- .../src/solidify/solidified_Matter_Device.h | 4824 +++++++++-------- .../solidify/solidified_Matter_IM_Message.h | 44 +- 7 files changed, 2612 insertions(+), 2416 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a9842195891..66b5cb900ebf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file. - Matter support in now stabilized for Apple and Google (not tested with Alexa) - Berry `instrospect.name()` to get names of functions, modules and classes (#18422) - Berry add `searchall()` and `matchall()` to `re` module and pre-compiled patterns +- Matter automatically exposes all detected Temperature sensors ### Breaking Changed diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Commissioning.be b/lib/libesp32/berry_matter/src/embedded/Matter_Commissioning.be index 9f3a8d481945..87c9b28811bf 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Commissioning.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Commissioning.be @@ -114,7 +114,7 @@ class Matter_Commisioning_Context if msg.opcode != 0x20 || msg.local_session_id != 0 || msg.protocol_id != 0 tasmota.log("MTR: invalid PBKDFParamRequest message", 2) tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 2) - var raw = self.send_status_report(msg, 0x01, 0x0000, 0x0002, false) + self.send_status_report(msg, 0x01, 0x0000, 0x0002, false) return false end var pbkdfparamreq = matter.PBKDFParamRequest().parse(msg.raw, msg.app_payload_idx) @@ -126,7 +126,7 @@ class Matter_Commisioning_Context if pbkdfparamreq.passcodeId != 0 tasmota.log("MTR: non-zero passcode id", 2) tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 2) - var raw = self.send_status_report(msg, 0x01, 0x0000, 0x0002, false) + self.send_status_report(msg, 0x01, 0x0000, 0x0002, false) return false end @@ -164,7 +164,7 @@ class Matter_Commisioning_Context if msg.opcode != 0x22 || msg.local_session_id != 0 || msg.protocol_id != 0 tasmota.log("MTR: invalid Pake1 message", 2) tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 2) - var raw = self.send_status_report(msg, 0x01, 0x0000, 0x0002, false) + self.send_status_report(msg, 0x01, 0x0000, 0x0002, false) return false end var pake1 = matter.Pake1().parse(msg.raw, msg.app_payload_idx) @@ -247,7 +247,7 @@ class Matter_Commisioning_Context if msg.opcode != 0x24 || msg.local_session_id != 0 || msg.protocol_id != 0 tasmota.log("MTR: invalid Pake3 message", 2) tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 2) - var raw = self.send_status_report(msg, 0x01, 0x0000, 0x0002, false) + self.send_status_report(msg, 0x01, 0x0000, 0x0002, false) return false end var pake3 = matter.Pake3().parse(msg.raw, msg.app_payload_idx) @@ -259,7 +259,7 @@ class Matter_Commisioning_Context if cA != session.__spake_cA tasmota.log("MTR: invalid cA received", 2) tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 2) - var raw = self.send_status_report(msg, 0x01, 0x0000, 0x0002, false) + self.send_status_report(msg, 0x01, 0x0000, 0x0002, false) return false end @@ -278,7 +278,7 @@ class Matter_Commisioning_Context # tasmota.log("MTR: ******************************", 4) # StatusReport(GeneralCode: SUCCESS, ProtocolId: SECURE_CHANNEL, ProtocolCode: SESSION_ESTABLISHMENT_SUCCESS) - var raw = self.send_status_report(msg, 0x00, 0x0000, 0x0000, false) + self.send_status_report(msg, 0x00, 0x0000, 0x0000, false) self.add_session(session.__future_local_session_id, session.__future_initiator_session_id, I2RKey, R2IKey, AttestationChallenge, created) return true @@ -315,7 +315,7 @@ class Matter_Commisioning_Context if msg.opcode != 0x30 || msg.local_session_id != 0 || msg.protocol_id != 0 # tasmota.log("MTR: invalid Sigma1 message", 2) tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 2) - var raw = self.send_status_report(msg, 0x01, 0x0000, 0x0002, false) + self.send_status_report(msg, 0x01, 0x0000, 0x0002, false) return false end var sigma1 = matter.Sigma1().parse(msg.raw, msg.app_payload_idx) @@ -445,7 +445,7 @@ class Matter_Commisioning_Context if session == nil || session._fabric == nil tasmota.log("MTR: StatusReport(GeneralCode: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: NO_SHARED_TRUST_ROOTS)", 2) - var raw = self.send_status_report(msg, 0x01, 0x0000, 0x0001, false) + self.send_status_report(msg, 0x01, 0x0000, 0x0001, false) return false end session._source_node_id = msg.source_node_id @@ -539,7 +539,7 @@ class Matter_Commisioning_Context # sanity checks if msg.opcode != 0x32 || msg.local_session_id != 0 || msg.protocol_id != 0 tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 2) - var raw = self.send_status_report(msg, 0x01, 0x0000, 0x0002, false) + self.send_status_report(msg, 0x01, 0x0000, 0x0002, false) return false end var session = msg.session @@ -576,7 +576,7 @@ class Matter_Commisioning_Context if TBETag3 != tag tasmota.log("MTR: Tag don't match", 2) tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 2) - var raw = self.send_status_report(msg, 0x01, 0x0000, 0x0002, false) + self.send_status_report(msg, 0x01, 0x0000, 0x0002, false) return false end @@ -618,7 +618,7 @@ class Matter_Commisioning_Context tasmota.log("MTR: sigma3_tbs does not have a valid signature", 2) tasmota.log("MTR: ******************* Invalid signature, trying anyways", 2) # tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 2) - # var raw = self.send_status_report(msg, 0x01, 0x0000, 0x0002, false) + # self.send_status_report(msg, 0x01, 0x0000, 0x0002, false) # return false else # All good, compute new keys @@ -654,7 +654,7 @@ class Matter_Commisioning_Context tasmota.log("MTR: ******************************", 4) # StatusReport(GeneralCode: SUCCESS, ProtocolId: SECURE_CHANNEL, ProtocolCode: SESSION_ESTABLISHMENT_SUCCESS) - var raw = self.send_status_report(msg, 0x00, 0x0000, 0x0000, true) + self.send_status_report(msg, 0x00, 0x0000, 0x0000, true) session.close() session.set_keys(i2r, r2i, ac, created) diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Device.be b/lib/libesp32/berry_matter/src/embedded/Matter_Device.be index 467bb1cf29f8..fddeea62eaa0 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Device.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Device.be @@ -116,8 +116,8 @@ class Matter_Device # autoconfigure other plugins self.autoconf_device() - # for now read sensors every 5 seconds - tasmota.add_cron("*/5 * * * * *", def () self._trigger_read_sensors() end, "matter_sensors_5s") + # for now read sensors every 30 seconds + tasmota.add_cron("*/30 * * * * *", def () self._trigger_read_sensors() end, "matter_sensors_30s") self._start_udp(self.UDP_PORT) @@ -908,6 +908,7 @@ class Matter_Device # def autoconf_device() import string + import json # check if we have a light var endpoint = 1 var light_present = false @@ -944,7 +945,33 @@ class Matter_Device endpoint += 1 end + # auto-detect sensors + var sensors = json.load(tasmota.read_sensors()) + + # temperature sensors + # they are starting at endpoint `32..39` (8 max) + endpoint = 0x20 + for k1:self.k2l(sensors) + var sensor_2 = sensors[k1] + if isinstance(sensor_2, map) && sensor_2.contains("Temperature") + var temp_rule = k1 + "#Temperature" + self.plugins.push(matter.Plugin_Temp_Sensor(self, endpoint, temp_rule)) + tasmota.log(string.format("MTR: Endpoint:%i Temperature (%s)", endpoint, temp_rule), 2) + endpoint += 1 + end + if endpoint > 0x28 break end + end + end + + # get keys of a map in sorted order + static def k2l(m) var l=[] if m==nil return l end for k:m.keys() l.push(k) end + for i:1..size(l)-1 var k = l[i] var j = i while (j > 0) && (l[j-1] > k) l[j] = l[j-1] j -= 1 end l[j] = k end return l + end + + + # keys to llist + end matter.Device = Matter_Device 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 a24d7548efc9..4b3f3f2199d0 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_IM_Message.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_IM_Message.be @@ -445,10 +445,10 @@ class Matter_IM_SubscribeResponse : Matter_IM_ReportData # Status ok received def status_ok_received(msg) - # import string + import string # tasmota.log(string.format("MTR: IM_SubscribeResponse status_ok_received sub=%i exch=%i ack=%i last_counter=%i", self.sub.subscription_id, self.resp.exchange_id, msg.ack_message_counter ? msg.ack_message_counter : 0 , self.last_counter), 3) # once we receive ack, open flow for subscriptions - # tasmota.log(string.format("MTR: >Sub_OK (%6i) sub=%i", msg.session.local_session_id, self.sub.subscription_id), 2) + tasmota.log(string.format("MTR: >Sub_OK (%6i) sub=%i", msg.session.local_session_id, self.sub.subscription_id), 2) return super(self).status_ok_received(msg) end diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Commissioning.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Commissioning.h index 0dced5652eb8..af2acb9faef5 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Commissioning.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Commissioning.h @@ -352,8 +352,8 @@ be_local_closure(Matter_Commisioning_Context_parse_PBKDFParamRequest, /* name 0x5828000A, // 001B LDCONST R10 K10 0x502C0000, // 001C LDBOOL R11 0 0 0x7C140C00, // 001D CALL R5 6 - 0x50180000, // 001E LDBOOL R6 0 0 - 0x80040C00, // 001F RET 1 R6 + 0x50140000, // 001E LDBOOL R5 0 0 + 0x80040A00, // 001F RET 1 R5 0xB8161C00, // 0020 GETNGBL R5 K14 0x8C140B0F, // 0021 GETMET R5 R5 K15 0x7C140200, // 0022 CALL R5 1 @@ -389,8 +389,8 @@ be_local_closure(Matter_Commisioning_Context_parse_PBKDFParamRequest, /* name 0x582C000A, // 0040 LDCONST R11 K10 0x50300000, // 0041 LDBOOL R12 0 0 0x7C180C00, // 0042 CALL R6 6 - 0x501C0000, // 0043 LDBOOL R7 0 0 - 0x80040E00, // 0044 RET 1 R7 + 0x50180000, // 0043 LDBOOL R6 0 0 + 0x80040C00, // 0044 RET 1 R6 0x88180B19, // 0045 GETMBR R6 R5 K25 0x90123006, // 0046 SETMBR R4 K24 R6 0x8818011B, // 0047 GETMBR R6 R0 K27 @@ -597,8 +597,8 @@ be_local_closure(Matter_Commisioning_Context_parse_Pake1, /* name */ 0x58240009, // 001A LDCONST R9 K9 0x50280000, // 001B LDBOOL R10 0 0 0x7C100C00, // 001C CALL R4 6 - 0x50140000, // 001D LDBOOL R5 0 0 - 0x80040A00, // 001E RET 1 R5 + 0x50100000, // 001D LDBOOL R4 0 0 + 0x80040800, // 001E RET 1 R4 0xB8121A00, // 001F GETNGBL R4 K13 0x8C10090E, // 0020 GETMET R4 R4 K14 0x7C100200, // 0021 CALL R4 1 @@ -716,7 +716,7 @@ be_local_closure(Matter_Commisioning_Context_init, /* name */ ********************************************************************/ be_local_closure(Matter_Commisioning_Context_parse_Pake3, /* name */ be_nested_proto( - 20, /* nstack */ + 19, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -789,8 +789,8 @@ be_local_closure(Matter_Commisioning_Context_parse_Pake3, /* name */ 0x58240009, // 001A LDCONST R9 K9 0x50280000, // 001B LDBOOL R10 0 0 0x7C100C00, // 001C CALL R4 6 - 0x50140000, // 001D LDBOOL R5 0 0 - 0x80040A00, // 001E RET 1 R5 + 0x50100000, // 001D LDBOOL R4 0 0 + 0x80040800, // 001E RET 1 R4 0xB8121A00, // 001F GETNGBL R4 K13 0x8C10090E, // 0020 GETMET R4 R4 K14 0x7C100200, // 0021 CALL R4 1 @@ -819,8 +819,8 @@ be_local_closure(Matter_Commisioning_Context_parse_Pake3, /* name */ 0x582C0009, // 0038 LDCONST R11 K9 0x50300000, // 0039 LDBOOL R12 0 0 0x7C180C00, // 003A CALL R6 6 - 0x501C0000, // 003B LDBOOL R7 0 0 - 0x80040E00, // 003C RET 1 R7 + 0x50180000, // 003B LDBOOL R6 0 0 + 0x80040C00, // 003C RET 1 R6 0xB81A0C00, // 003D GETNGBL R6 K6 0x8C180D15, // 003E GETMET R6 R6 K21 0x7C180200, // 003F CALL R6 1 @@ -856,16 +856,16 @@ be_local_closure(Matter_Commisioning_Context_parse_Pake3, /* name */ 0x58400004, // 005D LDCONST R16 K4 0x50440000, // 005E LDBOOL R17 0 0 0x7C2C0C00, // 005F CALL R11 6 - 0x8C30011C, // 0060 GETMET R12 R0 K28 - 0x8838071D, // 0061 GETMBR R14 R3 K29 - 0x883C071E, // 0062 GETMBR R15 R3 K30 - 0x5C401000, // 0063 MOVE R16 R8 - 0x5C441200, // 0064 MOVE R17 R9 - 0x5C481400, // 0065 MOVE R18 R10 - 0x5C4C0C00, // 0066 MOVE R19 R6 - 0x7C300E00, // 0067 CALL R12 7 - 0x50300200, // 0068 LDBOOL R12 1 0 - 0x80041800, // 0069 RET 1 R12 + 0x8C2C011C, // 0060 GETMET R11 R0 K28 + 0x8834071D, // 0061 GETMBR R13 R3 K29 + 0x8838071E, // 0062 GETMBR R14 R3 K30 + 0x5C3C1000, // 0063 MOVE R15 R8 + 0x5C401200, // 0064 MOVE R16 R9 + 0x5C441400, // 0065 MOVE R17 R10 + 0x5C480C00, // 0066 MOVE R18 R6 + 0x7C2C0E00, // 0067 CALL R11 7 + 0x502C0200, // 0068 LDBOOL R11 1 0 + 0x80041600, // 0069 RET 1 R11 }) ) ); @@ -1014,8 +1014,8 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma3, /* name */ 0x58200008, // 0014 LDCONST R8 K8 0x50240000, // 0015 LDBOOL R9 0 0 0x7C0C0C00, // 0016 CALL R3 6 - 0x50100000, // 0017 LDBOOL R4 0 0 - 0x80040800, // 0018 RET 1 R4 + 0x500C0000, // 0017 LDBOOL R3 0 0 + 0x80040600, // 0018 RET 1 R3 0x880C030B, // 0019 GETMBR R3 R1 K11 0xB8121800, // 001A GETNGBL R4 K12 0x8C10090D, // 001B GETMET R4 R4 K13 @@ -1197,8 +1197,8 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma3, /* name */ 0x58480008, // 00CB LDCONST R18 K8 0x504C0000, // 00CC LDBOOL R19 0 0 0x7C340C00, // 00CD CALL R13 6 - 0x50380000, // 00CE LDBOOL R14 0 0 - 0x80041C00, // 00CF RET 1 R14 + 0x50340000, // 00CE LDBOOL R13 0 0 + 0x80041A00, // 00CF RET 1 R13 0xB8361800, // 00D0 GETNGBL R13 K12 0x88341B31, // 00D1 GETMBR R13 R13 K49 0x8C341B0E, // 00D2 GETMET R13 R13 K14 @@ -1523,28 +1523,28 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma3, /* name */ 0x58880003, // 0211 LDCONST R34 K3 0x508C0200, // 0212 LDBOOL R35 1 0 0x7C740C00, // 0213 CALL R29 6 - 0x8C78075D, // 0214 GETMET R30 R3 K93 - 0x7C780200, // 0215 CALL R30 1 - 0x8C78075E, // 0216 GETMET R30 R3 K94 - 0x5C803200, // 0217 MOVE R32 R25 - 0x5C843400, // 0218 MOVE R33 R26 - 0x5C883600, // 0219 MOVE R34 R27 - 0x5C8C3800, // 021A MOVE R35 R28 - 0x7C780A00, // 021B CALL R30 5 + 0x8C74075D, // 0214 GETMET R29 R3 K93 + 0x7C740200, // 0215 CALL R29 1 + 0x8C74075E, // 0216 GETMET R29 R3 K94 + 0x5C7C3200, // 0217 MOVE R31 R25 + 0x5C803400, // 0218 MOVE R32 R26 + 0x5C843600, // 0219 MOVE R33 R27 + 0x5C883800, // 021A MOVE R34 R28 + 0x7C740A00, // 021B CALL R29 5 0x900EBF03, // 021C SETMBR R3 K95 K3 - 0x8C780760, // 021D GETMET R30 R3 K96 - 0x7C780200, // 021E CALL R30 1 - 0x8C780761, // 021F GETMET R30 R3 K97 - 0x50800200, // 0220 LDBOOL R32 1 0 - 0x7C780400, // 0221 CALL R30 2 - 0x8C780762, // 0222 GETMET R30 R3 K98 - 0x7C780200, // 0223 CALL R30 1 - 0x8C780763, // 0224 GETMET R30 R3 K99 - 0x7C780200, // 0225 CALL R30 1 - 0x8C780764, // 0226 GETMET R30 R3 K100 - 0x7C780200, // 0227 CALL R30 1 - 0x50780200, // 0228 LDBOOL R30 1 0 - 0x80043C00, // 0229 RET 1 R30 + 0x8C740760, // 021D GETMET R29 R3 K96 + 0x7C740200, // 021E CALL R29 1 + 0x8C740761, // 021F GETMET R29 R3 K97 + 0x507C0200, // 0220 LDBOOL R31 1 0 + 0x7C740400, // 0221 CALL R29 2 + 0x8C740762, // 0222 GETMET R29 R3 K98 + 0x7C740200, // 0223 CALL R29 1 + 0x8C740763, // 0224 GETMET R29 R3 K99 + 0x7C740200, // 0225 CALL R29 1 + 0x8C740764, // 0226 GETMET R29 R3 K100 + 0x7C740200, // 0227 CALL R29 1 + 0x50740200, // 0228 LDBOOL R29 1 0 + 0x80043A00, // 0229 RET 1 R29 }) ) ); @@ -1882,8 +1882,8 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */ 0x5828000A, // 0016 LDCONST R10 K10 0x502C0000, // 0017 LDBOOL R11 0 0 0x7C140C00, // 0018 CALL R5 6 - 0x50180000, // 0019 LDBOOL R6 0 0 - 0x80040C00, // 001A RET 1 R6 + 0x50140000, // 0019 LDBOOL R5 0 0 + 0x80040A00, // 001A RET 1 R5 0xB8161A00, // 001B GETNGBL R5 K13 0x8C140B0E, // 001C GETMET R5 R5 K14 0x7C140200, // 001D CALL R5 1 @@ -2299,8 +2299,8 @@ be_local_closure(Matter_Commisioning_Context_parse_Sigma1, /* name */ 0x5838000C, // 01B7 LDCONST R14 K12 0x503C0000, // 01B8 LDBOOL R15 0 0 0x7C240C00, // 01B9 CALL R9 6 - 0x50280000, // 01BA LDBOOL R10 0 0 - 0x80041400, // 01BB RET 1 R10 + 0x50240000, // 01BA LDBOOL R9 0 0 + 0x80041200, // 01BB RET 1 R9 0x88240331, // 01BC GETMBR R9 R1 K49 0x90126009, // 01BD SETMBR R4 K48 R9 0x8C240932, // 01BE GETMET R9 R4 K50 diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Device.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Device.h index b44ecd8899c8..c7b55883bba0 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Device.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Device.h @@ -57,9 +57,9 @@ be_local_closure(Matter_Device_start_operational_discovery, /* name */ /******************************************************************** -** Solidified function: _init_basic_commissioning +** Solidified function: is_commissioning_open ********************************************************************/ -be_local_closure(Matter_Device__init_basic_commissioning, /* name */ +be_local_closure(Matter_Device_is_commissioning_open, /* name */ be_nested_proto( 3, /* nstack */ 1, /* argc */ @@ -69,23 +69,47 @@ be_local_closure(Matter_Device__init_basic_commissioning, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 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), + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(commissioning_open), }), - be_str_weak(_init_basic_commissioning), + be_str_weak(is_commissioning_open), &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ + ( &(const binstruction[ 4]) { /* 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 + 0x4C080000, // 0001 LDNIL R2 + 0x20040202, // 0002 NE R1 R1 R2 + 0x80040200, // 0003 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: received_ack +********************************************************************/ +be_local_closure(Matter_Device_received_ack, /* name */ + be_nested_proto( + 5, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 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 }) ) ); @@ -156,11 +180,11 @@ be_local_closure(Matter_Device_compute_manual_pairing_code, /* name */ /******************************************************************** -** Solidified function: _trigger_read_sensors +** Solidified function: mdns_announce_PASE ********************************************************************/ -be_local_closure(Matter_Device__trigger_read_sensors, /* name */ +be_local_closure(Matter_Device_mdns_announce_PASE, /* name */ be_nested_proto( - 8, /* nstack */ + 16, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -168,1231 +192,79 @@ be_local_closure(Matter_Device__trigger_read_sensors, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[11]) { /* 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(load), - /* K4 */ be_const_int(0), - /* K5 */ be_nested_str_weak(plugins), - /* K6 */ be_nested_str_weak(parse_sensors), - /* K7 */ be_const_int(1), - /* K8 */ be_nested_str_weak(log), - /* K9 */ be_nested_str_weak(MTR_X3A_X20unable_X20to_X20parse_X20read_sensors_X3A_X20), - /* K10 */ be_const_int(3), + ( &(const bvalue[44]) { /* constants */ + /* K0 */ be_nested_str_weak(mdns), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(crypto), + /* K3 */ be_nested_str_weak(VP), + /* K4 */ be_nested_str_weak(vendorid), + /* K5 */ be_nested_str_weak(_X2B), + /* K6 */ be_nested_str_weak(productid), + /* K7 */ be_nested_str_weak(D), + /* K8 */ be_nested_str_weak(commissioning_discriminator), + /* K9 */ be_nested_str_weak(CM), + /* K10 */ be_const_int(1), + /* K11 */ be_nested_str_weak(T), + /* K12 */ be_const_int(0), + /* K13 */ be_nested_str_weak(SII), + /* K14 */ be_nested_str_weak(SAI), + /* K15 */ be_nested_str_weak(commissioning_instance_wifi), + /* K16 */ be_nested_str_weak(random), + /* K17 */ be_nested_str_weak(tohex), + /* K18 */ be_nested_str_weak(commissioning_instance_eth), + /* K19 */ be_nested_str_weak(hostname_eth), + /* K20 */ be_nested_str_weak(tasmota), + /* K21 */ be_nested_str_weak(log), + /* K22 */ be_nested_str_weak(format), + /* K23 */ be_nested_str_weak(MTR_X3A_X20calling_X20mdns_X2Eadd_service_X28_X25s_X2C_X20_X25s_X2C_X20_X25i_X2C_X20_X25s_X2C_X20_X25s_X2C_X20_X25s_X29), + /* K24 */ be_nested_str_weak(_matterc), + /* K25 */ be_nested_str_weak(_udp), + /* K26 */ be_const_int(3), + /* K27 */ be_nested_str_weak(add_service), + /* K28 */ be_nested_str_weak(mdns_pase_eth), + /* K29 */ be_nested_str_weak(MTR_X3A_X20announce_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27_X20ptr_X20to_X20_X60_X25s_X2Elocal_X60), + /* K30 */ be_nested_str_weak(eth), + /* K31 */ be_const_int(2), + /* K32 */ be_nested_str_weak(_L), + /* K33 */ be_nested_str_weak(MTR_X3A_X20adding_X20subtype_X3A_X20), + /* K34 */ be_nested_str_weak(add_subtype), + /* K35 */ be_nested_str_weak(_S), + /* K36 */ be_nested_str_weak(_V), + /* K37 */ be_nested_str_weak(_CM1), + /* K38 */ be_nested_str_weak(hostname_wifi), + /* K39 */ be_nested_str_weak(mdns_pase_wifi), + /* K40 */ be_nested_str_weak(MTR_X3A_X20starting_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27_X20ptr_X20to_X20_X60_X25s_X2Elocal_X60), + /* K41 */ be_nested_str_weak(wifi), + /* K42 */ be_nested_str_weak(MTR_X3A_X20Exception), + /* K43 */ be_nested_str_weak(_X7C), }), - be_str_weak(_trigger_read_sensors), + be_str_weak(mdns_announce_PASE), &be_const_str_solidified, - ( &(const binstruction[37]) { /* code */ + ( &(const binstruction[267]) { /* code */ 0xA4060000, // 0000 IMPORT R1 K0 - 0xB80A0200, // 0001 GETNGBL R2 K1 - 0x8C080502, // 0002 GETMET R2 R2 K2 - 0x7C080200, // 0003 CALL R2 1 - 0x4C0C0000, // 0004 LDNIL R3 - 0x1C0C0403, // 0005 EQ R3 R2 R3 - 0x780E0000, // 0006 JMPF R3 #0008 - 0x80000600, // 0007 RET 0 - 0x8C0C0303, // 0008 GETMET R3 R1 K3 - 0x5C140400, // 0009 MOVE R5 R2 - 0x7C0C0400, // 000A CALL R3 2 - 0x4C100000, // 000B LDNIL R4 - 0x20100604, // 000C NE R4 R3 R4 - 0x7812000D, // 000D JMPF R4 #001C - 0x58100004, // 000E LDCONST R4 K4 - 0x6014000C, // 000F GETGBL R5 G12 - 0x88180105, // 0010 GETMBR R6 R0 K5 - 0x7C140200, // 0011 CALL R5 1 - 0x14140805, // 0012 LT R5 R4 R5 - 0x78160006, // 0013 JMPF R5 #001B - 0x88140105, // 0014 GETMBR R5 R0 K5 - 0x94140A04, // 0015 GETIDX R5 R5 R4 - 0x8C140B06, // 0016 GETMET R5 R5 K6 - 0x5C1C0600, // 0017 MOVE R7 R3 - 0x7C140400, // 0018 CALL R5 2 - 0x00100907, // 0019 ADD R4 R4 K7 - 0x7001FFF3, // 001A JMP #000F - 0x70020007, // 001B JMP #0024 - 0xB8120200, // 001C GETNGBL R4 K1 - 0x8C100908, // 001D GETMET R4 R4 K8 - 0x60180008, // 001E GETGBL R6 G8 - 0x5C1C0400, // 001F MOVE R7 R2 - 0x7C180200, // 0020 CALL R6 1 - 0x001A1206, // 0021 ADD R6 K9 R6 - 0x581C000A, // 0022 LDCONST R7 K10 - 0x7C100600, // 0023 CALL R4 3 - 0x80000000, // 0024 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: start -********************************************************************/ -be_local_closure(Matter_Device_start, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 1]) { - be_nested_proto( - 2, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(_trigger_read_sensors), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x7C000200, // 0002 CALL R0 1 - 0x80000000, // 0003 RET 0 - }) - ), - }), - 1, /* has constants */ - ( &(const bvalue[14]) { /* constants */ - /* K0 */ be_nested_str_weak(started), - /* 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(autoconf_device), - /* K7 */ be_nested_str_weak(tasmota), - /* K8 */ be_nested_str_weak(add_cron), - /* K9 */ be_nested_str_weak(_X2A_X2F5_X20_X2A_X20_X2A_X20_X2A_X20_X2A_X20_X2A), - /* K10 */ be_nested_str_weak(matter_sensors_5s), - /* K11 */ be_nested_str_weak(_start_udp), - /* K12 */ be_nested_str_weak(UDP_PORT), - /* K13 */ be_nested_str_weak(start_mdns_announce_hostnames), - }), - be_str_weak(start), - &be_const_str_solidified, - ( &(const binstruction[28]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x78060000, // 0001 JMPF R1 #0003 - 0x80000200, // 0002 RET 0 - 0x88040101, // 0003 GETMBR R1 R0 K1 - 0x8C040302, // 0004 GETMET R1 R1 K2 - 0xB80E0600, // 0005 GETNGBL R3 K3 - 0x8C0C0704, // 0006 GETMET R3 R3 K4 - 0x5C140000, // 0007 MOVE R5 R0 - 0x58180005, // 0008 LDCONST R6 K5 - 0x7C0C0600, // 0009 CALL R3 3 - 0x7C040400, // 000A CALL R1 2 - 0x8C040106, // 000B GETMET R1 R0 K6 - 0x7C040200, // 000C CALL R1 1 - 0xB8060E00, // 000D GETNGBL R1 K7 - 0x8C040308, // 000E GETMET R1 R1 K8 - 0x580C0009, // 000F LDCONST R3 K9 - 0x84100000, // 0010 CLOSURE R4 P0 - 0x5814000A, // 0011 LDCONST R5 K10 - 0x7C040800, // 0012 CALL R1 4 - 0x8C04010B, // 0013 GETMET R1 R0 K11 - 0x880C010C, // 0014 GETMBR R3 R0 K12 - 0x7C040400, // 0015 CALL R1 2 - 0x8C04010D, // 0016 GETMET R1 R0 K13 - 0x7C040200, // 0017 CALL R1 1 - 0x50040200, // 0018 LDBOOL R1 1 0 - 0x90020001, // 0019 SETMBR R0 K0 R1 - 0xA0000000, // 001A CLOSE R0 - 0x80000000, // 001B RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: stop_basic_commissioning -********************************************************************/ -be_local_closure(Matter_Device_stop_basic_commissioning, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 8]) { /* constants */ - /* K0 */ be_nested_str_weak(commissioning_open), - /* K1 */ be_nested_str_weak(mdns_remove_PASE), - /* K2 */ be_nested_str_weak(commissioning_iterations), - /* K3 */ be_nested_str_weak(commissioning_discriminator), - /* K4 */ be_nested_str_weak(commissioning_salt), - /* K5 */ be_nested_str_weak(commissioning_w0), - /* K6 */ be_nested_str_weak(commissioning_L), - /* K7 */ be_nested_str_weak(commissioning_admin_fabric), - }), - be_str_weak(stop_basic_commissioning), - &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ - 0x4C040000, // 0000 LDNIL R1 - 0x90020001, // 0001 SETMBR R0 K0 R1 - 0x8C040101, // 0002 GETMET R1 R0 K1 - 0x7C040200, // 0003 CALL R1 1 - 0x4C040000, // 0004 LDNIL R1 - 0x90020401, // 0005 SETMBR R0 K2 R1 - 0x4C040000, // 0006 LDNIL R1 - 0x90020601, // 0007 SETMBR R0 K3 R1 - 0x4C040000, // 0008 LDNIL R1 - 0x90020801, // 0009 SETMBR R0 K4 R1 - 0x4C040000, // 000A LDNIL R1 - 0x90020A01, // 000B SETMBR R0 K5 R1 - 0x4C040000, // 000C LDNIL R1 - 0x90020C01, // 000D SETMBR R0 K6 R1 - 0x4C040000, // 000E LDNIL R1 - 0x90020E01, // 000F SETMBR R0 K7 R1 - 0x80000000, // 0010 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: start_operational_discovery_deferred -********************************************************************/ -be_local_closure(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*[ 1]) { - 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, /* no sub protos */ - 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 - }) - ), - }), - 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: remove_fabric -********************************************************************/ -be_local_closure(Matter_Device_remove_fabric, /* name */ - be_nested_proto( - 9, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[12]) { /* constants */ - /* K0 */ be_nested_str_weak(sessions), - /* K1 */ be_nested_str_weak(find_children_fabrics), - /* K2 */ be_nested_str_weak(get_fabric_index), - /* K3 */ be_nested_str_weak(find_fabric_by_index), - /* K4 */ be_nested_str_weak(message_handler), - /* K5 */ be_nested_str_weak(im), - /* K6 */ be_nested_str_weak(subs_shop), - /* K7 */ be_nested_str_weak(remove_by_fabric), - /* K8 */ be_nested_str_weak(mdns_remove_op_discovery), - /* K9 */ be_nested_str_weak(remove_fabric), - /* K10 */ be_nested_str_weak(stop_iteration), - /* K11 */ be_nested_str_weak(save_fabrics), - }), - be_str_weak(remove_fabric), - &be_const_str_solidified, - ( &(const binstruction[43]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x8C100302, // 0002 GETMET R4 R1 K2 - 0x7C100200, // 0003 CALL R4 1 - 0x7C080400, // 0004 CALL R2 2 - 0x4C0C0000, // 0005 LDNIL R3 - 0x1C0C0403, // 0006 EQ R3 R2 R3 - 0x780E0000, // 0007 JMPF R3 #0009 - 0x80000600, // 0008 RET 0 - 0x600C0010, // 0009 GETGBL R3 G16 - 0x5C100400, // 000A MOVE R4 R2 - 0x7C0C0200, // 000B CALL R3 1 - 0xA8020016, // 000C EXBLK 0 #0024 - 0x5C100600, // 000D MOVE R4 R3 - 0x7C100000, // 000E CALL R4 0 - 0x88140100, // 000F GETMBR R5 R0 K0 - 0x8C140B03, // 0010 GETMET R5 R5 K3 - 0x5C1C0800, // 0011 MOVE R7 R4 - 0x7C140400, // 0012 CALL R5 2 - 0x4C180000, // 0013 LDNIL R6 - 0x20180A06, // 0014 NE R6 R5 R6 - 0x781A000C, // 0015 JMPF R6 #0023 - 0x88180104, // 0016 GETMBR R6 R0 K4 - 0x88180D05, // 0017 GETMBR R6 R6 K5 - 0x88180D06, // 0018 GETMBR R6 R6 K6 - 0x8C180D07, // 0019 GETMET R6 R6 K7 - 0x5C200A00, // 001A MOVE R8 R5 - 0x7C180400, // 001B CALL R6 2 - 0x8C180108, // 001C GETMET R6 R0 K8 - 0x5C200A00, // 001D MOVE R8 R5 - 0x7C180400, // 001E CALL R6 2 - 0x88180100, // 001F GETMBR R6 R0 K0 - 0x8C180D09, // 0020 GETMET R6 R6 K9 - 0x5C200A00, // 0021 MOVE R8 R5 - 0x7C180400, // 0022 CALL R6 2 - 0x7001FFE8, // 0023 JMP #000D - 0x580C000A, // 0024 LDCONST R3 K10 - 0xAC0C0200, // 0025 CATCH R3 1 0 - 0xB0080000, // 0026 RAISE 2 R0 R0 - 0x880C0100, // 0027 GETMBR R3 R0 K0 - 0x8C0C070B, // 0028 GETMET R3 R3 K11 - 0x7C0C0200, // 0029 CALL R3 1 - 0x80000000, // 002A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: received_ack -********************************************************************/ -be_local_closure(Matter_Device_received_ack, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 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: start_root_basic_commissioning -********************************************************************/ -be_local_closure(Matter_Device_start_root_basic_commissioning, /* name */ - be_nested_proto( - 13, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[19]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(PASE_TIMEOUT), - /* K2 */ be_nested_str_weak(compute_manual_pairing_code), - /* K3 */ be_nested_str_weak(tasmota), - /* K4 */ be_nested_str_weak(log), - /* K5 */ be_nested_str_weak(format), - /* K6 */ be_nested_str_weak(MTR_X3A_X20Manual_X20pairing_X20code_X3A_X20_X25s_X2D_X25s_X2D_X25s), - /* K7 */ be_const_int(0), - /* K8 */ be_const_int(3), - /* K9 */ be_const_int(2147483647), - /* K10 */ be_const_int(2), - /* K11 */ be_nested_str_weak(_compute_pbkdf), - /* K12 */ be_nested_str_weak(root_passcode), - /* K13 */ be_nested_str_weak(root_iterations), - /* K14 */ be_nested_str_weak(root_salt), - /* K15 */ be_nested_str_weak(start_basic_commissioning), - /* K16 */ be_nested_str_weak(root_discriminator), - /* K17 */ be_nested_str_weak(root_w0), - /* K18 */ be_nested_str_weak(root_L), - }), - be_str_weak(start_root_basic_commissioning), - &be_const_str_solidified, - ( &(const binstruction[38]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0x4C0C0000, // 0001 LDNIL R3 - 0x1C0C0203, // 0002 EQ R3 R1 R3 - 0x780E0000, // 0003 JMPF R3 #0005 - 0x88040101, // 0004 GETMBR R1 R0 K1 - 0x8C0C0102, // 0005 GETMET R3 R0 K2 - 0x7C0C0200, // 0006 CALL R3 1 - 0xB8120600, // 0007 GETNGBL R4 K3 - 0x8C100904, // 0008 GETMET R4 R4 K4 - 0x8C180505, // 0009 GETMET R6 R2 K5 - 0x58200006, // 000A LDCONST R8 K6 - 0x40260F08, // 000B CONNECT R9 K7 K8 - 0x94240609, // 000C GETIDX R9 R3 R9 - 0x542A0003, // 000D LDINT R10 4 - 0x542E0005, // 000E LDINT R11 6 - 0x4028140B, // 000F CONNECT R10 R10 R11 - 0x9428060A, // 0010 GETIDX R10 R3 R10 - 0x542E0006, // 0011 LDINT R11 7 - 0x402C1709, // 0012 CONNECT R11 R11 K9 - 0x942C060B, // 0013 GETIDX R11 R3 R11 - 0x7C180A00, // 0014 CALL R6 5 - 0x581C000A, // 0015 LDCONST R7 K10 - 0x7C100600, // 0016 CALL R4 3 - 0x8C10010B, // 0017 GETMET R4 R0 K11 - 0x8818010C, // 0018 GETMBR R6 R0 K12 - 0x881C010D, // 0019 GETMBR R7 R0 K13 - 0x8820010E, // 001A GETMBR R8 R0 K14 - 0x7C100800, // 001B CALL R4 4 - 0x8C10010F, // 001C GETMET R4 R0 K15 - 0x5C180200, // 001D MOVE R6 R1 - 0x881C010D, // 001E GETMBR R7 R0 K13 - 0x88200110, // 001F GETMBR R8 R0 K16 - 0x8824010E, // 0020 GETMBR R9 R0 K14 - 0x88280111, // 0021 GETMBR R10 R0 K17 - 0x882C0112, // 0022 GETMBR R11 R0 K18 - 0x4C300000, // 0023 LDNIL R12 - 0x7C101000, // 0024 CALL R4 8 - 0x80000000, // 0025 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: save_before_restart -********************************************************************/ -be_local_closure(Matter_Device_save_before_restart, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(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: compute_qrcode_content -********************************************************************/ -be_local_closure(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 */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[12]) { /* constants */ - /* K0 */ be_nested_str_weak(resize), - /* K1 */ be_nested_str_weak(setbits), - /* K2 */ be_const_int(3), - /* K3 */ be_nested_str_weak(vendorid), - /* K4 */ be_nested_str_weak(productid), - /* K5 */ be_nested_str_weak(root_discriminator), - /* K6 */ be_nested_str_weak(root_passcode), - /* K7 */ be_const_int(134217727), - /* K8 */ be_nested_str_weak(MT_X3A), - /* K9 */ be_nested_str_weak(matter), - /* K10 */ be_nested_str_weak(Base38), - /* K11 */ be_nested_str_weak(encode), - }), - 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: _start_udp -********************************************************************/ -be_local_closure(Matter_Device__start_udp, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 1]) { - 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, /* no sub protos */ - 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 - }) - ), - }), - 1, /* has constants */ - ( &(const bvalue[ 9]) { /* constants */ - /* K0 */ be_nested_str_weak(udp_server), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(log), - /* K3 */ be_nested_str_weak(MTR_X3A_X20starting_X20UDP_X20server_X20on_X20port_X3A_X20), - /* K4 */ be_const_int(2), - /* K5 */ be_nested_str_weak(matter), - /* K6 */ be_nested_str_weak(UDPServer), - /* K7 */ be_nested_str_weak(), - /* K8 */ 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 - 0x8C080502, // 0008 GETMET R2 R2 K2 - 0x60100008, // 0009 GETGBL R4 G8 - 0x5C140200, // 000A MOVE R5 R1 - 0x7C100200, // 000B CALL R4 1 - 0x00120604, // 000C ADD R4 K3 R4 - 0x58140004, // 000D LDCONST R5 K4 - 0x7C080600, // 000E CALL R2 3 - 0xB80A0A00, // 000F GETNGBL R2 K5 - 0x8C080506, // 0010 GETMET R2 R2 K6 - 0x58100007, // 0011 LDCONST R4 K7 - 0x5C140200, // 0012 MOVE R5 R1 - 0x7C080600, // 0013 CALL R2 3 - 0x90020002, // 0014 SETMBR R0 K0 R2 - 0x88080100, // 0015 GETMBR R2 R0 K0 - 0x8C080508, // 0016 GETMET R2 R2 K8 - 0x84100000, // 0017 CLOSURE R4 P0 - 0x7C080400, // 0018 CALL R2 2 - 0xA0000000, // 0019 CLOSE R0 - 0x80000000, // 001A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: attribute_updated -********************************************************************/ -be_local_closure(Matter_Device_attribute_updated, /* name */ - be_nested_proto( - 10, /* nstack */ - 5, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 9]) { /* constants */ - /* K0 */ be_nested_str_weak(matter), - /* K1 */ be_nested_str_weak(Path), - /* K2 */ be_nested_str_weak(endpoint), - /* K3 */ be_nested_str_weak(cluster), - /* K4 */ be_nested_str_weak(attribute), - /* K5 */ be_nested_str_weak(message_handler), - /* K6 */ be_nested_str_weak(im), - /* K7 */ be_nested_str_weak(subs_shop), - /* K8 */ be_nested_str_weak(attribute_updated_ctx), - }), - be_str_weak(attribute_updated), - &be_const_str_solidified, - ( &(const binstruction[18]) { /* code */ - 0x4C140000, // 0000 LDNIL R5 - 0x1C140805, // 0001 EQ R5 R4 R5 - 0x78160000, // 0002 JMPF R5 #0004 - 0x50100000, // 0003 LDBOOL R4 0 0 - 0xB8160000, // 0004 GETNGBL R5 K0 - 0x8C140B01, // 0005 GETMET R5 R5 K1 - 0x7C140200, // 0006 CALL R5 1 - 0x90160401, // 0007 SETMBR R5 K2 R1 - 0x90160602, // 0008 SETMBR R5 K3 R2 - 0x90160803, // 0009 SETMBR R5 K4 R3 - 0x88180105, // 000A GETMBR R6 R0 K5 - 0x88180D06, // 000B GETMBR R6 R6 K6 - 0x88180D07, // 000C GETMBR R6 R6 K7 - 0x8C180D08, // 000D GETMET R6 R6 K8 - 0x5C200A00, // 000E MOVE R8 R5 - 0x5C240800, // 000F MOVE R9 R4 - 0x7C180600, // 0010 CALL R6 3 - 0x80000000, // 0011 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: every_250ms -********************************************************************/ -be_local_closure(Matter_Device_every_250ms, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(message_handler), - /* K1 */ be_nested_str_weak(every_250ms), - }), - be_str_weak(every_250ms), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x80000000, // 0003 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: process_attribute_expansion -********************************************************************/ -be_local_closure(Matter_Device_process_attribute_expansion, /* name */ - be_nested_proto( - 29, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 1]) { - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(keys), - /* K1 */ be_nested_str_weak(push), - /* K2 */ be_nested_str_weak(stop_iteration), - /* K3 */ be_const_int(1), - /* K4 */ be_const_int(0), - }), - be_str_weak(keys_sorted), - &be_const_str_solidified, - ( &(const binstruction[45]) { /* code */ - 0x60040012, // 0000 GETGBL R1 G18 - 0x7C040000, // 0001 CALL R1 0 - 0x60080010, // 0002 GETGBL R2 G16 - 0x8C0C0100, // 0003 GETMET R3 R0 K0 - 0x7C0C0200, // 0004 CALL R3 1 - 0x7C080200, // 0005 CALL R2 1 - 0xA8020005, // 0006 EXBLK 0 #000D - 0x5C0C0400, // 0007 MOVE R3 R2 - 0x7C0C0000, // 0008 CALL R3 0 - 0x8C100301, // 0009 GETMET R4 R1 K1 - 0x5C180600, // 000A MOVE R6 R3 - 0x7C100400, // 000B CALL R4 2 - 0x7001FFF9, // 000C JMP #0007 - 0x58080002, // 000D LDCONST R2 K2 - 0xAC080200, // 000E CATCH R2 1 0 - 0xB0080000, // 000F RAISE 2 R0 R0 - 0x60080010, // 0010 GETGBL R2 G16 - 0x600C000C, // 0011 GETGBL R3 G12 - 0x5C100200, // 0012 MOVE R4 R1 - 0x7C0C0200, // 0013 CALL R3 1 - 0x040C0703, // 0014 SUB R3 R3 K3 - 0x400E0603, // 0015 CONNECT R3 K3 R3 - 0x7C080200, // 0016 CALL R2 1 - 0xA8020010, // 0017 EXBLK 0 #0029 - 0x5C0C0400, // 0018 MOVE R3 R2 - 0x7C0C0000, // 0019 CALL R3 0 - 0x94100203, // 001A GETIDX R4 R1 R3 - 0x5C140600, // 001B MOVE R5 R3 - 0x24180B04, // 001C GT R6 R5 K4 - 0x781A0008, // 001D JMPF R6 #0027 - 0x04180B03, // 001E SUB R6 R5 K3 - 0x94180206, // 001F GETIDX R6 R1 R6 - 0x24180C04, // 0020 GT R6 R6 R4 - 0x781A0004, // 0021 JMPF R6 #0027 - 0x04180B03, // 0022 SUB R6 R5 K3 - 0x94180206, // 0023 GETIDX R6 R1 R6 - 0x98040A06, // 0024 SETIDX R1 R5 R6 - 0x04140B03, // 0025 SUB R5 R5 K3 - 0x7001FFF4, // 0026 JMP #001C - 0x98040A04, // 0027 SETIDX R1 R5 R4 - 0x7001FFEE, // 0028 JMP #0018 - 0x58080002, // 0029 LDCONST R2 K2 - 0xAC080200, // 002A CATCH R2 1 0 - 0xB0080000, // 002B RAISE 2 R0 R0 - 0x80040200, // 002C RET 1 R1 - }) - ), - }), - 1, /* has constants */ - ( &(const bvalue[22]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(endpoint), - /* K2 */ be_nested_str_weak(cluster), - /* K3 */ be_nested_str_weak(attribute), - /* K4 */ be_nested_str_weak(plugins), - /* K5 */ be_nested_str_weak(get_endpoint), - /* K6 */ be_nested_str_weak(contains), - /* K7 */ be_nested_str_weak(get_cluster_list), - /* K8 */ be_nested_str_weak(get_attribute_list), - /* K9 */ be_nested_str_weak(push), - /* K10 */ be_nested_str_weak(stop_iteration), - /* K11 */ be_nested_str_weak(tasmota), - /* K12 */ be_nested_str_weak(log), - /* K13 */ be_nested_str_weak(format), - /* K14 */ be_nested_str_weak(MTR_X3A_X20expansion_X20_X5B_X2502X_X5D_X2504X_X2F_X2504X), - /* K15 */ be_const_int(3), - /* K16 */ be_nested_str_weak(status), - /* K17 */ be_nested_str_weak(matter), - /* K18 */ be_nested_str_weak(UNSUPPORTED_ENDPOINT), - /* K19 */ be_nested_str_weak(UNSUPPORTED_CLUSTER), - /* K20 */ be_nested_str_weak(UNSUPPORTED_ATTRIBUTE), - /* K21 */ be_nested_str_weak(UNREPORTABLE_ATTRIBUTE), - }), - be_str_weak(process_attribute_expansion), - &be_const_str_solidified, - ( &(const binstruction[216]) { /* code */ - 0x840C0000, // 0000 CLOSURE R3 P0 - 0xA4120000, // 0001 IMPORT R4 K0 - 0x88140301, // 0002 GETMBR R5 R1 K1 - 0x50180000, // 0003 LDBOOL R6 0 0 - 0x881C0302, // 0004 GETMBR R7 R1 K2 - 0x50200000, // 0005 LDBOOL R8 0 0 - 0x88240303, // 0006 GETMBR R9 R1 K3 - 0x50280000, // 0007 LDBOOL R10 0 0 - 0x882C0301, // 0008 GETMBR R11 R1 K1 - 0x4C300000, // 0009 LDNIL R12 - 0x202C160C, // 000A NE R11 R11 R12 - 0x782E0007, // 000B JMPF R11 #0014 - 0x882C0302, // 000C GETMBR R11 R1 K2 - 0x4C300000, // 000D LDNIL R12 - 0x202C160C, // 000E NE R11 R11 R12 - 0x782E0003, // 000F JMPF R11 #0014 - 0x882C0303, // 0010 GETMBR R11 R1 K3 - 0x4C300000, // 0011 LDNIL R12 - 0x202C160C, // 0012 NE R11 R11 R12 - 0x742E0000, // 0013 JMPT R11 #0015 - 0x502C0001, // 0014 LDBOOL R11 0 1 - 0x502C0200, // 0015 LDBOOL R11 1 0 - 0x60300013, // 0016 GETGBL R12 G19 - 0x7C300000, // 0017 CALL R12 0 - 0x60340010, // 0018 GETGBL R13 G16 - 0x88380104, // 0019 GETMBR R14 R0 K4 - 0x7C340200, // 001A CALL R13 1 - 0xA8020055, // 001B EXBLK 0 #0072 - 0x5C381A00, // 001C MOVE R14 R13 - 0x7C380000, // 001D CALL R14 0 - 0x8C3C1D05, // 001E GETMET R15 R14 K5 - 0x7C3C0200, // 001F CALL R15 1 - 0x4C400000, // 0020 LDNIL R16 - 0x20400A10, // 0021 NE R16 R5 R16 - 0x78420002, // 0022 JMPF R16 #0026 - 0x20401E05, // 0023 NE R16 R15 R5 - 0x78420000, // 0024 JMPF R16 #0026 - 0x7001FFF5, // 0025 JMP #001C - 0x8C401906, // 0026 GETMET R16 R12 K6 - 0x5C481E00, // 0027 MOVE R18 R15 - 0x7C400400, // 0028 CALL R16 2 - 0x74420002, // 0029 JMPT R16 #002D - 0x60400013, // 002A GETGBL R16 G19 - 0x7C400000, // 002B CALL R16 0 - 0x98301E10, // 002C SETIDX R12 R15 R16 - 0x50180200, // 002D LDBOOL R6 1 0 - 0x8C401D07, // 002E GETMET R16 R14 K7 - 0x5C481E00, // 002F MOVE R18 R15 - 0x7C400400, // 0030 CALL R16 2 - 0x60440010, // 0031 GETGBL R17 G16 - 0x5C482000, // 0032 MOVE R18 R16 - 0x7C440200, // 0033 CALL R17 1 - 0xA8020038, // 0034 EXBLK 0 #006E - 0x5C482200, // 0035 MOVE R18 R17 - 0x7C480000, // 0036 CALL R18 0 - 0x4C4C0000, // 0037 LDNIL R19 - 0x204C0E13, // 0038 NE R19 R7 R19 - 0x784E0002, // 0039 JMPF R19 #003D - 0x204C2407, // 003A NE R19 R18 R7 - 0x784E0000, // 003B JMPF R19 #003D - 0x7001FFF7, // 003C JMP #0035 - 0x944C180F, // 003D GETIDX R19 R12 R15 - 0x8C4C2706, // 003E GETMET R19 R19 K6 - 0x5C542400, // 003F MOVE R21 R18 - 0x7C4C0400, // 0040 CALL R19 2 - 0x744E0003, // 0041 JMPT R19 #0046 - 0x944C180F, // 0042 GETIDX R19 R12 R15 - 0x60500013, // 0043 GETGBL R20 G19 - 0x7C500000, // 0044 CALL R20 0 - 0x984C2414, // 0045 SETIDX R19 R18 R20 - 0x50200200, // 0046 LDBOOL R8 1 0 - 0x8C4C1D08, // 0047 GETMET R19 R14 K8 - 0x5C541E00, // 0048 MOVE R21 R15 - 0x5C582400, // 0049 MOVE R22 R18 - 0x7C4C0600, // 004A CALL R19 3 - 0x60500010, // 004B GETGBL R20 G16 - 0x5C542600, // 004C MOVE R21 R19 - 0x7C500200, // 004D CALL R20 1 - 0xA802001A, // 004E EXBLK 0 #006A - 0x5C542800, // 004F MOVE R21 R20 - 0x7C540000, // 0050 CALL R21 0 - 0x4C580000, // 0051 LDNIL R22 - 0x20581216, // 0052 NE R22 R9 R22 - 0x785A0002, // 0053 JMPF R22 #0057 - 0x20582A09, // 0054 NE R22 R21 R9 - 0x785A0000, // 0055 JMPF R22 #0057 - 0x7001FFF7, // 0056 JMP #004F - 0x9458180F, // 0057 GETIDX R22 R12 R15 - 0x94582C12, // 0058 GETIDX R22 R22 R18 - 0x8C582D06, // 0059 GETMET R22 R22 K6 - 0x5C602A00, // 005A MOVE R24 R21 - 0x7C580400, // 005B CALL R22 2 - 0x745A0004, // 005C JMPT R22 #0062 - 0x9458180F, // 005D GETIDX R22 R12 R15 - 0x94582C12, // 005E GETIDX R22 R22 R18 - 0x605C0012, // 005F GETGBL R23 G18 - 0x7C5C0000, // 0060 CALL R23 0 - 0x98582A17, // 0061 SETIDX R22 R21 R23 - 0x50280200, // 0062 LDBOOL R10 1 0 - 0x9458180F, // 0063 GETIDX R22 R12 R15 - 0x94582C12, // 0064 GETIDX R22 R22 R18 - 0x94582C15, // 0065 GETIDX R22 R22 R21 - 0x8C582D09, // 0066 GETMET R22 R22 K9 - 0x5C601C00, // 0067 MOVE R24 R14 - 0x7C580400, // 0068 CALL R22 2 - 0x7001FFE4, // 0069 JMP #004F - 0x5850000A, // 006A LDCONST R20 K10 - 0xAC500200, // 006B CATCH R20 1 0 - 0xB0080000, // 006C RAISE 2 R0 R0 - 0x7001FFC6, // 006D JMP #0035 - 0x5844000A, // 006E LDCONST R17 K10 - 0xAC440200, // 006F CATCH R17 1 0 - 0xB0080000, // 0070 RAISE 2 R0 R0 - 0x7001FFA9, // 0071 JMP #001C - 0x5834000A, // 0072 LDCONST R13 K10 - 0xAC340200, // 0073 CATCH R13 1 0 - 0xB0080000, // 0074 RAISE 2 R0 R0 - 0x60340010, // 0075 GETGBL R13 G16 - 0x5C380600, // 0076 MOVE R14 R3 - 0x5C3C1800, // 0077 MOVE R15 R12 - 0x7C380200, // 0078 CALL R14 1 - 0x7C340200, // 0079 CALL R13 1 - 0xA802003D, // 007A EXBLK 0 #00B9 - 0x5C381A00, // 007B MOVE R14 R13 - 0x7C380000, // 007C CALL R14 0 - 0x603C0010, // 007D GETGBL R15 G16 - 0x5C400600, // 007E MOVE R16 R3 - 0x9444180E, // 007F GETIDX R17 R12 R14 - 0x7C400200, // 0080 CALL R16 1 - 0x7C3C0200, // 0081 CALL R15 1 - 0xA8020031, // 0082 EXBLK 0 #00B5 - 0x5C401E00, // 0083 MOVE R16 R15 - 0x7C400000, // 0084 CALL R16 0 - 0x60440010, // 0085 GETGBL R17 G16 - 0x5C480600, // 0086 MOVE R18 R3 - 0x944C180E, // 0087 GETIDX R19 R12 R14 - 0x944C2610, // 0088 GETIDX R19 R19 R16 - 0x7C480200, // 0089 CALL R18 1 - 0x7C440200, // 008A CALL R17 1 - 0xA8020024, // 008B EXBLK 0 #00B1 - 0x5C482200, // 008C MOVE R18 R17 - 0x7C480000, // 008D CALL R18 0 - 0x604C0010, // 008E GETGBL R19 G16 - 0x9450180E, // 008F GETIDX R20 R12 R14 - 0x94502810, // 0090 GETIDX R20 R20 R16 - 0x94502812, // 0091 GETIDX R20 R20 R18 - 0x7C4C0200, // 0092 CALL R19 1 - 0xA8020018, // 0093 EXBLK 0 #00AD - 0x5C502600, // 0094 MOVE R20 R19 - 0x7C500000, // 0095 CALL R20 0 - 0xB8561600, // 0096 GETNGBL R21 K11 - 0x8C542B0C, // 0097 GETMET R21 R21 K12 - 0x8C5C090D, // 0098 GETMET R23 R4 K13 - 0x5864000E, // 0099 LDCONST R25 K14 - 0x5C681C00, // 009A MOVE R26 R14 - 0x5C6C2000, // 009B MOVE R27 R16 - 0x5C702400, // 009C MOVE R28 R18 - 0x7C5C0A00, // 009D CALL R23 5 - 0x5860000F, // 009E LDCONST R24 K15 - 0x7C540600, // 009F CALL R21 3 - 0x9006020E, // 00A0 SETMBR R1 K1 R14 - 0x90060410, // 00A1 SETMBR R1 K2 R16 - 0x90060612, // 00A2 SETMBR R1 K3 R18 - 0x5C540400, // 00A3 MOVE R21 R2 - 0x5C582800, // 00A4 MOVE R22 R20 - 0x5C5C0200, // 00A5 MOVE R23 R1 - 0x5C601600, // 00A6 MOVE R24 R11 - 0x7C540600, // 00A7 CALL R21 3 - 0x782E0002, // 00A8 JMPF R11 #00AC - 0x78560001, // 00A9 JMPF R21 #00AC - 0xA8040004, // 00AA EXBLK 1 4 - 0x80002C00, // 00AB RET 0 - 0x7001FFE6, // 00AC JMP #0094 - 0x584C000A, // 00AD LDCONST R19 K10 - 0xAC4C0200, // 00AE CATCH R19 1 0 - 0xB0080000, // 00AF RAISE 2 R0 R0 - 0x7001FFDA, // 00B0 JMP #008C - 0x5844000A, // 00B1 LDCONST R17 K10 - 0xAC440200, // 00B2 CATCH R17 1 0 - 0xB0080000, // 00B3 RAISE 2 R0 R0 - 0x7001FFCD, // 00B4 JMP #0083 - 0x583C000A, // 00B5 LDCONST R15 K10 - 0xAC3C0200, // 00B6 CATCH R15 1 0 - 0xB0080000, // 00B7 RAISE 2 R0 R0 - 0x7001FFC1, // 00B8 JMP #007B - 0x5834000A, // 00B9 LDCONST R13 K10 - 0xAC340200, // 00BA CATCH R13 1 0 - 0xB0080000, // 00BB RAISE 2 R0 R0 - 0x782E0019, // 00BC JMPF R11 #00D7 - 0x5C340C00, // 00BD MOVE R13 R6 - 0x74360003, // 00BE JMPT R13 #00C3 - 0xB8362200, // 00BF GETNGBL R13 K17 - 0x88341B12, // 00C0 GETMBR R13 R13 K18 - 0x9006200D, // 00C1 SETMBR R1 K16 R13 - 0x7002000E, // 00C2 JMP #00D2 - 0x5C341000, // 00C3 MOVE R13 R8 - 0x74360003, // 00C4 JMPT R13 #00C9 - 0xB8362200, // 00C5 GETNGBL R13 K17 - 0x88341B13, // 00C6 GETMBR R13 R13 K19 - 0x9006200D, // 00C7 SETMBR R1 K16 R13 - 0x70020008, // 00C8 JMP #00D2 - 0x5C341400, // 00C9 MOVE R13 R10 - 0x74360003, // 00CA JMPT R13 #00CF - 0xB8362200, // 00CB GETNGBL R13 K17 - 0x88341B14, // 00CC GETMBR R13 R13 K20 - 0x9006200D, // 00CD SETMBR R1 K16 R13 - 0x70020002, // 00CE JMP #00D2 - 0xB8362200, // 00CF GETNGBL R13 K17 - 0x88341B15, // 00D0 GETMBR R13 R13 K21 - 0x9006200D, // 00D1 SETMBR R1 K16 R13 - 0x5C340400, // 00D2 MOVE R13 R2 - 0x4C380000, // 00D3 LDNIL R14 - 0x5C3C0200, // 00D4 MOVE R15 R1 - 0x50400200, // 00D5 LDBOOL R16 1 0 - 0x7C340600, // 00D6 CALL R13 3 - 0x80000000, // 00D7 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: save_param -********************************************************************/ -be_local_closure(Matter_Device_save_param, /* name */ - be_nested_proto( - 10, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[17]) { /* constants */ - /* K0 */ be_nested_str_weak(json), - /* K1 */ be_nested_str_weak(dump), - /* K2 */ be_nested_str_weak(distinguish), - /* K3 */ be_nested_str_weak(root_discriminator), - /* K4 */ be_nested_str_weak(passcode), - /* K5 */ be_nested_str_weak(root_passcode), - /* K6 */ be_nested_str_weak(ipv4only), - /* K7 */ be_nested_str_weak(string), - /* K8 */ be_nested_str_weak(FILENAME), - /* K9 */ be_nested_str_weak(w), - /* K10 */ be_nested_str_weak(write), - /* K11 */ be_nested_str_weak(close), - /* K12 */ be_nested_str_weak(tasmota), - /* K13 */ be_nested_str_weak(log), - /* K14 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Asave_X20Exception_X3A), - /* K15 */ be_nested_str_weak(_X7C), - /* K16 */ be_const_int(2), - }), - be_str_weak(save_param), - &be_const_str_solidified, - ( &(const binstruction[45]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x8C080301, // 0001 GETMET R2 R1 K1 - 0x60100013, // 0002 GETGBL R4 G19 - 0x7C100000, // 0003 CALL R4 0 - 0x88140103, // 0004 GETMBR R5 R0 K3 - 0x98120405, // 0005 SETIDX R4 K2 R5 - 0x88140105, // 0006 GETMBR R5 R0 K5 - 0x98120805, // 0007 SETIDX R4 K4 R5 - 0x88140106, // 0008 GETMBR R5 R0 K6 - 0x98120C05, // 0009 SETIDX R4 K6 R5 - 0x7C080400, // 000A CALL R2 2 - 0xA802000D, // 000B EXBLK 0 #001A - 0xA40E0E00, // 000C IMPORT R3 K7 - 0x60100011, // 000D GETGBL R4 G17 - 0x88140108, // 000E GETMBR R5 R0 K8 - 0x58180009, // 000F LDCONST R6 K9 - 0x7C100400, // 0010 CALL R4 2 - 0x8C14090A, // 0011 GETMET R5 R4 K10 - 0x5C1C0400, // 0012 MOVE R7 R2 - 0x7C140400, // 0013 CALL R5 2 - 0x8C14090B, // 0014 GETMET R5 R4 K11 - 0x7C140200, // 0015 CALL R5 1 - 0xA8040001, // 0016 EXBLK 1 1 - 0x80040400, // 0017 RET 1 R2 - 0xA8040001, // 0018 EXBLK 1 1 - 0x70020011, // 0019 JMP #002C - 0xAC0C0002, // 001A CATCH R3 0 2 - 0x7002000E, // 001B JMP #002B - 0xB8161800, // 001C GETNGBL R5 K12 - 0x8C140B0D, // 001D GETMET R5 R5 K13 - 0x601C0008, // 001E GETGBL R7 G8 - 0x5C200600, // 001F MOVE R8 R3 - 0x7C1C0200, // 0020 CALL R7 1 - 0x001E1C07, // 0021 ADD R7 K14 R7 - 0x001C0F0F, // 0022 ADD R7 R7 K15 - 0x60200008, // 0023 GETGBL R8 G8 - 0x5C240800, // 0024 MOVE R9 R4 - 0x7C200200, // 0025 CALL R8 1 - 0x001C0E08, // 0026 ADD R7 R7 R8 - 0x58200010, // 0027 LDCONST R8 K16 - 0x7C140600, // 0028 CALL R5 3 - 0x80040400, // 0029 RET 1 R2 - 0x70020000, // 002A JMP #002C - 0xB0080000, // 002B RAISE 2 R0 R0 - 0x80000000, // 002C RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: mdns_announce_PASE -********************************************************************/ -be_local_closure(Matter_Device_mdns_announce_PASE, /* name */ - be_nested_proto( - 16, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[44]) { /* constants */ - /* K0 */ be_nested_str_weak(mdns), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(crypto), - /* K3 */ be_nested_str_weak(VP), - /* K4 */ be_nested_str_weak(vendorid), - /* K5 */ be_nested_str_weak(_X2B), - /* K6 */ be_nested_str_weak(productid), - /* K7 */ be_nested_str_weak(D), - /* K8 */ be_nested_str_weak(commissioning_discriminator), - /* K9 */ be_nested_str_weak(CM), - /* K10 */ be_const_int(1), - /* K11 */ be_nested_str_weak(T), - /* K12 */ be_const_int(0), - /* K13 */ be_nested_str_weak(SII), - /* K14 */ be_nested_str_weak(SAI), - /* K15 */ be_nested_str_weak(commissioning_instance_wifi), - /* K16 */ be_nested_str_weak(random), - /* K17 */ be_nested_str_weak(tohex), - /* K18 */ be_nested_str_weak(commissioning_instance_eth), - /* K19 */ be_nested_str_weak(hostname_eth), - /* K20 */ be_nested_str_weak(tasmota), - /* K21 */ be_nested_str_weak(log), - /* K22 */ be_nested_str_weak(format), - /* K23 */ be_nested_str_weak(MTR_X3A_X20calling_X20mdns_X2Eadd_service_X28_X25s_X2C_X20_X25s_X2C_X20_X25i_X2C_X20_X25s_X2C_X20_X25s_X2C_X20_X25s_X29), - /* K24 */ be_nested_str_weak(_matterc), - /* K25 */ be_nested_str_weak(_udp), - /* K26 */ be_const_int(3), - /* K27 */ be_nested_str_weak(add_service), - /* K28 */ be_nested_str_weak(mdns_pase_eth), - /* K29 */ be_nested_str_weak(MTR_X3A_X20announce_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27_X20ptr_X20to_X20_X60_X25s_X2Elocal_X60), - /* K30 */ be_nested_str_weak(eth), - /* K31 */ be_const_int(2), - /* K32 */ be_nested_str_weak(_L), - /* K33 */ be_nested_str_weak(MTR_X3A_X20adding_X20subtype_X3A_X20), - /* K34 */ be_nested_str_weak(add_subtype), - /* K35 */ be_nested_str_weak(_S), - /* K36 */ be_nested_str_weak(_V), - /* K37 */ be_nested_str_weak(_CM1), - /* K38 */ be_nested_str_weak(hostname_wifi), - /* K39 */ be_nested_str_weak(mdns_pase_wifi), - /* K40 */ be_nested_str_weak(MTR_X3A_X20starting_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27_X20ptr_X20to_X20_X60_X25s_X2Elocal_X60), - /* K41 */ be_nested_str_weak(wifi), - /* K42 */ be_nested_str_weak(MTR_X3A_X20Exception), - /* K43 */ be_nested_str_weak(_X7C), - }), - be_str_weak(mdns_announce_PASE), - &be_const_str_solidified, - ( &(const binstruction[267]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0xA40E0400, // 0002 IMPORT R3 K2 - 0x60100013, // 0003 GETGBL R4 G19 - 0x7C100000, // 0004 CALL R4 0 - 0x60140008, // 0005 GETGBL R5 G8 - 0x88180104, // 0006 GETMBR R6 R0 K4 - 0x7C140200, // 0007 CALL R5 1 - 0x00140B05, // 0008 ADD R5 R5 K5 - 0x60180008, // 0009 GETGBL R6 G8 - 0x881C0106, // 000A GETMBR R7 R0 K6 - 0x7C180200, // 000B CALL R6 1 - 0x00140A06, // 000C ADD R5 R5 R6 - 0x98120605, // 000D SETIDX R4 K3 R5 - 0x88140108, // 000E GETMBR R5 R0 K8 - 0x98120E05, // 000F SETIDX R4 K7 R5 - 0x9812130A, // 0010 SETIDX R4 K9 K10 - 0x9812170C, // 0011 SETIDX R4 K11 K12 - 0x54161387, // 0012 LDINT R5 5000 - 0x98121A05, // 0013 SETIDX R4 K13 R5 - 0x5416012B, // 0014 LDINT R5 300 - 0x98121C05, // 0015 SETIDX R4 K14 R5 - 0x8C140710, // 0016 GETMET R5 R3 K16 - 0x541E0007, // 0017 LDINT R7 8 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0xA40E0400, // 0002 IMPORT R3 K2 + 0x60100013, // 0003 GETGBL R4 G19 + 0x7C100000, // 0004 CALL R4 0 + 0x60140008, // 0005 GETGBL R5 G8 + 0x88180104, // 0006 GETMBR R6 R0 K4 + 0x7C140200, // 0007 CALL R5 1 + 0x00140B05, // 0008 ADD R5 R5 K5 + 0x60180008, // 0009 GETGBL R6 G8 + 0x881C0106, // 000A GETMBR R7 R0 K6 + 0x7C180200, // 000B CALL R6 1 + 0x00140A06, // 000C ADD R5 R5 R6 + 0x98120605, // 000D SETIDX R4 K3 R5 + 0x88140108, // 000E GETMBR R5 R0 K8 + 0x98120E05, // 000F SETIDX R4 K7 R5 + 0x9812130A, // 0010 SETIDX R4 K9 K10 + 0x9812170C, // 0011 SETIDX R4 K11 K12 + 0x54161387, // 0012 LDINT R5 5000 + 0x98121A05, // 0013 SETIDX R4 K13 R5 + 0x5416012B, // 0014 LDINT R5 300 + 0x98121C05, // 0015 SETIDX R4 K14 R5 + 0x8C140710, // 0016 GETMET R5 R3 K16 + 0x541E0007, // 0017 LDINT R7 8 0x7C140400, // 0018 CALL R5 2 0x8C140B11, // 0019 GETMET R5 R5 K17 0x7C140200, // 001A CALL R5 1 @@ -1643,50 +515,447 @@ be_local_closure(Matter_Device_mdns_announce_PASE, /* name */ /******************************************************************** -** Solidified function: start_basic_commissioning +** Solidified function: every_second +********************************************************************/ +be_local_closure(Matter_Device_every_second, /* name */ + be_nested_proto( + 4, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 9]) { /* 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(commissioning_open), + /* K4 */ be_nested_str_weak(tasmota), + /* K5 */ be_nested_str_weak(time_reached), + /* K6 */ be_const_int(0), + /* K7 */ be_nested_str_weak(plugins), + /* K8 */ be_const_int(1), + }), + be_str_weak(every_second), + &be_const_str_solidified, + ( &(const binstruction[30]) { /* 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 + 0x4C080000, // 0007 LDNIL R2 + 0x20040202, // 0008 NE R1 R1 R2 + 0x78060006, // 0009 JMPF R1 #0011 + 0xB8060800, // 000A GETNGBL R1 K4 + 0x8C040305, // 000B GETMET R1 R1 K5 + 0x880C0103, // 000C GETMBR R3 R0 K3 + 0x7C040400, // 000D CALL R1 2 + 0x78060001, // 000E JMPF R1 #0011 + 0x4C040000, // 000F LDNIL R1 + 0x90020601, // 0010 SETMBR R0 K3 R1 + 0x58040006, // 0011 LDCONST R1 K6 + 0x6008000C, // 0012 GETGBL R2 G12 + 0x880C0107, // 0013 GETMBR R3 R0 K7 + 0x7C080200, // 0014 CALL R2 1 + 0x14080202, // 0015 LT R2 R1 R2 + 0x780A0005, // 0016 JMPF R2 #001D + 0x88080107, // 0017 GETMBR R2 R0 K7 + 0x94080401, // 0018 GETIDX R2 R2 R1 + 0x8C080501, // 0019 GETMET R2 R2 K1 + 0x7C080200, // 001A CALL R2 1 + 0x00040308, // 001B ADD R1 R1 K8 + 0x7001FFF4, // 001C JMP #0012 + 0x80000000, // 001D RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: _init_basic_commissioning +********************************************************************/ +be_local_closure(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 */ + NULL, /* no sub protos */ + 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: start_operational_discovery_deferred +********************************************************************/ +be_local_closure(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*[ 1]) { + 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, /* no sub protos */ + 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 + }) + ), + }), + 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: mdns_announce_op_discovery_all_fabrics +********************************************************************/ +be_local_closure(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 */ + NULL, /* no sub protos */ + 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: save_param ********************************************************************/ -be_local_closure(Matter_Device_start_basic_commissioning, /* name */ +be_local_closure(Matter_Device_save_param, /* name */ be_nested_proto( - 13, /* nstack */ - 8, /* argc */ + 10, /* nstack */ + 1, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 2]) { - 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, /* no sub protos */ - 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 - }) - ), + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[17]) { /* constants */ + /* K0 */ be_nested_str_weak(json), + /* K1 */ be_nested_str_weak(dump), + /* K2 */ be_nested_str_weak(distinguish), + /* K3 */ be_nested_str_weak(root_discriminator), + /* K4 */ be_nested_str_weak(passcode), + /* K5 */ be_nested_str_weak(root_passcode), + /* K6 */ be_nested_str_weak(ipv4only), + /* K7 */ be_nested_str_weak(string), + /* K8 */ be_nested_str_weak(FILENAME), + /* K9 */ be_nested_str_weak(w), + /* K10 */ be_nested_str_weak(write), + /* K11 */ be_nested_str_weak(close), + /* K12 */ be_nested_str_weak(tasmota), + /* K13 */ be_nested_str_weak(log), + /* K14 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Asave_X20Exception_X3A), + /* K15 */ be_nested_str_weak(_X7C), + /* K16 */ be_const_int(2), + }), + be_str_weak(save_param), + &be_const_str_solidified, + ( &(const binstruction[45]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x8C080301, // 0001 GETMET R2 R1 K1 + 0x60100013, // 0002 GETGBL R4 G19 + 0x7C100000, // 0003 CALL R4 0 + 0x88140103, // 0004 GETMBR R5 R0 K3 + 0x98120405, // 0005 SETIDX R4 K2 R5 + 0x88140105, // 0006 GETMBR R5 R0 K5 + 0x98120805, // 0007 SETIDX R4 K4 R5 + 0x88140106, // 0008 GETMBR R5 R0 K6 + 0x98120C05, // 0009 SETIDX R4 K6 R5 + 0x7C080400, // 000A CALL R2 2 + 0xA802000D, // 000B EXBLK 0 #001A + 0xA40E0E00, // 000C IMPORT R3 K7 + 0x60100011, // 000D GETGBL R4 G17 + 0x88140108, // 000E GETMBR R5 R0 K8 + 0x58180009, // 000F LDCONST R6 K9 + 0x7C100400, // 0010 CALL R4 2 + 0x8C14090A, // 0011 GETMET R5 R4 K10 + 0x5C1C0400, // 0012 MOVE R7 R2 + 0x7C140400, // 0013 CALL R5 2 + 0x8C14090B, // 0014 GETMET R5 R4 K11 + 0x7C140200, // 0015 CALL R5 1 + 0xA8040001, // 0016 EXBLK 1 1 + 0x80040400, // 0017 RET 1 R2 + 0xA8040001, // 0018 EXBLK 1 1 + 0x70020011, // 0019 JMP #002C + 0xAC0C0002, // 001A CATCH R3 0 2 + 0x7002000E, // 001B JMP #002B + 0xB8161800, // 001C GETNGBL R5 K12 + 0x8C140B0D, // 001D GETMET R5 R5 K13 + 0x601C0008, // 001E GETGBL R7 G8 + 0x5C200600, // 001F MOVE R8 R3 + 0x7C1C0200, // 0020 CALL R7 1 + 0x001E1C07, // 0021 ADD R7 K14 R7 + 0x001C0F0F, // 0022 ADD R7 R7 K15 + 0x60200008, // 0023 GETGBL R8 G8 + 0x5C240800, // 0024 MOVE R9 R4 + 0x7C200200, // 0025 CALL R8 1 + 0x001C0E08, // 0026 ADD R7 R7 R8 + 0x58200010, // 0027 LDCONST R8 K16 + 0x7C140600, // 0028 CALL R5 3 + 0x80040400, // 0029 RET 1 R2 + 0x70020000, // 002A JMP #002C + 0xB0080000, // 002B RAISE 2 R0 R0 + 0x80000000, // 002C RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: sort_distinct +********************************************************************/ +be_local_closure(Matter_Device_sort_distinct, /* name */ + be_nested_proto( + 7, /* nstack */ + 1, /* argc */ + 4, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_const_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: stop_basic_commissioning +********************************************************************/ +be_local_closure(Matter_Device_stop_basic_commissioning, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 8]) { /* constants */ + /* K0 */ be_nested_str_weak(commissioning_open), + /* K1 */ be_nested_str_weak(mdns_remove_PASE), + /* K2 */ be_nested_str_weak(commissioning_iterations), + /* K3 */ be_nested_str_weak(commissioning_discriminator), + /* K4 */ be_nested_str_weak(commissioning_salt), + /* K5 */ be_nested_str_weak(commissioning_w0), + /* K6 */ be_nested_str_weak(commissioning_L), + /* K7 */ be_nested_str_weak(commissioning_admin_fabric), + }), + be_str_weak(stop_basic_commissioning), + &be_const_str_solidified, + ( &(const binstruction[17]) { /* code */ + 0x4C040000, // 0000 LDNIL R1 + 0x90020001, // 0001 SETMBR R0 K0 R1 + 0x8C040101, // 0002 GETMET R1 R0 K1 + 0x7C040200, // 0003 CALL R1 1 + 0x4C040000, // 0004 LDNIL R1 + 0x90020401, // 0005 SETMBR R0 K2 R1 + 0x4C040000, // 0006 LDNIL R1 + 0x90020601, // 0007 SETMBR R0 K3 R1 + 0x4C040000, // 0008 LDNIL R1 + 0x90020801, // 0009 SETMBR R0 K4 R1 + 0x4C040000, // 000A LDNIL R1 + 0x90020A01, // 000B SETMBR R0 K5 R1 + 0x4C040000, // 000C LDNIL R1 + 0x90020C01, // 000D SETMBR R0 K6 R1 + 0x4C040000, // 000E LDNIL R1 + 0x90020E01, // 000F SETMBR R0 K7 R1 + 0x80000000, // 0010 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: start +********************************************************************/ +be_local_closure(Matter_Device_start, /* name */ + be_nested_proto( + 7, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 1]) { be_nested_proto( - 4, /* nstack */ + 2, /* nstack */ 0, /* argc */ 0, /* varg */ 1, /* has upvals */ @@ -1696,89 +965,385 @@ be_local_closure(Matter_Device_start_basic_commissioning, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 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), + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(_trigger_read_sensors), }), be_str_weak(_anonymous_), &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ + ( &(const binstruction[ 4]) { /* 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 + 0x80000000, // 0003 RET 0 }) ), }), 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), + ( &(const bvalue[14]) { /* constants */ + /* K0 */ be_nested_str_weak(started), + /* 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(autoconf_device), + /* K7 */ be_nested_str_weak(tasmota), + /* K8 */ be_nested_str_weak(add_cron), + /* K9 */ be_nested_str_weak(_X2A_X2F30_X20_X2A_X20_X2A_X20_X2A_X20_X2A_X20_X2A), + /* K10 */ be_nested_str_weak(matter_sensors_30s), + /* K11 */ be_nested_str_weak(_start_udp), + /* K12 */ be_nested_str_weak(UDP_PORT), + /* K13 */ be_nested_str_weak(start_mdns_announce_hostnames), + }), + be_str_weak(start), + &be_const_str_solidified, + ( &(const binstruction[28]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x78060000, // 0001 JMPF R1 #0003 + 0x80000200, // 0002 RET 0 + 0x88040101, // 0003 GETMBR R1 R0 K1 + 0x8C040302, // 0004 GETMET R1 R1 K2 + 0xB80E0600, // 0005 GETNGBL R3 K3 + 0x8C0C0704, // 0006 GETMET R3 R3 K4 + 0x5C140000, // 0007 MOVE R5 R0 + 0x58180005, // 0008 LDCONST R6 K5 + 0x7C0C0600, // 0009 CALL R3 3 + 0x7C040400, // 000A CALL R1 2 + 0x8C040106, // 000B GETMET R1 R0 K6 + 0x7C040200, // 000C CALL R1 1 + 0xB8060E00, // 000D GETNGBL R1 K7 + 0x8C040308, // 000E GETMET R1 R1 K8 + 0x580C0009, // 000F LDCONST R3 K9 + 0x84100000, // 0010 CLOSURE R4 P0 + 0x5814000A, // 0011 LDCONST R5 K10 + 0x7C040800, // 0012 CALL R1 4 + 0x8C04010B, // 0013 GETMET R1 R0 K11 + 0x880C010C, // 0014 GETMBR R3 R0 K12 + 0x7C040400, // 0015 CALL R1 2 + 0x8C04010D, // 0016 GETMET R1 R0 K13 + 0x7C040200, // 0017 CALL R1 1 + 0x50040200, // 0018 LDBOOL R1 1 0 + 0x90020001, // 0019 SETMBR R0 K0 R1 + 0xA0000000, // 001A CLOSE R0 + 0x80000000, // 001B RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: every_250ms +********************************************************************/ +be_local_closure(Matter_Device_every_250ms, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(message_handler), + /* K1 */ be_nested_str_weak(every_250ms), + }), + be_str_weak(every_250ms), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x7C040200, // 0002 CALL R1 1 + 0x80000000, // 0003 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: start_root_basic_commissioning +********************************************************************/ +be_local_closure(Matter_Device_start_root_basic_commissioning, /* name */ + be_nested_proto( + 13, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[19]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(PASE_TIMEOUT), + /* K2 */ be_nested_str_weak(compute_manual_pairing_code), + /* K3 */ be_nested_str_weak(tasmota), + /* K4 */ be_nested_str_weak(log), + /* K5 */ be_nested_str_weak(format), + /* K6 */ be_nested_str_weak(MTR_X3A_X20Manual_X20pairing_X20code_X3A_X20_X25s_X2D_X25s_X2D_X25s), + /* K7 */ be_const_int(0), + /* K8 */ be_const_int(3), + /* K9 */ be_const_int(2147483647), + /* K10 */ be_const_int(2), + /* K11 */ be_nested_str_weak(_compute_pbkdf), + /* K12 */ be_nested_str_weak(root_passcode), + /* K13 */ be_nested_str_weak(root_iterations), + /* K14 */ be_nested_str_weak(root_salt), + /* K15 */ be_nested_str_weak(start_basic_commissioning), + /* K16 */ be_nested_str_weak(root_discriminator), + /* K17 */ be_nested_str_weak(root_w0), + /* K18 */ be_nested_str_weak(root_L), + }), + be_str_weak(start_root_basic_commissioning), + &be_const_str_solidified, + ( &(const binstruction[38]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0x4C0C0000, // 0001 LDNIL R3 + 0x1C0C0203, // 0002 EQ R3 R1 R3 + 0x780E0000, // 0003 JMPF R3 #0005 + 0x88040101, // 0004 GETMBR R1 R0 K1 + 0x8C0C0102, // 0005 GETMET R3 R0 K2 + 0x7C0C0200, // 0006 CALL R3 1 + 0xB8120600, // 0007 GETNGBL R4 K3 + 0x8C100904, // 0008 GETMET R4 R4 K4 + 0x8C180505, // 0009 GETMET R6 R2 K5 + 0x58200006, // 000A LDCONST R8 K6 + 0x40260F08, // 000B CONNECT R9 K7 K8 + 0x94240609, // 000C GETIDX R9 R3 R9 + 0x542A0003, // 000D LDINT R10 4 + 0x542E0005, // 000E LDINT R11 6 + 0x4028140B, // 000F CONNECT R10 R10 R11 + 0x9428060A, // 0010 GETIDX R10 R3 R10 + 0x542E0006, // 0011 LDINT R11 7 + 0x402C1709, // 0012 CONNECT R11 R11 K9 + 0x942C060B, // 0013 GETIDX R11 R3 R11 + 0x7C180A00, // 0014 CALL R6 5 + 0x581C000A, // 0015 LDCONST R7 K10 + 0x7C100600, // 0016 CALL R4 3 + 0x8C10010B, // 0017 GETMET R4 R0 K11 + 0x8818010C, // 0018 GETMBR R6 R0 K12 + 0x881C010D, // 0019 GETMBR R7 R0 K13 + 0x8820010E, // 001A GETMBR R8 R0 K14 + 0x7C100800, // 001B CALL R4 4 + 0x8C10010F, // 001C GETMET R4 R0 K15 + 0x5C180200, // 001D MOVE R6 R1 + 0x881C010D, // 001E GETMBR R7 R0 K13 + 0x88200110, // 001F GETMBR R8 R0 K16 + 0x8824010E, // 0020 GETMBR R9 R0 K14 + 0x88280111, // 0021 GETMBR R10 R0 K17 + 0x882C0112, // 0022 GETMBR R11 R0 K18 + 0x4C300000, // 0023 LDNIL R12 + 0x7C101000, // 0024 CALL R4 8 + 0x80000000, // 0025 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: k2l +********************************************************************/ +be_local_closure(Matter_Device_k2l, /* name */ + be_nested_proto( + 8, /* nstack */ + 1, /* argc */ + 4, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 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: attribute_updated +********************************************************************/ +be_local_closure(Matter_Device_attribute_updated, /* name */ + be_nested_proto( + 10, /* nstack */ + 5, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 9]) { /* constants */ + /* K0 */ be_nested_str_weak(matter), + /* K1 */ be_nested_str_weak(Path), + /* K2 */ be_nested_str_weak(endpoint), + /* K3 */ be_nested_str_weak(cluster), + /* K4 */ be_nested_str_weak(attribute), + /* K5 */ be_nested_str_weak(message_handler), + /* K6 */ be_nested_str_weak(im), + /* K7 */ be_nested_str_weak(subs_shop), + /* K8 */ be_nested_str_weak(attribute_updated_ctx), + }), + be_str_weak(attribute_updated), + &be_const_str_solidified, + ( &(const binstruction[18]) { /* code */ + 0x4C140000, // 0000 LDNIL R5 + 0x1C140805, // 0001 EQ R5 R4 R5 + 0x78160000, // 0002 JMPF R5 #0004 + 0x50100000, // 0003 LDBOOL R4 0 0 + 0xB8160000, // 0004 GETNGBL R5 K0 + 0x8C140B01, // 0005 GETMET R5 R5 K1 + 0x7C140200, // 0006 CALL R5 1 + 0x90160401, // 0007 SETMBR R5 K2 R1 + 0x90160602, // 0008 SETMBR R5 K3 R2 + 0x90160803, // 0009 SETMBR R5 K4 R3 + 0x88180105, // 000A GETMBR R6 R0 K5 + 0x88180D06, // 000B GETMBR R6 R6 K6 + 0x88180D07, // 000C GETMBR R6 R6 K7 + 0x8C180D08, // 000D GETMET R6 R6 K8 + 0x5C200A00, // 000E MOVE R8 R5 + 0x5C240800, // 000F MOVE R9 R4 + 0x7C180600, // 0010 CALL R6 3 + 0x80000000, // 0011 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: _compute_pbkdf +********************************************************************/ +be_local_closure(Matter_Device__compute_pbkdf, /* name */ + be_nested_proto( + 14, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[11]) { /* constants */ + /* K0 */ be_nested_str_weak(crypto), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(add), + /* K3 */ be_nested_str_weak(PBKDF2_HMAC_SHA256), + /* K4 */ be_nested_str_weak(derive), + /* K5 */ be_const_int(0), + /* K6 */ be_nested_str_weak(root_w0), + /* K7 */ be_nested_str_weak(EC_P256), + /* K8 */ be_nested_str_weak(mod), + /* K9 */ be_nested_str_weak(root_L), + /* K10 */ be_nested_str_weak(public_key), }), - be_str_weak(start_basic_commissioning), + be_str_weak(_compute_pbkdf), &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 + ( &(const binstruction[41]) { /* code */ + 0xA4120000, // 0000 IMPORT R4 K0 + 0xA4160200, // 0001 IMPORT R5 K1 + 0x60180015, // 0002 GETGBL R6 G21 + 0x7C180000, // 0003 CALL R6 0 + 0x8C180D02, // 0004 GETMET R6 R6 K2 + 0x5C200200, // 0005 MOVE R8 R1 + 0x54260003, // 0006 LDINT R9 4 + 0x7C180600, // 0007 CALL R6 3 + 0x8C1C0903, // 0008 GETMET R7 R4 K3 + 0x7C1C0200, // 0009 CALL R7 1 + 0x8C1C0F04, // 000A GETMET R7 R7 K4 + 0x5C240C00, // 000B MOVE R9 R6 + 0x5C280600, // 000C MOVE R10 R3 + 0x5C2C0400, // 000D MOVE R11 R2 + 0x5432004F, // 000E LDINT R12 80 + 0x7C1C0A00, // 000F CALL R7 5 + 0x54220026, // 0010 LDINT R8 39 + 0x40220A08, // 0011 CONNECT R8 K5 R8 + 0x94200E08, // 0012 GETIDX R8 R7 R8 + 0x54260027, // 0013 LDINT R9 40 + 0x542A004E, // 0014 LDINT R10 79 + 0x4024120A, // 0015 CONNECT R9 R9 R10 + 0x94240E09, // 0016 GETIDX R9 R7 R9 + 0x8C280907, // 0017 GETMET R10 R4 K7 + 0x7C280200, // 0018 CALL R10 1 + 0x8C281508, // 0019 GETMET R10 R10 K8 + 0x5C301000, // 001A MOVE R12 R8 + 0x7C280400, // 001B CALL R10 2 + 0x90020C0A, // 001C SETMBR R0 K6 R10 + 0x8C280907, // 001D GETMET R10 R4 K7 + 0x7C280200, // 001E CALL R10 1 + 0x8C281508, // 001F GETMET R10 R10 K8 + 0x5C301200, // 0020 MOVE R12 R9 + 0x7C280400, // 0021 CALL R10 2 + 0x8C2C0907, // 0022 GETMET R11 R4 K7 + 0x7C2C0200, // 0023 CALL R11 1 + 0x8C2C170A, // 0024 GETMET R11 R11 K10 + 0x5C341400, // 0025 MOVE R13 R10 + 0x7C2C0400, // 0026 CALL R11 2 + 0x9002120B, // 0027 SETMBR R0 K9 R11 + 0x80000000, // 0028 RET 0 }) ) ); @@ -2001,73 +1566,86 @@ be_local_closure(Matter_Device_init, /* name */ /******************************************************************** -** Solidified function: start_commissioning_complete +** Solidified function: _start_udp ********************************************************************/ -be_local_closure(Matter_Device_start_commissioning_complete, /* name */ +be_local_closure(Matter_Device__start_udp, /* name */ be_nested_proto( 6, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(log), - /* K2 */ be_nested_str_weak(MTR_X3A_X20_X2A_X2A_X2A_X20Commissioning_X20complete_X20_X2A_X2A_X2A), - /* K3 */ be_const_int(2), - /* K4 */ be_nested_str_weak(stop_basic_commissioning), + 1, /* has sup protos */ + ( &(const struct bproto*[ 1]) { + 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, /* no sub protos */ + 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_str_weak(start_commissioning_complete), - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0xB80A0000, // 0000 GETNGBL R2 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x58100002, // 0002 LDCONST R4 K2 - 0x58140003, // 0003 LDCONST R5 K3 - 0x7C080600, // 0004 CALL R2 3 - 0x8C080104, // 0005 GETMET R2 R0 K4 - 0x7C080200, // 0006 CALL R2 1 - 0x80000000, // 0007 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: is_root_commissioning_open -********************************************************************/ -be_local_closure(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 */ - NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(commissioning_open), - /* K1 */ be_nested_str_weak(commissioning_admin_fabric), + ( &(const bvalue[ 9]) { /* constants */ + /* K0 */ be_nested_str_weak(udp_server), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(log), + /* K3 */ be_nested_str_weak(MTR_X3A_X20starting_X20UDP_X20server_X20on_X20port_X3A_X20), + /* K4 */ be_const_int(2), + /* K5 */ be_nested_str_weak(matter), + /* K6 */ be_nested_str_weak(UDPServer), + /* K7 */ be_nested_str_weak(), + /* K8 */ be_nested_str_weak(start), }), - be_str_weak(is_root_commissioning_open), + be_str_weak(_start_udp), &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[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 + 0x8C080502, // 0008 GETMET R2 R2 K2 + 0x60100008, // 0009 GETGBL R4 G8 + 0x5C140200, // 000A MOVE R5 R1 + 0x7C100200, // 000B CALL R4 1 + 0x00120604, // 000C ADD R4 K3 R4 + 0x58140004, // 000D LDCONST R5 K4 + 0x7C080600, // 000E CALL R2 3 + 0xB80A0A00, // 000F GETNGBL R2 K5 + 0x8C080506, // 0010 GETMET R2 R2 K6 + 0x58100007, // 0011 LDCONST R4 K7 + 0x5C140200, // 0012 MOVE R5 R1 + 0x7C080600, // 0013 CALL R2 3 + 0x90020002, // 0014 SETMBR R0 K0 R2 + 0x88080100, // 0015 GETMBR R2 R0 K0 + 0x8C080508, // 0016 GETMET R2 R2 K8 + 0x84100000, // 0017 CLOSURE R4 P0 + 0x7C080400, // 0018 CALL R2 2 + 0xA0000000, // 0019 CLOSE R0 + 0x80000000, // 001A RET 0 }) ) ); @@ -2075,11 +1653,11 @@ be_local_closure(Matter_Device_is_root_commissioning_open, /* name */ /******************************************************************** -** Solidified function: is_commissioning_open +** Solidified function: compute_qrcode_content ********************************************************************/ -be_local_closure(Matter_Device_is_commissioning_open, /* name */ +be_local_closure(Matter_Device_compute_qrcode_content, /* name */ be_nested_proto( - 3, /* nstack */ + 8, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -2087,16 +1665,63 @@ be_local_closure(Matter_Device_is_commissioning_open, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(commissioning_open), + ( &(const bvalue[12]) { /* constants */ + /* K0 */ be_nested_str_weak(resize), + /* K1 */ be_nested_str_weak(setbits), + /* K2 */ be_const_int(3), + /* K3 */ be_nested_str_weak(vendorid), + /* K4 */ be_nested_str_weak(productid), + /* K5 */ be_nested_str_weak(root_discriminator), + /* K6 */ be_nested_str_weak(root_passcode), + /* K7 */ be_const_int(134217727), + /* K8 */ be_nested_str_weak(MT_X3A), + /* K9 */ be_nested_str_weak(matter), + /* K10 */ be_nested_str_weak(Base38), + /* K11 */ be_nested_str_weak(encode), }), - be_str_weak(is_commissioning_open), + be_str_weak(compute_qrcode_content), &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 + ( &(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 }) ) ); @@ -2142,128 +1767,142 @@ be_local_closure(Matter_Device_stop, /* name */ /******************************************************************** -** Solidified function: mdns_remove_op_discovery +** Solidified function: start_basic_commissioning ********************************************************************/ -be_local_closure(Matter_Device_mdns_remove_op_discovery, /* name */ +be_local_closure(Matter_Device_start_basic_commissioning, /* name */ be_nested_proto( - 14, /* nstack */ - 2, /* argc */ + 13, /* nstack */ + 8, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[24]) { /* constants */ - /* K0 */ be_nested_str_weak(mdns), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(get_device_id), - /* K3 */ be_nested_str_weak(copy), - /* K4 */ be_nested_str_weak(reverse), - /* K5 */ be_nested_str_weak(get_fabric_compressed), - /* K6 */ be_nested_str_weak(tohex), - /* K7 */ be_nested_str_weak(_X2D), - /* K8 */ be_nested_str_weak(tasmota), - /* K9 */ be_nested_str_weak(eth), - /* K10 */ be_nested_str_weak(find), - /* K11 */ be_nested_str_weak(up), - /* K12 */ be_nested_str_weak(log), - /* K13 */ be_nested_str_weak(format), - /* K14 */ be_nested_str_weak(MTR_X3A_X20remove_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27), - /* K15 */ be_const_int(2), - /* K16 */ be_nested_str_weak(remove_service), - /* K17 */ be_nested_str_weak(_matter), - /* K18 */ be_nested_str_weak(_tcp), - /* K19 */ be_nested_str_weak(hostname_eth), - /* K20 */ be_nested_str_weak(wifi), - /* K21 */ be_nested_str_weak(hostname_wifi), - /* K22 */ be_nested_str_weak(MTR_X3A_X20Exception), - /* K23 */ be_nested_str_weak(_X7C), - }), - be_str_weak(mdns_remove_op_discovery), - &be_const_str_solidified, - ( &(const binstruction[81]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0xA40E0200, // 0001 IMPORT R3 K1 - 0xA802003B, // 0002 EXBLK 0 #003F - 0x8C100302, // 0003 GETMET R4 R1 K2 - 0x7C100200, // 0004 CALL R4 1 - 0x8C100903, // 0005 GETMET R4 R4 K3 - 0x7C100200, // 0006 CALL R4 1 - 0x8C100904, // 0007 GETMET R4 R4 K4 - 0x7C100200, // 0008 CALL R4 1 - 0x8C140305, // 0009 GETMET R5 R1 K5 - 0x7C140200, // 000A CALL R5 1 - 0x8C180B06, // 000B GETMET R6 R5 K6 - 0x7C180200, // 000C CALL R6 1 - 0x00180D07, // 000D ADD R6 R6 K7 - 0x8C1C0906, // 000E GETMET R7 R4 K6 - 0x7C1C0200, // 000F CALL R7 1 - 0x00180C07, // 0010 ADD R6 R6 R7 - 0xB81E1000, // 0011 GETNGBL R7 K8 - 0x8C1C0F09, // 0012 GETMET R7 R7 K9 - 0x7C1C0200, // 0013 CALL R7 1 - 0x8C1C0F0A, // 0014 GETMET R7 R7 K10 - 0x5824000B, // 0015 LDCONST R9 K11 - 0x7C1C0400, // 0016 CALL R7 2 - 0x781E000E, // 0017 JMPF R7 #0027 - 0xB81E1000, // 0018 GETNGBL R7 K8 - 0x8C1C0F0C, // 0019 GETMET R7 R7 K12 - 0x8C24070D, // 001A GETMET R9 R3 K13 - 0x582C000E, // 001B LDCONST R11 K14 - 0x58300009, // 001C LDCONST R12 K9 - 0x5C340C00, // 001D MOVE R13 R6 - 0x7C240800, // 001E CALL R9 4 - 0x5828000F, // 001F LDCONST R10 K15 - 0x7C1C0600, // 0020 CALL R7 3 - 0x8C1C0510, // 0021 GETMET R7 R2 K16 - 0x58240011, // 0022 LDCONST R9 K17 - 0x58280012, // 0023 LDCONST R10 K18 - 0x5C2C0C00, // 0024 MOVE R11 R6 - 0x88300113, // 0025 GETMBR R12 R0 K19 - 0x7C1C0A00, // 0026 CALL R7 5 - 0xB81E1000, // 0027 GETNGBL R7 K8 - 0x8C1C0F14, // 0028 GETMET R7 R7 K20 - 0x7C1C0200, // 0029 CALL R7 1 - 0x8C1C0F0A, // 002A GETMET R7 R7 K10 - 0x5824000B, // 002B LDCONST R9 K11 - 0x7C1C0400, // 002C CALL R7 2 - 0x781E000E, // 002D JMPF R7 #003D - 0xB81E1000, // 002E GETNGBL R7 K8 - 0x8C1C0F0C, // 002F GETMET R7 R7 K12 - 0x8C24070D, // 0030 GETMET R9 R3 K13 - 0x582C000E, // 0031 LDCONST R11 K14 - 0x58300014, // 0032 LDCONST R12 K20 - 0x5C340C00, // 0033 MOVE R13 R6 - 0x7C240800, // 0034 CALL R9 4 - 0x5828000F, // 0035 LDCONST R10 K15 - 0x7C1C0600, // 0036 CALL R7 3 - 0x8C1C0510, // 0037 GETMET R7 R2 K16 - 0x58240011, // 0038 LDCONST R9 K17 - 0x58280012, // 0039 LDCONST R10 K18 - 0x5C2C0C00, // 003A MOVE R11 R6 - 0x88300115, // 003B GETMBR R12 R0 K21 - 0x7C1C0A00, // 003C CALL R7 5 - 0xA8040001, // 003D EXBLK 1 1 - 0x70020010, // 003E JMP #0050 - 0xAC100002, // 003F CATCH R4 0 2 - 0x7002000D, // 0040 JMP #004F - 0xB81A1000, // 0041 GETNGBL R6 K8 - 0x8C180D0C, // 0042 GETMET R6 R6 K12 - 0x60200008, // 0043 GETGBL R8 G8 - 0x5C240800, // 0044 MOVE R9 R4 - 0x7C200200, // 0045 CALL R8 1 - 0x00222C08, // 0046 ADD R8 K22 R8 - 0x00201117, // 0047 ADD R8 R8 K23 - 0x60240008, // 0048 GETGBL R9 G8 - 0x5C280A00, // 0049 MOVE R10 R5 - 0x7C240200, // 004A CALL R9 1 - 0x00201009, // 004B ADD R8 R8 R9 - 0x5824000F, // 004C LDCONST R9 K15 - 0x7C180600, // 004D CALL R6 3 - 0x70020000, // 004E JMP #0050 - 0xB0080000, // 004F RAISE 2 R0 R0 - 0x80000000, // 0050 RET 0 + 1, /* has sup protos */ + ( &(const struct bproto*[ 2]) { + 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, /* no sub protos */ + 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, /* no sub protos */ + 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 + }) + ), + }), + 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 }) ) ); @@ -2271,32 +1910,78 @@ be_local_closure(Matter_Device_mdns_remove_op_discovery, /* name */ /******************************************************************** -** Solidified function: msg_received +** Solidified function: remove_fabric ********************************************************************/ -be_local_closure(Matter_Device_msg_received, /* name */ +be_local_closure(Matter_Device_remove_fabric, /* name */ be_nested_proto( 9, /* nstack */ - 4, /* argc */ + 2, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(message_handler), - /* K1 */ be_nested_str_weak(msg_received), + ( &(const bvalue[12]) { /* constants */ + /* K0 */ be_nested_str_weak(sessions), + /* K1 */ be_nested_str_weak(find_children_fabrics), + /* K2 */ be_nested_str_weak(get_fabric_index), + /* K3 */ be_nested_str_weak(find_fabric_by_index), + /* K4 */ be_nested_str_weak(message_handler), + /* K5 */ be_nested_str_weak(im), + /* K6 */ be_nested_str_weak(subs_shop), + /* K7 */ be_nested_str_weak(remove_by_fabric), + /* K8 */ be_nested_str_weak(mdns_remove_op_discovery), + /* K9 */ be_nested_str_weak(remove_fabric), + /* K10 */ be_nested_str_weak(stop_iteration), + /* K11 */ be_nested_str_weak(save_fabrics), }), - be_str_weak(msg_received), + be_str_weak(remove_fabric), &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[43]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x8C100302, // 0002 GETMET R4 R1 K2 + 0x7C100200, // 0003 CALL R4 1 + 0x7C080400, // 0004 CALL R2 2 + 0x4C0C0000, // 0005 LDNIL R3 + 0x1C0C0403, // 0006 EQ R3 R2 R3 + 0x780E0000, // 0007 JMPF R3 #0009 + 0x80000600, // 0008 RET 0 + 0x600C0010, // 0009 GETGBL R3 G16 + 0x5C100400, // 000A MOVE R4 R2 + 0x7C0C0200, // 000B CALL R3 1 + 0xA8020016, // 000C EXBLK 0 #0024 + 0x5C100600, // 000D MOVE R4 R3 + 0x7C100000, // 000E CALL R4 0 + 0x88140100, // 000F GETMBR R5 R0 K0 + 0x8C140B03, // 0010 GETMET R5 R5 K3 + 0x5C1C0800, // 0011 MOVE R7 R4 + 0x7C140400, // 0012 CALL R5 2 + 0x4C180000, // 0013 LDNIL R6 + 0x20180A06, // 0014 NE R6 R5 R6 + 0x781A000C, // 0015 JMPF R6 #0023 + 0x88180104, // 0016 GETMBR R6 R0 K4 + 0x88180D05, // 0017 GETMBR R6 R6 K5 + 0x88180D06, // 0018 GETMBR R6 R6 K6 + 0x8C180D07, // 0019 GETMET R6 R6 K7 + 0x5C200A00, // 001A MOVE R8 R5 + 0x7C180400, // 001B CALL R6 2 + 0x8C180108, // 001C GETMET R6 R0 K8 + 0x5C200A00, // 001D MOVE R8 R5 + 0x7C180400, // 001E CALL R6 2 + 0x88180100, // 001F GETMBR R6 R0 K0 + 0x8C180D09, // 0020 GETMET R6 R6 K9 + 0x5C200A00, // 0021 MOVE R8 R5 + 0x7C180400, // 0022 CALL R6 2 + 0x7001FFE8, // 0023 JMP #000D + 0x580C000A, // 0024 LDCONST R3 K10 + 0xAC0C0200, // 0025 CATCH R3 1 0 + 0xB0080000, // 0026 RAISE 2 R0 R0 + 0x880C0100, // 0027 GETMBR R3 R0 K0 + 0x8C0C070B, // 0028 GETMET R3 R3 K11 + 0x7C0C0200, // 0029 CALL R3 1 + 0x80000000, // 002A RET 0 }) ) ); @@ -2304,81 +1989,55 @@ be_local_closure(Matter_Device_msg_received, /* name */ /******************************************************************** -** Solidified function: sort_distinct +** Solidified function: invoke_request ********************************************************************/ -be_local_closure(Matter_Device_sort_distinct, /* name */ +be_local_closure(Matter_Device_invoke_request, /* name */ be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 4, /* varg */ + 12, /* nstack */ + 4, /* argc */ + 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_const_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), + ( &(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(sort_distinct), + be_str_weak(invoke_request), &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 + ( &(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 }) ) ); @@ -2386,131 +2045,30 @@ be_local_closure(Matter_Device_sort_distinct, /* name */ /******************************************************************** -** Solidified function: start_mdns_announce_hostnames +** Solidified function: save_before_restart ********************************************************************/ -be_local_closure(Matter_Device_start_mdns_announce_hostnames, /* name */ +be_local_closure(Matter_Device_save_before_restart, /* name */ be_nested_proto( - 6, /* nstack */ + 3, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 2]) { - 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, /* no sub protos */ - 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, /* no sub protos */ - 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 - }) - ), - }), + 0, /* has sup protos */ + NULL, /* no sub protos */ 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), + ( &(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(start_mdns_announce_hostnames), + be_str_weak(save_before_restart), &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 + ( &(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 }) ) ); @@ -2742,11 +2300,11 @@ be_local_closure(Matter_Device__mdns_announce_hostname, /* name */ /******************************************************************** -** Solidified function: load_param +** Solidified function: _trigger_read_sensors ********************************************************************/ -be_local_closure(Matter_Device_load_param, /* name */ +be_local_closure(Matter_Device__trigger_read_sensors, /* name */ be_nested_proto( - 12, /* nstack */ + 8, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -2754,114 +2312,188 @@ be_local_closure(Matter_Device_load_param, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ + ( &(const bvalue[11]) { /* 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(load), + /* K4 */ be_const_int(0), + /* K5 */ be_nested_str_weak(plugins), + /* K6 */ be_nested_str_weak(parse_sensors), + /* K7 */ be_const_int(1), + /* K8 */ be_nested_str_weak(log), + /* K9 */ be_nested_str_weak(MTR_X3A_X20unable_X20to_X20parse_X20read_sensors_X3A_X20), + /* K10 */ be_const_int(3), + }), + be_str_weak(_trigger_read_sensors), + &be_const_str_solidified, + ( &(const binstruction[37]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xB80A0200, // 0001 GETNGBL R2 K1 + 0x8C080502, // 0002 GETMET R2 R2 K2 + 0x7C080200, // 0003 CALL R2 1 + 0x4C0C0000, // 0004 LDNIL R3 + 0x1C0C0403, // 0005 EQ R3 R2 R3 + 0x780E0000, // 0006 JMPF R3 #0008 + 0x80000600, // 0007 RET 0 + 0x8C0C0303, // 0008 GETMET R3 R1 K3 + 0x5C140400, // 0009 MOVE R5 R2 + 0x7C0C0400, // 000A CALL R3 2 + 0x4C100000, // 000B LDNIL R4 + 0x20100604, // 000C NE R4 R3 R4 + 0x7812000D, // 000D JMPF R4 #001C + 0x58100004, // 000E LDCONST R4 K4 + 0x6014000C, // 000F GETGBL R5 G12 + 0x88180105, // 0010 GETMBR R6 R0 K5 + 0x7C140200, // 0011 CALL R5 1 + 0x14140805, // 0012 LT R5 R4 R5 + 0x78160006, // 0013 JMPF R5 #001B + 0x88140105, // 0014 GETMBR R5 R0 K5 + 0x94140A04, // 0015 GETIDX R5 R5 R4 + 0x8C140B06, // 0016 GETMET R5 R5 K6 + 0x5C1C0600, // 0017 MOVE R7 R3 + 0x7C140400, // 0018 CALL R5 2 + 0x00100907, // 0019 ADD R4 R4 K7 + 0x7001FFF3, // 001A JMP #000F + 0x70020007, // 001B JMP #0024 + 0xB8120200, // 001C GETNGBL R4 K1 + 0x8C100908, // 001D GETMET R4 R4 K8 + 0x60180008, // 001E GETGBL R6 G8 + 0x5C1C0400, // 001F MOVE R7 R2 + 0x7C180200, // 0020 CALL R6 1 + 0x001A1206, // 0021 ADD R6 K9 R6 + 0x581C000A, // 0022 LDCONST R7 K10 + 0x7C100600, // 0023 CALL R4 3 + 0x80000000, // 0024 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: mdns_remove_op_discovery +********************************************************************/ +be_local_closure(Matter_Device_mdns_remove_op_discovery, /* name */ + be_nested_proto( + 14, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ ( &(const bvalue[24]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(crypto), - /* K2 */ be_nested_str_weak(FILENAME), - /* K3 */ be_nested_str_weak(read), - /* K4 */ be_nested_str_weak(close), - /* K5 */ be_nested_str_weak(json), - /* K6 */ be_nested_str_weak(load), - /* K7 */ be_nested_str_weak(root_discriminator), - /* K8 */ be_nested_str_weak(find), - /* K9 */ be_nested_str_weak(distinguish), - /* K10 */ be_nested_str_weak(root_passcode), - /* K11 */ be_nested_str_weak(passcode), - /* K12 */ be_nested_str_weak(ipv4only), - /* K13 */ be_nested_str_weak(io_error), - /* K14 */ be_nested_str_weak(tasmota), - /* K15 */ be_nested_str_weak(log), - /* K16 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Aload_X20Exception_X3A), - /* K17 */ be_nested_str_weak(_X7C), - /* K18 */ be_const_int(2), - /* K19 */ be_nested_str_weak(random), - /* K20 */ be_nested_str_weak(get), - /* K21 */ be_const_int(0), - /* K22 */ be_nested_str_weak(PASSCODE_DEFAULT), - /* K23 */ be_nested_str_weak(save_param), + /* K0 */ be_nested_str_weak(mdns), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(get_device_id), + /* K3 */ be_nested_str_weak(copy), + /* K4 */ be_nested_str_weak(reverse), + /* K5 */ be_nested_str_weak(get_fabric_compressed), + /* K6 */ be_nested_str_weak(tohex), + /* K7 */ be_nested_str_weak(_X2D), + /* K8 */ be_nested_str_weak(tasmota), + /* K9 */ be_nested_str_weak(eth), + /* K10 */ be_nested_str_weak(find), + /* K11 */ be_nested_str_weak(up), + /* K12 */ be_nested_str_weak(log), + /* K13 */ be_nested_str_weak(format), + /* K14 */ be_nested_str_weak(MTR_X3A_X20remove_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27), + /* K15 */ be_const_int(2), + /* K16 */ be_nested_str_weak(remove_service), + /* K17 */ be_nested_str_weak(_matter), + /* K18 */ be_nested_str_weak(_tcp), + /* K19 */ be_nested_str_weak(hostname_eth), + /* K20 */ be_nested_str_weak(wifi), + /* K21 */ be_nested_str_weak(hostname_wifi), + /* K22 */ be_nested_str_weak(MTR_X3A_X20Exception), + /* K23 */ be_nested_str_weak(_X7C), }), - be_str_weak(load_param), + be_str_weak(mdns_remove_op_discovery), &be_const_str_solidified, - ( &(const binstruction[79]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0xA802001D, // 0002 EXBLK 0 #0021 - 0x600C0011, // 0003 GETGBL R3 G17 - 0x88100102, // 0004 GETMBR R4 R0 K2 - 0x7C0C0200, // 0005 CALL R3 1 - 0x8C100703, // 0006 GETMET R4 R3 K3 - 0x7C100200, // 0007 CALL R4 1 - 0x8C140704, // 0008 GETMET R5 R3 K4 - 0x7C140200, // 0009 CALL R5 1 - 0xA4160A00, // 000A IMPORT R5 K5 + ( &(const binstruction[81]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0xA40E0200, // 0001 IMPORT R3 K1 + 0xA802003B, // 0002 EXBLK 0 #003F + 0x8C100302, // 0003 GETMET R4 R1 K2 + 0x7C100200, // 0004 CALL R4 1 + 0x8C100903, // 0005 GETMET R4 R4 K3 + 0x7C100200, // 0006 CALL R4 1 + 0x8C100904, // 0007 GETMET R4 R4 K4 + 0x7C100200, // 0008 CALL R4 1 + 0x8C140305, // 0009 GETMET R5 R1 K5 + 0x7C140200, // 000A CALL R5 1 0x8C180B06, // 000B GETMET R6 R5 K6 - 0x5C200800, // 000C MOVE R8 R4 - 0x7C180400, // 000D CALL R6 2 - 0x8C1C0D08, // 000E GETMET R7 R6 K8 - 0x58240009, // 000F LDCONST R9 K9 - 0x88280107, // 0010 GETMBR R10 R0 K7 - 0x7C1C0600, // 0011 CALL R7 3 - 0x90020E07, // 0012 SETMBR R0 K7 R7 - 0x8C1C0D08, // 0013 GETMET R7 R6 K8 - 0x5824000B, // 0014 LDCONST R9 K11 - 0x8828010A, // 0015 GETMBR R10 R0 K10 - 0x7C1C0600, // 0016 CALL R7 3 - 0x90021407, // 0017 SETMBR R0 K10 R7 - 0x601C0017, // 0018 GETGBL R7 G23 - 0x8C200D08, // 0019 GETMET R8 R6 K8 - 0x5828000C, // 001A LDCONST R10 K12 - 0x502C0000, // 001B LDBOOL R11 0 0 - 0x7C200600, // 001C CALL R8 3 - 0x7C1C0200, // 001D CALL R7 1 - 0x90021807, // 001E SETMBR R0 K12 R7 - 0xA8040001, // 001F EXBLK 1 1 - 0x70020012, // 0020 JMP #0034 - 0xAC0C0002, // 0021 CATCH R3 0 2 - 0x7002000F, // 0022 JMP #0033 - 0x2014070D, // 0023 NE R5 R3 K13 - 0x7816000C, // 0024 JMPF R5 #0032 - 0xB8161C00, // 0025 GETNGBL R5 K14 - 0x8C140B0F, // 0026 GETMET R5 R5 K15 - 0x601C0008, // 0027 GETGBL R7 G8 - 0x5C200600, // 0028 MOVE R8 R3 + 0x7C180200, // 000C CALL R6 1 + 0x00180D07, // 000D ADD R6 R6 K7 + 0x8C1C0906, // 000E GETMET R7 R4 K6 + 0x7C1C0200, // 000F CALL R7 1 + 0x00180C07, // 0010 ADD R6 R6 R7 + 0xB81E1000, // 0011 GETNGBL R7 K8 + 0x8C1C0F09, // 0012 GETMET R7 R7 K9 + 0x7C1C0200, // 0013 CALL R7 1 + 0x8C1C0F0A, // 0014 GETMET R7 R7 K10 + 0x5824000B, // 0015 LDCONST R9 K11 + 0x7C1C0400, // 0016 CALL R7 2 + 0x781E000E, // 0017 JMPF R7 #0027 + 0xB81E1000, // 0018 GETNGBL R7 K8 + 0x8C1C0F0C, // 0019 GETMET R7 R7 K12 + 0x8C24070D, // 001A GETMET R9 R3 K13 + 0x582C000E, // 001B LDCONST R11 K14 + 0x58300009, // 001C LDCONST R12 K9 + 0x5C340C00, // 001D MOVE R13 R6 + 0x7C240800, // 001E CALL R9 4 + 0x5828000F, // 001F LDCONST R10 K15 + 0x7C1C0600, // 0020 CALL R7 3 + 0x8C1C0510, // 0021 GETMET R7 R2 K16 + 0x58240011, // 0022 LDCONST R9 K17 + 0x58280012, // 0023 LDCONST R10 K18 + 0x5C2C0C00, // 0024 MOVE R11 R6 + 0x88300113, // 0025 GETMBR R12 R0 K19 + 0x7C1C0A00, // 0026 CALL R7 5 + 0xB81E1000, // 0027 GETNGBL R7 K8 + 0x8C1C0F14, // 0028 GETMET R7 R7 K20 0x7C1C0200, // 0029 CALL R7 1 - 0x001E2007, // 002A ADD R7 K16 R7 - 0x001C0F11, // 002B ADD R7 R7 K17 - 0x60200008, // 002C GETGBL R8 G8 - 0x5C240800, // 002D MOVE R9 R4 - 0x7C200200, // 002E CALL R8 1 - 0x001C0E08, // 002F ADD R7 R7 R8 - 0x58200012, // 0030 LDCONST R8 K18 - 0x7C140600, // 0031 CALL R5 3 - 0x70020000, // 0032 JMP #0034 - 0xB0080000, // 0033 RAISE 2 R0 R0 - 0x500C0000, // 0034 LDBOOL R3 0 0 - 0x88100107, // 0035 GETMBR R4 R0 K7 - 0x4C140000, // 0036 LDNIL R5 - 0x1C100805, // 0037 EQ R4 R4 R5 - 0x7812000A, // 0038 JMPF R4 #0044 - 0x8C100513, // 0039 GETMET R4 R2 K19 - 0x58180012, // 003A LDCONST R6 K18 - 0x7C100400, // 003B CALL R4 2 - 0x8C100914, // 003C GETMET R4 R4 K20 - 0x58180015, // 003D LDCONST R6 K21 - 0x581C0012, // 003E LDCONST R7 K18 - 0x7C100600, // 003F CALL R4 3 - 0x54160FFE, // 0040 LDINT R5 4095 - 0x2C100805, // 0041 AND R4 R4 R5 - 0x90020E04, // 0042 SETMBR R0 K7 R4 - 0x500C0200, // 0043 LDBOOL R3 1 0 - 0x8810010A, // 0044 GETMBR R4 R0 K10 - 0x4C140000, // 0045 LDNIL R5 - 0x1C100805, // 0046 EQ R4 R4 R5 - 0x78120002, // 0047 JMPF R4 #004B - 0x88100116, // 0048 GETMBR R4 R0 K22 - 0x90021404, // 0049 SETMBR R0 K10 R4 - 0x500C0200, // 004A LDBOOL R3 1 0 - 0x780E0001, // 004B JMPF R3 #004E - 0x8C100117, // 004C GETMET R4 R0 K23 - 0x7C100200, // 004D CALL R4 1 - 0x80000000, // 004E RET 0 + 0x8C1C0F0A, // 002A GETMET R7 R7 K10 + 0x5824000B, // 002B LDCONST R9 K11 + 0x7C1C0400, // 002C CALL R7 2 + 0x781E000E, // 002D JMPF R7 #003D + 0xB81E1000, // 002E GETNGBL R7 K8 + 0x8C1C0F0C, // 002F GETMET R7 R7 K12 + 0x8C24070D, // 0030 GETMET R9 R3 K13 + 0x582C000E, // 0031 LDCONST R11 K14 + 0x58300014, // 0032 LDCONST R12 K20 + 0x5C340C00, // 0033 MOVE R13 R6 + 0x7C240800, // 0034 CALL R9 4 + 0x5828000F, // 0035 LDCONST R10 K15 + 0x7C1C0600, // 0036 CALL R7 3 + 0x8C1C0510, // 0037 GETMET R7 R2 K16 + 0x58240011, // 0038 LDCONST R9 K17 + 0x58280012, // 0039 LDCONST R10 K18 + 0x5C2C0C00, // 003A MOVE R11 R6 + 0x88300115, // 003B GETMBR R12 R0 K21 + 0x7C1C0A00, // 003C CALL R7 5 + 0xA8040001, // 003D EXBLK 1 1 + 0x70020010, // 003E JMP #0050 + 0xAC100002, // 003F CATCH R4 0 2 + 0x7002000D, // 0040 JMP #004F + 0xB81A1000, // 0041 GETNGBL R6 K8 + 0x8C180D0C, // 0042 GETMET R6 R6 K12 + 0x60200008, // 0043 GETGBL R8 G8 + 0x5C240800, // 0044 MOVE R9 R4 + 0x7C200200, // 0045 CALL R8 1 + 0x00222C08, // 0046 ADD R8 K22 R8 + 0x00201117, // 0047 ADD R8 R8 K23 + 0x60240008, // 0048 GETGBL R9 G8 + 0x5C280A00, // 0049 MOVE R10 R5 + 0x7C240200, // 004A CALL R9 1 + 0x00201009, // 004B ADD R8 R8 R9 + 0x5824000F, // 004C LDCONST R9 K15 + 0x7C180600, // 004D CALL R6 3 + 0x70020000, // 004E JMP #0050 + 0xB0080000, // 004F RAISE 2 R0 R0 + 0x80000000, // 0050 RET 0 }) ) ); @@ -2869,11 +2501,11 @@ be_local_closure(Matter_Device_load_param, /* name */ /******************************************************************** -** Solidified function: _compute_pbkdf +** Solidified function: msg_received ********************************************************************/ -be_local_closure(Matter_Device__compute_pbkdf, /* name */ +be_local_closure(Matter_Device_msg_received, /* name */ be_nested_proto( - 14, /* nstack */ + 9, /* nstack */ 4, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -2881,63 +2513,20 @@ be_local_closure(Matter_Device__compute_pbkdf, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[11]) { /* constants */ - /* K0 */ be_nested_str_weak(crypto), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(add), - /* K3 */ be_nested_str_weak(PBKDF2_HMAC_SHA256), - /* K4 */ be_nested_str_weak(derive), - /* K5 */ be_const_int(0), - /* K6 */ be_nested_str_weak(root_w0), - /* K7 */ be_nested_str_weak(EC_P256), - /* K8 */ be_nested_str_weak(mod), - /* K9 */ be_nested_str_weak(root_L), - /* K10 */ be_nested_str_weak(public_key), + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(message_handler), + /* K1 */ be_nested_str_weak(msg_received), }), - be_str_weak(_compute_pbkdf), + be_str_weak(msg_received), &be_const_str_solidified, - ( &(const binstruction[41]) { /* code */ - 0xA4120000, // 0000 IMPORT R4 K0 - 0xA4160200, // 0001 IMPORT R5 K1 - 0x60180015, // 0002 GETGBL R6 G21 - 0x7C180000, // 0003 CALL R6 0 - 0x8C180D02, // 0004 GETMET R6 R6 K2 - 0x5C200200, // 0005 MOVE R8 R1 - 0x54260003, // 0006 LDINT R9 4 - 0x7C180600, // 0007 CALL R6 3 - 0x8C1C0903, // 0008 GETMET R7 R4 K3 - 0x7C1C0200, // 0009 CALL R7 1 - 0x8C1C0F04, // 000A GETMET R7 R7 K4 - 0x5C240C00, // 000B MOVE R9 R6 - 0x5C280600, // 000C MOVE R10 R3 - 0x5C2C0400, // 000D MOVE R11 R2 - 0x5432004F, // 000E LDINT R12 80 - 0x7C1C0A00, // 000F CALL R7 5 - 0x54220026, // 0010 LDINT R8 39 - 0x40220A08, // 0011 CONNECT R8 K5 R8 - 0x94200E08, // 0012 GETIDX R8 R7 R8 - 0x54260027, // 0013 LDINT R9 40 - 0x542A004E, // 0014 LDINT R10 79 - 0x4024120A, // 0015 CONNECT R9 R9 R10 - 0x94240E09, // 0016 GETIDX R9 R7 R9 - 0x8C280907, // 0017 GETMET R10 R4 K7 - 0x7C280200, // 0018 CALL R10 1 - 0x8C281508, // 0019 GETMET R10 R10 K8 - 0x5C301000, // 001A MOVE R12 R8 - 0x7C280400, // 001B CALL R10 2 - 0x90020C0A, // 001C SETMBR R0 K6 R10 - 0x8C280907, // 001D GETMET R10 R4 K7 - 0x7C280200, // 001E CALL R10 1 - 0x8C281508, // 001F GETMET R10 R10 K8 - 0x5C301200, // 0020 MOVE R12 R9 - 0x7C280400, // 0021 CALL R10 2 - 0x8C2C0907, // 0022 GETMET R11 R4 K7 - 0x7C2C0200, // 0023 CALL R11 1 - 0x8C2C170A, // 0024 GETMET R11 R11 K10 - 0x5C341400, // 0025 MOVE R13 R10 - 0x7C2C0400, // 0026 CALL R11 2 - 0x9002120B, // 0027 SETMBR R0 K9 R11 - 0x80000000, // 0028 RET 0 + ( &(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 }) ) ); @@ -2945,55 +2534,36 @@ be_local_closure(Matter_Device__compute_pbkdf, /* name */ /******************************************************************** -** Solidified function: invoke_request +** Solidified function: start_commissioning_complete ********************************************************************/ -be_local_closure(Matter_Device_invoke_request, /* name */ +be_local_closure(Matter_Device_start_commissioning_complete, /* name */ be_nested_proto( - 12, /* nstack */ - 4, /* argc */ + 6, /* nstack */ + 2, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 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), + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota), + /* K1 */ be_nested_str_weak(log), + /* K2 */ be_nested_str_weak(MTR_X3A_X20_X2A_X2A_X2A_X20Commissioning_X20complete_X20_X2A_X2A_X2A), + /* K3 */ be_const_int(2), + /* K4 */ be_nested_str_weak(stop_basic_commissioning), }), - be_str_weak(invoke_request), + be_str_weak(start_commissioning_complete), &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 + ( &(const binstruction[ 8]) { /* code */ + 0xB80A0000, // 0000 GETNGBL R2 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x58100002, // 0002 LDCONST R4 K2 + 0x58140003, // 0003 LDCONST R5 K3 + 0x7C080600, // 0004 CALL R2 3 + 0x8C080104, // 0005 GETMET R2 R0 K4 + 0x7C080200, // 0006 CALL R2 1 + 0x80000000, // 0007 RET 0 }) ) ); @@ -3130,11 +2700,42 @@ be_local_closure(Matter_Device_mdns_remove_PASE, /* name */ /******************************************************************** -** Solidified function: mdns_announce_op_discovery_all_fabrics +** Solidified function: msg_send ********************************************************************/ -be_local_closure(Matter_Device_mdns_announce_op_discovery_all_fabrics, /* name */ +be_local_closure(Matter_Device_msg_send, /* name */ be_nested_proto( - 6, /* nstack */ + 5, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(udp_server), + /* K1 */ be_nested_str_weak(send_UDP), + }), + be_str_weak(msg_send), + &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: is_root_commissioning_open +********************************************************************/ +be_local_closure(Matter_Device_is_root_commissioning_open, /* name */ + be_nested_proto( + 3, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -3142,39 +2743,209 @@ be_local_closure(Matter_Device_mdns_announce_op_discovery_all_fabrics, /* name 0, /* has sup protos */ NULL, /* no sub protos */ 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: get_active_endpoints +********************************************************************/ +be_local_closure(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 */ + NULL, /* no sub protos */ + 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), + /* 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(mdns_announce_op_discovery_all_fabrics), + be_str_weak(get_active_endpoints), &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[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: load_param +********************************************************************/ +be_local_closure(Matter_Device_load_param, /* name */ + be_nested_proto( + 12, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[24]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(crypto), + /* K2 */ be_nested_str_weak(FILENAME), + /* K3 */ be_nested_str_weak(read), + /* K4 */ be_nested_str_weak(close), + /* K5 */ be_nested_str_weak(json), + /* K6 */ be_nested_str_weak(load), + /* K7 */ be_nested_str_weak(root_discriminator), + /* K8 */ be_nested_str_weak(find), + /* K9 */ be_nested_str_weak(distinguish), + /* K10 */ be_nested_str_weak(root_passcode), + /* K11 */ be_nested_str_weak(passcode), + /* K12 */ be_nested_str_weak(ipv4only), + /* K13 */ be_nested_str_weak(io_error), + /* K14 */ be_nested_str_weak(tasmota), + /* K15 */ be_nested_str_weak(log), + /* K16 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Aload_X20Exception_X3A), + /* K17 */ be_nested_str_weak(_X7C), + /* K18 */ be_const_int(2), + /* K19 */ be_nested_str_weak(random), + /* K20 */ be_nested_str_weak(get), + /* K21 */ be_const_int(0), + /* K22 */ be_nested_str_weak(PASSCODE_DEFAULT), + /* K23 */ be_nested_str_weak(save_param), + }), + be_str_weak(load_param), + &be_const_str_solidified, + ( &(const binstruction[79]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0xA802001D, // 0002 EXBLK 0 #0021 + 0x600C0011, // 0003 GETGBL R3 G17 + 0x88100102, // 0004 GETMBR R4 R0 K2 + 0x7C0C0200, // 0005 CALL R3 1 + 0x8C100703, // 0006 GETMET R4 R3 K3 + 0x7C100200, // 0007 CALL R4 1 + 0x8C140704, // 0008 GETMET R5 R3 K4 + 0x7C140200, // 0009 CALL R5 1 + 0xA4160A00, // 000A IMPORT R5 K5 + 0x8C180B06, // 000B GETMET R6 R5 K6 + 0x5C200800, // 000C MOVE R8 R4 + 0x7C180400, // 000D CALL R6 2 + 0x8C1C0D08, // 000E GETMET R7 R6 K8 + 0x58240009, // 000F LDCONST R9 K9 + 0x88280107, // 0010 GETMBR R10 R0 K7 + 0x7C1C0600, // 0011 CALL R7 3 + 0x90020E07, // 0012 SETMBR R0 K7 R7 + 0x8C1C0D08, // 0013 GETMET R7 R6 K8 + 0x5824000B, // 0014 LDCONST R9 K11 + 0x8828010A, // 0015 GETMBR R10 R0 K10 + 0x7C1C0600, // 0016 CALL R7 3 + 0x90021407, // 0017 SETMBR R0 K10 R7 + 0x601C0017, // 0018 GETGBL R7 G23 + 0x8C200D08, // 0019 GETMET R8 R6 K8 + 0x5828000C, // 001A LDCONST R10 K12 + 0x502C0000, // 001B LDBOOL R11 0 0 + 0x7C200600, // 001C CALL R8 3 + 0x7C1C0200, // 001D CALL R7 1 + 0x90021807, // 001E SETMBR R0 K12 R7 + 0xA8040001, // 001F EXBLK 1 1 + 0x70020012, // 0020 JMP #0034 + 0xAC0C0002, // 0021 CATCH R3 0 2 + 0x7002000F, // 0022 JMP #0033 + 0x2014070D, // 0023 NE R5 R3 K13 + 0x7816000C, // 0024 JMPF R5 #0032 + 0xB8161C00, // 0025 GETNGBL R5 K14 + 0x8C140B0F, // 0026 GETMET R5 R5 K15 + 0x601C0008, // 0027 GETGBL R7 G8 + 0x5C200600, // 0028 MOVE R8 R3 + 0x7C1C0200, // 0029 CALL R7 1 + 0x001E2007, // 002A ADD R7 K16 R7 + 0x001C0F11, // 002B ADD R7 R7 K17 + 0x60200008, // 002C GETGBL R8 G8 + 0x5C240800, // 002D MOVE R9 R4 + 0x7C200200, // 002E CALL R8 1 + 0x001C0E08, // 002F ADD R7 R7 R8 + 0x58200012, // 0030 LDCONST R8 K18 + 0x7C140600, // 0031 CALL R5 3 + 0x70020000, // 0032 JMP #0034 + 0xB0080000, // 0033 RAISE 2 R0 R0 + 0x500C0000, // 0034 LDBOOL R3 0 0 + 0x88100107, // 0035 GETMBR R4 R0 K7 + 0x4C140000, // 0036 LDNIL R5 + 0x1C100805, // 0037 EQ R4 R4 R5 + 0x7812000A, // 0038 JMPF R4 #0044 + 0x8C100513, // 0039 GETMET R4 R2 K19 + 0x58180012, // 003A LDCONST R6 K18 + 0x7C100400, // 003B CALL R4 2 + 0x8C100914, // 003C GETMET R4 R4 K20 + 0x58180015, // 003D LDCONST R6 K21 + 0x581C0012, // 003E LDCONST R7 K18 + 0x7C100600, // 003F CALL R4 3 + 0x54160FFE, // 0040 LDINT R5 4095 + 0x2C100805, // 0041 AND R4 R4 R5 + 0x90020E04, // 0042 SETMBR R0 K7 R4 + 0x500C0200, // 0043 LDBOOL R3 1 0 + 0x8810010A, // 0044 GETMBR R4 R0 K10 + 0x4C140000, // 0045 LDNIL R5 + 0x1C100805, // 0046 EQ R4 R4 R5 + 0x78120002, // 0047 JMPF R4 #004B + 0x88100116, // 0048 GETMBR R4 R0 K22 + 0x90021404, // 0049 SETMBR R0 K10 R4 + 0x500C0200, // 004A LDBOOL R3 1 0 + 0x780E0001, // 004B JMPF R3 #004E + 0x8C100117, // 004C GETMET R4 R0 K23 + 0x7C100200, // 004D CALL R4 1 + 0x80000000, // 004E RET 0 }) ) ); @@ -3182,57 +2953,328 @@ be_local_closure(Matter_Device_mdns_announce_op_discovery_all_fabrics, /* name /******************************************************************** -** Solidified function: get_active_endpoints +** Solidified function: process_attribute_expansion ********************************************************************/ -be_local_closure(Matter_Device_get_active_endpoints, /* name */ +be_local_closure(Matter_Device_process_attribute_expansion, /* name */ be_nested_proto( - 9, /* nstack */ - 2, /* argc */ + 29, /* nstack */ + 3, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 1]) { + be_nested_proto( + 7, /* nstack */ + 1, /* argc */ + 0, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(keys), + /* K1 */ be_nested_str_weak(push), + /* K2 */ be_nested_str_weak(stop_iteration), + /* K3 */ be_const_int(1), + /* K4 */ be_const_int(0), + }), + be_str_weak(keys_sorted), + &be_const_str_solidified, + ( &(const binstruction[45]) { /* code */ + 0x60040012, // 0000 GETGBL R1 G18 + 0x7C040000, // 0001 CALL R1 0 + 0x60080010, // 0002 GETGBL R2 G16 + 0x8C0C0100, // 0003 GETMET R3 R0 K0 + 0x7C0C0200, // 0004 CALL R3 1 + 0x7C080200, // 0005 CALL R2 1 + 0xA8020005, // 0006 EXBLK 0 #000D + 0x5C0C0400, // 0007 MOVE R3 R2 + 0x7C0C0000, // 0008 CALL R3 0 + 0x8C100301, // 0009 GETMET R4 R1 K1 + 0x5C180600, // 000A MOVE R6 R3 + 0x7C100400, // 000B CALL R4 2 + 0x7001FFF9, // 000C JMP #0007 + 0x58080002, // 000D LDCONST R2 K2 + 0xAC080200, // 000E CATCH R2 1 0 + 0xB0080000, // 000F RAISE 2 R0 R0 + 0x60080010, // 0010 GETGBL R2 G16 + 0x600C000C, // 0011 GETGBL R3 G12 + 0x5C100200, // 0012 MOVE R4 R1 + 0x7C0C0200, // 0013 CALL R3 1 + 0x040C0703, // 0014 SUB R3 R3 K3 + 0x400E0603, // 0015 CONNECT R3 K3 R3 + 0x7C080200, // 0016 CALL R2 1 + 0xA8020010, // 0017 EXBLK 0 #0029 + 0x5C0C0400, // 0018 MOVE R3 R2 + 0x7C0C0000, // 0019 CALL R3 0 + 0x94100203, // 001A GETIDX R4 R1 R3 + 0x5C140600, // 001B MOVE R5 R3 + 0x24180B04, // 001C GT R6 R5 K4 + 0x781A0008, // 001D JMPF R6 #0027 + 0x04180B03, // 001E SUB R6 R5 K3 + 0x94180206, // 001F GETIDX R6 R1 R6 + 0x24180C04, // 0020 GT R6 R6 R4 + 0x781A0004, // 0021 JMPF R6 #0027 + 0x04180B03, // 0022 SUB R6 R5 K3 + 0x94180206, // 0023 GETIDX R6 R1 R6 + 0x98040A06, // 0024 SETIDX R1 R5 R6 + 0x04140B03, // 0025 SUB R5 R5 K3 + 0x7001FFF4, // 0026 JMP #001C + 0x98040A04, // 0027 SETIDX R1 R5 R4 + 0x7001FFEE, // 0028 JMP #0018 + 0x58080002, // 0029 LDCONST R2 K2 + 0xAC080200, // 002A CATCH R2 1 0 + 0xB0080000, // 002B RAISE 2 R0 R0 + 0x80040200, // 002C RET 1 R1 + }) + ), + }), 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), + ( &(const bvalue[22]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(endpoint), + /* K2 */ be_nested_str_weak(cluster), + /* K3 */ be_nested_str_weak(attribute), + /* K4 */ be_nested_str_weak(plugins), + /* K5 */ be_nested_str_weak(get_endpoint), + /* K6 */ be_nested_str_weak(contains), + /* K7 */ be_nested_str_weak(get_cluster_list), + /* K8 */ be_nested_str_weak(get_attribute_list), + /* K9 */ be_nested_str_weak(push), + /* K10 */ be_nested_str_weak(stop_iteration), + /* K11 */ be_nested_str_weak(tasmota), + /* K12 */ be_nested_str_weak(log), + /* K13 */ be_nested_str_weak(format), + /* K14 */ be_nested_str_weak(MTR_X3A_X20expansion_X20_X5B_X2502X_X5D_X2504X_X2F_X2504X), + /* K15 */ be_const_int(3), + /* K16 */ be_nested_str_weak(status), + /* K17 */ be_nested_str_weak(matter), + /* K18 */ be_nested_str_weak(UNSUPPORTED_ENDPOINT), + /* K19 */ be_nested_str_weak(UNSUPPORTED_CLUSTER), + /* K20 */ be_nested_str_weak(UNSUPPORTED_ATTRIBUTE), + /* K21 */ be_nested_str_weak(UNREPORTABLE_ATTRIBUTE), }), - be_str_weak(get_active_endpoints), + be_str_weak(process_attribute_expansion), &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 + ( &(const binstruction[216]) { /* code */ + 0x840C0000, // 0000 CLOSURE R3 P0 + 0xA4120000, // 0001 IMPORT R4 K0 + 0x88140301, // 0002 GETMBR R5 R1 K1 + 0x50180000, // 0003 LDBOOL R6 0 0 + 0x881C0302, // 0004 GETMBR R7 R1 K2 + 0x50200000, // 0005 LDBOOL R8 0 0 + 0x88240303, // 0006 GETMBR R9 R1 K3 + 0x50280000, // 0007 LDBOOL R10 0 0 + 0x882C0301, // 0008 GETMBR R11 R1 K1 + 0x4C300000, // 0009 LDNIL R12 + 0x202C160C, // 000A NE R11 R11 R12 + 0x782E0007, // 000B JMPF R11 #0014 + 0x882C0302, // 000C GETMBR R11 R1 K2 + 0x4C300000, // 000D LDNIL R12 + 0x202C160C, // 000E NE R11 R11 R12 + 0x782E0003, // 000F JMPF R11 #0014 + 0x882C0303, // 0010 GETMBR R11 R1 K3 + 0x4C300000, // 0011 LDNIL R12 + 0x202C160C, // 0012 NE R11 R11 R12 + 0x742E0000, // 0013 JMPT R11 #0015 + 0x502C0001, // 0014 LDBOOL R11 0 1 + 0x502C0200, // 0015 LDBOOL R11 1 0 + 0x60300013, // 0016 GETGBL R12 G19 + 0x7C300000, // 0017 CALL R12 0 + 0x60340010, // 0018 GETGBL R13 G16 + 0x88380104, // 0019 GETMBR R14 R0 K4 + 0x7C340200, // 001A CALL R13 1 + 0xA8020055, // 001B EXBLK 0 #0072 + 0x5C381A00, // 001C MOVE R14 R13 + 0x7C380000, // 001D CALL R14 0 + 0x8C3C1D05, // 001E GETMET R15 R14 K5 + 0x7C3C0200, // 001F CALL R15 1 + 0x4C400000, // 0020 LDNIL R16 + 0x20400A10, // 0021 NE R16 R5 R16 + 0x78420002, // 0022 JMPF R16 #0026 + 0x20401E05, // 0023 NE R16 R15 R5 + 0x78420000, // 0024 JMPF R16 #0026 + 0x7001FFF5, // 0025 JMP #001C + 0x8C401906, // 0026 GETMET R16 R12 K6 + 0x5C481E00, // 0027 MOVE R18 R15 + 0x7C400400, // 0028 CALL R16 2 + 0x74420002, // 0029 JMPT R16 #002D + 0x60400013, // 002A GETGBL R16 G19 + 0x7C400000, // 002B CALL R16 0 + 0x98301E10, // 002C SETIDX R12 R15 R16 + 0x50180200, // 002D LDBOOL R6 1 0 + 0x8C401D07, // 002E GETMET R16 R14 K7 + 0x5C481E00, // 002F MOVE R18 R15 + 0x7C400400, // 0030 CALL R16 2 + 0x60440010, // 0031 GETGBL R17 G16 + 0x5C482000, // 0032 MOVE R18 R16 + 0x7C440200, // 0033 CALL R17 1 + 0xA8020038, // 0034 EXBLK 0 #006E + 0x5C482200, // 0035 MOVE R18 R17 + 0x7C480000, // 0036 CALL R18 0 + 0x4C4C0000, // 0037 LDNIL R19 + 0x204C0E13, // 0038 NE R19 R7 R19 + 0x784E0002, // 0039 JMPF R19 #003D + 0x204C2407, // 003A NE R19 R18 R7 + 0x784E0000, // 003B JMPF R19 #003D + 0x7001FFF7, // 003C JMP #0035 + 0x944C180F, // 003D GETIDX R19 R12 R15 + 0x8C4C2706, // 003E GETMET R19 R19 K6 + 0x5C542400, // 003F MOVE R21 R18 + 0x7C4C0400, // 0040 CALL R19 2 + 0x744E0003, // 0041 JMPT R19 #0046 + 0x944C180F, // 0042 GETIDX R19 R12 R15 + 0x60500013, // 0043 GETGBL R20 G19 + 0x7C500000, // 0044 CALL R20 0 + 0x984C2414, // 0045 SETIDX R19 R18 R20 + 0x50200200, // 0046 LDBOOL R8 1 0 + 0x8C4C1D08, // 0047 GETMET R19 R14 K8 + 0x5C541E00, // 0048 MOVE R21 R15 + 0x5C582400, // 0049 MOVE R22 R18 + 0x7C4C0600, // 004A CALL R19 3 + 0x60500010, // 004B GETGBL R20 G16 + 0x5C542600, // 004C MOVE R21 R19 + 0x7C500200, // 004D CALL R20 1 + 0xA802001A, // 004E EXBLK 0 #006A + 0x5C542800, // 004F MOVE R21 R20 + 0x7C540000, // 0050 CALL R21 0 + 0x4C580000, // 0051 LDNIL R22 + 0x20581216, // 0052 NE R22 R9 R22 + 0x785A0002, // 0053 JMPF R22 #0057 + 0x20582A09, // 0054 NE R22 R21 R9 + 0x785A0000, // 0055 JMPF R22 #0057 + 0x7001FFF7, // 0056 JMP #004F + 0x9458180F, // 0057 GETIDX R22 R12 R15 + 0x94582C12, // 0058 GETIDX R22 R22 R18 + 0x8C582D06, // 0059 GETMET R22 R22 K6 + 0x5C602A00, // 005A MOVE R24 R21 + 0x7C580400, // 005B CALL R22 2 + 0x745A0004, // 005C JMPT R22 #0062 + 0x9458180F, // 005D GETIDX R22 R12 R15 + 0x94582C12, // 005E GETIDX R22 R22 R18 + 0x605C0012, // 005F GETGBL R23 G18 + 0x7C5C0000, // 0060 CALL R23 0 + 0x98582A17, // 0061 SETIDX R22 R21 R23 + 0x50280200, // 0062 LDBOOL R10 1 0 + 0x9458180F, // 0063 GETIDX R22 R12 R15 + 0x94582C12, // 0064 GETIDX R22 R22 R18 + 0x94582C15, // 0065 GETIDX R22 R22 R21 + 0x8C582D09, // 0066 GETMET R22 R22 K9 + 0x5C601C00, // 0067 MOVE R24 R14 + 0x7C580400, // 0068 CALL R22 2 + 0x7001FFE4, // 0069 JMP #004F + 0x5850000A, // 006A LDCONST R20 K10 + 0xAC500200, // 006B CATCH R20 1 0 + 0xB0080000, // 006C RAISE 2 R0 R0 + 0x7001FFC6, // 006D JMP #0035 + 0x5844000A, // 006E LDCONST R17 K10 + 0xAC440200, // 006F CATCH R17 1 0 + 0xB0080000, // 0070 RAISE 2 R0 R0 + 0x7001FFA9, // 0071 JMP #001C + 0x5834000A, // 0072 LDCONST R13 K10 + 0xAC340200, // 0073 CATCH R13 1 0 + 0xB0080000, // 0074 RAISE 2 R0 R0 + 0x60340010, // 0075 GETGBL R13 G16 + 0x5C380600, // 0076 MOVE R14 R3 + 0x5C3C1800, // 0077 MOVE R15 R12 + 0x7C380200, // 0078 CALL R14 1 + 0x7C340200, // 0079 CALL R13 1 + 0xA802003D, // 007A EXBLK 0 #00B9 + 0x5C381A00, // 007B MOVE R14 R13 + 0x7C380000, // 007C CALL R14 0 + 0x603C0010, // 007D GETGBL R15 G16 + 0x5C400600, // 007E MOVE R16 R3 + 0x9444180E, // 007F GETIDX R17 R12 R14 + 0x7C400200, // 0080 CALL R16 1 + 0x7C3C0200, // 0081 CALL R15 1 + 0xA8020031, // 0082 EXBLK 0 #00B5 + 0x5C401E00, // 0083 MOVE R16 R15 + 0x7C400000, // 0084 CALL R16 0 + 0x60440010, // 0085 GETGBL R17 G16 + 0x5C480600, // 0086 MOVE R18 R3 + 0x944C180E, // 0087 GETIDX R19 R12 R14 + 0x944C2610, // 0088 GETIDX R19 R19 R16 + 0x7C480200, // 0089 CALL R18 1 + 0x7C440200, // 008A CALL R17 1 + 0xA8020024, // 008B EXBLK 0 #00B1 + 0x5C482200, // 008C MOVE R18 R17 + 0x7C480000, // 008D CALL R18 0 + 0x604C0010, // 008E GETGBL R19 G16 + 0x9450180E, // 008F GETIDX R20 R12 R14 + 0x94502810, // 0090 GETIDX R20 R20 R16 + 0x94502812, // 0091 GETIDX R20 R20 R18 + 0x7C4C0200, // 0092 CALL R19 1 + 0xA8020018, // 0093 EXBLK 0 #00AD + 0x5C502600, // 0094 MOVE R20 R19 + 0x7C500000, // 0095 CALL R20 0 + 0xB8561600, // 0096 GETNGBL R21 K11 + 0x8C542B0C, // 0097 GETMET R21 R21 K12 + 0x8C5C090D, // 0098 GETMET R23 R4 K13 + 0x5864000E, // 0099 LDCONST R25 K14 + 0x5C681C00, // 009A MOVE R26 R14 + 0x5C6C2000, // 009B MOVE R27 R16 + 0x5C702400, // 009C MOVE R28 R18 + 0x7C5C0A00, // 009D CALL R23 5 + 0x5860000F, // 009E LDCONST R24 K15 + 0x7C540600, // 009F CALL R21 3 + 0x9006020E, // 00A0 SETMBR R1 K1 R14 + 0x90060410, // 00A1 SETMBR R1 K2 R16 + 0x90060612, // 00A2 SETMBR R1 K3 R18 + 0x5C540400, // 00A3 MOVE R21 R2 + 0x5C582800, // 00A4 MOVE R22 R20 + 0x5C5C0200, // 00A5 MOVE R23 R1 + 0x5C601600, // 00A6 MOVE R24 R11 + 0x7C540600, // 00A7 CALL R21 3 + 0x782E0002, // 00A8 JMPF R11 #00AC + 0x78560001, // 00A9 JMPF R21 #00AC + 0xA8040004, // 00AA EXBLK 1 4 + 0x80002C00, // 00AB RET 0 + 0x7001FFE6, // 00AC JMP #0094 + 0x584C000A, // 00AD LDCONST R19 K10 + 0xAC4C0200, // 00AE CATCH R19 1 0 + 0xB0080000, // 00AF RAISE 2 R0 R0 + 0x7001FFDA, // 00B0 JMP #008C + 0x5844000A, // 00B1 LDCONST R17 K10 + 0xAC440200, // 00B2 CATCH R17 1 0 + 0xB0080000, // 00B3 RAISE 2 R0 R0 + 0x7001FFCD, // 00B4 JMP #0083 + 0x583C000A, // 00B5 LDCONST R15 K10 + 0xAC3C0200, // 00B6 CATCH R15 1 0 + 0xB0080000, // 00B7 RAISE 2 R0 R0 + 0x7001FFC1, // 00B8 JMP #007B + 0x5834000A, // 00B9 LDCONST R13 K10 + 0xAC340200, // 00BA CATCH R13 1 0 + 0xB0080000, // 00BB RAISE 2 R0 R0 + 0x782E0019, // 00BC JMPF R11 #00D7 + 0x5C340C00, // 00BD MOVE R13 R6 + 0x74360003, // 00BE JMPT R13 #00C3 + 0xB8362200, // 00BF GETNGBL R13 K17 + 0x88341B12, // 00C0 GETMBR R13 R13 K18 + 0x9006200D, // 00C1 SETMBR R1 K16 R13 + 0x7002000E, // 00C2 JMP #00D2 + 0x5C341000, // 00C3 MOVE R13 R8 + 0x74360003, // 00C4 JMPT R13 #00C9 + 0xB8362200, // 00C5 GETNGBL R13 K17 + 0x88341B13, // 00C6 GETMBR R13 R13 K19 + 0x9006200D, // 00C7 SETMBR R1 K16 R13 + 0x70020008, // 00C8 JMP #00D2 + 0x5C341400, // 00C9 MOVE R13 R10 + 0x74360003, // 00CA JMPT R13 #00CF + 0xB8362200, // 00CB GETNGBL R13 K17 + 0x88341B14, // 00CC GETMBR R13 R13 K20 + 0x9006200D, // 00CD SETMBR R1 K16 R13 + 0x70020002, // 00CE JMP #00D2 + 0xB8362200, // 00CF GETNGBL R13 K17 + 0x88341B15, // 00D0 GETMBR R13 R13 K21 + 0x9006200D, // 00D1 SETMBR R1 K16 R13 + 0x5C340400, // 00D2 MOVE R13 R2 + 0x4C380000, // 00D3 LDNIL R14 + 0x5C3C0200, // 00D4 MOVE R15 R1 + 0x50400200, // 00D5 LDBOOL R16 1 0 + 0x7C340600, // 00D6 CALL R13 3 + 0x80000000, // 00D7 RET 0 }) ) ); @@ -3244,191 +3286,7 @@ be_local_closure(Matter_Device_get_active_endpoints, /* name */ ********************************************************************/ be_local_closure(Matter_Device_autoconf_device, /* name */ be_nested_proto( - 15, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[24]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_const_int(1), - /* K2 */ be_nested_str_weak(light), - /* K3 */ be_nested_str_weak(get), - /* K4 */ be_nested_str_weak(find), - /* K5 */ be_nested_str_weak(channels), - /* K6 */ be_nested_str_weak(), - /* K7 */ be_const_int(0), - /* K8 */ be_nested_str_weak(plugins), - /* K9 */ be_nested_str_weak(push), - /* K10 */ be_nested_str_weak(matter), - /* K11 */ be_nested_str_weak(Plugin_Light1), - /* K12 */ be_nested_str_weak(tasmota), - /* K13 */ be_nested_str_weak(log), - /* K14 */ be_nested_str_weak(format), - /* K15 */ be_nested_str_weak(MTR_X3A_X20Endpoint_X3A_X25i_X20Light_Dimmer), - /* K16 */ be_const_int(2), - /* K17 */ be_nested_str_weak(Plugin_Light2), - /* K18 */ be_nested_str_weak(MTR_X3A_X20Endpoint_X3A_X25i_X20Light_CT), - /* K19 */ be_nested_str_weak(Plugin_Light3), - /* K20 */ be_nested_str_weak(MTR_X3A_X20Endpoint_X3A_X25i_X20Light_RGB), - /* K21 */ be_nested_str_weak(get_power), - /* K22 */ be_nested_str_weak(Plugin_OnOff), - /* K23 */ be_nested_str_weak(MTR_X3A_X20Endpoint_X3A_X25i_X20Relay__X25i), - }), - be_str_weak(autoconf_device), - &be_const_str_solidified, - ( &(const binstruction[105]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x58080001, // 0001 LDCONST R2 K1 - 0x500C0000, // 0002 LDBOOL R3 0 0 - 0xA4120400, // 0003 IMPORT R4 K2 - 0x8C140903, // 0004 GETMET R5 R4 K3 - 0x7C140200, // 0005 CALL R5 1 - 0x4C180000, // 0006 LDNIL R6 - 0x20180A06, // 0007 NE R6 R5 R6 - 0x781A003F, // 0008 JMPF R6 #0049 - 0x6018000C, // 0009 GETGBL R6 G12 - 0x8C1C0B04, // 000A GETMET R7 R5 K4 - 0x58240005, // 000B LDCONST R9 K5 - 0x58280006, // 000C LDCONST R10 K6 - 0x7C1C0600, // 000D CALL R7 3 - 0x7C180200, // 000E CALL R6 1 - 0x241C0D07, // 000F GT R7 R6 K7 - 0x781E0037, // 0010 JMPF R7 #0049 - 0x1C1C0D01, // 0011 EQ R7 R6 K1 - 0x781E0010, // 0012 JMPF R7 #0024 - 0x881C0108, // 0013 GETMBR R7 R0 K8 - 0x8C1C0F09, // 0014 GETMET R7 R7 K9 - 0xB8261400, // 0015 GETNGBL R9 K10 - 0x8C24130B, // 0016 GETMET R9 R9 K11 - 0x5C2C0000, // 0017 MOVE R11 R0 - 0x5C300400, // 0018 MOVE R12 R2 - 0x7C240600, // 0019 CALL R9 3 - 0x7C1C0400, // 001A CALL R7 2 - 0xB81E1800, // 001B GETNGBL R7 K12 - 0x8C1C0F0D, // 001C GETMET R7 R7 K13 - 0x8C24030E, // 001D GETMET R9 R1 K14 - 0x582C000F, // 001E LDCONST R11 K15 - 0x5C300400, // 001F MOVE R12 R2 - 0x7C240600, // 0020 CALL R9 3 - 0x58280010, // 0021 LDCONST R10 K16 - 0x7C1C0600, // 0022 CALL R7 3 - 0x70020022, // 0023 JMP #0047 - 0x1C1C0D10, // 0024 EQ R7 R6 K16 - 0x781E0010, // 0025 JMPF R7 #0037 - 0x881C0108, // 0026 GETMBR R7 R0 K8 - 0x8C1C0F09, // 0027 GETMET R7 R7 K9 - 0xB8261400, // 0028 GETNGBL R9 K10 - 0x8C241311, // 0029 GETMET R9 R9 K17 - 0x5C2C0000, // 002A MOVE R11 R0 - 0x5C300400, // 002B MOVE R12 R2 - 0x7C240600, // 002C CALL R9 3 - 0x7C1C0400, // 002D CALL R7 2 - 0xB81E1800, // 002E GETNGBL R7 K12 - 0x8C1C0F0D, // 002F GETMET R7 R7 K13 - 0x8C24030E, // 0030 GETMET R9 R1 K14 - 0x582C0012, // 0031 LDCONST R11 K18 - 0x5C300400, // 0032 MOVE R12 R2 - 0x7C240600, // 0033 CALL R9 3 - 0x58280010, // 0034 LDCONST R10 K16 - 0x7C1C0600, // 0035 CALL R7 3 - 0x7002000F, // 0036 JMP #0047 - 0x881C0108, // 0037 GETMBR R7 R0 K8 - 0x8C1C0F09, // 0038 GETMET R7 R7 K9 - 0xB8261400, // 0039 GETNGBL R9 K10 - 0x8C241313, // 003A GETMET R9 R9 K19 - 0x5C2C0000, // 003B MOVE R11 R0 - 0x5C300400, // 003C MOVE R12 R2 - 0x7C240600, // 003D CALL R9 3 - 0x7C1C0400, // 003E CALL R7 2 - 0xB81E1800, // 003F GETNGBL R7 K12 - 0x8C1C0F0D, // 0040 GETMET R7 R7 K13 - 0x8C24030E, // 0041 GETMET R9 R1 K14 - 0x582C0014, // 0042 LDCONST R11 K20 - 0x5C300400, // 0043 MOVE R12 R2 - 0x7C240600, // 0044 CALL R9 3 - 0x58280010, // 0045 LDCONST R10 K16 - 0x7C1C0600, // 0046 CALL R7 3 - 0x500C0200, // 0047 LDBOOL R3 1 0 - 0x00080501, // 0048 ADD R2 R2 K1 - 0x6018000C, // 0049 GETGBL R6 G12 - 0xB81E1800, // 004A GETNGBL R7 K12 - 0x8C1C0F15, // 004B GETMET R7 R7 K21 - 0x7C1C0200, // 004C CALL R7 1 - 0x7C180200, // 004D CALL R6 1 - 0x581C0007, // 004E LDCONST R7 K7 - 0x780E0000, // 004F JMPF R3 #0051 - 0x04180D01, // 0050 SUB R6 R6 K1 - 0x14200E06, // 0051 LT R8 R7 R6 - 0x78220014, // 0052 JMPF R8 #0068 - 0x88200108, // 0053 GETMBR R8 R0 K8 - 0x8C201109, // 0054 GETMET R8 R8 K9 - 0xB82A1400, // 0055 GETNGBL R10 K10 - 0x8C281516, // 0056 GETMET R10 R10 K22 - 0x5C300000, // 0057 MOVE R12 R0 - 0x5C340400, // 0058 MOVE R13 R2 - 0x5C380E00, // 0059 MOVE R14 R7 - 0x7C280800, // 005A CALL R10 4 - 0x7C200400, // 005B CALL R8 2 - 0xB8221800, // 005C GETNGBL R8 K12 - 0x8C20110D, // 005D GETMET R8 R8 K13 - 0x8C28030E, // 005E GETMET R10 R1 K14 - 0x58300017, // 005F LDCONST R12 K23 - 0x5C340400, // 0060 MOVE R13 R2 - 0x00380F01, // 0061 ADD R14 R7 K1 - 0x7C280800, // 0062 CALL R10 4 - 0x582C0010, // 0063 LDCONST R11 K16 - 0x7C200600, // 0064 CALL R8 3 - 0x001C0F01, // 0065 ADD R7 R7 K1 - 0x00080501, // 0066 ADD R2 R2 K1 - 0x7001FFE8, // 0067 JMP #0051 - 0x80000000, // 0068 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: msg_send -********************************************************************/ -be_local_closure(Matter_Device_msg_send, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(udp_server), - /* K1 */ be_nested_str_weak(send_UDP), - }), - be_str_weak(msg_send), - &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: every_second -********************************************************************/ -be_local_closure(Matter_Device_every_second, /* name */ - be_nested_proto( - 4, /* nstack */ + 21, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -3436,50 +3294,205 @@ be_local_closure(Matter_Device_every_second, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 9]) { /* 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(commissioning_open), - /* K4 */ be_nested_str_weak(tasmota), - /* K5 */ be_nested_str_weak(time_reached), - /* K6 */ be_const_int(0), - /* K7 */ be_nested_str_weak(plugins), - /* K8 */ be_const_int(1), - }), - be_str_weak(every_second), - &be_const_str_solidified, - ( &(const binstruction[30]) { /* 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 - 0x4C080000, // 0007 LDNIL R2 - 0x20040202, // 0008 NE R1 R1 R2 - 0x78060006, // 0009 JMPF R1 #0011 - 0xB8060800, // 000A GETNGBL R1 K4 - 0x8C040305, // 000B GETMET R1 R1 K5 - 0x880C0103, // 000C GETMBR R3 R0 K3 - 0x7C040400, // 000D CALL R1 2 - 0x78060001, // 000E JMPF R1 #0011 - 0x4C040000, // 000F LDNIL R1 - 0x90020601, // 0010 SETMBR R0 K3 R1 - 0x58040006, // 0011 LDCONST R1 K6 - 0x6008000C, // 0012 GETGBL R2 G12 - 0x880C0107, // 0013 GETMBR R3 R0 K7 - 0x7C080200, // 0014 CALL R2 1 - 0x14080202, // 0015 LT R2 R1 R2 - 0x780A0005, // 0016 JMPF R2 #001D - 0x88080107, // 0017 GETMBR R2 R0 K7 - 0x94080401, // 0018 GETIDX R2 R2 R1 - 0x8C080501, // 0019 GETMET R2 R2 K1 - 0x7C080200, // 001A CALL R2 1 - 0x00040308, // 001B ADD R1 R1 K8 - 0x7001FFF4, // 001C JMP #0012 - 0x80000000, // 001D RET 0 + ( &(const bvalue[34]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(json), + /* K2 */ be_const_int(1), + /* 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_nested_str_weak(plugins), + /* K10 */ be_nested_str_weak(push), + /* K11 */ be_nested_str_weak(matter), + /* K12 */ be_nested_str_weak(Plugin_Light1), + /* K13 */ be_nested_str_weak(tasmota), + /* K14 */ be_nested_str_weak(log), + /* K15 */ be_nested_str_weak(format), + /* K16 */ be_nested_str_weak(MTR_X3A_X20Endpoint_X3A_X25i_X20Light_Dimmer), + /* K17 */ be_const_int(2), + /* K18 */ be_nested_str_weak(Plugin_Light2), + /* K19 */ be_nested_str_weak(MTR_X3A_X20Endpoint_X3A_X25i_X20Light_CT), + /* K20 */ be_nested_str_weak(Plugin_Light3), + /* K21 */ be_nested_str_weak(MTR_X3A_X20Endpoint_X3A_X25i_X20Light_RGB), + /* K22 */ be_nested_str_weak(get_power), + /* K23 */ be_nested_str_weak(Plugin_OnOff), + /* K24 */ be_nested_str_weak(MTR_X3A_X20Endpoint_X3A_X25i_X20Relay__X25i), + /* K25 */ be_nested_str_weak(load), + /* K26 */ be_nested_str_weak(read_sensors), + /* K27 */ be_nested_str_weak(k2l), + /* K28 */ be_nested_str_weak(contains), + /* K29 */ be_nested_str_weak(Temperature), + /* K30 */ be_nested_str_weak(_X23Temperature), + /* K31 */ be_nested_str_weak(Plugin_Temp_Sensor), + /* K32 */ be_nested_str_weak(MTR_X3A_X20Endpoint_X3A_X25i_X20Temperature_X20_X28_X25s_X29), + /* K33 */ be_nested_str_weak(stop_iteration), + }), + be_str_weak(autoconf_device), + &be_const_str_solidified, + ( &(const binstruction[160]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0x580C0002, // 0002 LDCONST R3 K2 + 0x50100000, // 0003 LDBOOL R4 0 0 + 0xA4160600, // 0004 IMPORT R5 K3 + 0x8C180B04, // 0005 GETMET R6 R5 K4 + 0x7C180200, // 0006 CALL R6 1 + 0x4C1C0000, // 0007 LDNIL R7 + 0x201C0C07, // 0008 NE R7 R6 R7 + 0x781E003F, // 0009 JMPF R7 #004A + 0x601C000C, // 000A GETGBL R7 G12 + 0x8C200D05, // 000B GETMET R8 R6 K5 + 0x58280006, // 000C LDCONST R10 K6 + 0x582C0007, // 000D LDCONST R11 K7 + 0x7C200600, // 000E CALL R8 3 + 0x7C1C0200, // 000F CALL R7 1 + 0x24200F08, // 0010 GT R8 R7 K8 + 0x78220037, // 0011 JMPF R8 #004A + 0x1C200F02, // 0012 EQ R8 R7 K2 + 0x78220010, // 0013 JMPF R8 #0025 + 0x88200109, // 0014 GETMBR R8 R0 K9 + 0x8C20110A, // 0015 GETMET R8 R8 K10 + 0xB82A1600, // 0016 GETNGBL R10 K11 + 0x8C28150C, // 0017 GETMET R10 R10 K12 + 0x5C300000, // 0018 MOVE R12 R0 + 0x5C340600, // 0019 MOVE R13 R3 + 0x7C280600, // 001A CALL R10 3 + 0x7C200400, // 001B CALL R8 2 + 0xB8221A00, // 001C GETNGBL R8 K13 + 0x8C20110E, // 001D GETMET R8 R8 K14 + 0x8C28030F, // 001E GETMET R10 R1 K15 + 0x58300010, // 001F LDCONST R12 K16 + 0x5C340600, // 0020 MOVE R13 R3 + 0x7C280600, // 0021 CALL R10 3 + 0x582C0011, // 0022 LDCONST R11 K17 + 0x7C200600, // 0023 CALL R8 3 + 0x70020022, // 0024 JMP #0048 + 0x1C200F11, // 0025 EQ R8 R7 K17 + 0x78220010, // 0026 JMPF R8 #0038 + 0x88200109, // 0027 GETMBR R8 R0 K9 + 0x8C20110A, // 0028 GETMET R8 R8 K10 + 0xB82A1600, // 0029 GETNGBL R10 K11 + 0x8C281512, // 002A GETMET R10 R10 K18 + 0x5C300000, // 002B MOVE R12 R0 + 0x5C340600, // 002C MOVE R13 R3 + 0x7C280600, // 002D CALL R10 3 + 0x7C200400, // 002E CALL R8 2 + 0xB8221A00, // 002F GETNGBL R8 K13 + 0x8C20110E, // 0030 GETMET R8 R8 K14 + 0x8C28030F, // 0031 GETMET R10 R1 K15 + 0x58300013, // 0032 LDCONST R12 K19 + 0x5C340600, // 0033 MOVE R13 R3 + 0x7C280600, // 0034 CALL R10 3 + 0x582C0011, // 0035 LDCONST R11 K17 + 0x7C200600, // 0036 CALL R8 3 + 0x7002000F, // 0037 JMP #0048 + 0x88200109, // 0038 GETMBR R8 R0 K9 + 0x8C20110A, // 0039 GETMET R8 R8 K10 + 0xB82A1600, // 003A GETNGBL R10 K11 + 0x8C281514, // 003B GETMET R10 R10 K20 + 0x5C300000, // 003C MOVE R12 R0 + 0x5C340600, // 003D MOVE R13 R3 + 0x7C280600, // 003E CALL R10 3 + 0x7C200400, // 003F CALL R8 2 + 0xB8221A00, // 0040 GETNGBL R8 K13 + 0x8C20110E, // 0041 GETMET R8 R8 K14 + 0x8C28030F, // 0042 GETMET R10 R1 K15 + 0x58300015, // 0043 LDCONST R12 K21 + 0x5C340600, // 0044 MOVE R13 R3 + 0x7C280600, // 0045 CALL R10 3 + 0x582C0011, // 0046 LDCONST R11 K17 + 0x7C200600, // 0047 CALL R8 3 + 0x50100200, // 0048 LDBOOL R4 1 0 + 0x000C0702, // 0049 ADD R3 R3 K2 + 0x601C000C, // 004A GETGBL R7 G12 + 0xB8221A00, // 004B GETNGBL R8 K13 + 0x8C201116, // 004C GETMET R8 R8 K22 + 0x7C200200, // 004D CALL R8 1 + 0x7C1C0200, // 004E CALL R7 1 + 0x58200008, // 004F LDCONST R8 K8 + 0x78120000, // 0050 JMPF R4 #0052 + 0x041C0F02, // 0051 SUB R7 R7 K2 + 0x14241007, // 0052 LT R9 R8 R7 + 0x78260014, // 0053 JMPF R9 #0069 + 0x88240109, // 0054 GETMBR R9 R0 K9 + 0x8C24130A, // 0055 GETMET R9 R9 K10 + 0xB82E1600, // 0056 GETNGBL R11 K11 + 0x8C2C1717, // 0057 GETMET R11 R11 K23 + 0x5C340000, // 0058 MOVE R13 R0 + 0x5C380600, // 0059 MOVE R14 R3 + 0x5C3C1000, // 005A MOVE R15 R8 + 0x7C2C0800, // 005B CALL R11 4 + 0x7C240400, // 005C CALL R9 2 + 0xB8261A00, // 005D GETNGBL R9 K13 + 0x8C24130E, // 005E GETMET R9 R9 K14 + 0x8C2C030F, // 005F GETMET R11 R1 K15 + 0x58340018, // 0060 LDCONST R13 K24 + 0x5C380600, // 0061 MOVE R14 R3 + 0x003C1102, // 0062 ADD R15 R8 K2 + 0x7C2C0800, // 0063 CALL R11 4 + 0x58300011, // 0064 LDCONST R12 K17 + 0x7C240600, // 0065 CALL R9 3 + 0x00201102, // 0066 ADD R8 R8 K2 + 0x000C0702, // 0067 ADD R3 R3 K2 + 0x7001FFE8, // 0068 JMP #0052 + 0x8C240519, // 0069 GETMET R9 R2 K25 + 0xB82E1A00, // 006A GETNGBL R11 K13 + 0x8C2C171A, // 006B GETMET R11 R11 K26 + 0x7C2C0200, // 006C CALL R11 1 + 0x7C240400, // 006D CALL R9 2 + 0x540E001F, // 006E LDINT R3 32 + 0x60280010, // 006F GETGBL R10 G16 + 0x8C2C011B, // 0070 GETMET R11 R0 K27 + 0x5C341200, // 0071 MOVE R13 R9 + 0x7C2C0400, // 0072 CALL R11 2 + 0x7C280200, // 0073 CALL R10 1 + 0xA8020026, // 0074 EXBLK 0 #009C + 0x5C2C1400, // 0075 MOVE R11 R10 + 0x7C2C0000, // 0076 CALL R11 0 + 0x9430120B, // 0077 GETIDX R12 R9 R11 + 0x6034000F, // 0078 GETGBL R13 G15 + 0x5C381800, // 0079 MOVE R14 R12 + 0x603C0013, // 007A GETGBL R15 G19 + 0x7C340400, // 007B CALL R13 2 + 0x78360017, // 007C JMPF R13 #0095 + 0x8C34191C, // 007D GETMET R13 R12 K28 + 0x583C001D, // 007E LDCONST R15 K29 + 0x7C340400, // 007F CALL R13 2 + 0x78360013, // 0080 JMPF R13 #0095 + 0x0034171E, // 0081 ADD R13 R11 K30 + 0x88380109, // 0082 GETMBR R14 R0 K9 + 0x8C381D0A, // 0083 GETMET R14 R14 K10 + 0xB8421600, // 0084 GETNGBL R16 K11 + 0x8C40211F, // 0085 GETMET R16 R16 K31 + 0x5C480000, // 0086 MOVE R18 R0 + 0x5C4C0600, // 0087 MOVE R19 R3 + 0x5C501A00, // 0088 MOVE R20 R13 + 0x7C400800, // 0089 CALL R16 4 + 0x7C380400, // 008A CALL R14 2 + 0xB83A1A00, // 008B GETNGBL R14 K13 + 0x8C381D0E, // 008C GETMET R14 R14 K14 + 0x8C40030F, // 008D GETMET R16 R1 K15 + 0x58480020, // 008E LDCONST R18 K32 + 0x5C4C0600, // 008F MOVE R19 R3 + 0x5C501A00, // 0090 MOVE R20 R13 + 0x7C400800, // 0091 CALL R16 4 + 0x58440011, // 0092 LDCONST R17 K17 + 0x7C380600, // 0093 CALL R14 3 + 0x000C0702, // 0094 ADD R3 R3 K2 + 0x54360027, // 0095 LDINT R13 40 + 0x2434060D, // 0096 GT R13 R3 R13 + 0x78360000, // 0097 JMPF R13 #0099 + 0x70020000, // 0098 JMP #009A + 0x7001FFDA, // 0099 JMP #0075 + 0xA8040001, // 009A EXBLK 1 1 + 0x70020002, // 009B JMP #009F + 0x58280021, // 009C LDCONST R10 K33 + 0xAC280200, // 009D CATCH R10 1 0 + 0xB0080000, // 009E RAISE 2 R0 R0 + 0x80000000, // 009F RET 0 }) ) ); @@ -3487,51 +3500,131 @@ be_local_closure(Matter_Device_every_second, /* name */ /******************************************************************** -** Solidified function: mdns_remove_op_discovery_all_fabrics +** Solidified function: start_mdns_announce_hostnames ********************************************************************/ -be_local_closure(Matter_Device_mdns_remove_op_discovery_all_fabrics, /* name */ +be_local_closure(Matter_Device_start_mdns_announce_hostnames, /* name */ be_nested_proto( 6, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 2]) { + 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, /* no sub protos */ + 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, /* no sub protos */ + 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 + }) + ), + }), 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), + ( &(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(mdns_remove_op_discovery_all_fabrics), + be_str_weak(start_mdns_announce_hostnames), &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[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 }) ) ); @@ -3713,6 +3806,58 @@ be_local_closure(Matter_Device_mdns_announce_op_discovery, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: mdns_remove_op_discovery_all_fabrics +********************************************************************/ +be_local_closure(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 */ + NULL, /* no sub protos */ + 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: start_commissioning_complete_deferred ********************************************************************/ @@ -3779,83 +3924,84 @@ be_local_closure(Matter_Device_start_commissioning_complete_deferred, /* name be_local_class(Matter_Device, 28, NULL, - be_nested_map(76, + be_nested_map(77, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(PRODUCT_ID, -1), be_const_int(32768) }, - { be_const_key_weak(start_operational_discovery, 57), be_const_closure(Matter_Device_start_operational_discovery_closure) }, - { be_const_key_weak(root_L, 14), be_const_var(27) }, - { be_const_key_weak(commissioning_discriminator, 10), be_const_var(8) }, - { be_const_key_weak(FILENAME, 41), be_nested_str_weak(_matter_device_X2Ejson) }, + { be_const_key_weak(started, -1), be_const_var(0) }, + { be_const_key_weak(is_commissioning_open, -1), be_const_closure(Matter_Device_is_commissioning_open_closure) }, + { be_const_key_weak(received_ack, 0), be_const_closure(Matter_Device_received_ack_closure) }, + { be_const_key_weak(mdns_remove_op_discovery_all_fabrics, -1), be_const_closure(Matter_Device_mdns_remove_op_discovery_all_fabrics_closure) }, + { be_const_key_weak(mdns_announce_op_discovery, -1), be_const_closure(Matter_Device_mdns_announce_op_discovery_closure) }, + { be_const_key_weak(start_mdns_announce_hostnames, 40), be_const_closure(Matter_Device_start_mdns_announce_hostnames_closure) }, + { be_const_key_weak(k2l, -1), be_const_static_closure(Matter_Device_k2l_closure) }, + { be_const_key_weak(compute_manual_pairing_code, 65), be_const_closure(Matter_Device_compute_manual_pairing_code_closure) }, + { be_const_key_weak(root_w0, -1), be_const_var(26) }, + { be_const_key_weak(mdns_announce_PASE, -1), be_const_closure(Matter_Device_mdns_announce_PASE_closure) }, + { be_const_key_weak(every_second, 42), be_const_closure(Matter_Device_every_second_closure) }, + { be_const_key_weak(process_attribute_expansion, -1), be_const_closure(Matter_Device_process_attribute_expansion_closure) }, { be_const_key_weak(_init_basic_commissioning, -1), be_const_closure(Matter_Device__init_basic_commissioning_closure) }, - { be_const_key_weak(compute_manual_pairing_code, -1), be_const_closure(Matter_Device_compute_manual_pairing_code_closure) }, - { be_const_key_weak(_trigger_read_sensors, -1), be_const_closure(Matter_Device__trigger_read_sensors_closure) }, { be_const_key_weak(hostname_eth, -1), be_const_var(16) }, - { be_const_key_weak(productid, 44), be_const_var(18) }, - { be_const_key_weak(start, -1), be_const_closure(Matter_Device_start_closure) }, - { be_const_key_weak(root_salt, -1), be_const_var(25) }, - { be_const_key_weak(mdns_announce_op_discovery, 65), be_const_closure(Matter_Device_mdns_announce_op_discovery_closure) }, - { be_const_key_weak(start_operational_discovery_deferred, -1), be_const_closure(Matter_Device_start_operational_discovery_deferred_closure) }, - { be_const_key_weak(mdns_remove_op_discovery_all_fabrics, -1), be_const_closure(Matter_Device_mdns_remove_op_discovery_all_fabrics_closure) }, + { be_const_key_weak(vendorid, 22), be_const_var(17) }, + { be_const_key_weak(commissioning_iterations, -1), be_const_var(7) }, + { be_const_key_weak(root_iterations, -1), be_const_var(24) }, + { be_const_key_weak(root_L, 23), be_const_var(27) }, + { be_const_key_weak(VENDOR_ID, 15), be_const_int(65521) }, + { be_const_key_weak(root_passcode, 33), be_const_var(22) }, + { be_const_key_weak(mdns_announce_op_discovery_all_fabrics, -1), be_const_closure(Matter_Device_mdns_announce_op_discovery_all_fabrics_closure) }, + { be_const_key_weak(PBKDF_ITERATIONS, 5), be_const_int(1000) }, { be_const_key_weak(UDP_PORT, -1), be_const_int(5540) }, - { be_const_key_weak(compute_qrcode_content, 71), be_const_closure(Matter_Device_compute_qrcode_content_closure) }, - { be_const_key_weak(msg_send, 42), be_const_closure(Matter_Device_msg_send_closure) }, - { be_const_key_weak(commissioning_instance_eth, -1), be_const_var(14) }, - { be_const_key_weak(PBKDF_ITERATIONS, 16), be_const_int(1000) }, - { be_const_key_weak(received_ack, -1), be_const_closure(Matter_Device_received_ack_closure) }, - { be_const_key_weak(start_root_basic_commissioning, -1), be_const_closure(Matter_Device_start_root_basic_commissioning_closure) }, + { be_const_key_weak(commissioning_discriminator, 58), be_const_var(8) }, + { be_const_key_weak(stop, -1), be_const_closure(Matter_Device_stop_closure) }, + { be_const_key_weak(stop_basic_commissioning, -1), be_const_closure(Matter_Device_stop_basic_commissioning_closure) }, + { be_const_key_weak(productid, -1), be_const_var(18) }, + { be_const_key_weak(start, -1), be_const_closure(Matter_Device_start_closure) }, + { be_const_key_weak(PASE_TIMEOUT, -1), be_const_int(600) }, + { be_const_key_weak(every_250ms, -1), be_const_closure(Matter_Device_every_250ms_closure) }, + { be_const_key_weak(is_root_commissioning_open, 57), be_const_closure(Matter_Device_is_root_commissioning_open_closure) }, + { be_const_key_weak(hostname_wifi, 6), be_const_var(15) }, + { be_const_key_weak(PASSCODE_DEFAULT, 49), be_const_int(20202021) }, + { be_const_key_weak(commissioning_w0, -1), be_const_var(10) }, + { be_const_key_weak(_compute_pbkdf, 62), be_const_closure(Matter_Device__compute_pbkdf_closure) }, + { be_const_key_weak(msg_send, 47), be_const_closure(Matter_Device_msg_send_closure) }, + { be_const_key_weak(_start_udp, -1), be_const_closure(Matter_Device__start_udp_closure) }, + { be_const_key_weak(start_operational_discovery_deferred, 68), be_const_closure(Matter_Device_start_operational_discovery_deferred_closure) }, + { be_const_key_weak(start_operational_discovery, 52), be_const_closure(Matter_Device_start_operational_discovery_closure) }, + { be_const_key_weak(udp_server, 51), be_const_var(2) }, + { be_const_key_weak(invoke_request, 73), be_const_closure(Matter_Device_invoke_request_closure) }, + { be_const_key_weak(remove_fabric, -1), be_const_closure(Matter_Device_remove_fabric_closure) }, + { be_const_key_weak(mdns_remove_PASE, -1), be_const_closure(Matter_Device_mdns_remove_PASE_closure) }, { be_const_key_weak(save_before_restart, -1), be_const_closure(Matter_Device_save_before_restart_closure) }, - { be_const_key_weak(plugins, 40), be_const_var(1) }, + { be_const_key_weak(mdns_pase_eth, -1), be_const_var(19) }, + { be_const_key_weak(plugins, -1), be_const_var(1) }, + { be_const_key_weak(_mdns_announce_hostname, -1), be_const_closure(Matter_Device__mdns_announce_hostname_closure) }, + { be_const_key_weak(commissioning_salt, -1), be_const_var(9) }, + { be_const_key_weak(commissioning_instance_eth, -1), be_const_var(14) }, + { be_const_key_weak(PRODUCT_ID, 71), be_const_int(32768) }, + { be_const_key_weak(_trigger_read_sensors, 48), be_const_closure(Matter_Device__trigger_read_sensors_closure) }, + { be_const_key_weak(msg_received, 66), be_const_closure(Matter_Device_msg_received_closure) }, + { be_const_key_weak(ui, 24), be_const_var(5) }, + { be_const_key_weak(start_root_basic_commissioning, 30), be_const_closure(Matter_Device_start_root_basic_commissioning_closure) }, + { be_const_key_weak(root_salt, -1), be_const_var(25) }, + { be_const_key_weak(mdns_remove_op_discovery, -1), be_const_closure(Matter_Device_mdns_remove_op_discovery_closure) }, + { be_const_key_weak(commissioning_instance_wifi, -1), be_const_var(13) }, { be_const_key_weak(commissioning_admin_fabric, -1), be_const_var(12) }, - { be_const_key_weak(commissioning_iterations, 17), be_const_var(7) }, - { be_const_key_weak(root_passcode, 63), be_const_var(22) }, - { be_const_key_weak(mdns_pase_eth, 36), be_const_var(19) }, - { be_const_key_weak(autoconf_device, 33), be_const_closure(Matter_Device_autoconf_device_closure) }, - { be_const_key_weak(mdns_announce_PASE, -1), be_const_closure(Matter_Device_mdns_announce_PASE_closure) }, - { be_const_key_weak(get_active_endpoints, 29), be_const_closure(Matter_Device_get_active_endpoints_closure) }, - { be_const_key_weak(attribute_updated, -1), be_const_closure(Matter_Device_attribute_updated_closure) }, - { be_const_key_weak(every_250ms, -1), be_const_closure(Matter_Device_every_250ms_closure) }, - { be_const_key_weak(mdns_announce_op_discovery_all_fabrics, -1), be_const_closure(Matter_Device_mdns_announce_op_discovery_all_fabrics_closure) }, - { be_const_key_weak(save_param, 12), be_const_closure(Matter_Device_save_param_closure) }, - { be_const_key_weak(process_attribute_expansion, 30), be_const_closure(Matter_Device_process_attribute_expansion_closure) }, - { be_const_key_weak(commissioning_L, -1), be_const_var(11) }, - { be_const_key_weak(root_w0, -1), be_const_var(26) }, - { be_const_key_weak(started, 64), be_const_var(0) }, { be_const_key_weak(message_handler, -1), be_const_var(3) }, - { be_const_key_weak(PASSCODE_DEFAULT, -1), be_const_int(20202021) }, - { be_const_key_weak(stop_basic_commissioning, -1), be_const_closure(Matter_Device_stop_basic_commissioning_closure) }, - { be_const_key_weak(_compute_pbkdf, -1), be_const_closure(Matter_Device__compute_pbkdf_closure) }, - { be_const_key_weak(is_root_commissioning_open, -1), be_const_closure(Matter_Device_is_root_commissioning_open_closure) }, - { be_const_key_weak(VENDOR_ID, -1), be_const_int(65521) }, + { be_const_key_weak(start_commissioning_complete, -1), be_const_closure(Matter_Device_start_commissioning_complete_closure) }, + { be_const_key_weak(mdns_pase_wifi, -1), be_const_var(20) }, { be_const_key_weak(commissioning_open, -1), be_const_var(6) }, - { be_const_key_weak(commissioning_instance_wifi, 60), be_const_var(13) }, - { be_const_key_weak(mdns_remove_op_discovery, 62), be_const_closure(Matter_Device_mdns_remove_op_discovery_closure) }, - { be_const_key_weak(sessions, -1), be_const_var(4) }, - { be_const_key_weak(stop, -1), be_const_closure(Matter_Device_stop_closure) }, { be_const_key_weak(root_discriminator, -1), be_const_var(21) }, - { be_const_key_weak(init, 55), be_const_closure(Matter_Device_init_closure) }, - { be_const_key_weak(msg_received, -1), be_const_closure(Matter_Device_msg_received_closure) }, - { be_const_key_weak(commissioning_salt, -1), be_const_var(9) }, - { be_const_key_weak(sort_distinct, -1), be_const_static_closure(Matter_Device_sort_distinct_closure) }, - { be_const_key_weak(ui, 47), be_const_var(5) }, - { be_const_key_weak(hostname_wifi, -1), be_const_var(15) }, - { be_const_key_weak(start_mdns_announce_hostnames, 13), be_const_closure(Matter_Device_start_mdns_announce_hostnames_closure) }, - { be_const_key_weak(_mdns_announce_hostname, -1), be_const_closure(Matter_Device__mdns_announce_hostname_closure) }, - { be_const_key_weak(load_param, -1), be_const_closure(Matter_Device_load_param_closure) }, - { be_const_key_weak(vendorid, 73), be_const_var(17) }, - { be_const_key_weak(mdns_pase_wifi, -1), be_const_var(20) }, - { be_const_key_weak(start_commissioning_complete, -1), be_const_closure(Matter_Device_start_commissioning_complete_closure) }, - { be_const_key_weak(commissioning_w0, 68), be_const_var(10) }, + { be_const_key_weak(commissioning_L, -1), be_const_var(11) }, + { be_const_key_weak(sort_distinct, 35), be_const_static_closure(Matter_Device_sort_distinct_closure) }, + { be_const_key_weak(sessions, -1), be_const_var(4) }, { be_const_key_weak(start_basic_commissioning, -1), be_const_closure(Matter_Device_start_basic_commissioning_closure) }, - { be_const_key_weak(PASE_TIMEOUT, -1), be_const_int(600) }, - { be_const_key_weak(udp_server, -1), be_const_var(2) }, - { be_const_key_weak(invoke_request, 28), be_const_closure(Matter_Device_invoke_request_closure) }, - { be_const_key_weak(_start_udp, -1), be_const_closure(Matter_Device__start_udp_closure) }, - { be_const_key_weak(every_second, -1), be_const_closure(Matter_Device_every_second_closure) }, - { be_const_key_weak(mdns_remove_PASE, 15), be_const_closure(Matter_Device_mdns_remove_PASE_closure) }, - { be_const_key_weak(remove_fabric, -1), be_const_closure(Matter_Device_remove_fabric_closure) }, + { be_const_key_weak(get_active_endpoints, 11), be_const_closure(Matter_Device_get_active_endpoints_closure) }, + { be_const_key_weak(compute_qrcode_content, -1), be_const_closure(Matter_Device_compute_qrcode_content_closure) }, { be_const_key_weak(ipv4only, -1), be_const_var(23) }, - { be_const_key_weak(root_iterations, -1), be_const_var(24) }, - { be_const_key_weak(is_commissioning_open, 11), be_const_closure(Matter_Device_is_commissioning_open_closure) }, + { be_const_key_weak(load_param, -1), be_const_closure(Matter_Device_load_param_closure) }, + { be_const_key_weak(FILENAME, -1), be_nested_str_weak(_matter_device_X2Ejson) }, + { be_const_key_weak(autoconf_device, -1), be_const_closure(Matter_Device_autoconf_device_closure) }, + { be_const_key_weak(save_param, -1), be_const_closure(Matter_Device_save_param_closure) }, + { be_const_key_weak(attribute_updated, 4), be_const_closure(Matter_Device_attribute_updated_closure) }, + { be_const_key_weak(init, 3), be_const_closure(Matter_Device_init_closure) }, { be_const_key_weak(start_commissioning_complete_deferred, -1), be_const_closure(Matter_Device_start_commissioning_complete_deferred_closure) }, })), be_str_weak(Matter_Device) 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 9e107ffea7c7..e476fbf5c876 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 @@ -1440,7 +1440,7 @@ be_local_closure(Matter_IM_SubscribeResponse_init, /* name */ ********************************************************************/ be_local_closure(Matter_IM_SubscribeResponse_status_ok_received, /* name */ be_nested_proto( - 5, /* nstack */ + 10, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -1448,19 +1448,41 @@ be_local_closure(Matter_IM_SubscribeResponse_status_ok_received, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(status_ok_received), + ( &(const bvalue[11]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(log), + /* K3 */ be_nested_str_weak(format), + /* K4 */ be_nested_str_weak(MTR_X3A_X20_X3ESub_OK_X20_X20_X20_X20_X28_X256i_X29_X20sub_X3D_X25i), + /* K5 */ be_nested_str_weak(session), + /* K6 */ be_nested_str_weak(local_session_id), + /* K7 */ be_nested_str_weak(sub), + /* K8 */ be_nested_str_weak(subscription_id), + /* K9 */ be_const_int(2), + /* K10 */ be_nested_str_weak(status_ok_received), }), be_str_weak(status_ok_received), &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x60080003, // 0000 GETGBL R2 G3 - 0x5C0C0000, // 0001 MOVE R3 R0 - 0x7C080200, // 0002 CALL R2 1 - 0x8C080500, // 0003 GETMET R2 R2 K0 - 0x5C100200, // 0004 MOVE R4 R1 - 0x7C080400, // 0005 CALL R2 2 - 0x80040400, // 0006 RET 1 R2 + ( &(const binstruction[19]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0xB80E0200, // 0001 GETNGBL R3 K1 + 0x8C0C0702, // 0002 GETMET R3 R3 K2 + 0x8C140503, // 0003 GETMET R5 R2 K3 + 0x581C0004, // 0004 LDCONST R7 K4 + 0x88200305, // 0005 GETMBR R8 R1 K5 + 0x88201106, // 0006 GETMBR R8 R8 K6 + 0x88240107, // 0007 GETMBR R9 R0 K7 + 0x88241308, // 0008 GETMBR R9 R9 K8 + 0x7C140800, // 0009 CALL R5 4 + 0x58180009, // 000A LDCONST R6 K9 + 0x7C0C0600, // 000B CALL R3 3 + 0x600C0003, // 000C GETGBL R3 G3 + 0x5C100000, // 000D MOVE R4 R0 + 0x7C0C0200, // 000E CALL R3 1 + 0x8C0C070A, // 000F GETMET R3 R3 K10 + 0x5C140200, // 0010 MOVE R5 R1 + 0x7C0C0400, // 0011 CALL R3 2 + 0x80040600, // 0012 RET 1 R3 }) ) ); From 7f9f08fa8730c5fa76e602c982a95d31db3faf6d Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Sun, 16 Apr 2023 22:25:31 +0200 Subject: [PATCH 5/7] Matter reduce memory usage (#18431) --- .../berry_matter/src/embedded/Matter_IM.be | 15 +- .../berry_matter/src/embedded/Matter_TLV.be | 5 + .../src/solidify/solidified_Matter_IM.h | 405 ++--- .../src/solidify/solidified_Matter_TLV.h | 1408 +++++++++-------- 4 files changed, 944 insertions(+), 889 deletions(-) diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_IM.be b/lib/libesp32/berry_matter/src/embedded/Matter_IM.be index 2878467d9210..ca6e2efcc585 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_IM.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_IM.be @@ -216,6 +216,7 @@ class Matter_IM # should return true if answered, false if passing to next handler def read_single_attribute(ret, pi, ctx, direct) import string + var TLV = matter.TLV var attr_name = matter.get_attribute_name(ctx.cluster, ctx.attribute) attr_name = attr_name ? " (" + attr_name + ")" : "" # Special case to report unsupported item, if pi==nil @@ -230,7 +231,12 @@ class Matter_IM a1.attribute_data.path.attribute = ctx.attribute a1.attribute_data.data = res - ret.attribute_reports.push(a1) + var a1_tlv = a1.to_TLV() + var a1_len = a1_tlv.encode_len() + var a1_bytes = bytes(a1_len) + var a2 = TLV.create_TLV(TLV.RAW, a1_tlv.tlv2raw(a1_bytes)) + + ret.attribute_reports.push(a2) if !no_log tasmota.log(string.format("MTR: >Read_Attr (%6i) %s%s - %s", session.local_session_id, str(ctx), attr_name, str(res)), 2) end @@ -246,7 +252,12 @@ class Matter_IM a1.attribute_status.path.attribute = ctx.attribute a1.attribute_status.status.status = ctx.status - ret.attribute_reports.push(a1) + var a1_tlv = a1.to_TLV() + var a1_len = a1_tlv.encode_len() + var a1_bytes = bytes(a1_len) + var a2 = TLV.create_TLV(TLV.RAW, a1_tlv.tlv2raw(a1_bytes)) + + ret.attribute_reports.push(a2) tasmota.log(string.format("MTR: >Read_Attr (%6i) %s%s - STATUS: 0x%02X %s", session.local_session_id, str(ctx), attr_name, ctx.status, ctx.status == matter.UNSUPPORTED_ATTRIBUTE ? "UNSUPPORTED_ATTRIBUTE" : ""), 2) return true end diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_TLV.be b/lib/libesp32/berry_matter/src/embedded/Matter_TLV.be index 5aae42d03417..0845481024ef 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_TLV.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_TLV.be @@ -86,6 +86,7 @@ class Matter_TLV static var ARRAY = 0x16 static var LIST = 0x17 static var EOC = 0x18 + static var RAW = 0xFF # encodes an anonymous raw value (already encoded in TLV to save memory) ################################################################################# # Matter_TLV_item class @@ -224,6 +225,8 @@ class Matter_TLV var TLV = self.TLV if b == nil b = bytes() end # start new buffer if none passed + if self.typ == TLV.RAW b..self.val return b end + # special case for bool # we need to change the type according to the value if self.typ == TLV.BFALSE || self.typ == TLV.BTRUE @@ -320,6 +323,8 @@ class Matter_TLV var TLV = self.TLV var len = 0 + if self.typ == TLV.RAW return size(self.val) end + # special case for bool # we need to change the type according to the value if self.typ == TLV.BFALSE || self.typ == TLV.BTRUE diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM.h index 85bc5ae71b96..0246ef5496c6 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_IM.h @@ -1371,7 +1371,7 @@ be_local_closure(Matter_IM__inner_process_read_request, /* name */ 1, /* has sup protos */ ( &(const struct bproto*[ 2]) { be_nested_proto( - 19, /* nstack */ + 23, /* nstack */ 4, /* argc */ 0, /* varg */ 1, /* has upvals */ @@ -1382,204 +1382,225 @@ be_local_closure(Matter_IM__inner_process_read_request, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[33]) { /* constants */ + ( &(const bvalue[39]) { /* constants */ /* K0 */ be_nested_str_weak(string), /* K1 */ be_nested_str_weak(matter), - /* K2 */ be_nested_str_weak(get_attribute_name), - /* K3 */ be_nested_str_weak(cluster), - /* K4 */ be_nested_str_weak(attribute), - /* K5 */ be_nested_str_weak(_X20_X28), - /* K6 */ be_nested_str_weak(_X29), - /* K7 */ be_nested_str_weak(), - /* K8 */ be_nested_str_weak(read_attribute), - /* K9 */ be_nested_str_weak(AttributeReportIB), - /* K10 */ be_nested_str_weak(attribute_data), - /* K11 */ be_nested_str_weak(AttributeDataIB), - /* K12 */ be_nested_str_weak(data_version), - /* K13 */ be_const_int(1), - /* K14 */ be_nested_str_weak(path), - /* K15 */ be_nested_str_weak(AttributePathIB), - /* K16 */ be_nested_str_weak(endpoint), - /* K17 */ be_nested_str_weak(data), - /* K18 */ be_nested_str_weak(attribute_reports), - /* K19 */ be_nested_str_weak(push), - /* K20 */ be_nested_str_weak(tasmota), - /* K21 */ be_nested_str_weak(log), - /* K22 */ be_nested_str_weak(format), - /* K23 */ be_nested_str_weak(MTR_X3A_X20_X3ERead_Attr_X20_X28_X256i_X29_X20_X25s_X25s_X20_X2D_X20_X25s), - /* K24 */ be_nested_str_weak(local_session_id), - /* K25 */ be_const_int(2), - /* K26 */ be_nested_str_weak(status), - /* K27 */ be_nested_str_weak(attribute_status), - /* K28 */ be_nested_str_weak(AttributeStatusIB), - /* K29 */ be_nested_str_weak(StatusIB), - /* K30 */ be_nested_str_weak(MTR_X3A_X20_X3ERead_Attr_X20_X28_X256i_X29_X20_X25s_X25s_X20_X2D_X20STATUS_X3A_X200x_X2502X_X20_X25s), - /* K31 */ be_nested_str_weak(UNSUPPORTED_ATTRIBUTE), - /* K32 */ be_nested_str_weak(MTR_X3A_X20_X3ERead_Attr_X20_X28_X256i_X29_X20_X25s_X25s_X20_X2D_X20IGNORED), + /* K2 */ be_nested_str_weak(TLV), + /* K3 */ be_nested_str_weak(get_attribute_name), + /* K4 */ be_nested_str_weak(cluster), + /* K5 */ be_nested_str_weak(attribute), + /* K6 */ be_nested_str_weak(_X20_X28), + /* K7 */ be_nested_str_weak(_X29), + /* K8 */ be_nested_str_weak(), + /* K9 */ be_nested_str_weak(read_attribute), + /* K10 */ be_nested_str_weak(AttributeReportIB), + /* K11 */ be_nested_str_weak(attribute_data), + /* K12 */ be_nested_str_weak(AttributeDataIB), + /* K13 */ be_nested_str_weak(data_version), + /* K14 */ be_const_int(1), + /* K15 */ be_nested_str_weak(path), + /* K16 */ be_nested_str_weak(AttributePathIB), + /* K17 */ be_nested_str_weak(endpoint), + /* K18 */ be_nested_str_weak(data), + /* K19 */ be_nested_str_weak(to_TLV), + /* K20 */ be_nested_str_weak(encode_len), + /* K21 */ be_nested_str_weak(create_TLV), + /* K22 */ be_nested_str_weak(RAW), + /* K23 */ be_nested_str_weak(tlv2raw), + /* K24 */ be_nested_str_weak(attribute_reports), + /* K25 */ be_nested_str_weak(push), + /* K26 */ be_nested_str_weak(tasmota), + /* K27 */ be_nested_str_weak(log), + /* K28 */ be_nested_str_weak(format), + /* K29 */ be_nested_str_weak(MTR_X3A_X20_X3ERead_Attr_X20_X28_X256i_X29_X20_X25s_X25s_X20_X2D_X20_X25s), + /* K30 */ be_nested_str_weak(local_session_id), + /* K31 */ be_const_int(2), + /* K32 */ be_nested_str_weak(status), + /* K33 */ be_nested_str_weak(attribute_status), + /* K34 */ be_nested_str_weak(AttributeStatusIB), + /* K35 */ be_nested_str_weak(StatusIB), + /* K36 */ be_nested_str_weak(MTR_X3A_X20_X3ERead_Attr_X20_X28_X256i_X29_X20_X25s_X25s_X20_X2D_X20STATUS_X3A_X200x_X2502X_X20_X25s), + /* K37 */ be_nested_str_weak(UNSUPPORTED_ATTRIBUTE), + /* K38 */ be_nested_str_weak(MTR_X3A_X20_X3ERead_Attr_X20_X28_X256i_X29_X20_X25s_X25s_X20_X2D_X20IGNORED), }), be_str_weak(read_single_attribute), &be_const_str_solidified, - ( &(const binstruction[160]) { /* code */ + ( &(const binstruction[175]) { /* code */ 0xA4120000, // 0000 IMPORT R4 K0 0xB8160200, // 0001 GETNGBL R5 K1 - 0x8C140B02, // 0002 GETMET R5 R5 K2 - 0x881C0503, // 0003 GETMBR R7 R2 K3 - 0x88200504, // 0004 GETMBR R8 R2 K4 - 0x7C140600, // 0005 CALL R5 3 - 0x78160002, // 0006 JMPF R5 #000A - 0x001A0A05, // 0007 ADD R6 K5 R5 - 0x00180D06, // 0008 ADD R6 R6 K6 - 0x70020000, // 0009 JMP #000B - 0x58180007, // 000A LDCONST R6 K7 - 0x5C140C00, // 000B MOVE R5 R6 - 0x4C180000, // 000C LDNIL R6 - 0x20180206, // 000D NE R6 R1 R6 - 0x781A0004, // 000E JMPF R6 #0014 - 0x8C180308, // 000F GETMET R6 R1 K8 - 0x68200000, // 0010 GETUPV R8 U0 - 0x5C240400, // 0011 MOVE R9 R2 - 0x7C180600, // 0012 CALL R6 3 - 0x70020000, // 0013 JMP #0015 - 0x4C180000, // 0014 LDNIL R6 - 0x4C1C0000, // 0015 LDNIL R7 - 0x201C0C07, // 0016 NE R7 R6 R7 - 0x781E0034, // 0017 JMPF R7 #004D - 0xB81E0200, // 0018 GETNGBL R7 K1 - 0x8C1C0F09, // 0019 GETMET R7 R7 K9 - 0x7C1C0200, // 001A CALL R7 1 - 0xB8220200, // 001B GETNGBL R8 K1 - 0x8C20110B, // 001C GETMET R8 R8 K11 - 0x7C200200, // 001D CALL R8 1 - 0x901E1408, // 001E SETMBR R7 K10 R8 - 0x88200F0A, // 001F GETMBR R8 R7 K10 - 0x9022190D, // 0020 SETMBR R8 K12 K13 - 0x88200F0A, // 0021 GETMBR R8 R7 K10 - 0xB8260200, // 0022 GETNGBL R9 K1 - 0x8C24130F, // 0023 GETMET R9 R9 K15 - 0x7C240200, // 0024 CALL R9 1 - 0x90221C09, // 0025 SETMBR R8 K14 R9 - 0x88200F0A, // 0026 GETMBR R8 R7 K10 - 0x8820110E, // 0027 GETMBR R8 R8 K14 - 0x88240510, // 0028 GETMBR R9 R2 K16 - 0x90222009, // 0029 SETMBR R8 K16 R9 - 0x88200F0A, // 002A GETMBR R8 R7 K10 - 0x8820110E, // 002B GETMBR R8 R8 K14 - 0x88240503, // 002C GETMBR R9 R2 K3 - 0x90220609, // 002D SETMBR R8 K3 R9 - 0x88200F0A, // 002E GETMBR R8 R7 K10 - 0x8820110E, // 002F GETMBR R8 R8 K14 - 0x88240504, // 0030 GETMBR R9 R2 K4 - 0x90220809, // 0031 SETMBR R8 K4 R9 - 0x88200F0A, // 0032 GETMBR R8 R7 K10 - 0x90222206, // 0033 SETMBR R8 K17 R6 - 0x88200112, // 0034 GETMBR R8 R0 K18 - 0x8C201113, // 0035 GETMET R8 R8 K19 - 0x5C280E00, // 0036 MOVE R10 R7 - 0x7C200400, // 0037 CALL R8 2 - 0x68200001, // 0038 GETUPV R8 U1 - 0x7422000F, // 0039 JMPT R8 #004A - 0xB8222800, // 003A GETNGBL R8 K20 - 0x8C201115, // 003B GETMET R8 R8 K21 - 0x8C280916, // 003C GETMET R10 R4 K22 - 0x58300017, // 003D LDCONST R12 K23 - 0x68340000, // 003E GETUPV R13 U0 - 0x88341B18, // 003F GETMBR R13 R13 K24 - 0x60380008, // 0040 GETGBL R14 G8 - 0x5C3C0400, // 0041 MOVE R15 R2 - 0x7C380200, // 0042 CALL R14 1 - 0x5C3C0A00, // 0043 MOVE R15 R5 - 0x60400008, // 0044 GETGBL R16 G8 - 0x5C440C00, // 0045 MOVE R17 R6 - 0x7C400200, // 0046 CALL R16 1 - 0x7C280C00, // 0047 CALL R10 6 - 0x582C0019, // 0048 LDCONST R11 K25 - 0x7C200600, // 0049 CALL R8 3 - 0x50200200, // 004A LDBOOL R8 1 0 - 0x80041000, // 004B RET 1 R8 - 0x70020051, // 004C JMP #009F - 0x881C051A, // 004D GETMBR R7 R2 K26 - 0x4C200000, // 004E LDNIL R8 - 0x201C0E08, // 004F NE R7 R7 R8 - 0x781E003E, // 0050 JMPF R7 #0090 - 0x780E003C, // 0051 JMPF R3 #008F - 0xB81E0200, // 0052 GETNGBL R7 K1 - 0x8C1C0F09, // 0053 GETMET R7 R7 K9 - 0x7C1C0200, // 0054 CALL R7 1 - 0xB8220200, // 0055 GETNGBL R8 K1 - 0x8C20111C, // 0056 GETMET R8 R8 K28 - 0x7C200200, // 0057 CALL R8 1 - 0x901E3608, // 0058 SETMBR R7 K27 R8 - 0x88200F1B, // 0059 GETMBR R8 R7 K27 - 0xB8260200, // 005A GETNGBL R9 K1 - 0x8C24130F, // 005B GETMET R9 R9 K15 - 0x7C240200, // 005C CALL R9 1 - 0x90221C09, // 005D SETMBR R8 K14 R9 - 0x88200F1B, // 005E GETMBR R8 R7 K27 - 0xB8260200, // 005F GETNGBL R9 K1 - 0x8C24131D, // 0060 GETMET R9 R9 K29 - 0x7C240200, // 0061 CALL R9 1 - 0x90223409, // 0062 SETMBR R8 K26 R9 - 0x88200F1B, // 0063 GETMBR R8 R7 K27 - 0x8820110E, // 0064 GETMBR R8 R8 K14 - 0x88240510, // 0065 GETMBR R9 R2 K16 - 0x90222009, // 0066 SETMBR R8 K16 R9 - 0x88200F1B, // 0067 GETMBR R8 R7 K27 - 0x8820110E, // 0068 GETMBR R8 R8 K14 - 0x88240503, // 0069 GETMBR R9 R2 K3 - 0x90220609, // 006A SETMBR R8 K3 R9 - 0x88200F1B, // 006B GETMBR R8 R7 K27 - 0x8820110E, // 006C GETMBR R8 R8 K14 - 0x88240504, // 006D GETMBR R9 R2 K4 - 0x90220809, // 006E SETMBR R8 K4 R9 - 0x88200F1B, // 006F GETMBR R8 R7 K27 - 0x8820111A, // 0070 GETMBR R8 R8 K26 - 0x8824051A, // 0071 GETMBR R9 R2 K26 - 0x90223409, // 0072 SETMBR R8 K26 R9 - 0x88200112, // 0073 GETMBR R8 R0 K18 - 0x8C201113, // 0074 GETMET R8 R8 K19 - 0x5C280E00, // 0075 MOVE R10 R7 - 0x7C200400, // 0076 CALL R8 2 - 0xB8222800, // 0077 GETNGBL R8 K20 - 0x8C201115, // 0078 GETMET R8 R8 K21 - 0x8C280916, // 0079 GETMET R10 R4 K22 - 0x5830001E, // 007A LDCONST R12 K30 - 0x68340000, // 007B GETUPV R13 U0 - 0x88341B18, // 007C GETMBR R13 R13 K24 - 0x60380008, // 007D GETGBL R14 G8 - 0x5C3C0400, // 007E MOVE R15 R2 - 0x7C380200, // 007F CALL R14 1 - 0x5C3C0A00, // 0080 MOVE R15 R5 - 0x8840051A, // 0081 GETMBR R16 R2 K26 - 0x8844051A, // 0082 GETMBR R17 R2 K26 - 0xB84A0200, // 0083 GETNGBL R18 K1 - 0x8848251F, // 0084 GETMBR R18 R18 K31 - 0x1C442212, // 0085 EQ R17 R17 R18 - 0x78460001, // 0086 JMPF R17 #0089 - 0x5844001F, // 0087 LDCONST R17 K31 - 0x70020000, // 0088 JMP #008A - 0x58440007, // 0089 LDCONST R17 K7 - 0x7C280E00, // 008A CALL R10 7 - 0x582C0019, // 008B LDCONST R11 K25 - 0x7C200600, // 008C CALL R8 3 - 0x50200200, // 008D LDBOOL R8 1 0 - 0x80041000, // 008E RET 1 R8 - 0x7002000E, // 008F JMP #009F - 0xB81E2800, // 0090 GETNGBL R7 K20 - 0x8C1C0F15, // 0091 GETMET R7 R7 K21 - 0x8C240916, // 0092 GETMET R9 R4 K22 - 0x582C0020, // 0093 LDCONST R11 K32 - 0x68300000, // 0094 GETUPV R12 U0 - 0x88301918, // 0095 GETMBR R12 R12 K24 - 0x60340008, // 0096 GETGBL R13 G8 - 0x5C380400, // 0097 MOVE R14 R2 - 0x7C340200, // 0098 CALL R13 1 - 0x5C380A00, // 0099 MOVE R14 R5 - 0x7C240A00, // 009A CALL R9 5 - 0x58280019, // 009B LDCONST R10 K25 - 0x7C1C0600, // 009C CALL R7 3 - 0x501C0000, // 009D LDBOOL R7 0 0 - 0x80040E00, // 009E RET 1 R7 - 0x80000000, // 009F RET 0 + 0x88140B02, // 0002 GETMBR R5 R5 K2 + 0xB81A0200, // 0003 GETNGBL R6 K1 + 0x8C180D03, // 0004 GETMET R6 R6 K3 + 0x88200504, // 0005 GETMBR R8 R2 K4 + 0x88240505, // 0006 GETMBR R9 R2 K5 + 0x7C180600, // 0007 CALL R6 3 + 0x781A0002, // 0008 JMPF R6 #000C + 0x001E0C06, // 0009 ADD R7 K6 R6 + 0x001C0F07, // 000A ADD R7 R7 K7 + 0x70020000, // 000B JMP #000D + 0x581C0008, // 000C LDCONST R7 K8 + 0x5C180E00, // 000D MOVE R6 R7 + 0x4C1C0000, // 000E LDNIL R7 + 0x201C0207, // 000F NE R7 R1 R7 + 0x781E0004, // 0010 JMPF R7 #0016 + 0x8C1C0309, // 0011 GETMET R7 R1 K9 + 0x68240000, // 0012 GETUPV R9 U0 + 0x5C280400, // 0013 MOVE R10 R2 + 0x7C1C0600, // 0014 CALL R7 3 + 0x70020000, // 0015 JMP #0017 + 0x4C1C0000, // 0016 LDNIL R7 + 0x4C200000, // 0017 LDNIL R8 + 0x20200E08, // 0018 NE R8 R7 R8 + 0x78220041, // 0019 JMPF R8 #005C + 0xB8220200, // 001A GETNGBL R8 K1 + 0x8C20110A, // 001B GETMET R8 R8 K10 + 0x7C200200, // 001C CALL R8 1 + 0xB8260200, // 001D GETNGBL R9 K1 + 0x8C24130C, // 001E GETMET R9 R9 K12 + 0x7C240200, // 001F CALL R9 1 + 0x90221609, // 0020 SETMBR R8 K11 R9 + 0x8824110B, // 0021 GETMBR R9 R8 K11 + 0x90261B0E, // 0022 SETMBR R9 K13 K14 + 0x8824110B, // 0023 GETMBR R9 R8 K11 + 0xB82A0200, // 0024 GETNGBL R10 K1 + 0x8C281510, // 0025 GETMET R10 R10 K16 + 0x7C280200, // 0026 CALL R10 1 + 0x90261E0A, // 0027 SETMBR R9 K15 R10 + 0x8824110B, // 0028 GETMBR R9 R8 K11 + 0x8824130F, // 0029 GETMBR R9 R9 K15 + 0x88280511, // 002A GETMBR R10 R2 K17 + 0x9026220A, // 002B SETMBR R9 K17 R10 + 0x8824110B, // 002C GETMBR R9 R8 K11 + 0x8824130F, // 002D GETMBR R9 R9 K15 + 0x88280504, // 002E GETMBR R10 R2 K4 + 0x9026080A, // 002F SETMBR R9 K4 R10 + 0x8824110B, // 0030 GETMBR R9 R8 K11 + 0x8824130F, // 0031 GETMBR R9 R9 K15 + 0x88280505, // 0032 GETMBR R10 R2 K5 + 0x90260A0A, // 0033 SETMBR R9 K5 R10 + 0x8824110B, // 0034 GETMBR R9 R8 K11 + 0x90262407, // 0035 SETMBR R9 K18 R7 + 0x8C241113, // 0036 GETMET R9 R8 K19 + 0x7C240200, // 0037 CALL R9 1 + 0x8C281314, // 0038 GETMET R10 R9 K20 + 0x7C280200, // 0039 CALL R10 1 + 0x602C0015, // 003A GETGBL R11 G21 + 0x5C301400, // 003B MOVE R12 R10 + 0x7C2C0200, // 003C CALL R11 1 + 0x8C300B15, // 003D GETMET R12 R5 K21 + 0x88380B16, // 003E GETMBR R14 R5 K22 + 0x8C3C1317, // 003F GETMET R15 R9 K23 + 0x5C441600, // 0040 MOVE R17 R11 + 0x7C3C0400, // 0041 CALL R15 2 + 0x7C300600, // 0042 CALL R12 3 + 0x88340118, // 0043 GETMBR R13 R0 K24 + 0x8C341B19, // 0044 GETMET R13 R13 K25 + 0x5C3C1800, // 0045 MOVE R15 R12 + 0x7C340400, // 0046 CALL R13 2 + 0x68340001, // 0047 GETUPV R13 U1 + 0x7436000F, // 0048 JMPT R13 #0059 + 0xB8363400, // 0049 GETNGBL R13 K26 + 0x8C341B1B, // 004A GETMET R13 R13 K27 + 0x8C3C091C, // 004B GETMET R15 R4 K28 + 0x5844001D, // 004C LDCONST R17 K29 + 0x68480000, // 004D GETUPV R18 U0 + 0x8848251E, // 004E GETMBR R18 R18 K30 + 0x604C0008, // 004F GETGBL R19 G8 + 0x5C500400, // 0050 MOVE R20 R2 + 0x7C4C0200, // 0051 CALL R19 1 + 0x5C500C00, // 0052 MOVE R20 R6 + 0x60540008, // 0053 GETGBL R21 G8 + 0x5C580E00, // 0054 MOVE R22 R7 + 0x7C540200, // 0055 CALL R21 1 + 0x7C3C0C00, // 0056 CALL R15 6 + 0x5840001F, // 0057 LDCONST R16 K31 + 0x7C340600, // 0058 CALL R13 3 + 0x50340200, // 0059 LDBOOL R13 1 0 + 0x80041A00, // 005A RET 1 R13 + 0x70020051, // 005B JMP #00AE + 0x88200520, // 005C GETMBR R8 R2 K32 + 0x4C240000, // 005D LDNIL R9 + 0x20201009, // 005E NE R8 R8 R9 + 0x7822003E, // 005F JMPF R8 #009F + 0x780E003C, // 0060 JMPF R3 #009E + 0xB8220200, // 0061 GETNGBL R8 K1 + 0x8C20110A, // 0062 GETMET R8 R8 K10 + 0x7C200200, // 0063 CALL R8 1 + 0xB8260200, // 0064 GETNGBL R9 K1 + 0x8C241322, // 0065 GETMET R9 R9 K34 + 0x7C240200, // 0066 CALL R9 1 + 0x90224209, // 0067 SETMBR R8 K33 R9 + 0x88241121, // 0068 GETMBR R9 R8 K33 + 0xB82A0200, // 0069 GETNGBL R10 K1 + 0x8C281510, // 006A GETMET R10 R10 K16 + 0x7C280200, // 006B CALL R10 1 + 0x90261E0A, // 006C SETMBR R9 K15 R10 + 0x88241121, // 006D GETMBR R9 R8 K33 + 0xB82A0200, // 006E GETNGBL R10 K1 + 0x8C281523, // 006F GETMET R10 R10 K35 + 0x7C280200, // 0070 CALL R10 1 + 0x9026400A, // 0071 SETMBR R9 K32 R10 + 0x88241121, // 0072 GETMBR R9 R8 K33 + 0x8824130F, // 0073 GETMBR R9 R9 K15 + 0x88280511, // 0074 GETMBR R10 R2 K17 + 0x9026220A, // 0075 SETMBR R9 K17 R10 + 0x88241121, // 0076 GETMBR R9 R8 K33 + 0x8824130F, // 0077 GETMBR R9 R9 K15 + 0x88280504, // 0078 GETMBR R10 R2 K4 + 0x9026080A, // 0079 SETMBR R9 K4 R10 + 0x88241121, // 007A GETMBR R9 R8 K33 + 0x8824130F, // 007B GETMBR R9 R9 K15 + 0x88280505, // 007C GETMBR R10 R2 K5 + 0x90260A0A, // 007D SETMBR R9 K5 R10 + 0x88241121, // 007E GETMBR R9 R8 K33 + 0x88241320, // 007F GETMBR R9 R9 K32 + 0x88280520, // 0080 GETMBR R10 R2 K32 + 0x9026400A, // 0081 SETMBR R9 K32 R10 + 0x88240118, // 0082 GETMBR R9 R0 K24 + 0x8C241319, // 0083 GETMET R9 R9 K25 + 0x5C2C1000, // 0084 MOVE R11 R8 + 0x7C240400, // 0085 CALL R9 2 + 0xB8263400, // 0086 GETNGBL R9 K26 + 0x8C24131B, // 0087 GETMET R9 R9 K27 + 0x8C2C091C, // 0088 GETMET R11 R4 K28 + 0x58340024, // 0089 LDCONST R13 K36 + 0x68380000, // 008A GETUPV R14 U0 + 0x88381D1E, // 008B GETMBR R14 R14 K30 + 0x603C0008, // 008C GETGBL R15 G8 + 0x5C400400, // 008D MOVE R16 R2 + 0x7C3C0200, // 008E CALL R15 1 + 0x5C400C00, // 008F MOVE R16 R6 + 0x88440520, // 0090 GETMBR R17 R2 K32 + 0x88480520, // 0091 GETMBR R18 R2 K32 + 0xB84E0200, // 0092 GETNGBL R19 K1 + 0x884C2725, // 0093 GETMBR R19 R19 K37 + 0x1C482413, // 0094 EQ R18 R18 R19 + 0x784A0001, // 0095 JMPF R18 #0098 + 0x58480025, // 0096 LDCONST R18 K37 + 0x70020000, // 0097 JMP #0099 + 0x58480008, // 0098 LDCONST R18 K8 + 0x7C2C0E00, // 0099 CALL R11 7 + 0x5830001F, // 009A LDCONST R12 K31 + 0x7C240600, // 009B CALL R9 3 + 0x50240200, // 009C LDBOOL R9 1 0 + 0x80041200, // 009D RET 1 R9 + 0x7002000E, // 009E JMP #00AE + 0xB8223400, // 009F GETNGBL R8 K26 + 0x8C20111B, // 00A0 GETMET R8 R8 K27 + 0x8C28091C, // 00A1 GETMET R10 R4 K28 + 0x58300026, // 00A2 LDCONST R12 K38 + 0x68340000, // 00A3 GETUPV R13 U0 + 0x88341B1E, // 00A4 GETMBR R13 R13 K30 + 0x60380008, // 00A5 GETGBL R14 G8 + 0x5C3C0400, // 00A6 MOVE R15 R2 + 0x7C380200, // 00A7 CALL R14 1 + 0x5C3C0C00, // 00A8 MOVE R15 R6 + 0x7C280A00, // 00A9 CALL R10 5 + 0x582C001F, // 00AA LDCONST R11 K31 + 0x7C200600, // 00AB CALL R8 3 + 0x50200000, // 00AC LDBOOL R8 0 0 + 0x80041000, // 00AD RET 1 R8 + 0x80000000, // 00AE RET 0 }) ), be_nested_proto( diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_TLV.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_TLV.h index 7844170692dd..b29cd7a2fb89 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_TLV.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_TLV.h @@ -413,292 +413,301 @@ be_local_closure(Matter_TLV_item_encode_len, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[31]) { /* constants */ + ( &(const bvalue[32]) { /* constants */ /* K0 */ be_nested_str_weak(TLV), /* K1 */ be_const_int(0), /* K2 */ be_nested_str_weak(typ), - /* K3 */ be_nested_str_weak(BFALSE), - /* K4 */ be_nested_str_weak(BTRUE), - /* K5 */ be_nested_str_weak(val), - /* K6 */ be_nested_str_weak(I2), - /* K7 */ be_nested_str_weak(I4), - /* K8 */ be_nested_str_weak(I1), - /* K9 */ be_nested_str_weak(U2), - /* K10 */ be_nested_str_weak(U4), - /* K11 */ be_nested_str_weak(U1), - /* K12 */ be_nested_str_weak(B1), - /* K13 */ be_nested_str_weak(B8), - /* K14 */ be_nested_str_weak(B2), - /* K15 */ be_nested_str_weak(B4), - /* K16 */ be_nested_str_weak(UTF1), - /* K17 */ be_nested_str_weak(UTF8), - /* K18 */ be_nested_str_weak(UTF2), - /* K19 */ be_nested_str_weak(UTF4), - /* K20 */ be_nested_str_weak(_encode_tag_len), - /* K21 */ be_const_int(1), - /* K22 */ be_const_int(2), - /* K23 */ be_nested_str_weak(I8), - /* K24 */ be_nested_str_weak(U8), - /* K25 */ be_nested_str_weak(FLOAT), - /* K26 */ be_nested_str_weak(DOUBLE), - /* K27 */ be_nested_str_weak(value_error), - /* K28 */ be_nested_str_weak(Unsupported_X20type_X20TLV_X2EDOUBLE), - /* K29 */ be_nested_str_weak(NULL), - /* K30 */ be_nested_str_weak(unsupported_X20type_X20), + /* K3 */ be_nested_str_weak(RAW), + /* K4 */ be_nested_str_weak(val), + /* K5 */ be_nested_str_weak(BFALSE), + /* K6 */ be_nested_str_weak(BTRUE), + /* K7 */ be_nested_str_weak(I2), + /* K8 */ be_nested_str_weak(I4), + /* K9 */ be_nested_str_weak(I1), + /* K10 */ be_nested_str_weak(U2), + /* K11 */ be_nested_str_weak(U4), + /* K12 */ be_nested_str_weak(U1), + /* K13 */ be_nested_str_weak(B1), + /* K14 */ be_nested_str_weak(B8), + /* K15 */ be_nested_str_weak(B2), + /* K16 */ be_nested_str_weak(B4), + /* K17 */ be_nested_str_weak(UTF1), + /* K18 */ be_nested_str_weak(UTF8), + /* K19 */ be_nested_str_weak(UTF2), + /* K20 */ be_nested_str_weak(UTF4), + /* K21 */ be_nested_str_weak(_encode_tag_len), + /* K22 */ be_const_int(1), + /* K23 */ be_const_int(2), + /* K24 */ be_nested_str_weak(I8), + /* K25 */ be_nested_str_weak(U8), + /* K26 */ be_nested_str_weak(FLOAT), + /* K27 */ be_nested_str_weak(DOUBLE), + /* K28 */ be_nested_str_weak(value_error), + /* K29 */ be_nested_str_weak(Unsupported_X20type_X20TLV_X2EDOUBLE), + /* K30 */ be_nested_str_weak(NULL), + /* K31 */ be_nested_str_weak(unsupported_X20type_X20), }), be_str_weak(encode_len), &be_const_str_solidified, - ( &(const binstruction[250]) { /* code */ + ( &(const binstruction[258]) { /* code */ 0x88040100, // 0000 GETMBR R1 R0 K0 0x58080001, // 0001 LDCONST R2 K1 0x880C0102, // 0002 GETMBR R3 R0 K2 0x88100303, // 0003 GETMBR R4 R1 K3 0x1C0C0604, // 0004 EQ R3 R3 R4 - 0x740E0003, // 0005 JMPT R3 #000A - 0x880C0102, // 0006 GETMBR R3 R0 K2 - 0x88100304, // 0007 GETMBR R4 R1 K4 - 0x1C0C0604, // 0008 EQ R3 R3 R4 - 0x780E0008, // 0009 JMPF R3 #0013 - 0x600C0017, // 000A GETGBL R3 G23 - 0x88100105, // 000B GETMBR R4 R0 K5 - 0x7C0C0200, // 000C CALL R3 1 - 0x780E0001, // 000D JMPF R3 #0010 - 0x880C0304, // 000E GETMBR R3 R1 K4 - 0x70020000, // 000F JMP #0011 - 0x880C0303, // 0010 GETMBR R3 R1 K3 - 0x90020403, // 0011 SETMBR R0 K2 R3 - 0x70020070, // 0012 JMP #0084 - 0x880C0102, // 0013 GETMBR R3 R0 K2 - 0x88100306, // 0014 GETMBR R4 R1 K6 - 0x280C0604, // 0015 GE R3 R3 R4 - 0x780E0018, // 0016 JMPF R3 #0030 - 0x880C0102, // 0017 GETMBR R3 R0 K2 - 0x88100307, // 0018 GETMBR R4 R1 K7 - 0x180C0604, // 0019 LE R3 R3 R4 - 0x780E0014, // 001A JMPF R3 #0030 - 0x600C0009, // 001B GETGBL R3 G9 - 0x88100105, // 001C GETMBR R4 R0 K5 - 0x7C0C0200, // 001D CALL R3 1 - 0x5412007E, // 001E LDINT R4 127 - 0x18100604, // 001F LE R4 R3 R4 - 0x78120005, // 0020 JMPF R4 #0027 - 0x5411FF7F, // 0021 LDINT R4 -128 - 0x28100604, // 0022 GE R4 R3 R4 - 0x78120002, // 0023 JMPF R4 #0027 - 0x88100308, // 0024 GETMBR R4 R1 K8 - 0x90020404, // 0025 SETMBR R0 K2 R4 - 0x70020007, // 0026 JMP #002F - 0x54127FFE, // 0027 LDINT R4 32767 - 0x18100604, // 0028 LE R4 R3 R4 - 0x78120004, // 0029 JMPF R4 #002F - 0x54117FFF, // 002A LDINT R4 -32768 - 0x28100604, // 002B GE R4 R3 R4 - 0x78120001, // 002C JMPF R4 #002F - 0x88100306, // 002D GETMBR R4 R1 K6 - 0x90020404, // 002E SETMBR R0 K2 R4 - 0x70020053, // 002F JMP #0084 - 0x880C0102, // 0030 GETMBR R3 R0 K2 - 0x88100309, // 0031 GETMBR R4 R1 K9 - 0x280C0604, // 0032 GE R3 R3 R4 - 0x780E0016, // 0033 JMPF R3 #004B - 0x880C0102, // 0034 GETMBR R3 R0 K2 - 0x8810030A, // 0035 GETMBR R4 R1 K10 - 0x180C0604, // 0036 LE R3 R3 R4 - 0x780E0012, // 0037 JMPF R3 #004B - 0x600C0009, // 0038 GETGBL R3 G9 - 0x88100105, // 0039 GETMBR R4 R0 K5 - 0x7C0C0200, // 003A CALL R3 1 - 0x541200FE, // 003B LDINT R4 255 - 0x18100604, // 003C LE R4 R3 R4 - 0x78120004, // 003D JMPF R4 #0043 - 0x28100701, // 003E GE R4 R3 K1 - 0x78120002, // 003F JMPF R4 #0043 - 0x8810030B, // 0040 GETMBR R4 R1 K11 - 0x90020404, // 0041 SETMBR R0 K2 R4 - 0x70020006, // 0042 JMP #004A - 0x5412FFFE, // 0043 LDINT R4 65535 + 0x780E0003, // 0005 JMPF R3 #000A + 0x600C000C, // 0006 GETGBL R3 G12 + 0x88100104, // 0007 GETMBR R4 R0 K4 + 0x7C0C0200, // 0008 CALL R3 1 + 0x80040600, // 0009 RET 1 R3 + 0x880C0102, // 000A GETMBR R3 R0 K2 + 0x88100305, // 000B GETMBR R4 R1 K5 + 0x1C0C0604, // 000C EQ R3 R3 R4 + 0x740E0003, // 000D JMPT R3 #0012 + 0x880C0102, // 000E GETMBR R3 R0 K2 + 0x88100306, // 000F GETMBR R4 R1 K6 + 0x1C0C0604, // 0010 EQ R3 R3 R4 + 0x780E0008, // 0011 JMPF R3 #001B + 0x600C0017, // 0012 GETGBL R3 G23 + 0x88100104, // 0013 GETMBR R4 R0 K4 + 0x7C0C0200, // 0014 CALL R3 1 + 0x780E0001, // 0015 JMPF R3 #0018 + 0x880C0306, // 0016 GETMBR R3 R1 K6 + 0x70020000, // 0017 JMP #0019 + 0x880C0305, // 0018 GETMBR R3 R1 K5 + 0x90020403, // 0019 SETMBR R0 K2 R3 + 0x70020070, // 001A JMP #008C + 0x880C0102, // 001B GETMBR R3 R0 K2 + 0x88100307, // 001C GETMBR R4 R1 K7 + 0x280C0604, // 001D GE R3 R3 R4 + 0x780E0018, // 001E JMPF R3 #0038 + 0x880C0102, // 001F GETMBR R3 R0 K2 + 0x88100308, // 0020 GETMBR R4 R1 K8 + 0x180C0604, // 0021 LE R3 R3 R4 + 0x780E0014, // 0022 JMPF R3 #0038 + 0x600C0009, // 0023 GETGBL R3 G9 + 0x88100104, // 0024 GETMBR R4 R0 K4 + 0x7C0C0200, // 0025 CALL R3 1 + 0x5412007E, // 0026 LDINT R4 127 + 0x18100604, // 0027 LE R4 R3 R4 + 0x78120005, // 0028 JMPF R4 #002F + 0x5411FF7F, // 0029 LDINT R4 -128 + 0x28100604, // 002A GE R4 R3 R4 + 0x78120002, // 002B JMPF R4 #002F + 0x88100309, // 002C GETMBR R4 R1 K9 + 0x90020404, // 002D SETMBR R0 K2 R4 + 0x70020007, // 002E JMP #0037 + 0x54127FFE, // 002F LDINT R4 32767 + 0x18100604, // 0030 LE R4 R3 R4 + 0x78120004, // 0031 JMPF R4 #0037 + 0x54117FFF, // 0032 LDINT R4 -32768 + 0x28100604, // 0033 GE R4 R3 R4 + 0x78120001, // 0034 JMPF R4 #0037 + 0x88100307, // 0035 GETMBR R4 R1 K7 + 0x90020404, // 0036 SETMBR R0 K2 R4 + 0x70020053, // 0037 JMP #008C + 0x880C0102, // 0038 GETMBR R3 R0 K2 + 0x8810030A, // 0039 GETMBR R4 R1 K10 + 0x280C0604, // 003A GE R3 R3 R4 + 0x780E0016, // 003B JMPF R3 #0053 + 0x880C0102, // 003C GETMBR R3 R0 K2 + 0x8810030B, // 003D GETMBR R4 R1 K11 + 0x180C0604, // 003E LE R3 R3 R4 + 0x780E0012, // 003F JMPF R3 #0053 + 0x600C0009, // 0040 GETGBL R3 G9 + 0x88100104, // 0041 GETMBR R4 R0 K4 + 0x7C0C0200, // 0042 CALL R3 1 + 0x541200FE, // 0043 LDINT R4 255 0x18100604, // 0044 LE R4 R3 R4 - 0x78120003, // 0045 JMPF R4 #004A + 0x78120004, // 0045 JMPF R4 #004B 0x28100701, // 0046 GE R4 R3 K1 - 0x78120001, // 0047 JMPF R4 #004A - 0x88100309, // 0048 GETMBR R4 R1 K9 + 0x78120002, // 0047 JMPF R4 #004B + 0x8810030C, // 0048 GETMBR R4 R1 K12 0x90020404, // 0049 SETMBR R0 K2 R4 - 0x70020038, // 004A JMP #0084 - 0x880C0102, // 004B GETMBR R3 R0 K2 - 0x8810030C, // 004C GETMBR R4 R1 K12 - 0x280C0604, // 004D GE R3 R3 R4 - 0x780E0018, // 004E JMPF R3 #0068 - 0x880C0102, // 004F GETMBR R3 R0 K2 - 0x8810030D, // 0050 GETMBR R4 R1 K13 - 0x180C0604, // 0051 LE R3 R3 R4 - 0x780E0014, // 0052 JMPF R3 #0068 - 0x600C000C, // 0053 GETGBL R3 G12 - 0x88100105, // 0054 GETMBR R4 R0 K5 - 0x7C0C0200, // 0055 CALL R3 1 - 0x541200FE, // 0056 LDINT R4 255 - 0x180C0604, // 0057 LE R3 R3 R4 - 0x780E0002, // 0058 JMPF R3 #005C - 0x880C030C, // 0059 GETMBR R3 R1 K12 - 0x90020403, // 005A SETMBR R0 K2 R3 - 0x7002000A, // 005B JMP #0067 - 0x600C000C, // 005C GETGBL R3 G12 - 0x88100105, // 005D GETMBR R4 R0 K5 - 0x7C0C0200, // 005E CALL R3 1 - 0x5412FFFE, // 005F LDINT R4 65535 - 0x180C0604, // 0060 LE R3 R3 R4 - 0x780E0002, // 0061 JMPF R3 #0065 - 0x880C030E, // 0062 GETMBR R3 R1 K14 - 0x90020403, // 0063 SETMBR R0 K2 R3 - 0x70020001, // 0064 JMP #0067 - 0x880C030F, // 0065 GETMBR R3 R1 K15 - 0x90020403, // 0066 SETMBR R0 K2 R3 - 0x7002001B, // 0067 JMP #0084 - 0x880C0102, // 0068 GETMBR R3 R0 K2 - 0x88100310, // 0069 GETMBR R4 R1 K16 - 0x280C0604, // 006A GE R3 R3 R4 - 0x780E0017, // 006B JMPF R3 #0084 - 0x880C0102, // 006C GETMBR R3 R0 K2 - 0x88100311, // 006D GETMBR R4 R1 K17 - 0x180C0604, // 006E LE R3 R3 R4 - 0x780E0013, // 006F JMPF R3 #0084 - 0x600C000C, // 0070 GETGBL R3 G12 - 0x88100105, // 0071 GETMBR R4 R0 K5 - 0x7C0C0200, // 0072 CALL R3 1 - 0x541200FE, // 0073 LDINT R4 255 - 0x180C0604, // 0074 LE R3 R3 R4 - 0x780E0002, // 0075 JMPF R3 #0079 - 0x880C0310, // 0076 GETMBR R3 R1 K16 - 0x90020403, // 0077 SETMBR R0 K2 R3 - 0x7002000A, // 0078 JMP #0084 - 0x600C000C, // 0079 GETGBL R3 G12 - 0x88100105, // 007A GETMBR R4 R0 K5 - 0x7C0C0200, // 007B CALL R3 1 - 0x5412FFFE, // 007C LDINT R4 65535 - 0x180C0604, // 007D LE R3 R3 R4 - 0x780E0002, // 007E JMPF R3 #0082 - 0x880C0312, // 007F GETMBR R3 R1 K18 - 0x90020403, // 0080 SETMBR R0 K2 R3 - 0x70020001, // 0081 JMP #0084 - 0x880C0313, // 0082 GETMBR R3 R1 K19 - 0x90020403, // 0083 SETMBR R0 K2 R3 - 0x8C0C0114, // 0084 GETMET R3 R0 K20 - 0x7C0C0200, // 0085 CALL R3 1 - 0x00080403, // 0086 ADD R2 R2 R3 - 0x880C0102, // 0087 GETMBR R3 R0 K2 - 0x88100308, // 0088 GETMBR R4 R1 K8 - 0x1C0C0604, // 0089 EQ R3 R3 R4 - 0x740E0003, // 008A JMPT R3 #008F - 0x880C0102, // 008B GETMBR R3 R0 K2 - 0x8810030B, // 008C GETMBR R4 R1 K11 - 0x1C0C0604, // 008D EQ R3 R3 R4 - 0x780E0001, // 008E JMPF R3 #0091 - 0x00080515, // 008F ADD R2 R2 K21 - 0x70020067, // 0090 JMP #00F9 - 0x880C0102, // 0091 GETMBR R3 R0 K2 - 0x88100306, // 0092 GETMBR R4 R1 K6 - 0x1C0C0604, // 0093 EQ R3 R3 R4 - 0x740E0003, // 0094 JMPT R3 #0099 - 0x880C0102, // 0095 GETMBR R3 R0 K2 - 0x88100309, // 0096 GETMBR R4 R1 K9 - 0x1C0C0604, // 0097 EQ R3 R3 R4 - 0x780E0001, // 0098 JMPF R3 #009B - 0x00080516, // 0099 ADD R2 R2 K22 - 0x7002005D, // 009A JMP #00F9 - 0x880C0102, // 009B GETMBR R3 R0 K2 - 0x88100307, // 009C GETMBR R4 R1 K7 - 0x1C0C0604, // 009D EQ R3 R3 R4 - 0x740E0003, // 009E JMPT R3 #00A3 - 0x880C0102, // 009F GETMBR R3 R0 K2 - 0x8810030A, // 00A0 GETMBR R4 R1 K10 - 0x1C0C0604, // 00A1 EQ R3 R3 R4 - 0x780E0002, // 00A2 JMPF R3 #00A6 - 0x540E0003, // 00A3 LDINT R3 4 - 0x00080403, // 00A4 ADD R2 R2 R3 - 0x70020052, // 00A5 JMP #00F9 - 0x880C0102, // 00A6 GETMBR R3 R0 K2 - 0x88100317, // 00A7 GETMBR R4 R1 K23 - 0x1C0C0604, // 00A8 EQ R3 R3 R4 - 0x740E0003, // 00A9 JMPT R3 #00AE - 0x880C0102, // 00AA GETMBR R3 R0 K2 - 0x88100318, // 00AB GETMBR R4 R1 K24 - 0x1C0C0604, // 00AC EQ R3 R3 R4 - 0x780E0002, // 00AD JMPF R3 #00B1 - 0x540E0007, // 00AE LDINT R3 8 - 0x00080403, // 00AF ADD R2 R2 R3 - 0x70020047, // 00B0 JMP #00F9 - 0x880C0102, // 00B1 GETMBR R3 R0 K2 - 0x88100303, // 00B2 GETMBR R4 R1 K3 - 0x1C0C0604, // 00B3 EQ R3 R3 R4 - 0x740E0003, // 00B4 JMPT R3 #00B9 - 0x880C0102, // 00B5 GETMBR R3 R0 K2 - 0x88100304, // 00B6 GETMBR R4 R1 K4 - 0x1C0C0604, // 00B7 EQ R3 R3 R4 - 0x780E0000, // 00B8 JMPF R3 #00BA - 0x7002003E, // 00B9 JMP #00F9 - 0x880C0102, // 00BA GETMBR R3 R0 K2 - 0x88100319, // 00BB GETMBR R4 R1 K25 - 0x1C0C0604, // 00BC EQ R3 R3 R4 - 0x780E0002, // 00BD JMPF R3 #00C1 - 0x540E0003, // 00BE LDINT R3 4 - 0x00080403, // 00BF ADD R2 R2 R3 - 0x70020037, // 00C0 JMP #00F9 - 0x880C0102, // 00C1 GETMBR R3 R0 K2 - 0x8810031A, // 00C2 GETMBR R4 R1 K26 - 0x1C0C0604, // 00C3 EQ R3 R3 R4 - 0x780E0001, // 00C4 JMPF R3 #00C7 - 0xB006371C, // 00C5 RAISE 1 K27 K28 - 0x70020031, // 00C6 JMP #00F9 - 0x880C0102, // 00C7 GETMBR R3 R0 K2 - 0x88100310, // 00C8 GETMBR R4 R1 K16 - 0x1C0C0604, // 00C9 EQ R3 R3 R4 - 0x780E0005, // 00CA JMPF R3 #00D1 - 0x600C000C, // 00CB GETGBL R3 G12 - 0x88100105, // 00CC GETMBR R4 R0 K5 - 0x7C0C0200, // 00CD CALL R3 1 - 0x000E2A03, // 00CE ADD R3 K21 R3 - 0x00080403, // 00CF ADD R2 R2 R3 - 0x70020027, // 00D0 JMP #00F9 - 0x880C0102, // 00D1 GETMBR R3 R0 K2 - 0x88100312, // 00D2 GETMBR R4 R1 K18 - 0x1C0C0604, // 00D3 EQ R3 R3 R4 - 0x780E0005, // 00D4 JMPF R3 #00DB - 0x600C000C, // 00D5 GETGBL R3 G12 - 0x88100105, // 00D6 GETMBR R4 R0 K5 - 0x7C0C0200, // 00D7 CALL R3 1 - 0x000E2C03, // 00D8 ADD R3 K22 R3 - 0x00080403, // 00D9 ADD R2 R2 R3 - 0x7002001D, // 00DA JMP #00F9 - 0x880C0102, // 00DB GETMBR R3 R0 K2 - 0x8810030C, // 00DC GETMBR R4 R1 K12 - 0x1C0C0604, // 00DD EQ R3 R3 R4 - 0x780E0005, // 00DE JMPF R3 #00E5 - 0x600C000C, // 00DF GETGBL R3 G12 - 0x88100105, // 00E0 GETMBR R4 R0 K5 - 0x7C0C0200, // 00E1 CALL R3 1 - 0x000E2A03, // 00E2 ADD R3 K21 R3 - 0x00080403, // 00E3 ADD R2 R2 R3 - 0x70020013, // 00E4 JMP #00F9 - 0x880C0102, // 00E5 GETMBR R3 R0 K2 - 0x8810030E, // 00E6 GETMBR R4 R1 K14 - 0x1C0C0604, // 00E7 EQ R3 R3 R4 - 0x780E0005, // 00E8 JMPF R3 #00EF - 0x600C000C, // 00E9 GETGBL R3 G12 - 0x88100105, // 00EA GETMBR R4 R0 K5 - 0x7C0C0200, // 00EB CALL R3 1 - 0x000E2C03, // 00EC ADD R3 K22 R3 - 0x00080403, // 00ED ADD R2 R2 R3 - 0x70020009, // 00EE JMP #00F9 - 0x880C0102, // 00EF GETMBR R3 R0 K2 - 0x8810031D, // 00F0 GETMBR R4 R1 K29 - 0x1C0C0604, // 00F1 EQ R3 R3 R4 - 0x780E0000, // 00F2 JMPF R3 #00F4 - 0x70020004, // 00F3 JMP #00F9 - 0x600C0008, // 00F4 GETGBL R3 G8 - 0x88100102, // 00F5 GETMBR R4 R0 K2 - 0x7C0C0200, // 00F6 CALL R3 1 - 0x000E3C03, // 00F7 ADD R3 K30 R3 - 0xB0063603, // 00F8 RAISE 1 K27 R3 - 0x80040400, // 00F9 RET 1 R2 + 0x70020006, // 004A JMP #0052 + 0x5412FFFE, // 004B LDINT R4 65535 + 0x18100604, // 004C LE R4 R3 R4 + 0x78120003, // 004D JMPF R4 #0052 + 0x28100701, // 004E GE R4 R3 K1 + 0x78120001, // 004F JMPF R4 #0052 + 0x8810030A, // 0050 GETMBR R4 R1 K10 + 0x90020404, // 0051 SETMBR R0 K2 R4 + 0x70020038, // 0052 JMP #008C + 0x880C0102, // 0053 GETMBR R3 R0 K2 + 0x8810030D, // 0054 GETMBR R4 R1 K13 + 0x280C0604, // 0055 GE R3 R3 R4 + 0x780E0018, // 0056 JMPF R3 #0070 + 0x880C0102, // 0057 GETMBR R3 R0 K2 + 0x8810030E, // 0058 GETMBR R4 R1 K14 + 0x180C0604, // 0059 LE R3 R3 R4 + 0x780E0014, // 005A JMPF R3 #0070 + 0x600C000C, // 005B GETGBL R3 G12 + 0x88100104, // 005C GETMBR R4 R0 K4 + 0x7C0C0200, // 005D CALL R3 1 + 0x541200FE, // 005E LDINT R4 255 + 0x180C0604, // 005F LE R3 R3 R4 + 0x780E0002, // 0060 JMPF R3 #0064 + 0x880C030D, // 0061 GETMBR R3 R1 K13 + 0x90020403, // 0062 SETMBR R0 K2 R3 + 0x7002000A, // 0063 JMP #006F + 0x600C000C, // 0064 GETGBL R3 G12 + 0x88100104, // 0065 GETMBR R4 R0 K4 + 0x7C0C0200, // 0066 CALL R3 1 + 0x5412FFFE, // 0067 LDINT R4 65535 + 0x180C0604, // 0068 LE R3 R3 R4 + 0x780E0002, // 0069 JMPF R3 #006D + 0x880C030F, // 006A GETMBR R3 R1 K15 + 0x90020403, // 006B SETMBR R0 K2 R3 + 0x70020001, // 006C JMP #006F + 0x880C0310, // 006D GETMBR R3 R1 K16 + 0x90020403, // 006E SETMBR R0 K2 R3 + 0x7002001B, // 006F JMP #008C + 0x880C0102, // 0070 GETMBR R3 R0 K2 + 0x88100311, // 0071 GETMBR R4 R1 K17 + 0x280C0604, // 0072 GE R3 R3 R4 + 0x780E0017, // 0073 JMPF R3 #008C + 0x880C0102, // 0074 GETMBR R3 R0 K2 + 0x88100312, // 0075 GETMBR R4 R1 K18 + 0x180C0604, // 0076 LE R3 R3 R4 + 0x780E0013, // 0077 JMPF R3 #008C + 0x600C000C, // 0078 GETGBL R3 G12 + 0x88100104, // 0079 GETMBR R4 R0 K4 + 0x7C0C0200, // 007A CALL R3 1 + 0x541200FE, // 007B LDINT R4 255 + 0x180C0604, // 007C LE R3 R3 R4 + 0x780E0002, // 007D JMPF R3 #0081 + 0x880C0311, // 007E GETMBR R3 R1 K17 + 0x90020403, // 007F SETMBR R0 K2 R3 + 0x7002000A, // 0080 JMP #008C + 0x600C000C, // 0081 GETGBL R3 G12 + 0x88100104, // 0082 GETMBR R4 R0 K4 + 0x7C0C0200, // 0083 CALL R3 1 + 0x5412FFFE, // 0084 LDINT R4 65535 + 0x180C0604, // 0085 LE R3 R3 R4 + 0x780E0002, // 0086 JMPF R3 #008A + 0x880C0313, // 0087 GETMBR R3 R1 K19 + 0x90020403, // 0088 SETMBR R0 K2 R3 + 0x70020001, // 0089 JMP #008C + 0x880C0314, // 008A GETMBR R3 R1 K20 + 0x90020403, // 008B SETMBR R0 K2 R3 + 0x8C0C0115, // 008C GETMET R3 R0 K21 + 0x7C0C0200, // 008D CALL R3 1 + 0x00080403, // 008E ADD R2 R2 R3 + 0x880C0102, // 008F GETMBR R3 R0 K2 + 0x88100309, // 0090 GETMBR R4 R1 K9 + 0x1C0C0604, // 0091 EQ R3 R3 R4 + 0x740E0003, // 0092 JMPT R3 #0097 + 0x880C0102, // 0093 GETMBR R3 R0 K2 + 0x8810030C, // 0094 GETMBR R4 R1 K12 + 0x1C0C0604, // 0095 EQ R3 R3 R4 + 0x780E0001, // 0096 JMPF R3 #0099 + 0x00080516, // 0097 ADD R2 R2 K22 + 0x70020067, // 0098 JMP #0101 + 0x880C0102, // 0099 GETMBR R3 R0 K2 + 0x88100307, // 009A GETMBR R4 R1 K7 + 0x1C0C0604, // 009B EQ R3 R3 R4 + 0x740E0003, // 009C JMPT R3 #00A1 + 0x880C0102, // 009D GETMBR R3 R0 K2 + 0x8810030A, // 009E GETMBR R4 R1 K10 + 0x1C0C0604, // 009F EQ R3 R3 R4 + 0x780E0001, // 00A0 JMPF R3 #00A3 + 0x00080517, // 00A1 ADD R2 R2 K23 + 0x7002005D, // 00A2 JMP #0101 + 0x880C0102, // 00A3 GETMBR R3 R0 K2 + 0x88100308, // 00A4 GETMBR R4 R1 K8 + 0x1C0C0604, // 00A5 EQ R3 R3 R4 + 0x740E0003, // 00A6 JMPT R3 #00AB + 0x880C0102, // 00A7 GETMBR R3 R0 K2 + 0x8810030B, // 00A8 GETMBR R4 R1 K11 + 0x1C0C0604, // 00A9 EQ R3 R3 R4 + 0x780E0002, // 00AA JMPF R3 #00AE + 0x540E0003, // 00AB LDINT R3 4 + 0x00080403, // 00AC ADD R2 R2 R3 + 0x70020052, // 00AD JMP #0101 + 0x880C0102, // 00AE GETMBR R3 R0 K2 + 0x88100318, // 00AF GETMBR R4 R1 K24 + 0x1C0C0604, // 00B0 EQ R3 R3 R4 + 0x740E0003, // 00B1 JMPT R3 #00B6 + 0x880C0102, // 00B2 GETMBR R3 R0 K2 + 0x88100319, // 00B3 GETMBR R4 R1 K25 + 0x1C0C0604, // 00B4 EQ R3 R3 R4 + 0x780E0002, // 00B5 JMPF R3 #00B9 + 0x540E0007, // 00B6 LDINT R3 8 + 0x00080403, // 00B7 ADD R2 R2 R3 + 0x70020047, // 00B8 JMP #0101 + 0x880C0102, // 00B9 GETMBR R3 R0 K2 + 0x88100305, // 00BA GETMBR R4 R1 K5 + 0x1C0C0604, // 00BB EQ R3 R3 R4 + 0x740E0003, // 00BC JMPT R3 #00C1 + 0x880C0102, // 00BD GETMBR R3 R0 K2 + 0x88100306, // 00BE GETMBR R4 R1 K6 + 0x1C0C0604, // 00BF EQ R3 R3 R4 + 0x780E0000, // 00C0 JMPF R3 #00C2 + 0x7002003E, // 00C1 JMP #0101 + 0x880C0102, // 00C2 GETMBR R3 R0 K2 + 0x8810031A, // 00C3 GETMBR R4 R1 K26 + 0x1C0C0604, // 00C4 EQ R3 R3 R4 + 0x780E0002, // 00C5 JMPF R3 #00C9 + 0x540E0003, // 00C6 LDINT R3 4 + 0x00080403, // 00C7 ADD R2 R2 R3 + 0x70020037, // 00C8 JMP #0101 + 0x880C0102, // 00C9 GETMBR R3 R0 K2 + 0x8810031B, // 00CA GETMBR R4 R1 K27 + 0x1C0C0604, // 00CB EQ R3 R3 R4 + 0x780E0001, // 00CC JMPF R3 #00CF + 0xB006391D, // 00CD RAISE 1 K28 K29 + 0x70020031, // 00CE JMP #0101 + 0x880C0102, // 00CF GETMBR R3 R0 K2 + 0x88100311, // 00D0 GETMBR R4 R1 K17 + 0x1C0C0604, // 00D1 EQ R3 R3 R4 + 0x780E0005, // 00D2 JMPF R3 #00D9 + 0x600C000C, // 00D3 GETGBL R3 G12 + 0x88100104, // 00D4 GETMBR R4 R0 K4 + 0x7C0C0200, // 00D5 CALL R3 1 + 0x000E2C03, // 00D6 ADD R3 K22 R3 + 0x00080403, // 00D7 ADD R2 R2 R3 + 0x70020027, // 00D8 JMP #0101 + 0x880C0102, // 00D9 GETMBR R3 R0 K2 + 0x88100313, // 00DA GETMBR R4 R1 K19 + 0x1C0C0604, // 00DB EQ R3 R3 R4 + 0x780E0005, // 00DC JMPF R3 #00E3 + 0x600C000C, // 00DD GETGBL R3 G12 + 0x88100104, // 00DE GETMBR R4 R0 K4 + 0x7C0C0200, // 00DF CALL R3 1 + 0x000E2E03, // 00E0 ADD R3 K23 R3 + 0x00080403, // 00E1 ADD R2 R2 R3 + 0x7002001D, // 00E2 JMP #0101 + 0x880C0102, // 00E3 GETMBR R3 R0 K2 + 0x8810030D, // 00E4 GETMBR R4 R1 K13 + 0x1C0C0604, // 00E5 EQ R3 R3 R4 + 0x780E0005, // 00E6 JMPF R3 #00ED + 0x600C000C, // 00E7 GETGBL R3 G12 + 0x88100104, // 00E8 GETMBR R4 R0 K4 + 0x7C0C0200, // 00E9 CALL R3 1 + 0x000E2C03, // 00EA ADD R3 K22 R3 + 0x00080403, // 00EB ADD R2 R2 R3 + 0x70020013, // 00EC JMP #0101 + 0x880C0102, // 00ED GETMBR R3 R0 K2 + 0x8810030F, // 00EE GETMBR R4 R1 K15 + 0x1C0C0604, // 00EF EQ R3 R3 R4 + 0x780E0005, // 00F0 JMPF R3 #00F7 + 0x600C000C, // 00F1 GETGBL R3 G12 + 0x88100104, // 00F2 GETMBR R4 R0 K4 + 0x7C0C0200, // 00F3 CALL R3 1 + 0x000E2E03, // 00F4 ADD R3 K23 R3 + 0x00080403, // 00F5 ADD R2 R2 R3 + 0x70020009, // 00F6 JMP #0101 + 0x880C0102, // 00F7 GETMBR R3 R0 K2 + 0x8810031E, // 00F8 GETMBR R4 R1 K30 + 0x1C0C0604, // 00F9 EQ R3 R3 R4 + 0x780E0000, // 00FA JMPF R3 #00FC + 0x70020004, // 00FB JMP #0101 + 0x600C0008, // 00FC GETGBL R3 G8 + 0x88100102, // 00FD GETMBR R4 R0 K2 + 0x7C0C0200, // 00FE CALL R3 1 + 0x000E3E03, // 00FF ADD R3 K31 R3 + 0xB0063803, // 0100 RAISE 1 K28 R3 + 0x80040400, // 0101 RET 1 R2 }) ) ); @@ -1045,52 +1054,53 @@ be_local_closure(Matter_TLV_item_tlv2raw, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[41]) { /* constants */ + ( &(const bvalue[42]) { /* constants */ /* K0 */ be_nested_str_weak(TLV), /* K1 */ be_nested_str_weak(typ), - /* K2 */ be_nested_str_weak(BFALSE), - /* K3 */ be_nested_str_weak(BTRUE), - /* K4 */ be_nested_str_weak(val), - /* K5 */ be_nested_str_weak(I2), - /* K6 */ be_nested_str_weak(I4), - /* K7 */ be_nested_str_weak(I1), - /* K8 */ be_nested_str_weak(U2), - /* K9 */ be_nested_str_weak(U4), - /* K10 */ be_const_int(0), - /* K11 */ be_nested_str_weak(U1), - /* K12 */ be_nested_str_weak(B1), - /* K13 */ be_nested_str_weak(B8), - /* K14 */ be_nested_str_weak(B2), - /* K15 */ be_nested_str_weak(B4), - /* K16 */ be_nested_str_weak(UTF1), - /* K17 */ be_nested_str_weak(UTF8), - /* K18 */ be_nested_str_weak(UTF2), - /* K19 */ be_nested_str_weak(UTF4), - /* K20 */ be_nested_str_weak(_encode_tag), - /* K21 */ be_nested_str_weak(add), - /* K22 */ be_const_int(1), - /* K23 */ be_const_int(2), - /* K24 */ be_nested_str_weak(I8), - /* K25 */ be_nested_str_weak(U8), - /* K26 */ be_nested_str_weak(copy), - /* K27 */ be_nested_str_weak(resize), - /* K28 */ be_nested_str_weak(int64), - /* K29 */ be_nested_str_weak(tobytes), - /* K30 */ be_nested_str_weak(FLOAT), - /* K31 */ be_nested_str_weak(setfloat), - /* K32 */ be_nested_str_weak(DOUBLE), - /* K33 */ be_nested_str_weak(value_error), - /* K34 */ be_nested_str_weak(Unsupported_X20type_X20TLV_X2EDOUBLE), - /* K35 */ be_nested_str_weak(string_X20too_X20big), - /* K36 */ be_nested_str_weak(fromstring), - /* K37 */ be_nested_str_weak(frostring), - /* K38 */ be_nested_str_weak(bytes_X20too_X20big), - /* K39 */ be_nested_str_weak(NULL), - /* K40 */ be_nested_str_weak(unsupported_X20type_X20), + /* K2 */ be_nested_str_weak(RAW), + /* K3 */ be_nested_str_weak(val), + /* K4 */ be_nested_str_weak(BFALSE), + /* K5 */ be_nested_str_weak(BTRUE), + /* K6 */ be_nested_str_weak(I2), + /* K7 */ be_nested_str_weak(I4), + /* K8 */ be_nested_str_weak(I1), + /* K9 */ be_nested_str_weak(U2), + /* K10 */ be_nested_str_weak(U4), + /* K11 */ be_const_int(0), + /* K12 */ be_nested_str_weak(U1), + /* K13 */ be_nested_str_weak(B1), + /* K14 */ be_nested_str_weak(B8), + /* K15 */ be_nested_str_weak(B2), + /* K16 */ be_nested_str_weak(B4), + /* K17 */ be_nested_str_weak(UTF1), + /* K18 */ be_nested_str_weak(UTF8), + /* K19 */ be_nested_str_weak(UTF2), + /* K20 */ be_nested_str_weak(UTF4), + /* K21 */ be_nested_str_weak(_encode_tag), + /* K22 */ be_nested_str_weak(add), + /* K23 */ be_const_int(1), + /* K24 */ be_const_int(2), + /* K25 */ be_nested_str_weak(I8), + /* K26 */ be_nested_str_weak(U8), + /* K27 */ be_nested_str_weak(copy), + /* K28 */ be_nested_str_weak(resize), + /* K29 */ be_nested_str_weak(int64), + /* K30 */ be_nested_str_weak(tobytes), + /* K31 */ be_nested_str_weak(FLOAT), + /* K32 */ be_nested_str_weak(setfloat), + /* K33 */ be_nested_str_weak(DOUBLE), + /* K34 */ be_nested_str_weak(value_error), + /* K35 */ be_nested_str_weak(Unsupported_X20type_X20TLV_X2EDOUBLE), + /* K36 */ be_nested_str_weak(string_X20too_X20big), + /* K37 */ be_nested_str_weak(fromstring), + /* K38 */ be_nested_str_weak(frostring), + /* K39 */ be_nested_str_weak(bytes_X20too_X20big), + /* K40 */ be_nested_str_weak(NULL), + /* K41 */ be_nested_str_weak(unsupported_X20type_X20), }), be_str_weak(tlv2raw), &be_const_str_solidified, - ( &(const binstruction[361]) { /* code */ + ( &(const binstruction[368]) { /* code */ 0x88080100, // 0000 GETMBR R2 R0 K0 0x4C0C0000, // 0001 LDNIL R3 0x1C0C0203, // 0002 EQ R3 R1 R3 @@ -1101,357 +1111,364 @@ be_local_closure(Matter_TLV_item_tlv2raw, /* name */ 0x880C0101, // 0007 GETMBR R3 R0 K1 0x88100502, // 0008 GETMBR R4 R2 K2 0x1C0C0604, // 0009 EQ R3 R3 R4 - 0x740E0003, // 000A JMPT R3 #000F - 0x880C0101, // 000B GETMBR R3 R0 K1 - 0x88100503, // 000C GETMBR R4 R2 K3 - 0x1C0C0604, // 000D EQ R3 R3 R4 - 0x780E0008, // 000E JMPF R3 #0018 - 0x600C0017, // 000F GETGBL R3 G23 - 0x88100104, // 0010 GETMBR R4 R0 K4 - 0x7C0C0200, // 0011 CALL R3 1 - 0x780E0001, // 0012 JMPF R3 #0015 - 0x880C0503, // 0013 GETMBR R3 R2 K3 - 0x70020000, // 0014 JMP #0016 - 0x880C0502, // 0015 GETMBR R3 R2 K2 - 0x90020203, // 0016 SETMBR R0 K1 R3 - 0x70020070, // 0017 JMP #0089 - 0x880C0101, // 0018 GETMBR R3 R0 K1 - 0x88100505, // 0019 GETMBR R4 R2 K5 - 0x280C0604, // 001A GE R3 R3 R4 - 0x780E0018, // 001B JMPF R3 #0035 - 0x880C0101, // 001C GETMBR R3 R0 K1 - 0x88100506, // 001D GETMBR R4 R2 K6 - 0x180C0604, // 001E LE R3 R3 R4 - 0x780E0014, // 001F JMPF R3 #0035 - 0x600C0009, // 0020 GETGBL R3 G9 - 0x88100104, // 0021 GETMBR R4 R0 K4 - 0x7C0C0200, // 0022 CALL R3 1 - 0x5412007E, // 0023 LDINT R4 127 - 0x18100604, // 0024 LE R4 R3 R4 - 0x78120005, // 0025 JMPF R4 #002C - 0x5411FF7F, // 0026 LDINT R4 -128 - 0x28100604, // 0027 GE R4 R3 R4 - 0x78120002, // 0028 JMPF R4 #002C - 0x88100507, // 0029 GETMBR R4 R2 K7 - 0x90020204, // 002A SETMBR R0 K1 R4 - 0x70020007, // 002B JMP #0034 - 0x54127FFE, // 002C LDINT R4 32767 - 0x18100604, // 002D LE R4 R3 R4 - 0x78120004, // 002E JMPF R4 #0034 - 0x54117FFF, // 002F LDINT R4 -32768 - 0x28100604, // 0030 GE R4 R3 R4 - 0x78120001, // 0031 JMPF R4 #0034 - 0x88100505, // 0032 GETMBR R4 R2 K5 - 0x90020204, // 0033 SETMBR R0 K1 R4 - 0x70020053, // 0034 JMP #0089 - 0x880C0101, // 0035 GETMBR R3 R0 K1 - 0x88100508, // 0036 GETMBR R4 R2 K8 - 0x280C0604, // 0037 GE R3 R3 R4 - 0x780E0016, // 0038 JMPF R3 #0050 - 0x880C0101, // 0039 GETMBR R3 R0 K1 - 0x88100509, // 003A GETMBR R4 R2 K9 - 0x180C0604, // 003B LE R3 R3 R4 - 0x780E0012, // 003C JMPF R3 #0050 - 0x600C0009, // 003D GETGBL R3 G9 - 0x88100104, // 003E GETMBR R4 R0 K4 - 0x7C0C0200, // 003F CALL R3 1 - 0x541200FE, // 0040 LDINT R4 255 - 0x18100604, // 0041 LE R4 R3 R4 - 0x78120004, // 0042 JMPF R4 #0048 - 0x2810070A, // 0043 GE R4 R3 K10 - 0x78120002, // 0044 JMPF R4 #0048 - 0x8810050B, // 0045 GETMBR R4 R2 K11 - 0x90020204, // 0046 SETMBR R0 K1 R4 - 0x70020006, // 0047 JMP #004F - 0x5412FFFE, // 0048 LDINT R4 65535 - 0x18100604, // 0049 LE R4 R3 R4 - 0x78120003, // 004A JMPF R4 #004F - 0x2810070A, // 004B GE R4 R3 K10 - 0x78120001, // 004C JMPF R4 #004F - 0x88100508, // 004D GETMBR R4 R2 K8 - 0x90020204, // 004E SETMBR R0 K1 R4 - 0x70020038, // 004F JMP #0089 - 0x880C0101, // 0050 GETMBR R3 R0 K1 - 0x8810050C, // 0051 GETMBR R4 R2 K12 - 0x280C0604, // 0052 GE R3 R3 R4 - 0x780E0018, // 0053 JMPF R3 #006D - 0x880C0101, // 0054 GETMBR R3 R0 K1 - 0x8810050D, // 0055 GETMBR R4 R2 K13 - 0x180C0604, // 0056 LE R3 R3 R4 - 0x780E0014, // 0057 JMPF R3 #006D - 0x600C000C, // 0058 GETGBL R3 G12 - 0x88100104, // 0059 GETMBR R4 R0 K4 - 0x7C0C0200, // 005A CALL R3 1 - 0x541200FE, // 005B LDINT R4 255 - 0x180C0604, // 005C LE R3 R3 R4 - 0x780E0002, // 005D JMPF R3 #0061 - 0x880C050C, // 005E GETMBR R3 R2 K12 - 0x90020203, // 005F SETMBR R0 K1 R3 - 0x7002000A, // 0060 JMP #006C - 0x600C000C, // 0061 GETGBL R3 G12 - 0x88100104, // 0062 GETMBR R4 R0 K4 - 0x7C0C0200, // 0063 CALL R3 1 - 0x5412FFFE, // 0064 LDINT R4 65535 - 0x180C0604, // 0065 LE R3 R3 R4 - 0x780E0002, // 0066 JMPF R3 #006A - 0x880C050E, // 0067 GETMBR R3 R2 K14 - 0x90020203, // 0068 SETMBR R0 K1 R3 - 0x70020001, // 0069 JMP #006C - 0x880C050F, // 006A GETMBR R3 R2 K15 - 0x90020203, // 006B SETMBR R0 K1 R3 - 0x7002001B, // 006C JMP #0089 - 0x880C0101, // 006D GETMBR R3 R0 K1 - 0x88100510, // 006E GETMBR R4 R2 K16 - 0x280C0604, // 006F GE R3 R3 R4 - 0x780E0017, // 0070 JMPF R3 #0089 - 0x880C0101, // 0071 GETMBR R3 R0 K1 - 0x88100511, // 0072 GETMBR R4 R2 K17 - 0x180C0604, // 0073 LE R3 R3 R4 - 0x780E0013, // 0074 JMPF R3 #0089 - 0x600C000C, // 0075 GETGBL R3 G12 - 0x88100104, // 0076 GETMBR R4 R0 K4 - 0x7C0C0200, // 0077 CALL R3 1 - 0x541200FE, // 0078 LDINT R4 255 - 0x180C0604, // 0079 LE R3 R3 R4 - 0x780E0002, // 007A JMPF R3 #007E - 0x880C0510, // 007B GETMBR R3 R2 K16 - 0x90020203, // 007C SETMBR R0 K1 R3 - 0x7002000A, // 007D JMP #0089 - 0x600C000C, // 007E GETGBL R3 G12 - 0x88100104, // 007F GETMBR R4 R0 K4 - 0x7C0C0200, // 0080 CALL R3 1 - 0x5412FFFE, // 0081 LDINT R4 65535 - 0x180C0604, // 0082 LE R3 R3 R4 - 0x780E0002, // 0083 JMPF R3 #0087 - 0x880C0512, // 0084 GETMBR R3 R2 K18 - 0x90020203, // 0085 SETMBR R0 K1 R3 - 0x70020001, // 0086 JMP #0089 - 0x880C0513, // 0087 GETMBR R3 R2 K19 - 0x90020203, // 0088 SETMBR R0 K1 R3 - 0x8C0C0114, // 0089 GETMET R3 R0 K20 - 0x5C140200, // 008A MOVE R5 R1 - 0x7C0C0400, // 008B CALL R3 2 - 0x880C0101, // 008C GETMBR R3 R0 K1 - 0x88100507, // 008D GETMBR R4 R2 K7 - 0x1C0C0604, // 008E EQ R3 R3 R4 - 0x740E0003, // 008F JMPT R3 #0094 - 0x880C0101, // 0090 GETMBR R3 R0 K1 - 0x8810050B, // 0091 GETMBR R4 R2 K11 - 0x1C0C0604, // 0092 EQ R3 R3 R4 - 0x780E0006, // 0093 JMPF R3 #009B - 0x8C0C0315, // 0094 GETMET R3 R1 K21 - 0x60140009, // 0095 GETGBL R5 G9 - 0x88180104, // 0096 GETMBR R6 R0 K4 - 0x7C140200, // 0097 CALL R5 1 - 0x58180016, // 0098 LDCONST R6 K22 - 0x7C0C0600, // 0099 CALL R3 3 - 0x700200CC, // 009A JMP #0168 - 0x880C0101, // 009B GETMBR R3 R0 K1 - 0x88100505, // 009C GETMBR R4 R2 K5 - 0x1C0C0604, // 009D EQ R3 R3 R4 - 0x740E0003, // 009E JMPT R3 #00A3 - 0x880C0101, // 009F GETMBR R3 R0 K1 - 0x88100508, // 00A0 GETMBR R4 R2 K8 - 0x1C0C0604, // 00A1 EQ R3 R3 R4 - 0x780E0006, // 00A2 JMPF R3 #00AA - 0x8C0C0315, // 00A3 GETMET R3 R1 K21 - 0x60140009, // 00A4 GETGBL R5 G9 - 0x88180104, // 00A5 GETMBR R6 R0 K4 - 0x7C140200, // 00A6 CALL R5 1 - 0x58180017, // 00A7 LDCONST R6 K23 - 0x7C0C0600, // 00A8 CALL R3 3 - 0x700200BD, // 00A9 JMP #0168 - 0x880C0101, // 00AA GETMBR R3 R0 K1 - 0x88100506, // 00AB GETMBR R4 R2 K6 - 0x1C0C0604, // 00AC EQ R3 R3 R4 - 0x740E0003, // 00AD JMPT R3 #00B2 - 0x880C0101, // 00AE GETMBR R3 R0 K1 - 0x88100509, // 00AF GETMBR R4 R2 K9 - 0x1C0C0604, // 00B0 EQ R3 R3 R4 - 0x780E0006, // 00B1 JMPF R3 #00B9 - 0x8C0C0315, // 00B2 GETMET R3 R1 K21 - 0x60140009, // 00B3 GETGBL R5 G9 - 0x88180104, // 00B4 GETMBR R6 R0 K4 - 0x7C140200, // 00B5 CALL R5 1 - 0x541A0003, // 00B6 LDINT R6 4 - 0x7C0C0600, // 00B7 CALL R3 3 - 0x700200AE, // 00B8 JMP #0168 - 0x880C0101, // 00B9 GETMBR R3 R0 K1 - 0x88100518, // 00BA GETMBR R4 R2 K24 - 0x1C0C0604, // 00BB EQ R3 R3 R4 - 0x740E0003, // 00BC JMPT R3 #00C1 - 0x880C0101, // 00BD GETMBR R3 R0 K1 - 0x88100519, // 00BE GETMBR R4 R2 K25 - 0x1C0C0604, // 00BF EQ R3 R3 R4 - 0x780E001F, // 00C0 JMPF R3 #00E1 - 0x880C0104, // 00C1 GETMBR R3 R0 K4 - 0x6010000F, // 00C2 GETGBL R4 G15 - 0x5C140600, // 00C3 MOVE R5 R3 - 0x60180015, // 00C4 GETGBL R6 G21 - 0x7C100400, // 00C5 CALL R4 2 - 0x78120006, // 00C6 JMPF R4 #00CE - 0x8C10071A, // 00C7 GETMET R4 R3 K26 - 0x7C100200, // 00C8 CALL R4 1 - 0x8C10091B, // 00C9 GETMET R4 R4 K27 - 0x541A0007, // 00CA LDINT R6 8 - 0x7C100400, // 00CB CALL R4 2 - 0x5C0C0800, // 00CC MOVE R3 R4 - 0x70020010, // 00CD JMP #00DF - 0x6010000F, // 00CE GETGBL R4 G15 - 0x5C140600, // 00CF MOVE R5 R3 - 0xB81A3800, // 00D0 GETNGBL R6 K28 - 0x7C100400, // 00D1 CALL R4 2 - 0x78120003, // 00D2 JMPF R4 #00D7 - 0x8C10071D, // 00D3 GETMET R4 R3 K29 - 0x7C100200, // 00D4 CALL R4 1 - 0x5C0C0800, // 00D5 MOVE R3 R4 - 0x70020007, // 00D6 JMP #00DF - 0xB8123800, // 00D7 GETNGBL R4 K28 - 0x60140009, // 00D8 GETGBL R5 G9 - 0x5C180600, // 00D9 MOVE R6 R3 - 0x7C140200, // 00DA CALL R5 1 + 0x780E0002, // 000A JMPF R3 #000E + 0x880C0103, // 000B GETMBR R3 R0 K3 + 0x400C0203, // 000C CONNECT R3 R1 R3 + 0x80040200, // 000D RET 1 R1 + 0x880C0101, // 000E GETMBR R3 R0 K1 + 0x88100504, // 000F GETMBR R4 R2 K4 + 0x1C0C0604, // 0010 EQ R3 R3 R4 + 0x740E0003, // 0011 JMPT R3 #0016 + 0x880C0101, // 0012 GETMBR R3 R0 K1 + 0x88100505, // 0013 GETMBR R4 R2 K5 + 0x1C0C0604, // 0014 EQ R3 R3 R4 + 0x780E0008, // 0015 JMPF R3 #001F + 0x600C0017, // 0016 GETGBL R3 G23 + 0x88100103, // 0017 GETMBR R4 R0 K3 + 0x7C0C0200, // 0018 CALL R3 1 + 0x780E0001, // 0019 JMPF R3 #001C + 0x880C0505, // 001A GETMBR R3 R2 K5 + 0x70020000, // 001B JMP #001D + 0x880C0504, // 001C GETMBR R3 R2 K4 + 0x90020203, // 001D SETMBR R0 K1 R3 + 0x70020070, // 001E JMP #0090 + 0x880C0101, // 001F GETMBR R3 R0 K1 + 0x88100506, // 0020 GETMBR R4 R2 K6 + 0x280C0604, // 0021 GE R3 R3 R4 + 0x780E0018, // 0022 JMPF R3 #003C + 0x880C0101, // 0023 GETMBR R3 R0 K1 + 0x88100507, // 0024 GETMBR R4 R2 K7 + 0x180C0604, // 0025 LE R3 R3 R4 + 0x780E0014, // 0026 JMPF R3 #003C + 0x600C0009, // 0027 GETGBL R3 G9 + 0x88100103, // 0028 GETMBR R4 R0 K3 + 0x7C0C0200, // 0029 CALL R3 1 + 0x5412007E, // 002A LDINT R4 127 + 0x18100604, // 002B LE R4 R3 R4 + 0x78120005, // 002C JMPF R4 #0033 + 0x5411FF7F, // 002D LDINT R4 -128 + 0x28100604, // 002E GE R4 R3 R4 + 0x78120002, // 002F JMPF R4 #0033 + 0x88100508, // 0030 GETMBR R4 R2 K8 + 0x90020204, // 0031 SETMBR R0 K1 R4 + 0x70020007, // 0032 JMP #003B + 0x54127FFE, // 0033 LDINT R4 32767 + 0x18100604, // 0034 LE R4 R3 R4 + 0x78120004, // 0035 JMPF R4 #003B + 0x54117FFF, // 0036 LDINT R4 -32768 + 0x28100604, // 0037 GE R4 R3 R4 + 0x78120001, // 0038 JMPF R4 #003B + 0x88100506, // 0039 GETMBR R4 R2 K6 + 0x90020204, // 003A SETMBR R0 K1 R4 + 0x70020053, // 003B JMP #0090 + 0x880C0101, // 003C GETMBR R3 R0 K1 + 0x88100509, // 003D GETMBR R4 R2 K9 + 0x280C0604, // 003E GE R3 R3 R4 + 0x780E0016, // 003F JMPF R3 #0057 + 0x880C0101, // 0040 GETMBR R3 R0 K1 + 0x8810050A, // 0041 GETMBR R4 R2 K10 + 0x180C0604, // 0042 LE R3 R3 R4 + 0x780E0012, // 0043 JMPF R3 #0057 + 0x600C0009, // 0044 GETGBL R3 G9 + 0x88100103, // 0045 GETMBR R4 R0 K3 + 0x7C0C0200, // 0046 CALL R3 1 + 0x541200FE, // 0047 LDINT R4 255 + 0x18100604, // 0048 LE R4 R3 R4 + 0x78120004, // 0049 JMPF R4 #004F + 0x2810070B, // 004A GE R4 R3 K11 + 0x78120002, // 004B JMPF R4 #004F + 0x8810050C, // 004C GETMBR R4 R2 K12 + 0x90020204, // 004D SETMBR R0 K1 R4 + 0x70020006, // 004E JMP #0056 + 0x5412FFFE, // 004F LDINT R4 65535 + 0x18100604, // 0050 LE R4 R3 R4 + 0x78120003, // 0051 JMPF R4 #0056 + 0x2810070B, // 0052 GE R4 R3 K11 + 0x78120001, // 0053 JMPF R4 #0056 + 0x88100509, // 0054 GETMBR R4 R2 K9 + 0x90020204, // 0055 SETMBR R0 K1 R4 + 0x70020038, // 0056 JMP #0090 + 0x880C0101, // 0057 GETMBR R3 R0 K1 + 0x8810050D, // 0058 GETMBR R4 R2 K13 + 0x280C0604, // 0059 GE R3 R3 R4 + 0x780E0018, // 005A JMPF R3 #0074 + 0x880C0101, // 005B GETMBR R3 R0 K1 + 0x8810050E, // 005C GETMBR R4 R2 K14 + 0x180C0604, // 005D LE R3 R3 R4 + 0x780E0014, // 005E JMPF R3 #0074 + 0x600C000C, // 005F GETGBL R3 G12 + 0x88100103, // 0060 GETMBR R4 R0 K3 + 0x7C0C0200, // 0061 CALL R3 1 + 0x541200FE, // 0062 LDINT R4 255 + 0x180C0604, // 0063 LE R3 R3 R4 + 0x780E0002, // 0064 JMPF R3 #0068 + 0x880C050D, // 0065 GETMBR R3 R2 K13 + 0x90020203, // 0066 SETMBR R0 K1 R3 + 0x7002000A, // 0067 JMP #0073 + 0x600C000C, // 0068 GETGBL R3 G12 + 0x88100103, // 0069 GETMBR R4 R0 K3 + 0x7C0C0200, // 006A CALL R3 1 + 0x5412FFFE, // 006B LDINT R4 65535 + 0x180C0604, // 006C LE R3 R3 R4 + 0x780E0002, // 006D JMPF R3 #0071 + 0x880C050F, // 006E GETMBR R3 R2 K15 + 0x90020203, // 006F SETMBR R0 K1 R3 + 0x70020001, // 0070 JMP #0073 + 0x880C0510, // 0071 GETMBR R3 R2 K16 + 0x90020203, // 0072 SETMBR R0 K1 R3 + 0x7002001B, // 0073 JMP #0090 + 0x880C0101, // 0074 GETMBR R3 R0 K1 + 0x88100511, // 0075 GETMBR R4 R2 K17 + 0x280C0604, // 0076 GE R3 R3 R4 + 0x780E0017, // 0077 JMPF R3 #0090 + 0x880C0101, // 0078 GETMBR R3 R0 K1 + 0x88100512, // 0079 GETMBR R4 R2 K18 + 0x180C0604, // 007A LE R3 R3 R4 + 0x780E0013, // 007B JMPF R3 #0090 + 0x600C000C, // 007C GETGBL R3 G12 + 0x88100103, // 007D GETMBR R4 R0 K3 + 0x7C0C0200, // 007E CALL R3 1 + 0x541200FE, // 007F LDINT R4 255 + 0x180C0604, // 0080 LE R3 R3 R4 + 0x780E0002, // 0081 JMPF R3 #0085 + 0x880C0511, // 0082 GETMBR R3 R2 K17 + 0x90020203, // 0083 SETMBR R0 K1 R3 + 0x7002000A, // 0084 JMP #0090 + 0x600C000C, // 0085 GETGBL R3 G12 + 0x88100103, // 0086 GETMBR R4 R0 K3 + 0x7C0C0200, // 0087 CALL R3 1 + 0x5412FFFE, // 0088 LDINT R4 65535 + 0x180C0604, // 0089 LE R3 R3 R4 + 0x780E0002, // 008A JMPF R3 #008E + 0x880C0513, // 008B GETMBR R3 R2 K19 + 0x90020203, // 008C SETMBR R0 K1 R3 + 0x70020001, // 008D JMP #0090 + 0x880C0514, // 008E GETMBR R3 R2 K20 + 0x90020203, // 008F SETMBR R0 K1 R3 + 0x8C0C0115, // 0090 GETMET R3 R0 K21 + 0x5C140200, // 0091 MOVE R5 R1 + 0x7C0C0400, // 0092 CALL R3 2 + 0x880C0101, // 0093 GETMBR R3 R0 K1 + 0x88100508, // 0094 GETMBR R4 R2 K8 + 0x1C0C0604, // 0095 EQ R3 R3 R4 + 0x740E0003, // 0096 JMPT R3 #009B + 0x880C0101, // 0097 GETMBR R3 R0 K1 + 0x8810050C, // 0098 GETMBR R4 R2 K12 + 0x1C0C0604, // 0099 EQ R3 R3 R4 + 0x780E0006, // 009A JMPF R3 #00A2 + 0x8C0C0316, // 009B GETMET R3 R1 K22 + 0x60140009, // 009C GETGBL R5 G9 + 0x88180103, // 009D GETMBR R6 R0 K3 + 0x7C140200, // 009E CALL R5 1 + 0x58180017, // 009F LDCONST R6 K23 + 0x7C0C0600, // 00A0 CALL R3 3 + 0x700200CC, // 00A1 JMP #016F + 0x880C0101, // 00A2 GETMBR R3 R0 K1 + 0x88100506, // 00A3 GETMBR R4 R2 K6 + 0x1C0C0604, // 00A4 EQ R3 R3 R4 + 0x740E0003, // 00A5 JMPT R3 #00AA + 0x880C0101, // 00A6 GETMBR R3 R0 K1 + 0x88100509, // 00A7 GETMBR R4 R2 K9 + 0x1C0C0604, // 00A8 EQ R3 R3 R4 + 0x780E0006, // 00A9 JMPF R3 #00B1 + 0x8C0C0316, // 00AA GETMET R3 R1 K22 + 0x60140009, // 00AB GETGBL R5 G9 + 0x88180103, // 00AC GETMBR R6 R0 K3 + 0x7C140200, // 00AD CALL R5 1 + 0x58180018, // 00AE LDCONST R6 K24 + 0x7C0C0600, // 00AF CALL R3 3 + 0x700200BD, // 00B0 JMP #016F + 0x880C0101, // 00B1 GETMBR R3 R0 K1 + 0x88100507, // 00B2 GETMBR R4 R2 K7 + 0x1C0C0604, // 00B3 EQ R3 R3 R4 + 0x740E0003, // 00B4 JMPT R3 #00B9 + 0x880C0101, // 00B5 GETMBR R3 R0 K1 + 0x8810050A, // 00B6 GETMBR R4 R2 K10 + 0x1C0C0604, // 00B7 EQ R3 R3 R4 + 0x780E0006, // 00B8 JMPF R3 #00C0 + 0x8C0C0316, // 00B9 GETMET R3 R1 K22 + 0x60140009, // 00BA GETGBL R5 G9 + 0x88180103, // 00BB GETMBR R6 R0 K3 + 0x7C140200, // 00BC CALL R5 1 + 0x541A0003, // 00BD LDINT R6 4 + 0x7C0C0600, // 00BE CALL R3 3 + 0x700200AE, // 00BF JMP #016F + 0x880C0101, // 00C0 GETMBR R3 R0 K1 + 0x88100519, // 00C1 GETMBR R4 R2 K25 + 0x1C0C0604, // 00C2 EQ R3 R3 R4 + 0x740E0003, // 00C3 JMPT R3 #00C8 + 0x880C0101, // 00C4 GETMBR R3 R0 K1 + 0x8810051A, // 00C5 GETMBR R4 R2 K26 + 0x1C0C0604, // 00C6 EQ R3 R3 R4 + 0x780E001F, // 00C7 JMPF R3 #00E8 + 0x880C0103, // 00C8 GETMBR R3 R0 K3 + 0x6010000F, // 00C9 GETGBL R4 G15 + 0x5C140600, // 00CA MOVE R5 R3 + 0x60180015, // 00CB GETGBL R6 G21 + 0x7C100400, // 00CC CALL R4 2 + 0x78120006, // 00CD JMPF R4 #00D5 + 0x8C10071B, // 00CE GETMET R4 R3 K27 + 0x7C100200, // 00CF CALL R4 1 + 0x8C10091C, // 00D0 GETMET R4 R4 K28 + 0x541A0007, // 00D1 LDINT R6 8 + 0x7C100400, // 00D2 CALL R4 2 + 0x5C0C0800, // 00D3 MOVE R3 R4 + 0x70020010, // 00D4 JMP #00E6 + 0x6010000F, // 00D5 GETGBL R4 G15 + 0x5C140600, // 00D6 MOVE R5 R3 + 0xB81A3A00, // 00D7 GETNGBL R6 K29 + 0x7C100400, // 00D8 CALL R4 2 + 0x78120003, // 00D9 JMPF R4 #00DE + 0x8C10071E, // 00DA GETMET R4 R3 K30 0x7C100200, // 00DB CALL R4 1 - 0x8C10091D, // 00DC GETMET R4 R4 K29 - 0x7C100200, // 00DD CALL R4 1 - 0x5C0C0800, // 00DE MOVE R3 R4 - 0x40100203, // 00DF CONNECT R4 R1 R3 - 0x70020086, // 00E0 JMP #0168 - 0x880C0101, // 00E1 GETMBR R3 R0 K1 - 0x88100502, // 00E2 GETMBR R4 R2 K2 - 0x1C0C0604, // 00E3 EQ R3 R3 R4 - 0x740E0003, // 00E4 JMPT R3 #00E9 - 0x880C0101, // 00E5 GETMBR R3 R0 K1 - 0x88100503, // 00E6 GETMBR R4 R2 K3 - 0x1C0C0604, // 00E7 EQ R3 R3 R4 - 0x780E0000, // 00E8 JMPF R3 #00EA - 0x7002007D, // 00E9 JMP #0168 - 0x880C0101, // 00EA GETMBR R3 R0 K1 - 0x8810051E, // 00EB GETMBR R4 R2 K30 - 0x1C0C0604, // 00EC EQ R3 R3 R4 - 0x780E000D, // 00ED JMPF R3 #00FC - 0x600C000C, // 00EE GETGBL R3 G12 - 0x5C100200, // 00EF MOVE R4 R1 - 0x7C0C0200, // 00F0 CALL R3 1 - 0x8C100315, // 00F1 GETMET R4 R1 K21 - 0x5818000A, // 00F2 LDCONST R6 K10 - 0x541E0003, // 00F3 LDINT R7 4 - 0x7C100600, // 00F4 CALL R4 3 - 0x8C10031F, // 00F5 GETMET R4 R1 K31 - 0x5C180600, // 00F6 MOVE R6 R3 - 0x601C000A, // 00F7 GETGBL R7 G10 - 0x88200104, // 00F8 GETMBR R8 R0 K4 - 0x7C1C0200, // 00F9 CALL R7 1 - 0x7C100600, // 00FA CALL R4 3 - 0x7002006B, // 00FB JMP #0168 - 0x880C0101, // 00FC GETMBR R3 R0 K1 - 0x88100520, // 00FD GETMBR R4 R2 K32 - 0x1C0C0604, // 00FE EQ R3 R3 R4 - 0x780E0001, // 00FF JMPF R3 #0102 - 0xB0064322, // 0100 RAISE 1 K33 K34 - 0x70020065, // 0101 JMP #0168 - 0x880C0101, // 0102 GETMBR R3 R0 K1 - 0x88100510, // 0103 GETMBR R4 R2 K16 - 0x1C0C0604, // 0104 EQ R3 R3 R4 - 0x780E0015, // 0105 JMPF R3 #011C - 0x600C000C, // 0106 GETGBL R3 G12 - 0x88100104, // 0107 GETMBR R4 R0 K4 - 0x7C0C0200, // 0108 CALL R3 1 - 0x541200FE, // 0109 LDINT R4 255 - 0x240C0604, // 010A GT R3 R3 R4 - 0x780E0000, // 010B JMPF R3 #010D - 0xB0064323, // 010C RAISE 1 K33 K35 - 0x8C0C0315, // 010D GETMET R3 R1 K21 - 0x6014000C, // 010E GETGBL R5 G12 - 0x88180104, // 010F GETMBR R6 R0 K4 - 0x7C140200, // 0110 CALL R5 1 - 0x58180016, // 0111 LDCONST R6 K22 - 0x7C0C0600, // 0112 CALL R3 3 - 0x600C0015, // 0113 GETGBL R3 G21 - 0x7C0C0000, // 0114 CALL R3 0 - 0x8C0C0724, // 0115 GETMET R3 R3 K36 - 0x60140008, // 0116 GETGBL R5 G8 - 0x88180104, // 0117 GETMBR R6 R0 K4 - 0x7C140200, // 0118 CALL R5 1 - 0x7C0C0400, // 0119 CALL R3 2 - 0x400C0203, // 011A CONNECT R3 R1 R3 - 0x7002004B, // 011B JMP #0168 - 0x880C0101, // 011C GETMBR R3 R0 K1 - 0x88100512, // 011D GETMBR R4 R2 K18 - 0x1C0C0604, // 011E EQ R3 R3 R4 - 0x780E0015, // 011F JMPF R3 #0136 - 0x600C000C, // 0120 GETGBL R3 G12 - 0x88100104, // 0121 GETMBR R4 R0 K4 - 0x7C0C0200, // 0122 CALL R3 1 - 0x5412FFFE, // 0123 LDINT R4 65535 - 0x240C0604, // 0124 GT R3 R3 R4 - 0x780E0000, // 0125 JMPF R3 #0127 - 0xB0064323, // 0126 RAISE 1 K33 K35 - 0x8C0C0315, // 0127 GETMET R3 R1 K21 - 0x6014000C, // 0128 GETGBL R5 G12 - 0x88180104, // 0129 GETMBR R6 R0 K4 - 0x7C140200, // 012A CALL R5 1 - 0x58180017, // 012B LDCONST R6 K23 - 0x7C0C0600, // 012C CALL R3 3 - 0x600C0015, // 012D GETGBL R3 G21 - 0x7C0C0000, // 012E CALL R3 0 - 0x8C0C0725, // 012F GETMET R3 R3 K37 - 0x60140008, // 0130 GETGBL R5 G8 - 0x88180104, // 0131 GETMBR R6 R0 K4 - 0x7C140200, // 0132 CALL R5 1 - 0x7C0C0400, // 0133 CALL R3 2 - 0x400C0203, // 0134 CONNECT R3 R1 R3 - 0x70020031, // 0135 JMP #0168 - 0x880C0101, // 0136 GETMBR R3 R0 K1 - 0x8810050C, // 0137 GETMBR R4 R2 K12 - 0x1C0C0604, // 0138 EQ R3 R3 R4 - 0x780E000F, // 0139 JMPF R3 #014A - 0x600C000C, // 013A GETGBL R3 G12 - 0x88100104, // 013B GETMBR R4 R0 K4 - 0x7C0C0200, // 013C CALL R3 1 - 0x541200FE, // 013D LDINT R4 255 - 0x240C0604, // 013E GT R3 R3 R4 - 0x780E0000, // 013F JMPF R3 #0141 - 0xB0064326, // 0140 RAISE 1 K33 K38 - 0x8C0C0315, // 0141 GETMET R3 R1 K21 - 0x6014000C, // 0142 GETGBL R5 G12 - 0x88180104, // 0143 GETMBR R6 R0 K4 - 0x7C140200, // 0144 CALL R5 1 - 0x58180016, // 0145 LDCONST R6 K22 - 0x7C0C0600, // 0146 CALL R3 3 - 0x880C0104, // 0147 GETMBR R3 R0 K4 - 0x400C0203, // 0148 CONNECT R3 R1 R3 - 0x7002001D, // 0149 JMP #0168 - 0x880C0101, // 014A GETMBR R3 R0 K1 - 0x8810050E, // 014B GETMBR R4 R2 K14 - 0x1C0C0604, // 014C EQ R3 R3 R4 - 0x780E000F, // 014D JMPF R3 #015E - 0x600C000C, // 014E GETGBL R3 G12 - 0x88100104, // 014F GETMBR R4 R0 K4 - 0x7C0C0200, // 0150 CALL R3 1 - 0x5412FFFE, // 0151 LDINT R4 65535 - 0x240C0604, // 0152 GT R3 R3 R4 - 0x780E0000, // 0153 JMPF R3 #0155 - 0xB0064326, // 0154 RAISE 1 K33 K38 - 0x8C0C0315, // 0155 GETMET R3 R1 K21 - 0x6014000C, // 0156 GETGBL R5 G12 - 0x88180104, // 0157 GETMBR R6 R0 K4 - 0x7C140200, // 0158 CALL R5 1 - 0x58180017, // 0159 LDCONST R6 K23 - 0x7C0C0600, // 015A CALL R3 3 - 0x880C0104, // 015B GETMBR R3 R0 K4 - 0x400C0203, // 015C CONNECT R3 R1 R3 - 0x70020009, // 015D JMP #0168 - 0x880C0101, // 015E GETMBR R3 R0 K1 - 0x88100527, // 015F GETMBR R4 R2 K39 - 0x1C0C0604, // 0160 EQ R3 R3 R4 - 0x780E0000, // 0161 JMPF R3 #0163 - 0x70020004, // 0162 JMP #0168 - 0x600C0008, // 0163 GETGBL R3 G8 - 0x88100101, // 0164 GETMBR R4 R0 K1 - 0x7C0C0200, // 0165 CALL R3 1 - 0x000E5003, // 0166 ADD R3 K40 R3 - 0xB0064203, // 0167 RAISE 1 K33 R3 - 0x80040200, // 0168 RET 1 R1 + 0x5C0C0800, // 00DC MOVE R3 R4 + 0x70020007, // 00DD JMP #00E6 + 0xB8123A00, // 00DE GETNGBL R4 K29 + 0x60140009, // 00DF GETGBL R5 G9 + 0x5C180600, // 00E0 MOVE R6 R3 + 0x7C140200, // 00E1 CALL R5 1 + 0x7C100200, // 00E2 CALL R4 1 + 0x8C10091E, // 00E3 GETMET R4 R4 K30 + 0x7C100200, // 00E4 CALL R4 1 + 0x5C0C0800, // 00E5 MOVE R3 R4 + 0x40100203, // 00E6 CONNECT R4 R1 R3 + 0x70020086, // 00E7 JMP #016F + 0x880C0101, // 00E8 GETMBR R3 R0 K1 + 0x88100504, // 00E9 GETMBR R4 R2 K4 + 0x1C0C0604, // 00EA EQ R3 R3 R4 + 0x740E0003, // 00EB JMPT R3 #00F0 + 0x880C0101, // 00EC GETMBR R3 R0 K1 + 0x88100505, // 00ED GETMBR R4 R2 K5 + 0x1C0C0604, // 00EE EQ R3 R3 R4 + 0x780E0000, // 00EF JMPF R3 #00F1 + 0x7002007D, // 00F0 JMP #016F + 0x880C0101, // 00F1 GETMBR R3 R0 K1 + 0x8810051F, // 00F2 GETMBR R4 R2 K31 + 0x1C0C0604, // 00F3 EQ R3 R3 R4 + 0x780E000D, // 00F4 JMPF R3 #0103 + 0x600C000C, // 00F5 GETGBL R3 G12 + 0x5C100200, // 00F6 MOVE R4 R1 + 0x7C0C0200, // 00F7 CALL R3 1 + 0x8C100316, // 00F8 GETMET R4 R1 K22 + 0x5818000B, // 00F9 LDCONST R6 K11 + 0x541E0003, // 00FA LDINT R7 4 + 0x7C100600, // 00FB CALL R4 3 + 0x8C100320, // 00FC GETMET R4 R1 K32 + 0x5C180600, // 00FD MOVE R6 R3 + 0x601C000A, // 00FE GETGBL R7 G10 + 0x88200103, // 00FF GETMBR R8 R0 K3 + 0x7C1C0200, // 0100 CALL R7 1 + 0x7C100600, // 0101 CALL R4 3 + 0x7002006B, // 0102 JMP #016F + 0x880C0101, // 0103 GETMBR R3 R0 K1 + 0x88100521, // 0104 GETMBR R4 R2 K33 + 0x1C0C0604, // 0105 EQ R3 R3 R4 + 0x780E0001, // 0106 JMPF R3 #0109 + 0xB0064523, // 0107 RAISE 1 K34 K35 + 0x70020065, // 0108 JMP #016F + 0x880C0101, // 0109 GETMBR R3 R0 K1 + 0x88100511, // 010A GETMBR R4 R2 K17 + 0x1C0C0604, // 010B EQ R3 R3 R4 + 0x780E0015, // 010C JMPF R3 #0123 + 0x600C000C, // 010D GETGBL R3 G12 + 0x88100103, // 010E GETMBR R4 R0 K3 + 0x7C0C0200, // 010F CALL R3 1 + 0x541200FE, // 0110 LDINT R4 255 + 0x240C0604, // 0111 GT R3 R3 R4 + 0x780E0000, // 0112 JMPF R3 #0114 + 0xB0064524, // 0113 RAISE 1 K34 K36 + 0x8C0C0316, // 0114 GETMET R3 R1 K22 + 0x6014000C, // 0115 GETGBL R5 G12 + 0x88180103, // 0116 GETMBR R6 R0 K3 + 0x7C140200, // 0117 CALL R5 1 + 0x58180017, // 0118 LDCONST R6 K23 + 0x7C0C0600, // 0119 CALL R3 3 + 0x600C0015, // 011A GETGBL R3 G21 + 0x7C0C0000, // 011B CALL R3 0 + 0x8C0C0725, // 011C GETMET R3 R3 K37 + 0x60140008, // 011D GETGBL R5 G8 + 0x88180103, // 011E GETMBR R6 R0 K3 + 0x7C140200, // 011F CALL R5 1 + 0x7C0C0400, // 0120 CALL R3 2 + 0x400C0203, // 0121 CONNECT R3 R1 R3 + 0x7002004B, // 0122 JMP #016F + 0x880C0101, // 0123 GETMBR R3 R0 K1 + 0x88100513, // 0124 GETMBR R4 R2 K19 + 0x1C0C0604, // 0125 EQ R3 R3 R4 + 0x780E0015, // 0126 JMPF R3 #013D + 0x600C000C, // 0127 GETGBL R3 G12 + 0x88100103, // 0128 GETMBR R4 R0 K3 + 0x7C0C0200, // 0129 CALL R3 1 + 0x5412FFFE, // 012A LDINT R4 65535 + 0x240C0604, // 012B GT R3 R3 R4 + 0x780E0000, // 012C JMPF R3 #012E + 0xB0064524, // 012D RAISE 1 K34 K36 + 0x8C0C0316, // 012E GETMET R3 R1 K22 + 0x6014000C, // 012F GETGBL R5 G12 + 0x88180103, // 0130 GETMBR R6 R0 K3 + 0x7C140200, // 0131 CALL R5 1 + 0x58180018, // 0132 LDCONST R6 K24 + 0x7C0C0600, // 0133 CALL R3 3 + 0x600C0015, // 0134 GETGBL R3 G21 + 0x7C0C0000, // 0135 CALL R3 0 + 0x8C0C0726, // 0136 GETMET R3 R3 K38 + 0x60140008, // 0137 GETGBL R5 G8 + 0x88180103, // 0138 GETMBR R6 R0 K3 + 0x7C140200, // 0139 CALL R5 1 + 0x7C0C0400, // 013A CALL R3 2 + 0x400C0203, // 013B CONNECT R3 R1 R3 + 0x70020031, // 013C JMP #016F + 0x880C0101, // 013D GETMBR R3 R0 K1 + 0x8810050D, // 013E GETMBR R4 R2 K13 + 0x1C0C0604, // 013F EQ R3 R3 R4 + 0x780E000F, // 0140 JMPF R3 #0151 + 0x600C000C, // 0141 GETGBL R3 G12 + 0x88100103, // 0142 GETMBR R4 R0 K3 + 0x7C0C0200, // 0143 CALL R3 1 + 0x541200FE, // 0144 LDINT R4 255 + 0x240C0604, // 0145 GT R3 R3 R4 + 0x780E0000, // 0146 JMPF R3 #0148 + 0xB0064527, // 0147 RAISE 1 K34 K39 + 0x8C0C0316, // 0148 GETMET R3 R1 K22 + 0x6014000C, // 0149 GETGBL R5 G12 + 0x88180103, // 014A GETMBR R6 R0 K3 + 0x7C140200, // 014B CALL R5 1 + 0x58180017, // 014C LDCONST R6 K23 + 0x7C0C0600, // 014D CALL R3 3 + 0x880C0103, // 014E GETMBR R3 R0 K3 + 0x400C0203, // 014F CONNECT R3 R1 R3 + 0x7002001D, // 0150 JMP #016F + 0x880C0101, // 0151 GETMBR R3 R0 K1 + 0x8810050F, // 0152 GETMBR R4 R2 K15 + 0x1C0C0604, // 0153 EQ R3 R3 R4 + 0x780E000F, // 0154 JMPF R3 #0165 + 0x600C000C, // 0155 GETGBL R3 G12 + 0x88100103, // 0156 GETMBR R4 R0 K3 + 0x7C0C0200, // 0157 CALL R3 1 + 0x5412FFFE, // 0158 LDINT R4 65535 + 0x240C0604, // 0159 GT R3 R3 R4 + 0x780E0000, // 015A JMPF R3 #015C + 0xB0064527, // 015B RAISE 1 K34 K39 + 0x8C0C0316, // 015C GETMET R3 R1 K22 + 0x6014000C, // 015D GETGBL R5 G12 + 0x88180103, // 015E GETMBR R6 R0 K3 + 0x7C140200, // 015F CALL R5 1 + 0x58180018, // 0160 LDCONST R6 K24 + 0x7C0C0600, // 0161 CALL R3 3 + 0x880C0103, // 0162 GETMBR R3 R0 K3 + 0x400C0203, // 0163 CONNECT R3 R1 R3 + 0x70020009, // 0164 JMP #016F + 0x880C0101, // 0165 GETMBR R3 R0 K1 + 0x88100528, // 0166 GETMBR R4 R2 K40 + 0x1C0C0604, // 0167 EQ R3 R3 R4 + 0x780E0000, // 0168 JMPF R3 #016A + 0x70020004, // 0169 JMP #016F + 0x600C0008, // 016A GETGBL R3 G8 + 0x88100101, // 016B GETMBR R4 R0 K1 + 0x7C0C0200, // 016C CALL R3 1 + 0x000E5203, // 016D ADD R3 K41 R3 + 0xB0064403, // 016E RAISE 1 K34 R3 + 0x80040200, // 016F RET 1 R1 }) ) ); @@ -3214,21 +3231,25 @@ be_local_closure(Matter_TLV_parse, /* name */ be_local_class(Matter_TLV, 0, NULL, - be_nested_map(34, + be_nested_map(35, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(Matter_TLV_array, -1), be_const_class(be_class_Matter_TLV_array) }, - { be_const_key_weak(BTRUE, -1), be_const_int(9) }, - { be_const_key_weak(create_TLV, 11), be_const_static_closure(Matter_TLV_create_TLV_closure) }, - { be_const_key_weak(UTF1, -1), be_const_int(12) }, - { be_const_key_weak(STRUCT, 23), be_const_int(21) }, - { be_const_key_weak(Matter_TLV_item, 24), be_const_class(be_class_Matter_TLV_item) }, - { be_const_key_weak(UTF4, 20), be_const_int(14) }, - { be_const_key_weak(FLOAT, -1), be_const_int(10) }, - { be_const_key_weak(I2, -1), be_const_int(1) }, - { be_const_key_weak(BOOL, 16), be_const_int(8) }, - { be_const_key_weak(B1, -1), be_const_int(16) }, - { be_const_key_weak(Matter_TLV_list, 28), be_const_class(be_class_Matter_TLV_list) }, - { be_const_key_weak(I8, -1), be_const_int(3) }, + { be_const_key_weak(BFALSE, -1), be_const_int(8) }, + { be_const_key_weak(create_TLV, -1), be_const_static_closure(Matter_TLV_create_TLV_closure) }, + { be_const_key_weak(Matter_TLV_list, -1), be_const_class(be_class_Matter_TLV_list) }, + { be_const_key_weak(I4, 33), be_const_int(2) }, + { be_const_key_weak(U2, -1), be_const_int(5) }, + { be_const_key_weak(UTF4, -1), be_const_int(14) }, + { be_const_key_weak(DOUBLE, 3), be_const_int(11) }, + { be_const_key_weak(U4, 28), be_const_int(6) }, + { be_const_key_weak(UTF2, 14), be_const_int(13) }, + { be_const_key_weak(Matter_TLV_struct, 2), be_const_class(be_class_Matter_TLV_struct) }, + { be_const_key_weak(BOOL, -1), be_const_int(8) }, + { be_const_key_weak(RAW, -1), be_const_int(255) }, + { be_const_key_weak(parse, -1), be_const_static_closure(Matter_TLV_parse_closure) }, + { be_const_key_weak(U8, -1), be_const_int(7) }, + { be_const_key_weak(LIST, -1), be_const_int(23) }, + { be_const_key_weak(I2, 27), be_const_int(1) }, + { be_const_key_weak(B2, -1), be_const_int(17) }, { be_const_key_weak(_len, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { be_const_list( * be_nested_list(25, ( (struct bvalue*) &(const bvalue[]) { @@ -3258,7 +3279,12 @@ be_local_class(Matter_TLV, be_const_int(4294967197), be_const_int(0), })) ) } )) }, - { be_const_key_weak(_type, 19), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { + { be_const_key_weak(EOC, -1), be_const_int(24) }, + { be_const_key_weak(Matter_TLV_array, -1), be_const_class(be_class_Matter_TLV_array) }, + { be_const_key_weak(U1, 32), be_const_int(4) }, + { be_const_key_weak(STRUCT, -1), be_const_int(21) }, + { be_const_key_weak(Matter_TLV_item, 19), be_const_class(be_class_Matter_TLV_item) }, + { be_const_key_weak(_type, 21), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { be_const_list( * be_nested_list(25, ( (struct bvalue*) &(const bvalue[]) { be_nested_str_weak(i1), @@ -3287,25 +3313,17 @@ be_local_class(Matter_TLV, be_nested_str_weak(list), be_nested_str_weak(end), })) ) } )) }, - { be_const_key_weak(B2, -1), be_const_int(17) }, - { be_const_key_weak(LIST, -1), be_const_int(23) }, - { be_const_key_weak(U1, -1), be_const_int(4) }, - { be_const_key_weak(NULL, 12), be_const_int(20) }, - { be_const_key_weak(EOC, 27), be_const_int(24) }, - { be_const_key_weak(U8, -1), be_const_int(7) }, - { be_const_key_weak(U4, -1), be_const_int(6) }, - { be_const_key_weak(UTF8, 21), be_const_int(15) }, - { be_const_key_weak(UTF2, -1), be_const_int(13) }, + { be_const_key_weak(I8, 26), be_const_int(3) }, + { be_const_key_weak(B8, 11), be_const_int(19) }, + { be_const_key_weak(FLOAT, -1), be_const_int(10) }, + { be_const_key_weak(ARRAY, -1), be_const_int(22) }, { be_const_key_weak(B4, -1), be_const_int(18) }, - { be_const_key_weak(B8, -1), be_const_int(19) }, - { be_const_key_weak(DOUBLE, -1), be_const_int(11) }, - { be_const_key_weak(ARRAY, 31), be_const_int(22) }, - { be_const_key_weak(parse, -1), be_const_static_closure(Matter_TLV_parse_closure) }, + { be_const_key_weak(B1, -1), be_const_int(16) }, + { be_const_key_weak(UTF1, -1), be_const_int(12) }, { be_const_key_weak(I1, -1), be_const_int(0) }, - { be_const_key_weak(U2, -1), be_const_int(5) }, - { be_const_key_weak(BFALSE, -1), be_const_int(8) }, - { be_const_key_weak(I4, 4), be_const_int(2) }, - { be_const_key_weak(Matter_TLV_struct, 0), be_const_class(be_class_Matter_TLV_struct) }, + { be_const_key_weak(BTRUE, -1), be_const_int(9) }, + { be_const_key_weak(NULL, -1), be_const_int(20) }, + { be_const_key_weak(UTF8, -1), be_const_int(15) }, })), be_str_weak(Matter_TLV) ); From e2e142f2898dfa217da5d5aaf318f0fbe07e18e7 Mon Sep 17 00:00:00 2001 From: s-hadinger <49731213+s-hadinger@users.noreply.github.com> Date: Sun, 16 Apr 2023 23:16:28 +0200 Subject: [PATCH 6/7] Zigbee fix compilation for future core (#18432) * Zigbee fix compilation for future core * More fixes for ESP32 --- .../xdrv_23_zigbee_5_2_converters.ino | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_5_2_converters.ino b/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_5_2_converters.ino index 9a085787cedb..9d3cd4b71c75 100644 --- a/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_5_2_converters.ino +++ b/tasmota/tasmota_xdrv_driver/xdrv_23_zigbee_5_2_converters.ino @@ -1302,9 +1302,15 @@ void ZCLFrame::syntheticAqaraCubeOrButton(class Z_attribute_list &attr_list, cla if (modelId.startsWith(F("lumi.sensor_cube"))) { // only for Aqara cube int32_t val = attr.getInt(); +#ifdef ESP8266 const __FlashStringHelper *aqara_cube = F("AqaraCube"); const __FlashStringHelper *aqara_cube_side = F("AqaraCubeSide"); const __FlashStringHelper *aqara_cube_from_side = F("AqaraCubeFromSide"); +#else + const char *aqara_cube = "AqaraCube"; + const char *aqara_cube_side = "AqaraCubeSide"; + const char *aqara_cube_from_side = "AqaraCubeFromSide"; +#endif switch (val) { case 0: @@ -1355,8 +1361,13 @@ void ZCLFrame::syntheticAqaraCubeOrButton(class Z_attribute_list &attr_list, cla // presentValue = x + 512 = double tap while side x is on top } else if (modelId.startsWith(F("lumi.remote")) || modelId.startsWith(F("lumi.sensor_swit"))) { // only for Aqara buttons WXKG11LM & WXKG12LM, 'swit' because of #9923 int32_t val = attr.getInt(); +#ifdef ESP8266 const __FlashStringHelper *aqara_click = F("click"); // deprecated const __FlashStringHelper *aqara_action = F("action"); // deprecated +#else + const char *aqara_click = "click"; // deprecated + const char *aqara_action = "action"; // deprecated +#endif Z_attribute & attr_click = attr_list.addAttribute(PSTR("Click"), true); switch (val) { @@ -1408,14 +1419,14 @@ void ZCLFrame::syntheticAqaraVibration(class Z_attribute_list &attr_list, class case 0x0055: { int32_t ivalue = attr.getInt(); - const __FlashStringHelper * svalue; + const char * svalue; switch (ivalue) { - case 1: svalue = F("vibrate"); break; - case 2: svalue = F("tilt"); break; - case 3: svalue = F("drop"); break; - default: svalue = F("unknown"); break; + case 1: svalue = PSTR("vibrate"); break; + case 2: svalue = PSTR("tilt"); break; + case 3: svalue = PSTR("drop"); break; + default: svalue = PSTR("unknown"); break; } - attr.setStr((const char*)svalue); + attr.setStr(svalue); } break; case 0x0503: From 8139c0756da684403c40b0ee54b4dbd4416a0be3 Mon Sep 17 00:00:00 2001 From: Theo Arends <11044339+arendst@users.noreply.github.com> Date: Mon, 17 Apr 2023 09:56:56 +0200 Subject: [PATCH 7/7] Update changelogs --- CHANGELOG.md | 6 +++--- RELEASENOTES.md | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 66b5cb900ebf..a041705319d7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ All notable changes to this project will be documented in this file. ## [Unreleased] - Development -## [12.4.0.5] +## [12.4.0.5] 20230417 ### Added - Matter support for Light and Relays on ESP32 by Stephan Hadinger (#18320) - ESP32 WIP support for 16 shutters using `#define USE_SHUTTER_ESP32` in addition to `USE_SHUTTER` by Stefan Bode (#18295) @@ -11,8 +11,8 @@ All notable changes to this project will be documented in this file. - Support for GDK101 gamma radiation sensor by Petr Novacek (#18390) - Matter support in now stabilized for Apple and Google (not tested with Alexa) - Berry `instrospect.name()` to get names of functions, modules and classes (#18422) -- Berry add `searchall()` and `matchall()` to `re` module and pre-compiled patterns -- Matter automatically exposes all detected Temperature sensors +- Berry add `searchall()` and `matchall()` to `re` module and pre-compiled patterns (#18429) +- Matter automatically exposes all detected Temperature sensors (#18430) ### Breaking Changed diff --git a/RELEASENOTES.md b/RELEASENOTES.md index 1717029743b9..efe231a865bb 100644 --- a/RELEASENOTES.md +++ b/RELEASENOTES.md @@ -127,7 +127,9 @@ The latter links can be used for OTA upgrades too like ``OtaUrl https://ota.tasm - Berry support for Tensorflow Lite (TFL) by Christiaan Baars [#18119](https://github.com/arendst/Tasmota/issues/18119) - Berry `webclient` features - Berry `instrospect.name()` to get names of functions, modules and classes [#18422](https://github.com/arendst/Tasmota/issues/18422) +- Berry add `searchall()` and `matchall()` to `re` module and pre-compiled patterns [#18429](https://github.com/arendst/Tasmota/issues/18429) - Matter support for Light and Relays by Stephan Hadinger [#18320](https://github.com/arendst/Tasmota/issues/18320) +- Matter automatically exposes all detected Temperature sensors [#18430](https://github.com/arendst/Tasmota/issues/18430) ### Breaking Changed - Shelly Pro 4PM using standard MCP23xxx driver and needs one time Auto-Configuration