diff --git a/CHANGELOG.md b/CHANGELOG.md index 1365dcecf..acc56390f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ All notable changes to this project will be documented in this file. - Matter sensors Humidity, Pressure, Illuminance; optimize memory (#18441) - Command ``SetOption152 0/1`` to select two (0 = default) pin bistable or one (1) pin latching relay control (#18386) - Matter allow `Matter#Initialized` rule once the device is configured (#18451) +- Matter add UI to change endpoints configuration ### Breaking Changed diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Base38.be b/lib/libesp32/berry_matter/src/embedded/Matter_Base38.be index 0992d682d..7a5c84d40 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Base38.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Base38.be @@ -68,4 +68,9 @@ matter.Base38 = Matter_Base38 #- +assert(matter.Base38.encode(bytes("DEADBEEF")) == "C.R.5B6") +assert(matter.Base38.encode(bytes("")) == "") +assert(matter.Base38.encode(bytes("00")) == "00") +assert(matter.Base38.encode(bytes("FFFFFFFF")) == "PLS18R6") + -# diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Device.be b/lib/libesp32/berry_matter/src/embedded/Matter_Device.be index 23b4e2fde..3dc514d64 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Device.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Device.be @@ -21,16 +21,16 @@ class Matter_Device static var UDP_PORT = 5540 # this is the default port for group multicast, we also use it for unicast - static var PASSCODE_DEFAULT = 20202021 static var PBKDF_ITERATIONS = 1000 # I don't see any reason to choose a different number static var VENDOR_ID = 0xFFF1 static var PRODUCT_ID = 0x8000 static var FILENAME = "_matter_device.json" static var PASE_TIMEOUT = 10*60 # default open commissioning window (10 minutes) var started # is the Matter Device started (configured, mDNS and UDPServer started) - var plugins # list of plugins + var plugins # list of plugins instances var plugins_persist # true if plugins configuration needs to be saved var plugins_classes # map of registered classes by type name + var plugins_config # map of JSON configuration for plugins var udp_server # `matter.UDPServer()` object var message_handler # `matter.MessageHandler()` object var sessions # `matter.Session_Store()` objet @@ -600,10 +600,11 @@ class Matter_Device # def save_param() import string + import json var j = string.format('{"distinguish":%i,"passcode":%i,"ipv4only":%s', self.root_discriminator, self.root_passcode, self.ipv4only ? 'true':'false') if self.plugins_persist j += ',"config":' - j += self.plugins_to_json() + j += json.dump(self.plugins_config) end j += '}' try @@ -635,9 +636,9 @@ class Matter_Device self.root_discriminator = j.find("distinguish", self.root_discriminator) self.root_passcode = j.find("passcode", self.root_passcode) self.ipv4only = bool(j.find("ipv4only", false)) - var config = j.find("config") - if config - self._load_plugins_config(config) + self.plugins_config = j.find("config") + if self.plugins_config + self._load_plugins_config(self.plugins_config) self.plugins_persist = true end except .. as e, m @@ -652,7 +653,7 @@ class Matter_Device dirty = true end if self.root_passcode == nil - self.root_passcode = self.PASSCODE_DEFAULT + self.root_passcode = self.generate_random_passcode() dirty = true end if dirty self.save_param() end @@ -975,9 +976,9 @@ class Matter_Device if size(self.plugins) > 0 return end # already configured - var config = self.autoconf_device_map() - tasmota.log("MTR: autoconfig = " + str(config), 3) - self._load_plugins_config(config) + self.plugins_config = self.autoconf_device_map() + tasmota.log("MTR: autoconfig = " + str(self.plugins_config), 3) + self._load_plugins_config(self.plugins_config) if !self.plugins_persist && self.sessions.count_active_fabrics() > 0 self.plugins_persist = true @@ -1096,24 +1097,6 @@ class Matter_Device 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 - ############################################################# - # plugins_to_json - # - # Export plugins configuration as a JSON string - def plugins_to_json() - import string - var s = '{' - var i = 0 - while i < size(self.plugins) - var pi = self.plugins[i] - if i > 0 s += ',' end - s += string.format('"%i":%s', pi.get_endpoint(), pi.to_json()) - i += 1 - end - s += '}' - return s - end - ############################################################# # register_plugin_class # @@ -1122,6 +1105,24 @@ class Matter_Device self.plugins_classes[name] = cl end + ############################################################# + # get_plugin_class_displayname + # + # get a class name light "light0" and return displayname + def get_plugin_class_displayname(name) + var cl = self.plugins_classes.find(name) + return cl ? cl.NAME : "" + end + + ############################################################# + # get_plugin_class_arg + # + # get a class name light "light0" and return the name of the json argumen (or empty) + def get_plugin_class_arg(name) + var cl = self.plugins_classes.find(name) + return cl ? cl.ARG : "" + end + ############################################################# # register_native_classes # @@ -1151,6 +1152,23 @@ class Matter_Device end end + ##################################################################### + # Generate random passcode + ##################################################################### + static var PASSCODE_INVALID = [ 0, 11111111, 22222222, 33333333, 44444444, 55555555, 66666666, 77777777, 88888888, 99999999, 12345678, 87654321] + def generate_random_passcode() + import crypto + var passcode + while true + passcode = crypto.random(4).get(0, 4) & 0x7FFFFFF + if passcode > 0x5F5E0FE continue end # larger than allowed + for inv: self.PASSCODE_INVALID + if passcode == inv passcode = nil end + end + if passcode != nil return passcode end + end + end + ##################################################################### # Commands `Mtr___` ##################################################################### diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_MessageHandler.be b/lib/libesp32/berry_matter/src/embedded/Matter_MessageHandler.be index 6c448b9cd..651731c99 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_MessageHandler.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_MessageHandler.be @@ -203,8 +203,10 @@ class Matter_MessageHandler return ret except .. as e, m tasmota.log("MTR: MessageHandler::msg_received exception: "+str(e)+";"+str(m)) - import debug - debug.traceback() + if self._debug_present + import debug + debug.traceback() + end return false end end diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin.be index 659e39fc4..e36f99d88 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin.be @@ -23,7 +23,10 @@ #@ solidify:Matter_Plugin,weak class Matter_Plugin - static var NAME = "generic" # name of the plug-in in json + static var TYPE = "generic" # name of the plug-in in json + static var NAME = "" # display name of the plug-in + static var ARG = "" # additional argument name (or empty if none) + static var ARG_TYPE = / x -> str(x) # function to convert argument to the right type static var CLUSTERS = { 0x001D: [0,1,2,3,0xFFFC,0xFFFD], # Descriptor Cluster 9.5 p.453 } @@ -220,30 +223,6 @@ class Matter_Plugin self.update_shadow() # force reading value and sending subscriptions end - ############################################################# - # to_json - # - # generate the json string for parameter of the plug-in - # this function calls a method to be overriden with custom parameters - def to_json() - import string - var s = string.format('{"type":"%s"', self.NAME) - s = self.to_json_parameters(s) - s += '}' - return s - end - - ############################################################# - # to_json_parameters - # - # To be overriden. - # returns a json sub-string to add after endpoint and type name - def to_json_parameters(s) - # s += ',"my_param":"my_value"' - return s - end - - end matter.Plugin = Matter_Plugin diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Light0.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Light0.be index 0c0b02465..a5803101d 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Light0.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Light0.be @@ -25,7 +25,8 @@ class Matter_Plugin end #@ solidify:Matter_Plugin_Light0,weak class Matter_Plugin_Light0 : Matter_Plugin - static var NAME = "light0" # name of the plug-in in json + static var TYPE = "light0" # name of the plug-in in json + static var NAME = "Light 0 On" # display name of the plug-in static var CLUSTERS = { # 0x001D: inherited # Descriptor Cluster 9.5 p.453 0x0003: [0,1,0xFFFC,0xFFFD], # Identify 1.2 p.16 diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Light1.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Light1.be index 518b48137..656fbc666 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Light1.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Light1.be @@ -25,7 +25,8 @@ class Matter_Plugin_Light0 end #@ solidify:Matter_Plugin_Light1,weak class Matter_Plugin_Light1 : Matter_Plugin_Light0 - static var NAME = "light1" # name of the plug-in in json + static var TYPE = "light1" # name of the plug-in in json + static var NAME = "Light 1 Dimmer" # display name of the plug-in static var CLUSTERS = { # 0x001D: inherited # Descriptor Cluster 9.5 p.453 # 0x0003: inherited # Identify 1.2 p.16 diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Light2.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Light2.be index 928d0a8f5..8c0cde617 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Light2.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Light2.be @@ -25,7 +25,8 @@ class Matter_Plugin_Light1 end #@ solidify:Matter_Plugin_Light2,weak class Matter_Plugin_Light2 : Matter_Plugin_Light1 - static var NAME = "light2" # name of the plug-in in json + static var TYPE = "light2" # name of the plug-in in json + static var NAME = "Light 2 CT" # display name of the plug-in static var CLUSTERS = { # 0x001D: inherited # Descriptor Cluster 9.5 p.453 # 0x0003: inherited # Identify 1.2 p.16 diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Light3.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Light3.be index dec133661..8e1f63d04 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Light3.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Light3.be @@ -25,7 +25,8 @@ class Matter_Plugin_Light1 end #@ solidify:Matter_Plugin_Light3,weak class Matter_Plugin_Light3 : Matter_Plugin_Light1 - static var NAME = "light3" # name of the plug-in in json + static var TYPE = "light3" # name of the plug-in in json + static var NAME = "Light 3 RGB" # display name of the plug-in static var CLUSTERS = { # 0x001D: inherited # Descriptor Cluster 9.5 p.453 # 0x0003: inherited # Identify 1.2 p.16 diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_OnOff.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_OnOff.be index fd6245ee2..f45a671f8 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_OnOff.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_OnOff.be @@ -25,7 +25,10 @@ class Matter_Plugin end #@ solidify:Matter_Plugin_OnOff,weak class Matter_Plugin_OnOff : Matter_Plugin - static var NAME = "relay" # name of the plug-in in json + static var TYPE = "relay" # name of the plug-in in json + static var NAME = "Relay" # display name of the plug-in + static var ARG = "relay" # additional argument name (or empty if none) + static var ARG_TYPE = / x -> int(x) # function to convert argument to the right type static var CLUSTERS = { # 0x001D: inherited # Descriptor Cluster 9.5 p.453 0x0003: [0,1,0xFFFC,0xFFFD], # Identify 1.2 p.16 @@ -44,7 +47,7 @@ class Matter_Plugin_OnOff : Matter_Plugin def init(device, endpoint, arguments) super(self).init(device, endpoint, arguments) self.get_onoff() # read actual value - self.tasmota_relay_index = arguments.find('relay') + self.tasmota_relay_index = arguments.find(self.ARG #-'relay'-#) if self.tasmota_relay_index == nil self.tasmota_relay_index = 0 end end @@ -215,17 +218,6 @@ class Matter_Plugin_OnOff : Matter_Plugin self.attribute_updated(nil, 0x0006, 0x0000) # send to all endpoints end - ############################################################# - # to_json_parameters - # - # To be overriden. - # returns a json sub-string to add after endpoint and type name - def to_json_parameters(s) - import string - s += string.format(',"relay":%i', self.tasmota_relay_index) - return s - end - ############################################################# # every_second def every_second() diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Root.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Root.be index dce3c003f..0427ed022 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Root.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Root.be @@ -25,7 +25,8 @@ class Matter_Plugin end #@ solidify:Matter_Plugin_Root,weak class Matter_Plugin_Root : Matter_Plugin - static var NAME = "root" # name of the plug-in in json + static var TYPE = "root" # name of the plug-in in json + static var NAME = "Root node" # display name of the plug-in static var CLUSTERS = { # 0x001D: inherited # Descriptor Cluster 9.5 p.453 0x001F: [0,2,3,4], # Access Control Cluster, p.461 diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor.be index 42511fd7e..45b2ee983 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor.be @@ -25,6 +25,7 @@ class Matter_Plugin_Device end #@ solidify:Matter_Plugin_Sensor,weak class Matter_Plugin_Sensor : Matter_Plugin_Device + static var ARG = "filter" # additional argument name (or empty if none) var tasmota_sensor_filter # Rule-type filter to the value, like "ESP32#Temperature" var tasmota_sensor_matcher # Actual matcher object var shadow_value # Last known value @@ -33,7 +34,7 @@ class Matter_Plugin_Sensor : Matter_Plugin_Device # Constructor def init(device, endpoint, arguments) super(self).init(device, endpoint, arguments) - self.tasmota_sensor_filter = arguments.find('filter') + self.tasmota_sensor_filter = arguments.find(self.ARG#-'filter'-#) if self.tasmota_sensor_filter self.tasmota_sensor_matcher = tasmota.Rule_Matcher.parse(self.tasmota_sensor_filter) end @@ -74,16 +75,5 @@ class Matter_Plugin_Sensor : Matter_Plugin_Device return val end - ############################################################# - # to_json_parameters - # - # To be overriden. - # returns a json sub-string to add after endpoint and type name - def to_json_parameters(s) - import string - s += string.format(',"filter":"%s"', self.tasmota_sensor_filter) - return s - end - end matter.Plugin_Sensor = Matter_Plugin_Sensor diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor_Humidity.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor_Humidity.be index 1f85523aa..b31e12965 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor_Humidity.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor_Humidity.be @@ -25,7 +25,8 @@ class Matter_Plugin_Sensor end #@ solidify:Matter_Plugin_Sensor_Humidity,weak class Matter_Plugin_Sensor_Humidity : Matter_Plugin_Sensor - static var NAME = "humidity" # name of the plug-in in json + static var TYPE = "humidity" # name of the plug-in in json + static var NAME = "Humidity" # display name of the plug-in static var CLUSTERS = { 0x0405: [0,1,2,0xFFFC,0xFFFD], # Humidity Measurement p.102 - no writable } diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor_Illuminance.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor_Illuminance.be index bdf631452..f7619bdfb 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor_Illuminance.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor_Illuminance.be @@ -25,7 +25,8 @@ class Matter_Plugin_Sensor end #@ solidify:Matter_Plugin_Sensor_Illuminance,weak class Matter_Plugin_Sensor_Illuminance : Matter_Plugin_Sensor - static var NAME = "illuminance" # name of the plug-in in json + static var TYPE = "illuminance" # name of the plug-in in json + static var NAME = "Illuminance" # display name of the plug-in static var CLUSTERS = { 0x0400: [0,1,2,0xFFFC,0xFFFD], # Illuminance Measurement p.95 - no writable } diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor_Pressure.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor_Pressure.be index c39de113e..47a2110cb 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor_Pressure.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor_Pressure.be @@ -25,7 +25,8 @@ class Matter_Plugin_Sensor end #@ solidify:Matter_Plugin_Sensor_Pressure,weak class Matter_Plugin_Sensor_Pressure : Matter_Plugin_Sensor - static var NAME = "pressure" # name of the plug-in in json + static var TYPE = "pressure" # name of the plug-in in json + static var NAME = "Pressure" # display name of the plug-in static var CLUSTERS = { 0x0403: [0,1,2,0xFFFC,0xFFFD], # Temperature Measurement p.97 - no writable } diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor_Temp.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor_Temp.be index 6dff99c57..9944633be 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor_Temp.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor_Temp.be @@ -25,7 +25,8 @@ class Matter_Plugin_Sensor end #@ solidify:Matter_Plugin_Sensor_Temp,weak class Matter_Plugin_Sensor_Temp : Matter_Plugin_Sensor - static var NAME = "temperature" # name of the plug-in in json + static var TYPE = "temperature" # name of the plug-in in json + static var NAME = "Temperature" # display name of the plug-in static var CLUSTERS = { 0x0402: [0,1,2,0xFFFC,0xFFFD], # Temperature Measurement p.97 - no writable } diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Session.be b/lib/libesp32/berry_matter/src/embedded/Matter_Session.be index 5936c44cf..b0fe0185c 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Session.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Session.be @@ -328,7 +328,7 @@ class Matter_Session : Matter_Expirable end ############################################################# - # Session::to_json() + # Session::tojson() # # convert a single entry as json # returns a JSON string diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_UI.be b/lib/libesp32/berry_matter/src/embedded/Matter_UI.be index 605c55738..5eb86378b 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_UI.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_UI.be @@ -32,6 +32,8 @@ import matter # WebUI for the partition manager ################################################################################# class Matter_UI + static var _CLASSES_TYPES = "root|relay|light0|light1|light2|light3" + "|temperature|pressure|illuminance|humidity" var device def init(device) @@ -64,7 +66,7 @@ class Matter_UI webserver.content_send(string.format("
 Matter %s 

", matter_enabled ? "Enabled" : "Disabled")) - webserver.content_send("

Matter support is experimental.

") + webserver.content_send("

Check the Matter documentation.

") webserver.content_send("
") webserver.content_send(string.format("

") @@ -210,6 +212,79 @@ class Matter_UI end + #- ---------------------------------------------------------------------- -# + #- Show plugins configuration + #- ---------------------------------------------------------------------- -# + def show_plugins_configuration() + import webserver + import string + + webserver.content_send("
 Current Configuration 

") + + webserver.content_send("
") + webserver.content_send("

") + + webserver.content_send("
") + webserver.content_send("") + webserver.content_send("") + + # display one line per plug-in + var endpoints = self.device.k2l_num(self.device.plugins_config) + var i = 0 + while i < size(endpoints) + var ep = endpoints[i] + var conf = self.device.plugins_config[str(ep)] + var typ = conf.find('type') + if !typ continue end + + var arg_name = self.device.get_plugin_class_arg(typ) + var arg = arg_name ? str(conf.find(arg_name, '')) : '' + + webserver.content_send(string.format("", i, ep)) + + webserver.content_send(string.format("")) + webserver.content_send(string.format("", + i, webserver.html_escape(arg))) + + i += 1 + end + + # add an empty line for adding a configuration + webserver.content_send(string.format("", i)) + webserver.content_send(string.format("")) + webserver.content_send(string.format("", i)) + + webserver.content_send("
Ep.TypeParam

") + webserver.content_send("
") + + webserver.content_send("

") + + end + + #- ---------------------------------------------------------------------- -# + #- Show all possible classes for plugin + #- ---------------------------------------------------------------------- -# + def plugin_option(cur) + import webserver + import string + var class_types = string.split(self._CLASSES_TYPES, '|') + + var i = 0 + webserver.content_send("") + while i < size(class_types) + var typ = class_types[i] + var nam = self.device.get_plugin_class_displayname(typ) + webserver.content_send(string.format("", typ, (typ == cur) ? " selected" : "", nam)) + i += 1 + end + end + ####################################################################### # Display the complete page ####################################################################### @@ -224,6 +299,7 @@ class Matter_UI if self.show_enable() self.show_passcode_form() + self.show_plugins_configuration() self.show_fabric_info() end webserver.content_button(webserver.BUTTON_CONFIGURATION) @@ -241,9 +317,7 @@ class Matter_UI import partition_core import persist - - #- check that the partition is valid -# - var p = partition_core.Partition() + var error try @@ -251,6 +325,7 @@ class Matter_UI # Change Passcode and/or Passcode #---------------------------------------------------------------------# if webserver.has_arg("passcode") || webserver.has_arg("discriminator") + tasmota.log(string.format("MTR: /matterc received '%s' command", 'passcode'), 3) if webserver.has_arg("passcode") self.device.root_passcode = int(webserver.arg("passcode")) end @@ -263,17 +338,29 @@ class Matter_UI #- and force restart -# webserver.redirect("/?rst=") + #---------------------------------------------------------------------# + # Enable Matter + #---------------------------------------------------------------------# elif webserver.has_arg("enable") + tasmota.log(string.format("MTR: /matterc received '%s' command", 'enable'), 3) tasmota.cmd("SetOption" + str(matter.MATTER_OPTION) + " 1") #- and force restart -# webserver.redirect("/?rst=") + #---------------------------------------------------------------------# + # Disable Matter + #---------------------------------------------------------------------# elif webserver.has_arg("disable") + tasmota.log(string.format("MTR: /matterc received '%s' command", 'disable'), 3) tasmota.cmd("SetOption" + str(matter.MATTER_OPTION) + " 0") #- and force restart -# webserver.redirect("/?rst=") + #---------------------------------------------------------------------# + # Delete Fabric + #---------------------------------------------------------------------# elif webserver.has_arg("del_fabric") + tasmota.log(string.format("MTR: /matterc received '%s' command", 'del_fabric'), 3) var del_fabric = int(webserver.arg("del_fabric")) var idx = 0 var fabrics = self.device.sessions.fabrics @@ -285,11 +372,87 @@ class Matter_UI idx += 1 end end - - #- and force restart -# + #- reload same page -# webserver.redirect("/matterc?") + #---------------------------------------------------------------------# + # Reset to default auto-configuration + #---------------------------------------------------------------------# + elif webserver.has_arg("auto") + tasmota.log(string.format("MTR: /matterc received '%s' command", 'auto'), 3) + self.device.plugins_persist = false + self.device.save_param() + #- and force restart -# + webserver.redirect("/?rst=") + + #---------------------------------------------------------------------# + # Apply new configuration template + #---------------------------------------------------------------------# + elif webserver.has_arg("config") + var config = {} + + tasmota.log(string.format("MTR: /matterc received '%s' command", 'config'), 3) + # iterate by id + var idx = 0 + var idx_str = string.format("%03i", idx) + while webserver.has_arg('ep'+idx_str) + + var ep = webserver.arg('ep'+idx_str) + var ep_int = int(ep) + var typ = webserver.arg('pi'+idx_str) + var arg = webserver.arg('arg'+idx_str) + tasmota.log(string.format("MTR: ep=%i type=%s arg=%s", ep, typ, arg), 3) + + if ep != '' && typ != '' + + # check if type exists + var typ_class = self.device.plugins_classes.find(typ) + if typ_class != nil + var elt = {'type':typ} + var arg_name = typ_class.ARG + var arg_type = typ_class.ARG_TYPE + if arg && arg_name + elt[arg_name] = arg_type(arg) + end + config[ep] = elt + + else + tasmota.log(string.format("MTR: unknown type = %s", typ), 2) + end + + else + tasmota.log("MTR: skipping parameter", 2) + end + + idx += 1 + idx_str = string.format("%03i", idx) end + + tasmota.log(string.format("MTR: config = %s", str(config)), 3) + + # sanity check + if !config.contains("0") error = "Missing endpoint 0" end + + if error + tasmota.log(string.format("MTR: config error = %s", error), 3) + else + self.device.plugins_config = config + self.device.plugins_persist = true + self.device.save_param() + #- and force restart -# + webserver.redirect("/?rst=") + end + + end + + if error + webserver.content_start("Parameter error") #- title of the web page -# + webserver.content_send_style() #- send standard Tasmota styles -# + webserver.content_send(string.format("

Error:%s

", webserver.html_escape(error))) + webserver.content_button(webserver.BUTTON_CONFIGURATION) #- button back to configuration page -# + webserver.content_stop() #- end of web page -# + end + except .. as e, m tasmota.log(string.format("BRY: Exception> '%s' - %s", e, m), 2) #- display error page -# @@ -298,7 +461,7 @@ class Matter_UI webserver.content_send(string.format("

Exception:
'%s'
%s

", e, m)) - webserver.content_button(webserver.BUTTON_MANAGEMENT) #- button back to management page -# + webserver.content_button(webserver.BUTTON_CONFIGURATION) #- button back to configuration page -# webserver.content_stop() #- end of web page -# end end 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 6404ddaf1..d4d47b146 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Device.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Device.h @@ -6,6 +6,193 @@ extern const bclass be_class_Matter_Device; +/******************************************************************** +** Solidified function: save_param +********************************************************************/ +be_local_closure(Matter_Device_save_param, /* name */ + be_nested_proto( + 11, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[26]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(json), + /* K2 */ be_nested_str_weak(format), + /* K3 */ be_nested_str_weak(_X7B_X22distinguish_X22_X3A_X25i_X2C_X22passcode_X22_X3A_X25i_X2C_X22ipv4only_X22_X3A_X25s), + /* K4 */ be_nested_str_weak(root_discriminator), + /* K5 */ be_nested_str_weak(root_passcode), + /* K6 */ be_nested_str_weak(ipv4only), + /* K7 */ be_nested_str_weak(true), + /* K8 */ be_nested_str_weak(false), + /* K9 */ be_nested_str_weak(plugins_persist), + /* K10 */ be_nested_str_weak(_X2C_X22config_X22_X3A), + /* K11 */ be_nested_str_weak(dump), + /* K12 */ be_nested_str_weak(plugins_config), + /* K13 */ be_nested_str_weak(_X7D), + /* K14 */ be_nested_str_weak(FILENAME), + /* K15 */ be_nested_str_weak(w), + /* K16 */ be_nested_str_weak(write), + /* K17 */ be_nested_str_weak(close), + /* K18 */ be_nested_str_weak(tasmota), + /* K19 */ be_nested_str_weak(log), + /* K20 */ be_nested_str_weak(MTR_X3A_X20_X3DSaved_X20_X20_X20_X20_X20parameters_X25s), + /* K21 */ be_nested_str_weak(_X20and_X20condiguration), + /* K22 */ be_nested_str_weak(), + /* K23 */ be_const_int(2), + /* K24 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Asave_X20Exception_X3A), + /* K25 */ be_nested_str_weak(_X7C), + }), + be_str_weak(save_param), + &be_const_str_solidified, + ( &(const binstruction[65]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0x8C0C0302, // 0002 GETMET R3 R1 K2 + 0x58140003, // 0003 LDCONST R5 K3 + 0x88180104, // 0004 GETMBR R6 R0 K4 + 0x881C0105, // 0005 GETMBR R7 R0 K5 + 0x88200106, // 0006 GETMBR R8 R0 K6 + 0x78220001, // 0007 JMPF R8 #000A + 0x58200007, // 0008 LDCONST R8 K7 + 0x70020000, // 0009 JMP #000B + 0x58200008, // 000A LDCONST R8 K8 + 0x7C0C0A00, // 000B CALL R3 5 + 0x88100109, // 000C GETMBR R4 R0 K9 + 0x78120004, // 000D JMPF R4 #0013 + 0x000C070A, // 000E ADD R3 R3 K10 + 0x8C10050B, // 000F GETMET R4 R2 K11 + 0x8818010C, // 0010 GETMBR R6 R0 K12 + 0x7C100400, // 0011 CALL R4 2 + 0x000C0604, // 0012 ADD R3 R3 R4 + 0x000C070D, // 0013 ADD R3 R3 K13 + 0xA8020018, // 0014 EXBLK 0 #002E + 0x60100011, // 0015 GETGBL R4 G17 + 0x8814010E, // 0016 GETMBR R5 R0 K14 + 0x5818000F, // 0017 LDCONST R6 K15 + 0x7C100400, // 0018 CALL R4 2 + 0x8C140910, // 0019 GETMET R5 R4 K16 + 0x5C1C0600, // 001A MOVE R7 R3 + 0x7C140400, // 001B CALL R5 2 + 0x8C140911, // 001C GETMET R5 R4 K17 + 0x7C140200, // 001D CALL R5 1 + 0xB8162400, // 001E GETNGBL R5 K18 + 0x8C140B13, // 001F GETMET R5 R5 K19 + 0x8C1C0302, // 0020 GETMET R7 R1 K2 + 0x58240014, // 0021 LDCONST R9 K20 + 0x88280109, // 0022 GETMBR R10 R0 K9 + 0x782A0001, // 0023 JMPF R10 #0026 + 0x58280015, // 0024 LDCONST R10 K21 + 0x70020000, // 0025 JMP #0027 + 0x58280016, // 0026 LDCONST R10 K22 + 0x7C1C0600, // 0027 CALL R7 3 + 0x58200017, // 0028 LDCONST R8 K23 + 0x7C140600, // 0029 CALL R5 3 + 0xA8040001, // 002A EXBLK 1 1 + 0x80040600, // 002B RET 1 R3 + 0xA8040001, // 002C EXBLK 1 1 + 0x70020011, // 002D JMP #0040 + 0xAC100002, // 002E CATCH R4 0 2 + 0x7002000E, // 002F JMP #003F + 0xB81A2400, // 0030 GETNGBL R6 K18 + 0x8C180D13, // 0031 GETMET R6 R6 K19 + 0x60200008, // 0032 GETGBL R8 G8 + 0x5C240800, // 0033 MOVE R9 R4 + 0x7C200200, // 0034 CALL R8 1 + 0x00223008, // 0035 ADD R8 K24 R8 + 0x00201119, // 0036 ADD R8 R8 K25 + 0x60240008, // 0037 GETGBL R9 G8 + 0x5C280A00, // 0038 MOVE R10 R5 + 0x7C240200, // 0039 CALL R9 1 + 0x00201009, // 003A ADD R8 R8 R9 + 0x58240017, // 003B LDCONST R9 K23 + 0x7C180600, // 003C CALL R6 3 + 0x80040600, // 003D RET 1 R3 + 0x70020000, // 003E JMP #0040 + 0xB0080000, // 003F RAISE 2 R0 R0 + 0x80000000, // 0040 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: _trigger_read_sensors +********************************************************************/ +be_local_closure(Matter_Device__trigger_read_sensors, /* name */ + be_nested_proto( + 8, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + 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: register_plugin_class ********************************************************************/ @@ -35,75 +222,72 @@ be_local_closure(Matter_Device_register_plugin_class, /* name */ /******************************************************************** -** Solidified function: _compute_pbkdf +** Solidified function: autoconf_device ********************************************************************/ -be_local_closure(Matter_Device__compute_pbkdf, /* name */ +be_local_closure(Matter_Device_autoconf_device, /* name */ be_nested_proto( - 14, /* nstack */ - 4, /* argc */ + 7, /* nstack */ + 1, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[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[15]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(json), + /* K2 */ be_nested_str_weak(plugins), + /* K3 */ be_const_int(0), + /* K4 */ be_nested_str_weak(plugins_config), + /* K5 */ be_nested_str_weak(autoconf_device_map), + /* K6 */ be_nested_str_weak(tasmota), + /* K7 */ be_nested_str_weak(log), + /* K8 */ be_nested_str_weak(MTR_X3A_X20autoconfig_X20_X3D_X20), + /* K9 */ be_const_int(3), + /* K10 */ be_nested_str_weak(_load_plugins_config), + /* K11 */ be_nested_str_weak(plugins_persist), + /* K12 */ be_nested_str_weak(sessions), + /* K13 */ be_nested_str_weak(count_active_fabrics), + /* K14 */ be_nested_str_weak(save_param), }), - be_str_weak(_compute_pbkdf), + be_str_weak(autoconf_device), &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[34]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0x600C000C, // 0002 GETGBL R3 G12 + 0x88100102, // 0003 GETMBR R4 R0 K2 + 0x7C0C0200, // 0004 CALL R3 1 + 0x240C0703, // 0005 GT R3 R3 K3 + 0x780E0000, // 0006 JMPF R3 #0008 + 0x80000600, // 0007 RET 0 + 0x8C0C0105, // 0008 GETMET R3 R0 K5 + 0x7C0C0200, // 0009 CALL R3 1 + 0x90020803, // 000A SETMBR R0 K4 R3 + 0xB80E0C00, // 000B GETNGBL R3 K6 + 0x8C0C0707, // 000C GETMET R3 R3 K7 + 0x60140008, // 000D GETGBL R5 G8 + 0x88180104, // 000E GETMBR R6 R0 K4 + 0x7C140200, // 000F CALL R5 1 + 0x00161005, // 0010 ADD R5 K8 R5 + 0x58180009, // 0011 LDCONST R6 K9 + 0x7C0C0600, // 0012 CALL R3 3 + 0x8C0C010A, // 0013 GETMET R3 R0 K10 + 0x88140104, // 0014 GETMBR R5 R0 K4 + 0x7C0C0400, // 0015 CALL R3 2 + 0x880C010B, // 0016 GETMBR R3 R0 K11 + 0x740E0008, // 0017 JMPT R3 #0021 + 0x880C010C, // 0018 GETMBR R3 R0 K12 + 0x8C0C070D, // 0019 GETMET R3 R3 K13 + 0x7C0C0200, // 001A CALL R3 1 + 0x240C0703, // 001B GT R3 R3 K3 + 0x780E0003, // 001C JMPF R3 #0021 + 0x500C0200, // 001D LDBOOL R3 1 0 + 0x90021603, // 001E SETMBR R0 K11 R3 + 0x8C0C010E, // 001F GETMET R3 R0 K14 + 0x7C0C0200, // 0020 CALL R3 1 + 0x80000000, // 0021 RET 0 }) ) ); @@ -111,223 +295,506 @@ be_local_closure(Matter_Device__compute_pbkdf, /* name */ /******************************************************************** -** Solidified function: _mdns_announce_hostname +** Solidified function: generate_random_passcode ********************************************************************/ -be_local_closure(Matter_Device__mdns_announce_hostname, /* name */ +be_local_closure(Matter_Device_generate_random_passcode, /* name */ be_nested_proto( - 16, /* nstack */ - 2, /* argc */ + 7, /* nstack */ + 1, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[28]) { /* constants */ - /* K0 */ be_nested_str_weak(mdns), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(start), - /* K3 */ be_nested_str_weak(tasmota), - /* K4 */ be_nested_str_weak(eth), - /* K5 */ be_nested_str_weak(hostname_eth), - /* K6 */ be_nested_str_weak(replace), - /* K7 */ be_nested_str_weak(find), - /* K8 */ be_nested_str_weak(mac), - /* K9 */ be_nested_str_weak(_X3A), - /* K10 */ be_nested_str_weak(), - /* K11 */ be_nested_str_weak(ipv4only), - /* K12 */ be_nested_str_weak(log), - /* K13 */ be_nested_str_weak(format), - /* K14 */ be_nested_str_weak(MTR_X3A_X20calling_X20mdns_X2Eadd_hostname_X28_X25s_X2C_X20_X25s_X2C_X20_X25s_X29), - /* K15 */ be_nested_str_weak(ip6local), - /* K16 */ be_nested_str_weak(ip), - /* K17 */ be_const_int(3), - /* K18 */ be_nested_str_weak(add_hostname), - /* K19 */ be_nested_str_weak(ip6), - /* K20 */ be_nested_str_weak(MTR_X3A_X20calling_X20mdns_X2Eadd_hostname_X28_X25s_X2C_X20_X25s_X29), - /* K21 */ be_nested_str_weak(wifi), - /* K22 */ be_nested_str_weak(hostname_wifi), - /* K23 */ be_nested_str_weak(MTR_X3A_X20start_X20mDNS_X20on_X20_X25s_X20host_X20_X27_X25s_X2Elocal_X27), - /* K24 */ be_const_int(2), - /* K25 */ be_nested_str_weak(MTR_X3A_X20Exception), - /* K26 */ be_nested_str_weak(_X7C), - /* K27 */ be_nested_str_weak(mdns_announce_op_discovery_all_fabrics), + ( &(const bvalue[ 8]) { /* constants */ + /* K0 */ be_nested_str_weak(crypto), + /* K1 */ be_nested_str_weak(random), + /* K2 */ be_nested_str_weak(get), + /* K3 */ be_const_int(0), + /* K4 */ be_const_int(134217727), + /* K5 */ be_const_int(99999998), + /* K6 */ be_nested_str_weak(PASSCODE_INVALID), + /* K7 */ be_nested_str_weak(stop_iteration), }), - be_str_weak(_mdns_announce_hostname), + be_str_weak(generate_random_passcode), &be_const_str_solidified, - ( &(const binstruction[172]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0xA40E0200, // 0001 IMPORT R3 K1 - 0x8C100502, // 0002 GETMET R4 R2 K2 - 0x7C100200, // 0003 CALL R4 1 - 0xA8020092, // 0004 EXBLK 0 #0098 - 0x78060040, // 0005 JMPF R1 #0047 - 0xB8120600, // 0006 GETNGBL R4 K3 - 0x8C100904, // 0007 GETMET R4 R4 K4 - 0x7C100200, // 0008 CALL R4 1 - 0x8C140706, // 0009 GETMET R5 R3 K6 - 0x8C1C0907, // 000A GETMET R7 R4 K7 - 0x58240008, // 000B LDCONST R9 K8 - 0x7C1C0400, // 000C CALL R7 2 - 0x58200009, // 000D LDCONST R8 K9 - 0x5824000A, // 000E LDCONST R9 K10 - 0x7C140800, // 000F CALL R5 4 - 0x90020A05, // 0010 SETMBR R0 K5 R5 - 0x8814010B, // 0011 GETMBR R5 R0 K11 - 0x7416001F, // 0012 JMPT R5 #0033 - 0xB8160600, // 0013 GETNGBL R5 K3 - 0x8C140B0C, // 0014 GETMET R5 R5 K12 - 0x8C1C070D, // 0015 GETMET R7 R3 K13 - 0x5824000E, // 0016 LDCONST R9 K14 - 0x88280105, // 0017 GETMBR R10 R0 K5 - 0x8C2C0907, // 0018 GETMET R11 R4 K7 - 0x5834000F, // 0019 LDCONST R13 K15 - 0x5838000A, // 001A LDCONST R14 K10 - 0x7C2C0600, // 001B CALL R11 3 - 0x8C300907, // 001C GETMET R12 R4 K7 - 0x58380010, // 001D LDCONST R14 K16 - 0x583C000A, // 001E LDCONST R15 K10 - 0x7C300600, // 001F CALL R12 3 - 0x7C1C0A00, // 0020 CALL R7 5 - 0x58200011, // 0021 LDCONST R8 K17 - 0x7C140600, // 0022 CALL R5 3 - 0x8C140512, // 0023 GETMET R5 R2 K18 - 0x881C0105, // 0024 GETMBR R7 R0 K5 - 0x8C200907, // 0025 GETMET R8 R4 K7 - 0x5828000F, // 0026 LDCONST R10 K15 - 0x582C000A, // 0027 LDCONST R11 K10 - 0x7C200600, // 0028 CALL R8 3 - 0x8C240907, // 0029 GETMET R9 R4 K7 - 0x582C0010, // 002A LDCONST R11 K16 - 0x5830000A, // 002B LDCONST R12 K10 - 0x7C240600, // 002C CALL R9 3 - 0x8C280907, // 002D GETMET R10 R4 K7 - 0x58300013, // 002E LDCONST R12 K19 - 0x5834000A, // 002F LDCONST R13 K10 - 0x7C280600, // 0030 CALL R10 3 - 0x7C140A00, // 0031 CALL R5 5 - 0x70020012, // 0032 JMP #0046 - 0xB8160600, // 0033 GETNGBL R5 K3 - 0x8C140B0C, // 0034 GETMET R5 R5 K12 - 0x8C1C070D, // 0035 GETMET R7 R3 K13 - 0x58240014, // 0036 LDCONST R9 K20 - 0x88280105, // 0037 GETMBR R10 R0 K5 - 0x8C2C0907, // 0038 GETMET R11 R4 K7 - 0x58340010, // 0039 LDCONST R13 K16 - 0x5838000A, // 003A LDCONST R14 K10 - 0x7C2C0600, // 003B CALL R11 3 - 0x7C1C0800, // 003C CALL R7 4 - 0x58200011, // 003D LDCONST R8 K17 - 0x7C140600, // 003E CALL R5 3 - 0x8C140512, // 003F GETMET R5 R2 K18 - 0x881C0105, // 0040 GETMBR R7 R0 K5 - 0x8C200907, // 0041 GETMET R8 R4 K7 - 0x58280010, // 0042 LDCONST R10 K16 - 0x582C000A, // 0043 LDCONST R11 K10 - 0x7C200600, // 0044 CALL R8 3 - 0x7C140600, // 0045 CALL R5 3 - 0x7002003F, // 0046 JMP #0087 - 0xB8120600, // 0047 GETNGBL R4 K3 - 0x8C100915, // 0048 GETMET R4 R4 K21 - 0x7C100200, // 0049 CALL R4 1 - 0x8C140706, // 004A GETMET R5 R3 K6 - 0x8C1C0907, // 004B GETMET R7 R4 K7 - 0x58240008, // 004C LDCONST R9 K8 - 0x7C1C0400, // 004D CALL R7 2 - 0x58200009, // 004E LDCONST R8 K9 - 0x5824000A, // 004F LDCONST R9 K10 - 0x7C140800, // 0050 CALL R5 4 - 0x90022C05, // 0051 SETMBR R0 K22 R5 - 0x8814010B, // 0052 GETMBR R5 R0 K11 - 0x7416001F, // 0053 JMPT R5 #0074 - 0xB8160600, // 0054 GETNGBL R5 K3 - 0x8C140B0C, // 0055 GETMET R5 R5 K12 - 0x8C1C070D, // 0056 GETMET R7 R3 K13 - 0x5824000E, // 0057 LDCONST R9 K14 - 0x88280116, // 0058 GETMBR R10 R0 K22 - 0x8C2C0907, // 0059 GETMET R11 R4 K7 - 0x5834000F, // 005A LDCONST R13 K15 - 0x5838000A, // 005B LDCONST R14 K10 - 0x7C2C0600, // 005C CALL R11 3 - 0x8C300907, // 005D GETMET R12 R4 K7 - 0x58380010, // 005E LDCONST R14 K16 - 0x583C000A, // 005F LDCONST R15 K10 - 0x7C300600, // 0060 CALL R12 3 - 0x7C1C0A00, // 0061 CALL R7 5 - 0x58200011, // 0062 LDCONST R8 K17 - 0x7C140600, // 0063 CALL R5 3 - 0x8C140512, // 0064 GETMET R5 R2 K18 - 0x881C0116, // 0065 GETMBR R7 R0 K22 - 0x8C200907, // 0066 GETMET R8 R4 K7 - 0x5828000F, // 0067 LDCONST R10 K15 - 0x582C000A, // 0068 LDCONST R11 K10 - 0x7C200600, // 0069 CALL R8 3 - 0x8C240907, // 006A GETMET R9 R4 K7 - 0x582C0010, // 006B LDCONST R11 K16 - 0x5830000A, // 006C LDCONST R12 K10 - 0x7C240600, // 006D CALL R9 3 - 0x8C280907, // 006E GETMET R10 R4 K7 - 0x58300013, // 006F LDCONST R12 K19 - 0x5834000A, // 0070 LDCONST R13 K10 - 0x7C280600, // 0071 CALL R10 3 - 0x7C140A00, // 0072 CALL R5 5 - 0x70020012, // 0073 JMP #0087 - 0xB8160600, // 0074 GETNGBL R5 K3 - 0x8C140B0C, // 0075 GETMET R5 R5 K12 - 0x8C1C070D, // 0076 GETMET R7 R3 K13 - 0x58240014, // 0077 LDCONST R9 K20 - 0x88280105, // 0078 GETMBR R10 R0 K5 - 0x8C2C0907, // 0079 GETMET R11 R4 K7 - 0x58340010, // 007A LDCONST R13 K16 - 0x5838000A, // 007B LDCONST R14 K10 - 0x7C2C0600, // 007C CALL R11 3 - 0x7C1C0800, // 007D CALL R7 4 - 0x58200011, // 007E LDCONST R8 K17 - 0x7C140600, // 007F CALL R5 3 - 0x8C140512, // 0080 GETMET R5 R2 K18 - 0x881C0116, // 0081 GETMBR R7 R0 K22 - 0x8C200907, // 0082 GETMET R8 R4 K7 - 0x58280010, // 0083 LDCONST R10 K16 - 0x582C000A, // 0084 LDCONST R11 K10 - 0x7C200600, // 0085 CALL R8 3 - 0x7C140600, // 0086 CALL R5 3 - 0xB8120600, // 0087 GETNGBL R4 K3 - 0x8C10090C, // 0088 GETMET R4 R4 K12 - 0x8C18070D, // 0089 GETMET R6 R3 K13 - 0x58200017, // 008A LDCONST R8 K23 - 0x78060001, // 008B JMPF R1 #008E - 0x58240004, // 008C LDCONST R9 K4 - 0x70020000, // 008D JMP #008F - 0x58240015, // 008E LDCONST R9 K21 - 0x78060001, // 008F JMPF R1 #0092 - 0x88280105, // 0090 GETMBR R10 R0 K5 - 0x70020000, // 0091 JMP #0093 - 0x88280116, // 0092 GETMBR R10 R0 K22 - 0x7C180800, // 0093 CALL R6 4 - 0x581C0018, // 0094 LDCONST R7 K24 - 0x7C100600, // 0095 CALL R4 3 - 0xA8040001, // 0096 EXBLK 1 1 - 0x70020010, // 0097 JMP #00A9 - 0xAC100002, // 0098 CATCH R4 0 2 - 0x7002000D, // 0099 JMP #00A8 - 0xB81A0600, // 009A GETNGBL R6 K3 - 0x8C180D0C, // 009B GETMET R6 R6 K12 - 0x60200008, // 009C GETGBL R8 G8 - 0x5C240800, // 009D MOVE R9 R4 - 0x7C200200, // 009E CALL R8 1 - 0x00223208, // 009F ADD R8 K25 R8 - 0x0020111A, // 00A0 ADD R8 R8 K26 - 0x60240008, // 00A1 GETGBL R9 G8 - 0x5C280A00, // 00A2 MOVE R10 R5 - 0x7C240200, // 00A3 CALL R9 1 - 0x00201009, // 00A4 ADD R8 R8 R9 - 0x58240018, // 00A5 LDCONST R9 K24 - 0x7C180600, // 00A6 CALL R6 3 - 0x70020000, // 00A7 JMP #00A9 - 0xB0080000, // 00A8 RAISE 2 R0 R0 - 0x8C10011B, // 00A9 GETMET R4 R0 K27 - 0x7C100200, // 00AA CALL R4 1 - 0x80000000, // 00AB RET 0 + ( &(const binstruction[35]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x4C080000, // 0001 LDNIL R2 + 0x500C0200, // 0002 LDBOOL R3 1 0 + 0x780E001D, // 0003 JMPF R3 #0022 + 0x8C0C0301, // 0004 GETMET R3 R1 K1 + 0x54160003, // 0005 LDINT R5 4 + 0x7C0C0400, // 0006 CALL R3 2 + 0x8C0C0702, // 0007 GETMET R3 R3 K2 + 0x58140003, // 0008 LDCONST R5 K3 + 0x541A0003, // 0009 LDINT R6 4 + 0x7C0C0600, // 000A CALL R3 3 + 0x2C0C0704, // 000B AND R3 R3 K4 + 0x5C080600, // 000C MOVE R2 R3 + 0x240C0505, // 000D GT R3 R2 K5 + 0x780E0000, // 000E JMPF R3 #0010 + 0x7001FFF1, // 000F JMP #0002 + 0x600C0010, // 0010 GETGBL R3 G16 + 0x88100106, // 0011 GETMBR R4 R0 K6 + 0x7C0C0200, // 0012 CALL R3 1 + 0xA8020005, // 0013 EXBLK 0 #001A + 0x5C100600, // 0014 MOVE R4 R3 + 0x7C100000, // 0015 CALL R4 0 + 0x1C140404, // 0016 EQ R5 R2 R4 + 0x78160000, // 0017 JMPF R5 #0019 + 0x4C080000, // 0018 LDNIL R2 + 0x7001FFF9, // 0019 JMP #0014 + 0x580C0007, // 001A LDCONST R3 K7 + 0xAC0C0200, // 001B CATCH R3 1 0 + 0xB0080000, // 001C RAISE 2 R0 R0 + 0x4C0C0000, // 001D LDNIL R3 + 0x200C0403, // 001E NE R3 R2 R3 + 0x780E0000, // 001F JMPF R3 #0021 + 0x80040400, // 0020 RET 1 R2 + 0x7001FFDF, // 0021 JMP #0002 + 0x80000000, // 0022 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: register_commands +********************************************************************/ +be_local_closure(Matter_Device_register_commands, /* name */ + be_nested_proto( + 5, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 1]) { + be_nested_proto( + 10, /* nstack */ + 4, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(MtrJoin), + }), + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 8]) { /* code */ + 0x68100000, // 0000 GETUPV R4 U0 + 0x8C100900, // 0001 GETMET R4 R4 K0 + 0x5C180000, // 0002 MOVE R6 R0 + 0x5C1C0200, // 0003 MOVE R7 R1 + 0x5C200400, // 0004 MOVE R8 R2 + 0x5C240600, // 0005 MOVE R9 R3 + 0x7C100A00, // 0006 CALL R4 5 + 0x80040800, // 0007 RET 1 R4 + }) + ), + }), + 1, /* has constants */ + ( &(const bvalue[ 3]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota), + /* K1 */ be_nested_str_weak(add_cmd), + /* K2 */ be_nested_str_weak(MtrJoin), + }), + be_str_weak(register_commands), + &be_const_str_solidified, + ( &(const binstruction[ 7]) { /* code */ + 0xB8060000, // 0000 GETNGBL R1 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x580C0002, // 0002 LDCONST R3 K2 + 0x84100000, // 0003 CLOSURE R4 P0 + 0x7C040600, // 0004 CALL R1 3 + 0xA0000000, // 0005 CLOSE R0 + 0x80000000, // 0006 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: is_commissioning_open +********************************************************************/ +be_local_closure(Matter_Device_is_commissioning_open, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(commissioning_open), + }), + be_str_weak(is_commissioning_open), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x4C080000, // 0001 LDNIL R2 + 0x20040202, // 0002 NE R1 R1 R2 + 0x80040200, // 0003 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: 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: 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: 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_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: 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 }) ) ); @@ -509,473 +976,6 @@ be_local_closure(Matter_Device_mdns_announce_op_discovery, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: stop -********************************************************************/ -be_local_closure(Matter_Device_stop, /* 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[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(remove_driver), - /* K2 */ be_nested_str_weak(udp_server), - /* K3 */ be_nested_str_weak(stop), - }), - be_str_weak(stop), - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0xB8060000, // 0000 GETNGBL R1 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x5C0C0000, // 0002 MOVE R3 R0 - 0x7C040400, // 0003 CALL R1 2 - 0x88040102, // 0004 GETMBR R1 R0 K2 - 0x78060002, // 0005 JMPF R1 #0009 - 0x88040102, // 0006 GETMBR R1 R0 K2 - 0x8C040303, // 0007 GETMET R1 R1 K3 - 0x7C040200, // 0008 CALL R1 1 - 0x80000000, // 0009 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: register_commands -********************************************************************/ -be_local_closure(Matter_Device_register_commands, /* name */ - be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 1]) { - be_nested_proto( - 10, /* nstack */ - 4, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(MtrJoin), - }), - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x68100000, // 0000 GETUPV R4 U0 - 0x8C100900, // 0001 GETMET R4 R4 K0 - 0x5C180000, // 0002 MOVE R6 R0 - 0x5C1C0200, // 0003 MOVE R7 R1 - 0x5C200400, // 0004 MOVE R8 R2 - 0x5C240600, // 0005 MOVE R9 R3 - 0x7C100A00, // 0006 CALL R4 5 - 0x80040800, // 0007 RET 1 R4 - }) - ), - }), - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(add_cmd), - /* K2 */ be_nested_str_weak(MtrJoin), - }), - be_str_weak(register_commands), - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0xB8060000, // 0000 GETNGBL R1 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x580C0002, // 0002 LDCONST R3 K2 - 0x84100000, // 0003 CLOSURE R4 P0 - 0x7C040600, // 0004 CALL R1 3 - 0xA0000000, // 0005 CLOSE R0 - 0x80000000, // 0006 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: 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[24]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(format), - /* K2 */ be_nested_str_weak(_X7B_X22distinguish_X22_X3A_X25i_X2C_X22passcode_X22_X3A_X25i_X2C_X22ipv4only_X22_X3A_X25s), - /* K3 */ be_nested_str_weak(root_discriminator), - /* K4 */ be_nested_str_weak(root_passcode), - /* K5 */ be_nested_str_weak(ipv4only), - /* K6 */ be_nested_str_weak(true), - /* K7 */ be_nested_str_weak(false), - /* K8 */ be_nested_str_weak(plugins_persist), - /* K9 */ be_nested_str_weak(_X2C_X22config_X22_X3A), - /* K10 */ be_nested_str_weak(plugins_to_json), - /* K11 */ be_nested_str_weak(_X7D), - /* K12 */ be_nested_str_weak(FILENAME), - /* K13 */ be_nested_str_weak(w), - /* K14 */ be_nested_str_weak(write), - /* K15 */ be_nested_str_weak(close), - /* K16 */ be_nested_str_weak(tasmota), - /* K17 */ be_nested_str_weak(log), - /* K18 */ be_nested_str_weak(MTR_X3A_X20_X3DSaved_X20_X20_X20_X20_X20parameters_X25s), - /* K19 */ be_nested_str_weak(_X20and_X20condiguration), - /* K20 */ be_nested_str_weak(), - /* K21 */ be_const_int(2), - /* K22 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Asave_X20Exception_X3A), - /* K23 */ be_nested_str_weak(_X7C), - }), - be_str_weak(save_param), - &be_const_str_solidified, - ( &(const binstruction[63]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x8C080301, // 0001 GETMET R2 R1 K1 - 0x58100002, // 0002 LDCONST R4 K2 - 0x88140103, // 0003 GETMBR R5 R0 K3 - 0x88180104, // 0004 GETMBR R6 R0 K4 - 0x881C0105, // 0005 GETMBR R7 R0 K5 - 0x781E0001, // 0006 JMPF R7 #0009 - 0x581C0006, // 0007 LDCONST R7 K6 - 0x70020000, // 0008 JMP #000A - 0x581C0007, // 0009 LDCONST R7 K7 - 0x7C080A00, // 000A CALL R2 5 - 0x880C0108, // 000B GETMBR R3 R0 K8 - 0x780E0003, // 000C JMPF R3 #0011 - 0x00080509, // 000D ADD R2 R2 K9 - 0x8C0C010A, // 000E GETMET R3 R0 K10 - 0x7C0C0200, // 000F CALL R3 1 - 0x00080403, // 0010 ADD R2 R2 R3 - 0x0008050B, // 0011 ADD R2 R2 K11 - 0xA8020018, // 0012 EXBLK 0 #002C - 0x600C0011, // 0013 GETGBL R3 G17 - 0x8810010C, // 0014 GETMBR R4 R0 K12 - 0x5814000D, // 0015 LDCONST R5 K13 - 0x7C0C0400, // 0016 CALL R3 2 - 0x8C10070E, // 0017 GETMET R4 R3 K14 - 0x5C180400, // 0018 MOVE R6 R2 - 0x7C100400, // 0019 CALL R4 2 - 0x8C10070F, // 001A GETMET R4 R3 K15 - 0x7C100200, // 001B CALL R4 1 - 0xB8122000, // 001C GETNGBL R4 K16 - 0x8C100911, // 001D GETMET R4 R4 K17 - 0x8C180301, // 001E GETMET R6 R1 K1 - 0x58200012, // 001F LDCONST R8 K18 - 0x88240108, // 0020 GETMBR R9 R0 K8 - 0x78260001, // 0021 JMPF R9 #0024 - 0x58240013, // 0022 LDCONST R9 K19 - 0x70020000, // 0023 JMP #0025 - 0x58240014, // 0024 LDCONST R9 K20 - 0x7C180600, // 0025 CALL R6 3 - 0x581C0015, // 0026 LDCONST R7 K21 - 0x7C100600, // 0027 CALL R4 3 - 0xA8040001, // 0028 EXBLK 1 1 - 0x80040400, // 0029 RET 1 R2 - 0xA8040001, // 002A EXBLK 1 1 - 0x70020011, // 002B JMP #003E - 0xAC0C0002, // 002C CATCH R3 0 2 - 0x7002000E, // 002D JMP #003D - 0xB8162000, // 002E GETNGBL R5 K16 - 0x8C140B11, // 002F GETMET R5 R5 K17 - 0x601C0008, // 0030 GETGBL R7 G8 - 0x5C200600, // 0031 MOVE R8 R3 - 0x7C1C0200, // 0032 CALL R7 1 - 0x001E2C07, // 0033 ADD R7 K22 R7 - 0x001C0F17, // 0034 ADD R7 R7 K23 - 0x60200008, // 0035 GETGBL R8 G8 - 0x5C240800, // 0036 MOVE R9 R4 - 0x7C200200, // 0037 CALL R8 1 - 0x001C0E08, // 0038 ADD R7 R7 R8 - 0x58200015, // 0039 LDCONST R8 K21 - 0x7C140600, // 003A CALL R5 3 - 0x80040400, // 003B RET 1 R2 - 0x70020000, // 003C JMP #003E - 0xB0080000, // 003D RAISE 2 R0 R0 - 0x80000000, // 003E 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: 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: start_commissioning_complete -********************************************************************/ -be_local_closure(Matter_Device_start_commissioning_complete, /* 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), - }), - 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: 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: compute_manual_pairing_code ********************************************************************/ @@ -1039,819 +1039,6 @@ be_local_closure(Matter_Device_compute_manual_pairing_code, /* name */ /*******************************************************************/ -/******************************************************************** -** 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: start_mdns_announce_hostnames -********************************************************************/ -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 */ - 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[ 9]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(wifi), - /* K2 */ be_nested_str_weak(up), - /* K3 */ be_nested_str_weak(_mdns_announce_hostname), - /* K4 */ be_nested_str_weak(add_rule), - /* K5 */ be_nested_str_weak(Wifi_X23Connected), - /* K6 */ be_nested_str_weak(matter_mdns_host), - /* K7 */ be_nested_str_weak(eth), - /* K8 */ be_nested_str_weak(Eth_X23Connected), - }), - be_str_weak(start_mdns_announce_hostnames), - &be_const_str_solidified, - ( &(const binstruction[32]) { /* code */ - 0xB8060000, // 0000 GETNGBL R1 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x94040302, // 0003 GETIDX R1 R1 K2 - 0x78060003, // 0004 JMPF R1 #0009 - 0x8C040103, // 0005 GETMET R1 R0 K3 - 0x500C0000, // 0006 LDBOOL R3 0 0 - 0x7C040400, // 0007 CALL R1 2 - 0x70020005, // 0008 JMP #000F - 0xB8060000, // 0009 GETNGBL R1 K0 - 0x8C040304, // 000A GETMET R1 R1 K4 - 0x580C0005, // 000B LDCONST R3 K5 - 0x84100000, // 000C CLOSURE R4 P0 - 0x58140006, // 000D LDCONST R5 K6 - 0x7C040800, // 000E CALL R1 4 - 0xB8060000, // 000F GETNGBL R1 K0 - 0x8C040307, // 0010 GETMET R1 R1 K7 - 0x7C040200, // 0011 CALL R1 1 - 0x94040302, // 0012 GETIDX R1 R1 K2 - 0x78060003, // 0013 JMPF R1 #0018 - 0x8C040103, // 0014 GETMET R1 R0 K3 - 0x500C0200, // 0015 LDBOOL R3 1 0 - 0x7C040400, // 0016 CALL R1 2 - 0x70020005, // 0017 JMP #001E - 0xB8060000, // 0018 GETNGBL R1 K0 - 0x8C040304, // 0019 GETMET R1 R1 K4 - 0x580C0008, // 001A LDCONST R3 K8 - 0x84100001, // 001B CLOSURE R4 P1 - 0x58140006, // 001C LDCONST R5 K6 - 0x7C040800, // 001D CALL R1 4 - 0xA0000000, // 001E CLOSE R0 - 0x80000000, // 001F RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: MtrJoin -********************************************************************/ -be_local_closure(Matter_Device_MtrJoin, /* name */ - be_nested_proto( - 8, /* nstack */ - 5, /* 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(start_root_basic_commissioning), - /* K1 */ be_nested_str_weak(stop_basic_commissioning), - /* K2 */ be_nested_str_weak(tasmota), - /* K3 */ be_nested_str_weak(resp_cmnd_done), - }), - be_str_weak(MtrJoin), - &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0x60140009, // 0000 GETGBL R5 G9 - 0x5C180600, // 0001 MOVE R6 R3 - 0x7C140200, // 0002 CALL R5 1 - 0x78160002, // 0003 JMPF R5 #0007 - 0x8C180100, // 0004 GETMET R6 R0 K0 - 0x7C180200, // 0005 CALL R6 1 - 0x70020001, // 0006 JMP #0009 - 0x8C180101, // 0007 GETMET R6 R0 K1 - 0x7C180200, // 0008 CALL R6 1 - 0xB81A0400, // 0009 GETNGBL R6 K2 - 0x8C180D03, // 000A GETMET R6 R6 K3 - 0x7C180200, // 000B CALL R6 1 - 0x80000000, // 000C RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: process_attribute_expansion -********************************************************************/ -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: 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: _trigger_read_sensors -********************************************************************/ -be_local_closure(Matter_Device__trigger_read_sensors, /* name */ - be_nested_proto( - 8, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - 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: 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), - }), - 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: is_commissioning_open -********************************************************************/ -be_local_closure(Matter_Device_is_commissioning_open, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(commissioning_open), - }), - be_str_weak(is_commissioning_open), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x4C080000, // 0001 LDNIL R2 - 0x20040202, // 0002 NE R1 R1 R2 - 0x80040200, // 0003 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: stop_basic_commissioning -********************************************************************/ -be_local_closure(Matter_Device_stop_basic_commissioning, /* name */ - be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[13]) { /* constants */ - /* K0 */ be_nested_str_weak(is_root_commissioning_open), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(publish_result), - /* K3 */ be_nested_str_weak(_X7B_X22Matter_X22_X3A_X7B_X22Commissioning_X22_X3A0_X7D_X7D), - /* K4 */ be_nested_str_weak(Matter), - /* K5 */ be_nested_str_weak(commissioning_open), - /* K6 */ be_nested_str_weak(mdns_remove_PASE), - /* K7 */ be_nested_str_weak(commissioning_iterations), - /* K8 */ be_nested_str_weak(commissioning_discriminator), - /* K9 */ be_nested_str_weak(commissioning_salt), - /* K10 */ be_nested_str_weak(commissioning_w0), - /* K11 */ be_nested_str_weak(commissioning_L), - /* K12 */ be_nested_str_weak(commissioning_admin_fabric), - }), - be_str_weak(stop_basic_commissioning), - &be_const_str_solidified, - ( &(const binstruction[25]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x7C040200, // 0001 CALL R1 1 - 0x78060004, // 0002 JMPF R1 #0008 - 0xB8060200, // 0003 GETNGBL R1 K1 - 0x8C040302, // 0004 GETMET R1 R1 K2 - 0x580C0003, // 0005 LDCONST R3 K3 - 0x58100004, // 0006 LDCONST R4 K4 - 0x7C040600, // 0007 CALL R1 3 - 0x4C040000, // 0008 LDNIL R1 - 0x90020A01, // 0009 SETMBR R0 K5 R1 - 0x8C040106, // 000A GETMET R1 R0 K6 - 0x7C040200, // 000B CALL R1 1 - 0x4C040000, // 000C LDNIL R1 - 0x90020E01, // 000D SETMBR R0 K7 R1 - 0x4C040000, // 000E LDNIL R1 - 0x90021001, // 000F SETMBR R0 K8 R1 - 0x4C040000, // 0010 LDNIL R1 - 0x90021201, // 0011 SETMBR R0 K9 R1 - 0x4C040000, // 0012 LDNIL R1 - 0x90021401, // 0013 SETMBR R0 K10 R1 - 0x4C040000, // 0014 LDNIL R1 - 0x90021601, // 0015 SETMBR R0 K11 R1 - 0x4C040000, // 0016 LDNIL R1 - 0x90021801, // 0017 SETMBR R0 K12 R1 - 0x80000000, // 0018 RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: start_root_basic_commissioning ********************************************************************/ @@ -1949,263 +1136,36 @@ be_local_closure(Matter_Device_start_root_basic_commissioning, /* name */ /******************************************************************** -** Solidified function: attribute_updated +** Solidified function: start_commissioning_complete ********************************************************************/ -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: autoconf_device -********************************************************************/ -be_local_closure(Matter_Device_autoconf_device, /* 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[14]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(json), - /* K2 */ be_nested_str_weak(plugins), - /* K3 */ be_const_int(0), - /* K4 */ be_nested_str_weak(autoconf_device_map), - /* K5 */ be_nested_str_weak(tasmota), - /* K6 */ be_nested_str_weak(log), - /* K7 */ be_nested_str_weak(MTR_X3A_X20autoconfig_X20_X3D_X20), - /* K8 */ be_const_int(3), - /* K9 */ be_nested_str_weak(_load_plugins_config), - /* K10 */ be_nested_str_weak(plugins_persist), - /* K11 */ be_nested_str_weak(sessions), - /* K12 */ be_nested_str_weak(count_active_fabrics), - /* K13 */ be_nested_str_weak(save_param), - }), - be_str_weak(autoconf_device), - &be_const_str_solidified, - ( &(const binstruction[33]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0x600C000C, // 0002 GETGBL R3 G12 - 0x88100102, // 0003 GETMBR R4 R0 K2 - 0x7C0C0200, // 0004 CALL R3 1 - 0x240C0703, // 0005 GT R3 R3 K3 - 0x780E0000, // 0006 JMPF R3 #0008 - 0x80000600, // 0007 RET 0 - 0x8C0C0104, // 0008 GETMET R3 R0 K4 - 0x7C0C0200, // 0009 CALL R3 1 - 0xB8120A00, // 000A GETNGBL R4 K5 - 0x8C100906, // 000B GETMET R4 R4 K6 - 0x60180008, // 000C GETGBL R6 G8 - 0x5C1C0600, // 000D MOVE R7 R3 - 0x7C180200, // 000E CALL R6 1 - 0x001A0E06, // 000F ADD R6 K7 R6 - 0x581C0008, // 0010 LDCONST R7 K8 - 0x7C100600, // 0011 CALL R4 3 - 0x8C100109, // 0012 GETMET R4 R0 K9 - 0x5C180600, // 0013 MOVE R6 R3 - 0x7C100400, // 0014 CALL R4 2 - 0x8810010A, // 0015 GETMBR R4 R0 K10 - 0x74120008, // 0016 JMPT R4 #0020 - 0x8810010B, // 0017 GETMBR R4 R0 K11 - 0x8C10090C, // 0018 GETMET R4 R4 K12 - 0x7C100200, // 0019 CALL R4 1 - 0x24100903, // 001A GT R4 R4 K3 - 0x78120003, // 001B JMPF R4 #0020 - 0x50100200, // 001C LDBOOL R4 1 0 - 0x90021404, // 001D SETMBR R0 K10 R4 - 0x8C10010D, // 001E GETMET R4 R0 K13 - 0x7C100200, // 001F CALL R4 1 - 0x80000000, // 0020 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: 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 -********************************************************************/ -be_local_closure(Matter_Device_start_commissioning_complete_deferred, /* name */ +be_local_closure(Matter_Device_start_commissioning_complete, /* 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_commissioning_complete), - }), - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x68080001, // 0002 GETUPV R2 U1 - 0x7C000400, // 0003 CALL R0 2 - 0x80040000, // 0004 RET 1 R0 - }) - ), - }), + 0, /* has sup protos */ + NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ + ( &(const bvalue[ 5]) { /* constants */ /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(set_timer), - /* K2 */ be_const_int(0), + /* K1 */ be_nested_str_weak(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(start_commissioning_complete_deferred), + be_str_weak(start_commissioning_complete), &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ + ( &(const binstruction[ 8]) { /* code */ 0xB80A0000, // 0000 GETNGBL R2 K0 0x8C080501, // 0001 GETMET R2 R2 K1 0x58100002, // 0002 LDCONST R4 K2 - 0x84140000, // 0003 CLOSURE R5 P0 + 0x58140003, // 0003 LDCONST R5 K3 0x7C080600, // 0004 CALL R2 3 - 0xA0000000, // 0005 CLOSE R0 - 0x80000000, // 0006 RET 0 + 0x8C080104, // 0005 GETMET R2 R0 K4 + 0x7C080200, // 0006 CALL R2 1 + 0x80000000, // 0007 RET 0 }) ) ); @@ -2442,9 +1402,618 @@ be_local_closure(Matter_Device_init, /* name */ /******************************************************************** -** Solidified function: _init_basic_commissioning +** Solidified function: start ********************************************************************/ -be_local_closure(Matter_Device__init_basic_commissioning, /* name */ +be_local_closure(Matter_Device_start, /* name */ + be_nested_proto( + 6, /* 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[ 9]) { /* constants */ + /* K0 */ be_nested_str_weak(started), + /* K1 */ be_nested_str_weak(autoconf_device), + /* K2 */ be_nested_str_weak(tasmota), + /* K3 */ be_nested_str_weak(add_cron), + /* K4 */ be_nested_str_weak(_X2A_X2F30_X20_X2A_X20_X2A_X20_X2A_X20_X2A_X20_X2A), + /* K5 */ be_nested_str_weak(matter_sensors_30s), + /* K6 */ be_nested_str_weak(_start_udp), + /* K7 */ be_nested_str_weak(UDP_PORT), + /* K8 */ be_nested_str_weak(start_mdns_announce_hostnames), + }), + be_str_weak(start), + &be_const_str_solidified, + ( &(const binstruction[20]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x78060000, // 0001 JMPF R1 #0003 + 0x80000200, // 0002 RET 0 + 0x8C040101, // 0003 GETMET R1 R0 K1 + 0x7C040200, // 0004 CALL R1 1 + 0xB8060400, // 0005 GETNGBL R1 K2 + 0x8C040303, // 0006 GETMET R1 R1 K3 + 0x580C0004, // 0007 LDCONST R3 K4 + 0x84100000, // 0008 CLOSURE R4 P0 + 0x58140005, // 0009 LDCONST R5 K5 + 0x7C040800, // 000A CALL R1 4 + 0x8C040106, // 000B GETMET R1 R0 K6 + 0x880C0107, // 000C GETMBR R3 R0 K7 + 0x7C040400, // 000D CALL R1 2 + 0x8C040108, // 000E GETMET R1 R0 K8 + 0x7C040200, // 000F CALL R1 1 + 0x50040200, // 0010 LDBOOL R1 1 0 + 0x90020001, // 0011 SETMBR R0 K0 R1 + 0xA0000000, // 0012 CLOSE R0 + 0x80000000, // 0013 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** 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[28]) { /* 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(plugins_config), + /* K14 */ be_nested_str_weak(config), + /* K15 */ be_nested_str_weak(_load_plugins_config), + /* K16 */ be_nested_str_weak(plugins_persist), + /* K17 */ be_nested_str_weak(io_error), + /* K18 */ be_nested_str_weak(tasmota), + /* K19 */ be_nested_str_weak(log), + /* K20 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Aload_X20Exception_X3A), + /* K21 */ be_nested_str_weak(_X7C), + /* K22 */ be_const_int(2), + /* K23 */ be_nested_str_weak(random), + /* K24 */ be_nested_str_weak(get), + /* K25 */ be_const_int(0), + /* K26 */ be_nested_str_weak(generate_random_passcode), + /* K27 */ be_nested_str_weak(save_param), + }), + be_str_weak(load_param), + &be_const_str_solidified, + ( &(const binstruction[91]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0xA8020028, // 0002 EXBLK 0 #002C + 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 + 0x8C1C0D08, // 001F GETMET R7 R6 K8 + 0x5824000E, // 0020 LDCONST R9 K14 + 0x7C1C0400, // 0021 CALL R7 2 + 0x90021A07, // 0022 SETMBR R0 K13 R7 + 0x881C010D, // 0023 GETMBR R7 R0 K13 + 0x781E0004, // 0024 JMPF R7 #002A + 0x8C1C010F, // 0025 GETMET R7 R0 K15 + 0x8824010D, // 0026 GETMBR R9 R0 K13 + 0x7C1C0400, // 0027 CALL R7 2 + 0x501C0200, // 0028 LDBOOL R7 1 0 + 0x90022007, // 0029 SETMBR R0 K16 R7 + 0xA8040001, // 002A EXBLK 1 1 + 0x70020012, // 002B JMP #003F + 0xAC0C0002, // 002C CATCH R3 0 2 + 0x7002000F, // 002D JMP #003E + 0x20140711, // 002E NE R5 R3 K17 + 0x7816000C, // 002F JMPF R5 #003D + 0xB8162400, // 0030 GETNGBL R5 K18 + 0x8C140B13, // 0031 GETMET R5 R5 K19 + 0x601C0008, // 0032 GETGBL R7 G8 + 0x5C200600, // 0033 MOVE R8 R3 + 0x7C1C0200, // 0034 CALL R7 1 + 0x001E2807, // 0035 ADD R7 K20 R7 + 0x001C0F15, // 0036 ADD R7 R7 K21 + 0x60200008, // 0037 GETGBL R8 G8 + 0x5C240800, // 0038 MOVE R9 R4 + 0x7C200200, // 0039 CALL R8 1 + 0x001C0E08, // 003A ADD R7 R7 R8 + 0x58200016, // 003B LDCONST R8 K22 + 0x7C140600, // 003C CALL R5 3 + 0x70020000, // 003D JMP #003F + 0xB0080000, // 003E RAISE 2 R0 R0 + 0x500C0000, // 003F LDBOOL R3 0 0 + 0x88100107, // 0040 GETMBR R4 R0 K7 + 0x4C140000, // 0041 LDNIL R5 + 0x1C100805, // 0042 EQ R4 R4 R5 + 0x7812000A, // 0043 JMPF R4 #004F + 0x8C100517, // 0044 GETMET R4 R2 K23 + 0x58180016, // 0045 LDCONST R6 K22 + 0x7C100400, // 0046 CALL R4 2 + 0x8C100918, // 0047 GETMET R4 R4 K24 + 0x58180019, // 0048 LDCONST R6 K25 + 0x581C0016, // 0049 LDCONST R7 K22 + 0x7C100600, // 004A CALL R4 3 + 0x54160FFE, // 004B LDINT R5 4095 + 0x2C100805, // 004C AND R4 R4 R5 + 0x90020E04, // 004D SETMBR R0 K7 R4 + 0x500C0200, // 004E LDBOOL R3 1 0 + 0x8810010A, // 004F GETMBR R4 R0 K10 + 0x4C140000, // 0050 LDNIL R5 + 0x1C100805, // 0051 EQ R4 R4 R5 + 0x78120003, // 0052 JMPF R4 #0057 + 0x8C10011A, // 0053 GETMET R4 R0 K26 + 0x7C100200, // 0054 CALL R4 1 + 0x90021404, // 0055 SETMBR R0 K10 R4 + 0x500C0200, // 0056 LDBOOL R3 1 0 + 0x780E0001, // 0057 JMPF R3 #005A + 0x8C10011B, // 0058 GETMET R4 R0 K27 + 0x7C100200, // 0059 CALL R4 1 + 0x80000000, // 005A RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: register_native_classes +********************************************************************/ +be_local_closure(Matter_Device_register_native_classes, /* name */ + be_nested_proto( + 9, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[28]) { /* constants */ + /* K0 */ be_nested_str_weak(register_plugin_class), + /* K1 */ be_nested_str_weak(root), + /* K2 */ be_nested_str_weak(matter), + /* K3 */ be_nested_str_weak(Plugin_Root), + /* K4 */ be_nested_str_weak(light0), + /* K5 */ be_nested_str_weak(Plugin_Light0), + /* K6 */ be_nested_str_weak(light1), + /* K7 */ be_nested_str_weak(Plugin_Light1), + /* K8 */ be_nested_str_weak(light2), + /* K9 */ be_nested_str_weak(Plugin_Light2), + /* K10 */ be_nested_str_weak(light3), + /* K11 */ be_nested_str_weak(Plugin_Light3), + /* K12 */ be_nested_str_weak(relay), + /* K13 */ be_nested_str_weak(Plugin_OnOff), + /* K14 */ be_nested_str_weak(temperature), + /* K15 */ be_nested_str_weak(Plugin_Sensor_Temp), + /* K16 */ be_nested_str_weak(humidity), + /* K17 */ be_nested_str_weak(Plugin_Sensor_Humidity), + /* K18 */ be_nested_str_weak(illuminance), + /* K19 */ be_nested_str_weak(Plugin_Sensor_Illuminance), + /* K20 */ be_nested_str_weak(pressure), + /* K21 */ be_nested_str_weak(Plugin_Sensor_Pressure), + /* K22 */ be_nested_str_weak(tasmota), + /* K23 */ be_nested_str_weak(log), + /* K24 */ be_nested_str_weak(MTR_X3A_X20registered_X20classes_X20), + /* K25 */ be_nested_str_weak(k2l), + /* K26 */ be_nested_str_weak(plugins_classes), + /* K27 */ be_const_int(3), + }), + be_str_weak(register_native_classes), + &be_const_str_solidified, + ( &(const binstruction[61]) { /* code */ + 0x8C0C0100, // 0000 GETMET R3 R0 K0 + 0x58140001, // 0001 LDCONST R5 K1 + 0xB81A0400, // 0002 GETNGBL R6 K2 + 0x88180D03, // 0003 GETMBR R6 R6 K3 + 0x7C0C0600, // 0004 CALL R3 3 + 0x8C0C0100, // 0005 GETMET R3 R0 K0 + 0x58140004, // 0006 LDCONST R5 K4 + 0xB81A0400, // 0007 GETNGBL R6 K2 + 0x88180D05, // 0008 GETMBR R6 R6 K5 + 0x7C0C0600, // 0009 CALL R3 3 + 0x8C0C0100, // 000A GETMET R3 R0 K0 + 0x58140006, // 000B LDCONST R5 K6 + 0xB81A0400, // 000C GETNGBL R6 K2 + 0x88180D07, // 000D GETMBR R6 R6 K7 + 0x7C0C0600, // 000E CALL R3 3 + 0x8C0C0100, // 000F GETMET R3 R0 K0 + 0x58140008, // 0010 LDCONST R5 K8 + 0xB81A0400, // 0011 GETNGBL R6 K2 + 0x88180D09, // 0012 GETMBR R6 R6 K9 + 0x7C0C0600, // 0013 CALL R3 3 + 0x8C0C0100, // 0014 GETMET R3 R0 K0 + 0x5814000A, // 0015 LDCONST R5 K10 + 0xB81A0400, // 0016 GETNGBL R6 K2 + 0x88180D0B, // 0017 GETMBR R6 R6 K11 + 0x7C0C0600, // 0018 CALL R3 3 + 0x8C0C0100, // 0019 GETMET R3 R0 K0 + 0x5814000C, // 001A LDCONST R5 K12 + 0xB81A0400, // 001B GETNGBL R6 K2 + 0x88180D0D, // 001C GETMBR R6 R6 K13 + 0x7C0C0600, // 001D CALL R3 3 + 0x8C0C0100, // 001E GETMET R3 R0 K0 + 0x5814000E, // 001F LDCONST R5 K14 + 0xB81A0400, // 0020 GETNGBL R6 K2 + 0x88180D0F, // 0021 GETMBR R6 R6 K15 + 0x7C0C0600, // 0022 CALL R3 3 + 0x8C0C0100, // 0023 GETMET R3 R0 K0 + 0x58140010, // 0024 LDCONST R5 K16 + 0xB81A0400, // 0025 GETNGBL R6 K2 + 0x88180D11, // 0026 GETMBR R6 R6 K17 + 0x7C0C0600, // 0027 CALL R3 3 + 0x8C0C0100, // 0028 GETMET R3 R0 K0 + 0x58140012, // 0029 LDCONST R5 K18 + 0xB81A0400, // 002A GETNGBL R6 K2 + 0x88180D13, // 002B GETMBR R6 R6 K19 + 0x7C0C0600, // 002C CALL R3 3 + 0x8C0C0100, // 002D GETMET R3 R0 K0 + 0x58140014, // 002E LDCONST R5 K20 + 0xB81A0400, // 002F GETNGBL R6 K2 + 0x88180D15, // 0030 GETMBR R6 R6 K21 + 0x7C0C0600, // 0031 CALL R3 3 + 0xB80E2C00, // 0032 GETNGBL R3 K22 + 0x8C0C0717, // 0033 GETMET R3 R3 K23 + 0x60140008, // 0034 GETGBL R5 G8 + 0x8C180119, // 0035 GETMET R6 R0 K25 + 0x8820011A, // 0036 GETMBR R8 R0 K26 + 0x7C180400, // 0037 CALL R6 2 + 0x7C140200, // 0038 CALL R5 1 + 0x00163005, // 0039 ADD R5 K24 R5 + 0x5818001B, // 003A LDCONST R6 K27 + 0x7C0C0600, // 003B CALL R3 3 + 0x80000000, // 003C RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: _mdns_announce_hostname +********************************************************************/ +be_local_closure(Matter_Device__mdns_announce_hostname, /* name */ + be_nested_proto( + 16, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[28]) { /* constants */ + /* K0 */ be_nested_str_weak(mdns), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(start), + /* K3 */ be_nested_str_weak(tasmota), + /* K4 */ be_nested_str_weak(eth), + /* K5 */ be_nested_str_weak(hostname_eth), + /* K6 */ be_nested_str_weak(replace), + /* K7 */ be_nested_str_weak(find), + /* K8 */ be_nested_str_weak(mac), + /* K9 */ be_nested_str_weak(_X3A), + /* K10 */ be_nested_str_weak(), + /* K11 */ be_nested_str_weak(ipv4only), + /* K12 */ be_nested_str_weak(log), + /* K13 */ be_nested_str_weak(format), + /* K14 */ be_nested_str_weak(MTR_X3A_X20calling_X20mdns_X2Eadd_hostname_X28_X25s_X2C_X20_X25s_X2C_X20_X25s_X29), + /* K15 */ be_nested_str_weak(ip6local), + /* K16 */ be_nested_str_weak(ip), + /* K17 */ be_const_int(3), + /* K18 */ be_nested_str_weak(add_hostname), + /* K19 */ be_nested_str_weak(ip6), + /* K20 */ be_nested_str_weak(MTR_X3A_X20calling_X20mdns_X2Eadd_hostname_X28_X25s_X2C_X20_X25s_X29), + /* K21 */ be_nested_str_weak(wifi), + /* K22 */ be_nested_str_weak(hostname_wifi), + /* K23 */ be_nested_str_weak(MTR_X3A_X20start_X20mDNS_X20on_X20_X25s_X20host_X20_X27_X25s_X2Elocal_X27), + /* K24 */ be_const_int(2), + /* K25 */ be_nested_str_weak(MTR_X3A_X20Exception), + /* K26 */ be_nested_str_weak(_X7C), + /* K27 */ be_nested_str_weak(mdns_announce_op_discovery_all_fabrics), + }), + be_str_weak(_mdns_announce_hostname), + &be_const_str_solidified, + ( &(const binstruction[172]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0xA40E0200, // 0001 IMPORT R3 K1 + 0x8C100502, // 0002 GETMET R4 R2 K2 + 0x7C100200, // 0003 CALL R4 1 + 0xA8020092, // 0004 EXBLK 0 #0098 + 0x78060040, // 0005 JMPF R1 #0047 + 0xB8120600, // 0006 GETNGBL R4 K3 + 0x8C100904, // 0007 GETMET R4 R4 K4 + 0x7C100200, // 0008 CALL R4 1 + 0x8C140706, // 0009 GETMET R5 R3 K6 + 0x8C1C0907, // 000A GETMET R7 R4 K7 + 0x58240008, // 000B LDCONST R9 K8 + 0x7C1C0400, // 000C CALL R7 2 + 0x58200009, // 000D LDCONST R8 K9 + 0x5824000A, // 000E LDCONST R9 K10 + 0x7C140800, // 000F CALL R5 4 + 0x90020A05, // 0010 SETMBR R0 K5 R5 + 0x8814010B, // 0011 GETMBR R5 R0 K11 + 0x7416001F, // 0012 JMPT R5 #0033 + 0xB8160600, // 0013 GETNGBL R5 K3 + 0x8C140B0C, // 0014 GETMET R5 R5 K12 + 0x8C1C070D, // 0015 GETMET R7 R3 K13 + 0x5824000E, // 0016 LDCONST R9 K14 + 0x88280105, // 0017 GETMBR R10 R0 K5 + 0x8C2C0907, // 0018 GETMET R11 R4 K7 + 0x5834000F, // 0019 LDCONST R13 K15 + 0x5838000A, // 001A LDCONST R14 K10 + 0x7C2C0600, // 001B CALL R11 3 + 0x8C300907, // 001C GETMET R12 R4 K7 + 0x58380010, // 001D LDCONST R14 K16 + 0x583C000A, // 001E LDCONST R15 K10 + 0x7C300600, // 001F CALL R12 3 + 0x7C1C0A00, // 0020 CALL R7 5 + 0x58200011, // 0021 LDCONST R8 K17 + 0x7C140600, // 0022 CALL R5 3 + 0x8C140512, // 0023 GETMET R5 R2 K18 + 0x881C0105, // 0024 GETMBR R7 R0 K5 + 0x8C200907, // 0025 GETMET R8 R4 K7 + 0x5828000F, // 0026 LDCONST R10 K15 + 0x582C000A, // 0027 LDCONST R11 K10 + 0x7C200600, // 0028 CALL R8 3 + 0x8C240907, // 0029 GETMET R9 R4 K7 + 0x582C0010, // 002A LDCONST R11 K16 + 0x5830000A, // 002B LDCONST R12 K10 + 0x7C240600, // 002C CALL R9 3 + 0x8C280907, // 002D GETMET R10 R4 K7 + 0x58300013, // 002E LDCONST R12 K19 + 0x5834000A, // 002F LDCONST R13 K10 + 0x7C280600, // 0030 CALL R10 3 + 0x7C140A00, // 0031 CALL R5 5 + 0x70020012, // 0032 JMP #0046 + 0xB8160600, // 0033 GETNGBL R5 K3 + 0x8C140B0C, // 0034 GETMET R5 R5 K12 + 0x8C1C070D, // 0035 GETMET R7 R3 K13 + 0x58240014, // 0036 LDCONST R9 K20 + 0x88280105, // 0037 GETMBR R10 R0 K5 + 0x8C2C0907, // 0038 GETMET R11 R4 K7 + 0x58340010, // 0039 LDCONST R13 K16 + 0x5838000A, // 003A LDCONST R14 K10 + 0x7C2C0600, // 003B CALL R11 3 + 0x7C1C0800, // 003C CALL R7 4 + 0x58200011, // 003D LDCONST R8 K17 + 0x7C140600, // 003E CALL R5 3 + 0x8C140512, // 003F GETMET R5 R2 K18 + 0x881C0105, // 0040 GETMBR R7 R0 K5 + 0x8C200907, // 0041 GETMET R8 R4 K7 + 0x58280010, // 0042 LDCONST R10 K16 + 0x582C000A, // 0043 LDCONST R11 K10 + 0x7C200600, // 0044 CALL R8 3 + 0x7C140600, // 0045 CALL R5 3 + 0x7002003F, // 0046 JMP #0087 + 0xB8120600, // 0047 GETNGBL R4 K3 + 0x8C100915, // 0048 GETMET R4 R4 K21 + 0x7C100200, // 0049 CALL R4 1 + 0x8C140706, // 004A GETMET R5 R3 K6 + 0x8C1C0907, // 004B GETMET R7 R4 K7 + 0x58240008, // 004C LDCONST R9 K8 + 0x7C1C0400, // 004D CALL R7 2 + 0x58200009, // 004E LDCONST R8 K9 + 0x5824000A, // 004F LDCONST R9 K10 + 0x7C140800, // 0050 CALL R5 4 + 0x90022C05, // 0051 SETMBR R0 K22 R5 + 0x8814010B, // 0052 GETMBR R5 R0 K11 + 0x7416001F, // 0053 JMPT R5 #0074 + 0xB8160600, // 0054 GETNGBL R5 K3 + 0x8C140B0C, // 0055 GETMET R5 R5 K12 + 0x8C1C070D, // 0056 GETMET R7 R3 K13 + 0x5824000E, // 0057 LDCONST R9 K14 + 0x88280116, // 0058 GETMBR R10 R0 K22 + 0x8C2C0907, // 0059 GETMET R11 R4 K7 + 0x5834000F, // 005A LDCONST R13 K15 + 0x5838000A, // 005B LDCONST R14 K10 + 0x7C2C0600, // 005C CALL R11 3 + 0x8C300907, // 005D GETMET R12 R4 K7 + 0x58380010, // 005E LDCONST R14 K16 + 0x583C000A, // 005F LDCONST R15 K10 + 0x7C300600, // 0060 CALL R12 3 + 0x7C1C0A00, // 0061 CALL R7 5 + 0x58200011, // 0062 LDCONST R8 K17 + 0x7C140600, // 0063 CALL R5 3 + 0x8C140512, // 0064 GETMET R5 R2 K18 + 0x881C0116, // 0065 GETMBR R7 R0 K22 + 0x8C200907, // 0066 GETMET R8 R4 K7 + 0x5828000F, // 0067 LDCONST R10 K15 + 0x582C000A, // 0068 LDCONST R11 K10 + 0x7C200600, // 0069 CALL R8 3 + 0x8C240907, // 006A GETMET R9 R4 K7 + 0x582C0010, // 006B LDCONST R11 K16 + 0x5830000A, // 006C LDCONST R12 K10 + 0x7C240600, // 006D CALL R9 3 + 0x8C280907, // 006E GETMET R10 R4 K7 + 0x58300013, // 006F LDCONST R12 K19 + 0x5834000A, // 0070 LDCONST R13 K10 + 0x7C280600, // 0071 CALL R10 3 + 0x7C140A00, // 0072 CALL R5 5 + 0x70020012, // 0073 JMP #0087 + 0xB8160600, // 0074 GETNGBL R5 K3 + 0x8C140B0C, // 0075 GETMET R5 R5 K12 + 0x8C1C070D, // 0076 GETMET R7 R3 K13 + 0x58240014, // 0077 LDCONST R9 K20 + 0x88280105, // 0078 GETMBR R10 R0 K5 + 0x8C2C0907, // 0079 GETMET R11 R4 K7 + 0x58340010, // 007A LDCONST R13 K16 + 0x5838000A, // 007B LDCONST R14 K10 + 0x7C2C0600, // 007C CALL R11 3 + 0x7C1C0800, // 007D CALL R7 4 + 0x58200011, // 007E LDCONST R8 K17 + 0x7C140600, // 007F CALL R5 3 + 0x8C140512, // 0080 GETMET R5 R2 K18 + 0x881C0116, // 0081 GETMBR R7 R0 K22 + 0x8C200907, // 0082 GETMET R8 R4 K7 + 0x58280010, // 0083 LDCONST R10 K16 + 0x582C000A, // 0084 LDCONST R11 K10 + 0x7C200600, // 0085 CALL R8 3 + 0x7C140600, // 0086 CALL R5 3 + 0xB8120600, // 0087 GETNGBL R4 K3 + 0x8C10090C, // 0088 GETMET R4 R4 K12 + 0x8C18070D, // 0089 GETMET R6 R3 K13 + 0x58200017, // 008A LDCONST R8 K23 + 0x78060001, // 008B JMPF R1 #008E + 0x58240004, // 008C LDCONST R9 K4 + 0x70020000, // 008D JMP #008F + 0x58240015, // 008E LDCONST R9 K21 + 0x78060001, // 008F JMPF R1 #0092 + 0x88280105, // 0090 GETMBR R10 R0 K5 + 0x70020000, // 0091 JMP #0093 + 0x88280116, // 0092 GETMBR R10 R0 K22 + 0x7C180800, // 0093 CALL R6 4 + 0x581C0018, // 0094 LDCONST R7 K24 + 0x7C100600, // 0095 CALL R4 3 + 0xA8040001, // 0096 EXBLK 1 1 + 0x70020010, // 0097 JMP #00A9 + 0xAC100002, // 0098 CATCH R4 0 2 + 0x7002000D, // 0099 JMP #00A8 + 0xB81A0600, // 009A GETNGBL R6 K3 + 0x8C180D0C, // 009B GETMET R6 R6 K12 + 0x60200008, // 009C GETGBL R8 G8 + 0x5C240800, // 009D MOVE R9 R4 + 0x7C200200, // 009E CALL R8 1 + 0x00223208, // 009F ADD R8 K25 R8 + 0x0020111A, // 00A0 ADD R8 R8 K26 + 0x60240008, // 00A1 GETGBL R9 G8 + 0x5C280A00, // 00A2 MOVE R10 R5 + 0x7C240200, // 00A3 CALL R9 1 + 0x00201009, // 00A4 ADD R8 R8 R9 + 0x58240018, // 00A5 LDCONST R9 K24 + 0x7C180600, // 00A6 CALL R6 3 + 0x70020000, // 00A7 JMP #00A9 + 0xB0080000, // 00A8 RAISE 2 R0 R0 + 0x8C10011B, // 00A9 GETMET R4 R0 K27 + 0x7C100200, // 00AA CALL R4 1 + 0x80000000, // 00AB RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** 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: event_fabrics_saved +********************************************************************/ +be_local_closure(Matter_Device_event_fabrics_saved, /* name */ be_nested_proto( 3, /* nstack */ 1, /* argc */ @@ -2454,23 +2023,66 @@ be_local_closure(Matter_Device__init_basic_commissioning, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(sessions), + /* K1 */ be_nested_str_weak(count_active_fabrics), + /* K2 */ be_const_int(0), + /* K3 */ be_nested_str_weak(plugins_persist), + /* K4 */ be_nested_str_weak(save_param), + }), + be_str_weak(event_fabrics_saved), + &be_const_str_solidified, + ( &(const binstruction[12]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x7C040200, // 0002 CALL R1 1 + 0x24040302, // 0003 GT R1 R1 K2 + 0x78060005, // 0004 JMPF R1 #000B + 0x88040103, // 0005 GETMBR R1 R0 K3 + 0x74060003, // 0006 JMPT R1 #000B + 0x50040200, // 0007 LDBOOL R1 1 0 + 0x90020601, // 0008 SETMBR R0 K3 R1 + 0x8C040104, // 0009 GETMET R1 R0 K4 + 0x7C040200, // 000A CALL R1 1 + 0x80000000, // 000B RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: stop +********************************************************************/ +be_local_closure(Matter_Device_stop, /* 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[ 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), + /* K0 */ be_nested_str_weak(tasmota), + /* K1 */ be_nested_str_weak(remove_driver), + /* K2 */ be_nested_str_weak(udp_server), + /* K3 */ be_nested_str_weak(stop), }), - be_str_weak(_init_basic_commissioning), + be_str_weak(stop), &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 + ( &(const binstruction[10]) { /* code */ + 0xB8060000, // 0000 GETNGBL R1 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 + 0x5C0C0000, // 0002 MOVE R3 R0 + 0x7C040400, // 0003 CALL R1 2 + 0x88040102, // 0004 GETMBR R1 R0 K2 + 0x78060002, // 0005 JMPF R1 #0009 + 0x88040102, // 0006 GETMBR R1 R0 K2 + 0x8C040303, // 0007 GETMET R1 R1 K3 + 0x7C040200, // 0008 CALL R1 1 + 0x80000000, // 0009 RET 0 }) ) ); @@ -2478,11 +2090,11 @@ be_local_closure(Matter_Device__init_basic_commissioning, /* name */ /******************************************************************** -** Solidified function: save_before_restart +** Solidified function: stop_basic_commissioning ********************************************************************/ -be_local_closure(Matter_Device_save_before_restart, /* name */ +be_local_closure(Matter_Device_stop_basic_commissioning, /* name */ be_nested_proto( - 3, /* nstack */ + 5, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -2490,68 +2102,49 @@ be_local_closure(Matter_Device_save_before_restart, /* name */ 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), + ( &(const bvalue[13]) { /* constants */ + /* K0 */ be_nested_str_weak(is_root_commissioning_open), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(publish_result), + /* K3 */ be_nested_str_weak(_X7B_X22Matter_X22_X3A_X7B_X22Commissioning_X22_X3A0_X7D_X7D), + /* K4 */ be_nested_str_weak(Matter), + /* K5 */ be_nested_str_weak(commissioning_open), + /* K6 */ be_nested_str_weak(mdns_remove_PASE), + /* K7 */ be_nested_str_weak(commissioning_iterations), + /* K8 */ be_nested_str_weak(commissioning_discriminator), + /* K9 */ be_nested_str_weak(commissioning_salt), + /* K10 */ be_nested_str_weak(commissioning_w0), + /* K11 */ be_nested_str_weak(commissioning_L), + /* K12 */ be_nested_str_weak(commissioning_admin_fabric), }), - be_str_weak(save_before_restart), + be_str_weak(stop_basic_commissioning), &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ + ( &(const binstruction[25]) { /* 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: start_operational_discovery -********************************************************************/ -be_local_closure(Matter_Device_start_operational_discovery, /* 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[ 9]) { /* constants */ - /* K0 */ be_nested_str_weak(crypto), - /* K1 */ be_nested_str_weak(mdns), - /* K2 */ be_nested_str_weak(string), - /* K3 */ be_nested_str_weak(stop_basic_commissioning), - /* K4 */ be_nested_str_weak(root_w0), - /* K5 */ be_nested_str_weak(root_L), - /* K6 */ be_nested_str_weak(set_expire_in_seconds), - /* K7 */ be_nested_str_weak(mdns_announce_op_discovery), - /* K8 */ be_nested_str_weak(get_fabric), - }), - be_str_weak(start_operational_discovery), - &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0xA40E0200, // 0001 IMPORT R3 K1 - 0xA4120400, // 0002 IMPORT R4 K2 - 0x8C140103, // 0003 GETMET R5 R0 K3 - 0x7C140200, // 0004 CALL R5 1 - 0x4C140000, // 0005 LDNIL R5 - 0x90020805, // 0006 SETMBR R0 K4 R5 - 0x4C140000, // 0007 LDNIL R5 - 0x90020A05, // 0008 SETMBR R0 K5 R5 - 0x8C140306, // 0009 GETMET R5 R1 K6 - 0x541E003B, // 000A LDINT R7 60 - 0x7C140400, // 000B CALL R5 2 - 0x8C140107, // 000C GETMET R5 R0 K7 - 0x8C1C0308, // 000D GETMET R7 R1 K8 - 0x7C1C0200, // 000E CALL R7 1 - 0x7C140400, // 000F CALL R5 2 - 0x80000000, // 0010 RET 0 + 0x78060004, // 0002 JMPF R1 #0008 + 0xB8060200, // 0003 GETNGBL R1 K1 + 0x8C040302, // 0004 GETMET R1 R1 K2 + 0x580C0003, // 0005 LDCONST R3 K3 + 0x58100004, // 0006 LDCONST R4 K4 + 0x7C040600, // 0007 CALL R1 3 + 0x4C040000, // 0008 LDNIL R1 + 0x90020A01, // 0009 SETMBR R0 K5 R1 + 0x8C040106, // 000A GETMET R1 R0 K6 + 0x7C040200, // 000B CALL R1 1 + 0x4C040000, // 000C LDNIL R1 + 0x90020E01, // 000D SETMBR R0 K7 R1 + 0x4C040000, // 000E LDNIL R1 + 0x90021001, // 000F SETMBR R0 K8 R1 + 0x4C040000, // 0010 LDNIL R1 + 0x90021201, // 0011 SETMBR R0 K9 R1 + 0x4C040000, // 0012 LDNIL R1 + 0x90021401, // 0013 SETMBR R0 K10 R1 + 0x4C040000, // 0014 LDNIL R1 + 0x90021601, // 0015 SETMBR R0 K11 R1 + 0x4C040000, // 0016 LDNIL R1 + 0x90021801, // 0017 SETMBR R0 K12 R1 + 0x80000000, // 0018 RET 0 }) ) ); @@ -2702,12 +2295,12 @@ be_local_closure(Matter_Device_start_basic_commissioning, /* name */ /******************************************************************** -** Solidified function: msg_received +** Solidified function: msg_send ********************************************************************/ -be_local_closure(Matter_Device_msg_received, /* name */ +be_local_closure(Matter_Device_msg_send, /* name */ be_nested_proto( - 9, /* nstack */ - 4, /* argc */ + 5, /* nstack */ + 2, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ @@ -2715,19 +2308,17 @@ be_local_closure(Matter_Device_msg_received, /* name */ 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), + /* K0 */ be_nested_str_weak(udp_server), + /* K1 */ be_nested_str_weak(send_UDP), }), - be_str_weak(msg_received), + be_str_weak(msg_send), &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x88100100, // 0000 GETMBR R4 R0 K0 - 0x8C100901, // 0001 GETMET R4 R4 K1 - 0x5C180200, // 0002 MOVE R6 R1 - 0x5C1C0400, // 0003 MOVE R7 R2 - 0x5C200600, // 0004 MOVE R8 R3 - 0x7C100800, // 0005 CALL R4 4 - 0x80040800, // 0006 RET 1 R4 + ( &(const binstruction[ 5]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x5C100200, // 0002 MOVE R4 R1 + 0x7C080400, // 0003 CALL R2 2 + 0x80040400, // 0004 RET 1 R2 }) ) ); @@ -2735,9 +2326,9 @@ be_local_closure(Matter_Device_msg_received, /* name */ /******************************************************************** -** Solidified function: _start_udp +** Solidified function: start_commissioning_complete_deferred ********************************************************************/ -be_local_closure(Matter_Device__start_udp, /* name */ +be_local_closure(Matter_Device_start_commissioning_complete_deferred, /* name */ be_nested_proto( 6, /* nstack */ 2, /* argc */ @@ -2747,74 +2338,47 @@ be_local_closure(Matter_Device__start_udp, /* name */ 1, /* has sup protos */ ( &(const struct bproto*[ 1]) { be_nested_proto( - 8, /* nstack */ - 3, /* argc */ + 3, /* nstack */ + 0, /* argc */ 0, /* varg */ 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* 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(msg_received), + /* K0 */ be_nested_str_weak(start_commissioning_complete), }), 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 + ( &(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[ 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), + ( &(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_udp), + be_str_weak(start_commissioning_complete_deferred), &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 + ( &(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 }) ) ); @@ -2822,140 +2386,11 @@ be_local_closure(Matter_Device__start_udp, /* name */ /******************************************************************** -** Solidified function: mdns_remove_op_discovery +** Solidified function: is_root_commissioning_open ********************************************************************/ -be_local_closure(Matter_Device_mdns_remove_op_discovery, /* name */ +be_local_closure(Matter_Device_is_root_commissioning_open, /* 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(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 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: load_param -********************************************************************/ -be_local_closure(Matter_Device_load_param, /* name */ - be_nested_proto( - 12, /* nstack */ + 3, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -2963,126 +2398,24 @@ be_local_closure(Matter_Device_load_param, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[27]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(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(config), - /* K14 */ be_nested_str_weak(_load_plugins_config), - /* K15 */ be_nested_str_weak(plugins_persist), - /* K16 */ be_nested_str_weak(io_error), - /* K17 */ be_nested_str_weak(tasmota), - /* K18 */ be_nested_str_weak(log), - /* K19 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Aload_X20Exception_X3A), - /* K20 */ be_nested_str_weak(_X7C), - /* K21 */ be_const_int(2), - /* K22 */ be_nested_str_weak(random), - /* K23 */ be_nested_str_weak(get), - /* K24 */ be_const_int(0), - /* K25 */ be_nested_str_weak(PASSCODE_DEFAULT), - /* K26 */ be_nested_str_weak(save_param), + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(commissioning_open), + /* K1 */ be_nested_str_weak(commissioning_admin_fabric), }), - be_str_weak(load_param), + be_str_weak(is_root_commissioning_open), &be_const_str_solidified, - ( &(const binstruction[88]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0xA8020026, // 0002 EXBLK 0 #002A - 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 - 0x8C1C0D08, // 001F GETMET R7 R6 K8 - 0x5824000D, // 0020 LDCONST R9 K13 - 0x7C1C0400, // 0021 CALL R7 2 - 0x781E0004, // 0022 JMPF R7 #0028 - 0x8C20010E, // 0023 GETMET R8 R0 K14 - 0x5C280E00, // 0024 MOVE R10 R7 - 0x7C200400, // 0025 CALL R8 2 - 0x50200200, // 0026 LDBOOL R8 1 0 - 0x90021E08, // 0027 SETMBR R0 K15 R8 - 0xA8040001, // 0028 EXBLK 1 1 - 0x70020012, // 0029 JMP #003D - 0xAC0C0002, // 002A CATCH R3 0 2 - 0x7002000F, // 002B JMP #003C - 0x20140710, // 002C NE R5 R3 K16 - 0x7816000C, // 002D JMPF R5 #003B - 0xB8162200, // 002E GETNGBL R5 K17 - 0x8C140B12, // 002F GETMET R5 R5 K18 - 0x601C0008, // 0030 GETGBL R7 G8 - 0x5C200600, // 0031 MOVE R8 R3 - 0x7C1C0200, // 0032 CALL R7 1 - 0x001E2607, // 0033 ADD R7 K19 R7 - 0x001C0F14, // 0034 ADD R7 R7 K20 - 0x60200008, // 0035 GETGBL R8 G8 - 0x5C240800, // 0036 MOVE R9 R4 - 0x7C200200, // 0037 CALL R8 1 - 0x001C0E08, // 0038 ADD R7 R7 R8 - 0x58200015, // 0039 LDCONST R8 K21 - 0x7C140600, // 003A CALL R5 3 - 0x70020000, // 003B JMP #003D - 0xB0080000, // 003C RAISE 2 R0 R0 - 0x500C0000, // 003D LDBOOL R3 0 0 - 0x88100107, // 003E GETMBR R4 R0 K7 - 0x4C140000, // 003F LDNIL R5 - 0x1C100805, // 0040 EQ R4 R4 R5 - 0x7812000A, // 0041 JMPF R4 #004D - 0x8C100516, // 0042 GETMET R4 R2 K22 - 0x58180015, // 0043 LDCONST R6 K21 - 0x7C100400, // 0044 CALL R4 2 - 0x8C100917, // 0045 GETMET R4 R4 K23 - 0x58180018, // 0046 LDCONST R6 K24 - 0x581C0015, // 0047 LDCONST R7 K21 - 0x7C100600, // 0048 CALL R4 3 - 0x54160FFE, // 0049 LDINT R5 4095 - 0x2C100805, // 004A AND R4 R4 R5 - 0x90020E04, // 004B SETMBR R0 K7 R4 - 0x500C0200, // 004C LDBOOL R3 1 0 - 0x8810010A, // 004D GETMBR R4 R0 K10 - 0x4C140000, // 004E LDNIL R5 - 0x1C100805, // 004F EQ R4 R4 R5 - 0x78120002, // 0050 JMPF R4 #0054 - 0x88100119, // 0051 GETMBR R4 R0 K25 - 0x90021404, // 0052 SETMBR R0 K10 R4 - 0x500C0200, // 0053 LDBOOL R3 1 0 - 0x780E0001, // 0054 JMPF R3 #0057 - 0x8C10011A, // 0055 GETMET R4 R0 K26 - 0x7C100200, // 0056 CALL R4 1 - 0x80000000, // 0057 RET 0 + ( &(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 }) ) ); @@ -3273,6 +2606,78 @@ be_local_closure(Matter_Device__load_plugins_config, /* name */ /*******************************************************************/ +/******************************************************************** +** 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: MtrJoin +********************************************************************/ +be_local_closure(Matter_Device_MtrJoin, /* name */ + be_nested_proto( + 8, /* nstack */ + 5, /* 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(start_root_basic_commissioning), + /* K1 */ be_nested_str_weak(stop_basic_commissioning), + /* K2 */ be_nested_str_weak(tasmota), + /* K3 */ be_nested_str_weak(resp_cmnd_done), + }), + be_str_weak(MtrJoin), + &be_const_str_solidified, + ( &(const binstruction[13]) { /* code */ + 0x60140009, // 0000 GETGBL R5 G9 + 0x5C180600, // 0001 MOVE R6 R3 + 0x7C140200, // 0002 CALL R5 1 + 0x78160002, // 0003 JMPF R5 #0007 + 0x8C180100, // 0004 GETMET R6 R0 K0 + 0x7C180200, // 0005 CALL R6 1 + 0x70020001, // 0006 JMP #0009 + 0x8C180101, // 0007 GETMET R6 R0 K1 + 0x7C180200, // 0008 CALL R6 1 + 0xB81A0400, // 0009 GETNGBL R6 K2 + 0x8C180D03, // 000A GETMET R6 R6 K3 + 0x7C180200, // 000B CALL R6 1 + 0x80000000, // 000C RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: autoconf_device_map ********************************************************************/ @@ -3648,11 +3053,11 @@ be_local_closure(Matter_Device_remove_fabric, /* name */ /******************************************************************** -** Solidified function: every_second +** Solidified function: _init_basic_commissioning ********************************************************************/ -be_local_closure(Matter_Device_every_second, /* name */ +be_local_closure(Matter_Device__init_basic_commissioning, /* name */ be_nested_proto( - 4, /* nstack */ + 3, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -3660,50 +3065,23 @@ be_local_closure(Matter_Device_every_second, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 9]) { /* constants */ + ( &(const bvalue[ 4]) { /* 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), + /* 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(every_second), + be_str_weak(_init_basic_commissioning), &be_const_str_solidified, - ( &(const binstruction[30]) { /* code */ + ( &(const binstruction[ 8]) { /* 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 + 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 }) ) ); @@ -3711,57 +3089,563 @@ be_local_closure(Matter_Device_every_second, /* name */ /******************************************************************** -** Solidified function: get_active_endpoints +** Solidified function: every_250ms ********************************************************************/ -be_local_closure(Matter_Device_get_active_endpoints, /* name */ +be_local_closure(Matter_Device_every_250ms, /* name */ be_nested_proto( - 9, /* nstack */ - 2, /* argc */ + 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[ 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[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(message_handler), + /* K1 */ be_nested_str_weak(every_250ms), }), - be_str_weak(get_active_endpoints), + be_str_weak(every_250ms), &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[ 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: mdns_remove_PASE +********************************************************************/ +be_local_closure(Matter_Device_mdns_remove_PASE, /* 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[22]) { /* constants */ + /* K0 */ be_nested_str_weak(mdns), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(mdns_pase_eth), + /* 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_X20calling_X20mdns_X2Eremove_service_X28_X25s_X2C_X20_X25s_X2C_X20_X25s_X2C_X20_X25s_X29), + /* K7 */ be_nested_str_weak(_matterc), + /* K8 */ be_nested_str_weak(_udp), + /* K9 */ be_nested_str_weak(commissioning_instance_eth), + /* K10 */ be_nested_str_weak(hostname_eth), + /* K11 */ be_const_int(3), + /* K12 */ be_nested_str_weak(MTR_X3A_X20remove_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27), + /* K13 */ be_nested_str_weak(eth), + /* K14 */ be_const_int(2), + /* K15 */ be_nested_str_weak(remove_service), + /* K16 */ be_nested_str_weak(mdns_pase_wifi), + /* K17 */ be_nested_str_weak(commissioning_instance_wifi), + /* K18 */ be_nested_str_weak(hostname_wifi), + /* K19 */ be_nested_str_weak(wifi), + /* K20 */ be_nested_str_weak(MTR_X3A_X20Exception), + /* K21 */ be_nested_str_weak(_X7C), + }), + be_str_weak(mdns_remove_PASE), + &be_const_str_solidified, + ( &(const binstruction[83]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0xA802003D, // 0002 EXBLK 0 #0041 + 0x880C0102, // 0003 GETMBR R3 R0 K2 + 0x780E001B, // 0004 JMPF R3 #0021 + 0xB80E0600, // 0005 GETNGBL R3 K3 + 0x8C0C0704, // 0006 GETMET R3 R3 K4 + 0x8C140505, // 0007 GETMET R5 R2 K5 + 0x581C0006, // 0008 LDCONST R7 K6 + 0x58200007, // 0009 LDCONST R8 K7 + 0x58240008, // 000A LDCONST R9 K8 + 0x88280109, // 000B GETMBR R10 R0 K9 + 0x882C010A, // 000C GETMBR R11 R0 K10 + 0x7C140C00, // 000D CALL R5 6 + 0x5818000B, // 000E LDCONST R6 K11 + 0x7C0C0600, // 000F CALL R3 3 + 0xB80E0600, // 0010 GETNGBL R3 K3 + 0x8C0C0704, // 0011 GETMET R3 R3 K4 + 0x8C140505, // 0012 GETMET R5 R2 K5 + 0x581C000C, // 0013 LDCONST R7 K12 + 0x5820000D, // 0014 LDCONST R8 K13 + 0x88240109, // 0015 GETMBR R9 R0 K9 + 0x7C140800, // 0016 CALL R5 4 + 0x5818000E, // 0017 LDCONST R6 K14 + 0x7C0C0600, // 0018 CALL R3 3 + 0x500C0000, // 0019 LDBOOL R3 0 0 + 0x90020403, // 001A SETMBR R0 K2 R3 + 0x8C0C030F, // 001B GETMET R3 R1 K15 + 0x58140007, // 001C LDCONST R5 K7 + 0x58180008, // 001D LDCONST R6 K8 + 0x881C0109, // 001E GETMBR R7 R0 K9 + 0x8820010A, // 001F GETMBR R8 R0 K10 + 0x7C0C0A00, // 0020 CALL R3 5 + 0x880C0110, // 0021 GETMBR R3 R0 K16 + 0x780E001B, // 0022 JMPF R3 #003F + 0xB80E0600, // 0023 GETNGBL R3 K3 + 0x8C0C0704, // 0024 GETMET R3 R3 K4 + 0x8C140505, // 0025 GETMET R5 R2 K5 + 0x581C0006, // 0026 LDCONST R7 K6 + 0x58200007, // 0027 LDCONST R8 K7 + 0x58240008, // 0028 LDCONST R9 K8 + 0x88280111, // 0029 GETMBR R10 R0 K17 + 0x882C0112, // 002A GETMBR R11 R0 K18 + 0x7C140C00, // 002B CALL R5 6 + 0x5818000B, // 002C LDCONST R6 K11 + 0x7C0C0600, // 002D CALL R3 3 + 0xB80E0600, // 002E GETNGBL R3 K3 + 0x8C0C0704, // 002F GETMET R3 R3 K4 + 0x8C140505, // 0030 GETMET R5 R2 K5 + 0x581C000C, // 0031 LDCONST R7 K12 + 0x58200013, // 0032 LDCONST R8 K19 + 0x88240111, // 0033 GETMBR R9 R0 K17 + 0x7C140800, // 0034 CALL R5 4 + 0x5818000E, // 0035 LDCONST R6 K14 + 0x7C0C0600, // 0036 CALL R3 3 + 0x500C0000, // 0037 LDBOOL R3 0 0 + 0x90022003, // 0038 SETMBR R0 K16 R3 + 0x8C0C030F, // 0039 GETMET R3 R1 K15 + 0x58140007, // 003A LDCONST R5 K7 + 0x58180008, // 003B LDCONST R6 K8 + 0x881C0111, // 003C GETMBR R7 R0 K17 + 0x88200112, // 003D GETMBR R8 R0 K18 + 0x7C0C0A00, // 003E CALL R3 5 + 0xA8040001, // 003F EXBLK 1 1 + 0x70020010, // 0040 JMP #0052 + 0xAC0C0002, // 0041 CATCH R3 0 2 + 0x7002000D, // 0042 JMP #0051 + 0xB8160600, // 0043 GETNGBL R5 K3 + 0x8C140B04, // 0044 GETMET R5 R5 K4 + 0x601C0008, // 0045 GETGBL R7 G8 + 0x5C200600, // 0046 MOVE R8 R3 + 0x7C1C0200, // 0047 CALL R7 1 + 0x001E2807, // 0048 ADD R7 K20 R7 + 0x001C0F15, // 0049 ADD R7 R7 K21 + 0x60200008, // 004A GETGBL R8 G8 + 0x5C240800, // 004B MOVE R9 R4 + 0x7C200200, // 004C CALL R8 1 + 0x001C0E08, // 004D ADD R7 R7 R8 + 0x5820000E, // 004E LDCONST R8 K14 + 0x7C140600, // 004F CALL R5 3 + 0x70020000, // 0050 JMP #0052 + 0xB0080000, // 0051 RAISE 2 R0 R0 + 0x80000000, // 0052 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(_compute_pbkdf), + &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 }) ) ); @@ -3825,20 +3709,20 @@ be_local_closure(Matter_Device_invoke_request, /* name */ /******************************************************************** -** Solidified function: start +** Solidified function: _start_udp ********************************************************************/ -be_local_closure(Matter_Device_start, /* name */ +be_local_closure(Matter_Device__start_udp, /* name */ be_nested_proto( 6, /* nstack */ - 1, /* argc */ + 2, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 1, /* has sup protos */ ( &(const struct bproto*[ 1]) { be_nested_proto( - 2, /* nstack */ - 0, /* argc */ + 8, /* nstack */ + 3, /* argc */ 0, /* varg */ 1, /* has upvals */ ( &(const bupvaldesc[ 1]) { /* upvals */ @@ -3848,113 +3732,63 @@ be_local_closure(Matter_Device_start, /* name */ NULL, /* no sub protos */ 1, /* has constants */ ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(_trigger_read_sensors), + /* K0 */ be_nested_str_weak(msg_received), }), - be_str_weak(_anonymous_), + be_str_weak(_X3Clambda_X3E), &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 + ( &(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(started), - /* K1 */ be_nested_str_weak(autoconf_device), - /* K2 */ be_nested_str_weak(tasmota), - /* K3 */ be_nested_str_weak(add_cron), - /* K4 */ be_nested_str_weak(_X2A_X2F30_X20_X2A_X20_X2A_X20_X2A_X20_X2A_X20_X2A), - /* K5 */ be_nested_str_weak(matter_sensors_30s), - /* K6 */ be_nested_str_weak(_start_udp), - /* K7 */ be_nested_str_weak(UDP_PORT), - /* K8 */ be_nested_str_weak(start_mdns_announce_hostnames), + /* 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), + be_str_weak(_start_udp), &be_const_str_solidified, - ( &(const binstruction[20]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x78060000, // 0001 JMPF R1 #0003 - 0x80000200, // 0002 RET 0 - 0x8C040101, // 0003 GETMET R1 R0 K1 - 0x7C040200, // 0004 CALL R1 1 - 0xB8060400, // 0005 GETNGBL R1 K2 - 0x8C040303, // 0006 GETMET R1 R1 K3 - 0x580C0004, // 0007 LDCONST R3 K4 - 0x84100000, // 0008 CLOSURE R4 P0 - 0x58140005, // 0009 LDCONST R5 K5 - 0x7C040800, // 000A CALL R1 4 - 0x8C040106, // 000B GETMET R1 R0 K6 - 0x880C0107, // 000C GETMBR R3 R0 K7 - 0x7C040400, // 000D CALL R1 2 - 0x8C040108, // 000E GETMET R1 R0 K8 - 0x7C040200, // 000F CALL R1 1 - 0x50040200, // 0010 LDBOOL R1 1 0 - 0x90020001, // 0011 SETMBR R0 K0 R1 - 0xA0000000, // 0012 CLOSE R0 - 0x80000000, // 0013 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: plugins_to_json -********************************************************************/ -be_local_closure(Matter_Device_plugins_to_json, /* name */ - be_nested_proto( - 11, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[11]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(_X7B), - /* K2 */ be_const_int(0), - /* K3 */ be_nested_str_weak(plugins), - /* K4 */ be_nested_str_weak(_X2C), - /* K5 */ be_nested_str_weak(format), - /* K6 */ be_nested_str_weak(_X22_X25i_X22_X3A_X25s), - /* K7 */ be_nested_str_weak(get_endpoint), - /* K8 */ be_nested_str_weak(to_json), - /* K9 */ be_const_int(1), - /* K10 */ be_nested_str_weak(_X7D), - }), - be_str_weak(plugins_to_json), - &be_const_str_solidified, - ( &(const binstruction[25]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x58080001, // 0001 LDCONST R2 K1 - 0x580C0002, // 0002 LDCONST R3 K2 - 0x6010000C, // 0003 GETGBL R4 G12 - 0x88140103, // 0004 GETMBR R5 R0 K3 - 0x7C100200, // 0005 CALL R4 1 - 0x14100604, // 0006 LT R4 R3 R4 - 0x7812000E, // 0007 JMPF R4 #0017 - 0x88100103, // 0008 GETMBR R4 R0 K3 - 0x94100803, // 0009 GETIDX R4 R4 R3 - 0x24140702, // 000A GT R5 R3 K2 - 0x78160000, // 000B JMPF R5 #000D - 0x00080504, // 000C ADD R2 R2 K4 - 0x8C140305, // 000D GETMET R5 R1 K5 - 0x581C0006, // 000E LDCONST R7 K6 - 0x8C200907, // 000F GETMET R8 R4 K7 - 0x7C200200, // 0010 CALL R8 1 - 0x8C240908, // 0011 GETMET R9 R4 K8 - 0x7C240200, // 0012 CALL R9 1 - 0x7C140800, // 0013 CALL R5 4 - 0x00080405, // 0014 ADD R2 R2 R5 - 0x000C0709, // 0015 ADD R3 R3 K9 - 0x7001FFEB, // 0016 JMP #0003 - 0x0008050A, // 0017 ADD R2 R2 K10 - 0x80040400, // 0018 RET 1 R2 + ( &(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 }) ) ); @@ -4297,112 +4131,49 @@ be_local_closure(Matter_Device_mdns_announce_PASE, /* name */ /******************************************************************** -** Solidified function: register_native_classes +** Solidified function: start_operational_discovery ********************************************************************/ -be_local_closure(Matter_Device_register_native_classes, /* name */ +be_local_closure(Matter_Device_start_operational_discovery, /* name */ be_nested_proto( 9, /* nstack */ - 3, /* argc */ + 2, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[28]) { /* constants */ - /* K0 */ be_nested_str_weak(register_plugin_class), - /* K1 */ be_nested_str_weak(root), - /* K2 */ be_nested_str_weak(matter), - /* K3 */ be_nested_str_weak(Plugin_Root), - /* K4 */ be_nested_str_weak(light0), - /* K5 */ be_nested_str_weak(Plugin_Light0), - /* K6 */ be_nested_str_weak(light1), - /* K7 */ be_nested_str_weak(Plugin_Light1), - /* K8 */ be_nested_str_weak(light2), - /* K9 */ be_nested_str_weak(Plugin_Light2), - /* K10 */ be_nested_str_weak(light3), - /* K11 */ be_nested_str_weak(Plugin_Light3), - /* K12 */ be_nested_str_weak(relay), - /* K13 */ be_nested_str_weak(Plugin_OnOff), - /* K14 */ be_nested_str_weak(temperature), - /* K15 */ be_nested_str_weak(Plugin_Sensor_Temp), - /* K16 */ be_nested_str_weak(humidity), - /* K17 */ be_nested_str_weak(Plugin_Sensor_Humidity), - /* K18 */ be_nested_str_weak(illuminance), - /* K19 */ be_nested_str_weak(Plugin_Sensor_Illuminance), - /* K20 */ be_nested_str_weak(pressure), - /* K21 */ be_nested_str_weak(Plugin_Sensor_Pressure), - /* K22 */ be_nested_str_weak(tasmota), - /* K23 */ be_nested_str_weak(log), - /* K24 */ be_nested_str_weak(MTR_X3A_X20registered_X20classes_X20), - /* K25 */ be_nested_str_weak(k2l), - /* K26 */ be_nested_str_weak(plugins_classes), - /* K27 */ be_const_int(3), + ( &(const bvalue[ 9]) { /* constants */ + /* K0 */ be_nested_str_weak(crypto), + /* K1 */ be_nested_str_weak(mdns), + /* K2 */ be_nested_str_weak(string), + /* K3 */ be_nested_str_weak(stop_basic_commissioning), + /* K4 */ be_nested_str_weak(root_w0), + /* K5 */ be_nested_str_weak(root_L), + /* K6 */ be_nested_str_weak(set_expire_in_seconds), + /* K7 */ be_nested_str_weak(mdns_announce_op_discovery), + /* K8 */ be_nested_str_weak(get_fabric), }), - be_str_weak(register_native_classes), + be_str_weak(start_operational_discovery), &be_const_str_solidified, - ( &(const binstruction[61]) { /* code */ - 0x8C0C0100, // 0000 GETMET R3 R0 K0 - 0x58140001, // 0001 LDCONST R5 K1 - 0xB81A0400, // 0002 GETNGBL R6 K2 - 0x88180D03, // 0003 GETMBR R6 R6 K3 - 0x7C0C0600, // 0004 CALL R3 3 - 0x8C0C0100, // 0005 GETMET R3 R0 K0 - 0x58140004, // 0006 LDCONST R5 K4 - 0xB81A0400, // 0007 GETNGBL R6 K2 - 0x88180D05, // 0008 GETMBR R6 R6 K5 - 0x7C0C0600, // 0009 CALL R3 3 - 0x8C0C0100, // 000A GETMET R3 R0 K0 - 0x58140006, // 000B LDCONST R5 K6 - 0xB81A0400, // 000C GETNGBL R6 K2 - 0x88180D07, // 000D GETMBR R6 R6 K7 - 0x7C0C0600, // 000E CALL R3 3 - 0x8C0C0100, // 000F GETMET R3 R0 K0 - 0x58140008, // 0010 LDCONST R5 K8 - 0xB81A0400, // 0011 GETNGBL R6 K2 - 0x88180D09, // 0012 GETMBR R6 R6 K9 - 0x7C0C0600, // 0013 CALL R3 3 - 0x8C0C0100, // 0014 GETMET R3 R0 K0 - 0x5814000A, // 0015 LDCONST R5 K10 - 0xB81A0400, // 0016 GETNGBL R6 K2 - 0x88180D0B, // 0017 GETMBR R6 R6 K11 - 0x7C0C0600, // 0018 CALL R3 3 - 0x8C0C0100, // 0019 GETMET R3 R0 K0 - 0x5814000C, // 001A LDCONST R5 K12 - 0xB81A0400, // 001B GETNGBL R6 K2 - 0x88180D0D, // 001C GETMBR R6 R6 K13 - 0x7C0C0600, // 001D CALL R3 3 - 0x8C0C0100, // 001E GETMET R3 R0 K0 - 0x5814000E, // 001F LDCONST R5 K14 - 0xB81A0400, // 0020 GETNGBL R6 K2 - 0x88180D0F, // 0021 GETMBR R6 R6 K15 - 0x7C0C0600, // 0022 CALL R3 3 - 0x8C0C0100, // 0023 GETMET R3 R0 K0 - 0x58140010, // 0024 LDCONST R5 K16 - 0xB81A0400, // 0025 GETNGBL R6 K2 - 0x88180D11, // 0026 GETMBR R6 R6 K17 - 0x7C0C0600, // 0027 CALL R3 3 - 0x8C0C0100, // 0028 GETMET R3 R0 K0 - 0x58140012, // 0029 LDCONST R5 K18 - 0xB81A0400, // 002A GETNGBL R6 K2 - 0x88180D13, // 002B GETMBR R6 R6 K19 - 0x7C0C0600, // 002C CALL R3 3 - 0x8C0C0100, // 002D GETMET R3 R0 K0 - 0x58140014, // 002E LDCONST R5 K20 - 0xB81A0400, // 002F GETNGBL R6 K2 - 0x88180D15, // 0030 GETMBR R6 R6 K21 - 0x7C0C0600, // 0031 CALL R3 3 - 0xB80E2C00, // 0032 GETNGBL R3 K22 - 0x8C0C0717, // 0033 GETMET R3 R3 K23 - 0x60140008, // 0034 GETGBL R5 G8 - 0x8C180119, // 0035 GETMET R6 R0 K25 - 0x8820011A, // 0036 GETMBR R8 R0 K26 - 0x7C180400, // 0037 CALL R6 2 - 0x7C140200, // 0038 CALL R5 1 - 0x00163005, // 0039 ADD R5 K24 R5 - 0x5818001B, // 003A LDCONST R6 K27 - 0x7C0C0600, // 003B CALL R3 3 - 0x80000000, // 003C RET 0 + ( &(const binstruction[17]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0xA40E0200, // 0001 IMPORT R3 K1 + 0xA4120400, // 0002 IMPORT R4 K2 + 0x8C140103, // 0003 GETMET R5 R0 K3 + 0x7C140200, // 0004 CALL R5 1 + 0x4C140000, // 0005 LDNIL R5 + 0x90020805, // 0006 SETMBR R0 K4 R5 + 0x4C140000, // 0007 LDNIL R5 + 0x90020A05, // 0008 SETMBR R0 K5 R5 + 0x8C140306, // 0009 GETMET R5 R1 K6 + 0x541E003B, // 000A LDINT R7 60 + 0x7C140400, // 000B CALL R5 2 + 0x8C140107, // 000C GETMET R5 R0 K7 + 0x8C1C0308, // 000D GETMET R7 R1 K8 + 0x7C1C0200, // 000E CALL R7 1 + 0x7C140400, // 000F CALL R5 2 + 0x80000000, // 0010 RET 0 }) ) ); @@ -4410,9 +4181,119 @@ be_local_closure(Matter_Device_register_native_classes, /* name */ /******************************************************************** -** Solidified function: event_fabrics_saved +** Solidified function: get_active_endpoints ********************************************************************/ -be_local_closure(Matter_Device_event_fabrics_saved, /* name */ +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(plugins), + /* K1 */ be_nested_str_weak(get_endpoint), + /* K2 */ be_const_int(0), + /* K3 */ be_nested_str_weak(find), + /* K4 */ be_nested_str_weak(push), + /* K5 */ be_nested_str_weak(stop_iteration), + }), + be_str_weak(get_active_endpoints), + &be_const_str_solidified, + ( &(const binstruction[28]) { /* code */ + 0x60080012, // 0000 GETGBL R2 G18 + 0x7C080000, // 0001 CALL R2 0 + 0x600C0010, // 0002 GETGBL R3 G16 + 0x88100100, // 0003 GETMBR R4 R0 K0 + 0x7C0C0200, // 0004 CALL R3 1 + 0xA8020011, // 0005 EXBLK 0 #0018 + 0x5C100600, // 0006 MOVE R4 R3 + 0x7C100000, // 0007 CALL R4 0 + 0x8C140901, // 0008 GETMET R5 R4 K1 + 0x7C140200, // 0009 CALL R5 1 + 0x78060002, // 000A JMPF R1 #000E + 0x1C180B02, // 000B EQ R6 R5 K2 + 0x781A0000, // 000C JMPF R6 #000E + 0x7001FFF7, // 000D JMP #0006 + 0x8C180503, // 000E GETMET R6 R2 K3 + 0x5C200A00, // 000F MOVE R8 R5 + 0x7C180400, // 0010 CALL R6 2 + 0x4C1C0000, // 0011 LDNIL R7 + 0x1C180C07, // 0012 EQ R6 R6 R7 + 0x781A0002, // 0013 JMPF R6 #0017 + 0x8C180504, // 0014 GETMET R6 R2 K4 + 0x5C200A00, // 0015 MOVE R8 R5 + 0x7C180400, // 0016 CALL R6 2 + 0x7001FFED, // 0017 JMP #0006 + 0x580C0005, // 0018 LDCONST R3 K5 + 0xAC0C0200, // 0019 CATCH R3 1 0 + 0xB0080000, // 001A RAISE 2 R0 R0 + 0x80040400, // 001B RET 1 R2 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: 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_before_restart +********************************************************************/ +be_local_closure(Matter_Device_save_before_restart, /* name */ be_nested_proto( 3, /* nstack */ 1, /* argc */ @@ -4422,28 +4303,88 @@ be_local_closure(Matter_Device_event_fabrics_saved, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(sessions), - /* K1 */ be_nested_str_weak(count_active_fabrics), - /* K2 */ be_const_int(0), - /* K3 */ be_nested_str_weak(plugins_persist), - /* K4 */ be_nested_str_weak(save_param), + ( &(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(event_fabrics_saved), + be_str_weak(save_before_restart), &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x24040302, // 0003 GT R1 R1 K2 - 0x78060005, // 0004 JMPF R1 #000B - 0x88040103, // 0005 GETMBR R1 R0 K3 - 0x74060003, // 0006 JMPT R1 #000B - 0x50040200, // 0007 LDBOOL R1 1 0 - 0x90020601, // 0008 SETMBR R0 K3 R1 - 0x8C040104, // 0009 GETMET R1 R0 K4 - 0x7C040200, // 000A CALL R1 1 - 0x80000000, // 000B RET 0 + ( &(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: get_plugin_class_arg +********************************************************************/ +be_local_closure(Matter_Device_get_plugin_class_arg, /* name */ + be_nested_proto( + 5, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(plugins_classes), + /* K1 */ be_nested_str_weak(find), + /* K2 */ be_nested_str_weak(ARG), + /* K3 */ be_nested_str_weak(), + }), + be_str_weak(get_plugin_class_arg), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x5C100200, // 0002 MOVE R4 R1 + 0x7C080400, // 0003 CALL R2 2 + 0x780A0001, // 0004 JMPF R2 #0007 + 0x880C0502, // 0005 GETMBR R3 R2 K2 + 0x70020000, // 0006 JMP #0008 + 0x580C0003, // 0007 LDCONST R3 K3 + 0x80040600, // 0008 RET 1 R3 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: msg_received +********************************************************************/ +be_local_closure(Matter_Device_msg_received, /* name */ + be_nested_proto( + 9, /* nstack */ + 4, /* 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), + }), + be_str_weak(msg_received), + &be_const_str_solidified, + ( &(const binstruction[ 7]) { /* code */ + 0x88100100, // 0000 GETMBR R4 R0 K0 + 0x8C100901, // 0001 GETMET R4 R4 K1 + 0x5C180200, // 0002 MOVE R6 R1 + 0x5C1C0400, // 0003 MOVE R7 R2 + 0x5C200600, // 0004 MOVE R8 R3 + 0x7C100800, // 0005 CALL R4 4 + 0x80040800, // 0006 RET 1 R4 }) ) ); @@ -4533,128 +4474,128 @@ be_local_closure(Matter_Device_k2l_num, /* name */ /******************************************************************** -** Solidified function: mdns_remove_PASE +** Solidified function: mdns_remove_op_discovery ********************************************************************/ -be_local_closure(Matter_Device_mdns_remove_PASE, /* name */ +be_local_closure(Matter_Device_mdns_remove_op_discovery, /* name */ be_nested_proto( - 12, /* nstack */ - 1, /* argc */ + 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[22]) { /* constants */ + ( &(const bvalue[24]) { /* constants */ /* K0 */ be_nested_str_weak(mdns), /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(mdns_pase_eth), - /* 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_X20calling_X20mdns_X2Eremove_service_X28_X25s_X2C_X20_X25s_X2C_X20_X25s_X2C_X20_X25s_X29), - /* K7 */ be_nested_str_weak(_matterc), - /* K8 */ be_nested_str_weak(_udp), - /* K9 */ be_nested_str_weak(commissioning_instance_eth), - /* K10 */ be_nested_str_weak(hostname_eth), - /* K11 */ be_const_int(3), - /* K12 */ be_nested_str_weak(MTR_X3A_X20remove_X20mDNS_X20on_X20_X25s_X20_X27_X25s_X27), - /* K13 */ be_nested_str_weak(eth), - /* K14 */ be_const_int(2), - /* K15 */ be_nested_str_weak(remove_service), - /* K16 */ be_nested_str_weak(mdns_pase_wifi), - /* K17 */ be_nested_str_weak(commissioning_instance_wifi), - /* K18 */ be_nested_str_weak(hostname_wifi), - /* K19 */ be_nested_str_weak(wifi), - /* K20 */ be_nested_str_weak(MTR_X3A_X20Exception), - /* K21 */ be_nested_str_weak(_X7C), + /* 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_PASE), + be_str_weak(mdns_remove_op_discovery), &be_const_str_solidified, - ( &(const binstruction[83]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0xA802003D, // 0002 EXBLK 0 #0041 - 0x880C0102, // 0003 GETMBR R3 R0 K2 - 0x780E001B, // 0004 JMPF R3 #0021 - 0xB80E0600, // 0005 GETNGBL R3 K3 - 0x8C0C0704, // 0006 GETMET R3 R3 K4 - 0x8C140505, // 0007 GETMET R5 R2 K5 - 0x581C0006, // 0008 LDCONST R7 K6 - 0x58200007, // 0009 LDCONST R8 K7 - 0x58240008, // 000A LDCONST R9 K8 - 0x88280109, // 000B GETMBR R10 R0 K9 - 0x882C010A, // 000C GETMBR R11 R0 K10 - 0x7C140C00, // 000D CALL R5 6 - 0x5818000B, // 000E LDCONST R6 K11 - 0x7C0C0600, // 000F CALL R3 3 - 0xB80E0600, // 0010 GETNGBL R3 K3 - 0x8C0C0704, // 0011 GETMET R3 R3 K4 - 0x8C140505, // 0012 GETMET R5 R2 K5 - 0x581C000C, // 0013 LDCONST R7 K12 - 0x5820000D, // 0014 LDCONST R8 K13 - 0x88240109, // 0015 GETMBR R9 R0 K9 - 0x7C140800, // 0016 CALL R5 4 - 0x5818000E, // 0017 LDCONST R6 K14 - 0x7C0C0600, // 0018 CALL R3 3 - 0x500C0000, // 0019 LDBOOL R3 0 0 - 0x90020403, // 001A SETMBR R0 K2 R3 - 0x8C0C030F, // 001B GETMET R3 R1 K15 - 0x58140007, // 001C LDCONST R5 K7 - 0x58180008, // 001D LDCONST R6 K8 - 0x881C0109, // 001E GETMBR R7 R0 K9 - 0x8820010A, // 001F GETMBR R8 R0 K10 - 0x7C0C0A00, // 0020 CALL R3 5 - 0x880C0110, // 0021 GETMBR R3 R0 K16 - 0x780E001B, // 0022 JMPF R3 #003F - 0xB80E0600, // 0023 GETNGBL R3 K3 - 0x8C0C0704, // 0024 GETMET R3 R3 K4 - 0x8C140505, // 0025 GETMET R5 R2 K5 - 0x581C0006, // 0026 LDCONST R7 K6 - 0x58200007, // 0027 LDCONST R8 K7 - 0x58240008, // 0028 LDCONST R9 K8 - 0x88280111, // 0029 GETMBR R10 R0 K17 - 0x882C0112, // 002A GETMBR R11 R0 K18 - 0x7C140C00, // 002B CALL R5 6 - 0x5818000B, // 002C LDCONST R6 K11 - 0x7C0C0600, // 002D CALL R3 3 - 0xB80E0600, // 002E GETNGBL R3 K3 - 0x8C0C0704, // 002F GETMET R3 R3 K4 - 0x8C140505, // 0030 GETMET R5 R2 K5 - 0x581C000C, // 0031 LDCONST R7 K12 - 0x58200013, // 0032 LDCONST R8 K19 - 0x88240111, // 0033 GETMBR R9 R0 K17 - 0x7C140800, // 0034 CALL R5 4 - 0x5818000E, // 0035 LDCONST R6 K14 - 0x7C0C0600, // 0036 CALL R3 3 - 0x500C0000, // 0037 LDBOOL R3 0 0 - 0x90022003, // 0038 SETMBR R0 K16 R3 - 0x8C0C030F, // 0039 GETMET R3 R1 K15 - 0x58140007, // 003A LDCONST R5 K7 - 0x58180008, // 003B LDCONST R6 K8 - 0x881C0111, // 003C GETMBR R7 R0 K17 - 0x88200112, // 003D GETMBR R8 R0 K18 - 0x7C0C0A00, // 003E CALL R3 5 - 0xA8040001, // 003F EXBLK 1 1 - 0x70020010, // 0040 JMP #0052 - 0xAC0C0002, // 0041 CATCH R3 0 2 - 0x7002000D, // 0042 JMP #0051 - 0xB8160600, // 0043 GETNGBL R5 K3 - 0x8C140B04, // 0044 GETMET R5 R5 K4 - 0x601C0008, // 0045 GETGBL R7 G8 - 0x5C200600, // 0046 MOVE R8 R3 - 0x7C1C0200, // 0047 CALL R7 1 - 0x001E2807, // 0048 ADD R7 K20 R7 - 0x001C0F15, // 0049 ADD R7 R7 K21 - 0x60200008, // 004A GETGBL R8 G8 - 0x5C240800, // 004B MOVE R9 R4 - 0x7C200200, // 004C CALL R8 1 - 0x001C0E08, // 004D ADD R7 R7 R8 - 0x5820000E, // 004E LDCONST R8 K14 - 0x7C140600, // 004F CALL R5 3 - 0x70020000, // 0050 JMP #0052 - 0xB0080000, // 0051 RAISE 2 R0 R0 - 0x80000000, // 0052 RET 0 + ( &(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 }) ) ); @@ -4662,81 +4603,231 @@ be_local_closure(Matter_Device_mdns_remove_PASE, /* name */ /******************************************************************** -** Solidified function: sort_distinct +** Solidified function: get_plugin_class_displayname ********************************************************************/ -be_local_closure(Matter_Device_sort_distinct, /* name */ +be_local_closure(Matter_Device_get_plugin_class_displayname, /* name */ be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 4, /* varg */ + 5, /* nstack */ + 2, /* argc */ + 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_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[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(plugins_classes), + /* K1 */ be_nested_str_weak(find), + /* K2 */ be_nested_str_weak(NAME), + /* K3 */ be_nested_str_weak(), }), - be_str_weak(sort_distinct), + be_str_weak(get_plugin_class_displayname), &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[ 9]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x5C100200, // 0002 MOVE R4 R1 + 0x7C080400, // 0003 CALL R2 2 + 0x780A0001, // 0004 JMPF R2 #0007 + 0x880C0502, // 0005 GETMBR R3 R2 K2 + 0x70020000, // 0006 JMP #0008 + 0x580C0003, // 0007 LDCONST R3 K3 + 0x80040600, // 0008 RET 1 R3 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: every_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: start_mdns_announce_hostnames +********************************************************************/ +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 */ + 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[ 9]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota), + /* K1 */ be_nested_str_weak(wifi), + /* K2 */ be_nested_str_weak(up), + /* K3 */ be_nested_str_weak(_mdns_announce_hostname), + /* K4 */ be_nested_str_weak(add_rule), + /* K5 */ be_nested_str_weak(Wifi_X23Connected), + /* K6 */ be_nested_str_weak(matter_mdns_host), + /* K7 */ be_nested_str_weak(eth), + /* K8 */ be_nested_str_weak(Eth_X23Connected), + }), + be_str_weak(start_mdns_announce_hostnames), + &be_const_str_solidified, + ( &(const binstruction[32]) { /* code */ + 0xB8060000, // 0000 GETNGBL R1 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x7C040200, // 0002 CALL R1 1 + 0x94040302, // 0003 GETIDX R1 R1 K2 + 0x78060003, // 0004 JMPF R1 #0009 + 0x8C040103, // 0005 GETMET R1 R0 K3 + 0x500C0000, // 0006 LDBOOL R3 0 0 + 0x7C040400, // 0007 CALL R1 2 + 0x70020005, // 0008 JMP #000F + 0xB8060000, // 0009 GETNGBL R1 K0 + 0x8C040304, // 000A GETMET R1 R1 K4 + 0x580C0005, // 000B LDCONST R3 K5 + 0x84100000, // 000C CLOSURE R4 P0 + 0x58140006, // 000D LDCONST R5 K6 + 0x7C040800, // 000E CALL R1 4 + 0xB8060000, // 000F GETNGBL R1 K0 + 0x8C040307, // 0010 GETMET R1 R1 K7 + 0x7C040200, // 0011 CALL R1 1 + 0x94040302, // 0012 GETIDX R1 R1 K2 + 0x78060003, // 0013 JMPF R1 #0018 + 0x8C040103, // 0014 GETMET R1 R0 K3 + 0x500C0200, // 0015 LDBOOL R3 1 0 + 0x7C040400, // 0016 CALL R1 2 + 0x70020005, // 0017 JMP #001E + 0xB8060000, // 0018 GETNGBL R1 K0 + 0x8C040304, // 0019 GETMET R1 R1 K4 + 0x580C0008, // 001A LDCONST R3 K8 + 0x84100001, // 001B CLOSURE R4 P1 + 0x58140006, // 001C LDCONST R5 K6 + 0x7C040800, // 001D CALL R1 4 + 0xA0000000, // 001E CLOSE R0 + 0x80000000, // 001F RET 0 }) ) ); @@ -4747,98 +4838,116 @@ be_local_closure(Matter_Device_sort_distinct, /* name */ ** Solidified class: Matter_Device ********************************************************************/ be_local_class(Matter_Device, - 30, + 31, NULL, - be_nested_map(88, + be_nested_map(91, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(root_L, -1), be_const_var(29) }, - { be_const_key_weak(_compute_pbkdf, -1), be_const_closure(Matter_Device__compute_pbkdf_closure) }, - { be_const_key_weak(_mdns_announce_hostname, -1), be_const_closure(Matter_Device__mdns_announce_hostname_closure) }, - { be_const_key_weak(compute_qrcode_content, -1), be_const_closure(Matter_Device_compute_qrcode_content_closure) }, - { be_const_key_weak(mdns_remove_PASE, 51), be_const_closure(Matter_Device_mdns_remove_PASE_closure) }, - { be_const_key_weak(stop, 56), be_const_closure(Matter_Device_stop_closure) }, - { be_const_key_weak(udp_server, 0), be_const_var(4) }, - { be_const_key_weak(MtrJoin, -1), be_const_closure(Matter_Device_MtrJoin_closure) }, - { be_const_key_weak(commissioning_discriminator, -1), be_const_var(10) }, - { be_const_key_weak(msg_send, 26), be_const_closure(Matter_Device_msg_send_closure) }, - { be_const_key_weak(save_param, 4), be_const_closure(Matter_Device_save_param_closure) }, - { be_const_key_weak(mdns_pase_eth, -1), be_const_var(21) }, - { be_const_key_weak(hostname_eth, -1), be_const_var(18) }, - { be_const_key_weak(productid, -1), be_const_var(20) }, - { be_const_key_weak(vendorid, 69), be_const_var(19) }, - { be_const_key_weak(start_commissioning_complete, 3), be_const_closure(Matter_Device_start_commissioning_complete_closure) }, - { be_const_key_weak(commissioning_salt, -1), be_const_var(11) }, - { be_const_key_weak(commissioning_open, -1), be_const_var(8) }, - { be_const_key_weak(compute_manual_pairing_code, -1), be_const_closure(Matter_Device_compute_manual_pairing_code_closure) }, - { be_const_key_weak(commissioning_L, -1), be_const_var(13) }, - { be_const_key_weak(hostname_wifi, 85), be_const_var(17) }, + { be_const_key_weak(save_param, 26), be_const_closure(Matter_Device_save_param_closure) }, + { be_const_key_weak(_trigger_read_sensors, -1), be_const_closure(Matter_Device__trigger_read_sensors_closure) }, + { be_const_key_weak(root_L, 10), be_const_var(30) }, + { be_const_key_weak(plugins, -1), be_const_var(1) }, + { be_const_key_weak(register_plugin_class, -1), be_const_closure(Matter_Device_register_plugin_class_closure) }, + { be_const_key_weak(commissioning_open, 56), be_const_var(9) }, { be_const_key_weak(start_mdns_announce_hostnames, -1), be_const_closure(Matter_Device_start_mdns_announce_hostnames_closure) }, - { be_const_key_weak(root_passcode, 7), be_const_var(24) }, - { be_const_key_weak(process_attribute_expansion, -1), be_const_closure(Matter_Device_process_attribute_expansion_closure) }, - { be_const_key_weak(received_ack, 12), be_const_closure(Matter_Device_received_ack_closure) }, - { be_const_key_weak(event_fabrics_saved, -1), be_const_closure(Matter_Device_event_fabrics_saved_closure) }, - { be_const_key_weak(start_root_basic_commissioning, 16), be_const_closure(Matter_Device_start_root_basic_commissioning_closure) }, - { be_const_key_weak(ui, -1), be_const_var(7) }, - { be_const_key_weak(PRODUCT_ID, -1), be_const_int(32768) }, - { be_const_key_weak(commissioning_iterations, -1), be_const_var(9) }, - { be_const_key_weak(mdns_announce_op_discovery, 22), be_const_closure(Matter_Device_mdns_announce_op_discovery_closure) }, - { be_const_key_weak(is_root_commissioning_open, -1), be_const_closure(Matter_Device_is_root_commissioning_open_closure) }, - { be_const_key_weak(FILENAME, -1), be_nested_str_weak(_matter_device_X2Ejson) }, - { be_const_key_weak(mdns_announce_PASE, 35), be_const_closure(Matter_Device_mdns_announce_PASE_closure) }, - { be_const_key_weak(is_commissioning_open, 44), be_const_closure(Matter_Device_is_commissioning_open_closure) }, - { be_const_key_weak(init, -1), be_const_closure(Matter_Device_init_closure) }, - { be_const_key_weak(stop_basic_commissioning, -1), be_const_closure(Matter_Device_stop_basic_commissioning_closure) }, - { be_const_key_weak(save_before_restart, -1), be_const_closure(Matter_Device_save_before_restart_closure) }, - { be_const_key_weak(plugins_to_json, -1), be_const_closure(Matter_Device_plugins_to_json_closure) }, - { be_const_key_weak(_trigger_read_sensors, 53), be_const_closure(Matter_Device__trigger_read_sensors_closure) }, - { be_const_key_weak(every_250ms, 61), be_const_closure(Matter_Device_every_250ms_closure) }, - { be_const_key_weak(root_w0, -1), be_const_var(28) }, - { 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(start_commissioning_complete_deferred, 48), be_const_closure(Matter_Device_start_commissioning_complete_deferred_closure) }, - { be_const_key_weak(commissioning_instance_wifi, -1), be_const_var(15) }, - { be_const_key_weak(_init_basic_commissioning, -1), be_const_closure(Matter_Device__init_basic_commissioning_closure) }, - { be_const_key_weak(started, -1), be_const_var(0) }, - { be_const_key_weak(autoconf_device, -1), be_const_closure(Matter_Device_autoconf_device_closure) }, - { be_const_key_weak(invoke_request, 68), be_const_closure(Matter_Device_invoke_request_closure) }, - { be_const_key_weak(start_operational_discovery, -1), be_const_closure(Matter_Device_start_operational_discovery_closure) }, - { be_const_key_weak(PASE_TIMEOUT, 66), be_const_int(600) }, - { be_const_key_weak(root_salt, 37), be_const_var(27) }, - { be_const_key_weak(get_active_endpoints, -1), be_const_closure(Matter_Device_get_active_endpoints_closure) }, - { be_const_key_weak(message_handler, 47), be_const_var(5) }, - { be_const_key_weak(every_second, -1), be_const_closure(Matter_Device_every_second_closure) }, - { be_const_key_weak(mdns_remove_op_discovery, -1), be_const_closure(Matter_Device_mdns_remove_op_discovery_closure) }, - { be_const_key_weak(mdns_pase_wifi, -1), be_const_var(22) }, - { be_const_key_weak(remove_fabric, -1), be_const_closure(Matter_Device_remove_fabric_closure) }, - { be_const_key_weak(UDP_PORT, -1), be_const_int(5540) }, - { be_const_key_weak(load_param, -1), be_const_closure(Matter_Device_load_param_closure) }, - { be_const_key_weak(_load_plugins_config, -1), be_const_closure(Matter_Device__load_plugins_config_closure) }, + { be_const_key_weak(PASE_TIMEOUT, -1), be_const_int(600) }, { be_const_key_weak(plugins_classes, -1), be_const_var(3) }, - { be_const_key_weak(autoconf_device_map, -1), be_const_closure(Matter_Device_autoconf_device_map_closure) }, - { be_const_key_weak(attribute_updated, 57), be_const_closure(Matter_Device_attribute_updated_closure) }, - { be_const_key_weak(commissioning_admin_fabric, -1), be_const_var(14) }, - { be_const_key_weak(register_plugin_class, 54), be_const_closure(Matter_Device_register_plugin_class_closure) }, - { be_const_key_weak(commissioning_instance_eth, 70), be_const_var(16) }, - { be_const_key_weak(plugins, 52), be_const_var(1) }, - { be_const_key_weak(PASSCODE_DEFAULT, -1), be_const_int(20202021) }, - { be_const_key_weak(_start_udp, -1), be_const_closure(Matter_Device__start_udp_closure) }, - { be_const_key_weak(start_basic_commissioning, -1), be_const_closure(Matter_Device_start_basic_commissioning_closure) }, - { be_const_key_weak(start, -1), be_const_closure(Matter_Device_start_closure) }, - { be_const_key_weak(msg_received, 38), be_const_closure(Matter_Device_msg_received_closure) }, - { be_const_key_weak(VENDOR_ID, -1), be_const_int(65521) }, - { be_const_key_weak(commissioning_w0, -1), be_const_var(12) }, - { be_const_key_weak(mdns_announce_op_discovery_all_fabrics, 33), be_const_closure(Matter_Device_mdns_announce_op_discovery_all_fabrics_closure) }, - { be_const_key_weak(plugins_persist, 28), be_const_var(2) }, - { be_const_key_weak(register_native_classes, -1), be_const_closure(Matter_Device_register_native_classes_closure) }, - { be_const_key_weak(root_discriminator, 25), be_const_var(23) }, - { be_const_key_weak(k2l_num, -1), be_const_static_closure(Matter_Device_k2l_num_closure) }, - { be_const_key_weak(ipv4only, -1), be_const_var(25) }, - { be_const_key_weak(start_operational_discovery_deferred, 13), be_const_closure(Matter_Device_start_operational_discovery_deferred_closure) }, - { be_const_key_weak(root_iterations, -1), be_const_var(26) }, - { be_const_key_weak(register_commands, 8), be_const_closure(Matter_Device_register_commands_closure) }, - { be_const_key_weak(sessions, -1), be_const_var(6) }, - { be_const_key_weak(k2l, -1), be_const_static_closure(Matter_Device_k2l_closure) }, + { be_const_key_weak(autoconf_device, -1), be_const_closure(Matter_Device_autoconf_device_closure) }, + { be_const_key_weak(PASSCODE_INVALID, 16), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { + be_const_list( * be_nested_list(12, + ( (struct bvalue*) &(const bvalue[]) { + be_const_int(0), + be_const_int(11111111), + be_const_int(22222222), + be_const_int(33333333), + be_const_int(44444444), + be_const_int(55555555), + be_const_int(66666666), + be_const_int(77777777), + be_const_int(88888888), + be_const_int(99999999), + be_const_int(12345678), + be_const_int(87654321), + })) ) } )) }, { be_const_key_weak(sort_distinct, -1), be_const_static_closure(Matter_Device_sort_distinct_closure) }, - { be_const_key_weak(PBKDF_ITERATIONS, -1), be_const_int(1000) }, + { be_const_key_weak(root_passcode, -1), be_const_var(25) }, + { be_const_key_weak(generate_random_passcode, 14), be_const_closure(Matter_Device_generate_random_passcode_closure) }, + { be_const_key_weak(hostname_eth, -1), be_const_var(19) }, + { be_const_key_weak(register_commands, 85), be_const_closure(Matter_Device_register_commands_closure) }, + { be_const_key_weak(get_plugin_class_displayname, -1), be_const_closure(Matter_Device_get_plugin_class_displayname_closure) }, + { be_const_key_weak(mdns_remove_op_discovery, -1), be_const_closure(Matter_Device_mdns_remove_op_discovery_closure) }, + { be_const_key_weak(attribute_updated, -1), be_const_closure(Matter_Device_attribute_updated_closure) }, + { be_const_key_weak(productid, 84), be_const_var(21) }, + { be_const_key_weak(ipv4only, 17), be_const_var(26) }, + { be_const_key_weak(UDP_PORT, 68), be_const_int(5540) }, + { be_const_key_weak(register_native_classes, -1), be_const_closure(Matter_Device_register_native_classes_closure) }, + { be_const_key_weak(k2l_num, 65), be_const_static_closure(Matter_Device_k2l_num_closure) }, + { be_const_key_weak(msg_received, -1), be_const_closure(Matter_Device_msg_received_closure) }, + { be_const_key_weak(mdns_announce_op_discovery, 27), be_const_closure(Matter_Device_mdns_announce_op_discovery_closure) }, + { be_const_key_weak(commissioning_L, -1), be_const_var(14) }, + { be_const_key_weak(start_basic_commissioning, 80), be_const_closure(Matter_Device_start_basic_commissioning_closure) }, + { be_const_key_weak(compute_manual_pairing_code, 6), be_const_closure(Matter_Device_compute_manual_pairing_code_closure) }, + { be_const_key_weak(save_before_restart, -1), be_const_closure(Matter_Device_save_before_restart_closure) }, + { be_const_key_weak(message_handler, 89), be_const_var(6) }, + { be_const_key_weak(start_commissioning_complete, -1), be_const_closure(Matter_Device_start_commissioning_complete_closure) }, + { be_const_key_weak(PRODUCT_ID, 24), be_const_int(32768) }, + { be_const_key_weak(msg_send, 11), be_const_closure(Matter_Device_msg_send_closure) }, + { be_const_key_weak(start, -1), be_const_closure(Matter_Device_start_closure) }, + { be_const_key_weak(load_param, 38), be_const_closure(Matter_Device_load_param_closure) }, + { be_const_key_weak(commissioning_salt, 22), be_const_var(12) }, + { be_const_key_weak(root_iterations, -1), be_const_var(27) }, + { be_const_key_weak(vendorid, -1), be_const_var(20) }, + { be_const_key_weak(udp_server, 81), be_const_var(5) }, + { be_const_key_weak(mdns_remove_op_discovery_all_fabrics, 63), be_const_closure(Matter_Device_mdns_remove_op_discovery_all_fabrics_closure) }, + { be_const_key_weak(get_active_endpoints, -1), be_const_closure(Matter_Device_get_active_endpoints_closure) }, + { be_const_key_weak(start_operational_discovery, 51), be_const_closure(Matter_Device_start_operational_discovery_closure) }, + { be_const_key_weak(event_fabrics_saved, -1), be_const_closure(Matter_Device_event_fabrics_saved_closure) }, + { be_const_key_weak(mdns_announce_PASE, -1), be_const_closure(Matter_Device_mdns_announce_PASE_closure) }, + { be_const_key_weak(stop, 2), 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(plugins_config, 30), be_const_var(4) }, + { be_const_key_weak(invoke_request, -1), be_const_closure(Matter_Device_invoke_request_closure) }, + { be_const_key_weak(is_root_commissioning_open, 82), be_const_closure(Matter_Device_is_root_commissioning_open_closure) }, + { be_const_key_weak(commissioning_instance_eth, 33), be_const_var(17) }, + { be_const_key_weak(mdns_remove_PASE, -1), be_const_closure(Matter_Device_mdns_remove_PASE_closure) }, + { be_const_key_weak(hostname_wifi, 47), be_const_var(18) }, + { be_const_key_weak(FILENAME, -1), be_nested_str_weak(_matter_device_X2Ejson) }, + { be_const_key_weak(process_attribute_expansion, 57), be_const_closure(Matter_Device_process_attribute_expansion_closure) }, + { be_const_key_weak(start_commissioning_complete_deferred, -1), be_const_closure(Matter_Device_start_commissioning_complete_deferred_closure) }, + { be_const_key_weak(commissioning_w0, -1), be_const_var(13) }, + { be_const_key_weak(plugins_persist, 49), be_const_var(2) }, + { be_const_key_weak(start_operational_discovery_deferred, 66), be_const_closure(Matter_Device_start_operational_discovery_deferred_closure) }, + { be_const_key_weak(commissioning_discriminator, 23), be_const_var(11) }, + { be_const_key_weak(commissioning_admin_fabric, -1), be_const_var(15) }, + { be_const_key_weak(autoconf_device_map, -1), be_const_closure(Matter_Device_autoconf_device_map_closure) }, + { be_const_key_weak(remove_fabric, -1), be_const_closure(Matter_Device_remove_fabric_closure) }, + { be_const_key_weak(_init_basic_commissioning, -1), be_const_closure(Matter_Device__init_basic_commissioning_closure) }, + { be_const_key_weak(every_250ms, -1), be_const_closure(Matter_Device_every_250ms_closure) }, + { be_const_key_weak(MtrJoin, -1), be_const_closure(Matter_Device_MtrJoin_closure) }, + { be_const_key_weak(received_ack, 88), be_const_closure(Matter_Device_received_ack_closure) }, + { be_const_key_weak(start_root_basic_commissioning, 54), be_const_closure(Matter_Device_start_root_basic_commissioning_closure) }, + { be_const_key_weak(commissioning_instance_wifi, -1), be_const_var(16) }, + { be_const_key_weak(_compute_pbkdf, -1), be_const_closure(Matter_Device__compute_pbkdf_closure) }, + { be_const_key_weak(PBKDF_ITERATIONS, 48), be_const_int(1000) }, + { be_const_key_weak(_start_udp, -1), be_const_closure(Matter_Device__start_udp_closure) }, + { be_const_key_weak(started, 44), be_const_var(0) }, + { be_const_key_weak(ui, 42), be_const_var(8) }, + { be_const_key_weak(mdns_pase_wifi, 41), be_const_var(23) }, + { be_const_key_weak(root_salt, -1), be_const_var(28) }, + { 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(sessions, -1), be_const_var(7) }, + { be_const_key_weak(_load_plugins_config, 29), be_const_closure(Matter_Device__load_plugins_config_closure) }, + { be_const_key_weak(get_plugin_class_arg, -1), be_const_closure(Matter_Device_get_plugin_class_arg_closure) }, + { be_const_key_weak(commissioning_iterations, -1), be_const_var(10) }, + { be_const_key_weak(_mdns_announce_hostname, -1), be_const_closure(Matter_Device__mdns_announce_hostname_closure) }, + { be_const_key_weak(VENDOR_ID, -1), be_const_int(65521) }, + { be_const_key_weak(root_discriminator, -1), be_const_var(24) }, + { be_const_key_weak(init, -1), be_const_closure(Matter_Device_init_closure) }, + { be_const_key_weak(root_w0, 90), be_const_var(29) }, + { be_const_key_weak(mdns_pase_eth, -1), be_const_var(22) }, + { be_const_key_weak(every_second, -1), be_const_closure(Matter_Device_every_second_closure) }, + { be_const_key_weak(compute_qrcode_content, -1), be_const_closure(Matter_Device_compute_qrcode_content_closure) }, + { be_const_key_weak(k2l, -1), be_const_static_closure(Matter_Device_k2l_closure) }, + { be_const_key_weak(is_commissioning_open, -1), be_const_closure(Matter_Device_is_commissioning_open_closure) }, })), be_str_weak(Matter_Device) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_MessageHandler.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_MessageHandler.h index a61a98163..4e0419fb8 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_MessageHandler.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_MessageHandler.h @@ -221,7 +221,7 @@ be_local_closure(Matter_MessageHandler_msg_received, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[74]) { /* constants */ + ( &(const bvalue[75]) { /* constants */ /* K0 */ be_nested_str_weak(string), /* K1 */ be_nested_str_weak(matter), /* K2 */ be_nested_str_weak(Frame), @@ -294,12 +294,13 @@ be_local_closure(Matter_MessageHandler_msg_received, /* name */ /* K69 */ be_nested_str_weak(MTR_X3A_X20ignoring_X20unhandled_X20protocol_id_X3A), /* K70 */ be_nested_str_weak(MTR_X3A_X20MessageHandler_X3A_X3Amsg_received_X20exception_X3A_X20), /* K71 */ be_nested_str_weak(_X3B), - /* K72 */ be_nested_str_weak(debug), - /* K73 */ be_nested_str_weak(traceback), + /* K72 */ be_nested_str_weak(_debug_present), + /* K73 */ be_nested_str_weak(debug), + /* K74 */ be_nested_str_weak(traceback), }), be_str_weak(msg_received), &be_const_str_solidified, - ( &(const binstruction[388]) { /* code */ + ( &(const binstruction[390]) { /* code */ 0xA4120000, // 0000 IMPORT R4 K0 0x50140000, // 0001 LDBOOL R5 0 0 0xA802016A, // 0002 EXBLK 0 #016E @@ -665,9 +666,9 @@ be_local_closure(Matter_MessageHandler_msg_received, /* name */ 0xA8040001, // 016A EXBLK 1 1 0x80040A00, // 016B RET 1 R5 0xA8040001, // 016C EXBLK 1 1 - 0x70020014, // 016D JMP #0183 + 0x70020016, // 016D JMP #0185 0xAC180002, // 016E CATCH R6 0 2 - 0x70020011, // 016F JMP #0182 + 0x70020013, // 016F JMP #0184 0xB8220A00, // 0170 GETNGBL R8 K5 0x8C201106, // 0171 GETMET R8 R8 K6 0x60280008, // 0172 GETGBL R10 G8 @@ -680,14 +681,16 @@ be_local_closure(Matter_MessageHandler_msg_received, /* name */ 0x7C2C0200, // 0179 CALL R11 1 0x0028140B, // 017A ADD R10 R10 R11 0x7C200400, // 017B CALL R8 2 - 0xA4229000, // 017C IMPORT R8 K72 - 0x8C241149, // 017D GETMET R9 R8 K73 - 0x7C240200, // 017E CALL R9 1 - 0x50240000, // 017F LDBOOL R9 0 0 - 0x80041200, // 0180 RET 1 R9 - 0x70020000, // 0181 JMP #0183 - 0xB0080000, // 0182 RAISE 2 R0 R0 - 0x80000000, // 0183 RET 0 + 0x88200148, // 017C GETMBR R8 R0 K72 + 0x78220002, // 017D JMPF R8 #0181 + 0xA4229200, // 017E IMPORT R8 K73 + 0x8C24114A, // 017F GETMET R9 R8 K74 + 0x7C240200, // 0180 CALL R9 1 + 0x50200000, // 0181 LDBOOL R8 0 0 + 0x80041000, // 0182 RET 1 R8 + 0x70020000, // 0183 JMP #0185 + 0xB0080000, // 0184 RAISE 2 R0 R0 + 0x80000000, // 0185 RET 0 }) ) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin.h index 458456859..00fe4a9f5 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin.h @@ -7,26 +7,38 @@ extern const bclass be_class_Matter_Plugin; /******************************************************************** -** Solidified function: get_endpoint +** Solidified function: attribute_updated ********************************************************************/ -be_local_closure(Matter_Plugin_get_endpoint, /* name */ +be_local_closure(Matter_Plugin_attribute_updated, /* name */ be_nested_proto( - 2, /* nstack */ - 1, /* argc */ + 11, /* nstack */ + 5, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ + ( &(const bvalue[ 3]) { /* constants */ /* K0 */ be_nested_str_weak(endpoint), + /* K1 */ be_nested_str_weak(device), + /* K2 */ be_nested_str_weak(attribute_updated), }), - be_str_weak(get_endpoint), + be_str_weak(attribute_updated), &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x80040200, // 0001 RET 1 R1 + ( &(const binstruction[12]) { /* code */ + 0x4C140000, // 0000 LDNIL R5 + 0x1C140205, // 0001 EQ R5 R1 R5 + 0x78160000, // 0002 JMPF R5 #0004 + 0x88040100, // 0003 GETMBR R1 R0 K0 + 0x88140101, // 0004 GETMBR R5 R0 K1 + 0x8C140B02, // 0005 GETMET R5 R5 K2 + 0x5C1C0200, // 0006 MOVE R7 R1 + 0x5C200400, // 0007 MOVE R8 R2 + 0x5C240600, // 0008 MOVE R9 R3 + 0x5C280800, // 0009 MOVE R10 R4 + 0x7C140A00, // 000A CALL R5 5 + 0x80000000, // 000B RET 0 }) ) ); @@ -59,126 +71,11 @@ be_local_closure(Matter_Plugin_timed_request, /* name */ /******************************************************************** -** Solidified function: to_json_parameters +** Solidified function: get_endpoint ********************************************************************/ -be_local_closure(Matter_Plugin_to_json_parameters, /* name */ +be_local_closure(Matter_Plugin_get_endpoint, /* name */ be_nested_proto( 2, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(to_json_parameters), - &be_const_str_solidified, - ( &(const binstruction[ 1]) { /* code */ - 0x80040200, // 0000 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: read_event -********************************************************************/ -be_local_closure(Matter_Plugin_read_event, /* name */ - be_nested_proto( - 6, /* nstack */ - 5, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(read_event), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x4C140000, // 0000 LDNIL R5 - 0x80040A00, // 0001 RET 1 R5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: to_json -********************************************************************/ -be_local_closure(Matter_Plugin_to_json, /* 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(string), - /* K1 */ be_nested_str_weak(format), - /* K2 */ be_nested_str_weak(_X7B_X22type_X22_X3A_X22_X25s_X22), - /* K3 */ be_nested_str_weak(NAME), - /* K4 */ be_nested_str_weak(to_json_parameters), - /* K5 */ be_nested_str_weak(_X7D), - }), - be_str_weak(to_json), - &be_const_str_solidified, - ( &(const binstruction[11]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x8C080301, // 0001 GETMET R2 R1 K1 - 0x58100002, // 0002 LDCONST R4 K2 - 0x88140103, // 0003 GETMBR R5 R0 K3 - 0x7C080600, // 0004 CALL R2 3 - 0x8C0C0104, // 0005 GETMET R3 R0 K4 - 0x5C140400, // 0006 MOVE R5 R2 - 0x7C0C0400, // 0007 CALL R3 2 - 0x5C080600, // 0008 MOVE R2 R3 - 0x00080505, // 0009 ADD R2 R2 K5 - 0x80040400, // 000A RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: subscribe_event -********************************************************************/ -be_local_closure(Matter_Plugin_subscribe_event, /* name */ - be_nested_proto( - 6, /* nstack */ - 5, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(subscribe_event), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x4C140000, // 0000 LDNIL R5 - 0x80040A00, // 0001 RET 1 R5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: every_second -********************************************************************/ -be_local_closure(Matter_Plugin_every_second, /* name */ - be_nested_proto( - 3, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -187,39 +84,13 @@ be_local_closure(Matter_Plugin_every_second, /* name */ NULL, /* no sub protos */ 1, /* has constants */ ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(update_shadow), + /* K0 */ be_nested_str_weak(endpoint), }), - be_str_weak(every_second), - &be_const_str_solidified, - ( &(const binstruction[ 3]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x7C040200, // 0001 CALL R1 1 - 0x80000000, // 0002 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: invoke_request -********************************************************************/ -be_local_closure(Matter_Plugin_invoke_request, /* name */ - be_nested_proto( - 5, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(invoke_request), + be_str_weak(get_endpoint), &be_const_str_solidified, ( &(const binstruction[ 2]) { /* code */ - 0x4C100000, // 0000 LDNIL R4 - 0x80040800, // 0001 RET 1 R4 + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x80040200, // 0001 RET 1 R1 }) ) ); @@ -227,12 +98,12 @@ be_local_closure(Matter_Plugin_invoke_request, /* name */ /******************************************************************** -** Solidified function: parse_sensors +** Solidified function: subscribe_attribute ********************************************************************/ -be_local_closure(Matter_Plugin_parse_sensors, /* name */ +be_local_closure(Matter_Plugin_subscribe_attribute, /* name */ be_nested_proto( - 2, /* nstack */ - 2, /* argc */ + 6, /* nstack */ + 5, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ @@ -240,59 +111,11 @@ be_local_closure(Matter_Plugin_parse_sensors, /* name */ NULL, /* no sub protos */ 0, /* has constants */ NULL, /* no const */ - be_str_weak(parse_sensors), - &be_const_str_solidified, - ( &(const binstruction[ 1]) { /* code */ - 0x80000000, // 0000 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: update_shadow -********************************************************************/ -be_local_closure(Matter_Plugin_update_shadow, /* name */ - be_nested_proto( - 1, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(update_shadow), - &be_const_str_solidified, - ( &(const binstruction[ 1]) { /* code */ - 0x80000000, // 0000 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: write_attribute -********************************************************************/ -be_local_closure(Matter_Plugin_write_attribute, /* name */ - be_nested_proto( - 5, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(write_attribute), + be_str_weak(subscribe_attribute), &be_const_str_solidified, ( &(const binstruction[ 2]) { /* code */ - 0x4C100000, // 0000 LDNIL R4 - 0x80040800, // 0001 RET 1 R4 + 0x4C140000, // 0000 LDNIL R5 + 0x80040A00, // 0001 RET 1 R5 }) ) ); @@ -334,38 +157,144 @@ be_local_closure(Matter_Plugin_init, /* name */ /******************************************************************** -** Solidified function: attribute_updated +** Solidified function: write_attribute ********************************************************************/ -be_local_closure(Matter_Plugin_attribute_updated, /* name */ +be_local_closure(Matter_Plugin_write_attribute, /* name */ be_nested_proto( - 11, /* nstack */ - 5, /* argc */ + 5, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(write_attribute), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x4C100000, // 0000 LDNIL R4 + 0x80040800, // 0001 RET 1 R4 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: has +********************************************************************/ +be_local_closure(Matter_Plugin_has, /* name */ + be_nested_proto( + 6, /* nstack */ + 3, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str_weak(endpoint), - /* K1 */ be_nested_str_weak(device), - /* K2 */ be_nested_str_weak(attribute_updated), + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(clusters), + /* K1 */ be_nested_str_weak(contains), + /* K2 */ be_nested_str_weak(endpoints), + /* K3 */ be_nested_str_weak(find), }), - be_str_weak(attribute_updated), + be_str_weak(has), &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0x4C140000, // 0000 LDNIL R5 - 0x1C140205, // 0001 EQ R5 R1 R5 - 0x78160000, // 0002 JMPF R5 #0004 - 0x88040100, // 0003 GETMBR R1 R0 K0 - 0x88140101, // 0004 GETMBR R5 R0 K1 - 0x8C140B02, // 0005 GETMET R5 R5 K2 - 0x5C1C0200, // 0006 MOVE R7 R1 - 0x5C200400, // 0007 MOVE R8 R2 - 0x5C240600, // 0008 MOVE R9 R3 - 0x5C280800, // 0009 MOVE R10 R4 - 0x7C140A00, // 000A CALL R5 5 - 0x80000000, // 000B RET 0 + ( &(const binstruction[15]) { /* code */ + 0x880C0100, // 0000 GETMBR R3 R0 K0 + 0x8C0C0701, // 0001 GETMET R3 R3 K1 + 0x5C140200, // 0002 MOVE R5 R1 + 0x7C0C0400, // 0003 CALL R3 2 + 0x780E0006, // 0004 JMPF R3 #000C + 0x880C0102, // 0005 GETMBR R3 R0 K2 + 0x8C0C0703, // 0006 GETMET R3 R3 K3 + 0x5C140400, // 0007 MOVE R5 R2 + 0x7C0C0400, // 0008 CALL R3 2 + 0x4C100000, // 0009 LDNIL R4 + 0x200C0604, // 000A NE R3 R3 R4 + 0x740E0000, // 000B JMPT R3 #000D + 0x500C0001, // 000C LDBOOL R3 0 1 + 0x500C0200, // 000D LDBOOL R3 1 0 + 0x80040600, // 000E RET 1 R3 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: invoke_request +********************************************************************/ +be_local_closure(Matter_Plugin_invoke_request, /* name */ + be_nested_proto( + 5, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(invoke_request), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x4C100000, // 0000 LDNIL R4 + 0x80040800, // 0001 RET 1 R4 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: update_shadow +********************************************************************/ +be_local_closure(Matter_Plugin_update_shadow, /* name */ + be_nested_proto( + 1, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(update_shadow), + &be_const_str_solidified, + ( &(const binstruction[ 1]) { /* code */ + 0x80000000, // 0000 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: every_second +********************************************************************/ +be_local_closure(Matter_Plugin_every_second, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(update_shadow), + }), + be_str_weak(every_second), + &be_const_str_solidified, + ( &(const binstruction[ 3]) { /* code */ + 0x8C040100, // 0000 GETMET R1 R0 K0 + 0x7C040200, // 0001 CALL R1 1 + 0x80000000, // 0002 RET 0 }) ) ); @@ -507,49 +436,6 @@ be_local_closure(Matter_Plugin_read_attribute, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: has -********************************************************************/ -be_local_closure(Matter_Plugin_has, /* name */ - be_nested_proto( - 6, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(clusters), - /* K1 */ be_nested_str_weak(contains), - /* K2 */ be_nested_str_weak(endpoints), - /* K3 */ be_nested_str_weak(find), - }), - be_str_weak(has), - &be_const_str_solidified, - ( &(const binstruction[15]) { /* code */ - 0x880C0100, // 0000 GETMBR R3 R0 K0 - 0x8C0C0701, // 0001 GETMET R3 R3 K1 - 0x5C140200, // 0002 MOVE R5 R1 - 0x7C0C0400, // 0003 CALL R3 2 - 0x780E0006, // 0004 JMPF R3 #000C - 0x880C0102, // 0005 GETMBR R3 R0 K2 - 0x8C0C0703, // 0006 GETMET R3 R3 K3 - 0x5C140400, // 0007 MOVE R5 R2 - 0x7C0C0400, // 0008 CALL R3 2 - 0x4C100000, // 0009 LDNIL R4 - 0x200C0604, // 000A NE R3 R3 R4 - 0x740E0000, // 000B JMPT R3 #000D - 0x500C0001, // 000C LDBOOL R3 0 1 - 0x500C0200, // 000D LDBOOL R3 1 0 - 0x80040600, // 000E RET 1 R3 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: consolidate_clusters ********************************************************************/ @@ -653,6 +539,33 @@ be_local_closure(Matter_Plugin_consolidate_clusters, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: +********************************************************************/ +be_local_closure(Matter_Plugin__X3Clambda_X3E, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 0, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x60040008, // 0000 GETGBL R1 G8 + 0x5C080000, // 0001 MOVE R2 R0 + 0x7C040200, // 0002 CALL R1 1 + 0x80040200, // 0003 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: get_attribute_list ********************************************************************/ @@ -686,6 +599,55 @@ be_local_closure(Matter_Plugin_get_attribute_list, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: read_event +********************************************************************/ +be_local_closure(Matter_Plugin_read_event, /* name */ + be_nested_proto( + 6, /* nstack */ + 5, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(read_event), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x4C140000, // 0000 LDNIL R5 + 0x80040A00, // 0001 RET 1 R5 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: parse_sensors +********************************************************************/ +be_local_closure(Matter_Plugin_parse_sensors, /* name */ + be_nested_proto( + 2, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(parse_sensors), + &be_const_str_solidified, + ( &(const binstruction[ 1]) { /* code */ + 0x80000000, // 0000 RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: get_cluster_list ********************************************************************/ @@ -733,9 +695,9 @@ be_local_closure(Matter_Plugin_get_cluster_list, /* name */ /******************************************************************** -** Solidified function: subscribe_attribute +** Solidified function: subscribe_event ********************************************************************/ -be_local_closure(Matter_Plugin_subscribe_attribute, /* name */ +be_local_closure(Matter_Plugin_subscribe_event, /* name */ be_nested_proto( 6, /* nstack */ 5, /* argc */ @@ -746,7 +708,7 @@ be_local_closure(Matter_Plugin_subscribe_attribute, /* name */ NULL, /* no sub protos */ 0, /* has constants */ NULL, /* no const */ - be_str_weak(subscribe_attribute), + be_str_weak(subscribe_event), &be_const_str_solidified, ( &(const binstruction[ 2]) { /* code */ 0x4C140000, // 0000 LDNIL R5 @@ -763,30 +725,11 @@ be_local_closure(Matter_Plugin_subscribe_attribute, /* name */ be_local_class(Matter_Plugin, 3, NULL, - be_nested_map(24, + be_nested_map(25, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(subscribe_attribute, 23), be_const_closure(Matter_Plugin_subscribe_attribute_closure) }, - { be_const_key_weak(get_endpoint, -1), be_const_closure(Matter_Plugin_get_endpoint_closure) }, - { be_const_key_weak(timed_request, -1), be_const_closure(Matter_Plugin_timed_request_closure) }, - { be_const_key_weak(device, 21), be_const_var(0) }, - { be_const_key_weak(endpoint, 0), be_const_var(1) }, - { be_const_key_weak(get_cluster_list, 17), be_const_closure(Matter_Plugin_get_cluster_list_closure) }, - { be_const_key_weak(NAME, -1), be_nested_str_weak(generic) }, - { be_const_key_weak(to_json, 5), be_const_closure(Matter_Plugin_to_json_closure) }, - { be_const_key_weak(get_attribute_list, -1), be_const_closure(Matter_Plugin_get_attribute_list_closure) }, - { be_const_key_weak(every_second, 8), be_const_closure(Matter_Plugin_every_second_closure) }, - { be_const_key_weak(clusters, 22), be_const_var(2) }, - { be_const_key_weak(invoke_request, -1), be_const_closure(Matter_Plugin_invoke_request_closure) }, - { be_const_key_weak(parse_sensors, -1), be_const_closure(Matter_Plugin_parse_sensors_closure) }, - { be_const_key_weak(update_shadow, -1), be_const_closure(Matter_Plugin_update_shadow_closure) }, - { be_const_key_weak(consolidate_clusters, -1), be_const_closure(Matter_Plugin_consolidate_clusters_closure) }, - { be_const_key_weak(has, -1), be_const_closure(Matter_Plugin_has_closure) }, - { be_const_key_weak(read_attribute, -1), be_const_closure(Matter_Plugin_read_attribute_closure) }, { be_const_key_weak(attribute_updated, -1), be_const_closure(Matter_Plugin_attribute_updated_closure) }, - { be_const_key_weak(read_event, 16), be_const_closure(Matter_Plugin_read_event_closure) }, - { be_const_key_weak(write_attribute, 15), be_const_closure(Matter_Plugin_write_attribute_closure) }, - { be_const_key_weak(subscribe_event, 14), be_const_closure(Matter_Plugin_subscribe_event_closure) }, - { be_const_key_weak(init, -1), be_const_closure(Matter_Plugin_init_closure) }, + { be_const_key_weak(timed_request, 7), be_const_closure(Matter_Plugin_timed_request_closure) }, + { be_const_key_weak(get_endpoint, -1), be_const_closure(Matter_Plugin_get_endpoint_closure) }, { be_const_key_weak(CLUSTERS, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(1, ( (struct bmapnode*) &(const bmapnode[]) { @@ -801,7 +744,27 @@ be_local_class(Matter_Plugin, be_const_int(65533), })) ) } )) }, })) ) } )) }, - { be_const_key_weak(to_json_parameters, -1), be_const_closure(Matter_Plugin_to_json_parameters_closure) }, + { be_const_key_weak(subscribe_attribute, -1), be_const_closure(Matter_Plugin_subscribe_attribute_closure) }, + { be_const_key_weak(init, -1), be_const_closure(Matter_Plugin_init_closure) }, + { be_const_key_weak(subscribe_event, 18), be_const_closure(Matter_Plugin_subscribe_event_closure) }, + { be_const_key_weak(clusters, -1), be_const_var(2) }, + { be_const_key_weak(endpoint, -1), be_const_var(1) }, + { be_const_key_weak(update_shadow, -1), be_const_closure(Matter_Plugin_update_shadow_closure) }, + { be_const_key_weak(write_attribute, 23), be_const_closure(Matter_Plugin_write_attribute_closure) }, + { be_const_key_weak(device, -1), be_const_var(0) }, + { be_const_key_weak(invoke_request, 6), be_const_closure(Matter_Plugin_invoke_request_closure) }, + { be_const_key_weak(read_event, -1), be_const_closure(Matter_Plugin_read_event_closure) }, + { be_const_key_weak(TYPE, 9), be_nested_str_weak(generic) }, + { be_const_key_weak(every_second, -1), be_const_closure(Matter_Plugin_every_second_closure) }, + { be_const_key_weak(get_attribute_list, 17), be_const_closure(Matter_Plugin_get_attribute_list_closure) }, + { be_const_key_weak(ARG_TYPE, -1), be_const_static_closure(Matter_Plugin__X3Clambda_X3E_closure) }, + { be_const_key_weak(read_attribute, -1), be_const_closure(Matter_Plugin_read_attribute_closure) }, + { be_const_key_weak(ARG, 16), be_nested_str_weak() }, + { be_const_key_weak(consolidate_clusters, 13), be_const_closure(Matter_Plugin_consolidate_clusters_closure) }, + { be_const_key_weak(parse_sensors, -1), be_const_closure(Matter_Plugin_parse_sensors_closure) }, + { be_const_key_weak(get_cluster_list, -1), be_const_closure(Matter_Plugin_get_cluster_list_closure) }, + { be_const_key_weak(has, -1), be_const_closure(Matter_Plugin_has_closure) }, + { be_const_key_weak(NAME, 3), be_nested_str_weak() }, })), be_str_weak(Matter_Plugin) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Light0.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Light0.h index d2eab2b66..287a29d30 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Light0.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Light0.h @@ -390,11 +390,17 @@ extern const bclass be_class_Matter_Plugin; be_local_class(Matter_Plugin_Light0, 1, &be_class_Matter_Plugin, - be_nested_map(8, + be_nested_map(9, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(shadow_onoff, -1), be_const_var(0) }, { be_const_key_weak(init, -1), be_const_closure(Matter_Plugin_Light0_init_closure) }, - { be_const_key_weak(CLUSTERS, 4), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + { be_const_key_weak(shadow_onoff, 8), be_const_var(0) }, + { be_const_key_weak(TYPES, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + be_const_map( * be_nested_map(1, + ( (struct bmapnode*) &(const bmapnode[]) { + { be_const_key_int(256, -1), be_const_int(2) }, + })) ) } )) }, + { be_const_key_weak(NAME, -1), be_nested_str_weak(Light_X200_X20On) }, + { be_const_key_weak(CLUSTERS, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(4, ( (struct bmapnode*) &(const bmapnode[]) { { be_const_key_int(4, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { @@ -432,15 +438,10 @@ be_local_class(Matter_Plugin_Light0, be_const_int(65533), })) ) } )) }, })) ) } )) }, - { be_const_key_weak(invoke_request, 1), be_const_closure(Matter_Plugin_Light0_invoke_request_closure) }, - { be_const_key_weak(read_attribute, 7), be_const_closure(Matter_Plugin_Light0_read_attribute_closure) }, + { be_const_key_weak(invoke_request, -1), be_const_closure(Matter_Plugin_Light0_invoke_request_closure) }, + { be_const_key_weak(read_attribute, 0), be_const_closure(Matter_Plugin_Light0_read_attribute_closure) }, { be_const_key_weak(update_shadow, -1), be_const_closure(Matter_Plugin_Light0_update_shadow_closure) }, - { be_const_key_weak(NAME, -1), be_nested_str_weak(light0) }, - { be_const_key_weak(TYPES, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { - be_const_map( * be_nested_map(1, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_int(256, -1), be_const_int(2) }, - })) ) } )) }, + { be_const_key_weak(TYPE, -1), be_nested_str_weak(light0) }, })), be_str_weak(Matter_Plugin_Light0) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Light1.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Light1.h index 54d712ba6..b0f2d5523 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Light1.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Light1.h @@ -7,151 +7,69 @@ extern const bclass be_class_Matter_Plugin_Light1; /******************************************************************** -** Solidified function: init +** Solidified function: update_shadow ********************************************************************/ -be_local_closure(Matter_Plugin_Light1_init, /* name */ - be_nested_proto( - 9, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str_weak(init), - /* K1 */ be_nested_str_weak(shadow_bri), - /* K2 */ be_const_int(0), - }), - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0x60100003, // 0000 GETGBL R4 G3 - 0x5C140000, // 0001 MOVE R5 R0 - 0x7C100200, // 0002 CALL R4 1 - 0x8C100900, // 0003 GETMET R4 R4 K0 - 0x5C180200, // 0004 MOVE R6 R1 - 0x5C1C0400, // 0005 MOVE R7 R2 - 0x5C200600, // 0006 MOVE R8 R3 - 0x7C100800, // 0007 CALL R4 4 - 0x90020302, // 0008 SETMBR R0 K1 K2 - 0x80000000, // 0009 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: read_attribute -********************************************************************/ -be_local_closure(Matter_Plugin_Light1_read_attribute, /* name */ +be_local_closure(Matter_Plugin_Light1_update_shadow, /* name */ be_nested_proto( 11, /* nstack */ - 3, /* argc */ + 1, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[14]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(matter), - /* K2 */ be_nested_str_weak(TLV), - /* K3 */ be_nested_str_weak(cluster), - /* K4 */ be_nested_str_weak(attribute), - /* K5 */ be_const_int(0), - /* K6 */ be_nested_str_weak(create_TLV), - /* K7 */ be_nested_str_weak(U1), - /* K8 */ be_nested_str_weak(shadow_bri), - /* K9 */ be_const_int(2), - /* K10 */ be_const_int(3), - /* K11 */ be_nested_str_weak(U4), - /* K12 */ be_const_int(1), - /* K13 */ be_nested_str_weak(read_attribute), + ( &(const bvalue[10]) { /* constants */ + /* K0 */ be_nested_str_weak(light), + /* K1 */ be_nested_str_weak(get), + /* K2 */ be_nested_str_weak(find), + /* K3 */ be_nested_str_weak(bri), + /* K4 */ be_nested_str_weak(tasmota), + /* K5 */ be_nested_str_weak(scale_uint), + /* K6 */ be_const_int(0), + /* K7 */ be_nested_str_weak(shadow_bri), + /* K8 */ be_nested_str_weak(attribute_updated), + /* K9 */ be_nested_str_weak(update_shadow), }), - be_str_weak(read_attribute), + be_str_weak(update_shadow), &be_const_str_solidified, - ( &(const binstruction[77]) { /* code */ - 0xA40E0000, // 0000 IMPORT R3 K0 - 0xB8120200, // 0001 GETNGBL R4 K1 - 0x88100902, // 0002 GETMBR R4 R4 K2 - 0x88140503, // 0003 GETMBR R5 R2 K3 - 0x88180504, // 0004 GETMBR R6 R2 K4 - 0x541E0007, // 0005 LDINT R7 8 - 0x1C1C0A07, // 0006 EQ R7 R5 R7 - 0x781E003B, // 0007 JMPF R7 #0044 - 0x1C1C0D05, // 0008 EQ R7 R6 K5 - 0x781E0005, // 0009 JMPF R7 #0010 - 0x8C1C0906, // 000A GETMET R7 R4 K6 - 0x88240907, // 000B GETMBR R9 R4 K7 - 0x88280108, // 000C GETMBR R10 R0 K8 - 0x7C1C0600, // 000D CALL R7 3 - 0x80040E00, // 000E RET 1 R7 - 0x70020032, // 000F JMP #0043 - 0x1C1C0D09, // 0010 EQ R7 R6 K9 - 0x781E0005, // 0011 JMPF R7 #0018 - 0x8C1C0906, // 0012 GETMET R7 R4 K6 - 0x88240907, // 0013 GETMBR R9 R4 K7 - 0x58280005, // 0014 LDCONST R10 K5 - 0x7C1C0600, // 0015 CALL R7 3 - 0x80040E00, // 0016 RET 1 R7 - 0x7002002A, // 0017 JMP #0043 - 0x1C1C0D0A, // 0018 EQ R7 R6 K10 - 0x781E0005, // 0019 JMPF R7 #0020 - 0x8C1C0906, // 001A GETMET R7 R4 K6 - 0x88240907, // 001B GETMBR R9 R4 K7 - 0x542A00FD, // 001C LDINT R10 254 - 0x7C1C0600, // 001D CALL R7 3 - 0x80040E00, // 001E RET 1 R7 - 0x70020022, // 001F JMP #0043 - 0x541E000E, // 0020 LDINT R7 15 - 0x1C1C0C07, // 0021 EQ R7 R6 R7 - 0x781E0005, // 0022 JMPF R7 #0029 - 0x8C1C0906, // 0023 GETMET R7 R4 K6 - 0x88240907, // 0024 GETMBR R9 R4 K7 - 0x58280005, // 0025 LDCONST R10 K5 - 0x7C1C0600, // 0026 CALL R7 3 - 0x80040E00, // 0027 RET 1 R7 - 0x70020019, // 0028 JMP #0043 - 0x541E0010, // 0029 LDINT R7 17 - 0x1C1C0C07, // 002A EQ R7 R6 R7 - 0x781E0005, // 002B JMPF R7 #0032 - 0x8C1C0906, // 002C GETMET R7 R4 K6 - 0x88240907, // 002D GETMBR R9 R4 K7 - 0x88280108, // 002E GETMBR R10 R0 K8 - 0x7C1C0600, // 002F CALL R7 3 - 0x80040E00, // 0030 RET 1 R7 - 0x70020010, // 0031 JMP #0043 - 0x541EFFFB, // 0032 LDINT R7 65532 - 0x1C1C0C07, // 0033 EQ R7 R6 R7 - 0x781E0005, // 0034 JMPF R7 #003B - 0x8C1C0906, // 0035 GETMET R7 R4 K6 - 0x8824090B, // 0036 GETMBR R9 R4 K11 - 0x5828000C, // 0037 LDCONST R10 K12 - 0x7C1C0600, // 0038 CALL R7 3 - 0x80040E00, // 0039 RET 1 R7 - 0x70020007, // 003A JMP #0043 - 0x541EFFFC, // 003B LDINT R7 65533 - 0x1C1C0C07, // 003C EQ R7 R6 R7 - 0x781E0004, // 003D JMPF R7 #0043 - 0x8C1C0906, // 003E GETMET R7 R4 K6 - 0x8824090B, // 003F GETMBR R9 R4 K11 - 0x542A0004, // 0040 LDINT R10 5 - 0x7C1C0600, // 0041 CALL R7 3 - 0x80040E00, // 0042 RET 1 R7 - 0x70020007, // 0043 JMP #004C - 0x601C0003, // 0044 GETGBL R7 G3 - 0x5C200000, // 0045 MOVE R8 R0 - 0x7C1C0200, // 0046 CALL R7 1 - 0x8C1C0F0D, // 0047 GETMET R7 R7 K13 - 0x5C240200, // 0048 MOVE R9 R1 - 0x5C280400, // 0049 MOVE R10 R2 - 0x7C1C0600, // 004A CALL R7 3 - 0x80040E00, // 004B RET 1 R7 - 0x80000000, // 004C RET 0 + ( &(const binstruction[36]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x8C080301, // 0001 GETMET R2 R1 K1 + 0x7C080200, // 0002 CALL R2 1 + 0x8C0C0502, // 0003 GETMET R3 R2 K2 + 0x58140003, // 0004 LDCONST R5 K3 + 0x4C180000, // 0005 LDNIL R6 + 0x7C0C0600, // 0006 CALL R3 3 + 0x4C100000, // 0007 LDNIL R4 + 0x20100604, // 0008 NE R4 R3 R4 + 0x78120009, // 0009 JMPF R4 #0014 + 0xB8120800, // 000A GETNGBL R4 K4 + 0x8C100905, // 000B GETMET R4 R4 K5 + 0x5C180600, // 000C MOVE R6 R3 + 0x581C0006, // 000D LDCONST R7 K6 + 0x542200FE, // 000E LDINT R8 255 + 0x58240006, // 000F LDCONST R9 K6 + 0x542A00FD, // 0010 LDINT R10 254 + 0x7C100C00, // 0011 CALL R4 6 + 0x5C0C0800, // 0012 MOVE R3 R4 + 0x70020000, // 0013 JMP #0015 + 0x880C0107, // 0014 GETMBR R3 R0 K7 + 0x88100107, // 0015 GETMBR R4 R0 K7 + 0x20100604, // 0016 NE R4 R3 R4 + 0x78120005, // 0017 JMPF R4 #001E + 0x8C100108, // 0018 GETMET R4 R0 K8 + 0x4C180000, // 0019 LDNIL R6 + 0x541E0007, // 001A LDINT R7 8 + 0x58200006, // 001B LDCONST R8 K6 + 0x7C100800, // 001C CALL R4 4 + 0x90020E03, // 001D SETMBR R0 K7 R3 + 0x60100003, // 001E GETGBL R4 G3 + 0x5C140000, // 001F MOVE R5 R0 + 0x7C100200, // 0020 CALL R4 1 + 0x8C100909, // 0021 GETMET R4 R4 K9 + 0x7C100200, // 0022 CALL R4 1 + 0x80000000, // 0023 RET 0 }) ) ); @@ -312,69 +230,151 @@ be_local_closure(Matter_Plugin_Light1_invoke_request, /* name */ /******************************************************************** -** Solidified function: update_shadow +** Solidified function: read_attribute ********************************************************************/ -be_local_closure(Matter_Plugin_Light1_update_shadow, /* name */ +be_local_closure(Matter_Plugin_Light1_read_attribute, /* name */ be_nested_proto( 11, /* nstack */ - 1, /* argc */ + 3, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[10]) { /* constants */ - /* K0 */ be_nested_str_weak(light), - /* K1 */ be_nested_str_weak(get), - /* K2 */ be_nested_str_weak(find), - /* K3 */ be_nested_str_weak(bri), - /* K4 */ be_nested_str_weak(tasmota), - /* K5 */ be_nested_str_weak(scale_uint), - /* K6 */ be_const_int(0), - /* K7 */ be_nested_str_weak(shadow_bri), - /* K8 */ be_nested_str_weak(attribute_updated), - /* K9 */ be_nested_str_weak(update_shadow), + ( &(const bvalue[14]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(matter), + /* K2 */ be_nested_str_weak(TLV), + /* K3 */ be_nested_str_weak(cluster), + /* K4 */ be_nested_str_weak(attribute), + /* K5 */ be_const_int(0), + /* K6 */ be_nested_str_weak(create_TLV), + /* K7 */ be_nested_str_weak(U1), + /* K8 */ be_nested_str_weak(shadow_bri), + /* K9 */ be_const_int(2), + /* K10 */ be_const_int(3), + /* K11 */ be_nested_str_weak(U4), + /* K12 */ be_const_int(1), + /* K13 */ be_nested_str_weak(read_attribute), }), - be_str_weak(update_shadow), + be_str_weak(read_attribute), &be_const_str_solidified, - ( &(const binstruction[36]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x8C080301, // 0001 GETMET R2 R1 K1 - 0x7C080200, // 0002 CALL R2 1 - 0x8C0C0502, // 0003 GETMET R3 R2 K2 - 0x58140003, // 0004 LDCONST R5 K3 - 0x4C180000, // 0005 LDNIL R6 - 0x7C0C0600, // 0006 CALL R3 3 - 0x4C100000, // 0007 LDNIL R4 - 0x20100604, // 0008 NE R4 R3 R4 - 0x78120009, // 0009 JMPF R4 #0014 - 0xB8120800, // 000A GETNGBL R4 K4 - 0x8C100905, // 000B GETMET R4 R4 K5 - 0x5C180600, // 000C MOVE R6 R3 - 0x581C0006, // 000D LDCONST R7 K6 - 0x542200FE, // 000E LDINT R8 255 - 0x58240006, // 000F LDCONST R9 K6 - 0x542A00FD, // 0010 LDINT R10 254 - 0x7C100C00, // 0011 CALL R4 6 - 0x5C0C0800, // 0012 MOVE R3 R4 - 0x70020000, // 0013 JMP #0015 - 0x880C0107, // 0014 GETMBR R3 R0 K7 - 0x88100107, // 0015 GETMBR R4 R0 K7 - 0x20100604, // 0016 NE R4 R3 R4 - 0x78120005, // 0017 JMPF R4 #001E - 0x8C100108, // 0018 GETMET R4 R0 K8 - 0x4C180000, // 0019 LDNIL R6 - 0x541E0007, // 001A LDINT R7 8 - 0x58200006, // 001B LDCONST R8 K6 - 0x7C100800, // 001C CALL R4 4 - 0x90020E03, // 001D SETMBR R0 K7 R3 - 0x60100003, // 001E GETGBL R4 G3 - 0x5C140000, // 001F MOVE R5 R0 - 0x7C100200, // 0020 CALL R4 1 - 0x8C100909, // 0021 GETMET R4 R4 K9 - 0x7C100200, // 0022 CALL R4 1 - 0x80000000, // 0023 RET 0 + ( &(const binstruction[77]) { /* code */ + 0xA40E0000, // 0000 IMPORT R3 K0 + 0xB8120200, // 0001 GETNGBL R4 K1 + 0x88100902, // 0002 GETMBR R4 R4 K2 + 0x88140503, // 0003 GETMBR R5 R2 K3 + 0x88180504, // 0004 GETMBR R6 R2 K4 + 0x541E0007, // 0005 LDINT R7 8 + 0x1C1C0A07, // 0006 EQ R7 R5 R7 + 0x781E003B, // 0007 JMPF R7 #0044 + 0x1C1C0D05, // 0008 EQ R7 R6 K5 + 0x781E0005, // 0009 JMPF R7 #0010 + 0x8C1C0906, // 000A GETMET R7 R4 K6 + 0x88240907, // 000B GETMBR R9 R4 K7 + 0x88280108, // 000C GETMBR R10 R0 K8 + 0x7C1C0600, // 000D CALL R7 3 + 0x80040E00, // 000E RET 1 R7 + 0x70020032, // 000F JMP #0043 + 0x1C1C0D09, // 0010 EQ R7 R6 K9 + 0x781E0005, // 0011 JMPF R7 #0018 + 0x8C1C0906, // 0012 GETMET R7 R4 K6 + 0x88240907, // 0013 GETMBR R9 R4 K7 + 0x58280005, // 0014 LDCONST R10 K5 + 0x7C1C0600, // 0015 CALL R7 3 + 0x80040E00, // 0016 RET 1 R7 + 0x7002002A, // 0017 JMP #0043 + 0x1C1C0D0A, // 0018 EQ R7 R6 K10 + 0x781E0005, // 0019 JMPF R7 #0020 + 0x8C1C0906, // 001A GETMET R7 R4 K6 + 0x88240907, // 001B GETMBR R9 R4 K7 + 0x542A00FD, // 001C LDINT R10 254 + 0x7C1C0600, // 001D CALL R7 3 + 0x80040E00, // 001E RET 1 R7 + 0x70020022, // 001F JMP #0043 + 0x541E000E, // 0020 LDINT R7 15 + 0x1C1C0C07, // 0021 EQ R7 R6 R7 + 0x781E0005, // 0022 JMPF R7 #0029 + 0x8C1C0906, // 0023 GETMET R7 R4 K6 + 0x88240907, // 0024 GETMBR R9 R4 K7 + 0x58280005, // 0025 LDCONST R10 K5 + 0x7C1C0600, // 0026 CALL R7 3 + 0x80040E00, // 0027 RET 1 R7 + 0x70020019, // 0028 JMP #0043 + 0x541E0010, // 0029 LDINT R7 17 + 0x1C1C0C07, // 002A EQ R7 R6 R7 + 0x781E0005, // 002B JMPF R7 #0032 + 0x8C1C0906, // 002C GETMET R7 R4 K6 + 0x88240907, // 002D GETMBR R9 R4 K7 + 0x88280108, // 002E GETMBR R10 R0 K8 + 0x7C1C0600, // 002F CALL R7 3 + 0x80040E00, // 0030 RET 1 R7 + 0x70020010, // 0031 JMP #0043 + 0x541EFFFB, // 0032 LDINT R7 65532 + 0x1C1C0C07, // 0033 EQ R7 R6 R7 + 0x781E0005, // 0034 JMPF R7 #003B + 0x8C1C0906, // 0035 GETMET R7 R4 K6 + 0x8824090B, // 0036 GETMBR R9 R4 K11 + 0x5828000C, // 0037 LDCONST R10 K12 + 0x7C1C0600, // 0038 CALL R7 3 + 0x80040E00, // 0039 RET 1 R7 + 0x70020007, // 003A JMP #0043 + 0x541EFFFC, // 003B LDINT R7 65533 + 0x1C1C0C07, // 003C EQ R7 R6 R7 + 0x781E0004, // 003D JMPF R7 #0043 + 0x8C1C0906, // 003E GETMET R7 R4 K6 + 0x8824090B, // 003F GETMBR R9 R4 K11 + 0x542A0004, // 0040 LDINT R10 5 + 0x7C1C0600, // 0041 CALL R7 3 + 0x80040E00, // 0042 RET 1 R7 + 0x70020007, // 0043 JMP #004C + 0x601C0003, // 0044 GETGBL R7 G3 + 0x5C200000, // 0045 MOVE R8 R0 + 0x7C1C0200, // 0046 CALL R7 1 + 0x8C1C0F0D, // 0047 GETMET R7 R7 K13 + 0x5C240200, // 0048 MOVE R9 R1 + 0x5C280400, // 0049 MOVE R10 R2 + 0x7C1C0600, // 004A CALL R7 3 + 0x80040E00, // 004B RET 1 R7 + 0x80000000, // 004C RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: init +********************************************************************/ +be_local_closure(Matter_Plugin_Light1_init, /* name */ + be_nested_proto( + 9, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 3]) { /* constants */ + /* K0 */ be_nested_str_weak(init), + /* K1 */ be_nested_str_weak(shadow_bri), + /* K2 */ be_const_int(0), + }), + be_str_weak(init), + &be_const_str_solidified, + ( &(const binstruction[10]) { /* code */ + 0x60100003, // 0000 GETGBL R4 G3 + 0x5C140000, // 0001 MOVE R5 R0 + 0x7C100200, // 0002 CALL R4 1 + 0x8C100900, // 0003 GETMET R4 R4 K0 + 0x5C180200, // 0004 MOVE R6 R1 + 0x5C1C0400, // 0005 MOVE R7 R2 + 0x5C200600, // 0006 MOVE R8 R3 + 0x7C100800, // 0007 CALL R4 4 + 0x90020302, // 0008 SETMBR R0 K1 K2 + 0x80000000, // 0009 RET 0 }) ) ); @@ -388,15 +388,17 @@ extern const bclass be_class_Matter_Plugin_Light0; be_local_class(Matter_Plugin_Light1, 1, &be_class_Matter_Plugin_Light0, - be_nested_map(8, + be_nested_map(9, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(TYPES, 7), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + { be_const_key_weak(init, -1), be_const_closure(Matter_Plugin_Light1_init_closure) }, + { be_const_key_weak(TYPE, -1), be_nested_str_weak(light1) }, + { be_const_key_weak(TYPES, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(1, ( (struct bmapnode*) &(const bmapnode[]) { { be_const_key_int(257, -1), be_const_int(2) }, })) ) } )) }, - { be_const_key_weak(invoke_request, -1), be_const_closure(Matter_Plugin_Light1_invoke_request_closure) }, - { be_const_key_weak(CLUSTERS, 0), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + { be_const_key_weak(NAME, -1), be_nested_str_weak(Light_X201_X20Dimmer) }, + { be_const_key_weak(CLUSTERS, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(1, ( (struct bmapnode*) &(const bmapnode[]) { { be_const_key_int(8, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { @@ -411,11 +413,10 @@ be_local_class(Matter_Plugin_Light1, be_const_int(65533), })) ) } )) }, })) ) } )) }, - { be_const_key_weak(init, 1), be_const_closure(Matter_Plugin_Light1_init_closure) }, - { be_const_key_weak(update_shadow, -1), be_const_closure(Matter_Plugin_Light1_update_shadow_closure) }, - { be_const_key_weak(shadow_bri, 4), be_const_var(0) }, - { be_const_key_weak(NAME, -1), be_nested_str_weak(light1) }, - { be_const_key_weak(read_attribute, -1), be_const_closure(Matter_Plugin_Light1_read_attribute_closure) }, + { be_const_key_weak(invoke_request, -1), be_const_closure(Matter_Plugin_Light1_invoke_request_closure) }, + { be_const_key_weak(read_attribute, 0), be_const_closure(Matter_Plugin_Light1_read_attribute_closure) }, + { be_const_key_weak(update_shadow, 8), be_const_closure(Matter_Plugin_Light1_update_shadow_closure) }, + { be_const_key_weak(shadow_bri, -1), be_const_var(0) }, })), be_str_weak(Matter_Plugin_Light1) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Light2.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Light2.h index 3ca7c0915..0cce12e73 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Light2.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Light2.h @@ -6,170 +6,6 @@ extern const bclass be_class_Matter_Plugin_Light2; -/******************************************************************** -** Solidified function: invoke_request -********************************************************************/ -be_local_closure(Matter_Plugin_Light2_invoke_request, /* name */ - be_nested_proto( - 13, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[15]) { /* constants */ - /* K0 */ be_nested_str_weak(light), - /* K1 */ be_nested_str_weak(matter), - /* K2 */ be_nested_str_weak(TLV), - /* K3 */ be_nested_str_weak(cluster), - /* K4 */ be_nested_str_weak(command), - /* K5 */ be_nested_str_weak(findsubval), - /* K6 */ be_const_int(0), - /* K7 */ be_nested_str_weak(ct_min), - /* K8 */ be_nested_str_weak(ct_max), - /* K9 */ be_nested_str_weak(set), - /* K10 */ be_nested_str_weak(ct), - /* K11 */ be_nested_str_weak(update_shadow), - /* K12 */ be_nested_str_weak(log), - /* K13 */ be_nested_str_weak(ct_X3A), - /* K14 */ be_nested_str_weak(invoke_request), - }), - be_str_weak(invoke_request), - &be_const_str_solidified, - ( &(const binstruction[65]) { /* code */ - 0xA4120000, // 0000 IMPORT R4 K0 - 0xB8160200, // 0001 GETNGBL R5 K1 - 0x88140B02, // 0002 GETMBR R5 R5 K2 - 0x88180703, // 0003 GETMBR R6 R3 K3 - 0x881C0704, // 0004 GETMBR R7 R3 K4 - 0x542202FF, // 0005 LDINT R8 768 - 0x1C200C08, // 0006 EQ R8 R6 R8 - 0x7822002E, // 0007 JMPF R8 #0037 - 0x54220009, // 0008 LDINT R8 10 - 0x1C200E08, // 0009 EQ R8 R7 R8 - 0x78220019, // 000A JMPF R8 #0025 - 0x8C200505, // 000B GETMET R8 R2 K5 - 0x58280006, // 000C LDCONST R10 K6 - 0x7C200400, // 000D CALL R8 2 - 0x88240107, // 000E GETMBR R9 R0 K7 - 0x14241009, // 000F LT R9 R8 R9 - 0x78260000, // 0010 JMPF R9 #0012 - 0x88200107, // 0011 GETMBR R8 R0 K7 - 0x88240108, // 0012 GETMBR R9 R0 K8 - 0x24241009, // 0013 GT R9 R8 R9 - 0x78260000, // 0014 JMPF R9 #0016 - 0x88200108, // 0015 GETMBR R8 R0 K8 - 0x8C240909, // 0016 GETMET R9 R4 K9 - 0x602C0013, // 0017 GETGBL R11 G19 - 0x7C2C0000, // 0018 CALL R11 0 - 0x982E1408, // 0019 SETIDX R11 K10 R8 - 0x7C240400, // 001A CALL R9 2 - 0x8C24010B, // 001B GETMET R9 R0 K11 - 0x7C240200, // 001C CALL R9 1 - 0x60240008, // 001D GETGBL R9 G8 - 0x5C281000, // 001E MOVE R10 R8 - 0x7C240200, // 001F CALL R9 1 - 0x00261A09, // 0020 ADD R9 K13 R9 - 0x900E1809, // 0021 SETMBR R3 K12 R9 - 0x50240200, // 0022 LDBOOL R9 1 0 - 0x80041200, // 0023 RET 1 R9 - 0x70020010, // 0024 JMP #0036 - 0x54220046, // 0025 LDINT R8 71 - 0x1C200E08, // 0026 EQ R8 R7 R8 - 0x78220002, // 0027 JMPF R8 #002B - 0x50200200, // 0028 LDBOOL R8 1 0 - 0x80041000, // 0029 RET 1 R8 - 0x7002000A, // 002A JMP #0036 - 0x5422004A, // 002B LDINT R8 75 - 0x1C200E08, // 002C EQ R8 R7 R8 - 0x78220002, // 002D JMPF R8 #0031 - 0x50200200, // 002E LDBOOL R8 1 0 - 0x80041000, // 002F RET 1 R8 - 0x70020004, // 0030 JMP #0036 - 0x5422004B, // 0031 LDINT R8 76 - 0x1C200E08, // 0032 EQ R8 R7 R8 - 0x78220001, // 0033 JMPF R8 #0036 - 0x50200200, // 0034 LDBOOL R8 1 0 - 0x80041000, // 0035 RET 1 R8 - 0x70020008, // 0036 JMP #0040 - 0x60200003, // 0037 GETGBL R8 G3 - 0x5C240000, // 0038 MOVE R9 R0 - 0x7C200200, // 0039 CALL R8 1 - 0x8C20110E, // 003A GETMET R8 R8 K14 - 0x5C280200, // 003B MOVE R10 R1 - 0x5C2C0400, // 003C MOVE R11 R2 - 0x5C300600, // 003D MOVE R12 R3 - 0x7C200800, // 003E CALL R8 4 - 0x80041000, // 003F RET 1 R8 - 0x80000000, // 0040 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: update_shadow -********************************************************************/ -be_local_closure(Matter_Plugin_Light2_update_shadow, /* name */ - be_nested_proto( - 9, /* 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(light), - /* K1 */ be_nested_str_weak(update_ct_minmax), - /* K2 */ be_nested_str_weak(update_shadow), - /* K3 */ be_nested_str_weak(get), - /* K4 */ be_nested_str_weak(find), - /* K5 */ be_nested_str_weak(ct), - /* K6 */ be_nested_str_weak(shadow_ct), - /* K7 */ be_nested_str_weak(attribute_updated), - }), - be_str_weak(update_shadow), - &be_const_str_solidified, - ( &(const binstruction[28]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x8C080101, // 0001 GETMET R2 R0 K1 - 0x7C080200, // 0002 CALL R2 1 - 0x60080003, // 0003 GETGBL R2 G3 - 0x5C0C0000, // 0004 MOVE R3 R0 - 0x7C080200, // 0005 CALL R2 1 - 0x8C080502, // 0006 GETMET R2 R2 K2 - 0x7C080200, // 0007 CALL R2 1 - 0x8C080303, // 0008 GETMET R2 R1 K3 - 0x7C080200, // 0009 CALL R2 1 - 0x8C0C0504, // 000A GETMET R3 R2 K4 - 0x58140005, // 000B LDCONST R5 K5 - 0x4C180000, // 000C LDNIL R6 - 0x7C0C0600, // 000D CALL R3 3 - 0x4C100000, // 000E LDNIL R4 - 0x1C100604, // 000F EQ R4 R3 R4 - 0x78120000, // 0010 JMPF R4 #0012 - 0x880C0106, // 0011 GETMBR R3 R0 K6 - 0x88100106, // 0012 GETMBR R4 R0 K6 - 0x20100604, // 0013 NE R4 R3 R4 - 0x78120005, // 0014 JMPF R4 #001B - 0x8C100107, // 0015 GETMET R4 R0 K7 - 0x4C180000, // 0016 LDNIL R6 - 0x541E02FF, // 0017 LDINT R7 768 - 0x54220006, // 0018 LDINT R8 7 - 0x7C100800, // 0019 CALL R4 4 - 0x90020C03, // 001A SETMBR R0 K6 R3 - 0x80000000, // 001B RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: read_attribute ********************************************************************/ @@ -288,6 +124,66 @@ be_local_closure(Matter_Plugin_Light2_read_attribute, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: update_shadow +********************************************************************/ +be_local_closure(Matter_Plugin_Light2_update_shadow, /* name */ + be_nested_proto( + 9, /* 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(light), + /* K1 */ be_nested_str_weak(update_ct_minmax), + /* K2 */ be_nested_str_weak(update_shadow), + /* K3 */ be_nested_str_weak(get), + /* K4 */ be_nested_str_weak(find), + /* K5 */ be_nested_str_weak(ct), + /* K6 */ be_nested_str_weak(shadow_ct), + /* K7 */ be_nested_str_weak(attribute_updated), + }), + be_str_weak(update_shadow), + &be_const_str_solidified, + ( &(const binstruction[28]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x8C080101, // 0001 GETMET R2 R0 K1 + 0x7C080200, // 0002 CALL R2 1 + 0x60080003, // 0003 GETGBL R2 G3 + 0x5C0C0000, // 0004 MOVE R3 R0 + 0x7C080200, // 0005 CALL R2 1 + 0x8C080502, // 0006 GETMET R2 R2 K2 + 0x7C080200, // 0007 CALL R2 1 + 0x8C080303, // 0008 GETMET R2 R1 K3 + 0x7C080200, // 0009 CALL R2 1 + 0x8C0C0504, // 000A GETMET R3 R2 K4 + 0x58140005, // 000B LDCONST R5 K5 + 0x4C180000, // 000C LDNIL R6 + 0x7C0C0600, // 000D CALL R3 3 + 0x4C100000, // 000E LDNIL R4 + 0x1C100604, // 000F EQ R4 R3 R4 + 0x78120000, // 0010 JMPF R4 #0012 + 0x880C0106, // 0011 GETMBR R3 R0 K6 + 0x88100106, // 0012 GETMBR R4 R0 K6 + 0x20100604, // 0013 NE R4 R3 R4 + 0x78120005, // 0014 JMPF R4 #001B + 0x8C100107, // 0015 GETMET R4 R0 K7 + 0x4C180000, // 0016 LDNIL R6 + 0x541E02FF, // 0017 LDINT R7 768 + 0x54220006, // 0018 LDINT R8 7 + 0x7C100800, // 0019 CALL R4 4 + 0x90020C03, // 001A SETMBR R0 K6 R3 + 0x80000000, // 001B RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: init ********************************************************************/ @@ -371,6 +267,110 @@ be_local_closure(Matter_Plugin_Light2_update_ct_minmax, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: invoke_request +********************************************************************/ +be_local_closure(Matter_Plugin_Light2_invoke_request, /* name */ + be_nested_proto( + 13, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[15]) { /* constants */ + /* K0 */ be_nested_str_weak(light), + /* K1 */ be_nested_str_weak(matter), + /* K2 */ be_nested_str_weak(TLV), + /* K3 */ be_nested_str_weak(cluster), + /* K4 */ be_nested_str_weak(command), + /* K5 */ be_nested_str_weak(findsubval), + /* K6 */ be_const_int(0), + /* K7 */ be_nested_str_weak(ct_min), + /* K8 */ be_nested_str_weak(ct_max), + /* K9 */ be_nested_str_weak(set), + /* K10 */ be_nested_str_weak(ct), + /* K11 */ be_nested_str_weak(update_shadow), + /* K12 */ be_nested_str_weak(log), + /* K13 */ be_nested_str_weak(ct_X3A), + /* K14 */ be_nested_str_weak(invoke_request), + }), + be_str_weak(invoke_request), + &be_const_str_solidified, + ( &(const binstruction[65]) { /* code */ + 0xA4120000, // 0000 IMPORT R4 K0 + 0xB8160200, // 0001 GETNGBL R5 K1 + 0x88140B02, // 0002 GETMBR R5 R5 K2 + 0x88180703, // 0003 GETMBR R6 R3 K3 + 0x881C0704, // 0004 GETMBR R7 R3 K4 + 0x542202FF, // 0005 LDINT R8 768 + 0x1C200C08, // 0006 EQ R8 R6 R8 + 0x7822002E, // 0007 JMPF R8 #0037 + 0x54220009, // 0008 LDINT R8 10 + 0x1C200E08, // 0009 EQ R8 R7 R8 + 0x78220019, // 000A JMPF R8 #0025 + 0x8C200505, // 000B GETMET R8 R2 K5 + 0x58280006, // 000C LDCONST R10 K6 + 0x7C200400, // 000D CALL R8 2 + 0x88240107, // 000E GETMBR R9 R0 K7 + 0x14241009, // 000F LT R9 R8 R9 + 0x78260000, // 0010 JMPF R9 #0012 + 0x88200107, // 0011 GETMBR R8 R0 K7 + 0x88240108, // 0012 GETMBR R9 R0 K8 + 0x24241009, // 0013 GT R9 R8 R9 + 0x78260000, // 0014 JMPF R9 #0016 + 0x88200108, // 0015 GETMBR R8 R0 K8 + 0x8C240909, // 0016 GETMET R9 R4 K9 + 0x602C0013, // 0017 GETGBL R11 G19 + 0x7C2C0000, // 0018 CALL R11 0 + 0x982E1408, // 0019 SETIDX R11 K10 R8 + 0x7C240400, // 001A CALL R9 2 + 0x8C24010B, // 001B GETMET R9 R0 K11 + 0x7C240200, // 001C CALL R9 1 + 0x60240008, // 001D GETGBL R9 G8 + 0x5C281000, // 001E MOVE R10 R8 + 0x7C240200, // 001F CALL R9 1 + 0x00261A09, // 0020 ADD R9 K13 R9 + 0x900E1809, // 0021 SETMBR R3 K12 R9 + 0x50240200, // 0022 LDBOOL R9 1 0 + 0x80041200, // 0023 RET 1 R9 + 0x70020010, // 0024 JMP #0036 + 0x54220046, // 0025 LDINT R8 71 + 0x1C200E08, // 0026 EQ R8 R7 R8 + 0x78220002, // 0027 JMPF R8 #002B + 0x50200200, // 0028 LDBOOL R8 1 0 + 0x80041000, // 0029 RET 1 R8 + 0x7002000A, // 002A JMP #0036 + 0x5422004A, // 002B LDINT R8 75 + 0x1C200E08, // 002C EQ R8 R7 R8 + 0x78220002, // 002D JMPF R8 #0031 + 0x50200200, // 002E LDBOOL R8 1 0 + 0x80041000, // 002F RET 1 R8 + 0x70020004, // 0030 JMP #0036 + 0x5422004B, // 0031 LDINT R8 76 + 0x1C200E08, // 0032 EQ R8 R7 R8 + 0x78220001, // 0033 JMPF R8 #0036 + 0x50200200, // 0034 LDBOOL R8 1 0 + 0x80041000, // 0035 RET 1 R8 + 0x70020008, // 0036 JMP #0040 + 0x60200003, // 0037 GETGBL R8 G3 + 0x5C240000, // 0038 MOVE R9 R0 + 0x7C200200, // 0039 CALL R8 1 + 0x8C20110E, // 003A GETMET R8 R8 K14 + 0x5C280200, // 003B MOVE R10 R1 + 0x5C2C0400, // 003C MOVE R11 R2 + 0x5C300600, // 003D MOVE R12 R3 + 0x7C200800, // 003E CALL R8 4 + 0x80041000, // 003F RET 1 R8 + 0x80000000, // 0040 RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified class: Matter_Plugin_Light2 ********************************************************************/ @@ -378,19 +378,23 @@ extern const bclass be_class_Matter_Plugin_Light1; be_local_class(Matter_Plugin_Light2, 3, &be_class_Matter_Plugin_Light1, - be_nested_map(11, + be_nested_map(12, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(update_ct_minmax, -1), be_const_closure(Matter_Plugin_Light2_update_ct_minmax_closure) }, - { be_const_key_weak(update_shadow, -1), be_const_closure(Matter_Plugin_Light2_update_shadow_closure) }, - { be_const_key_weak(NAME, 5), be_nested_str_weak(light2) }, - { be_const_key_weak(read_attribute, 8), be_const_closure(Matter_Plugin_Light2_read_attribute_closure) }, + { be_const_key_weak(ct_min, -1), be_const_var(1) }, + { be_const_key_weak(shadow_ct, 8), be_const_var(0) }, { be_const_key_weak(TYPES, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(1, ( (struct bmapnode*) &(const bmapnode[]) { { be_const_key_int(268, -1), be_const_int(2) }, })) ) } )) }, - { be_const_key_weak(ct_min, 1), be_const_var(1) }, - { be_const_key_weak(CLUSTERS, 2), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + { be_const_key_weak(ct_max, 7), be_const_var(2) }, + { be_const_key_weak(TYPE, 0), be_nested_str_weak(light2) }, + { be_const_key_weak(read_attribute, -1), be_const_closure(Matter_Plugin_Light2_read_attribute_closure) }, + { be_const_key_weak(NAME, 5), be_nested_str_weak(Light_X202_X20CT) }, + { be_const_key_weak(init, -1), be_const_closure(Matter_Plugin_Light2_init_closure) }, + { be_const_key_weak(update_shadow, 4), be_const_closure(Matter_Plugin_Light2_update_shadow_closure) }, + { be_const_key_weak(update_ct_minmax, -1), be_const_closure(Matter_Plugin_Light2_update_ct_minmax_closure) }, + { be_const_key_weak(CLUSTERS, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(1, ( (struct bmapnode*) &(const bmapnode[]) { { be_const_key_int(768, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { @@ -405,10 +409,7 @@ be_local_class(Matter_Plugin_Light2, be_const_int(65533), })) ) } )) }, })) ) } )) }, - { be_const_key_weak(shadow_ct, -1), be_const_var(0) }, - { be_const_key_weak(ct_max, -1), be_const_var(2) }, - { be_const_key_weak(init, -1), be_const_closure(Matter_Plugin_Light2_init_closure) }, - { be_const_key_weak(invoke_request, 0), be_const_closure(Matter_Plugin_Light2_invoke_request_closure) }, + { be_const_key_weak(invoke_request, -1), be_const_closure(Matter_Plugin_Light2_invoke_request_closure) }, })), be_str_weak(Matter_Plugin_Light2) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Light3.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Light3.h index da74ed5c4..b4ebe2fd7 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Light3.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Light3.h @@ -6,6 +6,287 @@ extern const bclass be_class_Matter_Plugin_Light3; +/******************************************************************** +** Solidified function: update_shadow +********************************************************************/ +be_local_closure(Matter_Plugin_Light3_update_shadow, /* 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[13]) { /* constants */ + /* K0 */ be_nested_str_weak(light), + /* K1 */ be_nested_str_weak(update_shadow), + /* K2 */ be_nested_str_weak(get), + /* K3 */ be_nested_str_weak(find), + /* K4 */ be_nested_str_weak(hue), + /* K5 */ be_nested_str_weak(sat), + /* K6 */ be_nested_str_weak(tasmota), + /* K7 */ be_nested_str_weak(scale_uint), + /* K8 */ be_const_int(0), + /* K9 */ be_nested_str_weak(shadow_hue), + /* K10 */ be_nested_str_weak(shadow_sat), + /* K11 */ be_nested_str_weak(attribute_updated), + /* K12 */ be_const_int(1), + }), + be_str_weak(update_shadow), + &be_const_str_solidified, + ( &(const binstruction[63]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x60080003, // 0001 GETGBL R2 G3 + 0x5C0C0000, // 0002 MOVE R3 R0 + 0x7C080200, // 0003 CALL R2 1 + 0x8C080501, // 0004 GETMET R2 R2 K1 + 0x7C080200, // 0005 CALL R2 1 + 0x8C080302, // 0006 GETMET R2 R1 K2 + 0x7C080200, // 0007 CALL R2 1 + 0x8C0C0503, // 0008 GETMET R3 R2 K3 + 0x58140004, // 0009 LDCONST R5 K4 + 0x4C180000, // 000A LDNIL R6 + 0x7C0C0600, // 000B CALL R3 3 + 0x8C100503, // 000C GETMET R4 R2 K3 + 0x58180005, // 000D LDCONST R6 K5 + 0x4C1C0000, // 000E LDNIL R7 + 0x7C100600, // 000F CALL R4 3 + 0x4C140000, // 0010 LDNIL R5 + 0x20140605, // 0011 NE R5 R3 R5 + 0x78160009, // 0012 JMPF R5 #001D + 0xB8160C00, // 0013 GETNGBL R5 K6 + 0x8C140B07, // 0014 GETMET R5 R5 K7 + 0x5C1C0600, // 0015 MOVE R7 R3 + 0x58200008, // 0016 LDCONST R8 K8 + 0x54260167, // 0017 LDINT R9 360 + 0x58280008, // 0018 LDCONST R10 K8 + 0x542E00FD, // 0019 LDINT R11 254 + 0x7C140C00, // 001A CALL R5 6 + 0x5C0C0A00, // 001B MOVE R3 R5 + 0x70020000, // 001C JMP #001E + 0x880C0109, // 001D GETMBR R3 R0 K9 + 0x4C140000, // 001E LDNIL R5 + 0x20140805, // 001F NE R5 R4 R5 + 0x78160009, // 0020 JMPF R5 #002B + 0xB8160C00, // 0021 GETNGBL R5 K6 + 0x8C140B07, // 0022 GETMET R5 R5 K7 + 0x5C1C0800, // 0023 MOVE R7 R4 + 0x58200008, // 0024 LDCONST R8 K8 + 0x542600FE, // 0025 LDINT R9 255 + 0x58280008, // 0026 LDCONST R10 K8 + 0x542E00FD, // 0027 LDINT R11 254 + 0x7C140C00, // 0028 CALL R5 6 + 0x5C100A00, // 0029 MOVE R4 R5 + 0x70020000, // 002A JMP #002C + 0x8810010A, // 002B GETMBR R4 R0 K10 + 0x88140109, // 002C GETMBR R5 R0 K9 + 0x20140605, // 002D NE R5 R3 R5 + 0x78160005, // 002E JMPF R5 #0035 + 0x8C14010B, // 002F GETMET R5 R0 K11 + 0x4C1C0000, // 0030 LDNIL R7 + 0x542202FF, // 0031 LDINT R8 768 + 0x58240008, // 0032 LDCONST R9 K8 + 0x7C140800, // 0033 CALL R5 4 + 0x90021203, // 0034 SETMBR R0 K9 R3 + 0x8814010A, // 0035 GETMBR R5 R0 K10 + 0x20140805, // 0036 NE R5 R4 R5 + 0x78160005, // 0037 JMPF R5 #003E + 0x8C14010B, // 0038 GETMET R5 R0 K11 + 0x4C1C0000, // 0039 LDNIL R7 + 0x542202FF, // 003A LDINT R8 768 + 0x5824000C, // 003B LDCONST R9 K12 + 0x7C140800, // 003C CALL R5 4 + 0x90021404, // 003D SETMBR R0 K10 R4 + 0x80000000, // 003E RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: read_attribute +********************************************************************/ +be_local_closure(Matter_Plugin_Light3_read_attribute, /* name */ + be_nested_proto( + 11, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[13]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(matter), + /* K2 */ be_nested_str_weak(TLV), + /* K3 */ be_nested_str_weak(cluster), + /* K4 */ be_nested_str_weak(attribute), + /* K5 */ be_const_int(0), + /* K6 */ be_nested_str_weak(create_TLV), + /* K7 */ be_nested_str_weak(U1), + /* K8 */ be_nested_str_weak(shadow_hue), + /* K9 */ be_const_int(1), + /* K10 */ be_nested_str_weak(shadow_sat), + /* K11 */ be_nested_str_weak(U4), + /* K12 */ be_nested_str_weak(read_attribute), + }), + be_str_weak(read_attribute), + &be_const_str_solidified, + ( &(const binstruction[105]) { /* code */ + 0xA40E0000, // 0000 IMPORT R3 K0 + 0xB8120200, // 0001 GETNGBL R4 K1 + 0x88100902, // 0002 GETMBR R4 R4 K2 + 0x88140503, // 0003 GETMBR R5 R2 K3 + 0x88180504, // 0004 GETMBR R6 R2 K4 + 0x541E02FF, // 0005 LDINT R7 768 + 0x1C1C0A07, // 0006 EQ R7 R5 R7 + 0x781E0057, // 0007 JMPF R7 #0060 + 0x1C1C0D05, // 0008 EQ R7 R6 K5 + 0x781E0005, // 0009 JMPF R7 #0010 + 0x8C1C0906, // 000A GETMET R7 R4 K6 + 0x88240907, // 000B GETMBR R9 R4 K7 + 0x88280108, // 000C GETMBR R10 R0 K8 + 0x7C1C0600, // 000D CALL R7 3 + 0x80040E00, // 000E RET 1 R7 + 0x7002004E, // 000F JMP #005F + 0x1C1C0D09, // 0010 EQ R7 R6 K9 + 0x781E0005, // 0011 JMPF R7 #0018 + 0x8C1C0906, // 0012 GETMET R7 R4 K6 + 0x88240907, // 0013 GETMBR R9 R4 K7 + 0x8828010A, // 0014 GETMBR R10 R0 K10 + 0x7C1C0600, // 0015 CALL R7 3 + 0x80040E00, // 0016 RET 1 R7 + 0x70020046, // 0017 JMP #005F + 0x541E0006, // 0018 LDINT R7 7 + 0x1C1C0C07, // 0019 EQ R7 R6 R7 + 0x781E0005, // 001A JMPF R7 #0021 + 0x8C1C0906, // 001B GETMET R7 R4 K6 + 0x88240907, // 001C GETMBR R9 R4 K7 + 0x58280005, // 001D LDCONST R10 K5 + 0x7C1C0600, // 001E CALL R7 3 + 0x80040E00, // 001F RET 1 R7 + 0x7002003D, // 0020 JMP #005F + 0x541E0007, // 0021 LDINT R7 8 + 0x1C1C0C07, // 0022 EQ R7 R6 R7 + 0x781E0005, // 0023 JMPF R7 #002A + 0x8C1C0906, // 0024 GETMET R7 R4 K6 + 0x88240907, // 0025 GETMBR R9 R4 K7 + 0x58280005, // 0026 LDCONST R10 K5 + 0x7C1C0600, // 0027 CALL R7 3 + 0x80040E00, // 0028 RET 1 R7 + 0x70020034, // 0029 JMP #005F + 0x541E000E, // 002A LDINT R7 15 + 0x1C1C0C07, // 002B EQ R7 R6 R7 + 0x781E0005, // 002C JMPF R7 #0033 + 0x8C1C0906, // 002D GETMET R7 R4 K6 + 0x88240907, // 002E GETMBR R9 R4 K7 + 0x58280005, // 002F LDCONST R10 K5 + 0x7C1C0600, // 0030 CALL R7 3 + 0x80040E00, // 0031 RET 1 R7 + 0x7002002B, // 0032 JMP #005F + 0x541E4000, // 0033 LDINT R7 16385 + 0x1C1C0C07, // 0034 EQ R7 R6 R7 + 0x781E0005, // 0035 JMPF R7 #003C + 0x8C1C0906, // 0036 GETMET R7 R4 K6 + 0x88240907, // 0037 GETMBR R9 R4 K7 + 0x58280005, // 0038 LDCONST R10 K5 + 0x7C1C0600, // 0039 CALL R7 3 + 0x80040E00, // 003A RET 1 R7 + 0x70020022, // 003B JMP #005F + 0x541E4009, // 003C LDINT R7 16394 + 0x1C1C0C07, // 003D EQ R7 R6 R7 + 0x781E0005, // 003E JMPF R7 #0045 + 0x8C1C0906, // 003F GETMET R7 R4 K6 + 0x88240907, // 0040 GETMBR R9 R4 K7 + 0x58280005, // 0041 LDCONST R10 K5 + 0x7C1C0600, // 0042 CALL R7 3 + 0x80040E00, // 0043 RET 1 R7 + 0x70020019, // 0044 JMP #005F + 0x541E000F, // 0045 LDINT R7 16 + 0x1C1C0C07, // 0046 EQ R7 R6 R7 + 0x781E0005, // 0047 JMPF R7 #004E + 0x8C1C0906, // 0048 GETMET R7 R4 K6 + 0x88240907, // 0049 GETMBR R9 R4 K7 + 0x58280005, // 004A LDCONST R10 K5 + 0x7C1C0600, // 004B CALL R7 3 + 0x80040E00, // 004C RET 1 R7 + 0x70020010, // 004D JMP #005F + 0x541EFFFB, // 004E LDINT R7 65532 + 0x1C1C0C07, // 004F EQ R7 R6 R7 + 0x781E0005, // 0050 JMPF R7 #0057 + 0x8C1C0906, // 0051 GETMET R7 R4 K6 + 0x8824090B, // 0052 GETMBR R9 R4 K11 + 0x58280009, // 0053 LDCONST R10 K9 + 0x7C1C0600, // 0054 CALL R7 3 + 0x80040E00, // 0055 RET 1 R7 + 0x70020007, // 0056 JMP #005F + 0x541EFFFC, // 0057 LDINT R7 65533 + 0x1C1C0C07, // 0058 EQ R7 R6 R7 + 0x781E0004, // 0059 JMPF R7 #005F + 0x8C1C0906, // 005A GETMET R7 R4 K6 + 0x8824090B, // 005B GETMBR R9 R4 K11 + 0x542A0004, // 005C LDINT R10 5 + 0x7C1C0600, // 005D CALL R7 3 + 0x80040E00, // 005E RET 1 R7 + 0x70020007, // 005F JMP #0068 + 0x601C0003, // 0060 GETGBL R7 G3 + 0x5C200000, // 0061 MOVE R8 R0 + 0x7C1C0200, // 0062 CALL R7 1 + 0x8C1C0F0C, // 0063 GETMET R7 R7 K12 + 0x5C240200, // 0064 MOVE R9 R1 + 0x5C280400, // 0065 MOVE R10 R2 + 0x7C1C0600, // 0066 CALL R7 3 + 0x80040E00, // 0067 RET 1 R7 + 0x80000000, // 0068 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: init +********************************************************************/ +be_local_closure(Matter_Plugin_Light3_init, /* name */ + be_nested_proto( + 9, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(init), + /* K1 */ be_nested_str_weak(shadow_hue), + /* K2 */ be_const_int(0), + /* K3 */ be_nested_str_weak(shadow_sat), + }), + be_str_weak(init), + &be_const_str_solidified, + ( &(const binstruction[11]) { /* code */ + 0x60100003, // 0000 GETGBL R4 G3 + 0x5C140000, // 0001 MOVE R5 R0 + 0x7C100200, // 0002 CALL R4 1 + 0x8C100900, // 0003 GETMET R4 R4 K0 + 0x5C180200, // 0004 MOVE R6 R1 + 0x5C1C0400, // 0005 MOVE R7 R2 + 0x5C200600, // 0006 MOVE R8 R3 + 0x7C100800, // 0007 CALL R4 4 + 0x90020302, // 0008 SETMBR R0 K1 K2 + 0x90020702, // 0009 SETMBR R0 K3 K2 + 0x80000000, // 000A RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: invoke_request ********************************************************************/ @@ -199,287 +480,6 @@ be_local_closure(Matter_Plugin_Light3_invoke_request, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: read_attribute -********************************************************************/ -be_local_closure(Matter_Plugin_Light3_read_attribute, /* name */ - be_nested_proto( - 11, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[13]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(matter), - /* K2 */ be_nested_str_weak(TLV), - /* K3 */ be_nested_str_weak(cluster), - /* K4 */ be_nested_str_weak(attribute), - /* K5 */ be_const_int(0), - /* K6 */ be_nested_str_weak(create_TLV), - /* K7 */ be_nested_str_weak(U1), - /* K8 */ be_nested_str_weak(shadow_hue), - /* K9 */ be_const_int(1), - /* K10 */ be_nested_str_weak(shadow_sat), - /* K11 */ be_nested_str_weak(U4), - /* K12 */ be_nested_str_weak(read_attribute), - }), - be_str_weak(read_attribute), - &be_const_str_solidified, - ( &(const binstruction[105]) { /* code */ - 0xA40E0000, // 0000 IMPORT R3 K0 - 0xB8120200, // 0001 GETNGBL R4 K1 - 0x88100902, // 0002 GETMBR R4 R4 K2 - 0x88140503, // 0003 GETMBR R5 R2 K3 - 0x88180504, // 0004 GETMBR R6 R2 K4 - 0x541E02FF, // 0005 LDINT R7 768 - 0x1C1C0A07, // 0006 EQ R7 R5 R7 - 0x781E0057, // 0007 JMPF R7 #0060 - 0x1C1C0D05, // 0008 EQ R7 R6 K5 - 0x781E0005, // 0009 JMPF R7 #0010 - 0x8C1C0906, // 000A GETMET R7 R4 K6 - 0x88240907, // 000B GETMBR R9 R4 K7 - 0x88280108, // 000C GETMBR R10 R0 K8 - 0x7C1C0600, // 000D CALL R7 3 - 0x80040E00, // 000E RET 1 R7 - 0x7002004E, // 000F JMP #005F - 0x1C1C0D09, // 0010 EQ R7 R6 K9 - 0x781E0005, // 0011 JMPF R7 #0018 - 0x8C1C0906, // 0012 GETMET R7 R4 K6 - 0x88240907, // 0013 GETMBR R9 R4 K7 - 0x8828010A, // 0014 GETMBR R10 R0 K10 - 0x7C1C0600, // 0015 CALL R7 3 - 0x80040E00, // 0016 RET 1 R7 - 0x70020046, // 0017 JMP #005F - 0x541E0006, // 0018 LDINT R7 7 - 0x1C1C0C07, // 0019 EQ R7 R6 R7 - 0x781E0005, // 001A JMPF R7 #0021 - 0x8C1C0906, // 001B GETMET R7 R4 K6 - 0x88240907, // 001C GETMBR R9 R4 K7 - 0x58280005, // 001D LDCONST R10 K5 - 0x7C1C0600, // 001E CALL R7 3 - 0x80040E00, // 001F RET 1 R7 - 0x7002003D, // 0020 JMP #005F - 0x541E0007, // 0021 LDINT R7 8 - 0x1C1C0C07, // 0022 EQ R7 R6 R7 - 0x781E0005, // 0023 JMPF R7 #002A - 0x8C1C0906, // 0024 GETMET R7 R4 K6 - 0x88240907, // 0025 GETMBR R9 R4 K7 - 0x58280005, // 0026 LDCONST R10 K5 - 0x7C1C0600, // 0027 CALL R7 3 - 0x80040E00, // 0028 RET 1 R7 - 0x70020034, // 0029 JMP #005F - 0x541E000E, // 002A LDINT R7 15 - 0x1C1C0C07, // 002B EQ R7 R6 R7 - 0x781E0005, // 002C JMPF R7 #0033 - 0x8C1C0906, // 002D GETMET R7 R4 K6 - 0x88240907, // 002E GETMBR R9 R4 K7 - 0x58280005, // 002F LDCONST R10 K5 - 0x7C1C0600, // 0030 CALL R7 3 - 0x80040E00, // 0031 RET 1 R7 - 0x7002002B, // 0032 JMP #005F - 0x541E4000, // 0033 LDINT R7 16385 - 0x1C1C0C07, // 0034 EQ R7 R6 R7 - 0x781E0005, // 0035 JMPF R7 #003C - 0x8C1C0906, // 0036 GETMET R7 R4 K6 - 0x88240907, // 0037 GETMBR R9 R4 K7 - 0x58280005, // 0038 LDCONST R10 K5 - 0x7C1C0600, // 0039 CALL R7 3 - 0x80040E00, // 003A RET 1 R7 - 0x70020022, // 003B JMP #005F - 0x541E4009, // 003C LDINT R7 16394 - 0x1C1C0C07, // 003D EQ R7 R6 R7 - 0x781E0005, // 003E JMPF R7 #0045 - 0x8C1C0906, // 003F GETMET R7 R4 K6 - 0x88240907, // 0040 GETMBR R9 R4 K7 - 0x58280005, // 0041 LDCONST R10 K5 - 0x7C1C0600, // 0042 CALL R7 3 - 0x80040E00, // 0043 RET 1 R7 - 0x70020019, // 0044 JMP #005F - 0x541E000F, // 0045 LDINT R7 16 - 0x1C1C0C07, // 0046 EQ R7 R6 R7 - 0x781E0005, // 0047 JMPF R7 #004E - 0x8C1C0906, // 0048 GETMET R7 R4 K6 - 0x88240907, // 0049 GETMBR R9 R4 K7 - 0x58280005, // 004A LDCONST R10 K5 - 0x7C1C0600, // 004B CALL R7 3 - 0x80040E00, // 004C RET 1 R7 - 0x70020010, // 004D JMP #005F - 0x541EFFFB, // 004E LDINT R7 65532 - 0x1C1C0C07, // 004F EQ R7 R6 R7 - 0x781E0005, // 0050 JMPF R7 #0057 - 0x8C1C0906, // 0051 GETMET R7 R4 K6 - 0x8824090B, // 0052 GETMBR R9 R4 K11 - 0x58280009, // 0053 LDCONST R10 K9 - 0x7C1C0600, // 0054 CALL R7 3 - 0x80040E00, // 0055 RET 1 R7 - 0x70020007, // 0056 JMP #005F - 0x541EFFFC, // 0057 LDINT R7 65533 - 0x1C1C0C07, // 0058 EQ R7 R6 R7 - 0x781E0004, // 0059 JMPF R7 #005F - 0x8C1C0906, // 005A GETMET R7 R4 K6 - 0x8824090B, // 005B GETMBR R9 R4 K11 - 0x542A0004, // 005C LDINT R10 5 - 0x7C1C0600, // 005D CALL R7 3 - 0x80040E00, // 005E RET 1 R7 - 0x70020007, // 005F JMP #0068 - 0x601C0003, // 0060 GETGBL R7 G3 - 0x5C200000, // 0061 MOVE R8 R0 - 0x7C1C0200, // 0062 CALL R7 1 - 0x8C1C0F0C, // 0063 GETMET R7 R7 K12 - 0x5C240200, // 0064 MOVE R9 R1 - 0x5C280400, // 0065 MOVE R10 R2 - 0x7C1C0600, // 0066 CALL R7 3 - 0x80040E00, // 0067 RET 1 R7 - 0x80000000, // 0068 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: update_shadow -********************************************************************/ -be_local_closure(Matter_Plugin_Light3_update_shadow, /* 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[13]) { /* constants */ - /* K0 */ be_nested_str_weak(light), - /* K1 */ be_nested_str_weak(update_shadow), - /* K2 */ be_nested_str_weak(get), - /* K3 */ be_nested_str_weak(find), - /* K4 */ be_nested_str_weak(hue), - /* K5 */ be_nested_str_weak(sat), - /* K6 */ be_nested_str_weak(tasmota), - /* K7 */ be_nested_str_weak(scale_uint), - /* K8 */ be_const_int(0), - /* K9 */ be_nested_str_weak(shadow_hue), - /* K10 */ be_nested_str_weak(shadow_sat), - /* K11 */ be_nested_str_weak(attribute_updated), - /* K12 */ be_const_int(1), - }), - be_str_weak(update_shadow), - &be_const_str_solidified, - ( &(const binstruction[63]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x60080003, // 0001 GETGBL R2 G3 - 0x5C0C0000, // 0002 MOVE R3 R0 - 0x7C080200, // 0003 CALL R2 1 - 0x8C080501, // 0004 GETMET R2 R2 K1 - 0x7C080200, // 0005 CALL R2 1 - 0x8C080302, // 0006 GETMET R2 R1 K2 - 0x7C080200, // 0007 CALL R2 1 - 0x8C0C0503, // 0008 GETMET R3 R2 K3 - 0x58140004, // 0009 LDCONST R5 K4 - 0x4C180000, // 000A LDNIL R6 - 0x7C0C0600, // 000B CALL R3 3 - 0x8C100503, // 000C GETMET R4 R2 K3 - 0x58180005, // 000D LDCONST R6 K5 - 0x4C1C0000, // 000E LDNIL R7 - 0x7C100600, // 000F CALL R4 3 - 0x4C140000, // 0010 LDNIL R5 - 0x20140605, // 0011 NE R5 R3 R5 - 0x78160009, // 0012 JMPF R5 #001D - 0xB8160C00, // 0013 GETNGBL R5 K6 - 0x8C140B07, // 0014 GETMET R5 R5 K7 - 0x5C1C0600, // 0015 MOVE R7 R3 - 0x58200008, // 0016 LDCONST R8 K8 - 0x54260167, // 0017 LDINT R9 360 - 0x58280008, // 0018 LDCONST R10 K8 - 0x542E00FD, // 0019 LDINT R11 254 - 0x7C140C00, // 001A CALL R5 6 - 0x5C0C0A00, // 001B MOVE R3 R5 - 0x70020000, // 001C JMP #001E - 0x880C0109, // 001D GETMBR R3 R0 K9 - 0x4C140000, // 001E LDNIL R5 - 0x20140805, // 001F NE R5 R4 R5 - 0x78160009, // 0020 JMPF R5 #002B - 0xB8160C00, // 0021 GETNGBL R5 K6 - 0x8C140B07, // 0022 GETMET R5 R5 K7 - 0x5C1C0800, // 0023 MOVE R7 R4 - 0x58200008, // 0024 LDCONST R8 K8 - 0x542600FE, // 0025 LDINT R9 255 - 0x58280008, // 0026 LDCONST R10 K8 - 0x542E00FD, // 0027 LDINT R11 254 - 0x7C140C00, // 0028 CALL R5 6 - 0x5C100A00, // 0029 MOVE R4 R5 - 0x70020000, // 002A JMP #002C - 0x8810010A, // 002B GETMBR R4 R0 K10 - 0x88140109, // 002C GETMBR R5 R0 K9 - 0x20140605, // 002D NE R5 R3 R5 - 0x78160005, // 002E JMPF R5 #0035 - 0x8C14010B, // 002F GETMET R5 R0 K11 - 0x4C1C0000, // 0030 LDNIL R7 - 0x542202FF, // 0031 LDINT R8 768 - 0x58240008, // 0032 LDCONST R9 K8 - 0x7C140800, // 0033 CALL R5 4 - 0x90021203, // 0034 SETMBR R0 K9 R3 - 0x8814010A, // 0035 GETMBR R5 R0 K10 - 0x20140805, // 0036 NE R5 R4 R5 - 0x78160005, // 0037 JMPF R5 #003E - 0x8C14010B, // 0038 GETMET R5 R0 K11 - 0x4C1C0000, // 0039 LDNIL R7 - 0x542202FF, // 003A LDINT R8 768 - 0x5824000C, // 003B LDCONST R9 K12 - 0x7C140800, // 003C CALL R5 4 - 0x90021404, // 003D SETMBR R0 K10 R4 - 0x80000000, // 003E RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(Matter_Plugin_Light3_init, /* name */ - be_nested_proto( - 9, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(init), - /* K1 */ be_nested_str_weak(shadow_hue), - /* K2 */ be_const_int(0), - /* K3 */ be_nested_str_weak(shadow_sat), - }), - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[11]) { /* code */ - 0x60100003, // 0000 GETGBL R4 G3 - 0x5C140000, // 0001 MOVE R5 R0 - 0x7C100200, // 0002 CALL R4 1 - 0x8C100900, // 0003 GETMET R4 R4 K0 - 0x5C180200, // 0004 MOVE R6 R1 - 0x5C1C0400, // 0005 MOVE R7 R2 - 0x5C200600, // 0006 MOVE R8 R3 - 0x7C100800, // 0007 CALL R4 4 - 0x90020302, // 0008 SETMBR R0 K1 K2 - 0x90020702, // 0009 SETMBR R0 K3 K2 - 0x80000000, // 000A RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified class: Matter_Plugin_Light3 ********************************************************************/ @@ -487,20 +487,15 @@ extern const bclass be_class_Matter_Plugin_Light1; be_local_class(Matter_Plugin_Light3, 2, &be_class_Matter_Plugin_Light1, - be_nested_map(9, + be_nested_map(10, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(init, -1), be_const_closure(Matter_Plugin_Light3_init_closure) }, - { be_const_key_weak(shadow_sat, -1), be_const_var(1) }, { be_const_key_weak(TYPES, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(1, ( (struct bmapnode*) &(const bmapnode[]) { { be_const_key_int(269, -1), be_const_int(2) }, })) ) } )) }, - { be_const_key_weak(NAME, -1), be_nested_str_weak(light3) }, + { be_const_key_weak(TYPE, -1), be_nested_str_weak(light3) }, { be_const_key_weak(shadow_hue, 8), be_const_var(0) }, - { be_const_key_weak(invoke_request, -1), be_const_closure(Matter_Plugin_Light3_invoke_request_closure) }, - { be_const_key_weak(read_attribute, 0), be_const_closure(Matter_Plugin_Light3_read_attribute_closure) }, - { be_const_key_weak(update_shadow, -1), be_const_closure(Matter_Plugin_Light3_update_shadow_closure) }, { be_const_key_weak(CLUSTERS, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(1, ( (struct bmapnode*) &(const bmapnode[]) { @@ -518,6 +513,12 @@ be_local_class(Matter_Plugin_Light3, be_const_int(65533), })) ) } )) }, })) ) } )) }, + { be_const_key_weak(NAME, 3), be_nested_str_weak(Light_X203_X20RGB) }, + { be_const_key_weak(init, -1), be_const_closure(Matter_Plugin_Light3_init_closure) }, + { be_const_key_weak(shadow_sat, -1), be_const_var(1) }, + { be_const_key_weak(invoke_request, -1), be_const_closure(Matter_Plugin_Light3_invoke_request_closure) }, + { be_const_key_weak(read_attribute, -1), be_const_closure(Matter_Plugin_Light3_read_attribute_closure) }, + { be_const_key_weak(update_shadow, 1), be_const_closure(Matter_Plugin_Light3_update_shadow_closure) }, })), be_str_weak(Matter_Plugin_Light3) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_OnOff.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_OnOff.h index 24b8911b4..509ff2714 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_OnOff.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_OnOff.h @@ -7,94 +7,49 @@ extern const bclass be_class_Matter_Plugin_OnOff; /******************************************************************** -** Solidified function: get_onoff +** Solidified function: init ********************************************************************/ -be_local_closure(Matter_Plugin_OnOff_get_onoff, /* name */ +be_local_closure(Matter_Plugin_OnOff_init, /* name */ be_nested_proto( - 5, /* nstack */ - 1, /* argc */ + 9, /* 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_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(get_power), + ( &(const bvalue[ 6]) { /* constants */ + /* K0 */ be_nested_str_weak(init), + /* K1 */ be_nested_str_weak(get_onoff), /* K2 */ be_nested_str_weak(tasmota_relay_index), - /* K3 */ be_nested_str_weak(shadow_onoff), - /* K4 */ be_nested_str_weak(onoff_changed), + /* K3 */ be_nested_str_weak(find), + /* K4 */ be_nested_str_weak(ARG), + /* K5 */ be_const_int(0), }), - be_str_weak(get_onoff), + be_str_weak(init), &be_const_str_solidified, - ( &(const binstruction[28]) { /* code */ - 0xB8060000, // 0000 GETNGBL R1 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x880C0102, // 0002 GETMBR R3 R0 K2 - 0x7C040400, // 0003 CALL R1 2 - 0x4C080000, // 0004 LDNIL R2 - 0x20080202, // 0005 NE R2 R1 R2 - 0x780A000C, // 0006 JMPF R2 #0014 - 0x88080103, // 0007 GETMBR R2 R0 K3 - 0x4C0C0000, // 0008 LDNIL R3 - 0x20080403, // 0009 NE R2 R2 R3 - 0x780A0007, // 000A JMPF R2 #0013 - 0x88080103, // 000B GETMBR R2 R0 K3 - 0x600C0017, // 000C GETGBL R3 G23 - 0x5C100200, // 000D MOVE R4 R1 - 0x7C0C0200, // 000E CALL R3 1 - 0x20080403, // 000F NE R2 R2 R3 - 0x780A0001, // 0010 JMPF R2 #0013 - 0x8C080104, // 0011 GETMET R2 R0 K4 - 0x7C080200, // 0012 CALL R2 1 - 0x90020601, // 0013 SETMBR R0 K3 R1 - 0x88080103, // 0014 GETMBR R2 R0 K3 - 0x4C0C0000, // 0015 LDNIL R3 - 0x1C080403, // 0016 EQ R2 R2 R3 - 0x780A0001, // 0017 JMPF R2 #001A - 0x50080000, // 0018 LDBOOL R2 0 0 - 0x90020602, // 0019 SETMBR R0 K3 R2 - 0x88080103, // 001A GETMBR R2 R0 K3 - 0x80040400, // 001B RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: set_onoff -********************************************************************/ -be_local_closure(Matter_Plugin_OnOff_set_onoff, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(set_power), - /* K2 */ be_nested_str_weak(tasmota_relay_index), - /* K3 */ be_nested_str_weak(get_onoff), - }), - be_str_weak(set_onoff), - &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0xB80A0000, // 0000 GETNGBL R2 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x88100102, // 0002 GETMBR R4 R0 K2 - 0x60140017, // 0003 GETGBL R5 G23 + ( &(const binstruction[20]) { /* code */ + 0x60100003, // 0000 GETGBL R4 G3 + 0x5C140000, // 0001 MOVE R5 R0 + 0x7C100200, // 0002 CALL R4 1 + 0x8C100900, // 0003 GETMET R4 R4 K0 0x5C180200, // 0004 MOVE R6 R1 - 0x7C140200, // 0005 CALL R5 1 - 0x7C080600, // 0006 CALL R2 3 - 0x8C080103, // 0007 GETMET R2 R0 K3 - 0x7C080200, // 0008 CALL R2 1 - 0x80000000, // 0009 RET 0 + 0x5C1C0400, // 0005 MOVE R7 R2 + 0x5C200600, // 0006 MOVE R8 R3 + 0x7C100800, // 0007 CALL R4 4 + 0x8C100101, // 0008 GETMET R4 R0 K1 + 0x7C100200, // 0009 CALL R4 1 + 0x8C100703, // 000A GETMET R4 R3 K3 + 0x88180104, // 000B GETMBR R6 R0 K4 + 0x7C100400, // 000C CALL R4 2 + 0x90020404, // 000D SETMBR R0 K2 R4 + 0x88100102, // 000E GETMBR R4 R0 K2 + 0x4C140000, // 000F LDNIL R5 + 0x1C100805, // 0010 EQ R4 R4 R5 + 0x78120000, // 0011 JMPF R4 #0013 + 0x90020505, // 0012 SETMBR R0 K2 K5 + 0x80000000, // 0013 RET 0 }) ) ); @@ -258,91 +213,9 @@ be_local_closure(Matter_Plugin_OnOff_invoke_request, /* name */ /******************************************************************** -** Solidified function: init +** Solidified function: set_onoff ********************************************************************/ -be_local_closure(Matter_Plugin_OnOff_init, /* name */ - be_nested_proto( - 9, /* nstack */ - 4, /* 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(init), - /* K1 */ be_nested_str_weak(get_onoff), - /* K2 */ be_nested_str_weak(tasmota_relay_index), - /* K3 */ be_nested_str_weak(find), - /* K4 */ be_nested_str_weak(relay), - /* K5 */ be_const_int(0), - }), - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[20]) { /* code */ - 0x60100003, // 0000 GETGBL R4 G3 - 0x5C140000, // 0001 MOVE R5 R0 - 0x7C100200, // 0002 CALL R4 1 - 0x8C100900, // 0003 GETMET R4 R4 K0 - 0x5C180200, // 0004 MOVE R6 R1 - 0x5C1C0400, // 0005 MOVE R7 R2 - 0x5C200600, // 0006 MOVE R8 R3 - 0x7C100800, // 0007 CALL R4 4 - 0x8C100101, // 0008 GETMET R4 R0 K1 - 0x7C100200, // 0009 CALL R4 1 - 0x8C100703, // 000A GETMET R4 R3 K3 - 0x58180004, // 000B LDCONST R6 K4 - 0x7C100400, // 000C CALL R4 2 - 0x90020404, // 000D SETMBR R0 K2 R4 - 0x88100102, // 000E GETMBR R4 R0 K2 - 0x4C140000, // 000F LDNIL R5 - 0x1C100805, // 0010 EQ R4 R4 R5 - 0x78120000, // 0011 JMPF R4 #0013 - 0x90020505, // 0012 SETMBR R0 K2 K5 - 0x80000000, // 0013 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: onoff_changed -********************************************************************/ -be_local_closure(Matter_Plugin_OnOff_onoff_changed, /* 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[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(attribute_updated), - /* K1 */ be_const_int(0), - }), - be_str_weak(onoff_changed), - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x4C0C0000, // 0001 LDNIL R3 - 0x54120005, // 0002 LDINT R4 6 - 0x58140001, // 0003 LDCONST R5 K1 - 0x7C040800, // 0004 CALL R1 4 - 0x80000000, // 0005 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: to_json_parameters -********************************************************************/ -be_local_closure(Matter_Plugin_OnOff_to_json_parameters, /* name */ +be_local_closure(Matter_Plugin_OnOff_set_onoff, /* name */ be_nested_proto( 7, /* nstack */ 2, /* argc */ @@ -353,21 +226,108 @@ be_local_closure(Matter_Plugin_OnOff_to_json_parameters, /* name */ NULL, /* no sub protos */ 1, /* has constants */ ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(format), - /* K2 */ be_nested_str_weak(_X2C_X22relay_X22_X3A_X25i), - /* K3 */ be_nested_str_weak(tasmota_relay_index), + /* K0 */ be_nested_str_weak(tasmota), + /* K1 */ be_nested_str_weak(set_power), + /* K2 */ be_nested_str_weak(tasmota_relay_index), + /* K3 */ be_nested_str_weak(get_onoff), }), - be_str_weak(to_json_parameters), + be_str_weak(set_onoff), &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0x8C0C0501, // 0001 GETMET R3 R2 K1 - 0x58140002, // 0002 LDCONST R5 K2 - 0x88180103, // 0003 GETMBR R6 R0 K3 - 0x7C0C0600, // 0004 CALL R3 3 - 0x00040203, // 0005 ADD R1 R1 R3 - 0x80040200, // 0006 RET 1 R1 + ( &(const binstruction[10]) { /* code */ + 0xB80A0000, // 0000 GETNGBL R2 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x88100102, // 0002 GETMBR R4 R0 K2 + 0x60140017, // 0003 GETGBL R5 G23 + 0x5C180200, // 0004 MOVE R6 R1 + 0x7C140200, // 0005 CALL R5 1 + 0x7C080600, // 0006 CALL R2 3 + 0x8C080103, // 0007 GETMET R2 R0 K3 + 0x7C080200, // 0008 CALL R2 1 + 0x80000000, // 0009 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: +********************************************************************/ +be_local_closure(Matter_Plugin_OnOff__X3Clambda_X3E, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 0, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x60040009, // 0000 GETGBL R1 G9 + 0x5C080000, // 0001 MOVE R2 R0 + 0x7C040200, // 0002 CALL R1 1 + 0x80040200, // 0003 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_onoff +********************************************************************/ +be_local_closure(Matter_Plugin_OnOff_get_onoff, /* name */ + be_nested_proto( + 5, /* nstack */ + 1, /* 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(get_power), + /* K2 */ be_nested_str_weak(tasmota_relay_index), + /* K3 */ be_nested_str_weak(shadow_onoff), + /* K4 */ be_nested_str_weak(onoff_changed), + }), + be_str_weak(get_onoff), + &be_const_str_solidified, + ( &(const binstruction[28]) { /* code */ + 0xB8060000, // 0000 GETNGBL R1 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x880C0102, // 0002 GETMBR R3 R0 K2 + 0x7C040400, // 0003 CALL R1 2 + 0x4C080000, // 0004 LDNIL R2 + 0x20080202, // 0005 NE R2 R1 R2 + 0x780A000C, // 0006 JMPF R2 #0014 + 0x88080103, // 0007 GETMBR R2 R0 K3 + 0x4C0C0000, // 0008 LDNIL R3 + 0x20080403, // 0009 NE R2 R2 R3 + 0x780A0007, // 000A JMPF R2 #0013 + 0x88080103, // 000B GETMBR R2 R0 K3 + 0x600C0017, // 000C GETGBL R3 G23 + 0x5C100200, // 000D MOVE R4 R1 + 0x7C0C0200, // 000E CALL R3 1 + 0x20080403, // 000F NE R2 R2 R3 + 0x780A0001, // 0010 JMPF R2 #0013 + 0x8C080104, // 0011 GETMET R2 R0 K4 + 0x7C080200, // 0012 CALL R2 1 + 0x90020601, // 0013 SETMBR R0 K3 R1 + 0x88080103, // 0014 GETMBR R2 R0 K3 + 0x4C0C0000, // 0015 LDNIL R3 + 0x1C080403, // 0016 EQ R2 R2 R3 + 0x780A0001, // 0017 JMPF R2 #001A + 0x50080000, // 0018 LDBOOL R2 0 0 + 0x90020602, // 0019 SETMBR R0 K3 R2 + 0x88080103, // 001A GETMBR R2 R0 K3 + 0x80040400, // 001B RET 1 R2 }) ) ); @@ -615,6 +575,38 @@ be_local_closure(Matter_Plugin_OnOff_read_attribute, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: onoff_changed +********************************************************************/ +be_local_closure(Matter_Plugin_OnOff_onoff_changed, /* 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[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(attribute_updated), + /* K1 */ be_const_int(0), + }), + be_str_weak(onoff_changed), + &be_const_str_solidified, + ( &(const binstruction[ 6]) { /* code */ + 0x8C040100, // 0000 GETMET R1 R0 K0 + 0x4C0C0000, // 0001 LDNIL R3 + 0x54120005, // 0002 LDINT R4 6 + 0x58140001, // 0003 LDCONST R5 K1 + 0x7C040800, // 0004 CALL R1 4 + 0x80000000, // 0005 RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified class: Matter_Plugin_OnOff ********************************************************************/ @@ -622,19 +614,20 @@ extern const bclass be_class_Matter_Plugin; be_local_class(Matter_Plugin_OnOff, 2, &be_class_Matter_Plugin, - be_nested_map(13, + be_nested_map(15, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(shadow_onoff, -1), be_const_var(1) }, - { be_const_key_weak(tasmota_relay_index, -1), be_const_var(0) }, - { be_const_key_weak(get_onoff, -1), be_const_closure(Matter_Plugin_OnOff_get_onoff_closure) }, - { be_const_key_weak(every_second, -1), be_const_closure(Matter_Plugin_OnOff_every_second_closure) }, - { be_const_key_weak(read_attribute, -1), be_const_closure(Matter_Plugin_OnOff_read_attribute_closure) }, + { be_const_key_weak(init, 8), be_const_closure(Matter_Plugin_OnOff_init_closure) }, + { be_const_key_weak(TYPES, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + be_const_map( * be_nested_map(1, + ( (struct bmapnode*) &(const bmapnode[]) { + { be_const_key_int(266, -1), be_const_int(2) }, + })) ) } )) }, { be_const_key_weak(invoke_request, -1), be_const_closure(Matter_Plugin_OnOff_invoke_request_closure) }, - { be_const_key_weak(init, -1), be_const_closure(Matter_Plugin_OnOff_init_closure) }, - { be_const_key_weak(onoff_changed, -1), be_const_closure(Matter_Plugin_OnOff_onoff_changed_closure) }, - { be_const_key_weak(to_json_parameters, -1), be_const_closure(Matter_Plugin_OnOff_to_json_parameters_closure) }, - { be_const_key_weak(NAME, 3), be_nested_str_weak(relay) }, - { be_const_key_weak(CLUSTERS, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + { be_const_key_weak(set_onoff, -1), be_const_closure(Matter_Plugin_OnOff_set_onoff_closure) }, + { be_const_key_weak(ARG_TYPE, 7), be_const_static_closure(Matter_Plugin_OnOff__X3Clambda_X3E_closure) }, + { be_const_key_weak(tasmota_relay_index, 1), be_const_var(0) }, + { be_const_key_weak(TYPE, -1), be_nested_str_weak(relay) }, + { be_const_key_weak(CLUSTERS, 6), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(4, ( (struct bmapnode*) &(const bmapnode[]) { { be_const_key_int(4, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { @@ -672,12 +665,13 @@ be_local_class(Matter_Plugin_OnOff, be_const_int(65533), })) ) } )) }, })) ) } )) }, - { be_const_key_weak(set_onoff, 4), be_const_closure(Matter_Plugin_OnOff_set_onoff_closure) }, - { be_const_key_weak(TYPES, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { - be_const_map( * be_nested_map(1, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_int(266, -1), be_const_int(2) }, - })) ) } )) }, + { be_const_key_weak(every_second, -1), be_const_closure(Matter_Plugin_OnOff_every_second_closure) }, + { be_const_key_weak(ARG, 11), be_nested_str_weak(relay) }, + { be_const_key_weak(get_onoff, -1), be_const_closure(Matter_Plugin_OnOff_get_onoff_closure) }, + { be_const_key_weak(NAME, -1), be_nested_str_weak(Relay) }, + { be_const_key_weak(read_attribute, -1), be_const_closure(Matter_Plugin_OnOff_read_attribute_closure) }, + { be_const_key_weak(shadow_onoff, -1), be_const_var(1) }, + { be_const_key_weak(onoff_changed, -1), be_const_closure(Matter_Plugin_OnOff_onoff_changed_closure) }, })), be_str_weak(Matter_Plugin_OnOff) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Root.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Root.h index 0ed2d4962..05e8ec97d 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Root.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Root.h @@ -6,6 +6,181 @@ extern const bclass be_class_Matter_Plugin_Root; +/******************************************************************** +** Solidified function: init +********************************************************************/ +be_local_closure(Matter_Plugin_Root_init, /* name */ + be_nested_proto( + 9, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(init), + }), + be_str_weak(init), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x60100003, // 0000 GETGBL R4 G3 + 0x5C140000, // 0001 MOVE R5 R0 + 0x7C100200, // 0002 CALL R4 1 + 0x8C100900, // 0003 GETMET R4 R4 K0 + 0x5C180200, // 0004 MOVE R6 R1 + 0x5C1C0400, // 0005 MOVE R7 R2 + 0x5C200600, // 0006 MOVE R8 R3 + 0x7C100800, // 0007 CALL R4 4 + 0x80000000, // 0008 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: write_attribute +********************************************************************/ +be_local_closure(Matter_Plugin_Root_write_attribute, /* name */ + be_nested_proto( + 13, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[15]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(matter), + /* K2 */ be_nested_str_weak(TLV), + /* K3 */ be_nested_str_weak(cluster), + /* K4 */ be_nested_str_weak(attribute), + /* K5 */ be_const_int(0), + /* K6 */ be_nested_str_weak(int), + /* K7 */ be_nested_str_weak(int64), + /* K8 */ be_nested_str_weak(_breadcrumb), + /* K9 */ be_nested_str_weak(attribute_updated), + /* K10 */ be_nested_str_weak(endpoint), + /* K11 */ be_nested_str_weak(status), + /* K12 */ be_nested_str_weak(CONSTRAINT_ERROR), + /* K13 */ be_const_int(1), + /* K14 */ be_nested_str_weak(INVALID_ACTION), + }), + be_str_weak(write_attribute), + &be_const_str_solidified, + ( &(const binstruction[102]) { /* code */ + 0xA4120000, // 0000 IMPORT R4 K0 + 0xB8160200, // 0001 GETNGBL R5 K1 + 0x88140B02, // 0002 GETMBR R5 R5 K2 + 0x88180503, // 0003 GETMBR R6 R2 K3 + 0x881C0504, // 0004 GETMBR R7 R2 K4 + 0x5422002F, // 0005 LDINT R8 48 + 0x1C200C08, // 0006 EQ R8 R6 R8 + 0x7822001A, // 0007 JMPF R8 #0023 + 0x1C200F05, // 0008 EQ R8 R7 K5 + 0x78220017, // 0009 JMPF R8 #0022 + 0x60200004, // 000A GETGBL R8 G4 + 0x5C240600, // 000B MOVE R9 R3 + 0x7C200200, // 000C CALL R8 1 + 0x1C201106, // 000D EQ R8 R8 K6 + 0x74220004, // 000E JMPT R8 #0014 + 0x6020000F, // 000F GETGBL R8 G15 + 0x5C240600, // 0010 MOVE R9 R3 + 0xB82A0E00, // 0011 GETNGBL R10 K7 + 0x7C200400, // 0012 CALL R8 2 + 0x78220008, // 0013 JMPF R8 #001D + 0x90061003, // 0014 SETMBR R1 K8 R3 + 0x8C200109, // 0015 GETMET R8 R0 K9 + 0x8828050A, // 0016 GETMBR R10 R2 K10 + 0x882C0503, // 0017 GETMBR R11 R2 K3 + 0x88300504, // 0018 GETMBR R12 R2 K4 + 0x7C200800, // 0019 CALL R8 4 + 0x50200200, // 001A LDBOOL R8 1 0 + 0x80041000, // 001B RET 1 R8 + 0x70020004, // 001C JMP #0022 + 0xB8220200, // 001D GETNGBL R8 K1 + 0x8820110C, // 001E GETMBR R8 R8 K12 + 0x900A1608, // 001F SETMBR R2 K11 R8 + 0x50200000, // 0020 LDBOOL R8 0 0 + 0x80041000, // 0021 RET 1 R8 + 0x70020041, // 0022 JMP #0065 + 0x5422001E, // 0023 LDINT R8 31 + 0x1C200C08, // 0024 EQ R8 R6 R8 + 0x78220004, // 0025 JMPF R8 #002B + 0x1C200F05, // 0026 EQ R8 R7 K5 + 0x78220001, // 0027 JMPF R8 #002A + 0x50200200, // 0028 LDBOOL R8 1 0 + 0x80041000, // 0029 RET 1 R8 + 0x70020039, // 002A JMP #0065 + 0x54220027, // 002B LDINT R8 40 + 0x1C200C08, // 002C EQ R8 R6 R8 + 0x7822000B, // 002D JMPF R8 #003A + 0x54220004, // 002E LDINT R8 5 + 0x1C200E08, // 002F EQ R8 R7 R8 + 0x78220002, // 0030 JMPF R8 #0034 + 0x50200200, // 0031 LDBOOL R8 1 0 + 0x80041000, // 0032 RET 1 R8 + 0x70020004, // 0033 JMP #0039 + 0x54220005, // 0034 LDINT R8 6 + 0x1C200E08, // 0035 EQ R8 R7 R8 + 0x78220001, // 0036 JMPF R8 #0039 + 0x50200200, // 0037 LDBOOL R8 1 0 + 0x80041000, // 0038 RET 1 R8 + 0x7002002A, // 0039 JMP #0065 + 0x54220029, // 003A LDINT R8 42 + 0x1C200C08, // 003B EQ R8 R6 R8 + 0x78220004, // 003C JMPF R8 #0042 + 0x1C200F05, // 003D EQ R8 R7 K5 + 0x78220001, // 003E JMPF R8 #0041 + 0x50200200, // 003F LDBOOL R8 1 0 + 0x80041000, // 0040 RET 1 R8 + 0x70020022, // 0041 JMP #0065 + 0x5422002A, // 0042 LDINT R8 43 + 0x1C200C08, // 0043 EQ R8 R6 R8 + 0x78220007, // 0044 JMPF R8 #004D + 0x1C200F05, // 0045 EQ R8 R7 K5 + 0x78220004, // 0046 JMPF R8 #004C + 0xB8220200, // 0047 GETNGBL R8 K1 + 0x8820110C, // 0048 GETMBR R8 R8 K12 + 0x900A1608, // 0049 SETMBR R2 K11 R8 + 0x50200000, // 004A LDBOOL R8 0 0 + 0x80041000, // 004B RET 1 R8 + 0x70020017, // 004C JMP #0065 + 0x5422002B, // 004D LDINT R8 44 + 0x1C200C08, // 004E EQ R8 R6 R8 + 0x78220009, // 004F JMPF R8 #005A + 0x1C200F05, // 0050 EQ R8 R7 K5 + 0x78220002, // 0051 JMPF R8 #0055 + 0x50200200, // 0052 LDBOOL R8 1 0 + 0x80041000, // 0053 RET 1 R8 + 0x70020003, // 0054 JMP #0059 + 0x1C200F0D, // 0055 EQ R8 R7 K13 + 0x78220001, // 0056 JMPF R8 #0059 + 0x50200200, // 0057 LDBOOL R8 1 0 + 0x80041000, // 0058 RET 1 R8 + 0x7002000A, // 0059 JMP #0065 + 0x54220030, // 005A LDINT R8 49 + 0x1C200C08, // 005B EQ R8 R6 R8 + 0x78220007, // 005C JMPF R8 #0065 + 0x54220003, // 005D LDINT R8 4 + 0x1C200E08, // 005E EQ R8 R7 R8 + 0x78220004, // 005F JMPF R8 #0065 + 0xB8220200, // 0060 GETNGBL R8 K1 + 0x8820110E, // 0061 GETMBR R8 R8 K14 + 0x900A1608, // 0062 SETMBR R2 K11 R8 + 0x50200000, // 0063 LDBOOL R8 0 0 + 0x80041000, // 0064 RET 1 R8 + 0x80000000, // 0065 RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: read_attribute ********************************************************************/ @@ -1005,181 +1180,6 @@ be_local_closure(Matter_Plugin_Root_read_attribute, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: write_attribute -********************************************************************/ -be_local_closure(Matter_Plugin_Root_write_attribute, /* name */ - be_nested_proto( - 13, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[15]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(matter), - /* K2 */ be_nested_str_weak(TLV), - /* K3 */ be_nested_str_weak(cluster), - /* K4 */ be_nested_str_weak(attribute), - /* K5 */ be_const_int(0), - /* K6 */ be_nested_str_weak(int), - /* K7 */ be_nested_str_weak(int64), - /* K8 */ be_nested_str_weak(_breadcrumb), - /* K9 */ be_nested_str_weak(attribute_updated), - /* K10 */ be_nested_str_weak(endpoint), - /* K11 */ be_nested_str_weak(status), - /* K12 */ be_nested_str_weak(CONSTRAINT_ERROR), - /* K13 */ be_const_int(1), - /* K14 */ be_nested_str_weak(INVALID_ACTION), - }), - be_str_weak(write_attribute), - &be_const_str_solidified, - ( &(const binstruction[102]) { /* code */ - 0xA4120000, // 0000 IMPORT R4 K0 - 0xB8160200, // 0001 GETNGBL R5 K1 - 0x88140B02, // 0002 GETMBR R5 R5 K2 - 0x88180503, // 0003 GETMBR R6 R2 K3 - 0x881C0504, // 0004 GETMBR R7 R2 K4 - 0x5422002F, // 0005 LDINT R8 48 - 0x1C200C08, // 0006 EQ R8 R6 R8 - 0x7822001A, // 0007 JMPF R8 #0023 - 0x1C200F05, // 0008 EQ R8 R7 K5 - 0x78220017, // 0009 JMPF R8 #0022 - 0x60200004, // 000A GETGBL R8 G4 - 0x5C240600, // 000B MOVE R9 R3 - 0x7C200200, // 000C CALL R8 1 - 0x1C201106, // 000D EQ R8 R8 K6 - 0x74220004, // 000E JMPT R8 #0014 - 0x6020000F, // 000F GETGBL R8 G15 - 0x5C240600, // 0010 MOVE R9 R3 - 0xB82A0E00, // 0011 GETNGBL R10 K7 - 0x7C200400, // 0012 CALL R8 2 - 0x78220008, // 0013 JMPF R8 #001D - 0x90061003, // 0014 SETMBR R1 K8 R3 - 0x8C200109, // 0015 GETMET R8 R0 K9 - 0x8828050A, // 0016 GETMBR R10 R2 K10 - 0x882C0503, // 0017 GETMBR R11 R2 K3 - 0x88300504, // 0018 GETMBR R12 R2 K4 - 0x7C200800, // 0019 CALL R8 4 - 0x50200200, // 001A LDBOOL R8 1 0 - 0x80041000, // 001B RET 1 R8 - 0x70020004, // 001C JMP #0022 - 0xB8220200, // 001D GETNGBL R8 K1 - 0x8820110C, // 001E GETMBR R8 R8 K12 - 0x900A1608, // 001F SETMBR R2 K11 R8 - 0x50200000, // 0020 LDBOOL R8 0 0 - 0x80041000, // 0021 RET 1 R8 - 0x70020041, // 0022 JMP #0065 - 0x5422001E, // 0023 LDINT R8 31 - 0x1C200C08, // 0024 EQ R8 R6 R8 - 0x78220004, // 0025 JMPF R8 #002B - 0x1C200F05, // 0026 EQ R8 R7 K5 - 0x78220001, // 0027 JMPF R8 #002A - 0x50200200, // 0028 LDBOOL R8 1 0 - 0x80041000, // 0029 RET 1 R8 - 0x70020039, // 002A JMP #0065 - 0x54220027, // 002B LDINT R8 40 - 0x1C200C08, // 002C EQ R8 R6 R8 - 0x7822000B, // 002D JMPF R8 #003A - 0x54220004, // 002E LDINT R8 5 - 0x1C200E08, // 002F EQ R8 R7 R8 - 0x78220002, // 0030 JMPF R8 #0034 - 0x50200200, // 0031 LDBOOL R8 1 0 - 0x80041000, // 0032 RET 1 R8 - 0x70020004, // 0033 JMP #0039 - 0x54220005, // 0034 LDINT R8 6 - 0x1C200E08, // 0035 EQ R8 R7 R8 - 0x78220001, // 0036 JMPF R8 #0039 - 0x50200200, // 0037 LDBOOL R8 1 0 - 0x80041000, // 0038 RET 1 R8 - 0x7002002A, // 0039 JMP #0065 - 0x54220029, // 003A LDINT R8 42 - 0x1C200C08, // 003B EQ R8 R6 R8 - 0x78220004, // 003C JMPF R8 #0042 - 0x1C200F05, // 003D EQ R8 R7 K5 - 0x78220001, // 003E JMPF R8 #0041 - 0x50200200, // 003F LDBOOL R8 1 0 - 0x80041000, // 0040 RET 1 R8 - 0x70020022, // 0041 JMP #0065 - 0x5422002A, // 0042 LDINT R8 43 - 0x1C200C08, // 0043 EQ R8 R6 R8 - 0x78220007, // 0044 JMPF R8 #004D - 0x1C200F05, // 0045 EQ R8 R7 K5 - 0x78220004, // 0046 JMPF R8 #004C - 0xB8220200, // 0047 GETNGBL R8 K1 - 0x8820110C, // 0048 GETMBR R8 R8 K12 - 0x900A1608, // 0049 SETMBR R2 K11 R8 - 0x50200000, // 004A LDBOOL R8 0 0 - 0x80041000, // 004B RET 1 R8 - 0x70020017, // 004C JMP #0065 - 0x5422002B, // 004D LDINT R8 44 - 0x1C200C08, // 004E EQ R8 R6 R8 - 0x78220009, // 004F JMPF R8 #005A - 0x1C200F05, // 0050 EQ R8 R7 K5 - 0x78220002, // 0051 JMPF R8 #0055 - 0x50200200, // 0052 LDBOOL R8 1 0 - 0x80041000, // 0053 RET 1 R8 - 0x70020003, // 0054 JMP #0059 - 0x1C200F0D, // 0055 EQ R8 R7 K13 - 0x78220001, // 0056 JMPF R8 #0059 - 0x50200200, // 0057 LDBOOL R8 1 0 - 0x80041000, // 0058 RET 1 R8 - 0x7002000A, // 0059 JMP #0065 - 0x54220030, // 005A LDINT R8 49 - 0x1C200C08, // 005B EQ R8 R6 R8 - 0x78220007, // 005C JMPF R8 #0065 - 0x54220003, // 005D LDINT R8 4 - 0x1C200E08, // 005E EQ R8 R7 R8 - 0x78220004, // 005F JMPF R8 #0065 - 0xB8220200, // 0060 GETNGBL R8 K1 - 0x8820110E, // 0061 GETMBR R8 R8 K14 - 0x900A1608, // 0062 SETMBR R2 K11 R8 - 0x50200000, // 0063 LDBOOL R8 0 0 - 0x80041000, // 0064 RET 1 R8 - 0x80000000, // 0065 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(Matter_Plugin_Root_init, /* name */ - be_nested_proto( - 9, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(init), - }), - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x60100003, // 0000 GETGBL R4 G3 - 0x5C140000, // 0001 MOVE R5 R0 - 0x7C100200, // 0002 CALL R4 1 - 0x8C100900, // 0003 GETMET R4 R4 K0 - 0x5C180200, // 0004 MOVE R6 R1 - 0x5C1C0400, // 0005 MOVE R7 R2 - 0x5C200600, // 0006 MOVE R8 R3 - 0x7C100800, // 0007 CALL R4 4 - 0x80000000, // 0008 RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: invoke_request ********************************************************************/ @@ -2074,19 +2074,11 @@ extern const bclass be_class_Matter_Plugin; be_local_class(Matter_Plugin_Root, 0, &be_class_Matter_Plugin, - be_nested_map(7, + be_nested_map(8, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(read_attribute, 2), be_const_closure(Matter_Plugin_Root_read_attribute_closure) }, - { be_const_key_weak(NAME, -1), be_nested_str_weak(root) }, - { be_const_key_weak(invoke_request, 6), be_const_closure(Matter_Plugin_Root_invoke_request_closure) }, - { be_const_key_weak(TYPES, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { - be_const_map( * be_nested_map(1, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_int(22, -1), be_const_int(1) }, - })) ) } )) }, + { be_const_key_weak(invoke_request, 1), be_const_closure(Matter_Plugin_Root_invoke_request_closure) }, { be_const_key_weak(write_attribute, -1), be_const_closure(Matter_Plugin_Root_write_attribute_closure) }, - { be_const_key_weak(init, -1), be_const_closure(Matter_Plugin_Root_init_closure) }, - { be_const_key_weak(CLUSTERS, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + { be_const_key_weak(CLUSTERS, 4), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(13, ( (struct bmapnode*) &(const bmapnode[]) { { be_const_key_int(52, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { @@ -2188,6 +2180,15 @@ be_local_class(Matter_Plugin_Root, be_const_int(2), be_const_int(8), })) ) } )) }, + })) ) } )) }, + { be_const_key_weak(init, 0), be_const_closure(Matter_Plugin_Root_init_closure) }, + { be_const_key_weak(read_attribute, 7), be_const_closure(Matter_Plugin_Root_read_attribute_closure) }, + { be_const_key_weak(TYPE, -1), be_nested_str_weak(root) }, + { be_const_key_weak(NAME, -1), be_nested_str_weak(Root_X20node) }, + { be_const_key_weak(TYPES, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + be_const_map( * be_nested_map(1, + ( (struct bmapnode*) &(const bmapnode[]) { + { be_const_key_int(22, -1), be_const_int(1) }, })) ) } )) }, })), be_str_weak(Matter_Plugin_Root) diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor.h index 8d7e7df1c..f91cef2c8 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor.h @@ -47,7 +47,7 @@ be_local_closure(Matter_Plugin_Sensor_init, /* name */ /* K0 */ be_nested_str_weak(init), /* K1 */ be_nested_str_weak(tasmota_sensor_filter), /* K2 */ be_nested_str_weak(find), - /* K3 */ be_nested_str_weak(filter), + /* K3 */ be_nested_str_weak(ARG), /* K4 */ be_nested_str_weak(tasmota_sensor_matcher), /* K5 */ be_nested_str_weak(tasmota), /* K6 */ be_nested_str_weak(Rule_Matcher), @@ -65,7 +65,7 @@ be_local_closure(Matter_Plugin_Sensor_init, /* name */ 0x5C200600, // 0006 MOVE R8 R3 0x7C100800, // 0007 CALL R4 4 0x8C100702, // 0008 GETMET R4 R3 K2 - 0x58180003, // 0009 LDCONST R6 K3 + 0x88180103, // 0009 GETMBR R6 R0 K3 0x7C100400, // 000A CALL R4 2 0x90020204, // 000B SETMBR R0 K1 R4 0x88100101, // 000C GETMBR R4 R0 K1 @@ -83,65 +83,6 @@ be_local_closure(Matter_Plugin_Sensor_init, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: to_json_parameters -********************************************************************/ -be_local_closure(Matter_Plugin_Sensor_to_json_parameters, /* name */ - be_nested_proto( - 7, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(format), - /* K2 */ be_nested_str_weak(_X2C_X22filter_X22_X3A_X22_X25s_X22), - /* K3 */ be_nested_str_weak(tasmota_sensor_filter), - }), - be_str_weak(to_json_parameters), - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0x8C0C0501, // 0001 GETMET R3 R2 K1 - 0x58140002, // 0002 LDCONST R5 K2 - 0x88180103, // 0003 GETMBR R6 R0 K3 - 0x7C0C0600, // 0004 CALL R3 3 - 0x00040203, // 0005 ADD R1 R1 R3 - 0x80040200, // 0006 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: valued_changed -********************************************************************/ -be_local_closure(Matter_Plugin_Sensor_valued_changed, /* name */ - be_nested_proto( - 2, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(valued_changed), - &be_const_str_solidified, - ( &(const binstruction[ 1]) { /* code */ - 0x80000000, // 0000 RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: parse_sensors ********************************************************************/ @@ -192,6 +133,30 @@ be_local_closure(Matter_Plugin_Sensor_parse_sensors, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: valued_changed +********************************************************************/ +be_local_closure(Matter_Plugin_Sensor_valued_changed, /* name */ + be_nested_proto( + 2, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(valued_changed), + &be_const_str_solidified, + ( &(const binstruction[ 1]) { /* code */ + 0x80000000, // 0000 RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified class: Matter_Plugin_Sensor ********************************************************************/ @@ -202,13 +167,13 @@ be_local_class(Matter_Plugin_Sensor, be_nested_map(8, ( (struct bmapnode*) &(const bmapnode[]) { { be_const_key_weak(pre_value, -1), be_const_closure(Matter_Plugin_Sensor_pre_value_closure) }, - { be_const_key_weak(parse_sensors, -1), be_const_closure(Matter_Plugin_Sensor_parse_sensors_closure) }, - { be_const_key_weak(tasmota_sensor_filter, 7), be_const_var(0) }, - { be_const_key_weak(init, 6), be_const_closure(Matter_Plugin_Sensor_init_closure) }, - { be_const_key_weak(to_json_parameters, 1), be_const_closure(Matter_Plugin_Sensor_to_json_parameters_closure) }, - { be_const_key_weak(valued_changed, -1), be_const_closure(Matter_Plugin_Sensor_valued_changed_closure) }, { be_const_key_weak(shadow_value, -1), be_const_var(2) }, - { be_const_key_weak(tasmota_sensor_matcher, -1), be_const_var(1) }, + { be_const_key_weak(tasmota_sensor_matcher, 6), be_const_var(1) }, + { be_const_key_weak(init, 1), be_const_closure(Matter_Plugin_Sensor_init_closure) }, + { be_const_key_weak(parse_sensors, -1), be_const_closure(Matter_Plugin_Sensor_parse_sensors_closure) }, + { be_const_key_weak(valued_changed, -1), be_const_closure(Matter_Plugin_Sensor_valued_changed_closure) }, + { be_const_key_weak(tasmota_sensor_filter, -1), be_const_var(0) }, + { be_const_key_weak(ARG, -1), be_nested_str_weak(filter) }, })), be_str_weak(Matter_Plugin_Sensor) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor_Humidity.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor_Humidity.h index f04c97ac6..57146e067 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor_Humidity.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor_Humidity.h @@ -6,66 +6,6 @@ extern const bclass be_class_Matter_Plugin_Sensor_Humidity; -/******************************************************************** -** Solidified function: pre_value -********************************************************************/ -be_local_closure(Matter_Plugin_Sensor_Humidity_pre_value, /* name */ - be_nested_proto( - 4, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(pre_value), - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x60080009, // 0000 GETGBL R2 G9 - 0x540E0063, // 0001 LDINT R3 100 - 0x080C0203, // 0002 MUL R3 R1 R3 - 0x7C080200, // 0003 CALL R2 1 - 0x80040400, // 0004 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: valued_changed -********************************************************************/ -be_local_closure(Matter_Plugin_Sensor_Humidity_valued_changed, /* name */ - be_nested_proto( - 7, /* 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(attribute_updated), - /* K1 */ be_const_int(0), - }), - be_str_weak(valued_changed), - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x8C080100, // 0000 GETMET R2 R0 K0 - 0x4C100000, // 0001 LDNIL R4 - 0x54160404, // 0002 LDINT R5 1029 - 0x58180001, // 0003 LDCONST R6 K1 - 0x7C080800, // 0004 CALL R2 4 - 0x80000000, // 0005 RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: read_attribute ********************************************************************/ @@ -176,6 +116,66 @@ be_local_closure(Matter_Plugin_Sensor_Humidity_read_attribute, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: pre_value +********************************************************************/ +be_local_closure(Matter_Plugin_Sensor_Humidity_pre_value, /* name */ + be_nested_proto( + 4, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(pre_value), + &be_const_str_solidified, + ( &(const binstruction[ 5]) { /* code */ + 0x60080009, // 0000 GETGBL R2 G9 + 0x540E0063, // 0001 LDINT R3 100 + 0x080C0203, // 0002 MUL R3 R1 R3 + 0x7C080200, // 0003 CALL R2 1 + 0x80040400, // 0004 RET 1 R2 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: valued_changed +********************************************************************/ +be_local_closure(Matter_Plugin_Sensor_Humidity_valued_changed, /* name */ + be_nested_proto( + 7, /* 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(attribute_updated), + /* K1 */ be_const_int(0), + }), + be_str_weak(valued_changed), + &be_const_str_solidified, + ( &(const binstruction[ 6]) { /* code */ + 0x8C080100, // 0000 GETMET R2 R0 K0 + 0x4C100000, // 0001 LDNIL R4 + 0x54160404, // 0002 LDINT R5 1029 + 0x58180001, // 0003 LDCONST R6 K1 + 0x7C080800, // 0004 CALL R2 4 + 0x80000000, // 0005 RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified class: Matter_Plugin_Sensor_Humidity ********************************************************************/ @@ -183,16 +183,10 @@ extern const bclass be_class_Matter_Plugin_Sensor; be_local_class(Matter_Plugin_Sensor_Humidity, 0, &be_class_Matter_Plugin_Sensor, - be_nested_map(6, + be_nested_map(7, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(NAME, 1), be_nested_str_weak(humidity) }, - { be_const_key_weak(read_attribute, -1), be_const_closure(Matter_Plugin_Sensor_Humidity_read_attribute_closure) }, - { be_const_key_weak(TYPES, 5), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { - be_const_map( * be_nested_map(1, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_int(775, -1), be_const_int(2) }, - })) ) } )) }, - { be_const_key_weak(valued_changed, -1), be_const_closure(Matter_Plugin_Sensor_Humidity_valued_changed_closure) }, + { be_const_key_weak(read_attribute, 2), be_const_closure(Matter_Plugin_Sensor_Humidity_read_attribute_closure) }, + { be_const_key_weak(pre_value, 5), be_const_closure(Matter_Plugin_Sensor_Humidity_pre_value_closure) }, { be_const_key_weak(CLUSTERS, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(1, ( (struct bmapnode*) &(const bmapnode[]) { @@ -206,7 +200,14 @@ be_local_class(Matter_Plugin_Sensor_Humidity, be_const_int(65533), })) ) } )) }, })) ) } )) }, - { be_const_key_weak(pre_value, -1), be_const_closure(Matter_Plugin_Sensor_Humidity_pre_value_closure) }, + { be_const_key_weak(TYPES, 4), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + be_const_map( * be_nested_map(1, + ( (struct bmapnode*) &(const bmapnode[]) { + { be_const_key_int(775, -1), be_const_int(2) }, + })) ) } )) }, + { be_const_key_weak(TYPE, -1), be_nested_str_weak(humidity) }, + { be_const_key_weak(NAME, -1), be_nested_str_weak(Humidity) }, + { be_const_key_weak(valued_changed, -1), be_const_closure(Matter_Plugin_Sensor_Humidity_valued_changed_closure) }, })), be_str_weak(Matter_Plugin_Sensor_Humidity) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor_Illuminance.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor_Illuminance.h index b45eb5f90..1ac6a351d 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor_Illuminance.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor_Illuminance.h @@ -6,65 +6,6 @@ extern const bclass be_class_Matter_Plugin_Sensor_Illuminance; -/******************************************************************** -** Solidified function: pre_value -********************************************************************/ -be_local_closure(Matter_Plugin_Sensor_Illuminance_pre_value, /* name */ - be_nested_proto( - 4, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(pre_value), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x60080009, // 0000 GETGBL R2 G9 - 0x5C0C0200, // 0001 MOVE R3 R1 - 0x7C080200, // 0002 CALL R2 1 - 0x80040400, // 0003 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: valued_changed -********************************************************************/ -be_local_closure(Matter_Plugin_Sensor_Illuminance_valued_changed, /* name */ - be_nested_proto( - 7, /* 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(attribute_updated), - /* K1 */ be_const_int(0), - }), - be_str_weak(valued_changed), - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x8C080100, // 0000 GETMET R2 R0 K0 - 0x4C100000, // 0001 LDNIL R4 - 0x541603FF, // 0002 LDINT R5 1024 - 0x58180001, // 0003 LDCONST R6 K1 - 0x7C080800, // 0004 CALL R2 4 - 0x80000000, // 0005 RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: read_attribute ********************************************************************/ @@ -175,6 +116,65 @@ be_local_closure(Matter_Plugin_Sensor_Illuminance_read_attribute, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: pre_value +********************************************************************/ +be_local_closure(Matter_Plugin_Sensor_Illuminance_pre_value, /* name */ + be_nested_proto( + 4, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(pre_value), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x60080009, // 0000 GETGBL R2 G9 + 0x5C0C0200, // 0001 MOVE R3 R1 + 0x7C080200, // 0002 CALL R2 1 + 0x80040400, // 0003 RET 1 R2 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: valued_changed +********************************************************************/ +be_local_closure(Matter_Plugin_Sensor_Illuminance_valued_changed, /* name */ + be_nested_proto( + 7, /* 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(attribute_updated), + /* K1 */ be_const_int(0), + }), + be_str_weak(valued_changed), + &be_const_str_solidified, + ( &(const binstruction[ 6]) { /* code */ + 0x8C080100, // 0000 GETMET R2 R0 K0 + 0x4C100000, // 0001 LDNIL R4 + 0x541603FF, // 0002 LDINT R5 1024 + 0x58180001, // 0003 LDCONST R6 K1 + 0x7C080800, // 0004 CALL R2 4 + 0x80000000, // 0005 RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified class: Matter_Plugin_Sensor_Illuminance ********************************************************************/ @@ -182,16 +182,10 @@ extern const bclass be_class_Matter_Plugin_Sensor; be_local_class(Matter_Plugin_Sensor_Illuminance, 0, &be_class_Matter_Plugin_Sensor, - be_nested_map(6, + be_nested_map(7, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(NAME, 1), be_nested_str_weak(illuminance) }, - { be_const_key_weak(read_attribute, -1), be_const_closure(Matter_Plugin_Sensor_Illuminance_read_attribute_closure) }, - { be_const_key_weak(TYPES, 5), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { - be_const_map( * be_nested_map(1, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_int(262, -1), be_const_int(2) }, - })) ) } )) }, - { be_const_key_weak(valued_changed, -1), be_const_closure(Matter_Plugin_Sensor_Illuminance_valued_changed_closure) }, + { be_const_key_weak(read_attribute, 2), be_const_closure(Matter_Plugin_Sensor_Illuminance_read_attribute_closure) }, + { be_const_key_weak(pre_value, 5), be_const_closure(Matter_Plugin_Sensor_Illuminance_pre_value_closure) }, { be_const_key_weak(CLUSTERS, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(1, ( (struct bmapnode*) &(const bmapnode[]) { @@ -205,7 +199,14 @@ be_local_class(Matter_Plugin_Sensor_Illuminance, be_const_int(65533), })) ) } )) }, })) ) } )) }, - { be_const_key_weak(pre_value, -1), be_const_closure(Matter_Plugin_Sensor_Illuminance_pre_value_closure) }, + { be_const_key_weak(TYPES, 4), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + be_const_map( * be_nested_map(1, + ( (struct bmapnode*) &(const bmapnode[]) { + { be_const_key_int(262, -1), be_const_int(2) }, + })) ) } )) }, + { be_const_key_weak(TYPE, -1), be_nested_str_weak(illuminance) }, + { be_const_key_weak(NAME, -1), be_nested_str_weak(Illuminance) }, + { be_const_key_weak(valued_changed, -1), be_const_closure(Matter_Plugin_Sensor_Illuminance_valued_changed_closure) }, })), be_str_weak(Matter_Plugin_Sensor_Illuminance) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor_Pressure.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor_Pressure.h index 61968c3c1..d0e8aa69d 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor_Pressure.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor_Pressure.h @@ -6,65 +6,6 @@ extern const bclass be_class_Matter_Plugin_Sensor_Pressure; -/******************************************************************** -** Solidified function: pre_value -********************************************************************/ -be_local_closure(Matter_Plugin_Sensor_Pressure_pre_value, /* name */ - be_nested_proto( - 4, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(pre_value), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x60080009, // 0000 GETGBL R2 G9 - 0x5C0C0200, // 0001 MOVE R3 R1 - 0x7C080200, // 0002 CALL R2 1 - 0x80040400, // 0003 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: valued_changed -********************************************************************/ -be_local_closure(Matter_Plugin_Sensor_Pressure_valued_changed, /* name */ - be_nested_proto( - 7, /* 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(attribute_updated), - /* K1 */ be_const_int(0), - }), - be_str_weak(valued_changed), - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x8C080100, // 0000 GETMET R2 R0 K0 - 0x4C100000, // 0001 LDNIL R4 - 0x54160402, // 0002 LDINT R5 1027 - 0x58180001, // 0003 LDCONST R6 K1 - 0x7C080800, // 0004 CALL R2 4 - 0x80000000, // 0005 RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: read_attribute ********************************************************************/ @@ -175,6 +116,65 @@ be_local_closure(Matter_Plugin_Sensor_Pressure_read_attribute, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: pre_value +********************************************************************/ +be_local_closure(Matter_Plugin_Sensor_Pressure_pre_value, /* name */ + be_nested_proto( + 4, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(pre_value), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x60080009, // 0000 GETGBL R2 G9 + 0x5C0C0200, // 0001 MOVE R3 R1 + 0x7C080200, // 0002 CALL R2 1 + 0x80040400, // 0003 RET 1 R2 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: valued_changed +********************************************************************/ +be_local_closure(Matter_Plugin_Sensor_Pressure_valued_changed, /* name */ + be_nested_proto( + 7, /* 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(attribute_updated), + /* K1 */ be_const_int(0), + }), + be_str_weak(valued_changed), + &be_const_str_solidified, + ( &(const binstruction[ 6]) { /* code */ + 0x8C080100, // 0000 GETMET R2 R0 K0 + 0x4C100000, // 0001 LDNIL R4 + 0x54160402, // 0002 LDINT R5 1027 + 0x58180001, // 0003 LDCONST R6 K1 + 0x7C080800, // 0004 CALL R2 4 + 0x80000000, // 0005 RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified class: Matter_Plugin_Sensor_Pressure ********************************************************************/ @@ -182,16 +182,10 @@ extern const bclass be_class_Matter_Plugin_Sensor; be_local_class(Matter_Plugin_Sensor_Pressure, 0, &be_class_Matter_Plugin_Sensor, - be_nested_map(6, + be_nested_map(7, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(NAME, 1), be_nested_str_weak(pressure) }, - { be_const_key_weak(read_attribute, -1), be_const_closure(Matter_Plugin_Sensor_Pressure_read_attribute_closure) }, - { be_const_key_weak(TYPES, 5), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { - be_const_map( * be_nested_map(1, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_int(773, -1), be_const_int(2) }, - })) ) } )) }, - { be_const_key_weak(valued_changed, -1), be_const_closure(Matter_Plugin_Sensor_Pressure_valued_changed_closure) }, + { be_const_key_weak(read_attribute, 2), be_const_closure(Matter_Plugin_Sensor_Pressure_read_attribute_closure) }, + { be_const_key_weak(pre_value, 5), be_const_closure(Matter_Plugin_Sensor_Pressure_pre_value_closure) }, { be_const_key_weak(CLUSTERS, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(1, ( (struct bmapnode*) &(const bmapnode[]) { @@ -205,7 +199,14 @@ be_local_class(Matter_Plugin_Sensor_Pressure, be_const_int(65533), })) ) } )) }, })) ) } )) }, - { be_const_key_weak(pre_value, -1), be_const_closure(Matter_Plugin_Sensor_Pressure_pre_value_closure) }, + { be_const_key_weak(TYPES, 4), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + be_const_map( * be_nested_map(1, + ( (struct bmapnode*) &(const bmapnode[]) { + { be_const_key_int(773, -1), be_const_int(2) }, + })) ) } )) }, + { be_const_key_weak(TYPE, -1), be_nested_str_weak(pressure) }, + { be_const_key_weak(NAME, -1), be_nested_str_weak(Pressure) }, + { be_const_key_weak(valued_changed, -1), be_const_closure(Matter_Plugin_Sensor_Pressure_valued_changed_closure) }, })), be_str_weak(Matter_Plugin_Sensor_Pressure) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor_Temp.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor_Temp.h index 85e4d894a..48e76493a 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor_Temp.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Sensor_Temp.h @@ -6,66 +6,6 @@ extern const bclass be_class_Matter_Plugin_Sensor_Temp; -/******************************************************************** -** Solidified function: pre_value -********************************************************************/ -be_local_closure(Matter_Plugin_Sensor_Temp_pre_value, /* name */ - be_nested_proto( - 4, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 0, /* has constants */ - NULL, /* no const */ - be_str_weak(pre_value), - &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x60080009, // 0000 GETGBL R2 G9 - 0x540E0063, // 0001 LDINT R3 100 - 0x080C0203, // 0002 MUL R3 R1 R3 - 0x7C080200, // 0003 CALL R2 1 - 0x80040400, // 0004 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: valued_changed -********************************************************************/ -be_local_closure(Matter_Plugin_Sensor_Temp_valued_changed, /* name */ - be_nested_proto( - 7, /* 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(attribute_updated), - /* K1 */ be_const_int(0), - }), - be_str_weak(valued_changed), - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x8C080100, // 0000 GETMET R2 R0 K0 - 0x4C100000, // 0001 LDNIL R4 - 0x54160401, // 0002 LDINT R5 1026 - 0x58180001, // 0003 LDCONST R6 K1 - 0x7C080800, // 0004 CALL R2 4 - 0x80000000, // 0005 RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: read_attribute ********************************************************************/ @@ -173,6 +113,66 @@ be_local_closure(Matter_Plugin_Sensor_Temp_read_attribute, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: pre_value +********************************************************************/ +be_local_closure(Matter_Plugin_Sensor_Temp_pre_value, /* name */ + be_nested_proto( + 4, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 0, /* has constants */ + NULL, /* no const */ + be_str_weak(pre_value), + &be_const_str_solidified, + ( &(const binstruction[ 5]) { /* code */ + 0x60080009, // 0000 GETGBL R2 G9 + 0x540E0063, // 0001 LDINT R3 100 + 0x080C0203, // 0002 MUL R3 R1 R3 + 0x7C080200, // 0003 CALL R2 1 + 0x80040400, // 0004 RET 1 R2 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: valued_changed +********************************************************************/ +be_local_closure(Matter_Plugin_Sensor_Temp_valued_changed, /* name */ + be_nested_proto( + 7, /* 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(attribute_updated), + /* K1 */ be_const_int(0), + }), + be_str_weak(valued_changed), + &be_const_str_solidified, + ( &(const binstruction[ 6]) { /* code */ + 0x8C080100, // 0000 GETMET R2 R0 K0 + 0x4C100000, // 0001 LDNIL R4 + 0x54160401, // 0002 LDINT R5 1026 + 0x58180001, // 0003 LDCONST R6 K1 + 0x7C080800, // 0004 CALL R2 4 + 0x80000000, // 0005 RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified class: Matter_Plugin_Sensor_Temp ********************************************************************/ @@ -180,16 +180,10 @@ extern const bclass be_class_Matter_Plugin_Sensor; be_local_class(Matter_Plugin_Sensor_Temp, 0, &be_class_Matter_Plugin_Sensor, - be_nested_map(6, + be_nested_map(7, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(NAME, 1), be_nested_str_weak(temperature) }, - { be_const_key_weak(read_attribute, -1), be_const_closure(Matter_Plugin_Sensor_Temp_read_attribute_closure) }, - { be_const_key_weak(TYPES, 5), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { - be_const_map( * be_nested_map(1, - ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_int(770, -1), be_const_int(2) }, - })) ) } )) }, - { be_const_key_weak(valued_changed, -1), be_const_closure(Matter_Plugin_Sensor_Temp_valued_changed_closure) }, + { be_const_key_weak(read_attribute, 2), be_const_closure(Matter_Plugin_Sensor_Temp_read_attribute_closure) }, + { be_const_key_weak(pre_value, 5), be_const_closure(Matter_Plugin_Sensor_Temp_pre_value_closure) }, { be_const_key_weak(CLUSTERS, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { be_const_map( * be_nested_map(1, ( (struct bmapnode*) &(const bmapnode[]) { @@ -203,7 +197,14 @@ be_local_class(Matter_Plugin_Sensor_Temp, be_const_int(65533), })) ) } )) }, })) ) } )) }, - { be_const_key_weak(pre_value, -1), be_const_closure(Matter_Plugin_Sensor_Temp_pre_value_closure) }, + { be_const_key_weak(TYPES, 4), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + be_const_map( * be_nested_map(1, + ( (struct bmapnode*) &(const bmapnode[]) { + { be_const_key_int(770, -1), be_const_int(2) }, + })) ) } )) }, + { be_const_key_weak(TYPE, -1), be_nested_str_weak(temperature) }, + { be_const_key_weak(NAME, -1), be_nested_str_weak(Temperature) }, + { be_const_key_weak(valued_changed, -1), be_const_closure(Matter_Plugin_Sensor_Temp_valued_changed_closure) }, })), be_str_weak(Matter_Plugin_Sensor_Temp) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UI.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UI.h index 350e3a387..5805865d8 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UI.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UI.h @@ -6,13 +6,375 @@ extern const bclass be_class_Matter_UI; +/******************************************************************** +** Solidified function: show_commissioning_info +********************************************************************/ +be_local_closure(Matter_UI_show_commissioning_info, /* name */ + be_nested_proto( + 14, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[20]) { /* constants */ + /* K0 */ be_nested_str_weak(webserver), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(device), + /* K3 */ be_nested_str_weak(commissioning_open), + /* K4 */ be_nested_str_weak(tasmota), + /* K5 */ be_nested_str_weak(millis), + /* K6 */ be_const_int(0), + /* K7 */ be_nested_str_weak(content_send), + /* K8 */ be_nested_str_weak(format), + /* K9 */ be_nested_str_weak(_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3BCommissioning_X20open_X20for_X20_X25i_X20min_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E), + /* K10 */ be_nested_str_weak(compute_manual_pairing_code), + /* K11 */ be_nested_str_weak(_X3Cp_X3EManual_X20pairing_X20code_X3A_X3Cbr_X3E_X3Cb_X3E_X25s_X2D_X25s_X2D_X25s_X3C_X2Fb_X3E_X3C_X2Fp_X3E_X3Chr_X3E), + /* K12 */ be_const_int(3), + /* K13 */ be_const_int(2147483647), + /* K14 */ be_nested_str_weak(_X3Cdiv_X3E_X3Ccenter_X3E), + /* K15 */ be_nested_str_weak(compute_qrcode_content), + /* K16 */ be_nested_str_weak(show_qrcode), + /* K17 */ be_nested_str_weak(_X3Cp_X3E_X20_X25s_X3C_X2Fp_X3E), + /* K18 */ be_nested_str_weak(_X3C_X2Fdiv_X3E), + /* K19 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E_X3C_X2Ffieldset_X3E_X3Cp_X3E_X3C_X2Fp_X3E), + }), + be_str_weak(show_commissioning_info), + &be_const_str_solidified, + ( &(const binstruction[66]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0x880C0102, // 0002 GETMBR R3 R0 K2 + 0x880C0703, // 0003 GETMBR R3 R3 K3 + 0xB8120800, // 0004 GETNGBL R4 K4 + 0x8C100905, // 0005 GETMET R4 R4 K5 + 0x7C100200, // 0006 CALL R4 1 + 0x040C0604, // 0007 SUB R3 R3 R4 + 0x541203E7, // 0008 LDINT R4 1000 + 0x0C0C0604, // 0009 DIV R3 R3 R4 + 0x14100706, // 000A LT R4 R3 K6 + 0x78120000, // 000B JMPF R4 #000D + 0x580C0006, // 000C LDCONST R3 K6 + 0x5412001D, // 000D LDINT R4 30 + 0x00100604, // 000E ADD R4 R3 R4 + 0x5416003B, // 000F LDINT R5 60 + 0x0C100805, // 0010 DIV R4 R4 R5 + 0x8C140307, // 0011 GETMET R5 R1 K7 + 0x8C1C0508, // 0012 GETMET R7 R2 K8 + 0x58240009, // 0013 LDCONST R9 K9 + 0x5C280800, // 0014 MOVE R10 R4 + 0x7C1C0600, // 0015 CALL R7 3 + 0x7C140400, // 0016 CALL R5 2 + 0x88140102, // 0017 GETMBR R5 R0 K2 + 0x8C140B0A, // 0018 GETMET R5 R5 K10 + 0x7C140200, // 0019 CALL R5 1 + 0x8C180307, // 001A GETMET R6 R1 K7 + 0x8C200508, // 001B GETMET R8 R2 K8 + 0x5828000B, // 001C LDCONST R10 K11 + 0x402E0D0C, // 001D CONNECT R11 K6 K12 + 0x942C0A0B, // 001E GETIDX R11 R5 R11 + 0x54320003, // 001F LDINT R12 4 + 0x54360005, // 0020 LDINT R13 6 + 0x4030180D, // 0021 CONNECT R12 R12 R13 + 0x94300A0C, // 0022 GETIDX R12 R5 R12 + 0x54360006, // 0023 LDINT R13 7 + 0x40341B0D, // 0024 CONNECT R13 R13 K13 + 0x94340A0D, // 0025 GETIDX R13 R5 R13 + 0x7C200A00, // 0026 CALL R8 5 + 0x7C180400, // 0027 CALL R6 2 + 0x8C180307, // 0028 GETMET R6 R1 K7 + 0x8C200508, // 0029 GETMET R8 R2 K8 + 0x5828000E, // 002A LDCONST R10 K14 + 0x7C200400, // 002B CALL R8 2 + 0x7C180400, // 002C CALL R6 2 + 0x88180102, // 002D GETMBR R6 R0 K2 + 0x8C180D0F, // 002E GETMET R6 R6 K15 + 0x7C180200, // 002F CALL R6 1 + 0x8C1C0110, // 0030 GETMET R7 R0 K16 + 0x5C240C00, // 0031 MOVE R9 R6 + 0x7C1C0400, // 0032 CALL R7 2 + 0x8C1C0307, // 0033 GETMET R7 R1 K7 + 0x8C240508, // 0034 GETMET R9 R2 K8 + 0x582C0011, // 0035 LDCONST R11 K17 + 0x5C300C00, // 0036 MOVE R12 R6 + 0x7C240600, // 0037 CALL R9 3 + 0x7C1C0400, // 0038 CALL R7 2 + 0x8C1C0307, // 0039 GETMET R7 R1 K7 + 0x8C240508, // 003A GETMET R9 R2 K8 + 0x582C0012, // 003B LDCONST R11 K18 + 0x7C240400, // 003C CALL R9 2 + 0x7C1C0400, // 003D CALL R7 2 + 0x8C1C0307, // 003E GETMET R7 R1 K7 + 0x58240013, // 003F LDCONST R9 K19 + 0x7C1C0400, // 0040 CALL R7 2 + 0x80000000, // 0041 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: show_enable +********************************************************************/ +be_local_closure(Matter_UI_show_enable, /* name */ + be_nested_proto( + 11, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[20]) { /* constants */ + /* K0 */ be_nested_str_weak(webserver), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(tasmota), + /* K3 */ be_nested_str_weak(get_option), + /* K4 */ be_nested_str_weak(matter), + /* K5 */ be_nested_str_weak(MATTER_OPTION), + /* K6 */ be_nested_str_weak(content_send), + /* K7 */ be_nested_str_weak(format), + /* K8 */ be_nested_str_weak(_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3BMatter_X20_X25s_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E), + /* K9 */ be_nested_str_weak(Enabled), + /* K10 */ be_nested_str_weak(Disabled), + /* K11 */ be_nested_str_weak(_X3Cp_X20style_X3D_X27width_X3A320px_X3B_X27_X3ECheck_X20the_X20_X3Ca_X20href_X3D_X27https_X3A_X2F_X2Ftasmota_X2Egithub_X2Eio_X2Fdocs_X2FMatter_X2F_X27_X20target_X3D_X27_blank_X27_X3EMatter_X20documentation_X3C_X2Fa_X3E_X2E_X3C_X2Fp_X3E), + /* K12 */ be_nested_str_weak(_X3Cform_X20action_X3D_X27_X2Fmatterc_X27_X20method_X3D_X27post_X27_X20onsubmit_X3D_X27return_X20confirm_X28_X22This_X20will_X20cause_X20a_X20restart_X2E_X22_X29_X3B_X27_X3E), + /* K13 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E_X3Cbutton_X20name_X3D_X27_X25s_X27_X20class_X3D_X27button_X20bgrn_X27_X3E), + /* K14 */ be_nested_str_weak(disable), + /* K15 */ be_nested_str_weak(enable), + /* K16 */ be_nested_str_weak(Disable), + /* K17 */ be_nested_str_weak(Enable), + /* K18 */ be_nested_str_weak(_X20Matter_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E_X3C_X2Fp_X3E), + /* K19 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E_X3C_X2Ffieldset_X3E_X3Cp_X3E_X3C_X2Fp_X3E), + }), + be_str_weak(show_enable), + &be_const_str_solidified, + ( &(const binstruction[44]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0xA40E0200, // 0001 IMPORT R3 K1 + 0xB8120400, // 0002 GETNGBL R4 K2 + 0x8C100903, // 0003 GETMET R4 R4 K3 + 0xB81A0800, // 0004 GETNGBL R6 K4 + 0x88180D05, // 0005 GETMBR R6 R6 K5 + 0x7C100400, // 0006 CALL R4 2 + 0x8C140506, // 0007 GETMET R5 R2 K6 + 0x8C1C0707, // 0008 GETMET R7 R3 K7 + 0x58240008, // 0009 LDCONST R9 K8 + 0x78120001, // 000A JMPF R4 #000D + 0x58280009, // 000B LDCONST R10 K9 + 0x70020000, // 000C JMP #000E + 0x5828000A, // 000D LDCONST R10 K10 + 0x7C1C0600, // 000E CALL R7 3 + 0x7C140400, // 000F CALL R5 2 + 0x8C140506, // 0010 GETMET R5 R2 K6 + 0x581C000B, // 0011 LDCONST R7 K11 + 0x7C140400, // 0012 CALL R5 2 + 0x8C140506, // 0013 GETMET R5 R2 K6 + 0x581C000C, // 0014 LDCONST R7 K12 + 0x7C140400, // 0015 CALL R5 2 + 0x8C140506, // 0016 GETMET R5 R2 K6 + 0x8C1C0707, // 0017 GETMET R7 R3 K7 + 0x5824000D, // 0018 LDCONST R9 K13 + 0x78120001, // 0019 JMPF R4 #001C + 0x5828000E, // 001A LDCONST R10 K14 + 0x70020000, // 001B JMP #001D + 0x5828000F, // 001C LDCONST R10 K15 + 0x7C1C0600, // 001D CALL R7 3 + 0x7C140400, // 001E CALL R5 2 + 0x8C140506, // 001F GETMET R5 R2 K6 + 0x78120001, // 0020 JMPF R4 #0023 + 0x581C0010, // 0021 LDCONST R7 K16 + 0x70020000, // 0022 JMP #0024 + 0x581C0011, // 0023 LDCONST R7 K17 + 0x7C140400, // 0024 CALL R5 2 + 0x8C140506, // 0025 GETMET R5 R2 K6 + 0x581C0012, // 0026 LDCONST R7 K18 + 0x7C140400, // 0027 CALL R5 2 + 0x8C140506, // 0028 GETMET R5 R2 K6 + 0x581C0013, // 0029 LDCONST R7 K19 + 0x7C140400, // 002A CALL R5 2 + 0x80040800, // 002B RET 1 R4 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: init +********************************************************************/ +be_local_closure(Matter_UI_init, /* name */ + be_nested_proto( + 5, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 3]) { /* constants */ + /* K0 */ be_nested_str_weak(device), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(add_driver), + }), + be_str_weak(init), + &be_const_str_solidified, + ( &(const binstruction[ 6]) { /* code */ + 0x90020001, // 0000 SETMBR R0 K0 R1 + 0xB80A0200, // 0001 GETNGBL R2 K1 + 0x8C080502, // 0002 GETMET R2 R2 K2 + 0x5C100000, // 0003 MOVE R4 R0 + 0x7C080400, // 0004 CALL R2 2 + 0x80000000, // 0005 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: show_passcode_form +********************************************************************/ +be_local_closure(Matter_UI_show_passcode_form, /* name */ + be_nested_proto( + 9, /* nstack */ + 1, /* 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(webserver), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(content_send), + /* K3 */ be_nested_str_weak(_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3BMatter_X20Passcode_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E), + /* K4 */ be_nested_str_weak(_X3Cform_X20action_X3D_X27_X2Fmatterc_X27_X20method_X3D_X27post_X27_X20onsubmit_X3D_X27return_X20confirm_X28_X22This_X20will_X20cause_X20a_X20restart_X2E_X22_X29_X3B_X27_X3E), + /* K5 */ be_nested_str_weak(_X3Cp_X3EPasscode_X3A_X3C_X2Fp_X3E), + /* K6 */ be_nested_str_weak(format), + /* K7 */ be_nested_str_weak(_X3Cinput_X20type_X3D_X27number_X27_X20min_X3D_X271_X27_X20max_X3D_X2799999998_X27_X20name_X3D_X27passcode_X27_X20value_X3D_X27_X25i_X27_X3E), + /* K8 */ be_nested_str_weak(device), + /* K9 */ be_nested_str_weak(root_passcode), + /* K10 */ be_nested_str_weak(_X3Cp_X3EDistinguish_X20id_X3A_X3C_X2Fp_X3E), + /* K11 */ be_nested_str_weak(_X3Cinput_X20type_X3D_X27number_X27_X20min_X3D_X270_X27_X20max_X3D_X274095_X27_X20name_X3D_X27discriminator_X27_X20value_X3D_X27_X25i_X27_X3E), + /* K12 */ be_nested_str_weak(root_discriminator), + /* K13 */ be_nested_str_weak(_X3Cp_X3E_X3Cinput_X20type_X3D_X27checkbox_X27_X20name_X3D_X27ipv4_X27_X25s_X3EIPv4_X20only_X3C_X2Fp_X3E), + /* K14 */ be_nested_str_weak(ipv4only), + /* K15 */ be_nested_str_weak(_X20checked), + /* K16 */ be_nested_str_weak(), + /* K17 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E_X3Cbutton_X20name_X3D_X27passcode_X27_X20class_X3D_X27button_X20bgrn_X27_X3EChange_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E_X3C_X2Fp_X3E), + /* K18 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E_X3C_X2Ffieldset_X3E_X3Cp_X3E_X3C_X2Fp_X3E), + }), + be_str_weak(show_passcode_form), + &be_const_str_solidified, + ( &(const binstruction[46]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0x8C0C0302, // 0002 GETMET R3 R1 K2 + 0x58140003, // 0003 LDCONST R5 K3 + 0x7C0C0400, // 0004 CALL R3 2 + 0x8C0C0302, // 0005 GETMET R3 R1 K2 + 0x58140004, // 0006 LDCONST R5 K4 + 0x7C0C0400, // 0007 CALL R3 2 + 0x8C0C0302, // 0008 GETMET R3 R1 K2 + 0x58140005, // 0009 LDCONST R5 K5 + 0x7C0C0400, // 000A CALL R3 2 + 0x8C0C0302, // 000B GETMET R3 R1 K2 + 0x8C140506, // 000C GETMET R5 R2 K6 + 0x581C0007, // 000D LDCONST R7 K7 + 0x88200108, // 000E GETMBR R8 R0 K8 + 0x88201109, // 000F GETMBR R8 R8 K9 + 0x7C140600, // 0010 CALL R5 3 + 0x7C0C0400, // 0011 CALL R3 2 + 0x8C0C0302, // 0012 GETMET R3 R1 K2 + 0x5814000A, // 0013 LDCONST R5 K10 + 0x7C0C0400, // 0014 CALL R3 2 + 0x8C0C0302, // 0015 GETMET R3 R1 K2 + 0x8C140506, // 0016 GETMET R5 R2 K6 + 0x581C000B, // 0017 LDCONST R7 K11 + 0x88200108, // 0018 GETMBR R8 R0 K8 + 0x8820110C, // 0019 GETMBR R8 R8 K12 + 0x7C140600, // 001A CALL R5 3 + 0x7C0C0400, // 001B CALL R3 2 + 0x8C0C0302, // 001C GETMET R3 R1 K2 + 0x8C140506, // 001D GETMET R5 R2 K6 + 0x581C000D, // 001E LDCONST R7 K13 + 0x88200108, // 001F GETMBR R8 R0 K8 + 0x8820110E, // 0020 GETMBR R8 R8 K14 + 0x78220001, // 0021 JMPF R8 #0024 + 0x5820000F, // 0022 LDCONST R8 K15 + 0x70020000, // 0023 JMP #0025 + 0x58200010, // 0024 LDCONST R8 K16 + 0x7C140600, // 0025 CALL R5 3 + 0x7C0C0400, // 0026 CALL R3 2 + 0x8C0C0302, // 0027 GETMET R3 R1 K2 + 0x58140011, // 0028 LDCONST R5 K17 + 0x7C0C0400, // 0029 CALL R3 2 + 0x8C0C0302, // 002A GETMET R3 R1 K2 + 0x58140012, // 002B LDCONST R5 K18 + 0x7C0C0400, // 002C CALL R3 2 + 0x80000000, // 002D RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: web_add_config_button +********************************************************************/ +be_local_closure(Matter_UI_web_add_config_button, /* name */ + be_nested_proto( + 5, /* 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(webserver), + /* K1 */ be_nested_str_weak(content_send), + /* K2 */ be_nested_str_weak(_X3Cp_X3E_X3Cform_X20id_X3Dac_X20action_X3D_X27matterc_X27_X20style_X3D_X27display_X3A_X20block_X3B_X27_X20method_X3D_X27get_X27_X3E_X3Cbutton_X3E), + /* K3 */ be_nested_str_weak(matter), + /* K4 */ be_nested_str_weak(_LOGO), + /* K5 */ be_nested_str_weak(_X20Configure_X20Matter_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E_X3C_X2Fp_X3E), + }), + be_str_weak(web_add_config_button), + &be_const_str_solidified, + ( &(const binstruction[12]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x8C080301, // 0001 GETMET R2 R1 K1 + 0x58100002, // 0002 LDCONST R4 K2 + 0x7C080400, // 0003 CALL R2 2 + 0x8C080301, // 0004 GETMET R2 R1 K1 + 0xB8120600, // 0005 GETNGBL R4 K3 + 0x88100904, // 0006 GETMBR R4 R4 K4 + 0x7C080400, // 0007 CALL R2 2 + 0x8C080301, // 0008 GETMET R2 R1 K1 + 0x58100005, // 0009 LDCONST R4 K5 + 0x7C080400, // 000A CALL R2 2 + 0x80000000, // 000B RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: show_fabric_info ********************************************************************/ be_local_closure(Matter_UI_show_fabric_info, /* name */ be_nested_proto( - 17, /* nstack */ - 2, /* argc */ + 16, /* nstack */ + 1, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ @@ -45,7 +407,7 @@ be_local_closure(Matter_UI_show_fabric_info, /* name */ /* K22 */ be_nested_str_weak(Fabric_X3A_X20_X25s_X3Cbr_X3E), /* K23 */ be_nested_str_weak(tohex), /* K24 */ be_nested_str_weak(Device_X3A_X20_X25s_X3Cbr_X3E_X26nbsp_X3B), - /* K25 */ be_nested_str_weak(_X3Cform_X20action_X3D_X27_X2Fmatterc_X27_X20method_X3D_X27post_X27_X3E), + /* K25 */ be_nested_str_weak(_X3Cform_X20action_X3D_X27_X2Fmatterc_X27_X20method_X3D_X27post_X27_X20onsubmit_X3D_X27return_X20confirm_X28_X22Are_X20you_X20sure_X3F_X22_X29_X3B_X27_X3E), /* K26 */ be_nested_str_weak(_X3Cinput_X20name_X3D_X27del_fabric_X27_X20type_X3D_X27hidden_X27_X20value_X3D_X27_X25i_X27_X3E), /* K27 */ be_nested_str_weak(_X3Cbutton_X20name_X3D_X27del_X27_X20class_X3D_X27button_X20bgrn_X27_X3EDelete_X20Fabric_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E_X3C_X2Fp_X3E), /* K28 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E_X3C_X2Ffieldset_X3E_X3Cp_X3E_X3C_X2Fp_X3E), @@ -54,108 +416,936 @@ be_local_closure(Matter_UI_show_fabric_info, /* name */ be_str_weak(show_fabric_info), &be_const_str_solidified, ( &(const binstruction[102]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0x8C0C0302, // 0002 GETMET R3 R1 K2 + 0x58140003, // 0003 LDCONST R5 K3 + 0x7C0C0400, // 0004 CALL R3 2 + 0x8C0C0302, // 0005 GETMET R3 R1 K2 + 0x58140004, // 0006 LDCONST R5 K4 + 0x7C0C0400, // 0007 CALL R3 2 + 0x600C000C, // 0008 GETGBL R3 G12 + 0x88100105, // 0009 GETMBR R4 R0 K5 + 0x88100906, // 000A GETMBR R4 R4 K6 + 0x88100906, // 000B GETMBR R4 R4 K6 + 0x7C0C0200, // 000C CALL R3 1 + 0x1C0C0707, // 000D EQ R3 R3 K7 + 0x780E0003, // 000E JMPF R3 #0013 + 0x8C0C0302, // 000F GETMET R3 R1 K2 + 0x58140008, // 0010 LDCONST R5 K8 + 0x7C0C0400, // 0011 CALL R3 2 + 0x7002004E, // 0012 JMP #0062 + 0x500C0200, // 0013 LDBOOL R3 1 0 + 0x60100010, // 0014 GETGBL R4 G16 + 0x88140105, // 0015 GETMBR R5 R0 K5 + 0x88140B06, // 0016 GETMBR R5 R5 K6 + 0x88140B09, // 0017 GETMBR R5 R5 K9 + 0x8C140B0A, // 0018 GETMET R5 R5 K10 + 0x7C140200, // 0019 CALL R5 1 + 0x7C100200, // 001A CALL R4 1 + 0xA8020042, // 001B EXBLK 0 #005F + 0x5C140800, // 001C MOVE R5 R4 + 0x7C140000, // 001D CALL R5 0 + 0x5C180600, // 001E MOVE R6 R3 + 0x741A0002, // 001F JMPT R6 #0023 + 0x8C180302, // 0020 GETMET R6 R1 K2 + 0x5820000B, // 0021 LDCONST R8 K11 + 0x7C180400, // 0022 CALL R6 2 + 0x500C0000, // 0023 LDBOOL R3 0 0 + 0x88180B0C, // 0024 GETMBR R6 R5 K12 + 0x5C1C0C00, // 0025 MOVE R7 R6 + 0x741E0000, // 0026 JMPT R7 #0028 + 0x5818000D, // 0027 LDCONST R6 K13 + 0x8C1C030E, // 0028 GETMET R7 R1 K14 + 0x5C240C00, // 0029 MOVE R9 R6 + 0x7C1C0400, // 002A CALL R7 2 + 0x5C180E00, // 002B MOVE R6 R7 + 0x8C1C0302, // 002C GETMET R7 R1 K2 + 0x8C24050F, // 002D GETMET R9 R2 K15 + 0x582C0010, // 002E LDCONST R11 K16 + 0x8C300B11, // 002F GETMET R12 R5 K17 + 0x7C300200, // 0030 CALL R12 1 + 0x5C340C00, // 0031 MOVE R13 R6 + 0x7C240800, // 0032 CALL R9 4 + 0x7C1C0400, // 0033 CALL R7 2 + 0x8C1C0B12, // 0034 GETMET R7 R5 K18 + 0x7C1C0200, // 0035 CALL R7 1 + 0x8C1C0F13, // 0036 GETMET R7 R7 K19 + 0x7C1C0200, // 0037 CALL R7 1 + 0x8C1C0F14, // 0038 GETMET R7 R7 K20 + 0x7C1C0200, // 0039 CALL R7 1 + 0x8C200B15, // 003A GETMET R8 R5 K21 + 0x7C200200, // 003B CALL R8 1 + 0x8C201113, // 003C GETMET R8 R8 K19 + 0x7C200200, // 003D CALL R8 1 + 0x8C201114, // 003E GETMET R8 R8 K20 + 0x7C200200, // 003F CALL R8 1 + 0x8C240302, // 0040 GETMET R9 R1 K2 + 0x8C2C050F, // 0041 GETMET R11 R2 K15 + 0x58340016, // 0042 LDCONST R13 K22 + 0x8C380F17, // 0043 GETMET R14 R7 K23 + 0x7C380200, // 0044 CALL R14 1 + 0x7C2C0600, // 0045 CALL R11 3 + 0x7C240400, // 0046 CALL R9 2 + 0x8C240302, // 0047 GETMET R9 R1 K2 + 0x8C2C050F, // 0048 GETMET R11 R2 K15 + 0x58340018, // 0049 LDCONST R13 K24 + 0x8C381117, // 004A GETMET R14 R8 K23 + 0x7C380200, // 004B CALL R14 1 + 0x7C2C0600, // 004C CALL R11 3 + 0x7C240400, // 004D CALL R9 2 + 0x8C240302, // 004E GETMET R9 R1 K2 + 0x582C0019, // 004F LDCONST R11 K25 + 0x7C240400, // 0050 CALL R9 2 + 0x8C240302, // 0051 GETMET R9 R1 K2 + 0x8C2C050F, // 0052 GETMET R11 R2 K15 + 0x5834001A, // 0053 LDCONST R13 K26 + 0x8C380B11, // 0054 GETMET R14 R5 K17 + 0x7C380200, // 0055 CALL R14 1 + 0x7C2C0600, // 0056 CALL R11 3 + 0x7C240400, // 0057 CALL R9 2 + 0x8C240302, // 0058 GETMET R9 R1 K2 + 0x582C001B, // 0059 LDCONST R11 K27 + 0x7C240400, // 005A CALL R9 2 + 0x8C240302, // 005B GETMET R9 R1 K2 + 0x582C001C, // 005C LDCONST R11 K28 + 0x7C240400, // 005D CALL R9 2 + 0x7001FFBC, // 005E JMP #001C + 0x5810001D, // 005F LDCONST R4 K29 + 0xAC100200, // 0060 CATCH R4 1 0 + 0xB0080000, // 0061 RAISE 2 R0 R0 + 0x8C0C0302, // 0062 GETMET R3 R1 K2 + 0x5814001C, // 0063 LDCONST R5 K28 + 0x7C0C0400, // 0064 CALL R3 2 + 0x80000000, // 0065 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: page_part_mgr +********************************************************************/ +be_local_closure(Matter_UI_page_part_mgr, /* 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[13]) { /* constants */ + /* K0 */ be_nested_str_weak(webserver), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(check_privileged_access), + /* K3 */ be_nested_str_weak(content_start), + /* K4 */ be_nested_str_weak(Matter), + /* K5 */ be_nested_str_weak(content_send_style), + /* K6 */ be_nested_str_weak(show_enable), + /* K7 */ be_nested_str_weak(show_passcode_form), + /* K8 */ be_nested_str_weak(show_plugins_configuration), + /* K9 */ be_nested_str_weak(show_fabric_info), + /* K10 */ be_nested_str_weak(content_button), + /* K11 */ be_nested_str_weak(BUTTON_CONFIGURATION), + /* K12 */ be_nested_str_weak(content_stop), + }), + be_str_weak(page_part_mgr), + &be_const_str_solidified, + ( &(const binstruction[27]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0x8C0C0302, // 0002 GETMET R3 R1 K2 + 0x7C0C0200, // 0003 CALL R3 1 + 0x740E0001, // 0004 JMPT R3 #0007 + 0x4C0C0000, // 0005 LDNIL R3 + 0x80040600, // 0006 RET 1 R3 + 0x8C0C0303, // 0007 GETMET R3 R1 K3 + 0x58140004, // 0008 LDCONST R5 K4 + 0x7C0C0400, // 0009 CALL R3 2 + 0x8C0C0305, // 000A GETMET R3 R1 K5 + 0x7C0C0200, // 000B CALL R3 1 + 0x8C0C0106, // 000C GETMET R3 R0 K6 + 0x7C0C0200, // 000D CALL R3 1 + 0x780E0005, // 000E JMPF R3 #0015 + 0x8C0C0107, // 000F GETMET R3 R0 K7 + 0x7C0C0200, // 0010 CALL R3 1 + 0x8C0C0108, // 0011 GETMET R3 R0 K8 + 0x7C0C0200, // 0012 CALL R3 1 + 0x8C0C0109, // 0013 GETMET R3 R0 K9 + 0x7C0C0200, // 0014 CALL R3 1 + 0x8C0C030A, // 0015 GETMET R3 R1 K10 + 0x8814030B, // 0016 GETMBR R5 R1 K11 + 0x7C0C0400, // 0017 CALL R3 2 + 0x8C0C030C, // 0018 GETMET R3 R1 K12 + 0x7C0C0200, // 0019 CALL R3 1 + 0x80000000, // 001A RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: page_part_ctl +********************************************************************/ +be_local_closure(Matter_UI_page_part_ctl, /* name */ + be_nested_proto( + 21, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[72]) { /* constants */ + /* K0 */ be_nested_str_weak(webserver), + /* K1 */ be_nested_str_weak(check_privileged_access), + /* K2 */ be_nested_str_weak(string), + /* K3 */ be_nested_str_weak(partition_core), + /* K4 */ be_nested_str_weak(persist), + /* K5 */ be_nested_str_weak(has_arg), + /* K6 */ be_nested_str_weak(passcode), + /* K7 */ be_nested_str_weak(discriminator), + /* K8 */ be_nested_str_weak(tasmota), + /* K9 */ be_nested_str_weak(log), + /* K10 */ be_nested_str_weak(format), + /* K11 */ be_nested_str_weak(MTR_X3A_X20_X2Fmatterc_X20received_X20_X27_X25s_X27_X20command), + /* K12 */ be_const_int(3), + /* K13 */ be_nested_str_weak(device), + /* K14 */ be_nested_str_weak(root_passcode), + /* K15 */ be_nested_str_weak(arg), + /* K16 */ be_nested_str_weak(root_discriminator), + /* K17 */ be_nested_str_weak(ipv4only), + /* K18 */ be_nested_str_weak(ipv4), + /* K19 */ be_nested_str_weak(on), + /* K20 */ be_nested_str_weak(save_param), + /* K21 */ be_nested_str_weak(redirect), + /* K22 */ be_nested_str_weak(_X2F_X3Frst_X3D), + /* K23 */ be_nested_str_weak(enable), + /* K24 */ be_nested_str_weak(cmd), + /* K25 */ be_nested_str_weak(SetOption), + /* K26 */ be_nested_str_weak(matter), + /* K27 */ be_nested_str_weak(MATTER_OPTION), + /* K28 */ be_nested_str_weak(_X201), + /* K29 */ be_nested_str_weak(disable), + /* K30 */ be_nested_str_weak(_X200), + /* K31 */ be_nested_str_weak(del_fabric), + /* K32 */ be_const_int(0), + /* K33 */ be_nested_str_weak(sessions), + /* K34 */ be_nested_str_weak(fabrics), + /* K35 */ be_nested_str_weak(get_fabric_index), + /* K36 */ be_nested_str_weak(remove_fabric), + /* K37 */ be_const_int(1), + /* K38 */ be_nested_str_weak(_X2Fmatterc_X3F), + /* K39 */ be_nested_str_weak(auto), + /* K40 */ be_nested_str_weak(plugins_persist), + /* K41 */ be_nested_str_weak(config), + /* K42 */ be_nested_str_weak(_X2503i), + /* K43 */ be_nested_str_weak(ep), + /* K44 */ be_nested_str_weak(pi), + /* K45 */ be_nested_str_weak(MTR_X3A_X20ep_X3D_X25i_X20type_X3D_X25s_X20arg_X3D_X25s), + /* K46 */ be_nested_str_weak(), + /* K47 */ be_nested_str_weak(plugins_classes), + /* K48 */ be_nested_str_weak(find), + /* K49 */ be_nested_str_weak(type), + /* K50 */ be_nested_str_weak(ARG), + /* K51 */ be_nested_str_weak(ARG_TYPE), + /* K52 */ be_nested_str_weak(MTR_X3A_X20unknown_X20type_X20_X3D_X20_X25s), + /* K53 */ be_const_int(2), + /* K54 */ be_nested_str_weak(MTR_X3A_X20skipping_X20parameter), + /* K55 */ be_nested_str_weak(MTR_X3A_X20config_X20_X3D_X20_X25s), + /* K56 */ be_nested_str_weak(contains), + /* K57 */ be_nested_str_weak(0), + /* K58 */ be_nested_str_weak(Missing_X20endpoint_X200), + /* K59 */ be_nested_str_weak(MTR_X3A_X20config_X20error_X20_X3D_X20_X25s), + /* K60 */ be_nested_str_weak(plugins_config), + /* K61 */ be_nested_str_weak(content_start), + /* K62 */ be_nested_str_weak(Parameter_X20error), + /* K63 */ be_nested_str_weak(content_send_style), + /* K64 */ be_nested_str_weak(content_send), + /* K65 */ be_nested_str_weak(_X3Cp_X20style_X3D_X27width_X3A340px_X3B_X27_X3E_X3Cb_X3EError_X3A_X3C_X2Fb_X3E_X25s_X3C_X2Fp_X3E), + /* K66 */ be_nested_str_weak(html_escape), + /* K67 */ be_nested_str_weak(content_button), + /* K68 */ be_nested_str_weak(BUTTON_CONFIGURATION), + /* K69 */ be_nested_str_weak(content_stop), + /* K70 */ be_nested_str_weak(BRY_X3A_X20Exception_X3E_X20_X27_X25s_X27_X20_X2D_X20_X25s), + /* K71 */ be_nested_str_weak(_X3Cp_X20style_X3D_X27width_X3A340px_X3B_X27_X3E_X3Cb_X3EException_X3A_X3C_X2Fb_X3E_X3Cbr_X3E_X27_X25s_X27_X3Cbr_X3E_X25s_X3C_X2Fp_X3E), + }), + be_str_weak(page_part_ctl), + &be_const_str_solidified, + ( &(const binstruction[356]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x8C080301, // 0001 GETMET R2 R1 K1 + 0x7C080200, // 0002 CALL R2 1 + 0x740A0001, // 0003 JMPT R2 #0006 + 0x4C080000, // 0004 LDNIL R2 + 0x80040400, // 0005 RET 1 R2 + 0xA40A0400, // 0006 IMPORT R2 K2 + 0xA40E0600, // 0007 IMPORT R3 K3 + 0xA4120800, // 0008 IMPORT R4 K4 + 0x4C140000, // 0009 LDNIL R5 + 0xA8020139, // 000A EXBLK 0 #0145 + 0x8C180305, // 000B GETMET R6 R1 K5 + 0x58200006, // 000C LDCONST R8 K6 + 0x7C180400, // 000D CALL R6 2 + 0x741A0003, // 000E JMPT R6 #0013 + 0x8C180305, // 000F GETMET R6 R1 K5 + 0x58200007, // 0010 LDCONST R8 K7 + 0x7C180400, // 0011 CALL R6 2 + 0x781A002A, // 0012 JMPF R6 #003E + 0xB81A1000, // 0013 GETNGBL R6 K8 + 0x8C180D09, // 0014 GETMET R6 R6 K9 + 0x8C20050A, // 0015 GETMET R8 R2 K10 + 0x5828000B, // 0016 LDCONST R10 K11 + 0x582C0006, // 0017 LDCONST R11 K6 + 0x7C200600, // 0018 CALL R8 3 + 0x5824000C, // 0019 LDCONST R9 K12 + 0x7C180600, // 001A CALL R6 3 + 0x8C180305, // 001B GETMET R6 R1 K5 + 0x58200006, // 001C LDCONST R8 K6 + 0x7C180400, // 001D CALL R6 2 + 0x781A0006, // 001E JMPF R6 #0026 + 0x8818010D, // 001F GETMBR R6 R0 K13 + 0x601C0009, // 0020 GETGBL R7 G9 + 0x8C20030F, // 0021 GETMET R8 R1 K15 + 0x58280006, // 0022 LDCONST R10 K6 + 0x7C200400, // 0023 CALL R8 2 + 0x7C1C0200, // 0024 CALL R7 1 + 0x901A1C07, // 0025 SETMBR R6 K14 R7 + 0x8C180305, // 0026 GETMET R6 R1 K5 + 0x58200007, // 0027 LDCONST R8 K7 + 0x7C180400, // 0028 CALL R6 2 + 0x781A0006, // 0029 JMPF R6 #0031 + 0x8818010D, // 002A GETMBR R6 R0 K13 + 0x601C0009, // 002B GETGBL R7 G9 + 0x8C20030F, // 002C GETMET R8 R1 K15 + 0x58280007, // 002D LDCONST R10 K7 + 0x7C200400, // 002E CALL R8 2 + 0x7C1C0200, // 002F CALL R7 1 + 0x901A2007, // 0030 SETMBR R6 K16 R7 + 0x8818010D, // 0031 GETMBR R6 R0 K13 + 0x8C1C030F, // 0032 GETMET R7 R1 K15 + 0x58240012, // 0033 LDCONST R9 K18 + 0x7C1C0400, // 0034 CALL R7 2 + 0x1C1C0F13, // 0035 EQ R7 R7 K19 + 0x901A2207, // 0036 SETMBR R6 K17 R7 + 0x8818010D, // 0037 GETMBR R6 R0 K13 + 0x8C180D14, // 0038 GETMET R6 R6 K20 + 0x7C180200, // 0039 CALL R6 1 + 0x8C180315, // 003A GETMET R6 R1 K21 + 0x58200016, // 003B LDCONST R8 K22 + 0x7C180400, // 003C CALL R6 2 + 0x700200F1, // 003D JMP #0130 + 0x8C180305, // 003E GETMET R6 R1 K5 + 0x58200017, // 003F LDCONST R8 K23 + 0x7C180400, // 0040 CALL R6 2 + 0x781A0014, // 0041 JMPF R6 #0057 + 0xB81A1000, // 0042 GETNGBL R6 K8 + 0x8C180D09, // 0043 GETMET R6 R6 K9 + 0x8C20050A, // 0044 GETMET R8 R2 K10 + 0x5828000B, // 0045 LDCONST R10 K11 + 0x582C0017, // 0046 LDCONST R11 K23 + 0x7C200600, // 0047 CALL R8 3 + 0x5824000C, // 0048 LDCONST R9 K12 + 0x7C180600, // 0049 CALL R6 3 + 0xB81A1000, // 004A GETNGBL R6 K8 + 0x8C180D18, // 004B GETMET R6 R6 K24 + 0x60200008, // 004C GETGBL R8 G8 + 0xB8263400, // 004D GETNGBL R9 K26 + 0x8824131B, // 004E GETMBR R9 R9 K27 + 0x7C200200, // 004F CALL R8 1 + 0x00223208, // 0050 ADD R8 K25 R8 + 0x0020111C, // 0051 ADD R8 R8 K28 + 0x7C180400, // 0052 CALL R6 2 + 0x8C180315, // 0053 GETMET R6 R1 K21 + 0x58200016, // 0054 LDCONST R8 K22 + 0x7C180400, // 0055 CALL R6 2 + 0x700200D8, // 0056 JMP #0130 + 0x8C180305, // 0057 GETMET R6 R1 K5 + 0x5820001D, // 0058 LDCONST R8 K29 + 0x7C180400, // 0059 CALL R6 2 + 0x781A0014, // 005A JMPF R6 #0070 + 0xB81A1000, // 005B GETNGBL R6 K8 + 0x8C180D09, // 005C GETMET R6 R6 K9 + 0x8C20050A, // 005D GETMET R8 R2 K10 + 0x5828000B, // 005E LDCONST R10 K11 + 0x582C001D, // 005F LDCONST R11 K29 + 0x7C200600, // 0060 CALL R8 3 + 0x5824000C, // 0061 LDCONST R9 K12 + 0x7C180600, // 0062 CALL R6 3 + 0xB81A1000, // 0063 GETNGBL R6 K8 + 0x8C180D18, // 0064 GETMET R6 R6 K24 + 0x60200008, // 0065 GETGBL R8 G8 + 0xB8263400, // 0066 GETNGBL R9 K26 + 0x8824131B, // 0067 GETMBR R9 R9 K27 + 0x7C200200, // 0068 CALL R8 1 + 0x00223208, // 0069 ADD R8 K25 R8 + 0x0020111E, // 006A ADD R8 R8 K30 + 0x7C180400, // 006B CALL R6 2 + 0x8C180315, // 006C GETMET R6 R1 K21 + 0x58200016, // 006D LDCONST R8 K22 + 0x7C180400, // 006E CALL R6 2 + 0x700200BF, // 006F JMP #0130 + 0x8C180305, // 0070 GETMET R6 R1 K5 + 0x5820001F, // 0071 LDCONST R8 K31 + 0x7C180400, // 0072 CALL R6 2 + 0x781A0026, // 0073 JMPF R6 #009B + 0xB81A1000, // 0074 GETNGBL R6 K8 + 0x8C180D09, // 0075 GETMET R6 R6 K9 + 0x8C20050A, // 0076 GETMET R8 R2 K10 + 0x5828000B, // 0077 LDCONST R10 K11 + 0x582C001F, // 0078 LDCONST R11 K31 + 0x7C200600, // 0079 CALL R8 3 + 0x5824000C, // 007A LDCONST R9 K12 + 0x7C180600, // 007B CALL R6 3 + 0x60180009, // 007C GETGBL R6 G9 + 0x8C1C030F, // 007D GETMET R7 R1 K15 + 0x5824001F, // 007E LDCONST R9 K31 + 0x7C1C0400, // 007F CALL R7 2 + 0x7C180200, // 0080 CALL R6 1 + 0x581C0020, // 0081 LDCONST R7 K32 + 0x8820010D, // 0082 GETMBR R8 R0 K13 + 0x88201121, // 0083 GETMBR R8 R8 K33 + 0x88201122, // 0084 GETMBR R8 R8 K34 + 0x6024000C, // 0085 GETGBL R9 G12 + 0x5C281000, // 0086 MOVE R10 R8 + 0x7C240200, // 0087 CALL R9 1 + 0x14240E09, // 0088 LT R9 R7 R9 + 0x7826000C, // 0089 JMPF R9 #0097 + 0x94241007, // 008A GETIDX R9 R8 R7 + 0x8C241323, // 008B GETMET R9 R9 K35 + 0x7C240200, // 008C CALL R9 1 + 0x1C241206, // 008D EQ R9 R9 R6 + 0x78260005, // 008E JMPF R9 #0095 + 0x8824010D, // 008F GETMBR R9 R0 K13 + 0x8C241324, // 0090 GETMET R9 R9 K36 + 0x942C1007, // 0091 GETIDX R11 R8 R7 + 0x7C240400, // 0092 CALL R9 2 + 0x70020002, // 0093 JMP #0097 + 0x70020000, // 0094 JMP #0096 + 0x001C0F25, // 0095 ADD R7 R7 K37 + 0x7001FFED, // 0096 JMP #0085 + 0x8C240315, // 0097 GETMET R9 R1 K21 + 0x582C0026, // 0098 LDCONST R11 K38 + 0x7C240400, // 0099 CALL R9 2 + 0x70020094, // 009A JMP #0130 + 0x8C180305, // 009B GETMET R6 R1 K5 + 0x58200027, // 009C LDCONST R8 K39 + 0x7C180400, // 009D CALL R6 2 + 0x781A0011, // 009E JMPF R6 #00B1 + 0xB81A1000, // 009F GETNGBL R6 K8 + 0x8C180D09, // 00A0 GETMET R6 R6 K9 + 0x8C20050A, // 00A1 GETMET R8 R2 K10 + 0x5828000B, // 00A2 LDCONST R10 K11 + 0x582C0027, // 00A3 LDCONST R11 K39 + 0x7C200600, // 00A4 CALL R8 3 + 0x5824000C, // 00A5 LDCONST R9 K12 + 0x7C180600, // 00A6 CALL R6 3 + 0x8818010D, // 00A7 GETMBR R6 R0 K13 + 0x501C0000, // 00A8 LDBOOL R7 0 0 + 0x901A5007, // 00A9 SETMBR R6 K40 R7 + 0x8818010D, // 00AA GETMBR R6 R0 K13 + 0x8C180D14, // 00AB GETMET R6 R6 K20 + 0x7C180200, // 00AC CALL R6 1 + 0x8C180315, // 00AD GETMET R6 R1 K21 + 0x58200016, // 00AE LDCONST R8 K22 + 0x7C180400, // 00AF CALL R6 2 + 0x7002007E, // 00B0 JMP #0130 + 0x8C180305, // 00B1 GETMET R6 R1 K5 + 0x58200029, // 00B2 LDCONST R8 K41 + 0x7C180400, // 00B3 CALL R6 2 + 0x781A007A, // 00B4 JMPF R6 #0130 + 0x60180013, // 00B5 GETGBL R6 G19 + 0x7C180000, // 00B6 CALL R6 0 + 0xB81E1000, // 00B7 GETNGBL R7 K8 + 0x8C1C0F09, // 00B8 GETMET R7 R7 K9 + 0x8C24050A, // 00B9 GETMET R9 R2 K10 + 0x582C000B, // 00BA LDCONST R11 K11 + 0x58300029, // 00BB LDCONST R12 K41 + 0x7C240600, // 00BC CALL R9 3 + 0x5828000C, // 00BD LDCONST R10 K12 + 0x7C1C0600, // 00BE CALL R7 3 + 0x581C0020, // 00BF LDCONST R7 K32 + 0x8C20050A, // 00C0 GETMET R8 R2 K10 + 0x5828002A, // 00C1 LDCONST R10 K42 + 0x5C2C0E00, // 00C2 MOVE R11 R7 + 0x7C200600, // 00C3 CALL R8 3 + 0x8C240305, // 00C4 GETMET R9 R1 K5 + 0x002E5608, // 00C5 ADD R11 K43 R8 + 0x7C240400, // 00C6 CALL R9 2 + 0x78260043, // 00C7 JMPF R9 #010C + 0x8C24030F, // 00C8 GETMET R9 R1 K15 + 0x002E5608, // 00C9 ADD R11 K43 R8 + 0x7C240400, // 00CA CALL R9 2 + 0x60280009, // 00CB GETGBL R10 G9 + 0x5C2C1200, // 00CC MOVE R11 R9 + 0x7C280200, // 00CD CALL R10 1 + 0x8C2C030F, // 00CE GETMET R11 R1 K15 + 0x00365808, // 00CF ADD R13 K44 R8 + 0x7C2C0400, // 00D0 CALL R11 2 + 0x8C30030F, // 00D1 GETMET R12 R1 K15 + 0x003A1E08, // 00D2 ADD R14 K15 R8 + 0x7C300400, // 00D3 CALL R12 2 + 0xB8361000, // 00D4 GETNGBL R13 K8 + 0x8C341B09, // 00D5 GETMET R13 R13 K9 + 0x8C3C050A, // 00D6 GETMET R15 R2 K10 + 0x5844002D, // 00D7 LDCONST R17 K45 + 0x5C481200, // 00D8 MOVE R18 R9 + 0x5C4C1600, // 00D9 MOVE R19 R11 + 0x5C501800, // 00DA MOVE R20 R12 + 0x7C3C0A00, // 00DB CALL R15 5 + 0x5840000C, // 00DC LDCONST R16 K12 + 0x7C340600, // 00DD CALL R13 3 + 0x2034132E, // 00DE NE R13 R9 K46 + 0x7836001F, // 00DF JMPF R13 #0100 + 0x2034172E, // 00E0 NE R13 R11 K46 + 0x7836001D, // 00E1 JMPF R13 #0100 + 0x8834010D, // 00E2 GETMBR R13 R0 K13 + 0x88341B2F, // 00E3 GETMBR R13 R13 K47 + 0x8C341B30, // 00E4 GETMET R13 R13 K48 + 0x5C3C1600, // 00E5 MOVE R15 R11 + 0x7C340400, // 00E6 CALL R13 2 + 0x4C380000, // 00E7 LDNIL R14 + 0x20381A0E, // 00E8 NE R14 R13 R14 + 0x783A000C, // 00E9 JMPF R14 #00F7 + 0x60380013, // 00EA GETGBL R14 G19 + 0x7C380000, // 00EB CALL R14 0 + 0x983A620B, // 00EC SETIDX R14 K49 R11 + 0x883C1B32, // 00ED GETMBR R15 R13 K50 + 0x88401B33, // 00EE GETMBR R16 R13 K51 + 0x78320004, // 00EF JMPF R12 #00F5 + 0x783E0003, // 00F0 JMPF R15 #00F5 + 0x5C442000, // 00F1 MOVE R17 R16 + 0x5C481800, // 00F2 MOVE R18 R12 + 0x7C440200, // 00F3 CALL R17 1 + 0x98381E11, // 00F4 SETIDX R14 R15 R17 + 0x9818120E, // 00F5 SETIDX R6 R9 R14 + 0x70020007, // 00F6 JMP #00FF + 0xB83A1000, // 00F7 GETNGBL R14 K8 + 0x8C381D09, // 00F8 GETMET R14 R14 K9 + 0x8C40050A, // 00F9 GETMET R16 R2 K10 + 0x58480034, // 00FA LDCONST R18 K52 + 0x5C4C1600, // 00FB MOVE R19 R11 + 0x7C400600, // 00FC CALL R16 3 + 0x58440035, // 00FD LDCONST R17 K53 + 0x7C380600, // 00FE CALL R14 3 + 0x70020004, // 00FF JMP #0105 + 0xB8361000, // 0100 GETNGBL R13 K8 + 0x8C341B09, // 0101 GETMET R13 R13 K9 + 0x583C0036, // 0102 LDCONST R15 K54 + 0x58400035, // 0103 LDCONST R16 K53 + 0x7C340600, // 0104 CALL R13 3 + 0x001C0F25, // 0105 ADD R7 R7 K37 + 0x8C34050A, // 0106 GETMET R13 R2 K10 + 0x583C002A, // 0107 LDCONST R15 K42 + 0x5C400E00, // 0108 MOVE R16 R7 + 0x7C340600, // 0109 CALL R13 3 + 0x5C201A00, // 010A MOVE R8 R13 + 0x7001FFB7, // 010B JMP #00C4 + 0xB8261000, // 010C GETNGBL R9 K8 + 0x8C241309, // 010D GETMET R9 R9 K9 + 0x8C2C050A, // 010E GETMET R11 R2 K10 + 0x58340037, // 010F LDCONST R13 K55 + 0x60380008, // 0110 GETGBL R14 G8 + 0x5C3C0C00, // 0111 MOVE R15 R6 + 0x7C380200, // 0112 CALL R14 1 + 0x7C2C0600, // 0113 CALL R11 3 + 0x5830000C, // 0114 LDCONST R12 K12 + 0x7C240600, // 0115 CALL R9 3 + 0x8C240D38, // 0116 GETMET R9 R6 K56 + 0x582C0039, // 0117 LDCONST R11 K57 + 0x7C240400, // 0118 CALL R9 2 + 0x74260000, // 0119 JMPT R9 #011B + 0x5814003A, // 011A LDCONST R5 K58 + 0x78160008, // 011B JMPF R5 #0125 + 0xB8261000, // 011C GETNGBL R9 K8 + 0x8C241309, // 011D GETMET R9 R9 K9 + 0x8C2C050A, // 011E GETMET R11 R2 K10 + 0x5834003B, // 011F LDCONST R13 K59 + 0x5C380A00, // 0120 MOVE R14 R5 + 0x7C2C0600, // 0121 CALL R11 3 + 0x5830000C, // 0122 LDCONST R12 K12 + 0x7C240600, // 0123 CALL R9 3 + 0x7002000A, // 0124 JMP #0130 + 0x8824010D, // 0125 GETMBR R9 R0 K13 + 0x90267806, // 0126 SETMBR R9 K60 R6 + 0x8824010D, // 0127 GETMBR R9 R0 K13 + 0x50280200, // 0128 LDBOOL R10 1 0 + 0x9026500A, // 0129 SETMBR R9 K40 R10 + 0x8824010D, // 012A GETMBR R9 R0 K13 + 0x8C241314, // 012B GETMET R9 R9 K20 + 0x7C240200, // 012C CALL R9 1 + 0x8C240315, // 012D GETMET R9 R1 K21 + 0x582C0016, // 012E LDCONST R11 K22 + 0x7C240400, // 012F CALL R9 2 + 0x78160011, // 0130 JMPF R5 #0143 + 0x8C18033D, // 0131 GETMET R6 R1 K61 + 0x5820003E, // 0132 LDCONST R8 K62 + 0x7C180400, // 0133 CALL R6 2 + 0x8C18033F, // 0134 GETMET R6 R1 K63 + 0x7C180200, // 0135 CALL R6 1 + 0x8C180340, // 0136 GETMET R6 R1 K64 + 0x8C20050A, // 0137 GETMET R8 R2 K10 + 0x58280041, // 0138 LDCONST R10 K65 + 0x8C2C0342, // 0139 GETMET R11 R1 K66 + 0x5C340A00, // 013A MOVE R13 R5 + 0x7C2C0400, // 013B CALL R11 2 + 0x7C200600, // 013C CALL R8 3 + 0x7C180400, // 013D CALL R6 2 + 0x8C180343, // 013E GETMET R6 R1 K67 + 0x88200344, // 013F GETMBR R8 R1 K68 + 0x7C180400, // 0140 CALL R6 2 + 0x8C180345, // 0141 GETMET R6 R1 K69 + 0x7C180200, // 0142 CALL R6 1 + 0xA8040001, // 0143 EXBLK 1 1 + 0x7002001D, // 0144 JMP #0163 + 0xAC180002, // 0145 CATCH R6 0 2 + 0x7002001A, // 0146 JMP #0162 + 0xB8221000, // 0147 GETNGBL R8 K8 + 0x8C201109, // 0148 GETMET R8 R8 K9 + 0x8C28050A, // 0149 GETMET R10 R2 K10 + 0x58300046, // 014A LDCONST R12 K70 + 0x5C340C00, // 014B MOVE R13 R6 + 0x5C380E00, // 014C MOVE R14 R7 + 0x7C280800, // 014D CALL R10 4 + 0x582C0035, // 014E LDCONST R11 K53 + 0x7C200600, // 014F CALL R8 3 + 0x8C20033D, // 0150 GETMET R8 R1 K61 + 0x5828003E, // 0151 LDCONST R10 K62 + 0x7C200400, // 0152 CALL R8 2 + 0x8C20033F, // 0153 GETMET R8 R1 K63 + 0x7C200200, // 0154 CALL R8 1 + 0x8C200340, // 0155 GETMET R8 R1 K64 + 0x8C28050A, // 0156 GETMET R10 R2 K10 + 0x58300047, // 0157 LDCONST R12 K71 + 0x5C340C00, // 0158 MOVE R13 R6 + 0x5C380E00, // 0159 MOVE R14 R7 + 0x7C280800, // 015A CALL R10 4 + 0x7C200400, // 015B CALL R8 2 + 0x8C200343, // 015C GETMET R8 R1 K67 + 0x88280344, // 015D GETMBR R10 R1 K68 + 0x7C200400, // 015E CALL R8 2 + 0x8C200345, // 015F GETMET R8 R1 K69 + 0x7C200200, // 0160 CALL R8 1 + 0x70020000, // 0161 JMP #0163 + 0xB0080000, // 0162 RAISE 2 R0 R0 + 0x80000000, // 0163 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: web_get_arg +********************************************************************/ +be_local_closure(Matter_UI_web_get_arg, /* name */ + be_nested_proto( + 5, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 7]) { /* constants */ + /* K0 */ be_nested_str_weak(webserver), + /* K1 */ be_nested_str_weak(has_arg), + /* K2 */ be_nested_str_weak(mtc0), + /* K3 */ be_nested_str_weak(device), + /* K4 */ be_nested_str_weak(stop_basic_commissioning), + /* K5 */ be_nested_str_weak(mtc1), + /* K6 */ be_nested_str_weak(start_root_basic_commissioning), + }), + be_str_weak(web_get_arg), + &be_const_str_solidified, + ( &(const binstruction[17]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x8C080301, // 0001 GETMET R2 R1 K1 + 0x58100002, // 0002 LDCONST R4 K2 + 0x7C080400, // 0003 CALL R2 2 + 0x780A0003, // 0004 JMPF R2 #0009 + 0x88080103, // 0005 GETMBR R2 R0 K3 + 0x8C080504, // 0006 GETMET R2 R2 K4 + 0x7C080200, // 0007 CALL R2 1 + 0x70020006, // 0008 JMP #0010 + 0x8C080301, // 0009 GETMET R2 R1 K1 + 0x58100005, // 000A LDCONST R4 K5 + 0x7C080400, // 000B CALL R2 2 + 0x780A0002, // 000C JMPF R2 #0010 + 0x88080103, // 000D GETMBR R2 R0 K3 + 0x8C080506, // 000E GETMET R2 R2 K6 + 0x7C080200, // 000F CALL R2 1 + 0x80000000, // 0010 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: show_plugins_configuration +********************************************************************/ +be_local_closure(Matter_UI_show_plugins_configuration, /* name */ + be_nested_proto( + 19, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[31]) { /* constants */ + /* K0 */ be_nested_str_weak(webserver), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(content_send), + /* K3 */ be_nested_str_weak(_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3BCurrent_X20Configuration_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E), + /* K4 */ be_nested_str_weak(_X3Cform_X20action_X3D_X27_X2Fmatterc_X27_X20method_X3D_X27post_X27), + /* K5 */ be_nested_str_weak(onsubmit_X3D_X27return_X20confirm_X28_X22This_X20will_X20RESET_X20the_X20configuration_X20to_X20the_X20default_X2E_X20You_X20will_X20need_X20to_X20associate_X20again_X2E_X22_X29_X3B_X27_X3E), + /* K6 */ be_nested_str_weak(_X3Cbutton_X20name_X3D_X27auto_X27_X20class_X3D_X27button_X20bred_X27_X3EReset_X20to_X20default_X3C_X2Fbutton_X3E_X3Cp_X3E_X3C_X2Fp_X3E_X3C_X2Fform_X3E), + /* K7 */ be_nested_str_weak(onsubmit_X3D_X27return_X20confirm_X28_X22Changing_X20the_X20configuration_X20requires_X20to_X20associate_X20again_X2E_X22_X29_X3B_X27_X3E), + /* K8 */ be_nested_str_weak(_X3Ctable_X20style_X3D_X27width_X3A100_X25_X27_X3E), + /* K9 */ be_nested_str_weak(_X3Ctr_X3E_X3Ctd_X20width_X3D_X2735_X27_X3E_X3Cb_X3EEp_X2E_X3C_X2Fb_X3E_X3C_X2Ftd_X3E_X3Ctd_X3E_X3Cb_X3EType_X3C_X2Fb_X3E_X3C_X2Ftd_X3E_X3Ctd_X3E_X3Cb_X3EParam_X3C_X2Fb_X3E_X3C_X2Ftd_X3E_X3C_X2Ftr_X3E), + /* K10 */ be_nested_str_weak(device), + /* K11 */ be_nested_str_weak(k2l_num), + /* K12 */ be_nested_str_weak(plugins_config), + /* K13 */ be_const_int(0), + /* K14 */ be_nested_str_weak(find), + /* K15 */ be_nested_str_weak(type), + /* K16 */ be_nested_str_weak(get_plugin_class_arg), + /* K17 */ be_nested_str_weak(), + /* K18 */ be_nested_str_weak(format), + /* K19 */ be_nested_str_weak(_X3Ctr_X3E_X3Ctd_X3E_X3Cinput_X20type_X3D_X27text_X27_X20name_X3D_X27ep_X2503i_X27_X20maxlength_X3D_X274_X27_X20size_X3D_X273_X27_X20pattern_X3D_X27_X5B0_X2D9_X5D_X7B1_X2C4_X7D_X27_X20value_X3D_X27_X25i_X27_X3E_X3C_X2Ftd_X3E), + /* K20 */ be_nested_str_weak(_X3Ctd_X3E_X3Cselect_X20name_X3D_X27pi_X2503i_X27_X3E), + /* K21 */ be_nested_str_weak(plugin_option), + /* K22 */ be_nested_str_weak(_X3C_X2Fselect_X3E_X3C_X2Ftd_X3E), + /* K23 */ be_nested_str_weak(_X3Ctd_X3E_X3Cfont_X20size_X3D_X27_X2D1_X27_X3E_X3Cinput_X20type_X3D_X27text_X27_X20name_X3D_X27arg_X2503i_X27_X20minlength_X3D_X270_X27_X20size_X3D_X278_X27_X20value_X3D_X27_X25s_X27_X3E_X3C_X2Ffont_X3E_X3C_X2Ftd_X3E), + /* K24 */ be_nested_str_weak(html_escape), + /* K25 */ be_const_int(1), + /* K26 */ be_nested_str_weak(_X3Ctr_X3E_X3Ctd_X3E_X3Cinput_X20type_X3D_X27text_X27_X20name_X3D_X27ep_X2503i_X27_X20maxlength_X3D_X274_X27_X20size_X3D_X273_X27_X20pattern_X3D_X27_X5B0_X2D9_X5D_X7B1_X2C4_X7D_X27_X20value_X3D_X27_X27_X3E_X3C_X2Ftd_X3E), + /* K27 */ be_nested_str_weak(_X3Ctd_X3E_X3Cfont_X20size_X3D_X27_X2D1_X27_X3E_X3Cinput_X20type_X3D_X27text_X27_X20name_X3D_X27arg_X2503i_X27_X20minlength_X3D_X270_X27_X20size_X3D_X278_X27_X20value_X3D_X27_X27_X3E_X3C_X2Ffont_X3E_X3C_X2Ftd_X3E), + /* K28 */ be_nested_str_weak(_X3C_X2Ftable_X3E_X3Cp_X3E_X3C_X2Fp_X3E), + /* K29 */ be_nested_str_weak(_X3Cbutton_X20name_X3D_X27config_X27_X20class_X3D_X27button_X20bgrn_X27_X3EChange_X20configuration_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E), + /* K30 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E_X3C_X2Ffieldset_X3E_X3Cp_X3E_X3C_X2Fp_X3E), + }), + be_str_weak(show_plugins_configuration), + &be_const_str_solidified, + ( &(const binstruction[135]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0x8C0C0302, // 0002 GETMET R3 R1 K2 + 0x58140003, // 0003 LDCONST R5 K3 + 0x7C0C0400, // 0004 CALL R3 2 + 0x8C0C0302, // 0005 GETMET R3 R1 K2 + 0x58140004, // 0006 LDCONST R5 K4 + 0x7C0C0400, // 0007 CALL R3 2 + 0x8C0C0302, // 0008 GETMET R3 R1 K2 + 0x58140005, // 0009 LDCONST R5 K5 + 0x7C0C0400, // 000A CALL R3 2 + 0x8C0C0302, // 000B GETMET R3 R1 K2 + 0x58140006, // 000C LDCONST R5 K6 + 0x7C0C0400, // 000D CALL R3 2 + 0x8C0C0302, // 000E GETMET R3 R1 K2 + 0x58140004, // 000F LDCONST R5 K4 + 0x7C0C0400, // 0010 CALL R3 2 + 0x8C0C0302, // 0011 GETMET R3 R1 K2 + 0x58140007, // 0012 LDCONST R5 K7 + 0x7C0C0400, // 0013 CALL R3 2 + 0x8C0C0302, // 0014 GETMET R3 R1 K2 + 0x58140008, // 0015 LDCONST R5 K8 + 0x7C0C0400, // 0016 CALL R3 2 + 0x8C0C0302, // 0017 GETMET R3 R1 K2 + 0x58140009, // 0018 LDCONST R5 K9 + 0x7C0C0400, // 0019 CALL R3 2 + 0x880C010A, // 001A GETMBR R3 R0 K10 + 0x8C0C070B, // 001B GETMET R3 R3 K11 + 0x8814010A, // 001C GETMBR R5 R0 K10 + 0x88140B0C, // 001D GETMBR R5 R5 K12 + 0x7C0C0400, // 001E CALL R3 2 + 0x5810000D, // 001F LDCONST R4 K13 + 0x6014000C, // 0020 GETGBL R5 G12 + 0x5C180600, // 0021 MOVE R6 R3 + 0x7C140200, // 0022 CALL R5 1 + 0x14140805, // 0023 LT R5 R4 R5 + 0x7816003D, // 0024 JMPF R5 #0063 + 0x94140604, // 0025 GETIDX R5 R3 R4 + 0x8818010A, // 0026 GETMBR R6 R0 K10 + 0x601C0008, // 0027 GETGBL R7 G8 + 0x5C200A00, // 0028 MOVE R8 R5 + 0x7C1C0200, // 0029 CALL R7 1 + 0x88180D0C, // 002A GETMBR R6 R6 K12 + 0x94180C07, // 002B GETIDX R6 R6 R7 + 0x8C200D0E, // 002C GETMET R8 R6 K14 + 0x5828000F, // 002D LDCONST R10 K15 + 0x7C200400, // 002E CALL R8 2 + 0x5C1C1000, // 002F MOVE R7 R8 + 0x5C200E00, // 0030 MOVE R8 R7 + 0x74220000, // 0031 JMPT R8 #0033 + 0x7001FFEC, // 0032 JMP #0020 + 0x8820010A, // 0033 GETMBR R8 R0 K10 + 0x8C201110, // 0034 GETMET R8 R8 K16 + 0x5C280E00, // 0035 MOVE R10 R7 + 0x7C200400, // 0036 CALL R8 2 + 0x78220006, // 0037 JMPF R8 #003F + 0x60240008, // 0038 GETGBL R9 G8 + 0x8C280D0E, // 0039 GETMET R10 R6 K14 + 0x5C301000, // 003A MOVE R12 R8 + 0x58340011, // 003B LDCONST R13 K17 + 0x7C280600, // 003C CALL R10 3 + 0x7C240200, // 003D CALL R9 1 + 0x70020000, // 003E JMP #0040 + 0x58240011, // 003F LDCONST R9 K17 + 0x8C280302, // 0040 GETMET R10 R1 K2 + 0x8C300512, // 0041 GETMET R12 R2 K18 + 0x58380013, // 0042 LDCONST R14 K19 + 0x5C3C0800, // 0043 MOVE R15 R4 + 0x5C400A00, // 0044 MOVE R16 R5 + 0x7C300800, // 0045 CALL R12 4 + 0x7C280400, // 0046 CALL R10 2 + 0x8C280302, // 0047 GETMET R10 R1 K2 + 0x8C300512, // 0048 GETMET R12 R2 K18 + 0x58380014, // 0049 LDCONST R14 K20 + 0x5C3C0800, // 004A MOVE R15 R4 + 0x7C300600, // 004B CALL R12 3 + 0x7C280400, // 004C CALL R10 2 + 0x8C280115, // 004D GETMET R10 R0 K21 + 0x8C300D0E, // 004E GETMET R12 R6 K14 + 0x5838000F, // 004F LDCONST R14 K15 + 0x583C0011, // 0050 LDCONST R15 K17 + 0x7C300600, // 0051 CALL R12 3 + 0x7C280400, // 0052 CALL R10 2 + 0x8C280302, // 0053 GETMET R10 R1 K2 + 0x8C300512, // 0054 GETMET R12 R2 K18 + 0x58380016, // 0055 LDCONST R14 K22 + 0x7C300400, // 0056 CALL R12 2 + 0x7C280400, // 0057 CALL R10 2 + 0x8C280302, // 0058 GETMET R10 R1 K2 + 0x8C300512, // 0059 GETMET R12 R2 K18 + 0x58380017, // 005A LDCONST R14 K23 + 0x5C3C0800, // 005B MOVE R15 R4 + 0x8C400318, // 005C GETMET R16 R1 K24 + 0x5C481200, // 005D MOVE R18 R9 + 0x7C400400, // 005E CALL R16 2 + 0x7C300800, // 005F CALL R12 4 + 0x7C280400, // 0060 CALL R10 2 + 0x00100919, // 0061 ADD R4 R4 K25 + 0x7001FFBC, // 0062 JMP #0020 + 0x8C140302, // 0063 GETMET R5 R1 K2 + 0x8C1C0512, // 0064 GETMET R7 R2 K18 + 0x5824001A, // 0065 LDCONST R9 K26 + 0x5C280800, // 0066 MOVE R10 R4 + 0x7C1C0600, // 0067 CALL R7 3 + 0x7C140400, // 0068 CALL R5 2 + 0x8C140302, // 0069 GETMET R5 R1 K2 + 0x8C1C0512, // 006A GETMET R7 R2 K18 + 0x58240014, // 006B LDCONST R9 K20 + 0x5C280800, // 006C MOVE R10 R4 + 0x7C1C0600, // 006D CALL R7 3 + 0x7C140400, // 006E CALL R5 2 + 0x8C140115, // 006F GETMET R5 R0 K21 + 0x581C0011, // 0070 LDCONST R7 K17 + 0x7C140400, // 0071 CALL R5 2 + 0x8C140302, // 0072 GETMET R5 R1 K2 + 0x8C1C0512, // 0073 GETMET R7 R2 K18 + 0x58240016, // 0074 LDCONST R9 K22 + 0x7C1C0400, // 0075 CALL R7 2 + 0x7C140400, // 0076 CALL R5 2 + 0x8C140302, // 0077 GETMET R5 R1 K2 + 0x8C1C0512, // 0078 GETMET R7 R2 K18 + 0x5824001B, // 0079 LDCONST R9 K27 + 0x5C280800, // 007A MOVE R10 R4 + 0x7C1C0600, // 007B CALL R7 3 + 0x7C140400, // 007C CALL R5 2 + 0x8C140302, // 007D GETMET R5 R1 K2 + 0x581C001C, // 007E LDCONST R7 K28 + 0x7C140400, // 007F CALL R5 2 + 0x8C140302, // 0080 GETMET R5 R1 K2 + 0x581C001D, // 0081 LDCONST R7 K29 + 0x7C140400, // 0082 CALL R5 2 + 0x8C140302, // 0083 GETMET R5 R1 K2 + 0x581C001E, // 0084 LDCONST R7 K30 + 0x7C140400, // 0085 CALL R5 2 + 0x80000000, // 0086 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: plugin_option +********************************************************************/ +be_local_closure(Matter_UI_plugin_option, /* name */ + be_nested_proto( + 16, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[15]) { /* constants */ + /* K0 */ be_nested_str_weak(webserver), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(split), + /* K3 */ be_nested_str_weak(_CLASSES_TYPES), + /* K4 */ be_nested_str_weak(_X7C), + /* K5 */ be_const_int(0), + /* K6 */ be_nested_str_weak(content_send), + /* K7 */ be_nested_str_weak(_X3Coption_X20value_X3D_X27_X27_X3E_X3C_X2Foption_X3E), + /* K8 */ be_nested_str_weak(device), + /* K9 */ be_nested_str_weak(get_plugin_class_displayname), + /* K10 */ be_nested_str_weak(format), + /* K11 */ be_nested_str_weak(_X3Coption_X20value_X3D_X27_X25s_X27_X25s_X3E_X25s_X3C_X2Foption_X3E), + /* K12 */ be_nested_str_weak(_X20selected), + /* K13 */ be_nested_str_weak(), + /* K14 */ be_const_int(1), + }), + be_str_weak(plugin_option), + &be_const_str_solidified, + ( &(const binstruction[35]) { /* code */ 0xA40A0000, // 0000 IMPORT R2 K0 0xA40E0200, // 0001 IMPORT R3 K1 - 0x8C100502, // 0002 GETMET R4 R2 K2 - 0x58180003, // 0003 LDCONST R6 K3 - 0x7C100400, // 0004 CALL R4 2 - 0x8C100502, // 0005 GETMET R4 R2 K2 - 0x58180004, // 0006 LDCONST R6 K4 - 0x7C100400, // 0007 CALL R4 2 - 0x6010000C, // 0008 GETGBL R4 G12 - 0x88140105, // 0009 GETMBR R5 R0 K5 - 0x88140B06, // 000A GETMBR R5 R5 K6 - 0x88140B06, // 000B GETMBR R5 R5 K6 - 0x7C100200, // 000C CALL R4 1 - 0x1C100907, // 000D EQ R4 R4 K7 - 0x78120003, // 000E JMPF R4 #0013 - 0x8C100502, // 000F GETMET R4 R2 K2 - 0x58180008, // 0010 LDCONST R6 K8 - 0x7C100400, // 0011 CALL R4 2 - 0x7002004E, // 0012 JMP #0062 - 0x50100200, // 0013 LDBOOL R4 1 0 - 0x60140010, // 0014 GETGBL R5 G16 - 0x88180105, // 0015 GETMBR R6 R0 K5 - 0x88180D06, // 0016 GETMBR R6 R6 K6 - 0x88180D09, // 0017 GETMBR R6 R6 K9 - 0x8C180D0A, // 0018 GETMET R6 R6 K10 - 0x7C180200, // 0019 CALL R6 1 - 0x7C140200, // 001A CALL R5 1 - 0xA8020042, // 001B EXBLK 0 #005F - 0x5C180A00, // 001C MOVE R6 R5 - 0x7C180000, // 001D CALL R6 0 - 0x5C1C0800, // 001E MOVE R7 R4 - 0x741E0002, // 001F JMPT R7 #0023 - 0x8C1C0502, // 0020 GETMET R7 R2 K2 - 0x5824000B, // 0021 LDCONST R9 K11 - 0x7C1C0400, // 0022 CALL R7 2 - 0x50100000, // 0023 LDBOOL R4 0 0 - 0x881C0D0C, // 0024 GETMBR R7 R6 K12 - 0x5C200E00, // 0025 MOVE R8 R7 - 0x74220000, // 0026 JMPT R8 #0028 - 0x581C000D, // 0027 LDCONST R7 K13 - 0x8C20050E, // 0028 GETMET R8 R2 K14 - 0x5C280E00, // 0029 MOVE R10 R7 - 0x7C200400, // 002A CALL R8 2 - 0x5C1C1000, // 002B MOVE R7 R8 - 0x8C200502, // 002C GETMET R8 R2 K2 - 0x8C28070F, // 002D GETMET R10 R3 K15 - 0x58300010, // 002E LDCONST R12 K16 - 0x8C340D11, // 002F GETMET R13 R6 K17 - 0x7C340200, // 0030 CALL R13 1 - 0x5C380E00, // 0031 MOVE R14 R7 - 0x7C280800, // 0032 CALL R10 4 - 0x7C200400, // 0033 CALL R8 2 - 0x8C200D12, // 0034 GETMET R8 R6 K18 - 0x7C200200, // 0035 CALL R8 1 - 0x8C201113, // 0036 GETMET R8 R8 K19 - 0x7C200200, // 0037 CALL R8 1 - 0x8C201114, // 0038 GETMET R8 R8 K20 - 0x7C200200, // 0039 CALL R8 1 - 0x8C240D15, // 003A GETMET R9 R6 K21 - 0x7C240200, // 003B CALL R9 1 - 0x8C241313, // 003C GETMET R9 R9 K19 - 0x7C240200, // 003D CALL R9 1 - 0x8C241314, // 003E GETMET R9 R9 K20 - 0x7C240200, // 003F CALL R9 1 - 0x8C280502, // 0040 GETMET R10 R2 K2 - 0x8C30070F, // 0041 GETMET R12 R3 K15 - 0x58380016, // 0042 LDCONST R14 K22 - 0x8C3C1117, // 0043 GETMET R15 R8 K23 - 0x7C3C0200, // 0044 CALL R15 1 - 0x7C300600, // 0045 CALL R12 3 - 0x7C280400, // 0046 CALL R10 2 - 0x8C280502, // 0047 GETMET R10 R2 K2 - 0x8C30070F, // 0048 GETMET R12 R3 K15 - 0x58380018, // 0049 LDCONST R14 K24 - 0x8C3C1317, // 004A GETMET R15 R9 K23 - 0x7C3C0200, // 004B CALL R15 1 - 0x7C300600, // 004C CALL R12 3 - 0x7C280400, // 004D CALL R10 2 - 0x8C280502, // 004E GETMET R10 R2 K2 - 0x58300019, // 004F LDCONST R12 K25 - 0x7C280400, // 0050 CALL R10 2 - 0x8C280502, // 0051 GETMET R10 R2 K2 - 0x8C30070F, // 0052 GETMET R12 R3 K15 - 0x5838001A, // 0053 LDCONST R14 K26 - 0x8C3C0D11, // 0054 GETMET R15 R6 K17 - 0x7C3C0200, // 0055 CALL R15 1 - 0x7C300600, // 0056 CALL R12 3 - 0x7C280400, // 0057 CALL R10 2 - 0x8C280502, // 0058 GETMET R10 R2 K2 - 0x5830001B, // 0059 LDCONST R12 K27 - 0x7C280400, // 005A CALL R10 2 - 0x8C280502, // 005B GETMET R10 R2 K2 - 0x5830001C, // 005C LDCONST R12 K28 - 0x7C280400, // 005D CALL R10 2 - 0x7001FFBC, // 005E JMP #001C - 0x5814001D, // 005F LDCONST R5 K29 - 0xAC140200, // 0060 CATCH R5 1 0 - 0xB0080000, // 0061 RAISE 2 R0 R0 - 0x8C100502, // 0062 GETMET R4 R2 K2 - 0x5818001C, // 0063 LDCONST R6 K28 - 0x7C100400, // 0064 CALL R4 2 - 0x80000000, // 0065 RET 0 + 0x8C100702, // 0002 GETMET R4 R3 K2 + 0x88180103, // 0003 GETMBR R6 R0 K3 + 0x581C0004, // 0004 LDCONST R7 K4 + 0x7C100600, // 0005 CALL R4 3 + 0x58140005, // 0006 LDCONST R5 K5 + 0x8C180506, // 0007 GETMET R6 R2 K6 + 0x58200007, // 0008 LDCONST R8 K7 + 0x7C180400, // 0009 CALL R6 2 + 0x6018000C, // 000A GETGBL R6 G12 + 0x5C1C0800, // 000B MOVE R7 R4 + 0x7C180200, // 000C CALL R6 1 + 0x14180A06, // 000D LT R6 R5 R6 + 0x781A0012, // 000E JMPF R6 #0022 + 0x94180805, // 000F GETIDX R6 R4 R5 + 0x881C0108, // 0010 GETMBR R7 R0 K8 + 0x8C1C0F09, // 0011 GETMET R7 R7 K9 + 0x5C240C00, // 0012 MOVE R9 R6 + 0x7C1C0400, // 0013 CALL R7 2 + 0x8C200506, // 0014 GETMET R8 R2 K6 + 0x8C28070A, // 0015 GETMET R10 R3 K10 + 0x5830000B, // 0016 LDCONST R12 K11 + 0x5C340C00, // 0017 MOVE R13 R6 + 0x1C380C01, // 0018 EQ R14 R6 R1 + 0x783A0001, // 0019 JMPF R14 #001C + 0x5838000C, // 001A LDCONST R14 K12 + 0x70020000, // 001B JMP #001D + 0x5838000D, // 001C LDCONST R14 K13 + 0x5C3C0E00, // 001D MOVE R15 R7 + 0x7C280A00, // 001E CALL R10 5 + 0x7C200400, // 001F CALL R8 2 + 0x00140B0E, // 0020 ADD R5 R5 K14 + 0x7001FFE7, // 0021 JMP #000A + 0x80000000, // 0022 RET 0 }) ) ); @@ -283,279 +1473,6 @@ be_local_closure(Matter_UI_web_sensor, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: web_get_arg -********************************************************************/ -be_local_closure(Matter_UI_web_get_arg, /* name */ - be_nested_proto( - 5, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 7]) { /* constants */ - /* K0 */ be_nested_str_weak(webserver), - /* K1 */ be_nested_str_weak(has_arg), - /* K2 */ be_nested_str_weak(mtc0), - /* K3 */ be_nested_str_weak(device), - /* K4 */ be_nested_str_weak(stop_basic_commissioning), - /* K5 */ be_nested_str_weak(mtc1), - /* K6 */ be_nested_str_weak(start_root_basic_commissioning), - }), - be_str_weak(web_get_arg), - &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x8C080301, // 0001 GETMET R2 R1 K1 - 0x58100002, // 0002 LDCONST R4 K2 - 0x7C080400, // 0003 CALL R2 2 - 0x780A0003, // 0004 JMPF R2 #0009 - 0x88080103, // 0005 GETMBR R2 R0 K3 - 0x8C080504, // 0006 GETMET R2 R2 K4 - 0x7C080200, // 0007 CALL R2 1 - 0x70020006, // 0008 JMP #0010 - 0x8C080301, // 0009 GETMET R2 R1 K1 - 0x58100005, // 000A LDCONST R4 K5 - 0x7C080400, // 000B CALL R2 2 - 0x780A0002, // 000C JMPF R2 #0010 - 0x88080103, // 000D GETMBR R2 R0 K3 - 0x8C080506, // 000E GETMET R2 R2 K6 - 0x7C080200, // 000F CALL R2 1 - 0x80000000, // 0010 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: page_part_mgr -********************************************************************/ -be_local_closure(Matter_UI_page_part_mgr, /* 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[12]) { /* constants */ - /* K0 */ be_nested_str_weak(webserver), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(check_privileged_access), - /* K3 */ be_nested_str_weak(content_start), - /* K4 */ be_nested_str_weak(Matter), - /* K5 */ be_nested_str_weak(content_send_style), - /* K6 */ be_nested_str_weak(show_enable), - /* K7 */ be_nested_str_weak(show_passcode_form), - /* K8 */ be_nested_str_weak(show_fabric_info), - /* K9 */ be_nested_str_weak(content_button), - /* K10 */ be_nested_str_weak(BUTTON_CONFIGURATION), - /* K11 */ be_nested_str_weak(content_stop), - }), - be_str_weak(page_part_mgr), - &be_const_str_solidified, - ( &(const binstruction[25]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0x8C0C0302, // 0002 GETMET R3 R1 K2 - 0x7C0C0200, // 0003 CALL R3 1 - 0x740E0001, // 0004 JMPT R3 #0007 - 0x4C0C0000, // 0005 LDNIL R3 - 0x80040600, // 0006 RET 1 R3 - 0x8C0C0303, // 0007 GETMET R3 R1 K3 - 0x58140004, // 0008 LDCONST R5 K4 - 0x7C0C0400, // 0009 CALL R3 2 - 0x8C0C0305, // 000A GETMET R3 R1 K5 - 0x7C0C0200, // 000B CALL R3 1 - 0x8C0C0106, // 000C GETMET R3 R0 K6 - 0x7C0C0200, // 000D CALL R3 1 - 0x780E0003, // 000E JMPF R3 #0013 - 0x8C0C0107, // 000F GETMET R3 R0 K7 - 0x7C0C0200, // 0010 CALL R3 1 - 0x8C0C0108, // 0011 GETMET R3 R0 K8 - 0x7C0C0200, // 0012 CALL R3 1 - 0x8C0C0309, // 0013 GETMET R3 R1 K9 - 0x8814030A, // 0014 GETMBR R5 R1 K10 - 0x7C0C0400, // 0015 CALL R3 2 - 0x8C0C030B, // 0016 GETMET R3 R1 K11 - 0x7C0C0200, // 0017 CALL R3 1 - 0x80000000, // 0018 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: web_add_config_button -********************************************************************/ -be_local_closure(Matter_UI_web_add_config_button, /* name */ - be_nested_proto( - 5, /* 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(webserver), - /* K1 */ be_nested_str_weak(content_send), - /* K2 */ be_nested_str_weak(_X3Cp_X3E_X3Cform_X20id_X3Dac_X20action_X3D_X27matterc_X27_X20style_X3D_X27display_X3A_X20block_X3B_X27_X20method_X3D_X27get_X27_X3E_X3Cbutton_X3E), - /* K3 */ be_nested_str_weak(matter), - /* K4 */ be_nested_str_weak(_LOGO), - /* K5 */ be_nested_str_weak(_X20Configure_X20Matter_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E_X3C_X2Fp_X3E), - }), - be_str_weak(web_add_config_button), - &be_const_str_solidified, - ( &(const binstruction[12]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x8C080301, // 0001 GETMET R2 R1 K1 - 0x58100002, // 0002 LDCONST R4 K2 - 0x7C080400, // 0003 CALL R2 2 - 0x8C080301, // 0004 GETMET R2 R1 K1 - 0xB8120600, // 0005 GETNGBL R4 K3 - 0x88100904, // 0006 GETMBR R4 R4 K4 - 0x7C080400, // 0007 CALL R2 2 - 0x8C080301, // 0008 GETMET R2 R1 K1 - 0x58100005, // 0009 LDCONST R4 K5 - 0x7C080400, // 000A CALL R2 2 - 0x80000000, // 000B RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(Matter_UI_init, /* name */ - be_nested_proto( - 5, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str_weak(device), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(add_driver), - }), - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x90020001, // 0000 SETMBR R0 K0 R1 - 0xB80A0200, // 0001 GETNGBL R2 K1 - 0x8C080502, // 0002 GETMET R2 R2 K2 - 0x5C100000, // 0003 MOVE R4 R0 - 0x7C080400, // 0004 CALL R2 2 - 0x80000000, // 0005 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: web_add_handler -********************************************************************/ -be_local_closure(Matter_UI_web_add_handler, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 2]) { - 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(page_part_mgr), - }), - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x7C000200, // 0002 CALL R0 1 - 0x80040000, // 0003 RET 1 R0 - }) - ), - 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(page_part_ctl), - }), - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x7C000200, // 0002 CALL R0 1 - 0x80040000, // 0003 RET 1 R0 - }) - ), - }), - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(webserver), - /* K1 */ be_nested_str_weak(on), - /* K2 */ be_nested_str_weak(_X2Fmatterc), - /* K3 */ be_nested_str_weak(HTTP_GET), - /* K4 */ be_nested_str_weak(HTTP_POST), - }), - be_str_weak(web_add_handler), - &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x8C080301, // 0001 GETMET R2 R1 K1 - 0x58100002, // 0002 LDCONST R4 K2 - 0x84140000, // 0003 CLOSURE R5 P0 - 0x88180303, // 0004 GETMBR R6 R1 K3 - 0x7C080800, // 0005 CALL R2 4 - 0x8C080301, // 0006 GETMET R2 R1 K1 - 0x58100002, // 0007 LDCONST R4 K2 - 0x84140001, // 0008 CLOSURE R5 P1 - 0x88180304, // 0009 GETMBR R6 R1 K4 - 0x7C080800, // 000A CALL R2 4 - 0xA0000000, // 000B CLOSE R0 - 0x80000000, // 000C RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: show_qrcode ********************************************************************/ @@ -723,514 +1640,88 @@ be_local_closure(Matter_UI_show_qrcode, /* name */ /******************************************************************** -** Solidified function: show_passcode_form +** Solidified function: web_add_handler ********************************************************************/ -be_local_closure(Matter_UI_show_passcode_form, /* name */ +be_local_closure(Matter_UI_web_add_handler, /* name */ be_nested_proto( - 9, /* nstack */ + 7, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[19]) { /* constants */ - /* K0 */ be_nested_str_weak(webserver), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(content_send), - /* K3 */ be_nested_str_weak(_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3BMatter_X20Passcode_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E), - /* K4 */ be_nested_str_weak(_X3Cform_X20action_X3D_X27_X2Fmatterc_X27_X20method_X3D_X27post_X27_X20_X3E), - /* K5 */ be_nested_str_weak(_X3Cp_X3EPasscode_X3A_X3C_X2Fp_X3E), - /* K6 */ be_nested_str_weak(format), - /* K7 */ be_nested_str_weak(_X3Cinput_X20type_X3D_X27number_X27_X20min_X3D_X271_X27_X20max_X3D_X2799999998_X27_X20name_X3D_X27passcode_X27_X20value_X3D_X27_X25i_X27_X3E), - /* K8 */ be_nested_str_weak(device), - /* K9 */ be_nested_str_weak(root_passcode), - /* K10 */ be_nested_str_weak(_X3Cp_X3EDistinguish_X20id_X3A_X3C_X2Fp_X3E), - /* K11 */ be_nested_str_weak(_X3Cinput_X20type_X3D_X27number_X27_X20min_X3D_X270_X27_X20max_X3D_X274095_X27_X20name_X3D_X27discriminator_X27_X20value_X3D_X27_X25i_X27_X3E), - /* K12 */ be_nested_str_weak(root_discriminator), - /* K13 */ be_nested_str_weak(_X3Cp_X3E_X3Cinput_X20type_X3D_X27checkbox_X27_X20name_X3D_X27ipv4_X27_X25s_X3EIPv4_X20only_X3C_X2Fp_X3E), - /* K14 */ be_nested_str_weak(ipv4only), - /* K15 */ be_nested_str_weak(_X20checked), - /* K16 */ be_nested_str_weak(), - /* K17 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E_X3Cbutton_X20name_X3D_X27passcode_X27_X20class_X3D_X27button_X20bgrn_X27_X3EChange_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E_X3C_X2Fp_X3E), - /* K18 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E_X3C_X2Ffieldset_X3E_X3Cp_X3E_X3C_X2Fp_X3E), + 1, /* has sup protos */ + ( &(const struct bproto*[ 2]) { + 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(page_part_mgr), + }), + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x7C000200, // 0002 CALL R0 1 + 0x80040000, // 0003 RET 1 R0 + }) + ), + 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(page_part_ctl), + }), + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x7C000200, // 0002 CALL R0 1 + 0x80040000, // 0003 RET 1 R0 + }) + ), }), - be_str_weak(show_passcode_form), - &be_const_str_solidified, - ( &(const binstruction[46]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0x8C0C0302, // 0002 GETMET R3 R1 K2 - 0x58140003, // 0003 LDCONST R5 K3 - 0x7C0C0400, // 0004 CALL R3 2 - 0x8C0C0302, // 0005 GETMET R3 R1 K2 - 0x58140004, // 0006 LDCONST R5 K4 - 0x7C0C0400, // 0007 CALL R3 2 - 0x8C0C0302, // 0008 GETMET R3 R1 K2 - 0x58140005, // 0009 LDCONST R5 K5 - 0x7C0C0400, // 000A CALL R3 2 - 0x8C0C0302, // 000B GETMET R3 R1 K2 - 0x8C140506, // 000C GETMET R5 R2 K6 - 0x581C0007, // 000D LDCONST R7 K7 - 0x88200108, // 000E GETMBR R8 R0 K8 - 0x88201109, // 000F GETMBR R8 R8 K9 - 0x7C140600, // 0010 CALL R5 3 - 0x7C0C0400, // 0011 CALL R3 2 - 0x8C0C0302, // 0012 GETMET R3 R1 K2 - 0x5814000A, // 0013 LDCONST R5 K10 - 0x7C0C0400, // 0014 CALL R3 2 - 0x8C0C0302, // 0015 GETMET R3 R1 K2 - 0x8C140506, // 0016 GETMET R5 R2 K6 - 0x581C000B, // 0017 LDCONST R7 K11 - 0x88200108, // 0018 GETMBR R8 R0 K8 - 0x8820110C, // 0019 GETMBR R8 R8 K12 - 0x7C140600, // 001A CALL R5 3 - 0x7C0C0400, // 001B CALL R3 2 - 0x8C0C0302, // 001C GETMET R3 R1 K2 - 0x8C140506, // 001D GETMET R5 R2 K6 - 0x581C000D, // 001E LDCONST R7 K13 - 0x88200108, // 001F GETMBR R8 R0 K8 - 0x8820110E, // 0020 GETMBR R8 R8 K14 - 0x78220001, // 0021 JMPF R8 #0024 - 0x5820000F, // 0022 LDCONST R8 K15 - 0x70020000, // 0023 JMP #0025 - 0x58200010, // 0024 LDCONST R8 K16 - 0x7C140600, // 0025 CALL R5 3 - 0x7C0C0400, // 0026 CALL R3 2 - 0x8C0C0302, // 0027 GETMET R3 R1 K2 - 0x58140011, // 0028 LDCONST R5 K17 - 0x7C0C0400, // 0029 CALL R3 2 - 0x8C0C0302, // 002A GETMET R3 R1 K2 - 0x58140012, // 002B LDCONST R5 K18 - 0x7C0C0400, // 002C CALL R3 2 - 0x80000000, // 002D RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: show_enable -********************************************************************/ -be_local_closure(Matter_UI_show_enable, /* name */ - be_nested_proto( - 11, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[20]) { /* constants */ + ( &(const bvalue[ 5]) { /* constants */ /* K0 */ be_nested_str_weak(webserver), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(tasmota), - /* K3 */ be_nested_str_weak(get_option), - /* K4 */ be_nested_str_weak(matter), - /* K5 */ be_nested_str_weak(MATTER_OPTION), - /* K6 */ be_nested_str_weak(content_send), - /* K7 */ be_nested_str_weak(format), - /* K8 */ be_nested_str_weak(_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3BMatter_X20_X25s_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E), - /* K9 */ be_nested_str_weak(Enabled), - /* K10 */ be_nested_str_weak(Disabled), - /* K11 */ be_nested_str_weak(_X3Cp_X20style_X3D_X27width_X3A320px_X3B_X27_X3EMatter_X20support_X20is_X20experimental_X2E_X3C_X2Fp_X3E), - /* K12 */ be_nested_str_weak(_X3Cform_X20action_X3D_X27_X2Fmatterc_X27_X20method_X3D_X27post_X27_X20onsubmit_X3D_X27return_X20confirm_X28_X22This_X20will_X20cause_X20a_X20restart_X2E_X22_X29_X3B_X27_X3E), - /* K13 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E_X3Cbutton_X20name_X3D_X27_X25s_X27_X20class_X3D_X27button_X20bgrn_X27_X3E), - /* K14 */ be_nested_str_weak(disable), - /* K15 */ be_nested_str_weak(enable), - /* K16 */ be_nested_str_weak(Disable), - /* K17 */ be_nested_str_weak(Enable), - /* K18 */ be_nested_str_weak(_X20Matter_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E_X3C_X2Fp_X3E), - /* K19 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E_X3C_X2Ffieldset_X3E_X3Cp_X3E_X3C_X2Fp_X3E), + /* K1 */ be_nested_str_weak(on), + /* K2 */ be_nested_str_weak(_X2Fmatterc), + /* K3 */ be_nested_str_weak(HTTP_GET), + /* K4 */ be_nested_str_weak(HTTP_POST), }), - be_str_weak(show_enable), + be_str_weak(web_add_handler), &be_const_str_solidified, - ( &(const binstruction[44]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0xA40E0200, // 0001 IMPORT R3 K1 - 0xB8120400, // 0002 GETNGBL R4 K2 - 0x8C100903, // 0003 GETMET R4 R4 K3 - 0xB81A0800, // 0004 GETNGBL R6 K4 - 0x88180D05, // 0005 GETMBR R6 R6 K5 - 0x7C100400, // 0006 CALL R4 2 - 0x8C140506, // 0007 GETMET R5 R2 K6 - 0x8C1C0707, // 0008 GETMET R7 R3 K7 - 0x58240008, // 0009 LDCONST R9 K8 - 0x78120001, // 000A JMPF R4 #000D - 0x58280009, // 000B LDCONST R10 K9 - 0x70020000, // 000C JMP #000E - 0x5828000A, // 000D LDCONST R10 K10 - 0x7C1C0600, // 000E CALL R7 3 - 0x7C140400, // 000F CALL R5 2 - 0x8C140506, // 0010 GETMET R5 R2 K6 - 0x581C000B, // 0011 LDCONST R7 K11 - 0x7C140400, // 0012 CALL R5 2 - 0x8C140506, // 0013 GETMET R5 R2 K6 - 0x581C000C, // 0014 LDCONST R7 K12 - 0x7C140400, // 0015 CALL R5 2 - 0x8C140506, // 0016 GETMET R5 R2 K6 - 0x8C1C0707, // 0017 GETMET R7 R3 K7 - 0x5824000D, // 0018 LDCONST R9 K13 - 0x78120001, // 0019 JMPF R4 #001C - 0x5828000E, // 001A LDCONST R10 K14 - 0x70020000, // 001B JMP #001D - 0x5828000F, // 001C LDCONST R10 K15 - 0x7C1C0600, // 001D CALL R7 3 - 0x7C140400, // 001E CALL R5 2 - 0x8C140506, // 001F GETMET R5 R2 K6 - 0x78120001, // 0020 JMPF R4 #0023 - 0x581C0010, // 0021 LDCONST R7 K16 - 0x70020000, // 0022 JMP #0024 - 0x581C0011, // 0023 LDCONST R7 K17 - 0x7C140400, // 0024 CALL R5 2 - 0x8C140506, // 0025 GETMET R5 R2 K6 - 0x581C0012, // 0026 LDCONST R7 K18 - 0x7C140400, // 0027 CALL R5 2 - 0x8C140506, // 0028 GETMET R5 R2 K6 - 0x581C0013, // 0029 LDCONST R7 K19 - 0x7C140400, // 002A CALL R5 2 - 0x80040800, // 002B RET 1 R4 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: show_commissioning_info -********************************************************************/ -be_local_closure(Matter_UI_show_commissioning_info, /* name */ - be_nested_proto( - 14, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[20]) { /* constants */ - /* K0 */ be_nested_str_weak(webserver), - /* K1 */ be_nested_str_weak(string), - /* K2 */ be_nested_str_weak(device), - /* K3 */ be_nested_str_weak(commissioning_open), - /* K4 */ be_nested_str_weak(tasmota), - /* K5 */ be_nested_str_weak(millis), - /* K6 */ be_const_int(0), - /* K7 */ be_nested_str_weak(content_send), - /* K8 */ be_nested_str_weak(format), - /* K9 */ be_nested_str_weak(_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3BCommissioning_X20open_X20for_X20_X25i_X20min_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E), - /* K10 */ be_nested_str_weak(compute_manual_pairing_code), - /* K11 */ be_nested_str_weak(_X3Cp_X3EManual_X20pairing_X20code_X3A_X3Cbr_X3E_X3Cb_X3E_X25s_X2D_X25s_X2D_X25s_X3C_X2Fb_X3E_X3C_X2Fp_X3E_X3Chr_X3E), - /* K12 */ be_const_int(3), - /* K13 */ be_const_int(2147483647), - /* K14 */ be_nested_str_weak(_X3Cdiv_X3E_X3Ccenter_X3E), - /* K15 */ be_nested_str_weak(compute_qrcode_content), - /* K16 */ be_nested_str_weak(show_qrcode), - /* K17 */ be_nested_str_weak(_X3Cp_X3E_X20_X25s_X3C_X2Fp_X3E), - /* K18 */ be_nested_str_weak(_X3C_X2Fdiv_X3E), - /* K19 */ be_nested_str_weak(_X3Cp_X3E_X3C_X2Fp_X3E_X3C_X2Ffieldset_X3E_X3Cp_X3E_X3C_X2Fp_X3E), - }), - be_str_weak(show_commissioning_info), - &be_const_str_solidified, - ( &(const binstruction[66]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0x880C0102, // 0002 GETMBR R3 R0 K2 - 0x880C0703, // 0003 GETMBR R3 R3 K3 - 0xB8120800, // 0004 GETNGBL R4 K4 - 0x8C100905, // 0005 GETMET R4 R4 K5 - 0x7C100200, // 0006 CALL R4 1 - 0x040C0604, // 0007 SUB R3 R3 R4 - 0x541203E7, // 0008 LDINT R4 1000 - 0x0C0C0604, // 0009 DIV R3 R3 R4 - 0x14100706, // 000A LT R4 R3 K6 - 0x78120000, // 000B JMPF R4 #000D - 0x580C0006, // 000C LDCONST R3 K6 - 0x5412001D, // 000D LDINT R4 30 - 0x00100604, // 000E ADD R4 R3 R4 - 0x5416003B, // 000F LDINT R5 60 - 0x0C100805, // 0010 DIV R4 R4 R5 - 0x8C140307, // 0011 GETMET R5 R1 K7 - 0x8C1C0508, // 0012 GETMET R7 R2 K8 - 0x58240009, // 0013 LDCONST R9 K9 - 0x5C280800, // 0014 MOVE R10 R4 - 0x7C1C0600, // 0015 CALL R7 3 - 0x7C140400, // 0016 CALL R5 2 - 0x88140102, // 0017 GETMBR R5 R0 K2 - 0x8C140B0A, // 0018 GETMET R5 R5 K10 - 0x7C140200, // 0019 CALL R5 1 - 0x8C180307, // 001A GETMET R6 R1 K7 - 0x8C200508, // 001B GETMET R8 R2 K8 - 0x5828000B, // 001C LDCONST R10 K11 - 0x402E0D0C, // 001D CONNECT R11 K6 K12 - 0x942C0A0B, // 001E GETIDX R11 R5 R11 - 0x54320003, // 001F LDINT R12 4 - 0x54360005, // 0020 LDINT R13 6 - 0x4030180D, // 0021 CONNECT R12 R12 R13 - 0x94300A0C, // 0022 GETIDX R12 R5 R12 - 0x54360006, // 0023 LDINT R13 7 - 0x40341B0D, // 0024 CONNECT R13 R13 K13 - 0x94340A0D, // 0025 GETIDX R13 R5 R13 - 0x7C200A00, // 0026 CALL R8 5 - 0x7C180400, // 0027 CALL R6 2 - 0x8C180307, // 0028 GETMET R6 R1 K7 - 0x8C200508, // 0029 GETMET R8 R2 K8 - 0x5828000E, // 002A LDCONST R10 K14 - 0x7C200400, // 002B CALL R8 2 - 0x7C180400, // 002C CALL R6 2 - 0x88180102, // 002D GETMBR R6 R0 K2 - 0x8C180D0F, // 002E GETMET R6 R6 K15 - 0x7C180200, // 002F CALL R6 1 - 0x8C1C0110, // 0030 GETMET R7 R0 K16 - 0x5C240C00, // 0031 MOVE R9 R6 - 0x7C1C0400, // 0032 CALL R7 2 - 0x8C1C0307, // 0033 GETMET R7 R1 K7 - 0x8C240508, // 0034 GETMET R9 R2 K8 - 0x582C0011, // 0035 LDCONST R11 K17 - 0x5C300C00, // 0036 MOVE R12 R6 - 0x7C240600, // 0037 CALL R9 3 - 0x7C1C0400, // 0038 CALL R7 2 - 0x8C1C0307, // 0039 GETMET R7 R1 K7 - 0x8C240508, // 003A GETMET R9 R2 K8 - 0x582C0012, // 003B LDCONST R11 K18 - 0x7C240400, // 003C CALL R9 2 - 0x7C1C0400, // 003D CALL R7 2 - 0x8C1C0307, // 003E GETMET R7 R1 K7 - 0x58240013, // 003F LDCONST R9 K19 - 0x7C1C0400, // 0040 CALL R7 2 - 0x80000000, // 0041 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: page_part_ctl -********************************************************************/ -be_local_closure(Matter_UI_page_part_ctl, /* 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[48]) { /* constants */ - /* K0 */ be_nested_str_weak(webserver), - /* K1 */ be_nested_str_weak(check_privileged_access), - /* K2 */ be_nested_str_weak(string), - /* K3 */ be_nested_str_weak(partition_core), - /* K4 */ be_nested_str_weak(persist), - /* K5 */ be_nested_str_weak(Partition), - /* K6 */ be_nested_str_weak(has_arg), - /* K7 */ be_nested_str_weak(passcode), - /* K8 */ be_nested_str_weak(discriminator), - /* K9 */ be_nested_str_weak(device), - /* K10 */ be_nested_str_weak(root_passcode), - /* K11 */ be_nested_str_weak(arg), - /* K12 */ be_nested_str_weak(root_discriminator), - /* K13 */ be_nested_str_weak(ipv4only), - /* K14 */ be_nested_str_weak(ipv4), - /* K15 */ be_nested_str_weak(on), - /* K16 */ be_nested_str_weak(save_param), - /* K17 */ be_nested_str_weak(redirect), - /* K18 */ be_nested_str_weak(_X2F_X3Frst_X3D), - /* K19 */ be_nested_str_weak(enable), - /* K20 */ be_nested_str_weak(tasmota), - /* K21 */ be_nested_str_weak(cmd), - /* K22 */ be_nested_str_weak(SetOption), - /* K23 */ be_nested_str_weak(matter), - /* K24 */ be_nested_str_weak(MATTER_OPTION), - /* K25 */ be_nested_str_weak(_X201), - /* K26 */ be_nested_str_weak(disable), - /* K27 */ be_nested_str_weak(_X200), - /* K28 */ be_nested_str_weak(del_fabric), - /* K29 */ be_const_int(0), - /* K30 */ be_nested_str_weak(sessions), - /* K31 */ be_nested_str_weak(fabrics), - /* K32 */ be_nested_str_weak(get_fabric_index), - /* K33 */ be_nested_str_weak(remove_fabric), - /* K34 */ be_const_int(1), - /* K35 */ be_nested_str_weak(_X2Fmatterc_X3F), - /* K36 */ be_nested_str_weak(log), - /* K37 */ be_nested_str_weak(format), - /* K38 */ be_nested_str_weak(BRY_X3A_X20Exception_X3E_X20_X27_X25s_X27_X20_X2D_X20_X25s), - /* K39 */ be_const_int(2), - /* K40 */ be_nested_str_weak(content_start), - /* K41 */ be_nested_str_weak(Parameter_X20error), - /* K42 */ be_nested_str_weak(content_send_style), - /* K43 */ be_nested_str_weak(content_send), - /* K44 */ be_nested_str_weak(_X3Cp_X20style_X3D_X27width_X3A340px_X3B_X27_X3E_X3Cb_X3EException_X3A_X3C_X2Fb_X3E_X3Cbr_X3E_X27_X25s_X27_X3Cbr_X3E_X25s_X3C_X2Fp_X3E), - /* K45 */ be_nested_str_weak(content_button), - /* K46 */ be_nested_str_weak(BUTTON_MANAGEMENT), - /* K47 */ be_nested_str_weak(content_stop), - }), - be_str_weak(page_part_ctl), - &be_const_str_solidified, - ( &(const binstruction[156]) { /* code */ + ( &(const binstruction[13]) { /* code */ 0xA4060000, // 0000 IMPORT R1 K0 0x8C080301, // 0001 GETMET R2 R1 K1 - 0x7C080200, // 0002 CALL R2 1 - 0x740A0001, // 0003 JMPT R2 #0006 - 0x4C080000, // 0004 LDNIL R2 - 0x80040400, // 0005 RET 1 R2 - 0xA40A0400, // 0006 IMPORT R2 K2 - 0xA40E0600, // 0007 IMPORT R3 K3 - 0xA4120800, // 0008 IMPORT R4 K4 - 0x8C140705, // 0009 GETMET R5 R3 K5 - 0x7C140200, // 000A CALL R5 1 - 0xA8020070, // 000B EXBLK 0 #007D - 0x8C180306, // 000C GETMET R6 R1 K6 - 0x58200007, // 000D LDCONST R8 K7 - 0x7C180400, // 000E CALL R6 2 - 0x741A0003, // 000F JMPT R6 #0014 - 0x8C180306, // 0010 GETMET R6 R1 K6 - 0x58200008, // 0011 LDCONST R8 K8 - 0x7C180400, // 0012 CALL R6 2 - 0x781A0022, // 0013 JMPF R6 #0037 - 0x8C180306, // 0014 GETMET R6 R1 K6 - 0x58200007, // 0015 LDCONST R8 K7 - 0x7C180400, // 0016 CALL R6 2 - 0x781A0006, // 0017 JMPF R6 #001F - 0x88180109, // 0018 GETMBR R6 R0 K9 - 0x601C0009, // 0019 GETGBL R7 G9 - 0x8C20030B, // 001A GETMET R8 R1 K11 - 0x58280007, // 001B LDCONST R10 K7 - 0x7C200400, // 001C CALL R8 2 - 0x7C1C0200, // 001D CALL R7 1 - 0x901A1407, // 001E SETMBR R6 K10 R7 - 0x8C180306, // 001F GETMET R6 R1 K6 - 0x58200008, // 0020 LDCONST R8 K8 - 0x7C180400, // 0021 CALL R6 2 - 0x781A0006, // 0022 JMPF R6 #002A - 0x88180109, // 0023 GETMBR R6 R0 K9 - 0x601C0009, // 0024 GETGBL R7 G9 - 0x8C20030B, // 0025 GETMET R8 R1 K11 - 0x58280008, // 0026 LDCONST R10 K8 - 0x7C200400, // 0027 CALL R8 2 - 0x7C1C0200, // 0028 CALL R7 1 - 0x901A1807, // 0029 SETMBR R6 K12 R7 - 0x88180109, // 002A GETMBR R6 R0 K9 - 0x8C1C030B, // 002B GETMET R7 R1 K11 - 0x5824000E, // 002C LDCONST R9 K14 - 0x7C1C0400, // 002D CALL R7 2 - 0x1C1C0F0F, // 002E EQ R7 R7 K15 - 0x901A1A07, // 002F SETMBR R6 K13 R7 - 0x88180109, // 0030 GETMBR R6 R0 K9 - 0x8C180D10, // 0031 GETMET R6 R6 K16 - 0x7C180200, // 0032 CALL R6 1 - 0x8C180311, // 0033 GETMET R6 R1 K17 - 0x58200012, // 0034 LDCONST R8 K18 - 0x7C180400, // 0035 CALL R6 2 - 0x70020043, // 0036 JMP #007B - 0x8C180306, // 0037 GETMET R6 R1 K6 - 0x58200013, // 0038 LDCONST R8 K19 - 0x7C180400, // 0039 CALL R6 2 - 0x781A000C, // 003A JMPF R6 #0048 - 0xB81A2800, // 003B GETNGBL R6 K20 - 0x8C180D15, // 003C GETMET R6 R6 K21 - 0x60200008, // 003D GETGBL R8 G8 - 0xB8262E00, // 003E GETNGBL R9 K23 - 0x88241318, // 003F GETMBR R9 R9 K24 - 0x7C200200, // 0040 CALL R8 1 - 0x00222C08, // 0041 ADD R8 K22 R8 - 0x00201119, // 0042 ADD R8 R8 K25 - 0x7C180400, // 0043 CALL R6 2 - 0x8C180311, // 0044 GETMET R6 R1 K17 - 0x58200012, // 0045 LDCONST R8 K18 - 0x7C180400, // 0046 CALL R6 2 - 0x70020032, // 0047 JMP #007B - 0x8C180306, // 0048 GETMET R6 R1 K6 - 0x5820001A, // 0049 LDCONST R8 K26 - 0x7C180400, // 004A CALL R6 2 - 0x781A000C, // 004B JMPF R6 #0059 - 0xB81A2800, // 004C GETNGBL R6 K20 - 0x8C180D15, // 004D GETMET R6 R6 K21 - 0x60200008, // 004E GETGBL R8 G8 - 0xB8262E00, // 004F GETNGBL R9 K23 - 0x88241318, // 0050 GETMBR R9 R9 K24 - 0x7C200200, // 0051 CALL R8 1 - 0x00222C08, // 0052 ADD R8 K22 R8 - 0x0020111B, // 0053 ADD R8 R8 K27 - 0x7C180400, // 0054 CALL R6 2 - 0x8C180311, // 0055 GETMET R6 R1 K17 - 0x58200012, // 0056 LDCONST R8 K18 - 0x7C180400, // 0057 CALL R6 2 - 0x70020021, // 0058 JMP #007B - 0x8C180306, // 0059 GETMET R6 R1 K6 - 0x5820001C, // 005A LDCONST R8 K28 - 0x7C180400, // 005B CALL R6 2 - 0x781A001D, // 005C JMPF R6 #007B - 0x60180009, // 005D GETGBL R6 G9 - 0x8C1C030B, // 005E GETMET R7 R1 K11 - 0x5824001C, // 005F LDCONST R9 K28 - 0x7C1C0400, // 0060 CALL R7 2 - 0x7C180200, // 0061 CALL R6 1 - 0x581C001D, // 0062 LDCONST R7 K29 - 0x88200109, // 0063 GETMBR R8 R0 K9 - 0x8820111E, // 0064 GETMBR R8 R8 K30 - 0x8820111F, // 0065 GETMBR R8 R8 K31 - 0x6024000C, // 0066 GETGBL R9 G12 - 0x5C281000, // 0067 MOVE R10 R8 - 0x7C240200, // 0068 CALL R9 1 - 0x14240E09, // 0069 LT R9 R7 R9 - 0x7826000C, // 006A JMPF R9 #0078 - 0x94241007, // 006B GETIDX R9 R8 R7 - 0x8C241320, // 006C GETMET R9 R9 K32 - 0x7C240200, // 006D CALL R9 1 - 0x1C241206, // 006E EQ R9 R9 R6 - 0x78260005, // 006F JMPF R9 #0076 - 0x88240109, // 0070 GETMBR R9 R0 K9 - 0x8C241321, // 0071 GETMET R9 R9 K33 - 0x942C1007, // 0072 GETIDX R11 R8 R7 - 0x7C240400, // 0073 CALL R9 2 - 0x70020002, // 0074 JMP #0078 - 0x70020000, // 0075 JMP #0077 - 0x001C0F22, // 0076 ADD R7 R7 K34 - 0x7001FFED, // 0077 JMP #0066 - 0x8C240311, // 0078 GETMET R9 R1 K17 - 0x582C0023, // 0079 LDCONST R11 K35 - 0x7C240400, // 007A CALL R9 2 - 0xA8040001, // 007B EXBLK 1 1 - 0x7002001D, // 007C JMP #009B - 0xAC180002, // 007D CATCH R6 0 2 - 0x7002001A, // 007E JMP #009A - 0xB8222800, // 007F GETNGBL R8 K20 - 0x8C201124, // 0080 GETMET R8 R8 K36 - 0x8C280525, // 0081 GETMET R10 R2 K37 - 0x58300026, // 0082 LDCONST R12 K38 - 0x5C340C00, // 0083 MOVE R13 R6 - 0x5C380E00, // 0084 MOVE R14 R7 - 0x7C280800, // 0085 CALL R10 4 - 0x582C0027, // 0086 LDCONST R11 K39 - 0x7C200600, // 0087 CALL R8 3 - 0x8C200328, // 0088 GETMET R8 R1 K40 - 0x58280029, // 0089 LDCONST R10 K41 - 0x7C200400, // 008A CALL R8 2 - 0x8C20032A, // 008B GETMET R8 R1 K42 - 0x7C200200, // 008C CALL R8 1 - 0x8C20032B, // 008D GETMET R8 R1 K43 - 0x8C280525, // 008E GETMET R10 R2 K37 - 0x5830002C, // 008F LDCONST R12 K44 - 0x5C340C00, // 0090 MOVE R13 R6 - 0x5C380E00, // 0091 MOVE R14 R7 - 0x7C280800, // 0092 CALL R10 4 - 0x7C200400, // 0093 CALL R8 2 - 0x8C20032D, // 0094 GETMET R8 R1 K45 - 0x8828032E, // 0095 GETMBR R10 R1 K46 - 0x7C200400, // 0096 CALL R8 2 - 0x8C20032F, // 0097 GETMET R8 R1 K47 - 0x7C200200, // 0098 CALL R8 1 - 0x70020000, // 0099 JMP #009B - 0xB0080000, // 009A RAISE 2 R0 R0 - 0x80000000, // 009B RET 0 + 0x58100002, // 0002 LDCONST R4 K2 + 0x84140000, // 0003 CLOSURE R5 P0 + 0x88180303, // 0004 GETMBR R6 R1 K3 + 0x7C080800, // 0005 CALL R2 4 + 0x8C080301, // 0006 GETMET R2 R1 K1 + 0x58100002, // 0007 LDCONST R4 K2 + 0x84140001, // 0008 CLOSURE R5 P1 + 0x88180304, // 0009 GETMBR R6 R1 K4 + 0x7C080800, // 000A CALL R2 4 + 0xA0000000, // 000B CLOSE R0 + 0x80000000, // 000C RET 0 }) ) ); @@ -1243,21 +1734,24 @@ be_local_closure(Matter_UI_page_part_ctl, /* name */ be_local_class(Matter_UI, 1, NULL, - be_nested_map(13, + be_nested_map(16, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(show_fabric_info, -1), be_const_closure(Matter_UI_show_fabric_info_closure) }, + { be_const_key_weak(_CLASSES_TYPES, -1), be_nested_str_weak(root_X7Crelay_X7Clight0_X7Clight1_X7Clight2_X7Clight3_X7Ctemperature_X7Cpressure_X7Cilluminance_X7Chumidity) }, + { be_const_key_weak(show_commissioning_info, -1), be_const_closure(Matter_UI_show_commissioning_info_closure) }, + { be_const_key_weak(show_enable, 6), be_const_closure(Matter_UI_show_enable_closure) }, + { be_const_key_weak(init, 11), be_const_closure(Matter_UI_init_closure) }, + { be_const_key_weak(show_passcode_form, -1), be_const_closure(Matter_UI_show_passcode_form_closure) }, + { be_const_key_weak(web_add_config_button, 15), be_const_closure(Matter_UI_web_add_config_button_closure) }, + { be_const_key_weak(web_add_handler, -1), be_const_closure(Matter_UI_web_add_handler_closure) }, + { be_const_key_weak(page_part_mgr, -1), be_const_closure(Matter_UI_page_part_mgr_closure) }, { be_const_key_weak(page_part_ctl, -1), be_const_closure(Matter_UI_page_part_ctl_closure) }, { be_const_key_weak(web_get_arg, -1), be_const_closure(Matter_UI_web_get_arg_closure) }, - { be_const_key_weak(page_part_mgr, 8), be_const_closure(Matter_UI_page_part_mgr_closure) }, - { be_const_key_weak(web_add_config_button, -1), be_const_closure(Matter_UI_web_add_config_button_closure) }, - { be_const_key_weak(init, -1), be_const_closure(Matter_UI_init_closure) }, - { be_const_key_weak(web_sensor, 10), be_const_closure(Matter_UI_web_sensor_closure) }, - { be_const_key_weak(web_add_handler, -1), be_const_closure(Matter_UI_web_add_handler_closure) }, - { be_const_key_weak(show_enable, 12), be_const_closure(Matter_UI_show_enable_closure) }, - { be_const_key_weak(show_passcode_form, 1), be_const_closure(Matter_UI_show_passcode_form_closure) }, - { be_const_key_weak(show_qrcode, 5), be_const_closure(Matter_UI_show_qrcode_closure) }, - { be_const_key_weak(show_commissioning_info, -1), be_const_closure(Matter_UI_show_commissioning_info_closure) }, - { be_const_key_weak(device, -1), be_const_var(0) }, + { be_const_key_weak(show_plugins_configuration, 14), be_const_closure(Matter_UI_show_plugins_configuration_closure) }, + { be_const_key_weak(device, 13), be_const_var(0) }, + { be_const_key_weak(web_sensor, -1), be_const_closure(Matter_UI_web_sensor_closure) }, + { be_const_key_weak(show_qrcode, -1), be_const_closure(Matter_UI_show_qrcode_closure) }, + { be_const_key_weak(plugin_option, -1), be_const_closure(Matter_UI_plugin_option_closure) }, + { be_const_key_weak(show_fabric_info, -1), be_const_closure(Matter_UI_show_fabric_info_closure) }, })), be_str_weak(Matter_UI) );