diff --git a/CHANGELOG.md b/CHANGELOG.md index b73586fcf..3add3bec2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file. - 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 (#18498) +- Matter add support for Shutters (without Tilt) ### Breaking Changed diff --git a/lib/libesp32/berry_matter/src/be_matter_module.c b/lib/libesp32/berry_matter/src/be_matter_module.c index c7f4c7d9c..9a82abce2 100644 --- a/lib/libesp32/berry_matter/src/be_matter_module.c +++ b/lib/libesp32/berry_matter/src/be_matter_module.c @@ -159,6 +159,7 @@ extern const bclass be_class_Matter_TLV; // need to declare it upfront because #include "solidify/solidified_Matter_Plugin_Light1.h" #include "solidify/solidified_Matter_Plugin_Light2.h" #include "solidify/solidified_Matter_Plugin_Light3.h" +#include "solidify/solidified_Matter_Plugin_Shutter.h" #include "solidify/solidified_Matter_Plugin_Sensor.h" #include "solidify/solidified_Matter_Plugin_Sensor_Pressure.h" #include "solidify/solidified_Matter_Plugin_Sensor_Temp.h" @@ -337,6 +338,7 @@ module matter (scope: global, strings: weak) { Plugin_Light1, class(be_class_Matter_Plugin_Light1) // Dimmable Light Plugin_Light2, class(be_class_Matter_Plugin_Light2) // Color Temperature Light Plugin_Light3, class(be_class_Matter_Plugin_Light3) // Extended Color Light + Plugin_Shutter, class(be_class_Matter_Plugin_Shutter) // Shutter Plugin_Sensor, class(be_class_Matter_Plugin_Sensor) // Generic Sensor Plugin_Sensor_Pressure, class(be_class_Matter_Plugin_Sensor_Pressure) // Pressure Sensor Plugin_Sensor_Temp, class(be_class_Matter_Plugin_Sensor_Temp) // Temperature Sensor diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Device.be b/lib/libesp32/berry_matter/src/embedded/Matter_Device.be index 3dc514d64..abd767d8a 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Device.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Device.be @@ -35,6 +35,7 @@ class Matter_Device var message_handler # `matter.MessageHandler()` object var sessions # `matter.Session_Store()` objet var ui + var tick # increment at each tick, avoids to repeat too frequently some actions # Commissioning open var commissioning_open # timestamp for timeout of commissioning (millis()) or `nil` if closed var commissioning_iterations # current PBKDF number of iterations @@ -74,6 +75,7 @@ class Matter_Device end # abort if SetOption 151 is not set self.started = false + self.tick = 0 self.plugins = [] self.plugins_persist = false # plugins need to saved only when the first fabric is associated self.plugins_classes = {} @@ -326,6 +328,12 @@ class Matter_Device end + ############################################################# + # ticks + def every_50ms() + self.tick += 1 + end + ############################################################# # dispatch every 250ms click to sub-objects that need it def every_250ms() @@ -991,6 +999,7 @@ class Matter_Device # # Applies only if there are no plugins already configured def autoconf_device_map() + import string import json var m = {} @@ -1018,15 +1027,46 @@ class Matter_Device end end + # handle shutters before relays (as we steal relays for shutters) + var r_st13 = tasmota.cmd("Status 13", true) # issue `Status 13` + var relays_reserved = [] # list of relays that are used for non-relay (shutters) + tasmota.log("MTR: Status 13 = "+str(r_st13), 3) + + if r_st13.contains('StatusSHT') + r_st13 = r_st13['StatusSHT'] # skip root + # Shutter is enabled, iterate + var idx = 0 + while true + var k = 'SHT' + str(idx) # SHT is zero based + if !r_st13.contains(k) break end # no more SHTxxx + var d = r_st13[k] + tasmota.log(string.format("MTR: '%s' = %s", k, str(d)), 3) + var relay1 = d.find('Relay1', 0) - 1 # relay base 0 or -1 if none + var relay2 = d.find('Relay2', 0) - 1 # relay base 0 or -1 if none + + if relay1 >= 0 relays_reserved.push(relay1) end # mark relay1/2 as non-relays + if relay2 >= 0 relays_reserved.push(relay2) end + + tasmota.log(string.format("MTR: relay1 = %s, relay2 = %s", relay1, relay2), 3) + # add shutter to definition + m[str(endpoint)] = {'type':'shutter','shutter':idx} + endpoint += 1 + idx += 1 + end + + end + # how many relays are present var relay_count = size(tasmota.get_power()) var relay_index = 0 # start at index 0 if light_present relay_count -= 1 end # last power is taken for lights while relay_index < relay_count - m[str(endpoint)] = {'type':'relay','relay':relay_index} + if relays_reserved.find(relay_index) == nil # if relay is actual relay + m[str(endpoint)] = {'type':'relay','relay':relay_index} + endpoint += 1 + end relay_index += 1 - endpoint += 1 end # auto-detect sensors @@ -1101,8 +1141,12 @@ class Matter_Device # register_plugin_class # # Adds a class by name - def register_plugin_class(name, cl) - self.plugins_classes[name] = cl + def register_plugin_class(cl) + import introspect + var typ = introspect.get(cl, 'TYPE') # make sure we don't crash if TYPE does not exist + if typ + self.plugins_classes[typ] = cl + end end ############################################################# @@ -1128,16 +1172,15 @@ class Matter_Device # # Adds a class by name def register_native_classes(name, cl) - self.register_plugin_class('root', matter.Plugin_Root) - self.register_plugin_class('light0', matter.Plugin_Light0) - self.register_plugin_class('light1', matter.Plugin_Light1) - self.register_plugin_class('light2', matter.Plugin_Light2) - self.register_plugin_class('light3', matter.Plugin_Light3) - self.register_plugin_class('relay', matter.Plugin_OnOff) - self.register_plugin_class('temperature', matter.Plugin_Sensor_Temp) - self.register_plugin_class('humidity', matter.Plugin_Sensor_Humidity) - self.register_plugin_class('illuminance', matter.Plugin_Sensor_Illuminance) - self.register_plugin_class('pressure', matter.Plugin_Sensor_Pressure) + # try to register any class that starts with 'Plugin_' + import introspect + import string + for k: introspect.members(matter) + var v = introspect.get(matter, k) + if type(v) == 'class' && string.find(k, "Plugin_") == 0 + self.register_plugin_class(v) + end + end tasmota.log("MTR: registered classes "+str(self.k2l(self.plugins_classes)), 3) end diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_MessageHandler.be b/lib/libesp32/berry_matter/src/embedded/Matter_MessageHandler.be index 651731c99..f68b0c48e 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_MessageHandler.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_MessageHandler.be @@ -203,7 +203,7 @@ class Matter_MessageHandler return ret except .. as e, m tasmota.log("MTR: MessageHandler::msg_received exception: "+str(e)+";"+str(m)) - if self._debug_present + if tasmota._debug_present import debug debug.traceback() end diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin.be index e36f99d88..142987bc3 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin.be @@ -23,7 +23,7 @@ #@ solidify:Matter_Plugin,weak class Matter_Plugin - static var TYPE = "generic" # name of the plug-in in json + static var TYPE = "" # 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 @@ -33,6 +33,7 @@ class Matter_Plugin var device # reference to the `device` global object var endpoint # current endpoint var clusters # map from cluster to list of attributes, typically constructed from CLUSTERS hierachy + var tick # tick value when it was last updated ############################################################# # MVC Model @@ -55,15 +56,23 @@ class Matter_Plugin ############################################################# # Stub for updating shadow values (local copies of what we published to the Matter gateway) def update_shadow() + self.tick = self.device.tick + end + + ############################################################# + # Stub for updating shadow values (local copies of what we published to the Matter gateway) + def update_shadow_lazy() + if self.tick != self.device.tick + self.update_shadow() + end end ############################################################# # signal that an attribute has been changed # # If `endpoint` is `nil`, send to all endpoints - def attribute_updated(endpoint, cluster, attribute, fabric_specific) - if endpoint == nil endpoint = self.endpoint end - self.device.attribute_updated(endpoint, cluster, attribute, fabric_specific) + def attribute_updated(cluster, attribute, fabric_specific) + self.device.attribute_updated(self.endpoint, cluster, attribute, fabric_specific) end ############################################################# diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Device.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Device.be index d8e728558..648d008f0 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Device.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Device.be @@ -27,6 +27,7 @@ class Matter_Plugin_Device : Matter_Plugin # 0x001D: inherited # Descriptor Cluster 9.5 p.453 0x0003: [0,1,0xFFFC,0xFFFD], # Identify 1.2 p.16 0x0004: [0,0xFFFC,0xFFFD], # Groups 1.3 p.21 + 0x0005: [0,1,2,3,4,5,0xFFFC,0xFFFD], # Scenes 1.4 p.30 - no writable } static var TYPES = { 0x0000: 0 } # fake type @@ -67,6 +68,14 @@ class Matter_Plugin_Device : Matter_Plugin return TLV.create_TLV(TLV.U4, 4)# "new data model format and notation" end + # ==================================================================================================== + elif cluster == 0x0005 # ========== Scenes 1.4 p.30 - no writable ========== + if attribute == 0xFFFC # ---------- FeatureMap / map32 ---------- + return TLV.create_TLV(TLV.U4, 0) # 0 = no Level Control for Lighting + elif attribute == 0xFFFD # ---------- ClusterRevision / u2 ---------- + return TLV.create_TLV(TLV.U4, 4) # 0 = no Level Control for Lighting + end + else return super(self).read_attribute(session, ctx) end @@ -105,6 +114,11 @@ class Matter_Plugin_Device : Matter_Plugin # TODO return true + # ==================================================================================================== + elif cluster == 0x0005 # ========== Scenes 1.4 p.30 ========== + # TODO + return true + else return super(self).invoke_request(session, val, ctx) end 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 a5803101d..c4abc2758 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Light0.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Light0.be @@ -20,18 +20,18 @@ # Matter plug-in for core behavior # dummy declaration for solidification -class Matter_Plugin end +class Matter_Plugin_Device end #@ solidify:Matter_Plugin_Light0,weak -class Matter_Plugin_Light0 : Matter_Plugin +class Matter_Plugin_Light0 : Matter_Plugin_Device 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 - 0x0004: [0,0xFFFC,0xFFFD], # Groups 1.3 p.21 - 0x0005: [0,1,2,3,4,5,0xFFFC,0xFFFD], # Scenes 1.4 p.30 - no writable + # 0x0003: inherited # Identify 1.2 p.16 + # 0x0004: inherited # Groups 1.3 p.21 + # 0x0005: inherited # Scenes 1.4 p.30 - no writable 0x0006: [0,0xFFFC,0xFFFD], # On/Off 1.5 p.48 } static var TYPES = { 0x0100: 2 } # OnOff Light, but not actually used because Relay is managed by OnOff @@ -52,7 +52,8 @@ class Matter_Plugin_Light0 : Matter_Plugin import light var light_status = light.get() var pow = light_status.find('power', nil) - if pow != self.shadow_onoff self.attribute_updated(nil, 0x0006, 0x0000) self.shadow_onoff = pow end + if pow != self.shadow_onoff self.attribute_updated(0x0006, 0x0000) self.shadow_onoff = pow end + super(self).update_shadow() end ############################################################# @@ -65,37 +66,8 @@ class Matter_Plugin_Light0 : Matter_Plugin var attribute = ctx.attribute # ==================================================================================================== - if cluster == 0x0003 # ========== Identify 1.2 p.16 ========== - if attribute == 0x0000 # ---------- IdentifyTime / u2 ---------- - return TLV.create_TLV(TLV.U2, 0) # no identification in progress - elif attribute == 0x0001 # ---------- IdentifyType / enum8 ---------- - return TLV.create_TLV(TLV.U1, 0) # IdentifyType = 0x00 None - elif attribute == 0xFFFC # ---------- FeatureMap / map32 ---------- - return TLV.create_TLV(TLV.U4, 0) # no features - elif attribute == 0xFFFD # ---------- ClusterRevision / u2 ---------- - return TLV.create_TLV(TLV.U4, 4) # "new data model format and notation" - end - - # ==================================================================================================== - elif cluster == 0x0004 # ========== Groups 1.3 p.21 ========== - if attribute == 0x0000 # ---------- ---------- - return nil # TODO - elif attribute == 0xFFFC # ---------- FeatureMap / map32 ---------- - return TLV.create_TLV(TLV.U4, 0)# - elif attribute == 0xFFFD # ---------- ClusterRevision / u2 ---------- - return TLV.create_TLV(TLV.U4, 4)# "new data model format and notation" - end - - # ==================================================================================================== - elif cluster == 0x0005 # ========== Scenes 1.4 p.30 - no writable ========== - if attribute == 0xFFFC # ---------- FeatureMap / map32 ---------- - return TLV.create_TLV(TLV.U4, 0) # 0 = no Level Control for Lighting - elif attribute == 0xFFFD # ---------- ClusterRevision / u2 ---------- - return TLV.create_TLV(TLV.U4, 4) # 0 = no Level Control for Lighting - end - - # ==================================================================================================== - elif cluster == 0x0006 # ========== On/Off 1.5 p.48 ========== + if cluster == 0x0006 # ========== On/Off 1.5 p.48 ========== + self.update_shadow_lazy() if attribute == 0x0000 # ---------- OnOff / bool ---------- return TLV.create_TLV(TLV.BOOL, self.shadow_onoff) elif attribute == 0xFFFC # ---------- FeatureMap / map32 ---------- @@ -121,33 +93,8 @@ class Matter_Plugin_Light0 : Matter_Plugin var command = ctx.command # ==================================================================================================== - if cluster == 0x0003 # ========== Identify 1.2 p.16 ========== - - if command == 0x0000 # ---------- Identify ---------- - # ignore - return true - elif command == 0x0001 # ---------- IdentifyQuery ---------- - # create IdentifyQueryResponse - # ID=1 - # 0=Certificate (octstr) - var iqr = TLV.Matter_TLV_struct() - iqr.add_TLV(0, TLV.U2, 0) # Timeout - ctx.command = 0x00 # IdentifyQueryResponse - return iqr - elif command == 0x0040 # ---------- TriggerEffect ---------- - # ignore - return true - end - # ==================================================================================================== - elif cluster == 0x0004 # ========== Groups 1.3 p.21 ========== - # TODO - return true - # ==================================================================================================== - elif cluster == 0x0005 # ========== Scenes 1.4 p.30 ========== - # TODO - return true - # ==================================================================================================== - elif cluster == 0x0006 # ========== On/Off 1.5 p.48 ========== + if cluster == 0x0006 # ========== On/Off 1.5 p.48 ========== + self.update_shadow_lazy() if command == 0x0000 # ---------- Off ---------- light.set({'power':false}) self.update_shadow() 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 656fbc666..531f3fd61 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Light1.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Light1.be @@ -54,8 +54,13 @@ class Matter_Plugin_Light1 : Matter_Plugin_Light0 import light var light_status = light.get() var bri = light_status.find('bri', nil) - if bri != nil bri = tasmota.scale_uint(bri, 0, 255, 0, 254) else bri = self.shadow_bri end - if bri != self.shadow_bri self.attribute_updated(nil, 0x0008, 0x0000) self.shadow_bri = bri end + if bri != nil + bri = tasmota.scale_uint(bri, 0, 255, 0, 254) + if bri != self.shadow_bri + self.attribute_updated(0x0008, 0x0000) + self.shadow_bri = bri + end + end super(self).update_shadow() # superclass manages 'power' end @@ -70,6 +75,7 @@ class Matter_Plugin_Light1 : Matter_Plugin_Light0 # ==================================================================================================== if cluster == 0x0008 # ========== Level Control 1.6 p.57 ========== + self.update_shadow_lazy() if attribute == 0x0000 # ---------- CurrentLevel / u1 ---------- return TLV.create_TLV(TLV.U1, self.shadow_bri) elif attribute == 0x0002 # ---------- MinLevel / u1 ---------- @@ -104,6 +110,7 @@ class Matter_Plugin_Light1 : Matter_Plugin_Light0 # ==================================================================================================== if cluster == 0x0008 # ========== Level Control 1.6 p.57 ========== + self.update_shadow_lazy() if command == 0x0000 # ---------- MoveToLevel ---------- var bri_in = val.findsubval(0) # Hue 0..254 var bri = tasmota.scale_uint(bri_in, 0, 254, 0, 255) 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 8c0cde617..9eee3be00 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Light2.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Light2.be @@ -59,7 +59,7 @@ class Matter_Plugin_Light2 : Matter_Plugin_Light1 var light_status = light.get() var ct = light_status.find('ct', nil) if ct == nil ct = self.shadow_ct end - if ct != self.shadow_ct self.attribute_updated(nil, 0x0300, 0x0007) self.shadow_ct = ct end + if ct != self.shadow_ct self.attribute_updated(0x0300, 0x0007) self.shadow_ct = ct end end ############################################################# @@ -82,6 +82,7 @@ class Matter_Plugin_Light2 : Matter_Plugin_Light1 # ==================================================================================================== if cluster == 0x0300 # ========== Color Control 3.2 p.111 ========== + self.update_shadow_lazy() if attribute == 0x0007 # ---------- ColorTemperatureMireds / u2 ---------- return TLV.create_TLV(TLV.U1, self.shadow_ct) elif attribute == 0x0008 # ---------- ColorMode / u1 ---------- @@ -117,6 +118,7 @@ class Matter_Plugin_Light2 : Matter_Plugin_Light1 # ==================================================================================================== if cluster == 0x0300 # ========== Color Control 3.2 p.111 ========== + self.update_shadow_lazy() if command == 0x000A # ---------- MoveToColorTemperature ---------- var ct_in = val.findsubval(0) # CT if ct_in < self.ct_min ct_in = self.ct_min end 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 8e1f63d04..acdce0837 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Light3.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Light3.be @@ -59,8 +59,8 @@ class Matter_Plugin_Light3 : Matter_Plugin_Light1 var sat = light_status.find('sat', nil) if hue != nil hue = tasmota.scale_uint(hue, 0, 360, 0, 254) else hue = self.shadow_hue end if sat != nil sat = tasmota.scale_uint(sat, 0, 255, 0, 254) else sat = self.shadow_sat end - if hue != self.shadow_hue self.attribute_updated(nil, 0x0300, 0x0000) self.shadow_hue = hue end - if sat != self.shadow_sat self.attribute_updated(nil, 0x0300, 0x0001) self.shadow_sat = sat end + if hue != self.shadow_hue self.attribute_updated(0x0300, 0x0000) self.shadow_hue = hue end + if sat != self.shadow_sat self.attribute_updated(0x0300, 0x0001) self.shadow_sat = sat end end ############################################################# @@ -74,6 +74,7 @@ class Matter_Plugin_Light3 : Matter_Plugin_Light1 # ==================================================================================================== if cluster == 0x0300 # ========== Color Control 3.2 p.111 ========== + self.update_shadow_lazy() if attribute == 0x0000 # ---------- CurrentHue / u1 ---------- return TLV.create_TLV(TLV.U1, self.shadow_hue) elif attribute == 0x0001 # ---------- CurrentSaturation / u2 ---------- @@ -117,6 +118,7 @@ class Matter_Plugin_Light3 : Matter_Plugin_Light1 # ==================================================================================================== if cluster == 0x0300 # ========== Color Control 3.2 p.111 ========== + self.update_shadow_lazy() if command == 0x0000 # ---------- MoveToHue ---------- var hue_in = val.findsubval(0) # Hue 0..254 var hue = tasmota.scale_uint(hue_in, 0, 254, 0, 360) 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 f45a671f8..6d1c9bf90 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_OnOff.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_OnOff.be @@ -20,22 +20,21 @@ # Matter plug-in for core behavior # dummy declaration for solidification -class Matter_Plugin end +class Matter_Plugin_Device end #@ solidify:Matter_Plugin_OnOff,weak -class Matter_Plugin_OnOff : Matter_Plugin +class Matter_Plugin_OnOff : Matter_Plugin_Device 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 - 0x0004: [0,0xFFFC,0xFFFD], # Groups 1.3 p.21 - 0x0005: [0,1,2,3,4,5,0xFFFC,0xFFFD], # Scenes 1.4 p.30 - no writable + # 0x0003: inherited # Identify 1.2 p.16 + # 0x0004: inherited # Groups 1.3 p.21 + # 0x0005: inherited # Scenes 1.4 p.30 - no writable 0x0006: [0,0xFFFC,0xFFFD], # On/Off 1.5 p.48 - # 0x0008: [0,15,17,0xFFFC,0xFFFD] # Level Control 1.6 p.57 } static var TYPES = { 0x010A: 2 } # On/Off Light @@ -46,32 +45,31 @@ class Matter_Plugin_OnOff : Matter_Plugin # Constructor def init(device, endpoint, arguments) super(self).init(device, endpoint, arguments) - self.get_onoff() # read actual value + self.shadow_onoff = false self.tasmota_relay_index = arguments.find(self.ARG #-'relay'-#) if self.tasmota_relay_index == nil self.tasmota_relay_index = 0 end end + ############################################################# + # Update shadow + # + def update_shadow() + var state = tasmota.get_power(self.tasmota_relay_index) + if state != nil + if self.shadow_onoff != nil && self.shadow_onoff != bool(state) + self.attribute_updated(0x0006, 0x0000) + end + self.shadow_onoff = state + end + super(self).update_shadow() + end + ############################################################# # Model # def set_onoff(v) tasmota.set_power(self.tasmota_relay_index, bool(v)) - self.get_onoff() - end - ############################################################# - # get_onoff - # - # Update shadow and signal any change - def get_onoff() - var state = tasmota.get_power(self.tasmota_relay_index) - if state != nil - if self.shadow_onoff != nil && self.shadow_onoff != bool(state) - self.onoff_changed() # signal any change - end - self.shadow_onoff = state - end - if self.shadow_onoff == nil self.shadow_onoff = false end # avoid any `nil` value when initializing - return self.shadow_onoff + self.update_shadow() end ############################################################# @@ -84,59 +82,16 @@ class Matter_Plugin_OnOff : Matter_Plugin var attribute = ctx.attribute # ==================================================================================================== - if cluster == 0x0003 # ========== Identify 1.2 p.16 ========== - if attribute == 0x0000 # ---------- IdentifyTime / u2 ---------- - return TLV.create_TLV(TLV.U2, 0) # no identification in progress - elif attribute == 0x0001 # ---------- IdentifyType / enum8 ---------- - return TLV.create_TLV(TLV.U1, 0) # IdentifyType = 0x00 None - elif attribute == 0xFFFC # ---------- FeatureMap / map32 ---------- - return TLV.create_TLV(TLV.U4, 0) # no features - elif attribute == 0xFFFD # ---------- ClusterRevision / u2 ---------- - return TLV.create_TLV(TLV.U4, 4) # "new data model format and notation" - end - - # ==================================================================================================== - elif cluster == 0x0004 # ========== Groups 1.3 p.21 ========== - if attribute == 0x0000 # ---------- ---------- - return nil # TODO - elif attribute == 0xFFFC # ---------- FeatureMap / map32 ---------- - return TLV.create_TLV(TLV.U4, 0)# - elif attribute == 0xFFFD # ---------- ClusterRevision / u2 ---------- - return TLV.create_TLV(TLV.U4, 4)# "new data model format and notation" - end - - # ==================================================================================================== - elif cluster == 0x0005 # ========== Scenes 1.4 p.30 - no writable ========== - if attribute == 0xFFFC # ---------- FeatureMap / map32 ---------- - return TLV.create_TLV(TLV.U4, 0) # 0 = no Level Control for Lighting - elif attribute == 0xFFFD # ---------- ClusterRevision / u2 ---------- - return TLV.create_TLV(TLV.U4, 4) # 0 = no Level Control for Lighting - end - - # ==================================================================================================== - elif cluster == 0x0006 # ========== On/Off 1.5 p.48 ========== + if cluster == 0x0006 # ========== On/Off 1.5 p.48 ========== + self.update_shadow_lazy() if attribute == 0x0000 # ---------- OnOff / bool ---------- - return TLV.create_TLV(TLV.BOOL, self.get_onoff()) + return TLV.create_TLV(TLV.BOOL, self.shadow_onoff) elif attribute == 0xFFFC # ---------- FeatureMap / map32 ---------- return TLV.create_TLV(TLV.U4, 0) # 0 = no Level Control for Lighting elif attribute == 0xFFFD # ---------- ClusterRevision / u2 ---------- return TLV.create_TLV(TLV.U4, 4) # 0 = no Level Control for Lighting end - # ==================================================================================================== - elif cluster == 0x0008 # ========== Level Control 1.6 p.57 ========== - if attribute == 0x0000 # ---------- CurrentLevel / u1 ---------- - return TLV.create_TLV(TLV.U1, 0x88) - elif attribute == 0x000F # ---------- Options / map8 ---------- - return TLV.create_TLV(TLV.U1, 0) # 0 = no Level Control for Lighting - elif attribute == 0x0010 # ---------- OnLevel / u1 ---------- - return TLV.create_TLV(TLV.U1, 1) # 0 = no Level Control for Lighting - elif attribute == 0xFFFC # ---------- FeatureMap / map32 ---------- - return TLV.create_TLV(TLV.U4, 0) # 0 = no Level Control for Lighting - elif attribute == 0xFFFD # ---------- ClusterRevision / u2 ---------- - return TLV.create_TLV(TLV.U4, 4) # 0 = no Level Control for Lighting - end - else return super(self).read_attribute(session, ctx) end @@ -153,75 +108,24 @@ class Matter_Plugin_OnOff : Matter_Plugin var command = ctx.command # ==================================================================================================== - if cluster == 0x0003 # ========== Identify 1.2 p.16 ========== - - if command == 0x0000 # ---------- Identify ---------- - # ignore - return true - elif command == 0x0001 # ---------- IdentifyQuery ---------- - # create IdentifyQueryResponse - # ID=1 - # 0=Certificate (octstr) - var iqr = TLV.Matter_TLV_struct() - iqr.add_TLV(0, TLV.U2, 0) # Timeout - ctx.command = 0x00 # IdentifyQueryResponse - return iqr - elif command == 0x0040 # ---------- TriggerEffect ---------- - # ignore - return true - end - # ==================================================================================================== - elif cluster == 0x0004 # ========== Groups 1.3 p.21 ========== - # TODO - return true - # ==================================================================================================== - elif cluster == 0x0005 # ========== Scenes 1.4 p.30 ========== - # TODO - return true - # ==================================================================================================== - elif cluster == 0x0006 # ========== On/Off 1.5 p.48 ========== + if cluster == 0x0006 # ========== On/Off 1.5 p.48 ========== + self.update_shadow_lazy() if command == 0x0000 # ---------- Off ---------- self.set_onoff(false) + self.update_shadow() return true elif command == 0x0001 # ---------- On ---------- self.set_onoff(true) + self.update_shadow() return true elif command == 0x0002 # ---------- Toggle ---------- - self.set_onoff(!self.get_onoff()) - return true - end - # ==================================================================================================== - elif cluster == 0x0008 # ========== Level Control 1.6 p.57 ========== - if command == 0x0000 # ---------- MoveToLevel ---------- - return true - elif command == 0x0001 # ---------- Move ---------- - return true - elif command == 0x0002 # ---------- Step ---------- - return true - elif command == 0x0003 # ---------- Stop ---------- - return true - elif command == 0x0004 # ---------- MoveToLevelWithOnOff ---------- - return true - elif command == 0x0005 # ---------- MoveWithOnOff ---------- - return true - elif command == 0x0006 # ---------- StepWithOnOff ---------- - return true - elif command == 0x0007 # ---------- StopWithOnOff ---------- + self.set_onoff(!self.shadow_onoff) + self.update_shadow() return true end end + end - ############################################################# - # Signal that onoff attribute changed - def onoff_changed() - self.attribute_updated(nil, 0x0006, 0x0000) # send to all endpoints - end - - ############################################################# - # every_second - def every_second() - self.get_onoff() # force reading value and sending subscriptions - end end matter.Plugin_OnOff = Matter_Plugin_OnOff 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 0427ed022..76f2440ff 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Root.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Root.be @@ -616,7 +616,7 @@ class Matter_Plugin_Root : Matter_Plugin if attribute == 0x0000 # ---------- Breadcrumb ---------- if type(write_data) == 'int' || isinstance(write_data, int64) session._breadcrumb = write_data - self.attribute_updated(ctx.endpoint, ctx.cluster, ctx.attribute) # TODO should we have a more generalized way each time a write_attribute is triggered, declare the attribute as changed? + self.attribute_updated(ctx.cluster, ctx.attribute) # TODO should we have a more generalized way each time a write_attribute is triggered, declare the attribute as changed? return true else ctx.status = matter.CONSTRAINT_ERROR 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 45b2ee983..3f0d2dfd7 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Sensor.be @@ -50,7 +50,7 @@ class Matter_Plugin_Sensor : Matter_Plugin_Device var val = self.pre_value(real(self.tasmota_sensor_matcher.match(payload))) if val != nil if val != self.shadow_value - self.valued_changed(val) + self.value_changed(val) end self.shadow_value = val end @@ -61,9 +61,9 @@ class Matter_Plugin_Sensor : Matter_Plugin_Device # Called when the value changed compared to shadow value # # This must be overriden. - # This is where you call `self.attribute_updated(nil, , )` - def valued_changed(val) - # self.attribute_updated(nil, 0x0402, 0x0000) + # This is where you call `self.attribute_updated(, )` + def value_changed(val) + # self.attribute_updated(0x0402, 0x0000) end ############################################################# 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 b31e12965..55ccdf992 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 @@ -45,9 +45,9 @@ class Matter_Plugin_Sensor_Humidity : Matter_Plugin_Sensor # Called when the value changed compared to shadow value # # This must be overriden. - # This is where you call `self.attribute_updated(nil, , )` - def valued_changed(val) - self.attribute_updated(nil, 0x0405, 0x0000) + # This is where you call `self.attribute_updated(, )` + def value_changed(val) + self.attribute_updated(0x0405, 0x0000) end ############################################################# 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 f7619bdfb..e676aac18 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 @@ -45,9 +45,9 @@ class Matter_Plugin_Sensor_Illuminance : Matter_Plugin_Sensor # Called when the value changed compared to shadow value # # This must be overriden. - # This is where you call `self.attribute_updated(nil, , )` - def valued_changed(val) - self.attribute_updated(nil, 0x0400, 0x0000) + # This is where you call `self.attribute_updated(, )` + def value_changed(val) + self.attribute_updated(0x0400, 0x0000) end ############################################################# 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 47a2110cb..60414b0c9 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 @@ -45,9 +45,9 @@ class Matter_Plugin_Sensor_Pressure : Matter_Plugin_Sensor # Called when the value changed compared to shadow value # # This must be overriden. - # This is where you call `self.attribute_updated(nil, , )` - def valued_changed(val) - self.attribute_updated(nil, 0x0403, 0x0000) + # This is where you call `self.attribute_updated(, )` + def value_changed(val) + self.attribute_updated(0x0403, 0x0000) end ############################################################# 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 9944633be..ec411f537 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 @@ -45,9 +45,9 @@ class Matter_Plugin_Sensor_Temp : Matter_Plugin_Sensor # Called when the value changed compared to shadow value # # This must be overriden. - # This is where you call `self.attribute_updated(nil, , )` - def valued_changed(val) - self.attribute_updated(nil, 0x0402, 0x0000) + # This is where you call `self.attribute_updated(, )` + def value_changed(val) + self.attribute_updated(0x0402, 0x0000) end ############################################################# diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Shutter.be b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Shutter.be new file mode 100644 index 000000000..408e74ba7 --- /dev/null +++ b/lib/libesp32/berry_matter/src/embedded/Matter_Plugin_Shutter.be @@ -0,0 +1,220 @@ +# +# Matter_Plugin_Shutter.be - implements the behavior for shutters +# +# Copyright (C) 2023 Stephan Hadinger & Theo Arends +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# + +# Matter plug-in for core behavior + +# dummy declaration for solidification +class Matter_Plugin_Device end + +#@ solidify:Matter_Plugin_Shutter,weak + +class Matter_Plugin_Shutter : Matter_Plugin_Device + static var TYPE = "shutter" # name of the plug-in in json + static var NAME = "Shutter" # display name of the plug-in + static var ARG = "shutter" # 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: inherited # Identify 1.2 p.16 + # 0x0004: inherited # Groups 1.3 p.21 + # 0x0005: inherited # Scenes 1.4 p.30 - no writable + 0x0102: [0,5,6,7,8,9,0xA,0xB,0xC,0xD,0xE,0xF,0x17,0xFFFC,0xFFFD], # Window Covering 5.3 p.289 + } + static var TYPES = { 0x0202: 2 } # New data model format and notation + + var tasmota_shutter_index # Shutter number in Tasmota (zero based) + var shadow_shutter_pos + var shadow_shutter_target + var shadow_shutter_tilt + var shadow_shutter_direction # 1=opening -1=closing 0=not moving TODO + + ############################################################# + # Constructor + def init(device, endpoint, arguments) + super(self).init(device, endpoint, arguments) + self.tasmota_shutter_index = arguments.find(self.ARG #-'relay'-#) + if self.tasmota_shutter_index == nil self.tasmota_shutter_index = 0 end + end + + ############################################################# + # Update shadow + # + def update_shadow() + var sp = tasmota.cmd("ShutterPosition" + str(self.tasmota_shutter_index + 1), true) + if sp + self.parse_sensors(sp) + end + super(self).update_shadow() + end + + ############################################################# + # read an attribute + # + def read_attribute(session, ctx) + import string + var TLV = matter.TLV + var cluster = ctx.cluster + var attribute = ctx.attribute + + # ==================================================================================================== + if cluster == 0x0102 # ========== Window Covering 5.3 p.289 ========== + self.update_shadow_lazy() + if attribute == 0x0000 # ---------- Type / enum8 ---------- + return TLV.create_TLV(TLV.U1, 0xFF) # 0xFF = unknown type of shutter + elif attribute == 0x0005 # ---------- NumberOfActuationsLift / u16 ---------- + return TLV.create_TLV(TLV.U2, 0) + elif attribute == 0x0006 # ---------- NumberOfActuationsTilt / u16 ---------- + return TLV.create_TLV(TLV.U2, 0) + elif attribute == 0x0007 # ---------- ConfigStatus / u8 ---------- + return TLV.create_TLV(TLV.U1, 1 + 8 + 16) # Operational + Lift Position Aware + Tilt Position Aware + elif attribute == 0x000D # ---------- EndProductType / u8 ---------- + return TLV.create_TLV(TLV.U1, 0xFF) # 0xFF = unknown type of shutter + + elif attribute == 0x0008 # ---------- CurrentPositionLiftPercentage / u8 ---------- + return TLV.create_TLV(TLV.U2, 100 - self.shadow_shutter_pos) + elif attribute == 0x000E # ---------- CurrentPositionLiftPercent100ths / u16 ---------- + return TLV.create_TLV(TLV.U2, (100 - self.shadow_shutter_pos) * 100) + elif attribute == 0x0009 # ---------- CurrentPositionTiltPercentage / u8 ---------- + return TLV.create_TLV(TLV.U2, 100 - self.shadow_shutter_tilt) + elif attribute == 0x000F # ---------- CurrentPositionTiltPercent100ths / u8 ---------- + return TLV.create_TLV(TLV.U2, (100 - self.shadow_shutter_tilt) * 100) + elif attribute == 0x000A # ---------- OperationalStatus / u8 ---------- + var op = self.shadow_shutter_direction == 0 ? 0 : (self.shadow_shutter_direction > 0 ? 1 : 2) + return TLV.create_TLV(TLV.U1, op) # TODO from sensors + elif attribute == 0x000B # ---------- TargetPositionLiftPercent100ths / u16 ---------- + return TLV.create_TLV(TLV.U2, (100 - self.shadow_shutter_target) * 100) + elif attribute == 0x000C # ---------- TargetPositionTiltPercent100ths / u16 ---------- + return TLV.create_TLV(TLV.U1, 0) # TODO + + elif attribute == 0x0017 # ---------- Mode / u8 ---------- + return TLV.create_TLV(TLV.U1, 0) # normal mode + + elif attribute == 0xFFFC # ---------- FeatureMap / map32 ---------- + return TLV.create_TLV(TLV.U4, 3 + 4 + 16) # Lift + Tilt + PA_LF + PA_TL + elif attribute == 0xFFFD # ---------- ClusterRevision / u2 ---------- + return TLV.create_TLV(TLV.U4, 5) # New data model format and notation + end + + else + return super(self).read_attribute(session, ctx) + end + end + + ############################################################# + # Invoke a command + # + # returns a TLV object if successful, contains the response + # or an `int` to indicate a status + def invoke_request(session, val, ctx) + import light + var TLV = matter.TLV + var cluster = ctx.cluster + var command = ctx.command + + # ==================================================================================================== + if cluster == 0x0102 # ========== Window Covering 5.3 p.289 ========== + self.update_shadow_lazy() + if command == 0x0000 # ---------- UpOrOpen ---------- + tasmota.cmd("ShutterStopOpen"+str(self.tasmota_shutter_index+1), true) + self.update_shadow() + return true + elif command == 0x0001 # ---------- DownOrClose ---------- + tasmota.cmd("ShutterStopClose"+str(self.tasmota_shutter_index+1), true) + self.update_shadow() + return true + elif command == 0x0002 # ---------- StopMotion ---------- + tasmota.cmd("ShutterStop"+str(self.tasmota_shutter_index+1), true) + self.update_shadow() + return true + elif command == 0x0005 # ---------- GoToLiftPercentage ---------- + tasmota.log("MTR: Tilt = "+str(val), 2) + var pos_100 = val.findsubval(0) + if pos_100 != nil + pos_100 = pos_100 / 100 + tasmota.cmd("ShutterStopPosition"+str(self.tasmota_shutter_index+1) + " " + str(100 - pos_100), true) + ctx.log = "pos%:"+str(pos_100) + self.update_shadow() + end + return true + elif command == 0x0008 # ---------- GoToTiltPercentage ---------- + var tilt = val.findsubval(0) + if tilt != nil + tilt = tilt / 10 + ctx.log = "tilt%:"+str(tilt) + end + return true + end + + else + return super(self).invoke_request(session, val, ctx) + end + + end + + ############################################################# + # parse sensor + # + # The device calls regularly `tasmota.read_sensors()` and converts + # it to json. + def parse_sensors(payload) + import string + var k = "Shutter" + str(self.tasmota_shutter_index + 1) + if payload.contains(k) + var v = payload[k] + # tasmota.log(string.format("MTR: getting shutter values(%i): %s", self.endpoint, str(v)), 2) + # Position + var val_pos = v.find("Position") + if val_pos != nil + if val_pos != self.shadow_shutter_pos + # self.attribute_updated(0x0102, 0x0008) # CurrentPositionLiftPercentage + self.attribute_updated(0x0102, 0x000E) # CurrentPositionLiftPercent100ths + end + self.shadow_shutter_pos = val_pos + end + # Tilt + var val_tilt = v.find("Tilt") + if val_tilt != nil + if val_tilt != self.shadow_shutter_tilt + # self.attribute_updated(0x0102, 0x0009) # CurrentPositionTiltPercentage + self.attribute_updated(0x0102, 0x000F) # CurrentPositionTiltPercent100ths + end + self.shadow_shutter_tilt = val_tilt + end + # Direction + var val_dir = v.find("Direction") + if val_dir != nil + if val_dir != self.shadow_shutter_direction + self.attribute_updated(0x0102, 0x000A) # OperationalStatus + end + self.shadow_shutter_direction = val_dir + end + # Target + var val_target = v.find("Target") + if val_target != nil + if val_target != self.shadow_shutter_target + self.attribute_updated(0x0102, 0x000B) # TargetPositionLiftPercent100ths + end + self.shadow_shutter_target = val_target + end + # + end + end + +end +matter.Plugin_Shutter = Matter_Plugin_Shutter diff --git a/lib/libesp32/berry_matter/src/embedded/Matter_UI.be b/lib/libesp32/berry_matter/src/embedded/Matter_UI.be index 5eb86378b..a2633b34c 100644 --- a/lib/libesp32/berry_matter/src/embedded/Matter_UI.be +++ b/lib/libesp32/berry_matter/src/embedded/Matter_UI.be @@ -32,7 +32,8 @@ import matter # WebUI for the partition manager ################################################################################# class Matter_UI - static var _CLASSES_TYPES = "root|relay|light0|light1|light2|light3" + static var _ROOT_TYPES = "root" + static var _CLASSES_TYPES = "|relay|light0|light1|light2|light3|shutter" "|temperature|pressure|illuminance|humidity" var device @@ -179,7 +180,7 @@ class Matter_UI import string webserver.content_send("
 Fabrics 

") - webserver.content_send("

Existing fabrics:

") + webserver.content_send("

Associated fabrics:

") if size(self.device.sessions.sessions) == 0 webserver.content_send("

None

") @@ -233,11 +234,27 @@ class Matter_UI # display one line per plug-in var endpoints = self.device.k2l_num(self.device.plugins_config) var i = 0 + + # special case for root node + if endpoints[0] == 0 + var ep = endpoints[i] + var conf = self.device.plugins_config[str(ep)] + var typ = conf.find('type') + + webserver.content_send(string.format("", i)) + webserver.content_send(string.format("")) + webserver.content_send(" ") + + i += 1 + end + 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 + if !typ i += 1 continue end var arg_name = self.device.get_plugin_class_arg(typ) var arg = arg_name ? str(conf.find(arg_name, '')) : '' @@ -245,7 +262,7 @@ class Matter_UI webserver.content_send(string.format("", i, ep)) webserver.content_send(string.format("")) webserver.content_send(string.format("", i, webserver.html_escape(arg))) @@ -256,7 +273,7 @@ class Matter_UI # 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)) @@ -270,17 +287,20 @@ class Matter_UI #- ---------------------------------------------------------------------- -# #- Show all possible classes for plugin #- ---------------------------------------------------------------------- -# - def plugin_option(cur) + def plugin_option(cur, class_list) import webserver import string - var class_types = string.split(self._CLASSES_TYPES, '|') + var class_types = class_list ? string.split(class_list, '|') : [] 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)) + if typ == '' + webserver.content_send("") + else + var nam = self.device.get_plugin_class_displayname(typ) + webserver.content_send(string.format("", typ, (typ == cur) ? " selected" : "", nam)) + end i += 1 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 d4d47b146..3c48befb9 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,150 @@ extern const bclass be_class_Matter_Device; +/******************************************************************** +** Solidified function: start +********************************************************************/ +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: generate_random_passcode +********************************************************************/ +be_local_closure(Matter_Device_generate_random_passcode, /* name */ + be_nested_proto( + 7, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 8]) { /* constants */ + /* K0 */ be_nested_str_weak(crypto), + /* K1 */ be_nested_str_weak(random), + /* K2 */ be_nested_str_weak(get), + /* K3 */ be_const_int(0), + /* K4 */ be_const_int(134217727), + /* K5 */ be_const_int(99999998), + /* K6 */ be_nested_str_weak(PASSCODE_INVALID), + /* K7 */ be_nested_str_weak(stop_iteration), + }), + be_str_weak(generate_random_passcode), + &be_const_str_solidified, + ( &(const binstruction[35]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x4C080000, // 0001 LDNIL R2 + 0x500C0200, // 0002 LDBOOL R3 1 0 + 0x780E001D, // 0003 JMPF R3 #0022 + 0x8C0C0301, // 0004 GETMET R3 R1 K1 + 0x54160003, // 0005 LDINT R5 4 + 0x7C0C0400, // 0006 CALL R3 2 + 0x8C0C0702, // 0007 GETMET R3 R3 K2 + 0x58140003, // 0008 LDCONST R5 K3 + 0x541A0003, // 0009 LDINT R6 4 + 0x7C0C0600, // 000A CALL R3 3 + 0x2C0C0704, // 000B AND R3 R3 K4 + 0x5C080600, // 000C MOVE R2 R3 + 0x240C0505, // 000D GT R3 R2 K5 + 0x780E0000, // 000E JMPF R3 #0010 + 0x7001FFF1, // 000F JMP #0002 + 0x600C0010, // 0010 GETGBL R3 G16 + 0x88100106, // 0011 GETMBR R4 R0 K6 + 0x7C0C0200, // 0012 CALL R3 1 + 0xA8020005, // 0013 EXBLK 0 #001A + 0x5C100600, // 0014 MOVE R4 R3 + 0x7C100000, // 0015 CALL R4 0 + 0x1C140404, // 0016 EQ R5 R2 R4 + 0x78160000, // 0017 JMPF R5 #0019 + 0x4C080000, // 0018 LDNIL R2 + 0x7001FFF9, // 0019 JMP #0014 + 0x580C0007, // 001A LDCONST R3 K7 + 0xAC0C0200, // 001B CATCH R3 1 0 + 0xB0080000, // 001C RAISE 2 R0 R0 + 0x4C0C0000, // 001D LDNIL R3 + 0x200C0403, // 001E NE R3 R2 R3 + 0x780E0000, // 001F JMPF R3 #0021 + 0x80040400, // 0020 RET 1 R2 + 0x7001FFDF, // 0021 JMP #0002 + 0x80000000, // 0022 RET 0 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: save_param ********************************************************************/ @@ -121,6 +265,545 @@ be_local_closure(Matter_Device_save_param, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: remove_fabric +********************************************************************/ +be_local_closure(Matter_Device_remove_fabric, /* name */ + be_nested_proto( + 9, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[12]) { /* constants */ + /* K0 */ be_nested_str_weak(sessions), + /* K1 */ be_nested_str_weak(find_children_fabrics), + /* K2 */ be_nested_str_weak(get_fabric_index), + /* K3 */ be_nested_str_weak(find_fabric_by_index), + /* K4 */ be_nested_str_weak(message_handler), + /* K5 */ be_nested_str_weak(im), + /* K6 */ be_nested_str_weak(subs_shop), + /* K7 */ be_nested_str_weak(remove_by_fabric), + /* K8 */ be_nested_str_weak(mdns_remove_op_discovery), + /* K9 */ be_nested_str_weak(remove_fabric), + /* K10 */ be_nested_str_weak(stop_iteration), + /* K11 */ be_nested_str_weak(save_fabrics), + }), + be_str_weak(remove_fabric), + &be_const_str_solidified, + ( &(const binstruction[43]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x8C100302, // 0002 GETMET R4 R1 K2 + 0x7C100200, // 0003 CALL R4 1 + 0x7C080400, // 0004 CALL R2 2 + 0x4C0C0000, // 0005 LDNIL R3 + 0x1C0C0403, // 0006 EQ R3 R2 R3 + 0x780E0000, // 0007 JMPF R3 #0009 + 0x80000600, // 0008 RET 0 + 0x600C0010, // 0009 GETGBL R3 G16 + 0x5C100400, // 000A MOVE R4 R2 + 0x7C0C0200, // 000B CALL R3 1 + 0xA8020016, // 000C EXBLK 0 #0024 + 0x5C100600, // 000D MOVE R4 R3 + 0x7C100000, // 000E CALL R4 0 + 0x88140100, // 000F GETMBR R5 R0 K0 + 0x8C140B03, // 0010 GETMET R5 R5 K3 + 0x5C1C0800, // 0011 MOVE R7 R4 + 0x7C140400, // 0012 CALL R5 2 + 0x4C180000, // 0013 LDNIL R6 + 0x20180A06, // 0014 NE R6 R5 R6 + 0x781A000C, // 0015 JMPF R6 #0023 + 0x88180104, // 0016 GETMBR R6 R0 K4 + 0x88180D05, // 0017 GETMBR R6 R6 K5 + 0x88180D06, // 0018 GETMBR R6 R6 K6 + 0x8C180D07, // 0019 GETMET R6 R6 K7 + 0x5C200A00, // 001A MOVE R8 R5 + 0x7C180400, // 001B CALL R6 2 + 0x8C180108, // 001C GETMET R6 R0 K8 + 0x5C200A00, // 001D MOVE R8 R5 + 0x7C180400, // 001E CALL R6 2 + 0x88180100, // 001F GETMBR R6 R0 K0 + 0x8C180D09, // 0020 GETMET R6 R6 K9 + 0x5C200A00, // 0021 MOVE R8 R5 + 0x7C180400, // 0022 CALL R6 2 + 0x7001FFE8, // 0023 JMP #000D + 0x580C000A, // 0024 LDCONST R3 K10 + 0xAC0C0200, // 0025 CATCH R3 1 0 + 0xB0080000, // 0026 RAISE 2 R0 R0 + 0x880C0100, // 0027 GETMBR R3 R0 K0 + 0x8C0C070B, // 0028 GETMET R3 R3 K11 + 0x7C0C0200, // 0029 CALL R3 1 + 0x80000000, // 002A RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: _start_udp +********************************************************************/ +be_local_closure(Matter_Device__start_udp, /* name */ + be_nested_proto( + 6, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 1]) { + be_nested_proto( + 8, /* nstack */ + 3, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(msg_received), + }), + be_str_weak(_X3Clambda_X3E), + &be_const_str_solidified, + ( &(const binstruction[ 7]) { /* code */ + 0x680C0000, // 0000 GETUPV R3 U0 + 0x8C0C0700, // 0001 GETMET R3 R3 K0 + 0x5C140000, // 0002 MOVE R5 R0 + 0x5C180200, // 0003 MOVE R6 R1 + 0x5C1C0400, // 0004 MOVE R7 R2 + 0x7C0C0800, // 0005 CALL R3 4 + 0x80040600, // 0006 RET 1 R3 + }) + ), + }), + 1, /* has constants */ + ( &(const bvalue[ 9]) { /* constants */ + /* K0 */ be_nested_str_weak(udp_server), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(log), + /* K3 */ be_nested_str_weak(MTR_X3A_X20starting_X20UDP_X20server_X20on_X20port_X3A_X20), + /* K4 */ be_const_int(2), + /* K5 */ be_nested_str_weak(matter), + /* K6 */ be_nested_str_weak(UDPServer), + /* K7 */ be_nested_str_weak(), + /* K8 */ be_nested_str_weak(start), + }), + be_str_weak(_start_udp), + &be_const_str_solidified, + ( &(const binstruction[27]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x780A0000, // 0001 JMPF R2 #0003 + 0x80000400, // 0002 RET 0 + 0x4C080000, // 0003 LDNIL R2 + 0x1C080202, // 0004 EQ R2 R1 R2 + 0x780A0000, // 0005 JMPF R2 #0007 + 0x540615A3, // 0006 LDINT R1 5540 + 0xB80A0200, // 0007 GETNGBL R2 K1 + 0x8C080502, // 0008 GETMET R2 R2 K2 + 0x60100008, // 0009 GETGBL R4 G8 + 0x5C140200, // 000A MOVE R5 R1 + 0x7C100200, // 000B CALL R4 1 + 0x00120604, // 000C ADD R4 K3 R4 + 0x58140004, // 000D LDCONST R5 K4 + 0x7C080600, // 000E CALL R2 3 + 0xB80A0A00, // 000F GETNGBL R2 K5 + 0x8C080506, // 0010 GETMET R2 R2 K6 + 0x58100007, // 0011 LDCONST R4 K7 + 0x5C140200, // 0012 MOVE R5 R1 + 0x7C080600, // 0013 CALL R2 3 + 0x90020002, // 0014 SETMBR R0 K0 R2 + 0x88080100, // 0015 GETMBR R2 R0 K0 + 0x8C080508, // 0016 GETMET R2 R2 K8 + 0x84100000, // 0017 CLOSURE R4 P0 + 0x7C080400, // 0018 CALL R2 2 + 0xA0000000, // 0019 CLOSE R0 + 0x80000000, // 001A RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: every_50ms +********************************************************************/ +be_local_closure(Matter_Device_every_50ms, /* name */ + be_nested_proto( + 2, /* 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(tick), + /* K1 */ be_const_int(1), + }), + be_str_weak(every_50ms), + &be_const_str_solidified, + ( &(const binstruction[ 4]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x00040301, // 0001 ADD R1 R1 K1 + 0x90020001, // 0002 SETMBR R0 K0 R1 + 0x80000000, // 0003 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(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: 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: 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: 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: register_native_classes +********************************************************************/ +be_local_closure(Matter_Device_register_native_classes, /* name */ + be_nested_proto( + 12, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[17]) { /* constants */ + /* K0 */ be_nested_str_weak(introspect), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(members), + /* K3 */ be_nested_str_weak(matter), + /* K4 */ be_nested_str_weak(get), + /* K5 */ be_nested_str_weak(class), + /* K6 */ be_nested_str_weak(find), + /* K7 */ be_nested_str_weak(Plugin_), + /* K8 */ be_const_int(0), + /* K9 */ be_nested_str_weak(register_plugin_class), + /* K10 */ be_nested_str_weak(stop_iteration), + /* K11 */ be_nested_str_weak(tasmota), + /* K12 */ be_nested_str_weak(log), + /* K13 */ be_nested_str_weak(MTR_X3A_X20registered_X20classes_X20), + /* K14 */ be_nested_str_weak(k2l), + /* K15 */ be_nested_str_weak(plugins_classes), + /* K16 */ be_const_int(3), + }), + be_str_weak(register_native_classes), + &be_const_str_solidified, + ( &(const binstruction[43]) { /* code */ + 0xA40E0000, // 0000 IMPORT R3 K0 + 0xA4120200, // 0001 IMPORT R4 K1 + 0x60140010, // 0002 GETGBL R5 G16 + 0x8C180702, // 0003 GETMET R6 R3 K2 + 0xB8220600, // 0004 GETNGBL R8 K3 + 0x7C180400, // 0005 CALL R6 2 + 0x7C140200, // 0006 CALL R5 1 + 0xA8020014, // 0007 EXBLK 0 #001D + 0x5C180A00, // 0008 MOVE R6 R5 + 0x7C180000, // 0009 CALL R6 0 + 0x8C1C0704, // 000A GETMET R7 R3 K4 + 0xB8260600, // 000B GETNGBL R9 K3 + 0x5C280C00, // 000C MOVE R10 R6 + 0x7C1C0600, // 000D CALL R7 3 + 0x60200004, // 000E GETGBL R8 G4 + 0x5C240E00, // 000F MOVE R9 R7 + 0x7C200200, // 0010 CALL R8 1 + 0x1C201105, // 0011 EQ R8 R8 K5 + 0x78220008, // 0012 JMPF R8 #001C + 0x8C200906, // 0013 GETMET R8 R4 K6 + 0x5C280C00, // 0014 MOVE R10 R6 + 0x582C0007, // 0015 LDCONST R11 K7 + 0x7C200600, // 0016 CALL R8 3 + 0x1C201108, // 0017 EQ R8 R8 K8 + 0x78220002, // 0018 JMPF R8 #001C + 0x8C200109, // 0019 GETMET R8 R0 K9 + 0x5C280E00, // 001A MOVE R10 R7 + 0x7C200400, // 001B CALL R8 2 + 0x7001FFEA, // 001C JMP #0008 + 0x5814000A, // 001D LDCONST R5 K10 + 0xAC140200, // 001E CATCH R5 1 0 + 0xB0080000, // 001F RAISE 2 R0 R0 + 0xB8161600, // 0020 GETNGBL R5 K11 + 0x8C140B0C, // 0021 GETMET R5 R5 K12 + 0x601C0008, // 0022 GETGBL R7 G8 + 0x8C20010E, // 0023 GETMET R8 R0 K14 + 0x8828010F, // 0024 GETMBR R10 R0 K15 + 0x7C200400, // 0025 CALL R8 2 + 0x7C1C0200, // 0026 CALL R7 1 + 0x001E1A07, // 0027 ADD R7 K13 R7 + 0x58200010, // 0028 LDCONST R8 K16 + 0x7C140600, // 0029 CALL R5 3 + 0x80000000, // 002A RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** 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: _trigger_read_sensors ********************************************************************/ @@ -194,239 +877,9 @@ be_local_closure(Matter_Device__trigger_read_sensors, /* name */ /******************************************************************** -** Solidified function: register_plugin_class +** Solidified function: _init_basic_commissioning ********************************************************************/ -be_local_closure(Matter_Device_register_plugin_class, /* name */ - be_nested_proto( - 4, /* nstack */ - 3, /* 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(plugins_classes), - }), - be_str_weak(register_plugin_class), - &be_const_str_solidified, - ( &(const binstruction[ 3]) { /* code */ - 0x880C0100, // 0000 GETMBR R3 R0 K0 - 0x980C0202, // 0001 SETIDX R3 R1 R2 - 0x80000000, // 0002 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: autoconf_device -********************************************************************/ -be_local_closure(Matter_Device_autoconf_device, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[15]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(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(autoconf_device), - &be_const_str_solidified, - ( &(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 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: generate_random_passcode -********************************************************************/ -be_local_closure(Matter_Device_generate_random_passcode, /* name */ - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 8]) { /* constants */ - /* K0 */ be_nested_str_weak(crypto), - /* K1 */ be_nested_str_weak(random), - /* K2 */ be_nested_str_weak(get), - /* K3 */ be_const_int(0), - /* K4 */ be_const_int(134217727), - /* K5 */ be_const_int(99999998), - /* K6 */ be_nested_str_weak(PASSCODE_INVALID), - /* K7 */ be_nested_str_weak(stop_iteration), - }), - be_str_weak(generate_random_passcode), - &be_const_str_solidified, - ( &(const binstruction[35]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x4C080000, // 0001 LDNIL R2 - 0x500C0200, // 0002 LDBOOL R3 1 0 - 0x780E001D, // 0003 JMPF R3 #0022 - 0x8C0C0301, // 0004 GETMET R3 R1 K1 - 0x54160003, // 0005 LDINT R5 4 - 0x7C0C0400, // 0006 CALL R3 2 - 0x8C0C0702, // 0007 GETMET R3 R3 K2 - 0x58140003, // 0008 LDCONST R5 K3 - 0x541A0003, // 0009 LDINT R6 4 - 0x7C0C0600, // 000A CALL R3 3 - 0x2C0C0704, // 000B AND R3 R3 K4 - 0x5C080600, // 000C MOVE R2 R3 - 0x240C0505, // 000D GT R3 R2 K5 - 0x780E0000, // 000E JMPF R3 #0010 - 0x7001FFF1, // 000F JMP #0002 - 0x600C0010, // 0010 GETGBL R3 G16 - 0x88100106, // 0011 GETMBR R4 R0 K6 - 0x7C0C0200, // 0012 CALL R3 1 - 0xA8020005, // 0013 EXBLK 0 #001A - 0x5C100600, // 0014 MOVE R4 R3 - 0x7C100000, // 0015 CALL R4 0 - 0x1C140404, // 0016 EQ R5 R2 R4 - 0x78160000, // 0017 JMPF R5 #0019 - 0x4C080000, // 0018 LDNIL R2 - 0x7001FFF9, // 0019 JMP #0014 - 0x580C0007, // 001A LDCONST R3 K7 - 0xAC0C0200, // 001B CATCH R3 1 0 - 0xB0080000, // 001C RAISE 2 R0 R0 - 0x4C0C0000, // 001D LDNIL R3 - 0x200C0403, // 001E NE R3 R2 R3 - 0x780E0000, // 001F JMPF R3 #0021 - 0x80040400, // 0020 RET 1 R2 - 0x7001FFDF, // 0021 JMP #0002 - 0x80000000, // 0022 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: 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_local_closure(Matter_Device__init_basic_commissioning, /* name */ be_nested_proto( 3, /* nstack */ 1, /* argc */ @@ -436,207 +889,23 @@ be_local_closure(Matter_Device_is_commissioning_open, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(commissioning_open), - }), - 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), + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(sessions), + /* K1 */ be_nested_str_weak(count_active_fabrics), /* K2 */ be_const_int(0), + /* K3 */ be_nested_str_weak(start_root_basic_commissioning), }), - be_str_weak(start_operational_discovery_deferred), + be_str_weak(_init_basic_commissioning), &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 + ( &(const binstruction[ 8]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x7C040200, // 0002 CALL R1 1 + 0x1C040302, // 0003 EQ R1 R1 K2 + 0x78060001, // 0004 JMPF R1 #0007 + 0x8C040103, // 0005 GETMET R1 R0 K3 + 0x7C040200, // 0006 CALL R1 1 + 0x80000000, // 0007 RET 0 }) ) ); @@ -719,6 +988,212 @@ be_local_closure(Matter_Device_compute_qrcode_content, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: get_active_endpoints +********************************************************************/ +be_local_closure(Matter_Device_get_active_endpoints, /* name */ + be_nested_proto( + 9, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 6]) { /* constants */ + /* K0 */ be_nested_str_weak(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: 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: invoke_request +********************************************************************/ +be_local_closure(Matter_Device_invoke_request, /* name */ + be_nested_proto( + 12, /* nstack */ + 4, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 8]) { /* constants */ + /* K0 */ be_const_int(0), + /* K1 */ be_nested_str_weak(endpoint), + /* K2 */ be_nested_str_weak(plugins), + /* K3 */ be_nested_str_weak(invoke_request), + /* K4 */ be_const_int(1), + /* K5 */ be_nested_str_weak(status), + /* K6 */ be_nested_str_weak(matter), + /* K7 */ be_nested_str_weak(UNSUPPORTED_ENDPOINT), + }), + be_str_weak(invoke_request), + &be_const_str_solidified, + ( &(const binstruction[24]) { /* code */ + 0x58100000, // 0000 LDCONST R4 K0 + 0x88140701, // 0001 GETMBR R5 R3 K1 + 0x6018000C, // 0002 GETGBL R6 G12 + 0x881C0102, // 0003 GETMBR R7 R0 K2 + 0x7C180200, // 0004 CALL R6 1 + 0x14180806, // 0005 LT R6 R4 R6 + 0x781A000C, // 0006 JMPF R6 #0014 + 0x88180102, // 0007 GETMBR R6 R0 K2 + 0x94180C04, // 0008 GETIDX R6 R6 R4 + 0x881C0D01, // 0009 GETMBR R7 R6 K1 + 0x1C1C0E05, // 000A EQ R7 R7 R5 + 0x781E0005, // 000B JMPF R7 #0012 + 0x8C1C0D03, // 000C GETMET R7 R6 K3 + 0x5C240200, // 000D MOVE R9 R1 + 0x5C280400, // 000E MOVE R10 R2 + 0x5C2C0600, // 000F MOVE R11 R3 + 0x7C1C0800, // 0010 CALL R7 4 + 0x80040E00, // 0011 RET 1 R7 + 0x00100904, // 0012 ADD R4 R4 K4 + 0x7001FFED, // 0013 JMP #0002 + 0xB81A0C00, // 0014 GETNGBL R6 K6 + 0x88180D07, // 0015 GETMBR R6 R6 K7 + 0x900E0A06, // 0016 SETMBR R3 K5 R6 + 0x80000000, // 0017 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: event_fabrics_saved +********************************************************************/ +be_local_closure(Matter_Device_event_fabrics_saved, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + 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: sort_distinct ********************************************************************/ @@ -801,6 +1276,88 @@ be_local_closure(Matter_Device_sort_distinct, /* name */ /*******************************************************************/ +/******************************************************************** +** Solidified function: k2l_num +********************************************************************/ +be_local_closure(Matter_Device_k2l_num, /* name */ + be_nested_proto( + 9, /* 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_num), + &be_const_str_solidified, + ( &(const binstruction[52]) { /* code */ + 0x58040000, // 0000 LDCONST R1 K0 + 0x60080012, // 0001 GETGBL R2 G18 + 0x7C080000, // 0002 CALL R2 0 + 0x4C0C0000, // 0003 LDNIL R3 + 0x1C0C0003, // 0004 EQ R3 R0 R3 + 0x780E0000, // 0005 JMPF R3 #0007 + 0x80040400, // 0006 RET 1 R2 + 0x600C0010, // 0007 GETGBL R3 G16 + 0x8C100101, // 0008 GETMET R4 R0 K1 + 0x7C100200, // 0009 CALL R4 1 + 0x7C0C0200, // 000A CALL R3 1 + 0xA8020007, // 000B EXBLK 0 #0014 + 0x5C100600, // 000C MOVE R4 R3 + 0x7C100000, // 000D CALL R4 0 + 0x8C140502, // 000E GETMET R5 R2 K2 + 0x601C0009, // 000F GETGBL R7 G9 + 0x5C200800, // 0010 MOVE R8 R4 + 0x7C1C0200, // 0011 CALL R7 1 + 0x7C140400, // 0012 CALL R5 2 + 0x7001FFF7, // 0013 JMP #000C + 0x580C0003, // 0014 LDCONST R3 K3 + 0xAC0C0200, // 0015 CATCH R3 1 0 + 0xB0080000, // 0016 RAISE 2 R0 R0 + 0x600C0010, // 0017 GETGBL R3 G16 + 0x6010000C, // 0018 GETGBL R4 G12 + 0x5C140400, // 0019 MOVE R5 R2 + 0x7C100200, // 001A CALL R4 1 + 0x04100904, // 001B SUB R4 R4 K4 + 0x40120804, // 001C CONNECT R4 K4 R4 + 0x7C0C0200, // 001D CALL R3 1 + 0xA8020010, // 001E EXBLK 0 #0030 + 0x5C100600, // 001F MOVE R4 R3 + 0x7C100000, // 0020 CALL R4 0 + 0x94140404, // 0021 GETIDX R5 R2 R4 + 0x5C180800, // 0022 MOVE R6 R4 + 0x241C0D05, // 0023 GT R7 R6 K5 + 0x781E0008, // 0024 JMPF R7 #002E + 0x041C0D04, // 0025 SUB R7 R6 K4 + 0x941C0407, // 0026 GETIDX R7 R2 R7 + 0x241C0E05, // 0027 GT R7 R7 R5 + 0x781E0004, // 0028 JMPF R7 #002E + 0x041C0D04, // 0029 SUB R7 R6 K4 + 0x941C0407, // 002A GETIDX R7 R2 R7 + 0x98080C07, // 002B SETIDX R2 R6 R7 + 0x04180D04, // 002C SUB R6 R6 K4 + 0x7001FFF4, // 002D JMP #0023 + 0x98080C05, // 002E SETIDX R2 R6 R5 + 0x7001FFEE, // 002F JMP #001F + 0x580C0003, // 0030 LDCONST R3 K3 + 0xAC0C0200, // 0031 CATCH R3 1 0 + 0xB0080000, // 0032 RAISE 2 R0 R0 + 0x80040400, // 0033 RET 1 R2 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified function: mdns_announce_op_discovery ********************************************************************/ @@ -977,1084 +1534,9 @@ be_local_closure(Matter_Device_mdns_announce_op_discovery, /* name */ /******************************************************************** -** Solidified function: compute_manual_pairing_code +** Solidified function: every_second ********************************************************************/ -be_local_closure(Matter_Device_compute_manual_pairing_code, /* 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[ 8]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(root_discriminator), - /* K2 */ be_nested_str_weak(root_passcode), - /* K3 */ be_nested_str_weak(format), - /* K4 */ be_nested_str_weak(_X251i_X2505i_X2504i), - /* K5 */ be_nested_str_weak(matter), - /* K6 */ be_nested_str_weak(Verhoeff), - /* K7 */ be_nested_str_weak(checksum), - }), - be_str_weak(compute_manual_pairing_code), - &be_const_str_solidified, - ( &(const binstruction[31]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x88080101, // 0001 GETMBR R2 R0 K1 - 0x540E0FFE, // 0002 LDINT R3 4095 - 0x2C080403, // 0003 AND R2 R2 R3 - 0x540E0009, // 0004 LDINT R3 10 - 0x3C080403, // 0005 SHR R2 R2 R3 - 0x880C0101, // 0006 GETMBR R3 R0 K1 - 0x541202FF, // 0007 LDINT R4 768 - 0x2C0C0604, // 0008 AND R3 R3 R4 - 0x54120005, // 0009 LDINT R4 6 - 0x380C0604, // 000A SHL R3 R3 R4 - 0x88100102, // 000B GETMBR R4 R0 K2 - 0x54163FFE, // 000C LDINT R5 16383 - 0x2C100805, // 000D AND R4 R4 R5 - 0x300C0604, // 000E OR R3 R3 R4 - 0x88100102, // 000F GETMBR R4 R0 K2 - 0x5416000D, // 0010 LDINT R5 14 - 0x3C100805, // 0011 SHR R4 R4 R5 - 0x8C140303, // 0012 GETMET R5 R1 K3 - 0x581C0004, // 0013 LDCONST R7 K4 - 0x5C200400, // 0014 MOVE R8 R2 - 0x5C240600, // 0015 MOVE R9 R3 - 0x5C280800, // 0016 MOVE R10 R4 - 0x7C140A00, // 0017 CALL R5 5 - 0xB81A0A00, // 0018 GETNGBL R6 K5 - 0x88180D06, // 0019 GETMBR R6 R6 K6 - 0x8C180D07, // 001A GETMET R6 R6 K7 - 0x5C200A00, // 001B MOVE R8 R5 - 0x7C180400, // 001C CALL R6 2 - 0x00140A06, // 001D ADD R5 R5 R6 - 0x80040A00, // 001E RET 1 R5 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: start_root_basic_commissioning -********************************************************************/ -be_local_closure(Matter_Device_start_root_basic_commissioning, /* 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[23]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(PASE_TIMEOUT), - /* K2 */ be_nested_str_weak(compute_manual_pairing_code), - /* K3 */ be_nested_str_weak(tasmota), - /* K4 */ be_nested_str_weak(log), - /* K5 */ be_nested_str_weak(format), - /* K6 */ be_nested_str_weak(MTR_X3A_X20Manual_X20pairing_X20code_X3A_X20_X25s_X2D_X25s_X2D_X25s), - /* K7 */ be_const_int(0), - /* K8 */ be_const_int(3), - /* K9 */ be_const_int(2147483647), - /* K10 */ be_const_int(2), - /* K11 */ be_nested_str_weak(compute_qrcode_content), - /* K12 */ be_nested_str_weak(publish_result), - /* K13 */ be_nested_str_weak(_X7B_X22Matter_X22_X3A_X7B_X22Commissioning_X22_X3A1_X2C_X22PairingCode_X22_X3A_X22_X25s_X22_X2C_X22QRCode_X22_X3A_X22_X25s_X22_X7D_X7D), - /* K14 */ be_nested_str_weak(Matter), - /* K15 */ be_nested_str_weak(_compute_pbkdf), - /* K16 */ be_nested_str_weak(root_passcode), - /* K17 */ be_nested_str_weak(root_iterations), - /* K18 */ be_nested_str_weak(root_salt), - /* K19 */ be_nested_str_weak(start_basic_commissioning), - /* K20 */ be_nested_str_weak(root_discriminator), - /* K21 */ be_nested_str_weak(root_w0), - /* K22 */ be_nested_str_weak(root_L), - }), - be_str_weak(start_root_basic_commissioning), - &be_const_str_solidified, - ( &(const binstruction[49]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0x4C0C0000, // 0001 LDNIL R3 - 0x1C0C0203, // 0002 EQ R3 R1 R3 - 0x780E0000, // 0003 JMPF R3 #0005 - 0x88040101, // 0004 GETMBR R1 R0 K1 - 0x8C0C0102, // 0005 GETMET R3 R0 K2 - 0x7C0C0200, // 0006 CALL R3 1 - 0xB8120600, // 0007 GETNGBL R4 K3 - 0x8C100904, // 0008 GETMET R4 R4 K4 - 0x8C180505, // 0009 GETMET R6 R2 K5 - 0x58200006, // 000A LDCONST R8 K6 - 0x40260F08, // 000B CONNECT R9 K7 K8 - 0x94240609, // 000C GETIDX R9 R3 R9 - 0x542A0003, // 000D LDINT R10 4 - 0x542E0005, // 000E LDINT R11 6 - 0x4028140B, // 000F CONNECT R10 R10 R11 - 0x9428060A, // 0010 GETIDX R10 R3 R10 - 0x542E0006, // 0011 LDINT R11 7 - 0x402C1709, // 0012 CONNECT R11 R11 K9 - 0x942C060B, // 0013 GETIDX R11 R3 R11 - 0x7C180A00, // 0014 CALL R6 5 - 0x581C000A, // 0015 LDCONST R7 K10 - 0x7C100600, // 0016 CALL R4 3 - 0x8C10010B, // 0017 GETMET R4 R0 K11 - 0x7C100200, // 0018 CALL R4 1 - 0xB8160600, // 0019 GETNGBL R5 K3 - 0x8C140B0C, // 001A GETMET R5 R5 K12 - 0x8C1C0505, // 001B GETMET R7 R2 K5 - 0x5824000D, // 001C LDCONST R9 K13 - 0x5C280600, // 001D MOVE R10 R3 - 0x5C2C0800, // 001E MOVE R11 R4 - 0x7C1C0800, // 001F CALL R7 4 - 0x5820000E, // 0020 LDCONST R8 K14 - 0x7C140600, // 0021 CALL R5 3 - 0x8C14010F, // 0022 GETMET R5 R0 K15 - 0x881C0110, // 0023 GETMBR R7 R0 K16 - 0x88200111, // 0024 GETMBR R8 R0 K17 - 0x88240112, // 0025 GETMBR R9 R0 K18 - 0x7C140800, // 0026 CALL R5 4 - 0x8C140113, // 0027 GETMET R5 R0 K19 - 0x5C1C0200, // 0028 MOVE R7 R1 - 0x88200111, // 0029 GETMBR R8 R0 K17 - 0x88240114, // 002A GETMBR R9 R0 K20 - 0x88280112, // 002B GETMBR R10 R0 K18 - 0x882C0115, // 002C GETMBR R11 R0 K21 - 0x88300116, // 002D GETMBR R12 R0 K22 - 0x4C340000, // 002E LDNIL R13 - 0x7C141000, // 002F CALL R5 8 - 0x80000000, // 0030 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: init -********************************************************************/ -be_local_closure(Matter_Device_init, /* name */ - be_nested_proto( - 8, /* 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(start), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(remove_rule), - /* K3 */ be_nested_str_weak(Wifi_X23Connected), - /* K4 */ be_nested_str_weak(matter_start), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x7C000200, // 0002 CALL R0 1 - 0xB8020200, // 0003 GETNGBL R0 K1 - 0x8C000102, // 0004 GETMET R0 R0 K2 - 0x58080003, // 0005 LDCONST R2 K3 - 0x580C0004, // 0006 LDCONST R3 K4 - 0x7C000600, // 0007 CALL R0 3 - 0x80000000, // 0008 RET 0 - }) - ), - be_nested_proto( - 4, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(start), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(remove_rule), - /* K3 */ be_nested_str_weak(Eth_X23Connected), - /* K4 */ be_nested_str_weak(matter_start), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x7C000200, // 0002 CALL R0 1 - 0xB8020200, // 0003 GETNGBL R0 K1 - 0x8C000102, // 0004 GETMET R0 R0 K2 - 0x58080003, // 0005 LDCONST R2 K3 - 0x580C0004, // 0006 LDCONST R3 K4 - 0x7C000600, // 0007 CALL R0 3 - 0x80000000, // 0008 RET 0 - }) - ), - }), - 1, /* has constants */ - ( &(const bvalue[39]) { /* constants */ - /* K0 */ be_nested_str_weak(crypto), - /* 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(UI), - /* K7 */ be_nested_str_weak(started), - /* K8 */ be_nested_str_weak(plugins), - /* K9 */ be_nested_str_weak(plugins_persist), - /* K10 */ be_nested_str_weak(plugins_classes), - /* K11 */ be_nested_str_weak(register_native_classes), - /* K12 */ be_nested_str_weak(vendorid), - /* K13 */ be_nested_str_weak(VENDOR_ID), - /* K14 */ be_nested_str_weak(productid), - /* K15 */ be_nested_str_weak(PRODUCT_ID), - /* K16 */ be_nested_str_weak(root_iterations), - /* K17 */ be_nested_str_weak(PBKDF_ITERATIONS), - /* K18 */ be_nested_str_weak(root_salt), - /* K19 */ be_nested_str_weak(random), - /* K20 */ be_nested_str_weak(ipv4only), - /* K21 */ be_nested_str_weak(load_param), - /* K22 */ be_nested_str_weak(sessions), - /* K23 */ be_nested_str_weak(Session_Store), - /* K24 */ be_nested_str_weak(load_fabrics), - /* K25 */ be_nested_str_weak(message_handler), - /* K26 */ be_nested_str_weak(MessageHandler), - /* K27 */ be_nested_str_weak(ui), - /* K28 */ be_nested_str_weak(wifi), - /* K29 */ be_nested_str_weak(up), - /* K30 */ be_nested_str_weak(eth), - /* K31 */ be_nested_str_weak(start), - /* K32 */ be_nested_str_weak(add_rule), - /* K33 */ be_nested_str_weak(Wifi_X23Connected), - /* K34 */ be_nested_str_weak(matter_start), - /* K35 */ be_nested_str_weak(Eth_X23Connected), - /* K36 */ be_nested_str_weak(_init_basic_commissioning), - /* K37 */ be_nested_str_weak(add_driver), - /* K38 */ be_nested_str_weak(register_commands), - }), - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[101]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0xB80E0400, // 0002 GETNGBL R3 K2 - 0x8C0C0703, // 0003 GETMET R3 R3 K3 - 0xB8160800, // 0004 GETNGBL R5 K4 - 0x88140B05, // 0005 GETMBR R5 R5 K5 - 0x7C0C0400, // 0006 CALL R3 2 - 0x740E0004, // 0007 JMPT R3 #000D - 0xB80E0800, // 0008 GETNGBL R3 K4 - 0x8C0C0706, // 0009 GETMET R3 R3 K6 - 0x5C140000, // 000A MOVE R5 R0 - 0x7C0C0400, // 000B CALL R3 2 - 0x80000600, // 000C RET 0 - 0x500C0000, // 000D LDBOOL R3 0 0 - 0x90020E03, // 000E SETMBR R0 K7 R3 - 0x600C0012, // 000F GETGBL R3 G18 - 0x7C0C0000, // 0010 CALL R3 0 - 0x90021003, // 0011 SETMBR R0 K8 R3 - 0x500C0000, // 0012 LDBOOL R3 0 0 - 0x90021203, // 0013 SETMBR R0 K9 R3 - 0x600C0013, // 0014 GETGBL R3 G19 - 0x7C0C0000, // 0015 CALL R3 0 - 0x90021403, // 0016 SETMBR R0 K10 R3 - 0x8C0C010B, // 0017 GETMET R3 R0 K11 - 0x7C0C0200, // 0018 CALL R3 1 - 0x880C010D, // 0019 GETMBR R3 R0 K13 - 0x90021803, // 001A SETMBR R0 K12 R3 - 0x880C010F, // 001B GETMBR R3 R0 K15 - 0x90021C03, // 001C SETMBR R0 K14 R3 - 0x880C0111, // 001D GETMBR R3 R0 K17 - 0x90022003, // 001E SETMBR R0 K16 R3 - 0x8C0C0313, // 001F GETMET R3 R1 K19 - 0x5416000F, // 0020 LDINT R5 16 - 0x7C0C0400, // 0021 CALL R3 2 - 0x90022403, // 0022 SETMBR R0 K18 R3 - 0x500C0000, // 0023 LDBOOL R3 0 0 - 0x90022803, // 0024 SETMBR R0 K20 R3 - 0x8C0C0115, // 0025 GETMET R3 R0 K21 - 0x7C0C0200, // 0026 CALL R3 1 - 0xB80E0800, // 0027 GETNGBL R3 K4 - 0x8C0C0717, // 0028 GETMET R3 R3 K23 - 0x5C140000, // 0029 MOVE R5 R0 - 0x7C0C0400, // 002A CALL R3 2 - 0x90022C03, // 002B SETMBR R0 K22 R3 - 0x880C0116, // 002C GETMBR R3 R0 K22 - 0x8C0C0718, // 002D GETMET R3 R3 K24 - 0x7C0C0200, // 002E CALL R3 1 - 0xB80E0800, // 002F GETNGBL R3 K4 - 0x8C0C071A, // 0030 GETMET R3 R3 K26 - 0x5C140000, // 0031 MOVE R5 R0 - 0x7C0C0400, // 0032 CALL R3 2 - 0x90023203, // 0033 SETMBR R0 K25 R3 - 0xB80E0800, // 0034 GETNGBL R3 K4 - 0x8C0C0706, // 0035 GETMET R3 R3 K6 - 0x5C140000, // 0036 MOVE R5 R0 - 0x7C0C0400, // 0037 CALL R3 2 - 0x90023603, // 0038 SETMBR R0 K27 R3 - 0xB80E0400, // 0039 GETNGBL R3 K2 - 0x8C0C071C, // 003A GETMET R3 R3 K28 - 0x7C0C0200, // 003B CALL R3 1 - 0x940C071D, // 003C GETIDX R3 R3 K29 - 0x740E0004, // 003D JMPT R3 #0043 - 0xB80E0400, // 003E GETNGBL R3 K2 - 0x8C0C071E, // 003F GETMET R3 R3 K30 - 0x7C0C0200, // 0040 CALL R3 1 - 0x940C071D, // 0041 GETIDX R3 R3 K29 - 0x780E0001, // 0042 JMPF R3 #0045 - 0x8C0C011F, // 0043 GETMET R3 R0 K31 - 0x7C0C0200, // 0044 CALL R3 1 - 0xB80E0400, // 0045 GETNGBL R3 K2 - 0x8C0C071C, // 0046 GETMET R3 R3 K28 - 0x7C0C0200, // 0047 CALL R3 1 - 0x940C071D, // 0048 GETIDX R3 R3 K29 - 0x740E0005, // 0049 JMPT R3 #0050 - 0xB80E0400, // 004A GETNGBL R3 K2 - 0x8C0C0720, // 004B GETMET R3 R3 K32 - 0x58140021, // 004C LDCONST R5 K33 - 0x84180000, // 004D CLOSURE R6 P0 - 0x581C0022, // 004E LDCONST R7 K34 - 0x7C0C0800, // 004F CALL R3 4 - 0xB80E0400, // 0050 GETNGBL R3 K2 - 0x8C0C071E, // 0051 GETMET R3 R3 K30 - 0x7C0C0200, // 0052 CALL R3 1 - 0x940C071D, // 0053 GETIDX R3 R3 K29 - 0x740E0005, // 0054 JMPT R3 #005B - 0xB80E0400, // 0055 GETNGBL R3 K2 - 0x8C0C0720, // 0056 GETMET R3 R3 K32 - 0x58140023, // 0057 LDCONST R5 K35 - 0x84180001, // 0058 CLOSURE R6 P1 - 0x581C0022, // 0059 LDCONST R7 K34 - 0x7C0C0800, // 005A CALL R3 4 - 0x8C0C0124, // 005B GETMET R3 R0 K36 - 0x7C0C0200, // 005C CALL R3 1 - 0xB80E0400, // 005D GETNGBL R3 K2 - 0x8C0C0725, // 005E GETMET R3 R3 K37 - 0x5C140000, // 005F MOVE R5 R0 - 0x7C0C0400, // 0060 CALL R3 2 - 0x8C0C0126, // 0061 GETMET R3 R0 K38 - 0x7C0C0200, // 0062 CALL R3 1 - 0xA0000000, // 0063 CLOSE R0 - 0x80000000, // 0064 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: start -********************************************************************/ -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 */ - 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(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_local_closure(Matter_Device_every_second, /* name */ be_nested_proto( 4, /* nstack */ 1, /* argc */ @@ -2064,25 +1546,50 @@ be_local_closure(Matter_Device_stop, /* name */ 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), + ( &(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(stop), + be_str_weak(every_second), &be_const_str_solidified, - ( &(const binstruction[10]) { /* code */ - 0xB8060000, // 0000 GETNGBL R1 K0 + ( &(const binstruction[30]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 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 + 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 }) ) ); @@ -2090,214 +1597,9 @@ be_local_closure(Matter_Device_stop, /* name */ /******************************************************************** -** Solidified function: stop_basic_commissioning +** Solidified function: get_plugin_class_arg ********************************************************************/ -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_basic_commissioning -********************************************************************/ -be_local_closure(Matter_Device_start_basic_commissioning, /* name */ - be_nested_proto( - 13, /* nstack */ - 8, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 2]) { - be_nested_proto( - 4, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(mdns_announce_PASE), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(remove_rule), - /* K3 */ be_nested_str_weak(Wifi_X23Connected), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x7C000200, // 0002 CALL R0 1 - 0xB8020200, // 0003 GETNGBL R0 K1 - 0x8C000102, // 0004 GETMET R0 R0 K2 - 0x58080003, // 0005 LDCONST R2 K3 - 0x580C0000, // 0006 LDCONST R3 K0 - 0x7C000600, // 0007 CALL R0 3 - 0x80000000, // 0008 RET 0 - }) - ), - be_nested_proto( - 4, /* nstack */ - 0, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(mdns_announce_PASE), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(remove_rule), - /* K3 */ be_nested_str_weak(Eth_X23Connected), - }), - be_str_weak(_anonymous_), - &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x68000000, // 0000 GETUPV R0 U0 - 0x8C000100, // 0001 GETMET R0 R0 K0 - 0x7C000200, // 0002 CALL R0 1 - 0xB8020200, // 0003 GETNGBL R0 K1 - 0x8C000102, // 0004 GETMET R0 R0 K2 - 0x58080003, // 0005 LDCONST R2 K3 - 0x580C0000, // 0006 LDCONST R3 K0 - 0x7C000600, // 0007 CALL R0 3 - 0x80000000, // 0008 RET 0 - }) - ), - }), - 1, /* has constants */ - ( &(const bvalue[16]) { /* constants */ - /* K0 */ be_nested_str_weak(commissioning_open), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(millis), - /* K3 */ be_nested_str_weak(commissioning_iterations), - /* K4 */ be_nested_str_weak(commissioning_discriminator), - /* K5 */ be_nested_str_weak(commissioning_salt), - /* K6 */ be_nested_str_weak(commissioning_w0), - /* K7 */ be_nested_str_weak(commissioning_L), - /* K8 */ be_nested_str_weak(commissioning_admin_fabric), - /* K9 */ be_nested_str_weak(wifi), - /* K10 */ be_nested_str_weak(up), - /* K11 */ be_nested_str_weak(eth), - /* K12 */ be_nested_str_weak(mdns_announce_PASE), - /* K13 */ be_nested_str_weak(add_rule), - /* K14 */ be_nested_str_weak(Wifi_X23Connected), - /* K15 */ be_nested_str_weak(Eth_X23Connected), - }), - be_str_weak(start_basic_commissioning), - &be_const_str_solidified, - ( &(const binstruction[40]) { /* code */ - 0xB8220200, // 0000 GETNGBL R8 K1 - 0x8C201102, // 0001 GETMET R8 R8 K2 - 0x7C200200, // 0002 CALL R8 1 - 0x542603E7, // 0003 LDINT R9 1000 - 0x08240209, // 0004 MUL R9 R1 R9 - 0x00201009, // 0005 ADD R8 R8 R9 - 0x90020008, // 0006 SETMBR R0 K0 R8 - 0x90020602, // 0007 SETMBR R0 K3 R2 - 0x90020803, // 0008 SETMBR R0 K4 R3 - 0x90020A04, // 0009 SETMBR R0 K5 R4 - 0x90020C05, // 000A SETMBR R0 K6 R5 - 0x90020E06, // 000B SETMBR R0 K7 R6 - 0x90021007, // 000C SETMBR R0 K8 R7 - 0xB8220200, // 000D GETNGBL R8 K1 - 0x8C201109, // 000E GETMET R8 R8 K9 - 0x7C200200, // 000F CALL R8 1 - 0x9420110A, // 0010 GETIDX R8 R8 K10 - 0x74220004, // 0011 JMPT R8 #0017 - 0xB8220200, // 0012 GETNGBL R8 K1 - 0x8C20110B, // 0013 GETMET R8 R8 K11 - 0x7C200200, // 0014 CALL R8 1 - 0x9420110A, // 0015 GETIDX R8 R8 K10 - 0x78220002, // 0016 JMPF R8 #001A - 0x8C20010C, // 0017 GETMET R8 R0 K12 - 0x7C200200, // 0018 CALL R8 1 - 0x7002000B, // 0019 JMP #0026 - 0xB8220200, // 001A GETNGBL R8 K1 - 0x8C20110D, // 001B GETMET R8 R8 K13 - 0x5828000E, // 001C LDCONST R10 K14 - 0x842C0000, // 001D CLOSURE R11 P0 - 0x5830000C, // 001E LDCONST R12 K12 - 0x7C200800, // 001F CALL R8 4 - 0xB8220200, // 0020 GETNGBL R8 K1 - 0x8C20110D, // 0021 GETMET R8 R8 K13 - 0x5828000F, // 0022 LDCONST R10 K15 - 0x842C0001, // 0023 CLOSURE R11 P1 - 0x5830000C, // 0024 LDCONST R12 K12 - 0x7C200800, // 0025 CALL R8 4 - 0xA0000000, // 0026 CLOSE R0 - 0x80000000, // 0027 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: msg_send -********************************************************************/ -be_local_closure(Matter_Device_msg_send, /* name */ +be_local_closure(Matter_Device_get_plugin_class_arg, /* name */ be_nested_proto( 5, /* nstack */ 2, /* argc */ @@ -2307,78 +1609,24 @@ be_local_closure(Matter_Device_msg_send, /* name */ 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), + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(plugins_classes), + /* K1 */ be_nested_str_weak(find), + /* K2 */ be_nested_str_weak(ARG), + /* K3 */ be_nested_str_weak(), }), - be_str_weak(msg_send), + be_str_weak(get_plugin_class_arg), &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ + ( &(const binstruction[ 9]) { /* code */ 0x88080100, // 0000 GETMBR R2 R0 K0 0x8C080501, // 0001 GETMET R2 R2 K1 0x5C100200, // 0002 MOVE R4 R1 0x7C080400, // 0003 CALL R2 2 - 0x80040400, // 0004 RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: start_commissioning_complete_deferred -********************************************************************/ -be_local_closure(Matter_Device_start_commissioning_complete_deferred, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 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 - }) - ), - }), - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str_weak(tasmota), - /* K1 */ be_nested_str_weak(set_timer), - /* K2 */ be_const_int(0), - }), - be_str_weak(start_commissioning_complete_deferred), - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0xB80A0000, // 0000 GETNGBL R2 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x58100002, // 0002 LDCONST R4 K2 - 0x84140000, // 0003 CLOSURE R5 P0 - 0x7C080600, // 0004 CALL R2 3 - 0xA0000000, // 0005 CLOSE R0 - 0x80000000, // 0006 RET 0 + 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 }) ) ); @@ -2422,1379 +1670,6 @@ be_local_closure(Matter_Device_is_root_commissioning_open, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: _load_plugins_config -********************************************************************/ -be_local_closure(Matter_Device__load_plugins_config, /* name */ - be_nested_proto( - 19, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[27]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(k2l_num), - /* K2 */ be_nested_str_weak(tasmota), - /* K3 */ be_nested_str_weak(log), - /* K4 */ be_nested_str_weak(MTR_X3A_X20endpoints_X20to_X20be_X20configured_X20), - /* K5 */ be_const_int(3), - /* K6 */ be_nested_str_weak(format), - /* K7 */ be_nested_str_weak(MTR_X3A_X20endpoint_X20_X25i_X20config_X20_X25s), - /* K8 */ be_nested_str_weak(find), - /* K9 */ be_nested_str_weak(type), - /* K10 */ be_nested_str_weak(MTR_X3A_X20no_X20class_X20name_X2C_X20skipping), - /* K11 */ be_nested_str_weak(plugins_classes), - /* K12 */ be_nested_str_weak(MTR_X3A_X20unknown_X20class_X20name_X20_X27), - /* K13 */ be_nested_str_weak(_X27_X20skipping), - /* K14 */ be_const_int(2), - /* K15 */ be_nested_str_weak(plugins), - /* K16 */ be_nested_str_weak(push), - /* K17 */ be_nested_str_weak(), - /* K18 */ be_nested_str_weak(k2l), - /* K19 */ be_nested_str_weak(_X20_X25s_X3A_X25s), - /* K20 */ be_nested_str_weak(stop_iteration), - /* K21 */ be_nested_str_weak(MTR_X3A_X20endpoint_X3A_X25i_X20type_X3A_X25s_X25s), - /* K22 */ be_nested_str_weak(MTR_X3A_X20Exception), - /* K23 */ be_nested_str_weak(_X7C), - /* K24 */ be_nested_str_weak(publish_result), - /* K25 */ be_nested_str_weak(_X7B_X22Matter_X22_X3A_X7B_X22Initialized_X22_X3A1_X7D_X7D), - /* K26 */ be_nested_str_weak(Matter), - }), - be_str_weak(_load_plugins_config), - &be_const_str_solidified, - ( &(const binstruction[133]) { /* code */ - 0xA40A0000, // 0000 IMPORT R2 K0 - 0x8C0C0101, // 0001 GETMET R3 R0 K1 - 0x5C140200, // 0002 MOVE R5 R1 - 0x7C0C0400, // 0003 CALL R3 2 - 0xB8120400, // 0004 GETNGBL R4 K2 - 0x8C100903, // 0005 GETMET R4 R4 K3 - 0x60180008, // 0006 GETGBL R6 G8 - 0x5C1C0600, // 0007 MOVE R7 R3 - 0x7C180200, // 0008 CALL R6 1 - 0x001A0806, // 0009 ADD R6 K4 R6 - 0x581C0005, // 000A LDCONST R7 K5 - 0x7C100600, // 000B CALL R4 3 - 0x60100010, // 000C GETGBL R4 G16 - 0x5C140600, // 000D MOVE R5 R3 - 0x7C100200, // 000E CALL R4 1 - 0xA802006B, // 000F EXBLK 0 #007C - 0x5C140800, // 0010 MOVE R5 R4 - 0x7C140000, // 0011 CALL R5 0 - 0xA8020056, // 0012 EXBLK 0 #006A - 0x60180008, // 0013 GETGBL R6 G8 - 0x5C1C0A00, // 0014 MOVE R7 R5 - 0x7C180200, // 0015 CALL R6 1 - 0x94180206, // 0016 GETIDX R6 R1 R6 - 0xB81E0400, // 0017 GETNGBL R7 K2 - 0x8C1C0F03, // 0018 GETMET R7 R7 K3 - 0x8C240506, // 0019 GETMET R9 R2 K6 - 0x582C0007, // 001A LDCONST R11 K7 - 0x5C300A00, // 001B MOVE R12 R5 - 0x5C340C00, // 001C MOVE R13 R6 - 0x7C240800, // 001D CALL R9 4 - 0x58280005, // 001E LDCONST R10 K5 - 0x7C1C0600, // 001F CALL R7 3 - 0x8C1C0D08, // 0020 GETMET R7 R6 K8 - 0x58240009, // 0021 LDCONST R9 K9 - 0x7C1C0400, // 0022 CALL R7 2 - 0x4C200000, // 0023 LDNIL R8 - 0x1C200E08, // 0024 EQ R8 R7 R8 - 0x78220006, // 0025 JMPF R8 #002D - 0xB8220400, // 0026 GETNGBL R8 K2 - 0x8C201103, // 0027 GETMET R8 R8 K3 - 0x5828000A, // 0028 LDCONST R10 K10 - 0x582C0005, // 0029 LDCONST R11 K5 - 0x7C200600, // 002A CALL R8 3 - 0xA8040001, // 002B EXBLK 1 1 - 0x7001FFE2, // 002C JMP #0010 - 0x8820010B, // 002D GETMBR R8 R0 K11 - 0x8C201108, // 002E GETMET R8 R8 K8 - 0x5C280E00, // 002F MOVE R10 R7 - 0x7C200400, // 0030 CALL R8 2 - 0x4C240000, // 0031 LDNIL R9 - 0x1C241009, // 0032 EQ R9 R8 R9 - 0x7826000A, // 0033 JMPF R9 #003F - 0xB8260400, // 0034 GETNGBL R9 K2 - 0x8C241303, // 0035 GETMET R9 R9 K3 - 0x602C0008, // 0036 GETGBL R11 G8 - 0x5C300E00, // 0037 MOVE R12 R7 - 0x7C2C0200, // 0038 CALL R11 1 - 0x002E180B, // 0039 ADD R11 K12 R11 - 0x002C170D, // 003A ADD R11 R11 K13 - 0x5830000E, // 003B LDCONST R12 K14 - 0x7C240600, // 003C CALL R9 3 - 0xA8040001, // 003D EXBLK 1 1 - 0x7001FFD0, // 003E JMP #0010 - 0x5C241000, // 003F MOVE R9 R8 - 0x5C280000, // 0040 MOVE R10 R0 - 0x5C2C0A00, // 0041 MOVE R11 R5 - 0x5C300C00, // 0042 MOVE R12 R6 - 0x7C240600, // 0043 CALL R9 3 - 0x8828010F, // 0044 GETMBR R10 R0 K15 - 0x8C281510, // 0045 GETMET R10 R10 K16 - 0x5C301200, // 0046 MOVE R12 R9 - 0x7C280400, // 0047 CALL R10 2 - 0x58280011, // 0048 LDCONST R10 K17 - 0x602C0010, // 0049 GETGBL R11 G16 - 0x8C300112, // 004A GETMET R12 R0 K18 - 0x5C380C00, // 004B MOVE R14 R6 - 0x7C300400, // 004C CALL R12 2 - 0x7C2C0200, // 004D CALL R11 1 - 0xA802000B, // 004E EXBLK 0 #005B - 0x5C301600, // 004F MOVE R12 R11 - 0x7C300000, // 0050 CALL R12 0 - 0x1C341909, // 0051 EQ R13 R12 K9 - 0x78360000, // 0052 JMPF R13 #0054 - 0x7001FFFA, // 0053 JMP #004F - 0x8C340506, // 0054 GETMET R13 R2 K6 - 0x583C0013, // 0055 LDCONST R15 K19 - 0x5C401800, // 0056 MOVE R16 R12 - 0x94440C0C, // 0057 GETIDX R17 R6 R12 - 0x7C340800, // 0058 CALL R13 4 - 0x0028140D, // 0059 ADD R10 R10 R13 - 0x7001FFF3, // 005A JMP #004F - 0x582C0014, // 005B LDCONST R11 K20 - 0xAC2C0200, // 005C CATCH R11 1 0 - 0xB0080000, // 005D RAISE 2 R0 R0 - 0xB82E0400, // 005E GETNGBL R11 K2 - 0x8C2C1703, // 005F GETMET R11 R11 K3 - 0x8C340506, // 0060 GETMET R13 R2 K6 - 0x583C0015, // 0061 LDCONST R15 K21 - 0x5C400A00, // 0062 MOVE R16 R5 - 0x5C440E00, // 0063 MOVE R17 R7 - 0x5C481400, // 0064 MOVE R18 R10 - 0x7C340A00, // 0065 CALL R13 5 - 0x5838000E, // 0066 LDCONST R14 K14 - 0x7C2C0600, // 0067 CALL R11 3 - 0xA8040001, // 0068 EXBLK 1 1 - 0x70020010, // 0069 JMP #007B - 0xAC180002, // 006A CATCH R6 0 2 - 0x7002000D, // 006B JMP #007A - 0xB8220400, // 006C GETNGBL R8 K2 - 0x8C201103, // 006D GETMET R8 R8 K3 - 0x60280008, // 006E GETGBL R10 G8 - 0x5C2C0C00, // 006F MOVE R11 R6 - 0x7C280200, // 0070 CALL R10 1 - 0x002A2C0A, // 0071 ADD R10 K22 R10 - 0x00281517, // 0072 ADD R10 R10 K23 - 0x602C0008, // 0073 GETGBL R11 G8 - 0x5C300E00, // 0074 MOVE R12 R7 - 0x7C2C0200, // 0075 CALL R11 1 - 0x0028140B, // 0076 ADD R10 R10 R11 - 0x582C000E, // 0077 LDCONST R11 K14 - 0x7C200600, // 0078 CALL R8 3 - 0x70020000, // 0079 JMP #007B - 0xB0080000, // 007A RAISE 2 R0 R0 - 0x7001FF93, // 007B JMP #0010 - 0x58100014, // 007C LDCONST R4 K20 - 0xAC100200, // 007D CATCH R4 1 0 - 0xB0080000, // 007E RAISE 2 R0 R0 - 0xB8120400, // 007F GETNGBL R4 K2 - 0x8C100918, // 0080 GETMET R4 R4 K24 - 0x58180019, // 0081 LDCONST R6 K25 - 0x581C001A, // 0082 LDCONST R7 K26 - 0x7C100600, // 0083 CALL R4 3 - 0x80000000, // 0084 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: 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 -********************************************************************/ -be_local_closure(Matter_Device_autoconf_device_map, /* name */ - be_nested_proto( - 16, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[36]) { /* constants */ - /* K0 */ be_nested_str_weak(json), - /* K1 */ be_nested_str_weak(0), - /* K2 */ be_nested_str_weak(type), - /* K3 */ be_nested_str_weak(root), - /* K4 */ be_const_int(1), - /* K5 */ be_nested_str_weak(light), - /* K6 */ be_nested_str_weak(get), - /* K7 */ be_nested_str_weak(find), - /* K8 */ be_nested_str_weak(channels), - /* K9 */ be_nested_str_weak(), - /* K10 */ be_const_int(0), - /* K11 */ be_nested_str_weak(light1), - /* K12 */ be_const_int(2), - /* K13 */ be_nested_str_weak(light2), - /* K14 */ be_nested_str_weak(light3), - /* K15 */ be_nested_str_weak(tasmota), - /* K16 */ be_nested_str_weak(get_power), - /* K17 */ be_nested_str_weak(relay), - /* K18 */ be_nested_str_weak(load), - /* K19 */ be_nested_str_weak(read_sensors), - /* K20 */ be_nested_str_weak(k2l), - /* K21 */ be_nested_str_weak(contains), - /* K22 */ be_nested_str_weak(Temperature), - /* K23 */ be_nested_str_weak(_X23Temperature), - /* K24 */ be_nested_str_weak(temperature), - /* K25 */ be_nested_str_weak(filter), - /* K26 */ be_nested_str_weak(stop_iteration), - /* K27 */ be_nested_str_weak(Pressure), - /* K28 */ be_nested_str_weak(_X23Pressure), - /* K29 */ be_nested_str_weak(pressure), - /* K30 */ be_nested_str_weak(Illuminance), - /* K31 */ be_nested_str_weak(_X23Illuminance), - /* K32 */ be_nested_str_weak(illuminance), - /* K33 */ be_nested_str_weak(Humidity), - /* K34 */ be_nested_str_weak(_X23Humidity), - /* K35 */ be_nested_str_weak(humidity), - }), - be_str_weak(autoconf_device_map), - &be_const_str_solidified, - ( &(const binstruction[235]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0x60080013, // 0001 GETGBL R2 G19 - 0x7C080000, // 0002 CALL R2 0 - 0x600C0013, // 0003 GETGBL R3 G19 - 0x7C0C0000, // 0004 CALL R3 0 - 0x980E0503, // 0005 SETIDX R3 K2 K3 - 0x980A0203, // 0006 SETIDX R2 K1 R3 - 0x580C0004, // 0007 LDCONST R3 K4 - 0x50100000, // 0008 LDBOOL R4 0 0 - 0xA4160A00, // 0009 IMPORT R5 K5 - 0x8C180B06, // 000A GETMET R6 R5 K6 - 0x7C180200, // 000B CALL R6 1 - 0x4C1C0000, // 000C LDNIL R7 - 0x201C0C07, // 000D NE R7 R6 R7 - 0x781E0024, // 000E JMPF R7 #0034 - 0x601C000C, // 000F GETGBL R7 G12 - 0x8C200D07, // 0010 GETMET R8 R6 K7 - 0x58280008, // 0011 LDCONST R10 K8 - 0x582C0009, // 0012 LDCONST R11 K9 - 0x7C200600, // 0013 CALL R8 3 - 0x7C1C0200, // 0014 CALL R7 1 - 0x24200F0A, // 0015 GT R8 R7 K10 - 0x7822001C, // 0016 JMPF R8 #0034 - 0x1C200F04, // 0017 EQ R8 R7 K4 - 0x78220007, // 0018 JMPF R8 #0021 - 0x60200008, // 0019 GETGBL R8 G8 - 0x5C240600, // 001A MOVE R9 R3 - 0x7C200200, // 001B CALL R8 1 - 0x60240013, // 001C GETGBL R9 G19 - 0x7C240000, // 001D CALL R9 0 - 0x9826050B, // 001E SETIDX R9 K2 K11 - 0x98081009, // 001F SETIDX R2 R8 R9 - 0x70020010, // 0020 JMP #0032 - 0x1C200F0C, // 0021 EQ R8 R7 K12 - 0x78220007, // 0022 JMPF R8 #002B - 0x60200008, // 0023 GETGBL R8 G8 - 0x5C240600, // 0024 MOVE R9 R3 - 0x7C200200, // 0025 CALL R8 1 - 0x60240013, // 0026 GETGBL R9 G19 - 0x7C240000, // 0027 CALL R9 0 - 0x9826050D, // 0028 SETIDX R9 K2 K13 - 0x98081009, // 0029 SETIDX R2 R8 R9 - 0x70020006, // 002A JMP #0032 - 0x60200008, // 002B GETGBL R8 G8 - 0x5C240600, // 002C MOVE R9 R3 - 0x7C200200, // 002D CALL R8 1 - 0x60240013, // 002E GETGBL R9 G19 - 0x7C240000, // 002F CALL R9 0 - 0x9826050E, // 0030 SETIDX R9 K2 K14 - 0x98081009, // 0031 SETIDX R2 R8 R9 - 0x50100200, // 0032 LDBOOL R4 1 0 - 0x000C0704, // 0033 ADD R3 R3 K4 - 0x601C000C, // 0034 GETGBL R7 G12 - 0xB8221E00, // 0035 GETNGBL R8 K15 - 0x8C201110, // 0036 GETMET R8 R8 K16 - 0x7C200200, // 0037 CALL R8 1 - 0x7C1C0200, // 0038 CALL R7 1 - 0x5820000A, // 0039 LDCONST R8 K10 - 0x78120000, // 003A JMPF R4 #003C - 0x041C0F04, // 003B SUB R7 R7 K4 - 0x14241007, // 003C LT R9 R8 R7 - 0x7826000A, // 003D JMPF R9 #0049 - 0x60240008, // 003E GETGBL R9 G8 - 0x5C280600, // 003F MOVE R10 R3 - 0x7C240200, // 0040 CALL R9 1 - 0x60280013, // 0041 GETGBL R10 G19 - 0x7C280000, // 0042 CALL R10 0 - 0x982A0511, // 0043 SETIDX R10 K2 K17 - 0x982A2208, // 0044 SETIDX R10 K17 R8 - 0x9808120A, // 0045 SETIDX R2 R9 R10 - 0x00201104, // 0046 ADD R8 R8 K4 - 0x000C0704, // 0047 ADD R3 R3 K4 - 0x7001FFF2, // 0048 JMP #003C - 0x8C240312, // 0049 GETMET R9 R1 K18 - 0xB82E1E00, // 004A GETNGBL R11 K15 - 0x8C2C1713, // 004B GETMET R11 R11 K19 - 0x7C2C0200, // 004C CALL R11 1 - 0x7C240400, // 004D CALL R9 2 - 0x540E001F, // 004E LDINT R3 32 - 0x60280010, // 004F GETGBL R10 G16 - 0x8C2C0114, // 0050 GETMET R11 R0 K20 - 0x5C341200, // 0051 MOVE R13 R9 - 0x7C2C0400, // 0052 CALL R11 2 - 0x7C280200, // 0053 CALL R10 1 - 0xA802001C, // 0054 EXBLK 0 #0072 - 0x5C2C1400, // 0055 MOVE R11 R10 - 0x7C2C0000, // 0056 CALL R11 0 - 0x9430120B, // 0057 GETIDX R12 R9 R11 - 0x6034000F, // 0058 GETGBL R13 G15 - 0x5C381800, // 0059 MOVE R14 R12 - 0x603C0013, // 005A GETGBL R15 G19 - 0x7C340400, // 005B CALL R13 2 - 0x7836000D, // 005C JMPF R13 #006B - 0x8C341915, // 005D GETMET R13 R12 K21 - 0x583C0016, // 005E LDCONST R15 K22 - 0x7C340400, // 005F CALL R13 2 - 0x78360009, // 0060 JMPF R13 #006B - 0x00341717, // 0061 ADD R13 R11 K23 - 0x60380008, // 0062 GETGBL R14 G8 - 0x5C3C0600, // 0063 MOVE R15 R3 - 0x7C380200, // 0064 CALL R14 1 - 0x603C0013, // 0065 GETGBL R15 G19 - 0x7C3C0000, // 0066 CALL R15 0 - 0x983E0518, // 0067 SETIDX R15 K2 K24 - 0x983E320D, // 0068 SETIDX R15 K25 R13 - 0x98081C0F, // 0069 SETIDX R2 R14 R15 - 0x000C0704, // 006A ADD R3 R3 K4 - 0x54360027, // 006B LDINT R13 40 - 0x2434060D, // 006C GT R13 R3 R13 - 0x78360000, // 006D JMPF R13 #006F - 0x70020000, // 006E JMP #0070 - 0x7001FFE4, // 006F JMP #0055 - 0xA8040001, // 0070 EXBLK 1 1 - 0x70020002, // 0071 JMP #0075 - 0x5828001A, // 0072 LDCONST R10 K26 - 0xAC280200, // 0073 CATCH R10 1 0 - 0xB0080000, // 0074 RAISE 2 R0 R0 - 0x540E0027, // 0075 LDINT R3 40 - 0x60280010, // 0076 GETGBL R10 G16 - 0x8C2C0114, // 0077 GETMET R11 R0 K20 - 0x5C341200, // 0078 MOVE R13 R9 - 0x7C2C0400, // 0079 CALL R11 2 - 0x7C280200, // 007A CALL R10 1 - 0xA802001C, // 007B EXBLK 0 #0099 - 0x5C2C1400, // 007C MOVE R11 R10 - 0x7C2C0000, // 007D CALL R11 0 - 0x9430120B, // 007E GETIDX R12 R9 R11 - 0x6034000F, // 007F GETGBL R13 G15 - 0x5C381800, // 0080 MOVE R14 R12 - 0x603C0013, // 0081 GETGBL R15 G19 - 0x7C340400, // 0082 CALL R13 2 - 0x7836000D, // 0083 JMPF R13 #0092 - 0x8C341915, // 0084 GETMET R13 R12 K21 - 0x583C001B, // 0085 LDCONST R15 K27 - 0x7C340400, // 0086 CALL R13 2 - 0x78360009, // 0087 JMPF R13 #0092 - 0x0034171C, // 0088 ADD R13 R11 K28 - 0x60380008, // 0089 GETGBL R14 G8 - 0x5C3C0600, // 008A MOVE R15 R3 - 0x7C380200, // 008B CALL R14 1 - 0x603C0013, // 008C GETGBL R15 G19 - 0x7C3C0000, // 008D CALL R15 0 - 0x983E051D, // 008E SETIDX R15 K2 K29 - 0x983E320D, // 008F SETIDX R15 K25 R13 - 0x98081C0F, // 0090 SETIDX R2 R14 R15 - 0x000C0704, // 0091 ADD R3 R3 K4 - 0x5436002E, // 0092 LDINT R13 47 - 0x2434060D, // 0093 GT R13 R3 R13 - 0x78360000, // 0094 JMPF R13 #0096 - 0x70020000, // 0095 JMP #0097 - 0x7001FFE4, // 0096 JMP #007C - 0xA8040001, // 0097 EXBLK 1 1 - 0x70020002, // 0098 JMP #009C - 0x5828001A, // 0099 LDCONST R10 K26 - 0xAC280200, // 009A CATCH R10 1 0 - 0xB0080000, // 009B RAISE 2 R0 R0 - 0x540E002F, // 009C LDINT R3 48 - 0x60280010, // 009D GETGBL R10 G16 - 0x8C2C0114, // 009E GETMET R11 R0 K20 - 0x5C341200, // 009F MOVE R13 R9 - 0x7C2C0400, // 00A0 CALL R11 2 - 0x7C280200, // 00A1 CALL R10 1 - 0xA802001C, // 00A2 EXBLK 0 #00C0 - 0x5C2C1400, // 00A3 MOVE R11 R10 - 0x7C2C0000, // 00A4 CALL R11 0 - 0x9430120B, // 00A5 GETIDX R12 R9 R11 - 0x6034000F, // 00A6 GETGBL R13 G15 - 0x5C381800, // 00A7 MOVE R14 R12 - 0x603C0013, // 00A8 GETGBL R15 G19 - 0x7C340400, // 00A9 CALL R13 2 - 0x7836000D, // 00AA JMPF R13 #00B9 - 0x8C341915, // 00AB GETMET R13 R12 K21 - 0x583C001E, // 00AC LDCONST R15 K30 - 0x7C340400, // 00AD CALL R13 2 - 0x78360009, // 00AE JMPF R13 #00B9 - 0x0034171F, // 00AF ADD R13 R11 K31 - 0x60380008, // 00B0 GETGBL R14 G8 - 0x5C3C0600, // 00B1 MOVE R15 R3 - 0x7C380200, // 00B2 CALL R14 1 - 0x603C0013, // 00B3 GETGBL R15 G19 - 0x7C3C0000, // 00B4 CALL R15 0 - 0x983E0520, // 00B5 SETIDX R15 K2 K32 - 0x983E320D, // 00B6 SETIDX R15 K25 R13 - 0x98081C0F, // 00B7 SETIDX R2 R14 R15 - 0x000C0704, // 00B8 ADD R3 R3 K4 - 0x54360037, // 00B9 LDINT R13 56 - 0x2434060D, // 00BA GT R13 R3 R13 - 0x78360000, // 00BB JMPF R13 #00BD - 0x70020000, // 00BC JMP #00BE - 0x7001FFE4, // 00BD JMP #00A3 - 0xA8040001, // 00BE EXBLK 1 1 - 0x70020002, // 00BF JMP #00C3 - 0x5828001A, // 00C0 LDCONST R10 K26 - 0xAC280200, // 00C1 CATCH R10 1 0 - 0xB0080000, // 00C2 RAISE 2 R0 R0 - 0x540E0037, // 00C3 LDINT R3 56 - 0x60280010, // 00C4 GETGBL R10 G16 - 0x8C2C0114, // 00C5 GETMET R11 R0 K20 - 0x5C341200, // 00C6 MOVE R13 R9 - 0x7C2C0400, // 00C7 CALL R11 2 - 0x7C280200, // 00C8 CALL R10 1 - 0xA802001C, // 00C9 EXBLK 0 #00E7 - 0x5C2C1400, // 00CA MOVE R11 R10 - 0x7C2C0000, // 00CB CALL R11 0 - 0x9430120B, // 00CC GETIDX R12 R9 R11 - 0x6034000F, // 00CD GETGBL R13 G15 - 0x5C381800, // 00CE MOVE R14 R12 - 0x603C0013, // 00CF GETGBL R15 G19 - 0x7C340400, // 00D0 CALL R13 2 - 0x7836000D, // 00D1 JMPF R13 #00E0 - 0x8C341915, // 00D2 GETMET R13 R12 K21 - 0x583C0021, // 00D3 LDCONST R15 K33 - 0x7C340400, // 00D4 CALL R13 2 - 0x78360009, // 00D5 JMPF R13 #00E0 - 0x00341722, // 00D6 ADD R13 R11 K34 - 0x60380008, // 00D7 GETGBL R14 G8 - 0x5C3C0600, // 00D8 MOVE R15 R3 - 0x7C380200, // 00D9 CALL R14 1 - 0x603C0013, // 00DA GETGBL R15 G19 - 0x7C3C0000, // 00DB CALL R15 0 - 0x983E0523, // 00DC SETIDX R15 K2 K35 - 0x983E320D, // 00DD SETIDX R15 K25 R13 - 0x98081C0F, // 00DE SETIDX R2 R14 R15 - 0x000C0704, // 00DF ADD R3 R3 K4 - 0x5436003F, // 00E0 LDINT R13 64 - 0x2434060D, // 00E1 GT R13 R3 R13 - 0x78360000, // 00E2 JMPF R13 #00E4 - 0x70020000, // 00E3 JMP #00E5 - 0x7001FFE4, // 00E4 JMP #00CA - 0xA8040001, // 00E5 EXBLK 1 1 - 0x70020002, // 00E6 JMP #00EA - 0x5828001A, // 00E7 LDCONST R10 K26 - 0xAC280200, // 00E8 CATCH R10 1 0 - 0xB0080000, // 00E9 RAISE 2 R0 R0 - 0x80040400, // 00EA RET 1 R2 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: remove_fabric -********************************************************************/ -be_local_closure(Matter_Device_remove_fabric, /* name */ - be_nested_proto( - 9, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[12]) { /* constants */ - /* K0 */ be_nested_str_weak(sessions), - /* K1 */ be_nested_str_weak(find_children_fabrics), - /* K2 */ be_nested_str_weak(get_fabric_index), - /* K3 */ be_nested_str_weak(find_fabric_by_index), - /* K4 */ be_nested_str_weak(message_handler), - /* K5 */ be_nested_str_weak(im), - /* K6 */ be_nested_str_weak(subs_shop), - /* K7 */ be_nested_str_weak(remove_by_fabric), - /* K8 */ be_nested_str_weak(mdns_remove_op_discovery), - /* K9 */ be_nested_str_weak(remove_fabric), - /* K10 */ be_nested_str_weak(stop_iteration), - /* K11 */ be_nested_str_weak(save_fabrics), - }), - be_str_weak(remove_fabric), - &be_const_str_solidified, - ( &(const binstruction[43]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x8C100302, // 0002 GETMET R4 R1 K2 - 0x7C100200, // 0003 CALL R4 1 - 0x7C080400, // 0004 CALL R2 2 - 0x4C0C0000, // 0005 LDNIL R3 - 0x1C0C0403, // 0006 EQ R3 R2 R3 - 0x780E0000, // 0007 JMPF R3 #0009 - 0x80000600, // 0008 RET 0 - 0x600C0010, // 0009 GETGBL R3 G16 - 0x5C100400, // 000A MOVE R4 R2 - 0x7C0C0200, // 000B CALL R3 1 - 0xA8020016, // 000C EXBLK 0 #0024 - 0x5C100600, // 000D MOVE R4 R3 - 0x7C100000, // 000E CALL R4 0 - 0x88140100, // 000F GETMBR R5 R0 K0 - 0x8C140B03, // 0010 GETMET R5 R5 K3 - 0x5C1C0800, // 0011 MOVE R7 R4 - 0x7C140400, // 0012 CALL R5 2 - 0x4C180000, // 0013 LDNIL R6 - 0x20180A06, // 0014 NE R6 R5 R6 - 0x781A000C, // 0015 JMPF R6 #0023 - 0x88180104, // 0016 GETMBR R6 R0 K4 - 0x88180D05, // 0017 GETMBR R6 R6 K5 - 0x88180D06, // 0018 GETMBR R6 R6 K6 - 0x8C180D07, // 0019 GETMET R6 R6 K7 - 0x5C200A00, // 001A MOVE R8 R5 - 0x7C180400, // 001B CALL R6 2 - 0x8C180108, // 001C GETMET R6 R0 K8 - 0x5C200A00, // 001D MOVE R8 R5 - 0x7C180400, // 001E CALL R6 2 - 0x88180100, // 001F GETMBR R6 R0 K0 - 0x8C180D09, // 0020 GETMET R6 R6 K9 - 0x5C200A00, // 0021 MOVE R8 R5 - 0x7C180400, // 0022 CALL R6 2 - 0x7001FFE8, // 0023 JMP #000D - 0x580C000A, // 0024 LDCONST R3 K10 - 0xAC0C0200, // 0025 CATCH R3 1 0 - 0xB0080000, // 0026 RAISE 2 R0 R0 - 0x880C0100, // 0027 GETMBR R3 R0 K0 - 0x8C0C070B, // 0028 GETMET R3 R3 K11 - 0x7C0C0200, // 0029 CALL R3 1 - 0x80000000, // 002A RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: _init_basic_commissioning -********************************************************************/ -be_local_closure(Matter_Device__init_basic_commissioning, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 4]) { /* constants */ - /* K0 */ be_nested_str_weak(sessions), - /* K1 */ be_nested_str_weak(count_active_fabrics), - /* K2 */ be_const_int(0), - /* K3 */ be_nested_str_weak(start_root_basic_commissioning), - }), - be_str_weak(_init_basic_commissioning), - &be_const_str_solidified, - ( &(const binstruction[ 8]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x1C040302, // 0003 EQ R1 R1 K2 - 0x78060001, // 0004 JMPF R1 #0007 - 0x8C040103, // 0005 GETMET R1 R0 K3 - 0x7C040200, // 0006 CALL R1 1 - 0x80000000, // 0007 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: every_250ms -********************************************************************/ -be_local_closure(Matter_Device_every_250ms, /* name */ - be_nested_proto( - 3, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 2]) { /* constants */ - /* K0 */ be_nested_str_weak(message_handler), - /* K1 */ be_nested_str_weak(every_250ms), - }), - be_str_weak(every_250ms), - &be_const_str_solidified, - ( &(const binstruction[ 4]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x8C040301, // 0001 GETMET R1 R1 K1 - 0x7C040200, // 0002 CALL R1 1 - 0x80000000, // 0003 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: process_attribute_expansion -********************************************************************/ -be_local_closure(Matter_Device_process_attribute_expansion, /* name */ - be_nested_proto( - 29, /* nstack */ - 3, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 1]) { - be_nested_proto( - 7, /* nstack */ - 1, /* argc */ - 0, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ - /* K0 */ be_nested_str_weak(keys), - /* K1 */ be_nested_str_weak(push), - /* K2 */ be_nested_str_weak(stop_iteration), - /* K3 */ be_const_int(1), - /* K4 */ be_const_int(0), - }), - be_str_weak(keys_sorted), - &be_const_str_solidified, - ( &(const binstruction[45]) { /* code */ - 0x60040012, // 0000 GETGBL R1 G18 - 0x7C040000, // 0001 CALL R1 0 - 0x60080010, // 0002 GETGBL R2 G16 - 0x8C0C0100, // 0003 GETMET R3 R0 K0 - 0x7C0C0200, // 0004 CALL R3 1 - 0x7C080200, // 0005 CALL R2 1 - 0xA8020005, // 0006 EXBLK 0 #000D - 0x5C0C0400, // 0007 MOVE R3 R2 - 0x7C0C0000, // 0008 CALL R3 0 - 0x8C100301, // 0009 GETMET R4 R1 K1 - 0x5C180600, // 000A MOVE R6 R3 - 0x7C100400, // 000B CALL R4 2 - 0x7001FFF9, // 000C JMP #0007 - 0x58080002, // 000D LDCONST R2 K2 - 0xAC080200, // 000E CATCH R2 1 0 - 0xB0080000, // 000F RAISE 2 R0 R0 - 0x60080010, // 0010 GETGBL R2 G16 - 0x600C000C, // 0011 GETGBL R3 G12 - 0x5C100200, // 0012 MOVE R4 R1 - 0x7C0C0200, // 0013 CALL R3 1 - 0x040C0703, // 0014 SUB R3 R3 K3 - 0x400E0603, // 0015 CONNECT R3 K3 R3 - 0x7C080200, // 0016 CALL R2 1 - 0xA8020010, // 0017 EXBLK 0 #0029 - 0x5C0C0400, // 0018 MOVE R3 R2 - 0x7C0C0000, // 0019 CALL R3 0 - 0x94100203, // 001A GETIDX R4 R1 R3 - 0x5C140600, // 001B MOVE R5 R3 - 0x24180B04, // 001C GT R6 R5 K4 - 0x781A0008, // 001D JMPF R6 #0027 - 0x04180B03, // 001E SUB R6 R5 K3 - 0x94180206, // 001F GETIDX R6 R1 R6 - 0x24180C04, // 0020 GT R6 R6 R4 - 0x781A0004, // 0021 JMPF R6 #0027 - 0x04180B03, // 0022 SUB R6 R5 K3 - 0x94180206, // 0023 GETIDX R6 R1 R6 - 0x98040A06, // 0024 SETIDX R1 R5 R6 - 0x04140B03, // 0025 SUB R5 R5 K3 - 0x7001FFF4, // 0026 JMP #001C - 0x98040A04, // 0027 SETIDX R1 R5 R4 - 0x7001FFEE, // 0028 JMP #0018 - 0x58080002, // 0029 LDCONST R2 K2 - 0xAC080200, // 002A CATCH R2 1 0 - 0xB0080000, // 002B RAISE 2 R0 R0 - 0x80040200, // 002C RET 1 R1 - }) - ), - }), - 1, /* has constants */ - ( &(const bvalue[22]) { /* constants */ - /* K0 */ be_nested_str_weak(string), - /* K1 */ be_nested_str_weak(endpoint), - /* K2 */ be_nested_str_weak(cluster), - /* K3 */ be_nested_str_weak(attribute), - /* K4 */ be_nested_str_weak(plugins), - /* K5 */ be_nested_str_weak(get_endpoint), - /* K6 */ be_nested_str_weak(contains), - /* K7 */ be_nested_str_weak(get_cluster_list), - /* K8 */ be_nested_str_weak(get_attribute_list), - /* K9 */ be_nested_str_weak(push), - /* K10 */ be_nested_str_weak(stop_iteration), - /* K11 */ be_nested_str_weak(tasmota), - /* K12 */ be_nested_str_weak(log), - /* K13 */ be_nested_str_weak(format), - /* K14 */ be_nested_str_weak(MTR_X3A_X20expansion_X20_X5B_X2502X_X5D_X2504X_X2F_X2504X), - /* K15 */ be_const_int(3), - /* K16 */ be_nested_str_weak(status), - /* K17 */ be_nested_str_weak(matter), - /* K18 */ be_nested_str_weak(UNSUPPORTED_ENDPOINT), - /* K19 */ be_nested_str_weak(UNSUPPORTED_CLUSTER), - /* K20 */ be_nested_str_weak(UNSUPPORTED_ATTRIBUTE), - /* K21 */ be_nested_str_weak(UNREPORTABLE_ATTRIBUTE), - }), - be_str_weak(process_attribute_expansion), - &be_const_str_solidified, - ( &(const binstruction[216]) { /* code */ - 0x840C0000, // 0000 CLOSURE R3 P0 - 0xA4120000, // 0001 IMPORT R4 K0 - 0x88140301, // 0002 GETMBR R5 R1 K1 - 0x50180000, // 0003 LDBOOL R6 0 0 - 0x881C0302, // 0004 GETMBR R7 R1 K2 - 0x50200000, // 0005 LDBOOL R8 0 0 - 0x88240303, // 0006 GETMBR R9 R1 K3 - 0x50280000, // 0007 LDBOOL R10 0 0 - 0x882C0301, // 0008 GETMBR R11 R1 K1 - 0x4C300000, // 0009 LDNIL R12 - 0x202C160C, // 000A NE R11 R11 R12 - 0x782E0007, // 000B JMPF R11 #0014 - 0x882C0302, // 000C GETMBR R11 R1 K2 - 0x4C300000, // 000D LDNIL R12 - 0x202C160C, // 000E NE R11 R11 R12 - 0x782E0003, // 000F JMPF R11 #0014 - 0x882C0303, // 0010 GETMBR R11 R1 K3 - 0x4C300000, // 0011 LDNIL R12 - 0x202C160C, // 0012 NE R11 R11 R12 - 0x742E0000, // 0013 JMPT R11 #0015 - 0x502C0001, // 0014 LDBOOL R11 0 1 - 0x502C0200, // 0015 LDBOOL R11 1 0 - 0x60300013, // 0016 GETGBL R12 G19 - 0x7C300000, // 0017 CALL R12 0 - 0x60340010, // 0018 GETGBL R13 G16 - 0x88380104, // 0019 GETMBR R14 R0 K4 - 0x7C340200, // 001A CALL R13 1 - 0xA8020055, // 001B EXBLK 0 #0072 - 0x5C381A00, // 001C MOVE R14 R13 - 0x7C380000, // 001D CALL R14 0 - 0x8C3C1D05, // 001E GETMET R15 R14 K5 - 0x7C3C0200, // 001F CALL R15 1 - 0x4C400000, // 0020 LDNIL R16 - 0x20400A10, // 0021 NE R16 R5 R16 - 0x78420002, // 0022 JMPF R16 #0026 - 0x20401E05, // 0023 NE R16 R15 R5 - 0x78420000, // 0024 JMPF R16 #0026 - 0x7001FFF5, // 0025 JMP #001C - 0x8C401906, // 0026 GETMET R16 R12 K6 - 0x5C481E00, // 0027 MOVE R18 R15 - 0x7C400400, // 0028 CALL R16 2 - 0x74420002, // 0029 JMPT R16 #002D - 0x60400013, // 002A GETGBL R16 G19 - 0x7C400000, // 002B CALL R16 0 - 0x98301E10, // 002C SETIDX R12 R15 R16 - 0x50180200, // 002D LDBOOL R6 1 0 - 0x8C401D07, // 002E GETMET R16 R14 K7 - 0x5C481E00, // 002F MOVE R18 R15 - 0x7C400400, // 0030 CALL R16 2 - 0x60440010, // 0031 GETGBL R17 G16 - 0x5C482000, // 0032 MOVE R18 R16 - 0x7C440200, // 0033 CALL R17 1 - 0xA8020038, // 0034 EXBLK 0 #006E - 0x5C482200, // 0035 MOVE R18 R17 - 0x7C480000, // 0036 CALL R18 0 - 0x4C4C0000, // 0037 LDNIL R19 - 0x204C0E13, // 0038 NE R19 R7 R19 - 0x784E0002, // 0039 JMPF R19 #003D - 0x204C2407, // 003A NE R19 R18 R7 - 0x784E0000, // 003B JMPF R19 #003D - 0x7001FFF7, // 003C JMP #0035 - 0x944C180F, // 003D GETIDX R19 R12 R15 - 0x8C4C2706, // 003E GETMET R19 R19 K6 - 0x5C542400, // 003F MOVE R21 R18 - 0x7C4C0400, // 0040 CALL R19 2 - 0x744E0003, // 0041 JMPT R19 #0046 - 0x944C180F, // 0042 GETIDX R19 R12 R15 - 0x60500013, // 0043 GETGBL R20 G19 - 0x7C500000, // 0044 CALL R20 0 - 0x984C2414, // 0045 SETIDX R19 R18 R20 - 0x50200200, // 0046 LDBOOL R8 1 0 - 0x8C4C1D08, // 0047 GETMET R19 R14 K8 - 0x5C541E00, // 0048 MOVE R21 R15 - 0x5C582400, // 0049 MOVE R22 R18 - 0x7C4C0600, // 004A CALL R19 3 - 0x60500010, // 004B GETGBL R20 G16 - 0x5C542600, // 004C MOVE R21 R19 - 0x7C500200, // 004D CALL R20 1 - 0xA802001A, // 004E EXBLK 0 #006A - 0x5C542800, // 004F MOVE R21 R20 - 0x7C540000, // 0050 CALL R21 0 - 0x4C580000, // 0051 LDNIL R22 - 0x20581216, // 0052 NE R22 R9 R22 - 0x785A0002, // 0053 JMPF R22 #0057 - 0x20582A09, // 0054 NE R22 R21 R9 - 0x785A0000, // 0055 JMPF R22 #0057 - 0x7001FFF7, // 0056 JMP #004F - 0x9458180F, // 0057 GETIDX R22 R12 R15 - 0x94582C12, // 0058 GETIDX R22 R22 R18 - 0x8C582D06, // 0059 GETMET R22 R22 K6 - 0x5C602A00, // 005A MOVE R24 R21 - 0x7C580400, // 005B CALL R22 2 - 0x745A0004, // 005C JMPT R22 #0062 - 0x9458180F, // 005D GETIDX R22 R12 R15 - 0x94582C12, // 005E GETIDX R22 R22 R18 - 0x605C0012, // 005F GETGBL R23 G18 - 0x7C5C0000, // 0060 CALL R23 0 - 0x98582A17, // 0061 SETIDX R22 R21 R23 - 0x50280200, // 0062 LDBOOL R10 1 0 - 0x9458180F, // 0063 GETIDX R22 R12 R15 - 0x94582C12, // 0064 GETIDX R22 R22 R18 - 0x94582C15, // 0065 GETIDX R22 R22 R21 - 0x8C582D09, // 0066 GETMET R22 R22 K9 - 0x5C601C00, // 0067 MOVE R24 R14 - 0x7C580400, // 0068 CALL R22 2 - 0x7001FFE4, // 0069 JMP #004F - 0x5850000A, // 006A LDCONST R20 K10 - 0xAC500200, // 006B CATCH R20 1 0 - 0xB0080000, // 006C RAISE 2 R0 R0 - 0x7001FFC6, // 006D JMP #0035 - 0x5844000A, // 006E LDCONST R17 K10 - 0xAC440200, // 006F CATCH R17 1 0 - 0xB0080000, // 0070 RAISE 2 R0 R0 - 0x7001FFA9, // 0071 JMP #001C - 0x5834000A, // 0072 LDCONST R13 K10 - 0xAC340200, // 0073 CATCH R13 1 0 - 0xB0080000, // 0074 RAISE 2 R0 R0 - 0x60340010, // 0075 GETGBL R13 G16 - 0x5C380600, // 0076 MOVE R14 R3 - 0x5C3C1800, // 0077 MOVE R15 R12 - 0x7C380200, // 0078 CALL R14 1 - 0x7C340200, // 0079 CALL R13 1 - 0xA802003D, // 007A EXBLK 0 #00B9 - 0x5C381A00, // 007B MOVE R14 R13 - 0x7C380000, // 007C CALL R14 0 - 0x603C0010, // 007D GETGBL R15 G16 - 0x5C400600, // 007E MOVE R16 R3 - 0x9444180E, // 007F GETIDX R17 R12 R14 - 0x7C400200, // 0080 CALL R16 1 - 0x7C3C0200, // 0081 CALL R15 1 - 0xA8020031, // 0082 EXBLK 0 #00B5 - 0x5C401E00, // 0083 MOVE R16 R15 - 0x7C400000, // 0084 CALL R16 0 - 0x60440010, // 0085 GETGBL R17 G16 - 0x5C480600, // 0086 MOVE R18 R3 - 0x944C180E, // 0087 GETIDX R19 R12 R14 - 0x944C2610, // 0088 GETIDX R19 R19 R16 - 0x7C480200, // 0089 CALL R18 1 - 0x7C440200, // 008A CALL R17 1 - 0xA8020024, // 008B EXBLK 0 #00B1 - 0x5C482200, // 008C MOVE R18 R17 - 0x7C480000, // 008D CALL R18 0 - 0x604C0010, // 008E GETGBL R19 G16 - 0x9450180E, // 008F GETIDX R20 R12 R14 - 0x94502810, // 0090 GETIDX R20 R20 R16 - 0x94502812, // 0091 GETIDX R20 R20 R18 - 0x7C4C0200, // 0092 CALL R19 1 - 0xA8020018, // 0093 EXBLK 0 #00AD - 0x5C502600, // 0094 MOVE R20 R19 - 0x7C500000, // 0095 CALL R20 0 - 0xB8561600, // 0096 GETNGBL R21 K11 - 0x8C542B0C, // 0097 GETMET R21 R21 K12 - 0x8C5C090D, // 0098 GETMET R23 R4 K13 - 0x5864000E, // 0099 LDCONST R25 K14 - 0x5C681C00, // 009A MOVE R26 R14 - 0x5C6C2000, // 009B MOVE R27 R16 - 0x5C702400, // 009C MOVE R28 R18 - 0x7C5C0A00, // 009D CALL R23 5 - 0x5860000F, // 009E LDCONST R24 K15 - 0x7C540600, // 009F CALL R21 3 - 0x9006020E, // 00A0 SETMBR R1 K1 R14 - 0x90060410, // 00A1 SETMBR R1 K2 R16 - 0x90060612, // 00A2 SETMBR R1 K3 R18 - 0x5C540400, // 00A3 MOVE R21 R2 - 0x5C582800, // 00A4 MOVE R22 R20 - 0x5C5C0200, // 00A5 MOVE R23 R1 - 0x5C601600, // 00A6 MOVE R24 R11 - 0x7C540600, // 00A7 CALL R21 3 - 0x782E0002, // 00A8 JMPF R11 #00AC - 0x78560001, // 00A9 JMPF R21 #00AC - 0xA8040004, // 00AA EXBLK 1 4 - 0x80002C00, // 00AB RET 0 - 0x7001FFE6, // 00AC JMP #0094 - 0x584C000A, // 00AD LDCONST R19 K10 - 0xAC4C0200, // 00AE CATCH R19 1 0 - 0xB0080000, // 00AF RAISE 2 R0 R0 - 0x7001FFDA, // 00B0 JMP #008C - 0x5844000A, // 00B1 LDCONST R17 K10 - 0xAC440200, // 00B2 CATCH R17 1 0 - 0xB0080000, // 00B3 RAISE 2 R0 R0 - 0x7001FFCD, // 00B4 JMP #0083 - 0x583C000A, // 00B5 LDCONST R15 K10 - 0xAC3C0200, // 00B6 CATCH R15 1 0 - 0xB0080000, // 00B7 RAISE 2 R0 R0 - 0x7001FFC1, // 00B8 JMP #007B - 0x5834000A, // 00B9 LDCONST R13 K10 - 0xAC340200, // 00BA CATCH R13 1 0 - 0xB0080000, // 00BB RAISE 2 R0 R0 - 0x782E0019, // 00BC JMPF R11 #00D7 - 0x5C340C00, // 00BD MOVE R13 R6 - 0x74360003, // 00BE JMPT R13 #00C3 - 0xB8362200, // 00BF GETNGBL R13 K17 - 0x88341B12, // 00C0 GETMBR R13 R13 K18 - 0x9006200D, // 00C1 SETMBR R1 K16 R13 - 0x7002000E, // 00C2 JMP #00D2 - 0x5C341000, // 00C3 MOVE R13 R8 - 0x74360003, // 00C4 JMPT R13 #00C9 - 0xB8362200, // 00C5 GETNGBL R13 K17 - 0x88341B13, // 00C6 GETMBR R13 R13 K19 - 0x9006200D, // 00C7 SETMBR R1 K16 R13 - 0x70020008, // 00C8 JMP #00D2 - 0x5C341400, // 00C9 MOVE R13 R10 - 0x74360003, // 00CA JMPT R13 #00CF - 0xB8362200, // 00CB GETNGBL R13 K17 - 0x88341B14, // 00CC GETMBR R13 R13 K20 - 0x9006200D, // 00CD SETMBR R1 K16 R13 - 0x70020002, // 00CE JMP #00D2 - 0xB8362200, // 00CF GETNGBL R13 K17 - 0x88341B15, // 00D0 GETMBR R13 R13 K21 - 0x9006200D, // 00D1 SETMBR R1 K16 R13 - 0x5C340400, // 00D2 MOVE R13 R2 - 0x4C380000, // 00D3 LDNIL R14 - 0x5C3C0200, // 00D4 MOVE R15 R1 - 0x50400200, // 00D5 LDBOOL R16 1 0 - 0x7C340600, // 00D6 CALL R13 3 - 0x80000000, // 00D7 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: 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 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: invoke_request -********************************************************************/ -be_local_closure(Matter_Device_invoke_request, /* name */ - be_nested_proto( - 12, /* nstack */ - 4, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 8]) { /* constants */ - /* K0 */ be_const_int(0), - /* K1 */ be_nested_str_weak(endpoint), - /* K2 */ be_nested_str_weak(plugins), - /* K3 */ be_nested_str_weak(invoke_request), - /* K4 */ be_const_int(1), - /* K5 */ be_nested_str_weak(status), - /* K6 */ be_nested_str_weak(matter), - /* K7 */ be_nested_str_weak(UNSUPPORTED_ENDPOINT), - }), - be_str_weak(invoke_request), - &be_const_str_solidified, - ( &(const binstruction[24]) { /* code */ - 0x58100000, // 0000 LDCONST R4 K0 - 0x88140701, // 0001 GETMBR R5 R3 K1 - 0x6018000C, // 0002 GETGBL R6 G12 - 0x881C0102, // 0003 GETMBR R7 R0 K2 - 0x7C180200, // 0004 CALL R6 1 - 0x14180806, // 0005 LT R6 R4 R6 - 0x781A000C, // 0006 JMPF R6 #0014 - 0x88180102, // 0007 GETMBR R6 R0 K2 - 0x94180C04, // 0008 GETIDX R6 R6 R4 - 0x881C0D01, // 0009 GETMBR R7 R6 K1 - 0x1C1C0E05, // 000A EQ R7 R7 R5 - 0x781E0005, // 000B JMPF R7 #0012 - 0x8C1C0D03, // 000C GETMET R7 R6 K3 - 0x5C240200, // 000D MOVE R9 R1 - 0x5C280400, // 000E MOVE R10 R2 - 0x5C2C0600, // 000F MOVE R11 R3 - 0x7C1C0800, // 0010 CALL R7 4 - 0x80040E00, // 0011 RET 1 R7 - 0x00100904, // 0012 ADD R4 R4 K4 - 0x7001FFED, // 0013 JMP #0002 - 0xB81A0C00, // 0014 GETNGBL R6 K6 - 0x88180D07, // 0015 GETMBR R6 R6 K7 - 0x900E0A06, // 0016 SETMBR R3 K5 R6 - 0x80000000, // 0017 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: _start_udp -********************************************************************/ -be_local_closure(Matter_Device__start_udp, /* name */ - be_nested_proto( - 6, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 1, /* has sup protos */ - ( &(const struct bproto*[ 1]) { - be_nested_proto( - 8, /* nstack */ - 3, /* argc */ - 0, /* varg */ - 1, /* has upvals */ - ( &(const bupvaldesc[ 1]) { /* upvals */ - be_local_const_upval(1, 0), - }), - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(msg_received), - }), - be_str_weak(_X3Clambda_X3E), - &be_const_str_solidified, - ( &(const binstruction[ 7]) { /* code */ - 0x680C0000, // 0000 GETUPV R3 U0 - 0x8C0C0700, // 0001 GETMET R3 R3 K0 - 0x5C140000, // 0002 MOVE R5 R0 - 0x5C180200, // 0003 MOVE R6 R1 - 0x5C1C0400, // 0004 MOVE R7 R2 - 0x7C0C0800, // 0005 CALL R3 4 - 0x80040600, // 0006 RET 1 R3 - }) - ), - }), - 1, /* has constants */ - ( &(const bvalue[ 9]) { /* constants */ - /* K0 */ be_nested_str_weak(udp_server), - /* K1 */ be_nested_str_weak(tasmota), - /* K2 */ be_nested_str_weak(log), - /* K3 */ be_nested_str_weak(MTR_X3A_X20starting_X20UDP_X20server_X20on_X20port_X3A_X20), - /* K4 */ be_const_int(2), - /* K5 */ be_nested_str_weak(matter), - /* K6 */ be_nested_str_weak(UDPServer), - /* K7 */ be_nested_str_weak(), - /* K8 */ be_nested_str_weak(start), - }), - be_str_weak(_start_udp), - &be_const_str_solidified, - ( &(const binstruction[27]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x780A0000, // 0001 JMPF R2 #0003 - 0x80000400, // 0002 RET 0 - 0x4C080000, // 0003 LDNIL R2 - 0x1C080202, // 0004 EQ R2 R1 R2 - 0x780A0000, // 0005 JMPF R2 #0007 - 0x540615A3, // 0006 LDINT R1 5540 - 0xB80A0200, // 0007 GETNGBL R2 K1 - 0x8C080502, // 0008 GETMET R2 R2 K2 - 0x60100008, // 0009 GETGBL R4 G8 - 0x5C140200, // 000A MOVE R5 R1 - 0x7C100200, // 000B CALL R4 1 - 0x00120604, // 000C ADD R4 K3 R4 - 0x58140004, // 000D LDCONST R5 K4 - 0x7C080600, // 000E CALL R2 3 - 0xB80A0A00, // 000F GETNGBL R2 K5 - 0x8C080506, // 0010 GETMET R2 R2 K6 - 0x58100007, // 0011 LDCONST R4 K7 - 0x5C140200, // 0012 MOVE R5 R1 - 0x7C080600, // 0013 CALL R2 3 - 0x90020002, // 0014 SETMBR R0 K0 R2 - 0x88080100, // 0015 GETMBR R2 R0 K0 - 0x8C080508, // 0016 GETMET R2 R2 K8 - 0x84100000, // 0017 CLOSURE R4 P0 - 0x7C080400, // 0018 CALL R2 2 - 0xA0000000, // 0019 CLOSE R0 - 0x80000000, // 001A RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: mdns_announce_PASE ********************************************************************/ @@ -4131,119 +2006,11 @@ be_local_closure(Matter_Device_mdns_announce_PASE, /* name */ /******************************************************************** -** Solidified function: start_operational_discovery +** Solidified function: autoconf_device_map ********************************************************************/ -be_local_closure(Matter_Device_start_operational_discovery, /* name */ +be_local_closure(Matter_Device_autoconf_device_map, /* 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 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_active_endpoints -********************************************************************/ -be_local_closure(Matter_Device_get_active_endpoints, /* name */ - be_nested_proto( - 9, /* nstack */ - 2, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 6]) { /* constants */ - /* K0 */ be_nested_str_weak(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 */ + 22, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -4251,39 +2018,388 @@ be_local_closure(Matter_Device_mdns_announce_op_discovery_all_fabrics, /* name 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 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), + ( &(const bvalue[51]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(json), + /* K2 */ be_nested_str_weak(0), + /* K3 */ be_nested_str_weak(type), + /* K4 */ be_nested_str_weak(root), + /* K5 */ be_const_int(1), + /* K6 */ be_nested_str_weak(light), + /* K7 */ be_nested_str_weak(get), + /* K8 */ be_nested_str_weak(find), + /* K9 */ be_nested_str_weak(channels), + /* K10 */ be_nested_str_weak(), + /* K11 */ be_const_int(0), + /* K12 */ be_nested_str_weak(light1), + /* K13 */ be_const_int(2), + /* K14 */ be_nested_str_weak(light2), + /* K15 */ be_nested_str_weak(light3), + /* K16 */ be_nested_str_weak(tasmota), + /* K17 */ be_nested_str_weak(cmd), + /* K18 */ be_nested_str_weak(Status_X2013), + /* K19 */ be_nested_str_weak(log), + /* K20 */ be_nested_str_weak(MTR_X3A_X20Status_X2013_X20_X3D_X20), + /* K21 */ be_const_int(3), + /* K22 */ be_nested_str_weak(contains), + /* K23 */ be_nested_str_weak(StatusSHT), + /* K24 */ be_nested_str_weak(SHT), + /* K25 */ be_nested_str_weak(format), + /* K26 */ be_nested_str_weak(MTR_X3A_X20_X27_X25s_X27_X20_X3D_X20_X25s), + /* K27 */ be_nested_str_weak(Relay1), + /* K28 */ be_nested_str_weak(Relay2), + /* K29 */ be_nested_str_weak(push), + /* K30 */ be_nested_str_weak(MTR_X3A_X20relay1_X20_X3D_X20_X25s_X2C_X20relay2_X20_X3D_X20_X25s), + /* K31 */ be_nested_str_weak(shutter), + /* K32 */ be_nested_str_weak(get_power), + /* K33 */ be_nested_str_weak(relay), + /* K34 */ be_nested_str_weak(load), + /* K35 */ be_nested_str_weak(read_sensors), + /* K36 */ be_nested_str_weak(k2l), + /* K37 */ be_nested_str_weak(Temperature), + /* K38 */ be_nested_str_weak(_X23Temperature), + /* K39 */ be_nested_str_weak(temperature), + /* K40 */ be_nested_str_weak(filter), + /* K41 */ be_nested_str_weak(stop_iteration), + /* K42 */ be_nested_str_weak(Pressure), + /* K43 */ be_nested_str_weak(_X23Pressure), + /* K44 */ be_nested_str_weak(pressure), + /* K45 */ be_nested_str_weak(Illuminance), + /* K46 */ be_nested_str_weak(_X23Illuminance), + /* K47 */ be_nested_str_weak(illuminance), + /* K48 */ be_nested_str_weak(Humidity), + /* K49 */ be_nested_str_weak(_X23Humidity), + /* K50 */ be_nested_str_weak(humidity), }), - be_str_weak(mdns_announce_op_discovery_all_fabrics), + be_str_weak(autoconf_device_map), &be_const_str_solidified, - ( &(const binstruction[22]) { /* code */ - 0x60040010, // 0000 GETGBL R1 G16 - 0x88080100, // 0001 GETMBR R2 R0 K0 - 0x8C080501, // 0002 GETMET R2 R2 K1 - 0x7C080200, // 0003 CALL R2 1 - 0x7C040200, // 0004 CALL R1 1 - 0xA802000B, // 0005 EXBLK 0 #0012 - 0x5C080200, // 0006 MOVE R2 R1 - 0x7C080000, // 0007 CALL R2 0 - 0x8C0C0502, // 0008 GETMET R3 R2 K2 - 0x7C0C0200, // 0009 CALL R3 1 - 0x780E0005, // 000A JMPF R3 #0011 - 0x8C0C0503, // 000B GETMET R3 R2 K3 - 0x7C0C0200, // 000C CALL R3 1 - 0x780E0002, // 000D JMPF R3 #0011 - 0x8C0C0104, // 000E GETMET R3 R0 K4 - 0x5C140400, // 000F MOVE R5 R2 - 0x7C0C0400, // 0010 CALL R3 2 - 0x7001FFF3, // 0011 JMP #0006 - 0x58040005, // 0012 LDCONST R1 K5 - 0xAC040200, // 0013 CATCH R1 1 0 - 0xB0080000, // 0014 RAISE 2 R0 R0 - 0x80000000, // 0015 RET 0 + ( &(const binstruction[326]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0x600C0013, // 0002 GETGBL R3 G19 + 0x7C0C0000, // 0003 CALL R3 0 + 0x60100013, // 0004 GETGBL R4 G19 + 0x7C100000, // 0005 CALL R4 0 + 0x98120704, // 0006 SETIDX R4 K3 K4 + 0x980E0404, // 0007 SETIDX R3 K2 R4 + 0x58100005, // 0008 LDCONST R4 K5 + 0x50140000, // 0009 LDBOOL R5 0 0 + 0xA41A0C00, // 000A IMPORT R6 K6 + 0x8C1C0D07, // 000B GETMET R7 R6 K7 + 0x7C1C0200, // 000C CALL R7 1 + 0x4C200000, // 000D LDNIL R8 + 0x20200E08, // 000E NE R8 R7 R8 + 0x78220024, // 000F JMPF R8 #0035 + 0x6020000C, // 0010 GETGBL R8 G12 + 0x8C240F08, // 0011 GETMET R9 R7 K8 + 0x582C0009, // 0012 LDCONST R11 K9 + 0x5830000A, // 0013 LDCONST R12 K10 + 0x7C240600, // 0014 CALL R9 3 + 0x7C200200, // 0015 CALL R8 1 + 0x2424110B, // 0016 GT R9 R8 K11 + 0x7826001C, // 0017 JMPF R9 #0035 + 0x1C241105, // 0018 EQ R9 R8 K5 + 0x78260007, // 0019 JMPF R9 #0022 + 0x60240008, // 001A GETGBL R9 G8 + 0x5C280800, // 001B MOVE R10 R4 + 0x7C240200, // 001C CALL R9 1 + 0x60280013, // 001D GETGBL R10 G19 + 0x7C280000, // 001E CALL R10 0 + 0x982A070C, // 001F SETIDX R10 K3 K12 + 0x980C120A, // 0020 SETIDX R3 R9 R10 + 0x70020010, // 0021 JMP #0033 + 0x1C24110D, // 0022 EQ R9 R8 K13 + 0x78260007, // 0023 JMPF R9 #002C + 0x60240008, // 0024 GETGBL R9 G8 + 0x5C280800, // 0025 MOVE R10 R4 + 0x7C240200, // 0026 CALL R9 1 + 0x60280013, // 0027 GETGBL R10 G19 + 0x7C280000, // 0028 CALL R10 0 + 0x982A070E, // 0029 SETIDX R10 K3 K14 + 0x980C120A, // 002A SETIDX R3 R9 R10 + 0x70020006, // 002B JMP #0033 + 0x60240008, // 002C GETGBL R9 G8 + 0x5C280800, // 002D MOVE R10 R4 + 0x7C240200, // 002E CALL R9 1 + 0x60280013, // 002F GETGBL R10 G19 + 0x7C280000, // 0030 CALL R10 0 + 0x982A070F, // 0031 SETIDX R10 K3 K15 + 0x980C120A, // 0032 SETIDX R3 R9 R10 + 0x50140200, // 0033 LDBOOL R5 1 0 + 0x00100905, // 0034 ADD R4 R4 K5 + 0xB8222000, // 0035 GETNGBL R8 K16 + 0x8C201111, // 0036 GETMET R8 R8 K17 + 0x58280012, // 0037 LDCONST R10 K18 + 0x502C0200, // 0038 LDBOOL R11 1 0 + 0x7C200600, // 0039 CALL R8 3 + 0x60240012, // 003A GETGBL R9 G18 + 0x7C240000, // 003B CALL R9 0 + 0xB82A2000, // 003C GETNGBL R10 K16 + 0x8C281513, // 003D GETMET R10 R10 K19 + 0x60300008, // 003E GETGBL R12 G8 + 0x5C341000, // 003F MOVE R13 R8 + 0x7C300200, // 0040 CALL R12 1 + 0x0032280C, // 0041 ADD R12 K20 R12 + 0x58340015, // 0042 LDCONST R13 K21 + 0x7C280600, // 0043 CALL R10 3 + 0x8C281116, // 0044 GETMET R10 R8 K22 + 0x58300017, // 0045 LDCONST R12 K23 + 0x7C280400, // 0046 CALL R10 2 + 0x782A0040, // 0047 JMPF R10 #0089 + 0x94201117, // 0048 GETIDX R8 R8 K23 + 0x5828000B, // 0049 LDCONST R10 K11 + 0x502C0200, // 004A LDBOOL R11 1 0 + 0x782E003C, // 004B JMPF R11 #0089 + 0x602C0008, // 004C GETGBL R11 G8 + 0x5C301400, // 004D MOVE R12 R10 + 0x7C2C0200, // 004E CALL R11 1 + 0x002E300B, // 004F ADD R11 K24 R11 + 0x8C301116, // 0050 GETMET R12 R8 K22 + 0x5C381600, // 0051 MOVE R14 R11 + 0x7C300400, // 0052 CALL R12 2 + 0x74320000, // 0053 JMPT R12 #0055 + 0x70020033, // 0054 JMP #0089 + 0x9430100B, // 0055 GETIDX R12 R8 R11 + 0xB8362000, // 0056 GETNGBL R13 K16 + 0x8C341B13, // 0057 GETMET R13 R13 K19 + 0x8C3C0319, // 0058 GETMET R15 R1 K25 + 0x5844001A, // 0059 LDCONST R17 K26 + 0x5C481600, // 005A MOVE R18 R11 + 0x604C0008, // 005B GETGBL R19 G8 + 0x5C501800, // 005C MOVE R20 R12 + 0x7C4C0200, // 005D CALL R19 1 + 0x7C3C0800, // 005E CALL R15 4 + 0x58400015, // 005F LDCONST R16 K21 + 0x7C340600, // 0060 CALL R13 3 + 0x8C341908, // 0061 GETMET R13 R12 K8 + 0x583C001B, // 0062 LDCONST R15 K27 + 0x5840000B, // 0063 LDCONST R16 K11 + 0x7C340600, // 0064 CALL R13 3 + 0x04341B05, // 0065 SUB R13 R13 K5 + 0x8C381908, // 0066 GETMET R14 R12 K8 + 0x5840001C, // 0067 LDCONST R16 K28 + 0x5844000B, // 0068 LDCONST R17 K11 + 0x7C380600, // 0069 CALL R14 3 + 0x04381D05, // 006A SUB R14 R14 K5 + 0x283C1B0B, // 006B GE R15 R13 K11 + 0x783E0002, // 006C JMPF R15 #0070 + 0x8C3C131D, // 006D GETMET R15 R9 K29 + 0x5C441A00, // 006E MOVE R17 R13 + 0x7C3C0400, // 006F CALL R15 2 + 0x283C1D0B, // 0070 GE R15 R14 K11 + 0x783E0002, // 0071 JMPF R15 #0075 + 0x8C3C131D, // 0072 GETMET R15 R9 K29 + 0x5C441C00, // 0073 MOVE R17 R14 + 0x7C3C0400, // 0074 CALL R15 2 + 0xB83E2000, // 0075 GETNGBL R15 K16 + 0x8C3C1F13, // 0076 GETMET R15 R15 K19 + 0x8C440319, // 0077 GETMET R17 R1 K25 + 0x584C001E, // 0078 LDCONST R19 K30 + 0x5C501A00, // 0079 MOVE R20 R13 + 0x5C541C00, // 007A MOVE R21 R14 + 0x7C440800, // 007B CALL R17 4 + 0x58480015, // 007C LDCONST R18 K21 + 0x7C3C0600, // 007D CALL R15 3 + 0x603C0008, // 007E GETGBL R15 G8 + 0x5C400800, // 007F MOVE R16 R4 + 0x7C3C0200, // 0080 CALL R15 1 + 0x60400013, // 0081 GETGBL R16 G19 + 0x7C400000, // 0082 CALL R16 0 + 0x9842071F, // 0083 SETIDX R16 K3 K31 + 0x98423E0A, // 0084 SETIDX R16 K31 R10 + 0x980C1E10, // 0085 SETIDX R3 R15 R16 + 0x00100905, // 0086 ADD R4 R4 K5 + 0x00281505, // 0087 ADD R10 R10 K5 + 0x7001FFC0, // 0088 JMP #004A + 0x6028000C, // 0089 GETGBL R10 G12 + 0xB82E2000, // 008A GETNGBL R11 K16 + 0x8C2C1720, // 008B GETMET R11 R11 K32 + 0x7C2C0200, // 008C CALL R11 1 + 0x7C280200, // 008D CALL R10 1 + 0x582C000B, // 008E LDCONST R11 K11 + 0x78160000, // 008F JMPF R5 #0091 + 0x04281505, // 0090 SUB R10 R10 K5 + 0x1430160A, // 0091 LT R12 R11 R10 + 0x78320010, // 0092 JMPF R12 #00A4 + 0x8C301308, // 0093 GETMET R12 R9 K8 + 0x5C381600, // 0094 MOVE R14 R11 + 0x7C300400, // 0095 CALL R12 2 + 0x4C340000, // 0096 LDNIL R13 + 0x1C30180D, // 0097 EQ R12 R12 R13 + 0x78320008, // 0098 JMPF R12 #00A2 + 0x60300008, // 0099 GETGBL R12 G8 + 0x5C340800, // 009A MOVE R13 R4 + 0x7C300200, // 009B CALL R12 1 + 0x60340013, // 009C GETGBL R13 G19 + 0x7C340000, // 009D CALL R13 0 + 0x98360721, // 009E SETIDX R13 K3 K33 + 0x9836420B, // 009F SETIDX R13 K33 R11 + 0x980C180D, // 00A0 SETIDX R3 R12 R13 + 0x00100905, // 00A1 ADD R4 R4 K5 + 0x002C1705, // 00A2 ADD R11 R11 K5 + 0x7001FFEC, // 00A3 JMP #0091 + 0x8C300522, // 00A4 GETMET R12 R2 K34 + 0xB83A2000, // 00A5 GETNGBL R14 K16 + 0x8C381D23, // 00A6 GETMET R14 R14 K35 + 0x7C380200, // 00A7 CALL R14 1 + 0x7C300400, // 00A8 CALL R12 2 + 0x5412001F, // 00A9 LDINT R4 32 + 0x60340010, // 00AA GETGBL R13 G16 + 0x8C380124, // 00AB GETMET R14 R0 K36 + 0x5C401800, // 00AC MOVE R16 R12 + 0x7C380400, // 00AD CALL R14 2 + 0x7C340200, // 00AE CALL R13 1 + 0xA802001C, // 00AF EXBLK 0 #00CD + 0x5C381A00, // 00B0 MOVE R14 R13 + 0x7C380000, // 00B1 CALL R14 0 + 0x943C180E, // 00B2 GETIDX R15 R12 R14 + 0x6040000F, // 00B3 GETGBL R16 G15 + 0x5C441E00, // 00B4 MOVE R17 R15 + 0x60480013, // 00B5 GETGBL R18 G19 + 0x7C400400, // 00B6 CALL R16 2 + 0x7842000D, // 00B7 JMPF R16 #00C6 + 0x8C401F16, // 00B8 GETMET R16 R15 K22 + 0x58480025, // 00B9 LDCONST R18 K37 + 0x7C400400, // 00BA CALL R16 2 + 0x78420009, // 00BB JMPF R16 #00C6 + 0x00401D26, // 00BC ADD R16 R14 K38 + 0x60440008, // 00BD GETGBL R17 G8 + 0x5C480800, // 00BE MOVE R18 R4 + 0x7C440200, // 00BF CALL R17 1 + 0x60480013, // 00C0 GETGBL R18 G19 + 0x7C480000, // 00C1 CALL R18 0 + 0x984A0727, // 00C2 SETIDX R18 K3 K39 + 0x984A5010, // 00C3 SETIDX R18 K40 R16 + 0x980C2212, // 00C4 SETIDX R3 R17 R18 + 0x00100905, // 00C5 ADD R4 R4 K5 + 0x54420027, // 00C6 LDINT R16 40 + 0x24400810, // 00C7 GT R16 R4 R16 + 0x78420000, // 00C8 JMPF R16 #00CA + 0x70020000, // 00C9 JMP #00CB + 0x7001FFE4, // 00CA JMP #00B0 + 0xA8040001, // 00CB EXBLK 1 1 + 0x70020002, // 00CC JMP #00D0 + 0x58340029, // 00CD LDCONST R13 K41 + 0xAC340200, // 00CE CATCH R13 1 0 + 0xB0080000, // 00CF RAISE 2 R0 R0 + 0x54120027, // 00D0 LDINT R4 40 + 0x60340010, // 00D1 GETGBL R13 G16 + 0x8C380124, // 00D2 GETMET R14 R0 K36 + 0x5C401800, // 00D3 MOVE R16 R12 + 0x7C380400, // 00D4 CALL R14 2 + 0x7C340200, // 00D5 CALL R13 1 + 0xA802001C, // 00D6 EXBLK 0 #00F4 + 0x5C381A00, // 00D7 MOVE R14 R13 + 0x7C380000, // 00D8 CALL R14 0 + 0x943C180E, // 00D9 GETIDX R15 R12 R14 + 0x6040000F, // 00DA GETGBL R16 G15 + 0x5C441E00, // 00DB MOVE R17 R15 + 0x60480013, // 00DC GETGBL R18 G19 + 0x7C400400, // 00DD CALL R16 2 + 0x7842000D, // 00DE JMPF R16 #00ED + 0x8C401F16, // 00DF GETMET R16 R15 K22 + 0x5848002A, // 00E0 LDCONST R18 K42 + 0x7C400400, // 00E1 CALL R16 2 + 0x78420009, // 00E2 JMPF R16 #00ED + 0x00401D2B, // 00E3 ADD R16 R14 K43 + 0x60440008, // 00E4 GETGBL R17 G8 + 0x5C480800, // 00E5 MOVE R18 R4 + 0x7C440200, // 00E6 CALL R17 1 + 0x60480013, // 00E7 GETGBL R18 G19 + 0x7C480000, // 00E8 CALL R18 0 + 0x984A072C, // 00E9 SETIDX R18 K3 K44 + 0x984A5010, // 00EA SETIDX R18 K40 R16 + 0x980C2212, // 00EB SETIDX R3 R17 R18 + 0x00100905, // 00EC ADD R4 R4 K5 + 0x5442002E, // 00ED LDINT R16 47 + 0x24400810, // 00EE GT R16 R4 R16 + 0x78420000, // 00EF JMPF R16 #00F1 + 0x70020000, // 00F0 JMP #00F2 + 0x7001FFE4, // 00F1 JMP #00D7 + 0xA8040001, // 00F2 EXBLK 1 1 + 0x70020002, // 00F3 JMP #00F7 + 0x58340029, // 00F4 LDCONST R13 K41 + 0xAC340200, // 00F5 CATCH R13 1 0 + 0xB0080000, // 00F6 RAISE 2 R0 R0 + 0x5412002F, // 00F7 LDINT R4 48 + 0x60340010, // 00F8 GETGBL R13 G16 + 0x8C380124, // 00F9 GETMET R14 R0 K36 + 0x5C401800, // 00FA MOVE R16 R12 + 0x7C380400, // 00FB CALL R14 2 + 0x7C340200, // 00FC CALL R13 1 + 0xA802001C, // 00FD EXBLK 0 #011B + 0x5C381A00, // 00FE MOVE R14 R13 + 0x7C380000, // 00FF CALL R14 0 + 0x943C180E, // 0100 GETIDX R15 R12 R14 + 0x6040000F, // 0101 GETGBL R16 G15 + 0x5C441E00, // 0102 MOVE R17 R15 + 0x60480013, // 0103 GETGBL R18 G19 + 0x7C400400, // 0104 CALL R16 2 + 0x7842000D, // 0105 JMPF R16 #0114 + 0x8C401F16, // 0106 GETMET R16 R15 K22 + 0x5848002D, // 0107 LDCONST R18 K45 + 0x7C400400, // 0108 CALL R16 2 + 0x78420009, // 0109 JMPF R16 #0114 + 0x00401D2E, // 010A ADD R16 R14 K46 + 0x60440008, // 010B GETGBL R17 G8 + 0x5C480800, // 010C MOVE R18 R4 + 0x7C440200, // 010D CALL R17 1 + 0x60480013, // 010E GETGBL R18 G19 + 0x7C480000, // 010F CALL R18 0 + 0x984A072F, // 0110 SETIDX R18 K3 K47 + 0x984A5010, // 0111 SETIDX R18 K40 R16 + 0x980C2212, // 0112 SETIDX R3 R17 R18 + 0x00100905, // 0113 ADD R4 R4 K5 + 0x54420037, // 0114 LDINT R16 56 + 0x24400810, // 0115 GT R16 R4 R16 + 0x78420000, // 0116 JMPF R16 #0118 + 0x70020000, // 0117 JMP #0119 + 0x7001FFE4, // 0118 JMP #00FE + 0xA8040001, // 0119 EXBLK 1 1 + 0x70020002, // 011A JMP #011E + 0x58340029, // 011B LDCONST R13 K41 + 0xAC340200, // 011C CATCH R13 1 0 + 0xB0080000, // 011D RAISE 2 R0 R0 + 0x54120037, // 011E LDINT R4 56 + 0x60340010, // 011F GETGBL R13 G16 + 0x8C380124, // 0120 GETMET R14 R0 K36 + 0x5C401800, // 0121 MOVE R16 R12 + 0x7C380400, // 0122 CALL R14 2 + 0x7C340200, // 0123 CALL R13 1 + 0xA802001C, // 0124 EXBLK 0 #0142 + 0x5C381A00, // 0125 MOVE R14 R13 + 0x7C380000, // 0126 CALL R14 0 + 0x943C180E, // 0127 GETIDX R15 R12 R14 + 0x6040000F, // 0128 GETGBL R16 G15 + 0x5C441E00, // 0129 MOVE R17 R15 + 0x60480013, // 012A GETGBL R18 G19 + 0x7C400400, // 012B CALL R16 2 + 0x7842000D, // 012C JMPF R16 #013B + 0x8C401F16, // 012D GETMET R16 R15 K22 + 0x58480030, // 012E LDCONST R18 K48 + 0x7C400400, // 012F CALL R16 2 + 0x78420009, // 0130 JMPF R16 #013B + 0x00401D31, // 0131 ADD R16 R14 K49 + 0x60440008, // 0132 GETGBL R17 G8 + 0x5C480800, // 0133 MOVE R18 R4 + 0x7C440200, // 0134 CALL R17 1 + 0x60480013, // 0135 GETGBL R18 G19 + 0x7C480000, // 0136 CALL R18 0 + 0x984A0732, // 0137 SETIDX R18 K3 K50 + 0x984A5010, // 0138 SETIDX R18 K40 R16 + 0x980C2212, // 0139 SETIDX R3 R17 R18 + 0x00100905, // 013A ADD R4 R4 K5 + 0x5442003F, // 013B LDINT R16 64 + 0x24400810, // 013C GT R16 R4 R16 + 0x78420000, // 013D JMPF R16 #013F + 0x70020000, // 013E JMP #0140 + 0x7001FFE4, // 013F JMP #0125 + 0xA8040001, // 0140 EXBLK 1 1 + 0x70020002, // 0141 JMP #0145 + 0x58340029, // 0142 LDCONST R13 K41 + 0xAC340200, // 0143 CATCH R13 1 0 + 0xB0080000, // 0144 RAISE 2 R0 R0 + 0x80040600, // 0145 RET 1 R3 }) ) ); @@ -4291,9 +2407,9 @@ be_local_closure(Matter_Device_mdns_announce_op_discovery_all_fabrics, /* name /******************************************************************** -** Solidified function: save_before_restart +** Solidified function: is_commissioning_open ********************************************************************/ -be_local_closure(Matter_Device_save_before_restart, /* name */ +be_local_closure(Matter_Device_is_commissioning_open, /* name */ be_nested_proto( 3, /* nstack */ 1, /* argc */ @@ -4303,18 +2419,16 @@ 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[ 1]) { /* constants */ + /* K0 */ be_nested_str_weak(commissioning_open), }), - be_str_weak(save_before_restart), + be_str_weak(is_commissioning_open), &be_const_str_solidified, - ( &(const binstruction[ 5]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x7C040200, // 0001 CALL R1 1 - 0x8C040101, // 0002 GETMET R1 R0 K1 - 0x7C040200, // 0003 CALL R1 1 - 0x80000000, // 0004 RET 0 + ( &(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 }) ) ); @@ -4322,151 +2436,231 @@ be_local_closure(Matter_Device_save_before_restart, /* name */ /******************************************************************** -** Solidified function: get_plugin_class_arg +** Solidified function: init ********************************************************************/ -be_local_closure(Matter_Device_get_plugin_class_arg, /* name */ +be_local_closure(Matter_Device_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[ 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 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: k2l_num -********************************************************************/ -be_local_closure(Matter_Device_k2l_num, /* name */ - be_nested_proto( - 9, /* nstack */ + 8, /* nstack */ 1, /* argc */ - 4, /* varg */ + 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_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), + 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(start), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(remove_rule), + /* K3 */ be_nested_str_weak(Wifi_X23Connected), + /* K4 */ be_nested_str_weak(matter_start), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x7C000200, // 0002 CALL R0 1 + 0xB8020200, // 0003 GETNGBL R0 K1 + 0x8C000102, // 0004 GETMET R0 R0 K2 + 0x58080003, // 0005 LDCONST R2 K3 + 0x580C0004, // 0006 LDCONST R3 K4 + 0x7C000600, // 0007 CALL R0 3 + 0x80000000, // 0008 RET 0 + }) + ), + be_nested_proto( + 4, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(start), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(remove_rule), + /* K3 */ be_nested_str_weak(Eth_X23Connected), + /* K4 */ be_nested_str_weak(matter_start), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x7C000200, // 0002 CALL R0 1 + 0xB8020200, // 0003 GETNGBL R0 K1 + 0x8C000102, // 0004 GETMET R0 R0 K2 + 0x58080003, // 0005 LDCONST R2 K3 + 0x580C0004, // 0006 LDCONST R3 K4 + 0x7C000600, // 0007 CALL R0 3 + 0x80000000, // 0008 RET 0 + }) + ), }), - be_str_weak(k2l_num), + 1, /* has constants */ + ( &(const bvalue[41]) { /* constants */ + /* K0 */ be_nested_str_weak(crypto), + /* 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(UI), + /* K7 */ be_nested_str_weak(started), + /* K8 */ be_nested_str_weak(tick), + /* K9 */ be_const_int(0), + /* K10 */ be_nested_str_weak(plugins), + /* K11 */ be_nested_str_weak(plugins_persist), + /* K12 */ be_nested_str_weak(plugins_classes), + /* K13 */ be_nested_str_weak(register_native_classes), + /* K14 */ be_nested_str_weak(vendorid), + /* K15 */ be_nested_str_weak(VENDOR_ID), + /* K16 */ be_nested_str_weak(productid), + /* K17 */ be_nested_str_weak(PRODUCT_ID), + /* K18 */ be_nested_str_weak(root_iterations), + /* K19 */ be_nested_str_weak(PBKDF_ITERATIONS), + /* K20 */ be_nested_str_weak(root_salt), + /* K21 */ be_nested_str_weak(random), + /* K22 */ be_nested_str_weak(ipv4only), + /* K23 */ be_nested_str_weak(load_param), + /* K24 */ be_nested_str_weak(sessions), + /* K25 */ be_nested_str_weak(Session_Store), + /* K26 */ be_nested_str_weak(load_fabrics), + /* K27 */ be_nested_str_weak(message_handler), + /* K28 */ be_nested_str_weak(MessageHandler), + /* K29 */ be_nested_str_weak(ui), + /* K30 */ be_nested_str_weak(wifi), + /* K31 */ be_nested_str_weak(up), + /* K32 */ be_nested_str_weak(eth), + /* K33 */ be_nested_str_weak(start), + /* K34 */ be_nested_str_weak(add_rule), + /* K35 */ be_nested_str_weak(Wifi_X23Connected), + /* K36 */ be_nested_str_weak(matter_start), + /* K37 */ be_nested_str_weak(Eth_X23Connected), + /* K38 */ be_nested_str_weak(_init_basic_commissioning), + /* K39 */ be_nested_str_weak(add_driver), + /* K40 */ be_nested_str_weak(register_commands), + }), + be_str_weak(init), &be_const_str_solidified, - ( &(const binstruction[52]) { /* code */ - 0x58040000, // 0000 LDCONST R1 K0 - 0x60080012, // 0001 GETGBL R2 G18 - 0x7C080000, // 0002 CALL R2 0 - 0x4C0C0000, // 0003 LDNIL R3 - 0x1C0C0003, // 0004 EQ R3 R0 R3 - 0x780E0000, // 0005 JMPF R3 #0007 - 0x80040400, // 0006 RET 1 R2 - 0x600C0010, // 0007 GETGBL R3 G16 - 0x8C100101, // 0008 GETMET R4 R0 K1 - 0x7C100200, // 0009 CALL R4 1 - 0x7C0C0200, // 000A CALL R3 1 - 0xA8020007, // 000B EXBLK 0 #0014 - 0x5C100600, // 000C MOVE R4 R3 - 0x7C100000, // 000D CALL R4 0 - 0x8C140502, // 000E GETMET R5 R2 K2 - 0x601C0009, // 000F GETGBL R7 G9 - 0x5C200800, // 0010 MOVE R8 R4 - 0x7C1C0200, // 0011 CALL R7 1 - 0x7C140400, // 0012 CALL R5 2 - 0x7001FFF7, // 0013 JMP #000C - 0x580C0003, // 0014 LDCONST R3 K3 - 0xAC0C0200, // 0015 CATCH R3 1 0 - 0xB0080000, // 0016 RAISE 2 R0 R0 - 0x600C0010, // 0017 GETGBL R3 G16 - 0x6010000C, // 0018 GETGBL R4 G12 - 0x5C140400, // 0019 MOVE R5 R2 - 0x7C100200, // 001A CALL R4 1 - 0x04100904, // 001B SUB R4 R4 K4 - 0x40120804, // 001C CONNECT R4 K4 R4 - 0x7C0C0200, // 001D CALL R3 1 - 0xA8020010, // 001E EXBLK 0 #0030 - 0x5C100600, // 001F MOVE R4 R3 - 0x7C100000, // 0020 CALL R4 0 - 0x94140404, // 0021 GETIDX R5 R2 R4 - 0x5C180800, // 0022 MOVE R6 R4 - 0x241C0D05, // 0023 GT R7 R6 K5 - 0x781E0008, // 0024 JMPF R7 #002E - 0x041C0D04, // 0025 SUB R7 R6 K4 - 0x941C0407, // 0026 GETIDX R7 R2 R7 - 0x241C0E05, // 0027 GT R7 R7 R5 - 0x781E0004, // 0028 JMPF R7 #002E - 0x041C0D04, // 0029 SUB R7 R6 K4 - 0x941C0407, // 002A GETIDX R7 R2 R7 - 0x98080C07, // 002B SETIDX R2 R6 R7 - 0x04180D04, // 002C SUB R6 R6 K4 - 0x7001FFF4, // 002D JMP #0023 - 0x98080C05, // 002E SETIDX R2 R6 R5 - 0x7001FFEE, // 002F JMP #001F - 0x580C0003, // 0030 LDCONST R3 K3 - 0xAC0C0200, // 0031 CATCH R3 1 0 - 0xB0080000, // 0032 RAISE 2 R0 R0 - 0x80040400, // 0033 RET 1 R2 + ( &(const binstruction[102]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0xB80E0400, // 0002 GETNGBL R3 K2 + 0x8C0C0703, // 0003 GETMET R3 R3 K3 + 0xB8160800, // 0004 GETNGBL R5 K4 + 0x88140B05, // 0005 GETMBR R5 R5 K5 + 0x7C0C0400, // 0006 CALL R3 2 + 0x740E0004, // 0007 JMPT R3 #000D + 0xB80E0800, // 0008 GETNGBL R3 K4 + 0x8C0C0706, // 0009 GETMET R3 R3 K6 + 0x5C140000, // 000A MOVE R5 R0 + 0x7C0C0400, // 000B CALL R3 2 + 0x80000600, // 000C RET 0 + 0x500C0000, // 000D LDBOOL R3 0 0 + 0x90020E03, // 000E SETMBR R0 K7 R3 + 0x90021109, // 000F SETMBR R0 K8 K9 + 0x600C0012, // 0010 GETGBL R3 G18 + 0x7C0C0000, // 0011 CALL R3 0 + 0x90021403, // 0012 SETMBR R0 K10 R3 + 0x500C0000, // 0013 LDBOOL R3 0 0 + 0x90021603, // 0014 SETMBR R0 K11 R3 + 0x600C0013, // 0015 GETGBL R3 G19 + 0x7C0C0000, // 0016 CALL R3 0 + 0x90021803, // 0017 SETMBR R0 K12 R3 + 0x8C0C010D, // 0018 GETMET R3 R0 K13 + 0x7C0C0200, // 0019 CALL R3 1 + 0x880C010F, // 001A GETMBR R3 R0 K15 + 0x90021C03, // 001B SETMBR R0 K14 R3 + 0x880C0111, // 001C GETMBR R3 R0 K17 + 0x90022003, // 001D SETMBR R0 K16 R3 + 0x880C0113, // 001E GETMBR R3 R0 K19 + 0x90022403, // 001F SETMBR R0 K18 R3 + 0x8C0C0315, // 0020 GETMET R3 R1 K21 + 0x5416000F, // 0021 LDINT R5 16 + 0x7C0C0400, // 0022 CALL R3 2 + 0x90022803, // 0023 SETMBR R0 K20 R3 + 0x500C0000, // 0024 LDBOOL R3 0 0 + 0x90022C03, // 0025 SETMBR R0 K22 R3 + 0x8C0C0117, // 0026 GETMET R3 R0 K23 + 0x7C0C0200, // 0027 CALL R3 1 + 0xB80E0800, // 0028 GETNGBL R3 K4 + 0x8C0C0719, // 0029 GETMET R3 R3 K25 + 0x5C140000, // 002A MOVE R5 R0 + 0x7C0C0400, // 002B CALL R3 2 + 0x90023003, // 002C SETMBR R0 K24 R3 + 0x880C0118, // 002D GETMBR R3 R0 K24 + 0x8C0C071A, // 002E GETMET R3 R3 K26 + 0x7C0C0200, // 002F CALL R3 1 + 0xB80E0800, // 0030 GETNGBL R3 K4 + 0x8C0C071C, // 0031 GETMET R3 R3 K28 + 0x5C140000, // 0032 MOVE R5 R0 + 0x7C0C0400, // 0033 CALL R3 2 + 0x90023603, // 0034 SETMBR R0 K27 R3 + 0xB80E0800, // 0035 GETNGBL R3 K4 + 0x8C0C0706, // 0036 GETMET R3 R3 K6 + 0x5C140000, // 0037 MOVE R5 R0 + 0x7C0C0400, // 0038 CALL R3 2 + 0x90023A03, // 0039 SETMBR R0 K29 R3 + 0xB80E0400, // 003A GETNGBL R3 K2 + 0x8C0C071E, // 003B GETMET R3 R3 K30 + 0x7C0C0200, // 003C CALL R3 1 + 0x940C071F, // 003D GETIDX R3 R3 K31 + 0x740E0004, // 003E JMPT R3 #0044 + 0xB80E0400, // 003F GETNGBL R3 K2 + 0x8C0C0720, // 0040 GETMET R3 R3 K32 + 0x7C0C0200, // 0041 CALL R3 1 + 0x940C071F, // 0042 GETIDX R3 R3 K31 + 0x780E0001, // 0043 JMPF R3 #0046 + 0x8C0C0121, // 0044 GETMET R3 R0 K33 + 0x7C0C0200, // 0045 CALL R3 1 + 0xB80E0400, // 0046 GETNGBL R3 K2 + 0x8C0C071E, // 0047 GETMET R3 R3 K30 + 0x7C0C0200, // 0048 CALL R3 1 + 0x940C071F, // 0049 GETIDX R3 R3 K31 + 0x740E0005, // 004A JMPT R3 #0051 + 0xB80E0400, // 004B GETNGBL R3 K2 + 0x8C0C0722, // 004C GETMET R3 R3 K34 + 0x58140023, // 004D LDCONST R5 K35 + 0x84180000, // 004E CLOSURE R6 P0 + 0x581C0024, // 004F LDCONST R7 K36 + 0x7C0C0800, // 0050 CALL R3 4 + 0xB80E0400, // 0051 GETNGBL R3 K2 + 0x8C0C0720, // 0052 GETMET R3 R3 K32 + 0x7C0C0200, // 0053 CALL R3 1 + 0x940C071F, // 0054 GETIDX R3 R3 K31 + 0x740E0005, // 0055 JMPT R3 #005C + 0xB80E0400, // 0056 GETNGBL R3 K2 + 0x8C0C0722, // 0057 GETMET R3 R3 K34 + 0x58140025, // 0058 LDCONST R5 K37 + 0x84180001, // 0059 CLOSURE R6 P1 + 0x581C0024, // 005A LDCONST R7 K36 + 0x7C0C0800, // 005B CALL R3 4 + 0x8C0C0126, // 005C GETMET R3 R0 K38 + 0x7C0C0200, // 005D CALL R3 1 + 0xB80E0400, // 005E GETNGBL R3 K2 + 0x8C0C0727, // 005F GETMET R3 R3 K39 + 0x5C140000, // 0060 MOVE R5 R0 + 0x7C0C0400, // 0061 CALL R3 2 + 0x8C0C0128, // 0062 GETMET R3 R0 K40 + 0x7C0C0200, // 0063 CALL R3 1 + 0xA0000000, // 0064 CLOSE R0 + 0x80000000, // 0065 RET 0 }) ) ); @@ -4603,11 +2797,11 @@ be_local_closure(Matter_Device_mdns_remove_op_discovery, /* name */ /******************************************************************** -** Solidified function: get_plugin_class_displayname +** Solidified function: _mdns_announce_hostname ********************************************************************/ -be_local_closure(Matter_Device_get_plugin_class_displayname, /* name */ +be_local_closure(Matter_Device__mdns_announce_hostname, /* name */ be_nested_proto( - 5, /* nstack */ + 16, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -4615,87 +2809,211 @@ be_local_closure(Matter_Device_get_plugin_class_displayname, /* name */ 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(NAME), - /* K3 */ be_nested_str_weak(), + ( &(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(get_plugin_class_displayname), + be_str_weak(_mdns_announce_hostname), &be_const_str_solidified, - ( &(const binstruction[ 9]) { /* code */ - 0x88080100, // 0000 GETMBR R2 R0 K0 - 0x8C080501, // 0001 GETMET R2 R2 K1 - 0x5C100200, // 0002 MOVE R4 R1 - 0x7C080400, // 0003 CALL R2 2 - 0x780A0001, // 0004 JMPF R2 #0007 - 0x880C0502, // 0005 GETMBR R3 R2 K2 - 0x70020000, // 0006 JMP #0008 - 0x580C0003, // 0007 LDCONST R3 K3 - 0x80040600, // 0008 RET 1 R3 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: every_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 + ( &(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 }) ) ); @@ -4834,25 +3152,1888 @@ be_local_closure(Matter_Device_start_mdns_announce_hostnames, /* name */ /*******************************************************************/ +/******************************************************************** +** 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: _load_plugins_config +********************************************************************/ +be_local_closure(Matter_Device__load_plugins_config, /* name */ + be_nested_proto( + 19, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[27]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(k2l_num), + /* K2 */ be_nested_str_weak(tasmota), + /* K3 */ be_nested_str_weak(log), + /* K4 */ be_nested_str_weak(MTR_X3A_X20endpoints_X20to_X20be_X20configured_X20), + /* K5 */ be_const_int(3), + /* K6 */ be_nested_str_weak(format), + /* K7 */ be_nested_str_weak(MTR_X3A_X20endpoint_X20_X25i_X20config_X20_X25s), + /* K8 */ be_nested_str_weak(find), + /* K9 */ be_nested_str_weak(type), + /* K10 */ be_nested_str_weak(MTR_X3A_X20no_X20class_X20name_X2C_X20skipping), + /* K11 */ be_nested_str_weak(plugins_classes), + /* K12 */ be_nested_str_weak(MTR_X3A_X20unknown_X20class_X20name_X20_X27), + /* K13 */ be_nested_str_weak(_X27_X20skipping), + /* K14 */ be_const_int(2), + /* K15 */ be_nested_str_weak(plugins), + /* K16 */ be_nested_str_weak(push), + /* K17 */ be_nested_str_weak(), + /* K18 */ be_nested_str_weak(k2l), + /* K19 */ be_nested_str_weak(_X20_X25s_X3A_X25s), + /* K20 */ be_nested_str_weak(stop_iteration), + /* K21 */ be_nested_str_weak(MTR_X3A_X20endpoint_X3A_X25i_X20type_X3A_X25s_X25s), + /* K22 */ be_nested_str_weak(MTR_X3A_X20Exception), + /* K23 */ be_nested_str_weak(_X7C), + /* K24 */ be_nested_str_weak(publish_result), + /* K25 */ be_nested_str_weak(_X7B_X22Matter_X22_X3A_X7B_X22Initialized_X22_X3A1_X7D_X7D), + /* K26 */ be_nested_str_weak(Matter), + }), + be_str_weak(_load_plugins_config), + &be_const_str_solidified, + ( &(const binstruction[133]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0x8C0C0101, // 0001 GETMET R3 R0 K1 + 0x5C140200, // 0002 MOVE R5 R1 + 0x7C0C0400, // 0003 CALL R3 2 + 0xB8120400, // 0004 GETNGBL R4 K2 + 0x8C100903, // 0005 GETMET R4 R4 K3 + 0x60180008, // 0006 GETGBL R6 G8 + 0x5C1C0600, // 0007 MOVE R7 R3 + 0x7C180200, // 0008 CALL R6 1 + 0x001A0806, // 0009 ADD R6 K4 R6 + 0x581C0005, // 000A LDCONST R7 K5 + 0x7C100600, // 000B CALL R4 3 + 0x60100010, // 000C GETGBL R4 G16 + 0x5C140600, // 000D MOVE R5 R3 + 0x7C100200, // 000E CALL R4 1 + 0xA802006B, // 000F EXBLK 0 #007C + 0x5C140800, // 0010 MOVE R5 R4 + 0x7C140000, // 0011 CALL R5 0 + 0xA8020056, // 0012 EXBLK 0 #006A + 0x60180008, // 0013 GETGBL R6 G8 + 0x5C1C0A00, // 0014 MOVE R7 R5 + 0x7C180200, // 0015 CALL R6 1 + 0x94180206, // 0016 GETIDX R6 R1 R6 + 0xB81E0400, // 0017 GETNGBL R7 K2 + 0x8C1C0F03, // 0018 GETMET R7 R7 K3 + 0x8C240506, // 0019 GETMET R9 R2 K6 + 0x582C0007, // 001A LDCONST R11 K7 + 0x5C300A00, // 001B MOVE R12 R5 + 0x5C340C00, // 001C MOVE R13 R6 + 0x7C240800, // 001D CALL R9 4 + 0x58280005, // 001E LDCONST R10 K5 + 0x7C1C0600, // 001F CALL R7 3 + 0x8C1C0D08, // 0020 GETMET R7 R6 K8 + 0x58240009, // 0021 LDCONST R9 K9 + 0x7C1C0400, // 0022 CALL R7 2 + 0x4C200000, // 0023 LDNIL R8 + 0x1C200E08, // 0024 EQ R8 R7 R8 + 0x78220006, // 0025 JMPF R8 #002D + 0xB8220400, // 0026 GETNGBL R8 K2 + 0x8C201103, // 0027 GETMET R8 R8 K3 + 0x5828000A, // 0028 LDCONST R10 K10 + 0x582C0005, // 0029 LDCONST R11 K5 + 0x7C200600, // 002A CALL R8 3 + 0xA8040001, // 002B EXBLK 1 1 + 0x7001FFE2, // 002C JMP #0010 + 0x8820010B, // 002D GETMBR R8 R0 K11 + 0x8C201108, // 002E GETMET R8 R8 K8 + 0x5C280E00, // 002F MOVE R10 R7 + 0x7C200400, // 0030 CALL R8 2 + 0x4C240000, // 0031 LDNIL R9 + 0x1C241009, // 0032 EQ R9 R8 R9 + 0x7826000A, // 0033 JMPF R9 #003F + 0xB8260400, // 0034 GETNGBL R9 K2 + 0x8C241303, // 0035 GETMET R9 R9 K3 + 0x602C0008, // 0036 GETGBL R11 G8 + 0x5C300E00, // 0037 MOVE R12 R7 + 0x7C2C0200, // 0038 CALL R11 1 + 0x002E180B, // 0039 ADD R11 K12 R11 + 0x002C170D, // 003A ADD R11 R11 K13 + 0x5830000E, // 003B LDCONST R12 K14 + 0x7C240600, // 003C CALL R9 3 + 0xA8040001, // 003D EXBLK 1 1 + 0x7001FFD0, // 003E JMP #0010 + 0x5C241000, // 003F MOVE R9 R8 + 0x5C280000, // 0040 MOVE R10 R0 + 0x5C2C0A00, // 0041 MOVE R11 R5 + 0x5C300C00, // 0042 MOVE R12 R6 + 0x7C240600, // 0043 CALL R9 3 + 0x8828010F, // 0044 GETMBR R10 R0 K15 + 0x8C281510, // 0045 GETMET R10 R10 K16 + 0x5C301200, // 0046 MOVE R12 R9 + 0x7C280400, // 0047 CALL R10 2 + 0x58280011, // 0048 LDCONST R10 K17 + 0x602C0010, // 0049 GETGBL R11 G16 + 0x8C300112, // 004A GETMET R12 R0 K18 + 0x5C380C00, // 004B MOVE R14 R6 + 0x7C300400, // 004C CALL R12 2 + 0x7C2C0200, // 004D CALL R11 1 + 0xA802000B, // 004E EXBLK 0 #005B + 0x5C301600, // 004F MOVE R12 R11 + 0x7C300000, // 0050 CALL R12 0 + 0x1C341909, // 0051 EQ R13 R12 K9 + 0x78360000, // 0052 JMPF R13 #0054 + 0x7001FFFA, // 0053 JMP #004F + 0x8C340506, // 0054 GETMET R13 R2 K6 + 0x583C0013, // 0055 LDCONST R15 K19 + 0x5C401800, // 0056 MOVE R16 R12 + 0x94440C0C, // 0057 GETIDX R17 R6 R12 + 0x7C340800, // 0058 CALL R13 4 + 0x0028140D, // 0059 ADD R10 R10 R13 + 0x7001FFF3, // 005A JMP #004F + 0x582C0014, // 005B LDCONST R11 K20 + 0xAC2C0200, // 005C CATCH R11 1 0 + 0xB0080000, // 005D RAISE 2 R0 R0 + 0xB82E0400, // 005E GETNGBL R11 K2 + 0x8C2C1703, // 005F GETMET R11 R11 K3 + 0x8C340506, // 0060 GETMET R13 R2 K6 + 0x583C0015, // 0061 LDCONST R15 K21 + 0x5C400A00, // 0062 MOVE R16 R5 + 0x5C440E00, // 0063 MOVE R17 R7 + 0x5C481400, // 0064 MOVE R18 R10 + 0x7C340A00, // 0065 CALL R13 5 + 0x5838000E, // 0066 LDCONST R14 K14 + 0x7C2C0600, // 0067 CALL R11 3 + 0xA8040001, // 0068 EXBLK 1 1 + 0x70020010, // 0069 JMP #007B + 0xAC180002, // 006A CATCH R6 0 2 + 0x7002000D, // 006B JMP #007A + 0xB8220400, // 006C GETNGBL R8 K2 + 0x8C201103, // 006D GETMET R8 R8 K3 + 0x60280008, // 006E GETGBL R10 G8 + 0x5C2C0C00, // 006F MOVE R11 R6 + 0x7C280200, // 0070 CALL R10 1 + 0x002A2C0A, // 0071 ADD R10 K22 R10 + 0x00281517, // 0072 ADD R10 R10 K23 + 0x602C0008, // 0073 GETGBL R11 G8 + 0x5C300E00, // 0074 MOVE R12 R7 + 0x7C2C0200, // 0075 CALL R11 1 + 0x0028140B, // 0076 ADD R10 R10 R11 + 0x582C000E, // 0077 LDCONST R11 K14 + 0x7C200600, // 0078 CALL R8 3 + 0x70020000, // 0079 JMP #007B + 0xB0080000, // 007A RAISE 2 R0 R0 + 0x7001FF93, // 007B JMP #0010 + 0x58100014, // 007C LDCONST R4 K20 + 0xAC100200, // 007D CATCH R4 1 0 + 0xB0080000, // 007E RAISE 2 R0 R0 + 0xB8120400, // 007F GETNGBL R4 K2 + 0x8C100918, // 0080 GETMET R4 R4 K24 + 0x58180019, // 0081 LDCONST R6 K25 + 0x581C001A, // 0082 LDCONST R7 K26 + 0x7C100600, // 0083 CALL R4 3 + 0x80000000, // 0084 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: save_before_restart +********************************************************************/ +be_local_closure(Matter_Device_save_before_restart, /* name */ + be_nested_proto( + 3, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(stop_basic_commissioning), + /* K1 */ be_nested_str_weak(mdns_remove_op_discovery_all_fabrics), + }), + be_str_weak(save_before_restart), + &be_const_str_solidified, + ( &(const binstruction[ 5]) { /* code */ + 0x8C040100, // 0000 GETMET R1 R0 K0 + 0x7C040200, // 0001 CALL R1 1 + 0x8C040101, // 0002 GETMET R1 R0 K1 + 0x7C040200, // 0003 CALL R1 1 + 0x80000000, // 0004 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: start_root_basic_commissioning +********************************************************************/ +be_local_closure(Matter_Device_start_root_basic_commissioning, /* 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[23]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(PASE_TIMEOUT), + /* K2 */ be_nested_str_weak(compute_manual_pairing_code), + /* K3 */ be_nested_str_weak(tasmota), + /* K4 */ be_nested_str_weak(log), + /* K5 */ be_nested_str_weak(format), + /* K6 */ be_nested_str_weak(MTR_X3A_X20Manual_X20pairing_X20code_X3A_X20_X25s_X2D_X25s_X2D_X25s), + /* K7 */ be_const_int(0), + /* K8 */ be_const_int(3), + /* K9 */ be_const_int(2147483647), + /* K10 */ be_const_int(2), + /* K11 */ be_nested_str_weak(compute_qrcode_content), + /* K12 */ be_nested_str_weak(publish_result), + /* K13 */ be_nested_str_weak(_X7B_X22Matter_X22_X3A_X7B_X22Commissioning_X22_X3A1_X2C_X22PairingCode_X22_X3A_X22_X25s_X22_X2C_X22QRCode_X22_X3A_X22_X25s_X22_X7D_X7D), + /* K14 */ be_nested_str_weak(Matter), + /* K15 */ be_nested_str_weak(_compute_pbkdf), + /* K16 */ be_nested_str_weak(root_passcode), + /* K17 */ be_nested_str_weak(root_iterations), + /* K18 */ be_nested_str_weak(root_salt), + /* K19 */ be_nested_str_weak(start_basic_commissioning), + /* K20 */ be_nested_str_weak(root_discriminator), + /* K21 */ be_nested_str_weak(root_w0), + /* K22 */ be_nested_str_weak(root_L), + }), + be_str_weak(start_root_basic_commissioning), + &be_const_str_solidified, + ( &(const binstruction[49]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0x4C0C0000, // 0001 LDNIL R3 + 0x1C0C0203, // 0002 EQ R3 R1 R3 + 0x780E0000, // 0003 JMPF R3 #0005 + 0x88040101, // 0004 GETMBR R1 R0 K1 + 0x8C0C0102, // 0005 GETMET R3 R0 K2 + 0x7C0C0200, // 0006 CALL R3 1 + 0xB8120600, // 0007 GETNGBL R4 K3 + 0x8C100904, // 0008 GETMET R4 R4 K4 + 0x8C180505, // 0009 GETMET R6 R2 K5 + 0x58200006, // 000A LDCONST R8 K6 + 0x40260F08, // 000B CONNECT R9 K7 K8 + 0x94240609, // 000C GETIDX R9 R3 R9 + 0x542A0003, // 000D LDINT R10 4 + 0x542E0005, // 000E LDINT R11 6 + 0x4028140B, // 000F CONNECT R10 R10 R11 + 0x9428060A, // 0010 GETIDX R10 R3 R10 + 0x542E0006, // 0011 LDINT R11 7 + 0x402C1709, // 0012 CONNECT R11 R11 K9 + 0x942C060B, // 0013 GETIDX R11 R3 R11 + 0x7C180A00, // 0014 CALL R6 5 + 0x581C000A, // 0015 LDCONST R7 K10 + 0x7C100600, // 0016 CALL R4 3 + 0x8C10010B, // 0017 GETMET R4 R0 K11 + 0x7C100200, // 0018 CALL R4 1 + 0xB8160600, // 0019 GETNGBL R5 K3 + 0x8C140B0C, // 001A GETMET R5 R5 K12 + 0x8C1C0505, // 001B GETMET R7 R2 K5 + 0x5824000D, // 001C LDCONST R9 K13 + 0x5C280600, // 001D MOVE R10 R3 + 0x5C2C0800, // 001E MOVE R11 R4 + 0x7C1C0800, // 001F CALL R7 4 + 0x5820000E, // 0020 LDCONST R8 K14 + 0x7C140600, // 0021 CALL R5 3 + 0x8C14010F, // 0022 GETMET R5 R0 K15 + 0x881C0110, // 0023 GETMBR R7 R0 K16 + 0x88200111, // 0024 GETMBR R8 R0 K17 + 0x88240112, // 0025 GETMBR R9 R0 K18 + 0x7C140800, // 0026 CALL R5 4 + 0x8C140113, // 0027 GETMET R5 R0 K19 + 0x5C1C0200, // 0028 MOVE R7 R1 + 0x88200111, // 0029 GETMBR R8 R0 K17 + 0x88240114, // 002A GETMBR R9 R0 K20 + 0x88280112, // 002B GETMBR R10 R0 K18 + 0x882C0115, // 002C GETMBR R11 R0 K21 + 0x88300116, // 002D GETMBR R12 R0 K22 + 0x4C340000, // 002E LDNIL R13 + 0x7C141000, // 002F CALL R5 8 + 0x80000000, // 0030 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: _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 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: start_commissioning_complete_deferred +********************************************************************/ +be_local_closure(Matter_Device_start_commissioning_complete_deferred, /* name */ + be_nested_proto( + 6, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 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 + }) + ), + }), + 1, /* has constants */ + ( &(const bvalue[ 3]) { /* constants */ + /* K0 */ be_nested_str_weak(tasmota), + /* K1 */ be_nested_str_weak(set_timer), + /* K2 */ be_const_int(0), + }), + be_str_weak(start_commissioning_complete_deferred), + &be_const_str_solidified, + ( &(const binstruction[ 7]) { /* code */ + 0xB80A0000, // 0000 GETNGBL R2 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x58100002, // 0002 LDCONST R4 K2 + 0x84140000, // 0003 CLOSURE R5 P0 + 0x7C080600, // 0004 CALL R2 3 + 0xA0000000, // 0005 CLOSE R0 + 0x80000000, // 0006 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: start_basic_commissioning +********************************************************************/ +be_local_closure(Matter_Device_start_basic_commissioning, /* name */ + be_nested_proto( + 13, /* nstack */ + 8, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 1, /* has sup protos */ + ( &(const struct bproto*[ 2]) { + be_nested_proto( + 4, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(mdns_announce_PASE), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(remove_rule), + /* K3 */ be_nested_str_weak(Wifi_X23Connected), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x7C000200, // 0002 CALL R0 1 + 0xB8020200, // 0003 GETNGBL R0 K1 + 0x8C000102, // 0004 GETMET R0 R0 K2 + 0x58080003, // 0005 LDCONST R2 K3 + 0x580C0000, // 0006 LDCONST R3 K0 + 0x7C000600, // 0007 CALL R0 3 + 0x80000000, // 0008 RET 0 + }) + ), + be_nested_proto( + 4, /* nstack */ + 0, /* argc */ + 0, /* varg */ + 1, /* has upvals */ + ( &(const bupvaldesc[ 1]) { /* upvals */ + be_local_const_upval(1, 0), + }), + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[ 4]) { /* constants */ + /* K0 */ be_nested_str_weak(mdns_announce_PASE), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(remove_rule), + /* K3 */ be_nested_str_weak(Eth_X23Connected), + }), + be_str_weak(_anonymous_), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x68000000, // 0000 GETUPV R0 U0 + 0x8C000100, // 0001 GETMET R0 R0 K0 + 0x7C000200, // 0002 CALL R0 1 + 0xB8020200, // 0003 GETNGBL R0 K1 + 0x8C000102, // 0004 GETMET R0 R0 K2 + 0x58080003, // 0005 LDCONST R2 K3 + 0x580C0000, // 0006 LDCONST R3 K0 + 0x7C000600, // 0007 CALL R0 3 + 0x80000000, // 0008 RET 0 + }) + ), + }), + 1, /* has constants */ + ( &(const bvalue[16]) { /* constants */ + /* K0 */ be_nested_str_weak(commissioning_open), + /* K1 */ be_nested_str_weak(tasmota), + /* K2 */ be_nested_str_weak(millis), + /* K3 */ be_nested_str_weak(commissioning_iterations), + /* K4 */ be_nested_str_weak(commissioning_discriminator), + /* K5 */ be_nested_str_weak(commissioning_salt), + /* K6 */ be_nested_str_weak(commissioning_w0), + /* K7 */ be_nested_str_weak(commissioning_L), + /* K8 */ be_nested_str_weak(commissioning_admin_fabric), + /* K9 */ be_nested_str_weak(wifi), + /* K10 */ be_nested_str_weak(up), + /* K11 */ be_nested_str_weak(eth), + /* K12 */ be_nested_str_weak(mdns_announce_PASE), + /* K13 */ be_nested_str_weak(add_rule), + /* K14 */ be_nested_str_weak(Wifi_X23Connected), + /* K15 */ be_nested_str_weak(Eth_X23Connected), + }), + be_str_weak(start_basic_commissioning), + &be_const_str_solidified, + ( &(const binstruction[40]) { /* code */ + 0xB8220200, // 0000 GETNGBL R8 K1 + 0x8C201102, // 0001 GETMET R8 R8 K2 + 0x7C200200, // 0002 CALL R8 1 + 0x542603E7, // 0003 LDINT R9 1000 + 0x08240209, // 0004 MUL R9 R1 R9 + 0x00201009, // 0005 ADD R8 R8 R9 + 0x90020008, // 0006 SETMBR R0 K0 R8 + 0x90020602, // 0007 SETMBR R0 K3 R2 + 0x90020803, // 0008 SETMBR R0 K4 R3 + 0x90020A04, // 0009 SETMBR R0 K5 R4 + 0x90020C05, // 000A SETMBR R0 K6 R5 + 0x90020E06, // 000B SETMBR R0 K7 R6 + 0x90021007, // 000C SETMBR R0 K8 R7 + 0xB8220200, // 000D GETNGBL R8 K1 + 0x8C201109, // 000E GETMET R8 R8 K9 + 0x7C200200, // 000F CALL R8 1 + 0x9420110A, // 0010 GETIDX R8 R8 K10 + 0x74220004, // 0011 JMPT R8 #0017 + 0xB8220200, // 0012 GETNGBL R8 K1 + 0x8C20110B, // 0013 GETMET R8 R8 K11 + 0x7C200200, // 0014 CALL R8 1 + 0x9420110A, // 0015 GETIDX R8 R8 K10 + 0x78220002, // 0016 JMPF R8 #001A + 0x8C20010C, // 0017 GETMET R8 R0 K12 + 0x7C200200, // 0018 CALL R8 1 + 0x7002000B, // 0019 JMP #0026 + 0xB8220200, // 001A GETNGBL R8 K1 + 0x8C20110D, // 001B GETMET R8 R8 K13 + 0x5828000E, // 001C LDCONST R10 K14 + 0x842C0000, // 001D CLOSURE R11 P0 + 0x5830000C, // 001E LDCONST R12 K12 + 0x7C200800, // 001F CALL R8 4 + 0xB8220200, // 0020 GETNGBL R8 K1 + 0x8C20110D, // 0021 GETMET R8 R8 K13 + 0x5828000F, // 0022 LDCONST R10 K15 + 0x842C0001, // 0023 CLOSURE R11 P1 + 0x5830000C, // 0024 LDCONST R12 K12 + 0x7C200800, // 0025 CALL R8 4 + 0xA0000000, // 0026 CLOSE R0 + 0x80000000, // 0027 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** 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: 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: 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: autoconf_device +********************************************************************/ +be_local_closure(Matter_Device_autoconf_device, /* name */ + be_nested_proto( + 7, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[15]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(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(autoconf_device), + &be_const_str_solidified, + ( &(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 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** 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: 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: get_plugin_class_displayname +********************************************************************/ +be_local_closure(Matter_Device_get_plugin_class_displayname, /* name */ + be_nested_proto( + 5, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + 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(NAME), + /* K3 */ be_nested_str_weak(), + }), + be_str_weak(get_plugin_class_displayname), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0x88080100, // 0000 GETMBR R2 R0 K0 + 0x8C080501, // 0001 GETMET R2 R2 K1 + 0x5C100200, // 0002 MOVE R4 R1 + 0x7C080400, // 0003 CALL R2 2 + 0x780A0001, // 0004 JMPF R2 #0007 + 0x880C0502, // 0005 GETMBR R3 R2 K2 + 0x70020000, // 0006 JMP #0008 + 0x580C0003, // 0007 LDCONST R3 K3 + 0x80040600, // 0008 RET 1 R3 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: 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: 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 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** 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 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** 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: register_plugin_class +********************************************************************/ +be_local_closure(Matter_Device_register_plugin_class, /* 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(introspect), + /* K1 */ be_nested_str_weak(get), + /* K2 */ be_nested_str_weak(TYPE), + /* K3 */ be_nested_str_weak(plugins_classes), + }), + be_str_weak(register_plugin_class), + &be_const_str_solidified, + ( &(const binstruction[ 9]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0x8C0C0501, // 0001 GETMET R3 R2 K1 + 0x5C140200, // 0002 MOVE R5 R1 + 0x58180002, // 0003 LDCONST R6 K2 + 0x7C0C0600, // 0004 CALL R3 3 + 0x780E0001, // 0005 JMPF R3 #0008 + 0x88100103, // 0006 GETMBR R4 R0 K3 + 0x98100601, // 0007 SETIDX R4 R3 R1 + 0x80000000, // 0008 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_manual_pairing_code +********************************************************************/ +be_local_closure(Matter_Device_compute_manual_pairing_code, /* 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[ 8]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(root_discriminator), + /* K2 */ be_nested_str_weak(root_passcode), + /* K3 */ be_nested_str_weak(format), + /* K4 */ be_nested_str_weak(_X251i_X2505i_X2504i), + /* K5 */ be_nested_str_weak(matter), + /* K6 */ be_nested_str_weak(Verhoeff), + /* K7 */ be_nested_str_weak(checksum), + }), + be_str_weak(compute_manual_pairing_code), + &be_const_str_solidified, + ( &(const binstruction[31]) { /* code */ + 0xA4060000, // 0000 IMPORT R1 K0 + 0x88080101, // 0001 GETMBR R2 R0 K1 + 0x540E0FFE, // 0002 LDINT R3 4095 + 0x2C080403, // 0003 AND R2 R2 R3 + 0x540E0009, // 0004 LDINT R3 10 + 0x3C080403, // 0005 SHR R2 R2 R3 + 0x880C0101, // 0006 GETMBR R3 R0 K1 + 0x541202FF, // 0007 LDINT R4 768 + 0x2C0C0604, // 0008 AND R3 R3 R4 + 0x54120005, // 0009 LDINT R4 6 + 0x380C0604, // 000A SHL R3 R3 R4 + 0x88100102, // 000B GETMBR R4 R0 K2 + 0x54163FFE, // 000C LDINT R5 16383 + 0x2C100805, // 000D AND R4 R4 R5 + 0x300C0604, // 000E OR R3 R3 R4 + 0x88100102, // 000F GETMBR R4 R0 K2 + 0x5416000D, // 0010 LDINT R5 14 + 0x3C100805, // 0011 SHR R4 R4 R5 + 0x8C140303, // 0012 GETMET R5 R1 K3 + 0x581C0004, // 0013 LDCONST R7 K4 + 0x5C200400, // 0014 MOVE R8 R2 + 0x5C240600, // 0015 MOVE R9 R3 + 0x5C280800, // 0016 MOVE R10 R4 + 0x7C140A00, // 0017 CALL R5 5 + 0xB81A0A00, // 0018 GETNGBL R6 K5 + 0x88180D06, // 0019 GETMBR R6 R6 K6 + 0x8C180D07, // 001A GETMET R6 R6 K7 + 0x5C200A00, // 001B MOVE R8 R5 + 0x7C180400, // 001C CALL R6 2 + 0x00140A06, // 001D ADD R5 R5 R6 + 0x80040A00, // 001E RET 1 R5 + }) + ) +); +/*******************************************************************/ + + /******************************************************************** ** Solidified class: Matter_Device ********************************************************************/ be_local_class(Matter_Device, - 31, + 32, NULL, - be_nested_map(91, + be_nested_map(93, ( (struct bmapnode*) &(const bmapnode[]) { - { 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(message_handler, -1), be_const_var(6) }, + { be_const_key_weak(generate_random_passcode, -1), be_const_closure(Matter_Device_generate_random_passcode_closure) }, + { be_const_key_weak(save_param, -1), be_const_closure(Matter_Device_save_param_closure) }, + { be_const_key_weak(mdns_pase_wifi, -1), be_const_var(24) }, + { be_const_key_weak(remove_fabric, 28), be_const_closure(Matter_Device_remove_fabric_closure) }, + { be_const_key_weak(_start_udp, -1), be_const_closure(Matter_Device__start_udp_closure) }, + { be_const_key_weak(root_iterations, -1), be_const_var(28) }, + { be_const_key_weak(commissioning_discriminator, -1), be_const_var(12) }, + { be_const_key_weak(commissioning_w0, -1), be_const_var(14) }, + { be_const_key_weak(compute_manual_pairing_code, 66), be_const_closure(Matter_Device_compute_manual_pairing_code_closure) }, + { be_const_key_weak(root_discriminator, -1), be_const_var(25) }, + { be_const_key_weak(stop, -1), be_const_closure(Matter_Device_stop_closure) }, + { be_const_key_weak(mdns_remove_PASE, 22), be_const_closure(Matter_Device_mdns_remove_PASE_closure) }, + { be_const_key_weak(plugins_config, -1), be_const_var(4) }, + { be_const_key_weak(start_commissioning_complete, -1), be_const_closure(Matter_Device_start_commissioning_complete_closure) }, + { be_const_key_weak(_trigger_read_sensors, 62), be_const_closure(Matter_Device__trigger_read_sensors_closure) }, { 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(root_passcode, 12), be_const_var(26) }, + { be_const_key_weak(every_250ms, 19), be_const_closure(Matter_Device_every_250ms_closure) }, + { be_const_key_weak(commissioning_instance_eth, -1), be_const_var(18) }, + { be_const_key_weak(vendorid, -1), be_const_var(21) }, + { be_const_key_weak(register_native_classes, 89), be_const_closure(Matter_Device_register_native_classes_closure) }, + { be_const_key_weak(start_operational_discovery, 15), be_const_closure(Matter_Device_start_operational_discovery_closure) }, + { be_const_key_weak(_init_basic_commissioning, -1), be_const_closure(Matter_Device__init_basic_commissioning_closure) }, + { be_const_key_weak(compute_qrcode_content, -1), be_const_closure(Matter_Device_compute_qrcode_content_closure) }, + { be_const_key_weak(is_root_commissioning_open, -1), be_const_closure(Matter_Device_is_root_commissioning_open_closure) }, + { be_const_key_weak(commissioning_open, -1), be_const_var(10) }, + { be_const_key_weak(commissioning_instance_wifi, -1), be_const_var(17) }, + { be_const_key_weak(msg_received, -1), be_const_closure(Matter_Device_msg_received_closure) }, + { be_const_key_weak(get_active_endpoints, -1), be_const_closure(Matter_Device_get_active_endpoints_closure) }, + { be_const_key_weak(MtrJoin, -1), be_const_closure(Matter_Device_MtrJoin_closure) }, + { be_const_key_weak(productid, 73), be_const_var(22) }, + { be_const_key_weak(invoke_request, -1), be_const_closure(Matter_Device_invoke_request_closure) }, + { be_const_key_weak(get_plugin_class_displayname, 59), be_const_closure(Matter_Device_get_plugin_class_displayname_closure) }, + { be_const_key_weak(event_fabrics_saved, -1), be_const_closure(Matter_Device_event_fabrics_saved_closure) }, + { be_const_key_weak(start, 86), be_const_closure(Matter_Device_start_closure) }, + { be_const_key_weak(k2l_num, -1), be_const_static_closure(Matter_Device_k2l_num_closure) }, + { be_const_key_weak(mdns_announce_op_discovery, -1), be_const_closure(Matter_Device_mdns_announce_op_discovery_closure) }, + { be_const_key_weak(root_salt, -1), be_const_var(29) }, + { be_const_key_weak(every_second, 78), be_const_closure(Matter_Device_every_second_closure) }, + { be_const_key_weak(commissioning_L, -1), be_const_var(15) }, + { be_const_key_weak(hostname_wifi, 18), be_const_var(19) }, + { be_const_key_weak(get_plugin_class_arg, 61), be_const_closure(Matter_Device_get_plugin_class_arg_closure) }, + { be_const_key_weak(started, 84), be_const_var(0) }, + { be_const_key_weak(root_w0, 25), be_const_var(30) }, + { be_const_key_weak(mdns_announce_PASE, -1), be_const_closure(Matter_Device_mdns_announce_PASE_closure) }, + { be_const_key_weak(autoconf_device_map, 82), be_const_closure(Matter_Device_autoconf_device_map_closure) }, + { be_const_key_weak(every_50ms, -1), be_const_closure(Matter_Device_every_50ms_closure) }, + { be_const_key_weak(commissioning_admin_fabric, -1), be_const_var(16) }, + { be_const_key_weak(msg_send, 30), be_const_closure(Matter_Device_msg_send_closure) }, + { be_const_key_weak(commissioning_salt, -1), be_const_var(13) }, + { be_const_key_weak(plugins, -1), be_const_var(1) }, + { be_const_key_weak(PBKDF_ITERATIONS, -1), be_const_int(1000) }, + { be_const_key_weak(_mdns_announce_hostname, 50), be_const_closure(Matter_Device__mdns_announce_hostname_closure) }, { be_const_key_weak(start_mdns_announce_hostnames, -1), be_const_closure(Matter_Device_start_mdns_announce_hostnames_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, -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_key_weak(attribute_updated, 49), be_const_closure(Matter_Device_attribute_updated_closure) }, + { be_const_key_weak(PRODUCT_ID, -1), be_const_int(32768) }, + { be_const_key_weak(root_L, -1), be_const_var(31) }, + { be_const_key_weak(register_commands, 77), be_const_closure(Matter_Device_register_commands_closure) }, + { be_const_key_weak(plugins_persist, -1), be_const_var(2) }, + { be_const_key_weak(init, 57), be_const_closure(Matter_Device_init_closure) }, + { be_const_key_weak(_compute_pbkdf, -1), be_const_closure(Matter_Device__compute_pbkdf_closure) }, + { be_const_key_weak(hostname_eth, -1), be_const_var(20) }, + { be_const_key_weak(received_ack, -1), be_const_closure(Matter_Device_received_ack_closure) }, + { be_const_key_weak(VENDOR_ID, -1), be_const_int(65521) }, + { be_const_key_weak(FILENAME, -1), be_nested_str_weak(_matter_device_X2Ejson) }, + { be_const_key_weak(load_param, -1), be_const_closure(Matter_Device_load_param_closure) }, + { be_const_key_weak(mdns_announce_op_discovery_all_fabrics, -1), be_const_closure(Matter_Device_mdns_announce_op_discovery_all_fabrics_closure) }, + { be_const_key_weak(tick, 70), be_const_var(9) }, + { be_const_key_weak(udp_server, 67), be_const_var(5) }, + { be_const_key_weak(start_basic_commissioning, -1), be_const_closure(Matter_Device_start_basic_commissioning_closure) }, + { be_const_key_weak(k2l, -1), be_const_static_closure(Matter_Device_k2l_closure) }, + { be_const_key_weak(PASSCODE_INVALID, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { be_const_list( * be_nested_list(12, ( (struct bvalue*) &(const bvalue[]) { be_const_int(0), @@ -4868,86 +5049,26 @@ be_local_class(Matter_Device, 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(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(start_root_basic_commissioning, -1), be_const_closure(Matter_Device_start_root_basic_commissioning_closure) }, + { be_const_key_weak(autoconf_device, -1), be_const_closure(Matter_Device_autoconf_device_closure) }, + { be_const_key_weak(save_before_restart, 56), be_const_closure(Matter_Device_save_before_restart_closure) }, + { be_const_key_weak(process_attribute_expansion, -1), be_const_closure(Matter_Device_process_attribute_expansion_closure) }, + { be_const_key_weak(_load_plugins_config, -1), be_const_closure(Matter_Device__load_plugins_config_closure) }, + { be_const_key_weak(mdns_pase_eth, -1), be_const_var(23) }, + { be_const_key_weak(PASE_TIMEOUT, 33), be_const_int(600) }, + { be_const_key_weak(is_commissioning_open, 31), be_const_closure(Matter_Device_is_commissioning_open_closure) }, + { be_const_key_weak(mdns_remove_op_discovery_all_fabrics, -1), be_const_closure(Matter_Device_mdns_remove_op_discovery_all_fabrics_closure) }, { be_const_key_weak(mdns_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(ui, -1), be_const_var(8) }, { 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_const_key_weak(plugins_classes, -1), be_const_var(3) }, + { be_const_key_weak(sort_distinct, 47), be_const_static_closure(Matter_Device_sort_distinct_closure) }, + { be_const_key_weak(commissioning_iterations, 16), be_const_var(11) }, + { be_const_key_weak(UDP_PORT, -1), be_const_int(5540) }, + { be_const_key_weak(stop_basic_commissioning, -1), be_const_closure(Matter_Device_stop_basic_commissioning_closure) }, + { be_const_key_weak(start_commissioning_complete_deferred, 9), be_const_closure(Matter_Device_start_commissioning_complete_deferred_closure) }, + { be_const_key_weak(ipv4only, 3), be_const_var(27) }, + { be_const_key_weak(start_operational_discovery_deferred, 0), be_const_closure(Matter_Device_start_operational_discovery_deferred_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 4e0419fb8..a94a7c160 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_MessageHandler.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_MessageHandler.h @@ -300,7 +300,7 @@ be_local_closure(Matter_MessageHandler_msg_received, /* name */ }), be_str_weak(msg_received), &be_const_str_solidified, - ( &(const binstruction[390]) { /* code */ + ( &(const binstruction[391]) { /* code */ 0xA4120000, // 0000 IMPORT R4 K0 0x50140000, // 0001 LDBOOL R5 0 0 0xA802016A, // 0002 EXBLK 0 #016E @@ -666,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 - 0x70020016, // 016D JMP #0185 + 0x70020017, // 016D JMP #0186 0xAC180002, // 016E CATCH R6 0 2 - 0x70020013, // 016F JMP #0184 + 0x70020014, // 016F JMP #0185 0xB8220A00, // 0170 GETNGBL R8 K5 0x8C201106, // 0171 GETMET R8 R8 K6 0x60280008, // 0172 GETGBL R10 G8 @@ -681,16 +681,17 @@ be_local_closure(Matter_MessageHandler_msg_received, /* name */ 0x7C2C0200, // 0179 CALL R11 1 0x0028140B, // 017A ADD R10 R10 R11 0x7C200400, // 017B CALL R8 2 - 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 + 0xB8220A00, // 017C GETNGBL R8 K5 + 0x88201148, // 017D GETMBR R8 R8 K72 + 0x78220002, // 017E JMPF R8 #0182 + 0xA4229200, // 017F IMPORT R8 K73 + 0x8C24114A, // 0180 GETMET R9 R8 K74 + 0x7C240200, // 0181 CALL R9 1 + 0x50200000, // 0182 LDBOOL R8 0 0 + 0x80041000, // 0183 RET 1 R8 + 0x70020000, // 0184 JMP #0186 + 0xB0080000, // 0185 RAISE 2 R0 R0 + 0x80000000, // 0186 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 00fe4a9f5..1455906aa 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin.h @@ -7,100 +7,9 @@ extern const bclass be_class_Matter_Plugin; /******************************************************************** -** Solidified function: attribute_updated +** Solidified function: read_event ********************************************************************/ -be_local_closure(Matter_Plugin_attribute_updated, /* name */ - be_nested_proto( - 11, /* nstack */ - 5, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[ 3]) { /* constants */ - /* K0 */ be_nested_str_weak(endpoint), - /* K1 */ be_nested_str_weak(device), - /* K2 */ be_nested_str_weak(attribute_updated), - }), - be_str_weak(attribute_updated), - &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 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: timed_request -********************************************************************/ -be_local_closure(Matter_Plugin_timed_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(timed_request), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x4C100000, // 0000 LDNIL R4 - 0x80040800, // 0001 RET 1 R4 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: get_endpoint -********************************************************************/ -be_local_closure(Matter_Plugin_get_endpoint, /* name */ - be_nested_proto( - 2, /* 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(endpoint), - }), - be_str_weak(get_endpoint), - &be_const_str_solidified, - ( &(const binstruction[ 2]) { /* code */ - 0x88040100, // 0000 GETMBR R1 R0 K0 - 0x80040200, // 0001 RET 1 R1 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: subscribe_attribute -********************************************************************/ -be_local_closure(Matter_Plugin_subscribe_attribute, /* name */ +be_local_closure(Matter_Plugin_read_event, /* name */ be_nested_proto( 6, /* nstack */ 5, /* argc */ @@ -111,7 +20,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(read_event), &be_const_str_solidified, ( &(const binstruction[ 2]) { /* code */ 0x4C140000, // 0000 LDNIL R5 @@ -122,40 +31,6 @@ be_local_closure(Matter_Plugin_subscribe_attribute, /* name */ /*******************************************************************/ -/******************************************************************** -** Solidified function: init -********************************************************************/ -be_local_closure(Matter_Plugin_init, /* name */ - be_nested_proto( - 6, /* 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(device), - /* K1 */ be_nested_str_weak(endpoint), - /* K2 */ be_nested_str_weak(clusters), - /* K3 */ be_nested_str_weak(consolidate_clusters), - }), - be_str_weak(init), - &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ - 0x90020001, // 0000 SETMBR R0 K0 R1 - 0x90020202, // 0001 SETMBR R0 K1 R2 - 0x8C100103, // 0002 GETMET R4 R0 K3 - 0x7C100200, // 0003 CALL R4 1 - 0x90020404, // 0004 SETMBR R0 K2 R4 - 0x80000000, // 0005 RET 0 - }) - ) -); -/*******************************************************************/ - - /******************************************************************** ** Solidified function: write_attribute ********************************************************************/ @@ -182,12 +57,47 @@ be_local_closure(Matter_Plugin_write_attribute, /* name */ /******************************************************************** -** Solidified function: has +** Solidified function: attribute_updated ********************************************************************/ -be_local_closure(Matter_Plugin_has, /* name */ +be_local_closure(Matter_Plugin_attribute_updated, /* name */ be_nested_proto( - 6, /* nstack */ - 3, /* argc */ + 10, /* 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(device), + /* K1 */ be_nested_str_weak(attribute_updated), + /* K2 */ be_nested_str_weak(endpoint), + }), + be_str_weak(attribute_updated), + &be_const_str_solidified, + ( &(const binstruction[ 8]) { /* code */ + 0x88100100, // 0000 GETMBR R4 R0 K0 + 0x8C100901, // 0001 GETMET R4 R4 K1 + 0x88180102, // 0002 GETMBR R6 R0 K2 + 0x5C1C0200, // 0003 MOVE R7 R1 + 0x5C200400, // 0004 MOVE R8 R2 + 0x5C240600, // 0005 MOVE R9 R3 + 0x7C100A00, // 0006 CALL R4 5 + 0x80000000, // 0007 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: get_cluster_list +********************************************************************/ +be_local_closure(Matter_Plugin_get_cluster_list, /* name */ + be_nested_proto( + 8, /* nstack */ + 2, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ @@ -196,53 +106,31 @@ be_local_closure(Matter_Plugin_has, /* name */ 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), + /* K1 */ be_nested_str_weak(keys), + /* K2 */ be_nested_str_weak(push), + /* K3 */ be_nested_str_weak(stop_iteration), }), - be_str_weak(has), + be_str_weak(get_cluster_list), &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: 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 + ( &(const binstruction[18]) { /* code */ + 0x60080012, // 0000 GETGBL R2 G18 + 0x7C080000, // 0001 CALL R2 0 + 0x600C0010, // 0002 GETGBL R3 G16 + 0x88100100, // 0003 GETMBR R4 R0 K0 + 0x8C100901, // 0004 GETMET R4 R4 K1 + 0x7C100200, // 0005 CALL R4 1 + 0x7C0C0200, // 0006 CALL R3 1 + 0xA8020005, // 0007 EXBLK 0 #000E + 0x5C100600, // 0008 MOVE R4 R3 + 0x7C100000, // 0009 CALL R4 0 + 0x8C140502, // 000A GETMET R5 R2 K2 + 0x5C1C0800, // 000B MOVE R7 R4 + 0x7C140400, // 000C CALL R5 2 + 0x7001FFF9, // 000D JMP #0008 + 0x580C0003, // 000E LDCONST R3 K3 + 0xAC0C0200, // 000F CATCH R3 1 0 + 0xB0080000, // 0010 RAISE 2 R0 R0 + 0x80040400, // 0011 RET 1 R2 }) ) ); @@ -254,31 +142,7 @@ be_local_closure(Matter_Plugin_invoke_request, /* name */ ********************************************************************/ 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 */ + 2, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -286,15 +150,17 @@ be_local_closure(Matter_Plugin_every_second, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(update_shadow), + ( &(const bvalue[ 2]) { /* constants */ + /* K0 */ be_nested_str_weak(tick), + /* K1 */ be_nested_str_weak(device), }), - be_str_weak(every_second), + be_str_weak(update_shadow), &be_const_str_solidified, - ( &(const binstruction[ 3]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x7C040200, // 0001 CALL R1 1 - 0x80000000, // 0002 RET 0 + ( &(const binstruction[ 4]) { /* code */ + 0x88040101, // 0000 GETMBR R1 R0 K1 + 0x88040300, // 0001 GETMBR R1 R1 K0 + 0x90020001, // 0002 SETMBR R0 K0 R1 + 0x80000000, // 0003 RET 0 }) ) ); @@ -539,33 +405,6 @@ 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 ********************************************************************/ @@ -600,12 +439,12 @@ be_local_closure(Matter_Plugin_get_attribute_list, /* name */ /******************************************************************** -** Solidified function: read_event +** Solidified function: timed_request ********************************************************************/ -be_local_closure(Matter_Plugin_read_event, /* name */ +be_local_closure(Matter_Plugin_timed_request, /* name */ be_nested_proto( - 6, /* nstack */ - 5, /* argc */ + 5, /* nstack */ + 4, /* argc */ 2, /* varg */ 0, /* has upvals */ NULL, /* no upvals */ @@ -613,11 +452,11 @@ be_local_closure(Matter_Plugin_read_event, /* name */ NULL, /* no sub protos */ 0, /* has constants */ NULL, /* no const */ - be_str_weak(read_event), + be_str_weak(timed_request), &be_const_str_solidified, ( &(const binstruction[ 2]) { /* code */ - 0x4C140000, // 0000 LDNIL R5 - 0x80040A00, // 0001 RET 1 R5 + 0x4C100000, // 0000 LDNIL R4 + 0x80040800, // 0001 RET 1 R4 }) ) ); @@ -649,12 +488,213 @@ be_local_closure(Matter_Plugin_parse_sensors, /* name */ /******************************************************************** -** Solidified function: get_cluster_list +** Solidified function: update_shadow_lazy ********************************************************************/ -be_local_closure(Matter_Plugin_get_cluster_list, /* name */ +be_local_closure(Matter_Plugin_update_shadow_lazy, /* name */ be_nested_proto( - 8, /* 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[ 3]) { /* constants */ + /* K0 */ be_nested_str_weak(tick), + /* K1 */ be_nested_str_weak(device), + /* K2 */ be_nested_str_weak(update_shadow), + }), + be_str_weak(update_shadow_lazy), + &be_const_str_solidified, + ( &(const binstruction[ 8]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x88080101, // 0001 GETMBR R2 R0 K1 + 0x88080500, // 0002 GETMBR R2 R2 K0 + 0x20040202, // 0003 NE R1 R1 R2 + 0x78060001, // 0004 JMPF R1 #0007 + 0x8C040102, // 0005 GETMET R1 R0 K2 + 0x7C040200, // 0006 CALL R1 1 + 0x80000000, // 0007 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** 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_endpoint +********************************************************************/ +be_local_closure(Matter_Plugin_get_endpoint, /* name */ + be_nested_proto( + 2, /* 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(endpoint), + }), + be_str_weak(get_endpoint), + &be_const_str_solidified, + ( &(const binstruction[ 2]) { /* code */ + 0x88040100, // 0000 GETMBR R1 R0 K0 + 0x80040200, // 0001 RET 1 R1 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: subscribe_attribute +********************************************************************/ +be_local_closure(Matter_Plugin_subscribe_attribute, /* 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_attribute), + &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 */ + 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 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** 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: init +********************************************************************/ +be_local_closure(Matter_Plugin_init, /* name */ + be_nested_proto( + 6, /* 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(device), + /* K1 */ be_nested_str_weak(endpoint), + /* K2 */ be_nested_str_weak(clusters), + /* K3 */ be_nested_str_weak(consolidate_clusters), + }), + be_str_weak(init), + &be_const_str_solidified, + ( &(const binstruction[ 6]) { /* code */ + 0x90020001, // 0000 SETMBR R0 K0 R1 + 0x90020202, // 0001 SETMBR R0 K1 R2 + 0x8C100103, // 0002 GETMET R4 R0 K3 + 0x7C100200, // 0003 CALL R4 1 + 0x90020404, // 0004 SETMBR R0 K2 R4 + 0x80000000, // 0005 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** 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 */ @@ -663,31 +703,28 @@ be_local_closure(Matter_Plugin_get_cluster_list, /* name */ 1, /* has constants */ ( &(const bvalue[ 4]) { /* constants */ /* K0 */ be_nested_str_weak(clusters), - /* K1 */ be_nested_str_weak(keys), - /* K2 */ be_nested_str_weak(push), - /* K3 */ be_nested_str_weak(stop_iteration), + /* K1 */ be_nested_str_weak(contains), + /* K2 */ be_nested_str_weak(endpoints), + /* K3 */ be_nested_str_weak(find), }), - be_str_weak(get_cluster_list), + be_str_weak(has), &be_const_str_solidified, - ( &(const binstruction[18]) { /* code */ - 0x60080012, // 0000 GETGBL R2 G18 - 0x7C080000, // 0001 CALL R2 0 - 0x600C0010, // 0002 GETGBL R3 G16 - 0x88100100, // 0003 GETMBR R4 R0 K0 - 0x8C100901, // 0004 GETMET R4 R4 K1 - 0x7C100200, // 0005 CALL R4 1 - 0x7C0C0200, // 0006 CALL R3 1 - 0xA8020005, // 0007 EXBLK 0 #000E - 0x5C100600, // 0008 MOVE R4 R3 - 0x7C100000, // 0009 CALL R4 0 - 0x8C140502, // 000A GETMET R5 R2 K2 - 0x5C1C0800, // 000B MOVE R7 R4 - 0x7C140400, // 000C CALL R5 2 - 0x7001FFF9, // 000D JMP #0008 - 0x580C0003, // 000E LDCONST R3 K3 - 0xAC0C0200, // 000F CATCH R3 1 0 - 0xB0080000, // 0010 RAISE 2 R0 R0 - 0x80040400, // 0011 RET 1 R2 + ( &(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 }) ) ); @@ -723,13 +760,18 @@ be_local_closure(Matter_Plugin_subscribe_event, /* name */ ** Solidified class: Matter_Plugin ********************************************************************/ be_local_class(Matter_Plugin, - 3, + 4, NULL, - be_nested_map(25, + be_nested_map(27, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_weak(attribute_updated, -1), be_const_closure(Matter_Plugin_attribute_updated_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(read_event, 6), be_const_closure(Matter_Plugin_read_event_closure) }, + { be_const_key_weak(TYPE, 18), be_nested_str_weak() }, + { be_const_key_weak(update_shadow, -1), be_const_closure(Matter_Plugin_update_shadow_closure) }, + { be_const_key_weak(get_attribute_list, -1), be_const_closure(Matter_Plugin_get_attribute_list_closure) }, + { be_const_key_weak(init, -1), be_const_closure(Matter_Plugin_init_closure) }, + { be_const_key_weak(tick, -1), be_const_var(3) }, + { be_const_key_weak(ARG, -1), be_nested_str_weak() }, + { be_const_key_weak(get_cluster_list, 2), be_const_closure(Matter_Plugin_get_cluster_list_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[]) { @@ -744,27 +786,24 @@ be_local_class(Matter_Plugin, be_const_int(65533), })) ) } )) }, })) ) } )) }, - { 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(clusters, -1), be_const_var(2) }, + { be_const_key_weak(consolidate_clusters, -1), be_const_closure(Matter_Plugin_consolidate_clusters_closure) }, { be_const_key_weak(NAME, 3), be_nested_str_weak() }, + { be_const_key_weak(subscribe_attribute, 20), be_const_closure(Matter_Plugin_subscribe_attribute_closure) }, + { be_const_key_weak(timed_request, -1), be_const_closure(Matter_Plugin_timed_request_closure) }, + { be_const_key_weak(read_attribute, 9), be_const_closure(Matter_Plugin_read_attribute_closure) }, + { be_const_key_weak(write_attribute, 13), be_const_closure(Matter_Plugin_write_attribute_closure) }, + { be_const_key_weak(update_shadow_lazy, -1), be_const_closure(Matter_Plugin_update_shadow_lazy_closure) }, + { be_const_key_weak(ARG_TYPE, -1), be_const_static_closure(Matter_Plugin__X3Clambda_X3E_closure) }, + { be_const_key_weak(get_endpoint, -1), be_const_closure(Matter_Plugin_get_endpoint_closure) }, + { be_const_key_weak(endpoint, -1), be_const_var(1) }, + { be_const_key_weak(every_second, -1), be_const_closure(Matter_Plugin_every_second_closure) }, + { be_const_key_weak(attribute_updated, 8), be_const_closure(Matter_Plugin_attribute_updated_closure) }, + { be_const_key_weak(invoke_request, -1), be_const_closure(Matter_Plugin_invoke_request_closure) }, + { be_const_key_weak(device, 4), be_const_var(0) }, + { be_const_key_weak(has, -1), be_const_closure(Matter_Plugin_has_closure) }, + { be_const_key_weak(subscribe_event, -1), be_const_closure(Matter_Plugin_subscribe_event_closure) }, })), be_str_weak(Matter_Plugin) ); diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Device.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Device.h index 192e2f3e3..054d6a0db 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Device.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Device.h @@ -36,7 +36,7 @@ be_local_closure(Matter_Plugin_Device_read_attribute, /* name */ }), be_str_weak(read_attribute), &be_const_str_solidified, - ( &(const binstruction[76]) { /* code */ + ( &(const binstruction[97]) { /* code */ 0xA40E0000, // 0000 IMPORT R3 K0 0xB8120200, // 0001 GETNGBL R4 K1 0x88100902, // 0002 GETMBR R4 R4 K2 @@ -77,7 +77,7 @@ be_local_closure(Matter_Plugin_Device_read_attribute, /* name */ 0x542A0003, // 0025 LDINT R10 4 0x7C1C0600, // 0026 CALL R7 3 0x80040E00, // 0027 RET 1 R7 - 0x70020021, // 0028 JMP #004B + 0x70020036, // 0028 JMP #0060 0x541E0003, // 0029 LDINT R7 4 0x1C1C0A07, // 002A EQ R7 R5 R7 0x781E0016, // 002B JMPF R7 #0043 @@ -103,16 +103,37 @@ be_local_closure(Matter_Plugin_Device_read_attribute, /* name */ 0x542A0003, // 003F LDINT R10 4 0x7C1C0600, // 0040 CALL R7 3 0x80040E00, // 0041 RET 1 R7 - 0x70020007, // 0042 JMP #004B - 0x601C0003, // 0043 GETGBL R7 G3 - 0x5C200000, // 0044 MOVE R8 R0 - 0x7C1C0200, // 0045 CALL R7 1 - 0x8C1C0F0C, // 0046 GETMET R7 R7 K12 - 0x5C240200, // 0047 MOVE R9 R1 - 0x5C280400, // 0048 MOVE R10 R2 - 0x7C1C0600, // 0049 CALL R7 3 - 0x80040E00, // 004A RET 1 R7 - 0x80000000, // 004B RET 0 + 0x7002001C, // 0042 JMP #0060 + 0x541E0004, // 0043 LDINT R7 5 + 0x1C1C0A07, // 0044 EQ R7 R5 R7 + 0x781E0011, // 0045 JMPF R7 #0058 + 0x541EFFFB, // 0046 LDINT R7 65532 + 0x1C1C0C07, // 0047 EQ R7 R6 R7 + 0x781E0005, // 0048 JMPF R7 #004F + 0x8C1C0907, // 0049 GETMET R7 R4 K7 + 0x8824090B, // 004A GETMBR R9 R4 K11 + 0x58280006, // 004B LDCONST R10 K6 + 0x7C1C0600, // 004C CALL R7 3 + 0x80040E00, // 004D RET 1 R7 + 0x70020007, // 004E JMP #0057 + 0x541EFFFC, // 004F LDINT R7 65533 + 0x1C1C0C07, // 0050 EQ R7 R6 R7 + 0x781E0004, // 0051 JMPF R7 #0057 + 0x8C1C0907, // 0052 GETMET R7 R4 K7 + 0x8824090B, // 0053 GETMBR R9 R4 K11 + 0x542A0003, // 0054 LDINT R10 4 + 0x7C1C0600, // 0055 CALL R7 3 + 0x80040E00, // 0056 RET 1 R7 + 0x70020007, // 0057 JMP #0060 + 0x601C0003, // 0058 GETGBL R7 G3 + 0x5C200000, // 0059 MOVE R8 R0 + 0x7C1C0200, // 005A CALL R7 1 + 0x8C1C0F0C, // 005B GETMET R7 R7 K12 + 0x5C240200, // 005C MOVE R9 R1 + 0x5C280400, // 005D MOVE R10 R2 + 0x7C1C0600, // 005E CALL R7 3 + 0x80040E00, // 005F RET 1 R7 + 0x80000000, // 0060 RET 0 }) ) ); @@ -147,7 +168,7 @@ be_local_closure(Matter_Plugin_Device_invoke_request, /* name */ }), be_str_weak(invoke_request), &be_const_str_solidified, - ( &(const binstruction[45]) { /* code */ + ( &(const binstruction[51]) { /* code */ 0xB8120000, // 0000 GETNGBL R4 K0 0x88100901, // 0001 GETMBR R4 R4 K1 0x88140702, // 0002 GETMBR R5 R3 K2 @@ -176,23 +197,29 @@ be_local_closure(Matter_Plugin_Device_invoke_request, /* name */ 0x781E0001, // 0019 JMPF R7 #001C 0x501C0200, // 001A LDBOOL R7 1 0 0x80040E00, // 001B RET 1 R7 - 0x7002000E, // 001C JMP #002C + 0x70020014, // 001C JMP #0032 0x541E0003, // 001D LDINT R7 4 0x1C1C0A07, // 001E EQ R7 R5 R7 0x781E0002, // 001F JMPF R7 #0023 0x501C0200, // 0020 LDBOOL R7 1 0 0x80040E00, // 0021 RET 1 R7 - 0x70020008, // 0022 JMP #002C - 0x601C0003, // 0023 GETGBL R7 G3 - 0x5C200000, // 0024 MOVE R8 R0 - 0x7C1C0200, // 0025 CALL R7 1 - 0x8C1C0F0A, // 0026 GETMET R7 R7 K10 - 0x5C240200, // 0027 MOVE R9 R1 - 0x5C280400, // 0028 MOVE R10 R2 - 0x5C2C0600, // 0029 MOVE R11 R3 - 0x7C1C0800, // 002A CALL R7 4 - 0x80040E00, // 002B RET 1 R7 - 0x80000000, // 002C RET 0 + 0x7002000E, // 0022 JMP #0032 + 0x541E0004, // 0023 LDINT R7 5 + 0x1C1C0A07, // 0024 EQ R7 R5 R7 + 0x781E0002, // 0025 JMPF R7 #0029 + 0x501C0200, // 0026 LDBOOL R7 1 0 + 0x80040E00, // 0027 RET 1 R7 + 0x70020008, // 0028 JMP #0032 + 0x601C0003, // 0029 GETGBL R7 G3 + 0x5C200000, // 002A MOVE R8 R0 + 0x7C1C0200, // 002B CALL R7 1 + 0x8C1C0F0A, // 002C GETMET R7 R7 K10 + 0x5C240200, // 002D MOVE R9 R1 + 0x5C280400, // 002E MOVE R10 R2 + 0x5C2C0600, // 002F MOVE R11 R3 + 0x7C1C0800, // 0030 CALL R7 4 + 0x80040E00, // 0031 RET 1 R7 + 0x80000000, // 0032 RET 0 }) ) ); @@ -209,8 +236,16 @@ be_local_class(Matter_Plugin_Device, be_nested_map(4, ( (struct bmapnode*) &(const bmapnode[]) { { be_const_key_weak(CLUSTERS, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { - be_const_map( * be_nested_map(2, + be_const_map( * be_nested_map(3, ( (struct bmapnode*) &(const bmapnode[]) { + { be_const_key_int(3, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { + be_const_list( * be_nested_list(4, + ( (struct bvalue*) &(const bvalue[]) { + be_const_int(0), + be_const_int(1), + be_const_int(65532), + be_const_int(65533), + })) ) } )) }, { be_const_key_int(4, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { be_const_list( * be_nested_list(3, ( (struct bvalue*) &(const bvalue[]) { @@ -218,11 +253,15 @@ be_local_class(Matter_Plugin_Device, be_const_int(65532), be_const_int(65533), })) ) } )) }, - { be_const_key_int(3, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { - be_const_list( * be_nested_list(4, + { be_const_key_int(5, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { + be_const_list( * be_nested_list(8, ( (struct bvalue*) &(const bvalue[]) { be_const_int(0), be_const_int(1), + be_const_int(2), + be_const_int(3), + be_const_int(4), + be_const_int(5), be_const_int(65532), be_const_int(65533), })) ) } )) }, 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 287a29d30..7de68c853 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 @@ -11,7 +11,7 @@ extern const bclass be_class_Matter_Plugin_Light0; ********************************************************************/ be_local_closure(Matter_Plugin_Light0_invoke_request, /* name */ be_nested_proto( - 14, /* nstack */ + 12, /* nstack */ 4, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -19,114 +19,76 @@ be_local_closure(Matter_Plugin_Light0_invoke_request, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[16]) { /* constants */ + ( &(const bvalue[13]) { /* 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_const_int(3), + /* K5 */ be_nested_str_weak(update_shadow_lazy), /* K6 */ be_const_int(0), - /* K7 */ be_const_int(1), - /* K8 */ be_nested_str_weak(Matter_TLV_struct), - /* K9 */ be_nested_str_weak(add_TLV), - /* K10 */ be_nested_str_weak(U2), - /* K11 */ be_nested_str_weak(set), - /* K12 */ be_nested_str_weak(power), - /* K13 */ be_nested_str_weak(update_shadow), - /* K14 */ be_const_int(2), - /* K15 */ be_nested_str_weak(shadow_onoff), + /* K7 */ be_nested_str_weak(set), + /* K8 */ be_nested_str_weak(power), + /* K9 */ be_nested_str_weak(update_shadow), + /* K10 */ be_const_int(1), + /* K11 */ be_const_int(2), + /* K12 */ be_nested_str_weak(shadow_onoff), }), be_str_weak(invoke_request), &be_const_str_solidified, - ( &(const binstruction[87]) { /* code */ + ( &(const binstruction[52]) { /* 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 - 0x1C200D05, // 0005 EQ R8 R6 K5 - 0x78220016, // 0006 JMPF R8 #001E - 0x1C200F06, // 0007 EQ R8 R7 K6 - 0x78220002, // 0008 JMPF R8 #000C - 0x50200200, // 0009 LDBOOL R8 1 0 - 0x80041000, // 000A RET 1 R8 - 0x70020010, // 000B JMP #001D - 0x1C200F07, // 000C EQ R8 R7 K7 - 0x78220009, // 000D JMPF R8 #0018 - 0x8C200B08, // 000E GETMET R8 R5 K8 - 0x7C200200, // 000F CALL R8 1 - 0x8C241109, // 0010 GETMET R9 R8 K9 - 0x582C0006, // 0011 LDCONST R11 K6 - 0x88300B0A, // 0012 GETMBR R12 R5 K10 - 0x58340006, // 0013 LDCONST R13 K6 - 0x7C240800, // 0014 CALL R9 4 - 0x900E0906, // 0015 SETMBR R3 K4 K6 - 0x80041000, // 0016 RET 1 R8 - 0x70020004, // 0017 JMP #001D - 0x5422003F, // 0018 LDINT R8 64 - 0x1C200E08, // 0019 EQ R8 R7 R8 - 0x78220001, // 001A JMPF R8 #001D - 0x50200200, // 001B LDBOOL R8 1 0 - 0x80041000, // 001C RET 1 R8 - 0x70020037, // 001D JMP #0056 - 0x54220003, // 001E LDINT R8 4 - 0x1C200C08, // 001F EQ R8 R6 R8 - 0x78220002, // 0020 JMPF R8 #0024 + 0x54220005, // 0005 LDINT R8 6 + 0x1C200C08, // 0006 EQ R8 R6 R8 + 0x7822002A, // 0007 JMPF R8 #0033 + 0x8C200105, // 0008 GETMET R8 R0 K5 + 0x7C200200, // 0009 CALL R8 1 + 0x1C200F06, // 000A EQ R8 R7 K6 + 0x7822000A, // 000B JMPF R8 #0017 + 0x8C200907, // 000C GETMET R8 R4 K7 + 0x60280013, // 000D GETGBL R10 G19 + 0x7C280000, // 000E CALL R10 0 + 0x502C0000, // 000F LDBOOL R11 0 0 + 0x982A100B, // 0010 SETIDX R10 K8 R11 + 0x7C200400, // 0011 CALL R8 2 + 0x8C200109, // 0012 GETMET R8 R0 K9 + 0x7C200200, // 0013 CALL R8 1 + 0x50200200, // 0014 LDBOOL R8 1 0 + 0x80041000, // 0015 RET 1 R8 + 0x7002001B, // 0016 JMP #0033 + 0x1C200F0A, // 0017 EQ R8 R7 K10 + 0x7822000A, // 0018 JMPF R8 #0024 + 0x8C200907, // 0019 GETMET R8 R4 K7 + 0x60280013, // 001A GETGBL R10 G19 + 0x7C280000, // 001B CALL R10 0 + 0x502C0200, // 001C LDBOOL R11 1 0 + 0x982A100B, // 001D SETIDX R10 K8 R11 + 0x7C200400, // 001E CALL R8 2 + 0x8C200109, // 001F GETMET R8 R0 K9 + 0x7C200200, // 0020 CALL R8 1 0x50200200, // 0021 LDBOOL R8 1 0 0x80041000, // 0022 RET 1 R8 - 0x70020031, // 0023 JMP #0056 - 0x54220004, // 0024 LDINT R8 5 - 0x1C200C08, // 0025 EQ R8 R6 R8 - 0x78220002, // 0026 JMPF R8 #002A - 0x50200200, // 0027 LDBOOL R8 1 0 - 0x80041000, // 0028 RET 1 R8 - 0x7002002B, // 0029 JMP #0056 - 0x54220005, // 002A LDINT R8 6 - 0x1C200C08, // 002B EQ R8 R6 R8 - 0x78220028, // 002C JMPF R8 #0056 - 0x1C200F06, // 002D EQ R8 R7 K6 - 0x7822000A, // 002E JMPF R8 #003A - 0x8C20090B, // 002F GETMET R8 R4 K11 - 0x60280013, // 0030 GETGBL R10 G19 - 0x7C280000, // 0031 CALL R10 0 - 0x502C0000, // 0032 LDBOOL R11 0 0 - 0x982A180B, // 0033 SETIDX R10 K12 R11 - 0x7C200400, // 0034 CALL R8 2 - 0x8C20010D, // 0035 GETMET R8 R0 K13 - 0x7C200200, // 0036 CALL R8 1 - 0x50200200, // 0037 LDBOOL R8 1 0 - 0x80041000, // 0038 RET 1 R8 - 0x7002001B, // 0039 JMP #0056 - 0x1C200F07, // 003A EQ R8 R7 K7 - 0x7822000A, // 003B JMPF R8 #0047 - 0x8C20090B, // 003C GETMET R8 R4 K11 - 0x60280013, // 003D GETGBL R10 G19 - 0x7C280000, // 003E CALL R10 0 - 0x502C0200, // 003F LDBOOL R11 1 0 - 0x982A180B, // 0040 SETIDX R10 K12 R11 - 0x7C200400, // 0041 CALL R8 2 - 0x8C20010D, // 0042 GETMET R8 R0 K13 - 0x7C200200, // 0043 CALL R8 1 - 0x50200200, // 0044 LDBOOL R8 1 0 - 0x80041000, // 0045 RET 1 R8 - 0x7002000E, // 0046 JMP #0056 - 0x1C200F0E, // 0047 EQ R8 R7 K14 - 0x7822000C, // 0048 JMPF R8 #0056 - 0x8C20090B, // 0049 GETMET R8 R4 K11 - 0x60280013, // 004A GETGBL R10 G19 - 0x7C280000, // 004B CALL R10 0 - 0x882C010F, // 004C GETMBR R11 R0 K15 - 0x782E0000, // 004D JMPF R11 #004F - 0x502C0001, // 004E LDBOOL R11 0 1 - 0x502C0200, // 004F LDBOOL R11 1 0 - 0x982A180B, // 0050 SETIDX R10 K12 R11 - 0x7C200400, // 0051 CALL R8 2 - 0x8C20010D, // 0052 GETMET R8 R0 K13 - 0x7C200200, // 0053 CALL R8 1 - 0x50200200, // 0054 LDBOOL R8 1 0 - 0x80041000, // 0055 RET 1 R8 - 0x80000000, // 0056 RET 0 + 0x7002000E, // 0023 JMP #0033 + 0x1C200F0B, // 0024 EQ R8 R7 K11 + 0x7822000C, // 0025 JMPF R8 #0033 + 0x8C200907, // 0026 GETMET R8 R4 K7 + 0x60280013, // 0027 GETGBL R10 G19 + 0x7C280000, // 0028 CALL R10 0 + 0x882C010C, // 0029 GETMBR R11 R0 K12 + 0x782E0000, // 002A JMPF R11 #002C + 0x502C0001, // 002B LDBOOL R11 0 1 + 0x502C0200, // 002C LDBOOL R11 1 0 + 0x982A100B, // 002D SETIDX R10 K8 R11 + 0x7C200400, // 002E CALL R8 2 + 0x8C200109, // 002F GETMET R8 R0 K9 + 0x7C200200, // 0030 CALL R8 1 + 0x50200200, // 0031 LDBOOL R8 1 0 + 0x80041000, // 0032 RET 1 R8 + 0x80000000, // 0033 RET 0 }) ) ); @@ -146,152 +108,68 @@ be_local_closure(Matter_Plugin_Light0_read_attribute, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[15]) { /* constants */ + ( &(const bvalue[12]) { /* 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(3), + /* K5 */ be_nested_str_weak(update_shadow_lazy), /* K6 */ be_const_int(0), /* K7 */ be_nested_str_weak(create_TLV), - /* K8 */ be_nested_str_weak(U2), - /* K9 */ be_const_int(1), - /* K10 */ be_nested_str_weak(U1), - /* K11 */ be_nested_str_weak(U4), - /* K12 */ be_nested_str_weak(BOOL), - /* K13 */ be_nested_str_weak(shadow_onoff), - /* K14 */ be_nested_str_weak(read_attribute), + /* K8 */ be_nested_str_weak(BOOL), + /* K9 */ be_nested_str_weak(shadow_onoff), + /* K10 */ be_nested_str_weak(U4), + /* K11 */ be_nested_str_weak(read_attribute), }), be_str_weak(read_attribute), &be_const_str_solidified, - ( &(const binstruction[126]) { /* code */ + ( &(const binstruction[45]) { /* 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 - 0x1C1C0B05, // 0005 EQ R7 R5 K5 - 0x781E0021, // 0006 JMPF R7 #0029 - 0x1C1C0D06, // 0007 EQ R7 R6 K6 - 0x781E0005, // 0008 JMPF R7 #000F - 0x8C1C0907, // 0009 GETMET R7 R4 K7 - 0x88240908, // 000A GETMBR R9 R4 K8 - 0x58280006, // 000B LDCONST R10 K6 - 0x7C1C0600, // 000C CALL R7 3 - 0x80040E00, // 000D RET 1 R7 - 0x70020018, // 000E JMP #0028 - 0x1C1C0D09, // 000F EQ R7 R6 K9 - 0x781E0005, // 0010 JMPF R7 #0017 - 0x8C1C0907, // 0011 GETMET R7 R4 K7 - 0x8824090A, // 0012 GETMBR R9 R4 K10 - 0x58280006, // 0013 LDCONST R10 K6 - 0x7C1C0600, // 0014 CALL R7 3 - 0x80040E00, // 0015 RET 1 R7 - 0x70020010, // 0016 JMP #0028 - 0x541EFFFB, // 0017 LDINT R7 65532 - 0x1C1C0C07, // 0018 EQ R7 R6 R7 - 0x781E0005, // 0019 JMPF R7 #0020 - 0x8C1C0907, // 001A GETMET R7 R4 K7 - 0x8824090B, // 001B GETMBR R9 R4 K11 - 0x58280006, // 001C LDCONST R10 K6 - 0x7C1C0600, // 001D CALL R7 3 - 0x80040E00, // 001E RET 1 R7 - 0x70020007, // 001F JMP #0028 - 0x541EFFFC, // 0020 LDINT R7 65533 - 0x1C1C0C07, // 0021 EQ R7 R6 R7 - 0x781E0004, // 0022 JMPF R7 #0028 - 0x8C1C0907, // 0023 GETMET R7 R4 K7 - 0x8824090B, // 0024 GETMBR R9 R4 K11 - 0x542A0003, // 0025 LDINT R10 4 - 0x7C1C0600, // 0026 CALL R7 3 - 0x80040E00, // 0027 RET 1 R7 - 0x70020053, // 0028 JMP #007D - 0x541E0003, // 0029 LDINT R7 4 - 0x1C1C0A07, // 002A EQ R7 R5 R7 - 0x781E0016, // 002B JMPF R7 #0043 - 0x1C1C0D06, // 002C EQ R7 R6 K6 - 0x781E0002, // 002D JMPF R7 #0031 - 0x4C1C0000, // 002E LDNIL R7 - 0x80040E00, // 002F RET 1 R7 - 0x70020010, // 0030 JMP #0042 - 0x541EFFFB, // 0031 LDINT R7 65532 - 0x1C1C0C07, // 0032 EQ R7 R6 R7 - 0x781E0005, // 0033 JMPF R7 #003A - 0x8C1C0907, // 0034 GETMET R7 R4 K7 - 0x8824090B, // 0035 GETMBR R9 R4 K11 - 0x58280006, // 0036 LDCONST R10 K6 - 0x7C1C0600, // 0037 CALL R7 3 - 0x80040E00, // 0038 RET 1 R7 - 0x70020007, // 0039 JMP #0042 - 0x541EFFFC, // 003A LDINT R7 65533 - 0x1C1C0C07, // 003B EQ R7 R6 R7 - 0x781E0004, // 003C JMPF R7 #0042 - 0x8C1C0907, // 003D GETMET R7 R4 K7 - 0x8824090B, // 003E GETMBR R9 R4 K11 - 0x542A0003, // 003F LDINT R10 4 - 0x7C1C0600, // 0040 CALL R7 3 - 0x80040E00, // 0041 RET 1 R7 - 0x70020039, // 0042 JMP #007D - 0x541E0004, // 0043 LDINT R7 5 - 0x1C1C0A07, // 0044 EQ R7 R5 R7 - 0x781E0011, // 0045 JMPF R7 #0058 - 0x541EFFFB, // 0046 LDINT R7 65532 - 0x1C1C0C07, // 0047 EQ R7 R6 R7 - 0x781E0005, // 0048 JMPF R7 #004F - 0x8C1C0907, // 0049 GETMET R7 R4 K7 - 0x8824090B, // 004A GETMBR R9 R4 K11 - 0x58280006, // 004B LDCONST R10 K6 - 0x7C1C0600, // 004C CALL R7 3 - 0x80040E00, // 004D RET 1 R7 - 0x70020007, // 004E JMP #0057 - 0x541EFFFC, // 004F LDINT R7 65533 - 0x1C1C0C07, // 0050 EQ R7 R6 R7 - 0x781E0004, // 0051 JMPF R7 #0057 - 0x8C1C0907, // 0052 GETMET R7 R4 K7 - 0x8824090B, // 0053 GETMBR R9 R4 K11 - 0x542A0003, // 0054 LDINT R10 4 - 0x7C1C0600, // 0055 CALL R7 3 - 0x80040E00, // 0056 RET 1 R7 - 0x70020024, // 0057 JMP #007D - 0x541E0005, // 0058 LDINT R7 6 - 0x1C1C0A07, // 0059 EQ R7 R5 R7 - 0x781E0019, // 005A JMPF R7 #0075 - 0x1C1C0D06, // 005B EQ R7 R6 K6 - 0x781E0005, // 005C JMPF R7 #0063 - 0x8C1C0907, // 005D GETMET R7 R4 K7 - 0x8824090C, // 005E GETMBR R9 R4 K12 - 0x8828010D, // 005F GETMBR R10 R0 K13 - 0x7C1C0600, // 0060 CALL R7 3 - 0x80040E00, // 0061 RET 1 R7 - 0x70020010, // 0062 JMP #0074 - 0x541EFFFB, // 0063 LDINT R7 65532 - 0x1C1C0C07, // 0064 EQ R7 R6 R7 - 0x781E0005, // 0065 JMPF R7 #006C - 0x8C1C0907, // 0066 GETMET R7 R4 K7 - 0x8824090B, // 0067 GETMBR R9 R4 K11 - 0x58280006, // 0068 LDCONST R10 K6 - 0x7C1C0600, // 0069 CALL R7 3 - 0x80040E00, // 006A RET 1 R7 - 0x70020007, // 006B JMP #0074 - 0x541EFFFC, // 006C LDINT R7 65533 - 0x1C1C0C07, // 006D EQ R7 R6 R7 - 0x781E0004, // 006E JMPF R7 #0074 - 0x8C1C0907, // 006F GETMET R7 R4 K7 - 0x8824090B, // 0070 GETMBR R9 R4 K11 - 0x542A0003, // 0071 LDINT R10 4 - 0x7C1C0600, // 0072 CALL R7 3 - 0x80040E00, // 0073 RET 1 R7 - 0x70020007, // 0074 JMP #007D - 0x601C0003, // 0075 GETGBL R7 G3 - 0x5C200000, // 0076 MOVE R8 R0 - 0x7C1C0200, // 0077 CALL R7 1 - 0x8C1C0F0E, // 0078 GETMET R7 R7 K14 - 0x5C240200, // 0079 MOVE R9 R1 - 0x5C280400, // 007A MOVE R10 R2 - 0x7C1C0600, // 007B CALL R7 3 - 0x80040E00, // 007C RET 1 R7 - 0x80000000, // 007D RET 0 + 0x541E0005, // 0005 LDINT R7 6 + 0x1C1C0A07, // 0006 EQ R7 R5 R7 + 0x781E001B, // 0007 JMPF R7 #0024 + 0x8C1C0105, // 0008 GETMET R7 R0 K5 + 0x7C1C0200, // 0009 CALL R7 1 + 0x1C1C0D06, // 000A EQ R7 R6 K6 + 0x781E0005, // 000B JMPF R7 #0012 + 0x8C1C0907, // 000C GETMET R7 R4 K7 + 0x88240908, // 000D GETMBR R9 R4 K8 + 0x88280109, // 000E GETMBR R10 R0 K9 + 0x7C1C0600, // 000F CALL R7 3 + 0x80040E00, // 0010 RET 1 R7 + 0x70020010, // 0011 JMP #0023 + 0x541EFFFB, // 0012 LDINT R7 65532 + 0x1C1C0C07, // 0013 EQ R7 R6 R7 + 0x781E0005, // 0014 JMPF R7 #001B + 0x8C1C0907, // 0015 GETMET R7 R4 K7 + 0x8824090A, // 0016 GETMBR R9 R4 K10 + 0x58280006, // 0017 LDCONST R10 K6 + 0x7C1C0600, // 0018 CALL R7 3 + 0x80040E00, // 0019 RET 1 R7 + 0x70020007, // 001A JMP #0023 + 0x541EFFFC, // 001B LDINT R7 65533 + 0x1C1C0C07, // 001C EQ R7 R6 R7 + 0x781E0004, // 001D JMPF R7 #0023 + 0x8C1C0907, // 001E GETMET R7 R4 K7 + 0x8824090A, // 001F GETMBR R9 R4 K10 + 0x542A0003, // 0020 LDINT R10 4 + 0x7C1C0600, // 0021 CALL R7 3 + 0x80040E00, // 0022 RET 1 R7 + 0x70020007, // 0023 JMP #002C + 0x601C0003, // 0024 GETGBL R7 G3 + 0x5C200000, // 0025 MOVE R8 R0 + 0x7C1C0200, // 0026 CALL R7 1 + 0x8C1C0F0B, // 0027 GETMET R7 R7 K11 + 0x5C240200, // 0028 MOVE R9 R1 + 0x5C280400, // 0029 MOVE R10 R2 + 0x7C1C0600, // 002A CALL R7 3 + 0x80040E00, // 002B RET 1 R7 + 0x80000000, // 002C RET 0 }) ) ); @@ -303,7 +181,7 @@ be_local_closure(Matter_Plugin_Light0_read_attribute, /* name */ ********************************************************************/ be_local_closure(Matter_Plugin_Light0_update_shadow, /* name */ be_nested_proto( - 9, /* nstack */ + 8, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -311,7 +189,7 @@ be_local_closure(Matter_Plugin_Light0_update_shadow, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 7]) { /* constants */ + ( &(const bvalue[ 8]) { /* constants */ /* K0 */ be_nested_str_weak(light), /* K1 */ be_nested_str_weak(get), /* K2 */ be_nested_str_weak(find), @@ -319,10 +197,11 @@ be_local_closure(Matter_Plugin_Light0_update_shadow, /* name */ /* K4 */ be_nested_str_weak(shadow_onoff), /* K5 */ be_nested_str_weak(attribute_updated), /* K6 */ be_const_int(0), + /* K7 */ be_nested_str_weak(update_shadow), }), be_str_weak(update_shadow), &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ + ( &(const binstruction[21]) { /* code */ 0xA4060000, // 0000 IMPORT R1 K0 0x8C080301, // 0001 GETMET R2 R1 K1 0x7C080200, // 0002 CALL R2 1 @@ -332,14 +211,18 @@ be_local_closure(Matter_Plugin_Light0_update_shadow, /* name */ 0x7C0C0600, // 0006 CALL R3 3 0x88100104, // 0007 GETMBR R4 R0 K4 0x20100604, // 0008 NE R4 R3 R4 - 0x78120005, // 0009 JMPF R4 #0010 + 0x78120004, // 0009 JMPF R4 #000F 0x8C100105, // 000A GETMET R4 R0 K5 - 0x4C180000, // 000B LDNIL R6 - 0x541E0005, // 000C LDINT R7 6 - 0x58200006, // 000D LDCONST R8 K6 - 0x7C100800, // 000E CALL R4 4 - 0x90020803, // 000F SETMBR R0 K4 R3 - 0x80000000, // 0010 RET 0 + 0x541A0005, // 000B LDINT R6 6 + 0x581C0006, // 000C LDCONST R7 K6 + 0x7C100600, // 000D CALL R4 3 + 0x90020803, // 000E SETMBR R0 K4 R3 + 0x60100003, // 000F GETGBL R4 G3 + 0x5C140000, // 0010 MOVE R5 R0 + 0x7C100200, // 0011 CALL R4 1 + 0x8C100907, // 0012 GETMET R4 R4 K7 + 0x7C100200, // 0013 CALL R4 1 + 0x80000000, // 0014 RET 0 }) ) ); @@ -386,10 +269,10 @@ be_local_closure(Matter_Plugin_Light0_init, /* name */ /******************************************************************** ** Solidified class: Matter_Plugin_Light0 ********************************************************************/ -extern const bclass be_class_Matter_Plugin; +extern const bclass be_class_Matter_Plugin_Device; be_local_class(Matter_Plugin_Light0, 1, - &be_class_Matter_Plugin, + &be_class_Matter_Plugin_Device, be_nested_map(9, ( (struct bmapnode*) &(const bmapnode[]) { { be_const_key_weak(init, -1), be_const_closure(Matter_Plugin_Light0_init_closure) }, @@ -401,41 +284,14 @@ be_local_class(Matter_Plugin_Light0, })) ) } )) }, { 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, + be_const_map( * be_nested_map(1, ( (struct bmapnode*) &(const bmapnode[]) { - { be_const_key_int(4, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { - be_const_list( * be_nested_list(3, - ( (struct bvalue*) &(const bvalue[]) { - be_const_int(0), - be_const_int(65532), - be_const_int(65533), - })) ) } )) }, - { be_const_key_int(5, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { - be_const_list( * be_nested_list(8, - ( (struct bvalue*) &(const bvalue[]) { - be_const_int(0), - be_const_int(1), - be_const_int(2), - be_const_int(3), - be_const_int(4), - be_const_int(5), - be_const_int(65532), - be_const_int(65533), - })) ) } )) }, { be_const_key_int(6, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { be_const_list( * be_nested_list(3, ( (struct bvalue*) &(const bvalue[]) { be_const_int(0), be_const_int(65532), be_const_int(65533), - })) ) } )) }, - { be_const_key_int(3, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { - be_const_list( * be_nested_list(4, - ( (struct bvalue*) &(const bvalue[]) { - be_const_int(0), - be_const_int(1), - be_const_int(65532), - be_const_int(65533), })) ) } )) }, })) ) } )) }, { be_const_key_weak(invoke_request, -1), be_const_closure(Matter_Plugin_Light0_invoke_request_closure) }, 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 b0f2d5523..4fad7a876 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 @@ -33,7 +33,7 @@ be_local_closure(Matter_Plugin_Light1_update_shadow, /* name */ }), be_str_weak(update_shadow), &be_const_str_solidified, - ( &(const binstruction[36]) { /* code */ + ( &(const binstruction[33]) { /* code */ 0xA4060000, // 0000 IMPORT R1 K0 0x8C080301, // 0001 GETMET R2 R1 K1 0x7C080200, // 0002 CALL R2 1 @@ -43,7 +43,7 @@ be_local_closure(Matter_Plugin_Light1_update_shadow, /* name */ 0x7C0C0600, // 0006 CALL R3 3 0x4C100000, // 0007 LDNIL R4 0x20100604, // 0008 NE R4 R3 R4 - 0x78120009, // 0009 JMPF R4 #0014 + 0x78120010, // 0009 JMPF R4 #001B 0xB8120800, // 000A GETNGBL R4 K4 0x8C100905, // 000B GETMET R4 R4 K5 0x5C180600, // 000C MOVE R6 R3 @@ -53,23 +53,20 @@ be_local_closure(Matter_Plugin_Light1_update_shadow, /* name */ 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 + 0x88100107, // 0013 GETMBR R4 R0 K7 + 0x20100604, // 0014 NE R4 R3 R4 + 0x78120004, // 0015 JMPF R4 #001B + 0x8C100108, // 0016 GETMET R4 R0 K8 + 0x541A0007, // 0017 LDINT R6 8 + 0x581C0006, // 0018 LDCONST R7 K6 + 0x7C100600, // 0019 CALL R4 3 + 0x90020E03, // 001A SETMBR R0 K7 R3 + 0x60100003, // 001B GETGBL R4 G3 + 0x5C140000, // 001C MOVE R5 R0 + 0x7C100200, // 001D CALL R4 1 + 0x8C100909, // 001E GETMET R4 R4 K9 + 0x7C100200, // 001F CALL R4 1 + 0x80000000, // 0020 RET 0 }) ) ); @@ -89,30 +86,31 @@ be_local_closure(Matter_Plugin_Light1_invoke_request, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[19]) { /* constants */ + ( &(const bvalue[20]) { /* 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_const_int(0), - /* K6 */ be_nested_str_weak(findsubval), - /* K7 */ be_nested_str_weak(tasmota), - /* K8 */ be_nested_str_weak(scale_uint), - /* K9 */ be_nested_str_weak(set), - /* K10 */ be_nested_str_weak(bri), - /* K11 */ be_nested_str_weak(update_shadow), - /* K12 */ be_nested_str_weak(log), - /* K13 */ be_nested_str_weak(bri_X3A), - /* K14 */ be_const_int(1), - /* K15 */ be_const_int(2), - /* K16 */ be_const_int(3), - /* K17 */ be_nested_str_weak(power), - /* K18 */ be_nested_str_weak(invoke_request), + /* K5 */ be_nested_str_weak(update_shadow_lazy), + /* K6 */ be_const_int(0), + /* K7 */ be_nested_str_weak(findsubval), + /* K8 */ be_nested_str_weak(tasmota), + /* K9 */ be_nested_str_weak(scale_uint), + /* K10 */ be_nested_str_weak(set), + /* K11 */ be_nested_str_weak(bri), + /* K12 */ be_nested_str_weak(update_shadow), + /* K13 */ be_nested_str_weak(log), + /* K14 */ be_nested_str_weak(bri_X3A), + /* K15 */ be_const_int(1), + /* K16 */ be_const_int(2), + /* K17 */ be_const_int(3), + /* K18 */ be_nested_str_weak(power), + /* K19 */ be_nested_str_weak(invoke_request), }), be_str_weak(invoke_request), &be_const_str_solidified, - ( &(const binstruction[110]) { /* code */ + ( &(const binstruction[112]) { /* code */ 0xA4120000, // 0000 IMPORT R4 K0 0xB8160200, // 0001 GETNGBL R5 K1 0x88140B02, // 0002 GETMBR R5 R5 K2 @@ -120,109 +118,111 @@ be_local_closure(Matter_Plugin_Light1_invoke_request, /* name */ 0x881C0704, // 0004 GETMBR R7 R3 K4 0x54220007, // 0005 LDINT R8 8 0x1C200C08, // 0006 EQ R8 R6 R8 - 0x7822005B, // 0007 JMPF R8 #0064 - 0x1C200F05, // 0008 EQ R8 R7 K5 - 0x78220019, // 0009 JMPF R8 #0024 - 0x8C200506, // 000A GETMET R8 R2 K6 - 0x58280005, // 000B LDCONST R10 K5 - 0x7C200400, // 000C CALL R8 2 - 0xB8260E00, // 000D GETNGBL R9 K7 - 0x8C241308, // 000E GETMET R9 R9 K8 - 0x5C2C1000, // 000F MOVE R11 R8 - 0x58300005, // 0010 LDCONST R12 K5 - 0x543600FD, // 0011 LDINT R13 254 - 0x58380005, // 0012 LDCONST R14 K5 - 0x543E00FE, // 0013 LDINT R15 255 - 0x7C240C00, // 0014 CALL R9 6 - 0x8C280909, // 0015 GETMET R10 R4 K9 - 0x60300013, // 0016 GETGBL R12 G19 - 0x7C300000, // 0017 CALL R12 0 - 0x98321409, // 0018 SETIDX R12 K10 R9 - 0x7C280400, // 0019 CALL R10 2 - 0x8C28010B, // 001A GETMET R10 R0 K11 - 0x7C280200, // 001B CALL R10 1 - 0x60280008, // 001C GETGBL R10 G8 - 0x5C2C1000, // 001D MOVE R11 R8 - 0x7C280200, // 001E CALL R10 1 - 0x002A1A0A, // 001F ADD R10 K13 R10 - 0x900E180A, // 0020 SETMBR R3 K12 R10 - 0x50280200, // 0021 LDBOOL R10 1 0 - 0x80041400, // 0022 RET 1 R10 - 0x7002003E, // 0023 JMP #0063 - 0x1C200F0E, // 0024 EQ R8 R7 K14 - 0x78220002, // 0025 JMPF R8 #0029 - 0x50200200, // 0026 LDBOOL R8 1 0 - 0x80041000, // 0027 RET 1 R8 - 0x70020039, // 0028 JMP #0063 - 0x1C200F0F, // 0029 EQ R8 R7 K15 - 0x78220002, // 002A JMPF R8 #002E - 0x50200200, // 002B LDBOOL R8 1 0 - 0x80041000, // 002C RET 1 R8 - 0x70020034, // 002D JMP #0063 - 0x1C200F10, // 002E EQ R8 R7 K16 - 0x78220002, // 002F JMPF R8 #0033 - 0x50200200, // 0030 LDBOOL R8 1 0 - 0x80041000, // 0031 RET 1 R8 - 0x7002002F, // 0032 JMP #0063 - 0x54220003, // 0033 LDINT R8 4 - 0x1C200E08, // 0034 EQ R8 R7 R8 - 0x7822001B, // 0035 JMPF R8 #0052 - 0x8C200506, // 0036 GETMET R8 R2 K6 - 0x58280005, // 0037 LDCONST R10 K5 - 0x7C200400, // 0038 CALL R8 2 - 0xB8260E00, // 0039 GETNGBL R9 K7 - 0x8C241308, // 003A GETMET R9 R9 K8 - 0x5C2C1000, // 003B MOVE R11 R8 - 0x58300005, // 003C LDCONST R12 K5 - 0x543600FD, // 003D LDINT R13 254 - 0x58380005, // 003E LDCONST R14 K5 - 0x543E00FE, // 003F LDINT R15 255 - 0x7C240C00, // 0040 CALL R9 6 - 0x24281305, // 0041 GT R10 R9 K5 - 0x8C2C0909, // 0042 GETMET R11 R4 K9 - 0x60340013, // 0043 GETGBL R13 G19 - 0x7C340000, // 0044 CALL R13 0 - 0x98361409, // 0045 SETIDX R13 K10 R9 - 0x9836220A, // 0046 SETIDX R13 K17 R10 - 0x7C2C0400, // 0047 CALL R11 2 - 0x8C2C010B, // 0048 GETMET R11 R0 K11 - 0x7C2C0200, // 0049 CALL R11 1 - 0x602C0008, // 004A GETGBL R11 G8 - 0x5C301000, // 004B MOVE R12 R8 - 0x7C2C0200, // 004C CALL R11 1 - 0x002E1A0B, // 004D ADD R11 K13 R11 - 0x900E180B, // 004E SETMBR R3 K12 R11 - 0x502C0200, // 004F LDBOOL R11 1 0 - 0x80041600, // 0050 RET 1 R11 - 0x70020010, // 0051 JMP #0063 - 0x54220004, // 0052 LDINT R8 5 - 0x1C200E08, // 0053 EQ R8 R7 R8 - 0x78220002, // 0054 JMPF R8 #0058 - 0x50200200, // 0055 LDBOOL R8 1 0 - 0x80041000, // 0056 RET 1 R8 - 0x7002000A, // 0057 JMP #0063 - 0x54220005, // 0058 LDINT R8 6 - 0x1C200E08, // 0059 EQ R8 R7 R8 - 0x78220002, // 005A JMPF R8 #005E - 0x50200200, // 005B LDBOOL R8 1 0 - 0x80041000, // 005C RET 1 R8 - 0x70020004, // 005D JMP #0063 - 0x54220006, // 005E LDINT R8 7 - 0x1C200E08, // 005F EQ R8 R7 R8 - 0x78220001, // 0060 JMPF R8 #0063 - 0x50200200, // 0061 LDBOOL R8 1 0 - 0x80041000, // 0062 RET 1 R8 - 0x70020008, // 0063 JMP #006D - 0x60200003, // 0064 GETGBL R8 G3 - 0x5C240000, // 0065 MOVE R9 R0 - 0x7C200200, // 0066 CALL R8 1 - 0x8C201112, // 0067 GETMET R8 R8 K18 - 0x5C280200, // 0068 MOVE R10 R1 - 0x5C2C0400, // 0069 MOVE R11 R2 - 0x5C300600, // 006A MOVE R12 R3 - 0x7C200800, // 006B CALL R8 4 - 0x80041000, // 006C RET 1 R8 - 0x80000000, // 006D RET 0 + 0x7822005D, // 0007 JMPF R8 #0066 + 0x8C200105, // 0008 GETMET R8 R0 K5 + 0x7C200200, // 0009 CALL R8 1 + 0x1C200F06, // 000A EQ R8 R7 K6 + 0x78220019, // 000B JMPF R8 #0026 + 0x8C200507, // 000C GETMET R8 R2 K7 + 0x58280006, // 000D LDCONST R10 K6 + 0x7C200400, // 000E CALL R8 2 + 0xB8261000, // 000F GETNGBL R9 K8 + 0x8C241309, // 0010 GETMET R9 R9 K9 + 0x5C2C1000, // 0011 MOVE R11 R8 + 0x58300006, // 0012 LDCONST R12 K6 + 0x543600FD, // 0013 LDINT R13 254 + 0x58380006, // 0014 LDCONST R14 K6 + 0x543E00FE, // 0015 LDINT R15 255 + 0x7C240C00, // 0016 CALL R9 6 + 0x8C28090A, // 0017 GETMET R10 R4 K10 + 0x60300013, // 0018 GETGBL R12 G19 + 0x7C300000, // 0019 CALL R12 0 + 0x98321609, // 001A SETIDX R12 K11 R9 + 0x7C280400, // 001B CALL R10 2 + 0x8C28010C, // 001C GETMET R10 R0 K12 + 0x7C280200, // 001D CALL R10 1 + 0x60280008, // 001E GETGBL R10 G8 + 0x5C2C1000, // 001F MOVE R11 R8 + 0x7C280200, // 0020 CALL R10 1 + 0x002A1C0A, // 0021 ADD R10 K14 R10 + 0x900E1A0A, // 0022 SETMBR R3 K13 R10 + 0x50280200, // 0023 LDBOOL R10 1 0 + 0x80041400, // 0024 RET 1 R10 + 0x7002003E, // 0025 JMP #0065 + 0x1C200F0F, // 0026 EQ R8 R7 K15 + 0x78220002, // 0027 JMPF R8 #002B + 0x50200200, // 0028 LDBOOL R8 1 0 + 0x80041000, // 0029 RET 1 R8 + 0x70020039, // 002A JMP #0065 + 0x1C200F10, // 002B EQ R8 R7 K16 + 0x78220002, // 002C JMPF R8 #0030 + 0x50200200, // 002D LDBOOL R8 1 0 + 0x80041000, // 002E RET 1 R8 + 0x70020034, // 002F JMP #0065 + 0x1C200F11, // 0030 EQ R8 R7 K17 + 0x78220002, // 0031 JMPF R8 #0035 + 0x50200200, // 0032 LDBOOL R8 1 0 + 0x80041000, // 0033 RET 1 R8 + 0x7002002F, // 0034 JMP #0065 + 0x54220003, // 0035 LDINT R8 4 + 0x1C200E08, // 0036 EQ R8 R7 R8 + 0x7822001B, // 0037 JMPF R8 #0054 + 0x8C200507, // 0038 GETMET R8 R2 K7 + 0x58280006, // 0039 LDCONST R10 K6 + 0x7C200400, // 003A CALL R8 2 + 0xB8261000, // 003B GETNGBL R9 K8 + 0x8C241309, // 003C GETMET R9 R9 K9 + 0x5C2C1000, // 003D MOVE R11 R8 + 0x58300006, // 003E LDCONST R12 K6 + 0x543600FD, // 003F LDINT R13 254 + 0x58380006, // 0040 LDCONST R14 K6 + 0x543E00FE, // 0041 LDINT R15 255 + 0x7C240C00, // 0042 CALL R9 6 + 0x24281306, // 0043 GT R10 R9 K6 + 0x8C2C090A, // 0044 GETMET R11 R4 K10 + 0x60340013, // 0045 GETGBL R13 G19 + 0x7C340000, // 0046 CALL R13 0 + 0x98361609, // 0047 SETIDX R13 K11 R9 + 0x9836240A, // 0048 SETIDX R13 K18 R10 + 0x7C2C0400, // 0049 CALL R11 2 + 0x8C2C010C, // 004A GETMET R11 R0 K12 + 0x7C2C0200, // 004B CALL R11 1 + 0x602C0008, // 004C GETGBL R11 G8 + 0x5C301000, // 004D MOVE R12 R8 + 0x7C2C0200, // 004E CALL R11 1 + 0x002E1C0B, // 004F ADD R11 K14 R11 + 0x900E1A0B, // 0050 SETMBR R3 K13 R11 + 0x502C0200, // 0051 LDBOOL R11 1 0 + 0x80041600, // 0052 RET 1 R11 + 0x70020010, // 0053 JMP #0065 + 0x54220004, // 0054 LDINT R8 5 + 0x1C200E08, // 0055 EQ R8 R7 R8 + 0x78220002, // 0056 JMPF R8 #005A + 0x50200200, // 0057 LDBOOL R8 1 0 + 0x80041000, // 0058 RET 1 R8 + 0x7002000A, // 0059 JMP #0065 + 0x54220005, // 005A LDINT R8 6 + 0x1C200E08, // 005B EQ R8 R7 R8 + 0x78220002, // 005C JMPF R8 #0060 + 0x50200200, // 005D LDBOOL R8 1 0 + 0x80041000, // 005E RET 1 R8 + 0x70020004, // 005F JMP #0065 + 0x54220006, // 0060 LDINT R8 7 + 0x1C200E08, // 0061 EQ R8 R7 R8 + 0x78220001, // 0062 JMPF R8 #0065 + 0x50200200, // 0063 LDBOOL R8 1 0 + 0x80041000, // 0064 RET 1 R8 + 0x70020008, // 0065 JMP #006F + 0x60200003, // 0066 GETGBL R8 G3 + 0x5C240000, // 0067 MOVE R9 R0 + 0x7C200200, // 0068 CALL R8 1 + 0x8C201113, // 0069 GETMET R8 R8 K19 + 0x5C280200, // 006A MOVE R10 R1 + 0x5C2C0400, // 006B MOVE R11 R2 + 0x5C300600, // 006C MOVE R12 R3 + 0x7C200800, // 006D CALL R8 4 + 0x80041000, // 006E RET 1 R8 + 0x80000000, // 006F RET 0 }) ) ); @@ -242,25 +242,26 @@ be_local_closure(Matter_Plugin_Light1_read_attribute, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[14]) { /* 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(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), + /* K5 */ be_nested_str_weak(update_shadow_lazy), + /* K6 */ be_const_int(0), + /* K7 */ be_nested_str_weak(create_TLV), + /* K8 */ be_nested_str_weak(U1), + /* K9 */ be_nested_str_weak(shadow_bri), + /* K10 */ be_const_int(2), + /* K11 */ be_const_int(3), + /* K12 */ be_nested_str_weak(U4), + /* K13 */ be_const_int(1), + /* K14 */ be_nested_str_weak(read_attribute), }), be_str_weak(read_attribute), &be_const_str_solidified, - ( &(const binstruction[77]) { /* code */ + ( &(const binstruction[79]) { /* code */ 0xA40E0000, // 0000 IMPORT R3 K0 0xB8120200, // 0001 GETNGBL R4 K1 0x88100902, // 0002 GETMBR R4 R4 K2 @@ -268,76 +269,78 @@ be_local_closure(Matter_Plugin_Light1_read_attribute, /* name */ 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 + 0x781E003D, // 0007 JMPF R7 #0046 + 0x8C1C0105, // 0008 GETMET R7 R0 K5 + 0x7C1C0200, // 0009 CALL R7 1 + 0x1C1C0D06, // 000A EQ R7 R6 K6 + 0x781E0005, // 000B JMPF R7 #0012 + 0x8C1C0907, // 000C GETMET R7 R4 K7 + 0x88240908, // 000D GETMBR R9 R4 K8 + 0x88280109, // 000E GETMBR R10 R0 K9 + 0x7C1C0600, // 000F CALL R7 3 + 0x80040E00, // 0010 RET 1 R7 + 0x70020032, // 0011 JMP #0045 + 0x1C1C0D0A, // 0012 EQ R7 R6 K10 + 0x781E0005, // 0013 JMPF R7 #001A + 0x8C1C0907, // 0014 GETMET R7 R4 K7 + 0x88240908, // 0015 GETMBR R9 R4 K8 + 0x58280006, // 0016 LDCONST R10 K6 + 0x7C1C0600, // 0017 CALL R7 3 + 0x80040E00, // 0018 RET 1 R7 + 0x7002002A, // 0019 JMP #0045 + 0x1C1C0D0B, // 001A EQ R7 R6 K11 + 0x781E0005, // 001B JMPF R7 #0022 + 0x8C1C0907, // 001C GETMET R7 R4 K7 + 0x88240908, // 001D GETMBR R9 R4 K8 + 0x542A00FD, // 001E LDINT R10 254 + 0x7C1C0600, // 001F CALL R7 3 + 0x80040E00, // 0020 RET 1 R7 + 0x70020022, // 0021 JMP #0045 + 0x541E000E, // 0022 LDINT R7 15 + 0x1C1C0C07, // 0023 EQ R7 R6 R7 + 0x781E0005, // 0024 JMPF R7 #002B + 0x8C1C0907, // 0025 GETMET R7 R4 K7 + 0x88240908, // 0026 GETMBR R9 R4 K8 + 0x58280006, // 0027 LDCONST R10 K6 + 0x7C1C0600, // 0028 CALL R7 3 + 0x80040E00, // 0029 RET 1 R7 + 0x70020019, // 002A JMP #0045 + 0x541E0010, // 002B LDINT R7 17 + 0x1C1C0C07, // 002C EQ R7 R6 R7 + 0x781E0005, // 002D JMPF R7 #0034 + 0x8C1C0907, // 002E GETMET R7 R4 K7 + 0x88240908, // 002F GETMBR R9 R4 K8 + 0x88280109, // 0030 GETMBR R10 R0 K9 + 0x7C1C0600, // 0031 CALL R7 3 + 0x80040E00, // 0032 RET 1 R7 + 0x70020010, // 0033 JMP #0045 + 0x541EFFFB, // 0034 LDINT R7 65532 + 0x1C1C0C07, // 0035 EQ R7 R6 R7 + 0x781E0005, // 0036 JMPF R7 #003D + 0x8C1C0907, // 0037 GETMET R7 R4 K7 + 0x8824090C, // 0038 GETMBR R9 R4 K12 + 0x5828000D, // 0039 LDCONST R10 K13 + 0x7C1C0600, // 003A CALL R7 3 + 0x80040E00, // 003B RET 1 R7 + 0x70020007, // 003C JMP #0045 + 0x541EFFFC, // 003D LDINT R7 65533 + 0x1C1C0C07, // 003E EQ R7 R6 R7 + 0x781E0004, // 003F JMPF R7 #0045 + 0x8C1C0907, // 0040 GETMET R7 R4 K7 + 0x8824090C, // 0041 GETMBR R9 R4 K12 + 0x542A0004, // 0042 LDINT R10 5 + 0x7C1C0600, // 0043 CALL R7 3 + 0x80040E00, // 0044 RET 1 R7 + 0x70020007, // 0045 JMP #004E + 0x601C0003, // 0046 GETGBL R7 G3 + 0x5C200000, // 0047 MOVE R8 R0 + 0x7C1C0200, // 0048 CALL R7 1 + 0x8C1C0F0E, // 0049 GETMET R7 R7 K14 + 0x5C240200, // 004A MOVE R9 R1 + 0x5C280400, // 004B MOVE R10 R2 + 0x7C1C0600, // 004C CALL R7 3 + 0x80040E00, // 004D RET 1 R7 + 0x80000000, // 004E RET 0 }) ) ); 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 0cce12e73..50328f5df 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 @@ -19,25 +19,26 @@ be_local_closure(Matter_Plugin_Light2_read_attribute, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[14]) { /* 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_nested_str_weak(create_TLV), - /* K6 */ be_nested_str_weak(U1), - /* K7 */ be_nested_str_weak(shadow_ct), - /* K8 */ be_const_int(2), - /* K9 */ be_const_int(0), - /* K10 */ be_nested_str_weak(ct_min), - /* K11 */ be_nested_str_weak(ct_max), - /* K12 */ be_nested_str_weak(U4), - /* K13 */ be_nested_str_weak(read_attribute), + /* K5 */ be_nested_str_weak(update_shadow_lazy), + /* K6 */ be_nested_str_weak(create_TLV), + /* K7 */ be_nested_str_weak(U1), + /* K8 */ be_nested_str_weak(shadow_ct), + /* K9 */ be_const_int(2), + /* K10 */ be_const_int(0), + /* K11 */ be_nested_str_weak(ct_min), + /* K12 */ be_nested_str_weak(ct_max), + /* K13 */ be_nested_str_weak(U4), + /* K14 */ be_nested_str_weak(read_attribute), }), be_str_weak(read_attribute), &be_const_str_solidified, - ( &(const binstruction[80]) { /* code */ + ( &(const binstruction[82]) { /* code */ 0xA40E0000, // 0000 IMPORT R3 K0 0xB8120200, // 0001 GETNGBL R4 K1 0x88100902, // 0002 GETMBR R4 R4 K2 @@ -45,79 +46,81 @@ be_local_closure(Matter_Plugin_Light2_read_attribute, /* name */ 0x88180504, // 0004 GETMBR R6 R2 K4 0x541E02FF, // 0005 LDINT R7 768 0x1C1C0A07, // 0006 EQ R7 R5 R7 - 0x781E003E, // 0007 JMPF R7 #0047 - 0x541E0006, // 0008 LDINT R7 7 - 0x1C1C0C07, // 0009 EQ R7 R6 R7 - 0x781E0005, // 000A JMPF R7 #0011 - 0x8C1C0905, // 000B GETMET R7 R4 K5 - 0x88240906, // 000C GETMBR R9 R4 K6 - 0x88280107, // 000D GETMBR R10 R0 K7 - 0x7C1C0600, // 000E CALL R7 3 - 0x80040E00, // 000F RET 1 R7 - 0x70020034, // 0010 JMP #0046 - 0x541E0007, // 0011 LDINT R7 8 - 0x1C1C0C07, // 0012 EQ R7 R6 R7 - 0x781E0005, // 0013 JMPF R7 #001A - 0x8C1C0905, // 0014 GETMET R7 R4 K5 - 0x88240906, // 0015 GETMBR R9 R4 K6 - 0x58280008, // 0016 LDCONST R10 K8 - 0x7C1C0600, // 0017 CALL R7 3 - 0x80040E00, // 0018 RET 1 R7 - 0x7002002B, // 0019 JMP #0046 - 0x541E000E, // 001A LDINT R7 15 - 0x1C1C0C07, // 001B EQ R7 R6 R7 - 0x781E0005, // 001C JMPF R7 #0023 - 0x8C1C0905, // 001D GETMET R7 R4 K5 - 0x88240906, // 001E GETMBR R9 R4 K6 - 0x58280009, // 001F LDCONST R10 K9 - 0x7C1C0600, // 0020 CALL R7 3 - 0x80040E00, // 0021 RET 1 R7 - 0x70020022, // 0022 JMP #0046 - 0x541E400A, // 0023 LDINT R7 16395 - 0x1C1C0C07, // 0024 EQ R7 R6 R7 - 0x781E0005, // 0025 JMPF R7 #002C - 0x8C1C0905, // 0026 GETMET R7 R4 K5 - 0x88240906, // 0027 GETMBR R9 R4 K6 - 0x8828010A, // 0028 GETMBR R10 R0 K10 - 0x7C1C0600, // 0029 CALL R7 3 - 0x80040E00, // 002A RET 1 R7 - 0x70020019, // 002B JMP #0046 - 0x541E400B, // 002C LDINT R7 16396 - 0x1C1C0C07, // 002D EQ R7 R6 R7 - 0x781E0005, // 002E JMPF R7 #0035 - 0x8C1C0905, // 002F GETMET R7 R4 K5 - 0x88240906, // 0030 GETMBR R9 R4 K6 - 0x8828010B, // 0031 GETMBR R10 R0 K11 - 0x7C1C0600, // 0032 CALL R7 3 - 0x80040E00, // 0033 RET 1 R7 - 0x70020010, // 0034 JMP #0046 - 0x541EFFFB, // 0035 LDINT R7 65532 - 0x1C1C0C07, // 0036 EQ R7 R6 R7 - 0x781E0005, // 0037 JMPF R7 #003E - 0x8C1C0905, // 0038 GETMET R7 R4 K5 - 0x8824090C, // 0039 GETMBR R9 R4 K12 - 0x542A000F, // 003A LDINT R10 16 - 0x7C1C0600, // 003B CALL R7 3 - 0x80040E00, // 003C RET 1 R7 - 0x70020007, // 003D JMP #0046 - 0x541EFFFC, // 003E LDINT R7 65533 - 0x1C1C0C07, // 003F EQ R7 R6 R7 - 0x781E0004, // 0040 JMPF R7 #0046 - 0x8C1C0905, // 0041 GETMET R7 R4 K5 - 0x8824090C, // 0042 GETMBR R9 R4 K12 - 0x542A0004, // 0043 LDINT R10 5 - 0x7C1C0600, // 0044 CALL R7 3 - 0x80040E00, // 0045 RET 1 R7 - 0x70020007, // 0046 JMP #004F - 0x601C0003, // 0047 GETGBL R7 G3 - 0x5C200000, // 0048 MOVE R8 R0 - 0x7C1C0200, // 0049 CALL R7 1 - 0x8C1C0F0D, // 004A GETMET R7 R7 K13 - 0x5C240200, // 004B MOVE R9 R1 - 0x5C280400, // 004C MOVE R10 R2 - 0x7C1C0600, // 004D CALL R7 3 - 0x80040E00, // 004E RET 1 R7 - 0x80000000, // 004F RET 0 + 0x781E0040, // 0007 JMPF R7 #0049 + 0x8C1C0105, // 0008 GETMET R7 R0 K5 + 0x7C1C0200, // 0009 CALL R7 1 + 0x541E0006, // 000A LDINT R7 7 + 0x1C1C0C07, // 000B EQ R7 R6 R7 + 0x781E0005, // 000C JMPF R7 #0013 + 0x8C1C0906, // 000D GETMET R7 R4 K6 + 0x88240907, // 000E GETMBR R9 R4 K7 + 0x88280108, // 000F GETMBR R10 R0 K8 + 0x7C1C0600, // 0010 CALL R7 3 + 0x80040E00, // 0011 RET 1 R7 + 0x70020034, // 0012 JMP #0048 + 0x541E0007, // 0013 LDINT R7 8 + 0x1C1C0C07, // 0014 EQ R7 R6 R7 + 0x781E0005, // 0015 JMPF R7 #001C + 0x8C1C0906, // 0016 GETMET R7 R4 K6 + 0x88240907, // 0017 GETMBR R9 R4 K7 + 0x58280009, // 0018 LDCONST R10 K9 + 0x7C1C0600, // 0019 CALL R7 3 + 0x80040E00, // 001A RET 1 R7 + 0x7002002B, // 001B JMP #0048 + 0x541E000E, // 001C LDINT R7 15 + 0x1C1C0C07, // 001D EQ R7 R6 R7 + 0x781E0005, // 001E JMPF R7 #0025 + 0x8C1C0906, // 001F GETMET R7 R4 K6 + 0x88240907, // 0020 GETMBR R9 R4 K7 + 0x5828000A, // 0021 LDCONST R10 K10 + 0x7C1C0600, // 0022 CALL R7 3 + 0x80040E00, // 0023 RET 1 R7 + 0x70020022, // 0024 JMP #0048 + 0x541E400A, // 0025 LDINT R7 16395 + 0x1C1C0C07, // 0026 EQ R7 R6 R7 + 0x781E0005, // 0027 JMPF R7 #002E + 0x8C1C0906, // 0028 GETMET R7 R4 K6 + 0x88240907, // 0029 GETMBR R9 R4 K7 + 0x8828010B, // 002A GETMBR R10 R0 K11 + 0x7C1C0600, // 002B CALL R7 3 + 0x80040E00, // 002C RET 1 R7 + 0x70020019, // 002D JMP #0048 + 0x541E400B, // 002E LDINT R7 16396 + 0x1C1C0C07, // 002F EQ R7 R6 R7 + 0x781E0005, // 0030 JMPF R7 #0037 + 0x8C1C0906, // 0031 GETMET R7 R4 K6 + 0x88240907, // 0032 GETMBR R9 R4 K7 + 0x8828010C, // 0033 GETMBR R10 R0 K12 + 0x7C1C0600, // 0034 CALL R7 3 + 0x80040E00, // 0035 RET 1 R7 + 0x70020010, // 0036 JMP #0048 + 0x541EFFFB, // 0037 LDINT R7 65532 + 0x1C1C0C07, // 0038 EQ R7 R6 R7 + 0x781E0005, // 0039 JMPF R7 #0040 + 0x8C1C0906, // 003A GETMET R7 R4 K6 + 0x8824090D, // 003B GETMBR R9 R4 K13 + 0x542A000F, // 003C LDINT R10 16 + 0x7C1C0600, // 003D CALL R7 3 + 0x80040E00, // 003E RET 1 R7 + 0x70020007, // 003F JMP #0048 + 0x541EFFFC, // 0040 LDINT R7 65533 + 0x1C1C0C07, // 0041 EQ R7 R6 R7 + 0x781E0004, // 0042 JMPF R7 #0048 + 0x8C1C0906, // 0043 GETMET R7 R4 K6 + 0x8824090D, // 0044 GETMBR R9 R4 K13 + 0x542A0004, // 0045 LDINT R10 5 + 0x7C1C0600, // 0046 CALL R7 3 + 0x80040E00, // 0047 RET 1 R7 + 0x70020007, // 0048 JMP #0051 + 0x601C0003, // 0049 GETGBL R7 G3 + 0x5C200000, // 004A MOVE R8 R0 + 0x7C1C0200, // 004B CALL R7 1 + 0x8C1C0F0E, // 004C GETMET R7 R7 K14 + 0x5C240200, // 004D MOVE R9 R1 + 0x5C280400, // 004E MOVE R10 R2 + 0x7C1C0600, // 004F CALL R7 3 + 0x80040E00, // 0050 RET 1 R7 + 0x80000000, // 0051 RET 0 }) ) ); @@ -129,7 +132,7 @@ be_local_closure(Matter_Plugin_Light2_read_attribute, /* name */ ********************************************************************/ be_local_closure(Matter_Plugin_Light2_update_shadow, /* name */ be_nested_proto( - 9, /* nstack */ + 8, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -149,7 +152,7 @@ be_local_closure(Matter_Plugin_Light2_update_shadow, /* name */ }), be_str_weak(update_shadow), &be_const_str_solidified, - ( &(const binstruction[28]) { /* code */ + ( &(const binstruction[27]) { /* code */ 0xA4060000, // 0000 IMPORT R1 K0 0x8C080101, // 0001 GETMET R2 R0 K1 0x7C080200, // 0002 CALL R2 1 @@ -170,14 +173,13 @@ be_local_closure(Matter_Plugin_Light2_update_shadow, /* name */ 0x880C0106, // 0011 GETMBR R3 R0 K6 0x88100106, // 0012 GETMBR R4 R0 K6 0x20100604, // 0013 NE R4 R3 R4 - 0x78120005, // 0014 JMPF R4 #001B + 0x78120004, // 0014 JMPF R4 #001A 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 + 0x541A02FF, // 0016 LDINT R6 768 + 0x541E0006, // 0017 LDINT R7 7 + 0x7C100600, // 0018 CALL R4 3 + 0x90020C03, // 0019 SETMBR R0 K6 R3 + 0x80000000, // 001A RET 0 }) ) ); @@ -280,26 +282,27 @@ be_local_closure(Matter_Plugin_Light2_invoke_request, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[15]) { /* constants */ + ( &(const bvalue[16]) { /* 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), + /* K5 */ be_nested_str_weak(update_shadow_lazy), + /* K6 */ be_nested_str_weak(findsubval), + /* K7 */ be_const_int(0), + /* K8 */ be_nested_str_weak(ct_min), + /* K9 */ be_nested_str_weak(ct_max), + /* K10 */ be_nested_str_weak(set), + /* K11 */ be_nested_str_weak(ct), + /* K12 */ be_nested_str_weak(update_shadow), + /* K13 */ be_nested_str_weak(log), + /* K14 */ be_nested_str_weak(ct_X3A), + /* K15 */ be_nested_str_weak(invoke_request), }), be_str_weak(invoke_request), &be_const_str_solidified, - ( &(const binstruction[65]) { /* code */ + ( &(const binstruction[67]) { /* code */ 0xA4120000, // 0000 IMPORT R4 K0 0xB8160200, // 0001 GETNGBL R5 K1 0x88140B02, // 0002 GETMBR R5 R5 K2 @@ -307,64 +310,66 @@ be_local_closure(Matter_Plugin_Light2_invoke_request, /* name */ 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 + 0x78220030, // 0007 JMPF R8 #0039 + 0x8C200105, // 0008 GETMET R8 R0 K5 + 0x7C200200, // 0009 CALL R8 1 + 0x54220009, // 000A LDINT R8 10 + 0x1C200E08, // 000B EQ R8 R7 R8 + 0x78220019, // 000C JMPF R8 #0027 + 0x8C200506, // 000D GETMET R8 R2 K6 + 0x58280007, // 000E LDCONST R10 K7 + 0x7C200400, // 000F CALL R8 2 + 0x88240108, // 0010 GETMBR R9 R0 K8 + 0x14241009, // 0011 LT R9 R8 R9 + 0x78260000, // 0012 JMPF R9 #0014 + 0x88200108, // 0013 GETMBR R8 R0 K8 + 0x88240109, // 0014 GETMBR R9 R0 K9 + 0x24241009, // 0015 GT R9 R8 R9 + 0x78260000, // 0016 JMPF R9 #0018 + 0x88200109, // 0017 GETMBR R8 R0 K9 + 0x8C24090A, // 0018 GETMET R9 R4 K10 + 0x602C0013, // 0019 GETGBL R11 G19 + 0x7C2C0000, // 001A CALL R11 0 + 0x982E1608, // 001B SETIDX R11 K11 R8 + 0x7C240400, // 001C CALL R9 2 + 0x8C24010C, // 001D GETMET R9 R0 K12 + 0x7C240200, // 001E CALL R9 1 + 0x60240008, // 001F GETGBL R9 G8 + 0x5C281000, // 0020 MOVE R10 R8 + 0x7C240200, // 0021 CALL R9 1 + 0x00261C09, // 0022 ADD R9 K14 R9 + 0x900E1A09, // 0023 SETMBR R3 K13 R9 + 0x50240200, // 0024 LDBOOL R9 1 0 + 0x80041200, // 0025 RET 1 R9 + 0x70020010, // 0026 JMP #0038 + 0x54220046, // 0027 LDINT R8 71 + 0x1C200E08, // 0028 EQ R8 R7 R8 + 0x78220002, // 0029 JMPF R8 #002D + 0x50200200, // 002A LDBOOL R8 1 0 + 0x80041000, // 002B RET 1 R8 + 0x7002000A, // 002C JMP #0038 + 0x5422004A, // 002D LDINT R8 75 + 0x1C200E08, // 002E EQ R8 R7 R8 + 0x78220002, // 002F JMPF R8 #0033 + 0x50200200, // 0030 LDBOOL R8 1 0 + 0x80041000, // 0031 RET 1 R8 + 0x70020004, // 0032 JMP #0038 + 0x5422004B, // 0033 LDINT R8 76 + 0x1C200E08, // 0034 EQ R8 R7 R8 + 0x78220001, // 0035 JMPF R8 #0038 + 0x50200200, // 0036 LDBOOL R8 1 0 + 0x80041000, // 0037 RET 1 R8 + 0x70020008, // 0038 JMP #0042 + 0x60200003, // 0039 GETGBL R8 G3 + 0x5C240000, // 003A MOVE R9 R0 + 0x7C200200, // 003B CALL R8 1 + 0x8C20110F, // 003C GETMET R8 R8 K15 + 0x5C280200, // 003D MOVE R10 R1 + 0x5C2C0400, // 003E MOVE R11 R2 + 0x5C300600, // 003F MOVE R12 R3 + 0x7C200800, // 0040 CALL R8 4 + 0x80041000, // 0041 RET 1 R8 + 0x80000000, // 0042 RET 0 }) ) ); 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 b4ebe2fd7..abfb7e030 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 @@ -36,7 +36,7 @@ be_local_closure(Matter_Plugin_Light3_update_shadow, /* name */ }), be_str_weak(update_shadow), &be_const_str_solidified, - ( &(const binstruction[63]) { /* code */ + ( &(const binstruction[61]) { /* code */ 0xA4060000, // 0000 IMPORT R1 K0 0x60080003, // 0001 GETGBL R2 G3 0x5C0C0000, // 0002 MOVE R3 R0 @@ -83,23 +83,21 @@ be_local_closure(Matter_Plugin_Light3_update_shadow, /* name */ 0x8810010A, // 002B GETMBR R4 R0 K10 0x88140109, // 002C GETMBR R5 R0 K9 0x20140605, // 002D NE R5 R3 R5 - 0x78160005, // 002E JMPF R5 #0035 + 0x78160004, // 002E JMPF R5 #0034 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 + 0x541E02FF, // 0030 LDINT R7 768 + 0x58200008, // 0031 LDCONST R8 K8 + 0x7C140600, // 0032 CALL R5 3 + 0x90021203, // 0033 SETMBR R0 K9 R3 + 0x8814010A, // 0034 GETMBR R5 R0 K10 + 0x20140805, // 0035 NE R5 R4 R5 + 0x78160004, // 0036 JMPF R5 #003C + 0x8C14010B, // 0037 GETMET R5 R0 K11 + 0x541E02FF, // 0038 LDINT R7 768 + 0x5820000C, // 0039 LDCONST R8 K12 + 0x7C140600, // 003A CALL R5 3 + 0x90021404, // 003B SETMBR R0 K10 R4 + 0x80000000, // 003C RET 0 }) ) ); @@ -119,24 +117,25 @@ be_local_closure(Matter_Plugin_Light3_read_attribute, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[13]) { /* 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_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), + /* K5 */ be_nested_str_weak(update_shadow_lazy), + /* K6 */ be_const_int(0), + /* K7 */ be_nested_str_weak(create_TLV), + /* K8 */ be_nested_str_weak(U1), + /* K9 */ be_nested_str_weak(shadow_hue), + /* K10 */ be_const_int(1), + /* K11 */ be_nested_str_weak(shadow_sat), + /* K12 */ be_nested_str_weak(U4), + /* K13 */ be_nested_str_weak(read_attribute), }), be_str_weak(read_attribute), &be_const_str_solidified, - ( &(const binstruction[105]) { /* code */ + ( &(const binstruction[107]) { /* code */ 0xA40E0000, // 0000 IMPORT R3 K0 0xB8120200, // 0001 GETNGBL R4 K1 0x88100902, // 0002 GETMBR R4 R4 K2 @@ -144,104 +143,106 @@ be_local_closure(Matter_Plugin_Light3_read_attribute, /* name */ 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 + 0x781E0059, // 0007 JMPF R7 #0062 + 0x8C1C0105, // 0008 GETMET R7 R0 K5 + 0x7C1C0200, // 0009 CALL R7 1 + 0x1C1C0D06, // 000A EQ R7 R6 K6 + 0x781E0005, // 000B JMPF R7 #0012 + 0x8C1C0907, // 000C GETMET R7 R4 K7 + 0x88240908, // 000D GETMBR R9 R4 K8 + 0x88280109, // 000E GETMBR R10 R0 K9 + 0x7C1C0600, // 000F CALL R7 3 + 0x80040E00, // 0010 RET 1 R7 + 0x7002004E, // 0011 JMP #0061 + 0x1C1C0D0A, // 0012 EQ R7 R6 K10 + 0x781E0005, // 0013 JMPF R7 #001A + 0x8C1C0907, // 0014 GETMET R7 R4 K7 + 0x88240908, // 0015 GETMBR R9 R4 K8 + 0x8828010B, // 0016 GETMBR R10 R0 K11 + 0x7C1C0600, // 0017 CALL R7 3 + 0x80040E00, // 0018 RET 1 R7 + 0x70020046, // 0019 JMP #0061 + 0x541E0006, // 001A LDINT R7 7 + 0x1C1C0C07, // 001B EQ R7 R6 R7 + 0x781E0005, // 001C JMPF R7 #0023 + 0x8C1C0907, // 001D GETMET R7 R4 K7 + 0x88240908, // 001E GETMBR R9 R4 K8 + 0x58280006, // 001F LDCONST R10 K6 + 0x7C1C0600, // 0020 CALL R7 3 + 0x80040E00, // 0021 RET 1 R7 + 0x7002003D, // 0022 JMP #0061 + 0x541E0007, // 0023 LDINT R7 8 + 0x1C1C0C07, // 0024 EQ R7 R6 R7 + 0x781E0005, // 0025 JMPF R7 #002C + 0x8C1C0907, // 0026 GETMET R7 R4 K7 + 0x88240908, // 0027 GETMBR R9 R4 K8 + 0x58280006, // 0028 LDCONST R10 K6 + 0x7C1C0600, // 0029 CALL R7 3 + 0x80040E00, // 002A RET 1 R7 + 0x70020034, // 002B JMP #0061 + 0x541E000E, // 002C LDINT R7 15 + 0x1C1C0C07, // 002D EQ R7 R6 R7 + 0x781E0005, // 002E JMPF R7 #0035 + 0x8C1C0907, // 002F GETMET R7 R4 K7 + 0x88240908, // 0030 GETMBR R9 R4 K8 + 0x58280006, // 0031 LDCONST R10 K6 + 0x7C1C0600, // 0032 CALL R7 3 + 0x80040E00, // 0033 RET 1 R7 + 0x7002002B, // 0034 JMP #0061 + 0x541E4000, // 0035 LDINT R7 16385 + 0x1C1C0C07, // 0036 EQ R7 R6 R7 + 0x781E0005, // 0037 JMPF R7 #003E + 0x8C1C0907, // 0038 GETMET R7 R4 K7 + 0x88240908, // 0039 GETMBR R9 R4 K8 + 0x58280006, // 003A LDCONST R10 K6 + 0x7C1C0600, // 003B CALL R7 3 + 0x80040E00, // 003C RET 1 R7 + 0x70020022, // 003D JMP #0061 + 0x541E4009, // 003E LDINT R7 16394 + 0x1C1C0C07, // 003F EQ R7 R6 R7 + 0x781E0005, // 0040 JMPF R7 #0047 + 0x8C1C0907, // 0041 GETMET R7 R4 K7 + 0x88240908, // 0042 GETMBR R9 R4 K8 + 0x58280006, // 0043 LDCONST R10 K6 + 0x7C1C0600, // 0044 CALL R7 3 + 0x80040E00, // 0045 RET 1 R7 + 0x70020019, // 0046 JMP #0061 + 0x541E000F, // 0047 LDINT R7 16 + 0x1C1C0C07, // 0048 EQ R7 R6 R7 + 0x781E0005, // 0049 JMPF R7 #0050 + 0x8C1C0907, // 004A GETMET R7 R4 K7 + 0x88240908, // 004B GETMBR R9 R4 K8 + 0x58280006, // 004C LDCONST R10 K6 + 0x7C1C0600, // 004D CALL R7 3 + 0x80040E00, // 004E RET 1 R7 + 0x70020010, // 004F JMP #0061 + 0x541EFFFB, // 0050 LDINT R7 65532 + 0x1C1C0C07, // 0051 EQ R7 R6 R7 + 0x781E0005, // 0052 JMPF R7 #0059 + 0x8C1C0907, // 0053 GETMET R7 R4 K7 + 0x8824090C, // 0054 GETMBR R9 R4 K12 + 0x5828000A, // 0055 LDCONST R10 K10 + 0x7C1C0600, // 0056 CALL R7 3 + 0x80040E00, // 0057 RET 1 R7 + 0x70020007, // 0058 JMP #0061 + 0x541EFFFC, // 0059 LDINT R7 65533 + 0x1C1C0C07, // 005A EQ R7 R6 R7 + 0x781E0004, // 005B JMPF R7 #0061 + 0x8C1C0907, // 005C GETMET R7 R4 K7 + 0x8824090C, // 005D GETMBR R9 R4 K12 + 0x542A0004, // 005E LDINT R10 5 + 0x7C1C0600, // 005F CALL R7 3 + 0x80040E00, // 0060 RET 1 R7 + 0x70020007, // 0061 JMP #006A + 0x601C0003, // 0062 GETGBL R7 G3 + 0x5C200000, // 0063 MOVE R8 R0 + 0x7C1C0200, // 0064 CALL R7 1 + 0x8C1C0F0D, // 0065 GETMET R7 R7 K13 + 0x5C240200, // 0066 MOVE R9 R1 + 0x5C280400, // 0067 MOVE R10 R2 + 0x7C1C0600, // 0068 CALL R7 3 + 0x80040E00, // 0069 RET 1 R7 + 0x80000000, // 006A RET 0 }) ) ); @@ -300,32 +301,33 @@ be_local_closure(Matter_Plugin_Light3_invoke_request, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[21]) { /* constants */ + ( &(const bvalue[22]) { /* 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_const_int(0), - /* K6 */ be_nested_str_weak(findsubval), - /* K7 */ be_nested_str_weak(tasmota), - /* K8 */ be_nested_str_weak(scale_uint), - /* K9 */ be_nested_str_weak(set), - /* K10 */ be_nested_str_weak(hue), - /* K11 */ be_nested_str_weak(update_shadow), - /* K12 */ be_nested_str_weak(log), - /* K13 */ be_nested_str_weak(hue_X3A), - /* K14 */ be_const_int(1), - /* K15 */ be_const_int(2), - /* K16 */ be_const_int(3), - /* K17 */ be_nested_str_weak(sat), - /* K18 */ be_nested_str_weak(sat_X3A), - /* K19 */ be_nested_str_weak(_X20sat_X3A), - /* K20 */ be_nested_str_weak(invoke_request), + /* K5 */ be_nested_str_weak(update_shadow_lazy), + /* K6 */ be_const_int(0), + /* K7 */ be_nested_str_weak(findsubval), + /* K8 */ be_nested_str_weak(tasmota), + /* K9 */ be_nested_str_weak(scale_uint), + /* K10 */ be_nested_str_weak(set), + /* K11 */ be_nested_str_weak(hue), + /* K12 */ be_nested_str_weak(update_shadow), + /* K13 */ be_nested_str_weak(log), + /* K14 */ be_nested_str_weak(hue_X3A), + /* K15 */ be_const_int(1), + /* K16 */ be_const_int(2), + /* K17 */ be_const_int(3), + /* K18 */ be_nested_str_weak(sat), + /* K19 */ be_nested_str_weak(sat_X3A), + /* K20 */ be_nested_str_weak(_X20sat_X3A), + /* K21 */ be_nested_str_weak(invoke_request), }), be_str_weak(invoke_request), &be_const_str_solidified, - ( &(const binstruction[148]) { /* code */ + ( &(const binstruction[150]) { /* code */ 0xA4120000, // 0000 IMPORT R4 K0 0xB8160200, // 0001 GETNGBL R5 K1 0x88140B02, // 0002 GETMBR R5 R5 K2 @@ -333,147 +335,149 @@ be_local_closure(Matter_Plugin_Light3_invoke_request, /* name */ 0x881C0704, // 0004 GETMBR R7 R3 K4 0x542202FF, // 0005 LDINT R8 768 0x1C200C08, // 0006 EQ R8 R6 R8 - 0x78220081, // 0007 JMPF R8 #008A - 0x1C200F05, // 0008 EQ R8 R7 K5 - 0x78220019, // 0009 JMPF R8 #0024 - 0x8C200506, // 000A GETMET R8 R2 K6 - 0x58280005, // 000B LDCONST R10 K5 - 0x7C200400, // 000C CALL R8 2 - 0xB8260E00, // 000D GETNGBL R9 K7 - 0x8C241308, // 000E GETMET R9 R9 K8 - 0x5C2C1000, // 000F MOVE R11 R8 - 0x58300005, // 0010 LDCONST R12 K5 - 0x543600FD, // 0011 LDINT R13 254 - 0x58380005, // 0012 LDCONST R14 K5 - 0x543E0167, // 0013 LDINT R15 360 - 0x7C240C00, // 0014 CALL R9 6 - 0x8C280909, // 0015 GETMET R10 R4 K9 - 0x60300013, // 0016 GETGBL R12 G19 - 0x7C300000, // 0017 CALL R12 0 - 0x98321409, // 0018 SETIDX R12 K10 R9 - 0x7C280400, // 0019 CALL R10 2 - 0x8C28010B, // 001A GETMET R10 R0 K11 - 0x7C280200, // 001B CALL R10 1 - 0x60280008, // 001C GETGBL R10 G8 - 0x5C2C1000, // 001D MOVE R11 R8 - 0x7C280200, // 001E CALL R10 1 - 0x002A1A0A, // 001F ADD R10 K13 R10 - 0x900E180A, // 0020 SETMBR R3 K12 R10 - 0x50280200, // 0021 LDBOOL R10 1 0 - 0x80041400, // 0022 RET 1 R10 - 0x70020064, // 0023 JMP #0089 - 0x1C200F0E, // 0024 EQ R8 R7 K14 - 0x78220002, // 0025 JMPF R8 #0029 - 0x50200200, // 0026 LDBOOL R8 1 0 - 0x80041000, // 0027 RET 1 R8 - 0x7002005F, // 0028 JMP #0089 - 0x1C200F0F, // 0029 EQ R8 R7 K15 - 0x78220002, // 002A JMPF R8 #002E - 0x50200200, // 002B LDBOOL R8 1 0 - 0x80041000, // 002C RET 1 R8 - 0x7002005A, // 002D JMP #0089 - 0x1C200F10, // 002E EQ R8 R7 K16 - 0x78220019, // 002F JMPF R8 #004A - 0x8C200506, // 0030 GETMET R8 R2 K6 - 0x58280005, // 0031 LDCONST R10 K5 - 0x7C200400, // 0032 CALL R8 2 - 0xB8260E00, // 0033 GETNGBL R9 K7 - 0x8C241308, // 0034 GETMET R9 R9 K8 - 0x5C2C1000, // 0035 MOVE R11 R8 - 0x58300005, // 0036 LDCONST R12 K5 - 0x543600FD, // 0037 LDINT R13 254 - 0x58380005, // 0038 LDCONST R14 K5 - 0x543E00FE, // 0039 LDINT R15 255 - 0x7C240C00, // 003A CALL R9 6 - 0x8C280909, // 003B GETMET R10 R4 K9 - 0x60300013, // 003C GETGBL R12 G19 - 0x7C300000, // 003D CALL R12 0 - 0x98322209, // 003E SETIDX R12 K17 R9 - 0x7C280400, // 003F CALL R10 2 - 0x8C28010B, // 0040 GETMET R10 R0 K11 - 0x7C280200, // 0041 CALL R10 1 - 0x60280008, // 0042 GETGBL R10 G8 - 0x5C2C1000, // 0043 MOVE R11 R8 - 0x7C280200, // 0044 CALL R10 1 - 0x002A240A, // 0045 ADD R10 K18 R10 - 0x900E180A, // 0046 SETMBR R3 K12 R10 - 0x50280200, // 0047 LDBOOL R10 1 0 - 0x80041400, // 0048 RET 1 R10 - 0x7002003E, // 0049 JMP #0089 - 0x54220003, // 004A LDINT R8 4 - 0x1C200E08, // 004B EQ R8 R7 R8 - 0x78220002, // 004C JMPF R8 #0050 - 0x50200200, // 004D LDBOOL R8 1 0 - 0x80041000, // 004E RET 1 R8 - 0x70020038, // 004F JMP #0089 - 0x54220004, // 0050 LDINT R8 5 - 0x1C200E08, // 0051 EQ R8 R7 R8 - 0x78220002, // 0052 JMPF R8 #0056 - 0x50200200, // 0053 LDBOOL R8 1 0 - 0x80041000, // 0054 RET 1 R8 - 0x70020032, // 0055 JMP #0089 - 0x54220005, // 0056 LDINT R8 6 - 0x1C200E08, // 0057 EQ R8 R7 R8 - 0x7822002A, // 0058 JMPF R8 #0084 - 0x8C200506, // 0059 GETMET R8 R2 K6 - 0x58280005, // 005A LDCONST R10 K5 - 0x7C200400, // 005B CALL R8 2 - 0xB8260E00, // 005C GETNGBL R9 K7 - 0x8C241308, // 005D GETMET R9 R9 K8 - 0x5C2C1000, // 005E MOVE R11 R8 - 0x58300005, // 005F LDCONST R12 K5 - 0x543600FD, // 0060 LDINT R13 254 - 0x58380005, // 0061 LDCONST R14 K5 - 0x543E0167, // 0062 LDINT R15 360 - 0x7C240C00, // 0063 CALL R9 6 - 0x8C280506, // 0064 GETMET R10 R2 K6 - 0x5830000E, // 0065 LDCONST R12 K14 - 0x7C280400, // 0066 CALL R10 2 - 0xB82E0E00, // 0067 GETNGBL R11 K7 - 0x8C2C1708, // 0068 GETMET R11 R11 K8 - 0x5C341400, // 0069 MOVE R13 R10 - 0x58380005, // 006A LDCONST R14 K5 - 0x543E00FD, // 006B LDINT R15 254 - 0x58400005, // 006C LDCONST R16 K5 - 0x544600FE, // 006D LDINT R17 255 - 0x7C2C0C00, // 006E CALL R11 6 - 0x8C300909, // 006F GETMET R12 R4 K9 - 0x60380013, // 0070 GETGBL R14 G19 - 0x7C380000, // 0071 CALL R14 0 - 0x983A1409, // 0072 SETIDX R14 K10 R9 - 0x983A220B, // 0073 SETIDX R14 K17 R11 - 0x7C300400, // 0074 CALL R12 2 - 0x8C30010B, // 0075 GETMET R12 R0 K11 - 0x7C300200, // 0076 CALL R12 1 - 0x60300008, // 0077 GETGBL R12 G8 - 0x5C341000, // 0078 MOVE R13 R8 - 0x7C300200, // 0079 CALL R12 1 - 0x00321A0C, // 007A ADD R12 K13 R12 - 0x00301913, // 007B ADD R12 R12 K19 - 0x60340008, // 007C GETGBL R13 G8 - 0x5C381400, // 007D MOVE R14 R10 - 0x7C340200, // 007E CALL R13 1 - 0x0030180D, // 007F ADD R12 R12 R13 - 0x900E180C, // 0080 SETMBR R3 K12 R12 - 0x50300200, // 0081 LDBOOL R12 1 0 - 0x80041800, // 0082 RET 1 R12 - 0x70020004, // 0083 JMP #0089 - 0x54220046, // 0084 LDINT R8 71 - 0x1C200E08, // 0085 EQ R8 R7 R8 - 0x78220001, // 0086 JMPF R8 #0089 - 0x50200200, // 0087 LDBOOL R8 1 0 - 0x80041000, // 0088 RET 1 R8 - 0x70020008, // 0089 JMP #0093 - 0x60200003, // 008A GETGBL R8 G3 - 0x5C240000, // 008B MOVE R9 R0 - 0x7C200200, // 008C CALL R8 1 - 0x8C201114, // 008D GETMET R8 R8 K20 - 0x5C280200, // 008E MOVE R10 R1 - 0x5C2C0400, // 008F MOVE R11 R2 - 0x5C300600, // 0090 MOVE R12 R3 - 0x7C200800, // 0091 CALL R8 4 - 0x80041000, // 0092 RET 1 R8 - 0x80000000, // 0093 RET 0 + 0x78220083, // 0007 JMPF R8 #008C + 0x8C200105, // 0008 GETMET R8 R0 K5 + 0x7C200200, // 0009 CALL R8 1 + 0x1C200F06, // 000A EQ R8 R7 K6 + 0x78220019, // 000B JMPF R8 #0026 + 0x8C200507, // 000C GETMET R8 R2 K7 + 0x58280006, // 000D LDCONST R10 K6 + 0x7C200400, // 000E CALL R8 2 + 0xB8261000, // 000F GETNGBL R9 K8 + 0x8C241309, // 0010 GETMET R9 R9 K9 + 0x5C2C1000, // 0011 MOVE R11 R8 + 0x58300006, // 0012 LDCONST R12 K6 + 0x543600FD, // 0013 LDINT R13 254 + 0x58380006, // 0014 LDCONST R14 K6 + 0x543E0167, // 0015 LDINT R15 360 + 0x7C240C00, // 0016 CALL R9 6 + 0x8C28090A, // 0017 GETMET R10 R4 K10 + 0x60300013, // 0018 GETGBL R12 G19 + 0x7C300000, // 0019 CALL R12 0 + 0x98321609, // 001A SETIDX R12 K11 R9 + 0x7C280400, // 001B CALL R10 2 + 0x8C28010C, // 001C GETMET R10 R0 K12 + 0x7C280200, // 001D CALL R10 1 + 0x60280008, // 001E GETGBL R10 G8 + 0x5C2C1000, // 001F MOVE R11 R8 + 0x7C280200, // 0020 CALL R10 1 + 0x002A1C0A, // 0021 ADD R10 K14 R10 + 0x900E1A0A, // 0022 SETMBR R3 K13 R10 + 0x50280200, // 0023 LDBOOL R10 1 0 + 0x80041400, // 0024 RET 1 R10 + 0x70020064, // 0025 JMP #008B + 0x1C200F0F, // 0026 EQ R8 R7 K15 + 0x78220002, // 0027 JMPF R8 #002B + 0x50200200, // 0028 LDBOOL R8 1 0 + 0x80041000, // 0029 RET 1 R8 + 0x7002005F, // 002A JMP #008B + 0x1C200F10, // 002B EQ R8 R7 K16 + 0x78220002, // 002C JMPF R8 #0030 + 0x50200200, // 002D LDBOOL R8 1 0 + 0x80041000, // 002E RET 1 R8 + 0x7002005A, // 002F JMP #008B + 0x1C200F11, // 0030 EQ R8 R7 K17 + 0x78220019, // 0031 JMPF R8 #004C + 0x8C200507, // 0032 GETMET R8 R2 K7 + 0x58280006, // 0033 LDCONST R10 K6 + 0x7C200400, // 0034 CALL R8 2 + 0xB8261000, // 0035 GETNGBL R9 K8 + 0x8C241309, // 0036 GETMET R9 R9 K9 + 0x5C2C1000, // 0037 MOVE R11 R8 + 0x58300006, // 0038 LDCONST R12 K6 + 0x543600FD, // 0039 LDINT R13 254 + 0x58380006, // 003A LDCONST R14 K6 + 0x543E00FE, // 003B LDINT R15 255 + 0x7C240C00, // 003C CALL R9 6 + 0x8C28090A, // 003D GETMET R10 R4 K10 + 0x60300013, // 003E GETGBL R12 G19 + 0x7C300000, // 003F CALL R12 0 + 0x98322409, // 0040 SETIDX R12 K18 R9 + 0x7C280400, // 0041 CALL R10 2 + 0x8C28010C, // 0042 GETMET R10 R0 K12 + 0x7C280200, // 0043 CALL R10 1 + 0x60280008, // 0044 GETGBL R10 G8 + 0x5C2C1000, // 0045 MOVE R11 R8 + 0x7C280200, // 0046 CALL R10 1 + 0x002A260A, // 0047 ADD R10 K19 R10 + 0x900E1A0A, // 0048 SETMBR R3 K13 R10 + 0x50280200, // 0049 LDBOOL R10 1 0 + 0x80041400, // 004A RET 1 R10 + 0x7002003E, // 004B JMP #008B + 0x54220003, // 004C LDINT R8 4 + 0x1C200E08, // 004D EQ R8 R7 R8 + 0x78220002, // 004E JMPF R8 #0052 + 0x50200200, // 004F LDBOOL R8 1 0 + 0x80041000, // 0050 RET 1 R8 + 0x70020038, // 0051 JMP #008B + 0x54220004, // 0052 LDINT R8 5 + 0x1C200E08, // 0053 EQ R8 R7 R8 + 0x78220002, // 0054 JMPF R8 #0058 + 0x50200200, // 0055 LDBOOL R8 1 0 + 0x80041000, // 0056 RET 1 R8 + 0x70020032, // 0057 JMP #008B + 0x54220005, // 0058 LDINT R8 6 + 0x1C200E08, // 0059 EQ R8 R7 R8 + 0x7822002A, // 005A JMPF R8 #0086 + 0x8C200507, // 005B GETMET R8 R2 K7 + 0x58280006, // 005C LDCONST R10 K6 + 0x7C200400, // 005D CALL R8 2 + 0xB8261000, // 005E GETNGBL R9 K8 + 0x8C241309, // 005F GETMET R9 R9 K9 + 0x5C2C1000, // 0060 MOVE R11 R8 + 0x58300006, // 0061 LDCONST R12 K6 + 0x543600FD, // 0062 LDINT R13 254 + 0x58380006, // 0063 LDCONST R14 K6 + 0x543E0167, // 0064 LDINT R15 360 + 0x7C240C00, // 0065 CALL R9 6 + 0x8C280507, // 0066 GETMET R10 R2 K7 + 0x5830000F, // 0067 LDCONST R12 K15 + 0x7C280400, // 0068 CALL R10 2 + 0xB82E1000, // 0069 GETNGBL R11 K8 + 0x8C2C1709, // 006A GETMET R11 R11 K9 + 0x5C341400, // 006B MOVE R13 R10 + 0x58380006, // 006C LDCONST R14 K6 + 0x543E00FD, // 006D LDINT R15 254 + 0x58400006, // 006E LDCONST R16 K6 + 0x544600FE, // 006F LDINT R17 255 + 0x7C2C0C00, // 0070 CALL R11 6 + 0x8C30090A, // 0071 GETMET R12 R4 K10 + 0x60380013, // 0072 GETGBL R14 G19 + 0x7C380000, // 0073 CALL R14 0 + 0x983A1609, // 0074 SETIDX R14 K11 R9 + 0x983A240B, // 0075 SETIDX R14 K18 R11 + 0x7C300400, // 0076 CALL R12 2 + 0x8C30010C, // 0077 GETMET R12 R0 K12 + 0x7C300200, // 0078 CALL R12 1 + 0x60300008, // 0079 GETGBL R12 G8 + 0x5C341000, // 007A MOVE R13 R8 + 0x7C300200, // 007B CALL R12 1 + 0x00321C0C, // 007C ADD R12 K14 R12 + 0x00301914, // 007D ADD R12 R12 K20 + 0x60340008, // 007E GETGBL R13 G8 + 0x5C381400, // 007F MOVE R14 R10 + 0x7C340200, // 0080 CALL R13 1 + 0x0030180D, // 0081 ADD R12 R12 R13 + 0x900E1A0C, // 0082 SETMBR R3 K13 R12 + 0x50300200, // 0083 LDBOOL R12 1 0 + 0x80041800, // 0084 RET 1 R12 + 0x70020004, // 0085 JMP #008B + 0x54220046, // 0086 LDINT R8 71 + 0x1C200E08, // 0087 EQ R8 R7 R8 + 0x78220001, // 0088 JMPF R8 #008B + 0x50200200, // 0089 LDBOOL R8 1 0 + 0x80041000, // 008A RET 1 R8 + 0x70020008, // 008B JMP #0095 + 0x60200003, // 008C GETGBL R8 G3 + 0x5C240000, // 008D MOVE R9 R0 + 0x7C200200, // 008E CALL R8 1 + 0x8C201115, // 008F GETMET R8 R8 K21 + 0x5C280200, // 0090 MOVE R10 R1 + 0x5C2C0400, // 0091 MOVE R11 R2 + 0x5C300600, // 0092 MOVE R12 R3 + 0x7C200800, // 0093 CALL R8 4 + 0x80041000, // 0094 RET 1 R8 + 0x80000000, // 0095 RET 0 }) ) ); 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 509ff2714..07ce40c5a 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 @@ -6,250 +6,6 @@ extern const bclass be_class_Matter_Plugin_OnOff; -/******************************************************************** -** Solidified function: init -********************************************************************/ -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(ARG), - /* 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 - 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 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: invoke_request -********************************************************************/ -be_local_closure(Matter_Plugin_OnOff_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[13]) { /* constants */ - /* K0 */ be_nested_str_weak(matter), - /* K1 */ be_nested_str_weak(TLV), - /* K2 */ be_nested_str_weak(cluster), - /* K3 */ be_nested_str_weak(command), - /* K4 */ be_const_int(3), - /* K5 */ be_const_int(0), - /* K6 */ be_const_int(1), - /* K7 */ be_nested_str_weak(Matter_TLV_struct), - /* K8 */ be_nested_str_weak(add_TLV), - /* K9 */ be_nested_str_weak(U2), - /* K10 */ be_nested_str_weak(set_onoff), - /* K11 */ be_const_int(2), - /* K12 */ be_nested_str_weak(get_onoff), - }), - be_str_weak(invoke_request), - &be_const_str_solidified, - ( &(const binstruction[119]) { /* code */ - 0xB8120000, // 0000 GETNGBL R4 K0 - 0x88100901, // 0001 GETMBR R4 R4 K1 - 0x88140702, // 0002 GETMBR R5 R3 K2 - 0x88180703, // 0003 GETMBR R6 R3 K3 - 0x1C1C0B04, // 0004 EQ R7 R5 K4 - 0x781E0016, // 0005 JMPF R7 #001D - 0x1C1C0D05, // 0006 EQ R7 R6 K5 - 0x781E0002, // 0007 JMPF R7 #000B - 0x501C0200, // 0008 LDBOOL R7 1 0 - 0x80040E00, // 0009 RET 1 R7 - 0x70020010, // 000A JMP #001C - 0x1C1C0D06, // 000B EQ R7 R6 K6 - 0x781E0009, // 000C JMPF R7 #0017 - 0x8C1C0907, // 000D GETMET R7 R4 K7 - 0x7C1C0200, // 000E CALL R7 1 - 0x8C200F08, // 000F GETMET R8 R7 K8 - 0x58280005, // 0010 LDCONST R10 K5 - 0x882C0909, // 0011 GETMBR R11 R4 K9 - 0x58300005, // 0012 LDCONST R12 K5 - 0x7C200800, // 0013 CALL R8 4 - 0x900E0705, // 0014 SETMBR R3 K3 K5 - 0x80040E00, // 0015 RET 1 R7 - 0x70020004, // 0016 JMP #001C - 0x541E003F, // 0017 LDINT R7 64 - 0x1C1C0C07, // 0018 EQ R7 R6 R7 - 0x781E0001, // 0019 JMPF R7 #001C - 0x501C0200, // 001A LDBOOL R7 1 0 - 0x80040E00, // 001B RET 1 R7 - 0x70020058, // 001C JMP #0076 - 0x541E0003, // 001D LDINT R7 4 - 0x1C1C0A07, // 001E EQ R7 R5 R7 - 0x781E0002, // 001F JMPF R7 #0023 - 0x501C0200, // 0020 LDBOOL R7 1 0 - 0x80040E00, // 0021 RET 1 R7 - 0x70020052, // 0022 JMP #0076 - 0x541E0004, // 0023 LDINT R7 5 - 0x1C1C0A07, // 0024 EQ R7 R5 R7 - 0x781E0002, // 0025 JMPF R7 #0029 - 0x501C0200, // 0026 LDBOOL R7 1 0 - 0x80040E00, // 0027 RET 1 R7 - 0x7002004C, // 0028 JMP #0076 - 0x541E0005, // 0029 LDINT R7 6 - 0x1C1C0A07, // 002A EQ R7 R5 R7 - 0x781E001B, // 002B JMPF R7 #0048 - 0x1C1C0D05, // 002C EQ R7 R6 K5 - 0x781E0005, // 002D JMPF R7 #0034 - 0x8C1C010A, // 002E GETMET R7 R0 K10 - 0x50240000, // 002F LDBOOL R9 0 0 - 0x7C1C0400, // 0030 CALL R7 2 - 0x501C0200, // 0031 LDBOOL R7 1 0 - 0x80040E00, // 0032 RET 1 R7 - 0x70020012, // 0033 JMP #0047 - 0x1C1C0D06, // 0034 EQ R7 R6 K6 - 0x781E0005, // 0035 JMPF R7 #003C - 0x8C1C010A, // 0036 GETMET R7 R0 K10 - 0x50240200, // 0037 LDBOOL R9 1 0 - 0x7C1C0400, // 0038 CALL R7 2 - 0x501C0200, // 0039 LDBOOL R7 1 0 - 0x80040E00, // 003A RET 1 R7 - 0x7002000A, // 003B JMP #0047 - 0x1C1C0D0B, // 003C EQ R7 R6 K11 - 0x781E0008, // 003D JMPF R7 #0047 - 0x8C1C010A, // 003E GETMET R7 R0 K10 - 0x8C24010C, // 003F GETMET R9 R0 K12 - 0x7C240200, // 0040 CALL R9 1 - 0x78260000, // 0041 JMPF R9 #0043 - 0x50240001, // 0042 LDBOOL R9 0 1 - 0x50240200, // 0043 LDBOOL R9 1 0 - 0x7C1C0400, // 0044 CALL R7 2 - 0x501C0200, // 0045 LDBOOL R7 1 0 - 0x80040E00, // 0046 RET 1 R7 - 0x7002002D, // 0047 JMP #0076 - 0x541E0007, // 0048 LDINT R7 8 - 0x1C1C0A07, // 0049 EQ R7 R5 R7 - 0x781E002A, // 004A JMPF R7 #0076 - 0x1C1C0D05, // 004B EQ R7 R6 K5 - 0x781E0002, // 004C JMPF R7 #0050 - 0x501C0200, // 004D LDBOOL R7 1 0 - 0x80040E00, // 004E RET 1 R7 - 0x70020025, // 004F JMP #0076 - 0x1C1C0D06, // 0050 EQ R7 R6 K6 - 0x781E0002, // 0051 JMPF R7 #0055 - 0x501C0200, // 0052 LDBOOL R7 1 0 - 0x80040E00, // 0053 RET 1 R7 - 0x70020020, // 0054 JMP #0076 - 0x1C1C0D0B, // 0055 EQ R7 R6 K11 - 0x781E0002, // 0056 JMPF R7 #005A - 0x501C0200, // 0057 LDBOOL R7 1 0 - 0x80040E00, // 0058 RET 1 R7 - 0x7002001B, // 0059 JMP #0076 - 0x1C1C0D04, // 005A EQ R7 R6 K4 - 0x781E0002, // 005B JMPF R7 #005F - 0x501C0200, // 005C LDBOOL R7 1 0 - 0x80040E00, // 005D RET 1 R7 - 0x70020016, // 005E JMP #0076 - 0x541E0003, // 005F LDINT R7 4 - 0x1C1C0C07, // 0060 EQ R7 R6 R7 - 0x781E0002, // 0061 JMPF R7 #0065 - 0x501C0200, // 0062 LDBOOL R7 1 0 - 0x80040E00, // 0063 RET 1 R7 - 0x70020010, // 0064 JMP #0076 - 0x541E0004, // 0065 LDINT R7 5 - 0x1C1C0C07, // 0066 EQ R7 R6 R7 - 0x781E0002, // 0067 JMPF R7 #006B - 0x501C0200, // 0068 LDBOOL R7 1 0 - 0x80040E00, // 0069 RET 1 R7 - 0x7002000A, // 006A JMP #0076 - 0x541E0005, // 006B LDINT R7 6 - 0x1C1C0C07, // 006C EQ R7 R6 R7 - 0x781E0002, // 006D JMPF R7 #0071 - 0x501C0200, // 006E LDBOOL R7 1 0 - 0x80040E00, // 006F RET 1 R7 - 0x70020004, // 0070 JMP #0076 - 0x541E0006, // 0071 LDINT R7 7 - 0x1C1C0C07, // 0072 EQ R7 R6 R7 - 0x781E0001, // 0073 JMPF R7 #0076 - 0x501C0200, // 0074 LDBOOL R7 1 0 - 0x80040E00, // 0075 RET 1 R7 - 0x80000000, // 0076 RET 0 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** 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 - 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: ********************************************************************/ @@ -278,11 +34,138 @@ be_local_closure(Matter_Plugin_OnOff__X3Clambda_X3E, /* name */ /******************************************************************** -** Solidified function: get_onoff +** Solidified function: invoke_request ********************************************************************/ -be_local_closure(Matter_Plugin_OnOff_get_onoff, /* name */ +be_local_closure(Matter_Plugin_OnOff_invoke_request, /* name */ be_nested_proto( - 5, /* nstack */ + 10, /* 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(matter), + /* K1 */ be_nested_str_weak(TLV), + /* K2 */ be_nested_str_weak(cluster), + /* K3 */ be_nested_str_weak(command), + /* K4 */ be_nested_str_weak(update_shadow_lazy), + /* K5 */ be_const_int(0), + /* K6 */ be_nested_str_weak(set_onoff), + /* K7 */ be_nested_str_weak(update_shadow), + /* K8 */ be_const_int(1), + /* K9 */ be_const_int(2), + /* K10 */ be_nested_str_weak(shadow_onoff), + }), + be_str_weak(invoke_request), + &be_const_str_solidified, + ( &(const binstruction[42]) { /* code */ + 0xB8120000, // 0000 GETNGBL R4 K0 + 0x88100901, // 0001 GETMBR R4 R4 K1 + 0x88140702, // 0002 GETMBR R5 R3 K2 + 0x88180703, // 0003 GETMBR R6 R3 K3 + 0x541E0005, // 0004 LDINT R7 6 + 0x1C1C0A07, // 0005 EQ R7 R5 R7 + 0x781E0021, // 0006 JMPF R7 #0029 + 0x8C1C0104, // 0007 GETMET R7 R0 K4 + 0x7C1C0200, // 0008 CALL R7 1 + 0x1C1C0D05, // 0009 EQ R7 R6 K5 + 0x781E0007, // 000A JMPF R7 #0013 + 0x8C1C0106, // 000B GETMET R7 R0 K6 + 0x50240000, // 000C LDBOOL R9 0 0 + 0x7C1C0400, // 000D CALL R7 2 + 0x8C1C0107, // 000E GETMET R7 R0 K7 + 0x7C1C0200, // 000F CALL R7 1 + 0x501C0200, // 0010 LDBOOL R7 1 0 + 0x80040E00, // 0011 RET 1 R7 + 0x70020015, // 0012 JMP #0029 + 0x1C1C0D08, // 0013 EQ R7 R6 K8 + 0x781E0007, // 0014 JMPF R7 #001D + 0x8C1C0106, // 0015 GETMET R7 R0 K6 + 0x50240200, // 0016 LDBOOL R9 1 0 + 0x7C1C0400, // 0017 CALL R7 2 + 0x8C1C0107, // 0018 GETMET R7 R0 K7 + 0x7C1C0200, // 0019 CALL R7 1 + 0x501C0200, // 001A LDBOOL R7 1 0 + 0x80040E00, // 001B RET 1 R7 + 0x7002000B, // 001C JMP #0029 + 0x1C1C0D09, // 001D EQ R7 R6 K9 + 0x781E0009, // 001E JMPF R7 #0029 + 0x8C1C0106, // 001F GETMET R7 R0 K6 + 0x8824010A, // 0020 GETMBR R9 R0 K10 + 0x78260000, // 0021 JMPF R9 #0023 + 0x50240001, // 0022 LDBOOL R9 0 1 + 0x50240200, // 0023 LDBOOL R9 1 0 + 0x7C1C0400, // 0024 CALL R7 2 + 0x8C1C0107, // 0025 GETMET R7 R0 K7 + 0x7C1C0200, // 0026 CALL R7 1 + 0x501C0200, // 0027 LDBOOL R7 1 0 + 0x80040E00, // 0028 RET 1 R7 + 0x80000000, // 0029 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: init +********************************************************************/ +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(shadow_onoff), + /* K2 */ be_nested_str_weak(tasmota_relay_index), + /* K3 */ be_nested_str_weak(find), + /* K4 */ be_nested_str_weak(ARG), + /* 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 + 0x50100000, // 0008 LDBOOL R4 0 0 + 0x90020204, // 0009 SETMBR R0 K1 R4 + 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 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: update_shadow +********************************************************************/ +be_local_closure(Matter_Plugin_OnOff_update_shadow, /* name */ + be_nested_proto( + 6, /* nstack */ 1, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -290,14 +173,16 @@ be_local_closure(Matter_Plugin_OnOff_get_onoff, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ + ( &(const bvalue[ 7]) { /* 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), + /* K4 */ be_nested_str_weak(attribute_updated), + /* K5 */ be_const_int(0), + /* K6 */ be_nested_str_weak(update_shadow), }), - be_str_weak(get_onoff), + be_str_weak(update_shadow), &be_const_str_solidified, ( &(const binstruction[28]) { /* code */ 0xB8060000, // 0000 GETNGBL R1 K0 @@ -306,28 +191,28 @@ be_local_closure(Matter_Plugin_OnOff_get_onoff, /* name */ 0x7C040400, // 0003 CALL R1 2 0x4C080000, // 0004 LDNIL R2 0x20080202, // 0005 NE R2 R1 R2 - 0x780A000C, // 0006 JMPF R2 #0014 + 0x780A000E, // 0006 JMPF R2 #0016 0x88080103, // 0007 GETMBR R2 R0 K3 0x4C0C0000, // 0008 LDNIL R3 0x20080403, // 0009 NE R2 R2 R3 - 0x780A0007, // 000A JMPF R2 #0013 + 0x780A0009, // 000A JMPF R2 #0015 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 + 0x780A0003, // 0010 JMPF R2 #0015 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 + 0x54120005, // 0012 LDINT R4 6 + 0x58140005, // 0013 LDCONST R5 K5 + 0x7C080600, // 0014 CALL R2 3 + 0x90020601, // 0015 SETMBR R0 K3 R1 + 0x60080003, // 0016 GETGBL R2 G3 + 0x5C0C0000, // 0017 MOVE R3 R0 + 0x7C080200, // 0018 CALL R2 1 + 0x8C080506, // 0019 GETMET R2 R2 K6 + 0x7C080200, // 001A CALL R2 1 + 0x80000000, // 001B RET 0 }) ) ); @@ -335,27 +220,37 @@ be_local_closure(Matter_Plugin_OnOff_get_onoff, /* name */ /******************************************************************** -** Solidified function: every_second +** Solidified function: set_onoff ********************************************************************/ -be_local_closure(Matter_Plugin_OnOff_every_second, /* name */ +be_local_closure(Matter_Plugin_OnOff_set_onoff, /* name */ be_nested_proto( - 3, /* nstack */ - 1, /* argc */ + 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[ 1]) { /* constants */ - /* K0 */ be_nested_str_weak(get_onoff), + ( &(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(update_shadow), }), - be_str_weak(every_second), + be_str_weak(set_onoff), &be_const_str_solidified, - ( &(const binstruction[ 3]) { /* code */ - 0x8C040100, // 0000 GETMET R1 R0 K0 - 0x7C040200, // 0001 CALL R1 1 - 0x80000000, // 0002 RET 0 + ( &(const binstruction[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 }) ) ); @@ -367,7 +262,7 @@ be_local_closure(Matter_Plugin_OnOff_every_second, /* name */ ********************************************************************/ be_local_closure(Matter_Plugin_OnOff_read_attribute, /* name */ be_nested_proto( - 12, /* nstack */ + 11, /* nstack */ 3, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -375,232 +270,68 @@ be_local_closure(Matter_Plugin_OnOff_read_attribute, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[15]) { /* constants */ + ( &(const bvalue[12]) { /* 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(3), + /* K5 */ be_nested_str_weak(update_shadow_lazy), /* K6 */ be_const_int(0), /* K7 */ be_nested_str_weak(create_TLV), - /* K8 */ be_nested_str_weak(U2), - /* K9 */ be_const_int(1), - /* K10 */ be_nested_str_weak(U1), - /* K11 */ be_nested_str_weak(U4), - /* K12 */ be_nested_str_weak(BOOL), - /* K13 */ be_nested_str_weak(get_onoff), - /* K14 */ be_nested_str_weak(read_attribute), + /* K8 */ be_nested_str_weak(BOOL), + /* K9 */ be_nested_str_weak(shadow_onoff), + /* K10 */ be_nested_str_weak(U4), + /* K11 */ be_nested_str_weak(read_attribute), }), be_str_weak(read_attribute), &be_const_str_solidified, - ( &(const binstruction[174]) { /* code */ + ( &(const binstruction[45]) { /* 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 - 0x1C1C0B05, // 0005 EQ R7 R5 K5 - 0x781E0021, // 0006 JMPF R7 #0029 - 0x1C1C0D06, // 0007 EQ R7 R6 K6 - 0x781E0005, // 0008 JMPF R7 #000F - 0x8C1C0907, // 0009 GETMET R7 R4 K7 - 0x88240908, // 000A GETMBR R9 R4 K8 - 0x58280006, // 000B LDCONST R10 K6 - 0x7C1C0600, // 000C CALL R7 3 - 0x80040E00, // 000D RET 1 R7 - 0x70020018, // 000E JMP #0028 - 0x1C1C0D09, // 000F EQ R7 R6 K9 - 0x781E0005, // 0010 JMPF R7 #0017 - 0x8C1C0907, // 0011 GETMET R7 R4 K7 - 0x8824090A, // 0012 GETMBR R9 R4 K10 - 0x58280006, // 0013 LDCONST R10 K6 - 0x7C1C0600, // 0014 CALL R7 3 - 0x80040E00, // 0015 RET 1 R7 - 0x70020010, // 0016 JMP #0028 - 0x541EFFFB, // 0017 LDINT R7 65532 - 0x1C1C0C07, // 0018 EQ R7 R6 R7 - 0x781E0005, // 0019 JMPF R7 #0020 - 0x8C1C0907, // 001A GETMET R7 R4 K7 - 0x8824090B, // 001B GETMBR R9 R4 K11 - 0x58280006, // 001C LDCONST R10 K6 - 0x7C1C0600, // 001D CALL R7 3 - 0x80040E00, // 001E RET 1 R7 - 0x70020007, // 001F JMP #0028 - 0x541EFFFC, // 0020 LDINT R7 65533 - 0x1C1C0C07, // 0021 EQ R7 R6 R7 - 0x781E0004, // 0022 JMPF R7 #0028 - 0x8C1C0907, // 0023 GETMET R7 R4 K7 - 0x8824090B, // 0024 GETMBR R9 R4 K11 - 0x542A0003, // 0025 LDINT R10 4 - 0x7C1C0600, // 0026 CALL R7 3 - 0x80040E00, // 0027 RET 1 R7 - 0x70020083, // 0028 JMP #00AD - 0x541E0003, // 0029 LDINT R7 4 - 0x1C1C0A07, // 002A EQ R7 R5 R7 - 0x781E0016, // 002B JMPF R7 #0043 - 0x1C1C0D06, // 002C EQ R7 R6 K6 - 0x781E0002, // 002D JMPF R7 #0031 - 0x4C1C0000, // 002E LDNIL R7 - 0x80040E00, // 002F RET 1 R7 - 0x70020010, // 0030 JMP #0042 - 0x541EFFFB, // 0031 LDINT R7 65532 - 0x1C1C0C07, // 0032 EQ R7 R6 R7 - 0x781E0005, // 0033 JMPF R7 #003A - 0x8C1C0907, // 0034 GETMET R7 R4 K7 - 0x8824090B, // 0035 GETMBR R9 R4 K11 - 0x58280006, // 0036 LDCONST R10 K6 - 0x7C1C0600, // 0037 CALL R7 3 - 0x80040E00, // 0038 RET 1 R7 - 0x70020007, // 0039 JMP #0042 - 0x541EFFFC, // 003A LDINT R7 65533 - 0x1C1C0C07, // 003B EQ R7 R6 R7 - 0x781E0004, // 003C JMPF R7 #0042 - 0x8C1C0907, // 003D GETMET R7 R4 K7 - 0x8824090B, // 003E GETMBR R9 R4 K11 - 0x542A0003, // 003F LDINT R10 4 - 0x7C1C0600, // 0040 CALL R7 3 - 0x80040E00, // 0041 RET 1 R7 - 0x70020069, // 0042 JMP #00AD - 0x541E0004, // 0043 LDINT R7 5 - 0x1C1C0A07, // 0044 EQ R7 R5 R7 - 0x781E0011, // 0045 JMPF R7 #0058 - 0x541EFFFB, // 0046 LDINT R7 65532 - 0x1C1C0C07, // 0047 EQ R7 R6 R7 - 0x781E0005, // 0048 JMPF R7 #004F - 0x8C1C0907, // 0049 GETMET R7 R4 K7 - 0x8824090B, // 004A GETMBR R9 R4 K11 - 0x58280006, // 004B LDCONST R10 K6 - 0x7C1C0600, // 004C CALL R7 3 - 0x80040E00, // 004D RET 1 R7 - 0x70020007, // 004E JMP #0057 - 0x541EFFFC, // 004F LDINT R7 65533 - 0x1C1C0C07, // 0050 EQ R7 R6 R7 - 0x781E0004, // 0051 JMPF R7 #0057 - 0x8C1C0907, // 0052 GETMET R7 R4 K7 - 0x8824090B, // 0053 GETMBR R9 R4 K11 - 0x542A0003, // 0054 LDINT R10 4 - 0x7C1C0600, // 0055 CALL R7 3 - 0x80040E00, // 0056 RET 1 R7 - 0x70020054, // 0057 JMP #00AD - 0x541E0005, // 0058 LDINT R7 6 - 0x1C1C0A07, // 0059 EQ R7 R5 R7 - 0x781E001A, // 005A JMPF R7 #0076 - 0x1C1C0D06, // 005B EQ R7 R6 K6 - 0x781E0006, // 005C JMPF R7 #0064 - 0x8C1C0907, // 005D GETMET R7 R4 K7 - 0x8824090C, // 005E GETMBR R9 R4 K12 - 0x8C28010D, // 005F GETMET R10 R0 K13 - 0x7C280200, // 0060 CALL R10 1 - 0x7C1C0600, // 0061 CALL R7 3 - 0x80040E00, // 0062 RET 1 R7 - 0x70020010, // 0063 JMP #0075 - 0x541EFFFB, // 0064 LDINT R7 65532 - 0x1C1C0C07, // 0065 EQ R7 R6 R7 - 0x781E0005, // 0066 JMPF R7 #006D - 0x8C1C0907, // 0067 GETMET R7 R4 K7 - 0x8824090B, // 0068 GETMBR R9 R4 K11 - 0x58280006, // 0069 LDCONST R10 K6 - 0x7C1C0600, // 006A CALL R7 3 - 0x80040E00, // 006B RET 1 R7 - 0x70020007, // 006C JMP #0075 - 0x541EFFFC, // 006D LDINT R7 65533 - 0x1C1C0C07, // 006E EQ R7 R6 R7 - 0x781E0004, // 006F JMPF R7 #0075 - 0x8C1C0907, // 0070 GETMET R7 R4 K7 - 0x8824090B, // 0071 GETMBR R9 R4 K11 - 0x542A0003, // 0072 LDINT R10 4 - 0x7C1C0600, // 0073 CALL R7 3 - 0x80040E00, // 0074 RET 1 R7 - 0x70020036, // 0075 JMP #00AD - 0x541E0007, // 0076 LDINT R7 8 - 0x1C1C0A07, // 0077 EQ R7 R5 R7 - 0x781E002B, // 0078 JMPF R7 #00A5 - 0x1C1C0D06, // 0079 EQ R7 R6 K6 - 0x781E0005, // 007A JMPF R7 #0081 - 0x8C1C0907, // 007B GETMET R7 R4 K7 - 0x8824090A, // 007C GETMBR R9 R4 K10 - 0x542A0087, // 007D LDINT R10 136 - 0x7C1C0600, // 007E CALL R7 3 - 0x80040E00, // 007F RET 1 R7 - 0x70020022, // 0080 JMP #00A4 - 0x541E000E, // 0081 LDINT R7 15 - 0x1C1C0C07, // 0082 EQ R7 R6 R7 - 0x781E0005, // 0083 JMPF R7 #008A - 0x8C1C0907, // 0084 GETMET R7 R4 K7 - 0x8824090A, // 0085 GETMBR R9 R4 K10 - 0x58280006, // 0086 LDCONST R10 K6 - 0x7C1C0600, // 0087 CALL R7 3 - 0x80040E00, // 0088 RET 1 R7 - 0x70020019, // 0089 JMP #00A4 - 0x541E000F, // 008A LDINT R7 16 - 0x1C1C0C07, // 008B EQ R7 R6 R7 - 0x781E0005, // 008C JMPF R7 #0093 - 0x8C1C0907, // 008D GETMET R7 R4 K7 - 0x8824090A, // 008E GETMBR R9 R4 K10 - 0x58280009, // 008F LDCONST R10 K9 - 0x7C1C0600, // 0090 CALL R7 3 - 0x80040E00, // 0091 RET 1 R7 - 0x70020010, // 0092 JMP #00A4 - 0x541EFFFB, // 0093 LDINT R7 65532 - 0x1C1C0C07, // 0094 EQ R7 R6 R7 - 0x781E0005, // 0095 JMPF R7 #009C - 0x8C1C0907, // 0096 GETMET R7 R4 K7 - 0x8824090B, // 0097 GETMBR R9 R4 K11 - 0x58280006, // 0098 LDCONST R10 K6 - 0x7C1C0600, // 0099 CALL R7 3 - 0x80040E00, // 009A RET 1 R7 - 0x70020007, // 009B JMP #00A4 - 0x541EFFFC, // 009C LDINT R7 65533 - 0x1C1C0C07, // 009D EQ R7 R6 R7 - 0x781E0004, // 009E JMPF R7 #00A4 - 0x8C1C0907, // 009F GETMET R7 R4 K7 - 0x8824090B, // 00A0 GETMBR R9 R4 K11 - 0x542A0003, // 00A1 LDINT R10 4 - 0x7C1C0600, // 00A2 CALL R7 3 - 0x80040E00, // 00A3 RET 1 R7 - 0x70020007, // 00A4 JMP #00AD - 0x601C0003, // 00A5 GETGBL R7 G3 - 0x5C200000, // 00A6 MOVE R8 R0 - 0x7C1C0200, // 00A7 CALL R7 1 - 0x8C1C0F0E, // 00A8 GETMET R7 R7 K14 - 0x5C240200, // 00A9 MOVE R9 R1 - 0x5C280400, // 00AA MOVE R10 R2 - 0x7C1C0600, // 00AB CALL R7 3 - 0x80040E00, // 00AC RET 1 R7 - 0x80000000, // 00AD 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 + 0x541E0005, // 0005 LDINT R7 6 + 0x1C1C0A07, // 0006 EQ R7 R5 R7 + 0x781E001B, // 0007 JMPF R7 #0024 + 0x8C1C0105, // 0008 GETMET R7 R0 K5 + 0x7C1C0200, // 0009 CALL R7 1 + 0x1C1C0D06, // 000A EQ R7 R6 K6 + 0x781E0005, // 000B JMPF R7 #0012 + 0x8C1C0907, // 000C GETMET R7 R4 K7 + 0x88240908, // 000D GETMBR R9 R4 K8 + 0x88280109, // 000E GETMBR R10 R0 K9 + 0x7C1C0600, // 000F CALL R7 3 + 0x80040E00, // 0010 RET 1 R7 + 0x70020010, // 0011 JMP #0023 + 0x541EFFFB, // 0012 LDINT R7 65532 + 0x1C1C0C07, // 0013 EQ R7 R6 R7 + 0x781E0005, // 0014 JMPF R7 #001B + 0x8C1C0907, // 0015 GETMET R7 R4 K7 + 0x8824090A, // 0016 GETMBR R9 R4 K10 + 0x58280006, // 0017 LDCONST R10 K6 + 0x7C1C0600, // 0018 CALL R7 3 + 0x80040E00, // 0019 RET 1 R7 + 0x70020007, // 001A JMP #0023 + 0x541EFFFC, // 001B LDINT R7 65533 + 0x1C1C0C07, // 001C EQ R7 R6 R7 + 0x781E0004, // 001D JMPF R7 #0023 + 0x8C1C0907, // 001E GETMET R7 R4 K7 + 0x8824090A, // 001F GETMBR R9 R4 K10 + 0x542A0003, // 0020 LDINT R10 4 + 0x7C1C0600, // 0021 CALL R7 3 + 0x80040E00, // 0022 RET 1 R7 + 0x70020007, // 0023 JMP #002C + 0x601C0003, // 0024 GETGBL R7 G3 + 0x5C200000, // 0025 MOVE R8 R0 + 0x7C1C0200, // 0026 CALL R7 1 + 0x8C1C0F0B, // 0027 GETMET R7 R7 K11 + 0x5C240200, // 0028 MOVE R9 R1 + 0x5C280400, // 0029 MOVE R10 R2 + 0x7C1C0600, // 002A CALL R7 3 + 0x80040E00, // 002B RET 1 R7 + 0x80000000, // 002C RET 0 }) ) ); @@ -610,45 +341,25 @@ be_local_closure(Matter_Plugin_OnOff_onoff_changed, /* name */ /******************************************************************** ** Solidified class: Matter_Plugin_OnOff ********************************************************************/ -extern const bclass be_class_Matter_Plugin; +extern const bclass be_class_Matter_Plugin_Device; be_local_class(Matter_Plugin_OnOff, 2, - &be_class_Matter_Plugin, - be_nested_map(15, + &be_class_Matter_Plugin_Device, + be_nested_map(13, ( (struct bmapnode*) &(const bmapnode[]) { - { 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_key_weak(ARG, 4), be_nested_str_weak(relay) }, + { 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(ARG_TYPE, -1), be_const_static_closure(Matter_Plugin_OnOff__X3Clambda_X3E_closure) }, + { be_const_key_weak(shadow_onoff, -1), be_const_var(1) }, + { 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(update_shadow, -1), be_const_closure(Matter_Plugin_OnOff_update_shadow_closure) }, + { be_const_key_weak(read_attribute, -1), be_const_closure(Matter_Plugin_OnOff_read_attribute_closure) }, + { be_const_key_weak(NAME, -1), be_nested_str_weak(Relay) }, + { 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(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(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, { - be_const_list( * be_nested_list(3, - ( (struct bvalue*) &(const bvalue[]) { - be_const_int(0), - be_const_int(65532), - be_const_int(65533), - })) ) } )) }, - { be_const_key_int(5, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { - be_const_list( * be_nested_list(8, - ( (struct bvalue*) &(const bvalue[]) { - be_const_int(0), - be_const_int(1), - be_const_int(2), - be_const_int(3), - be_const_int(4), - be_const_int(5), - be_const_int(65532), - be_const_int(65533), - })) ) } )) }, { be_const_key_int(6, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { be_const_list( * be_nested_list(3, ( (struct bvalue*) &(const bvalue[]) { @@ -656,22 +367,13 @@ be_local_class(Matter_Plugin_OnOff, be_const_int(65532), be_const_int(65533), })) ) } )) }, - { be_const_key_int(3, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { - be_const_list( * be_nested_list(4, - ( (struct bvalue*) &(const bvalue[]) { - be_const_int(0), - be_const_int(1), - be_const_int(65532), - be_const_int(65533), })) ) } )) }, + { be_const_key_weak(set_onoff, 8), 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 05e8ec97d..2e52225b9 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 @@ -45,7 +45,7 @@ be_local_closure(Matter_Plugin_Root_init, /* name */ ********************************************************************/ be_local_closure(Matter_Plugin_Root_write_attribute, /* name */ be_nested_proto( - 13, /* nstack */ + 12, /* nstack */ 4, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -53,7 +53,7 @@ be_local_closure(Matter_Plugin_Root_write_attribute, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[15]) { /* constants */ + ( &(const bvalue[14]) { /* constants */ /* K0 */ be_nested_str_weak(string), /* K1 */ be_nested_str_weak(matter), /* K2 */ be_nested_str_weak(TLV), @@ -64,15 +64,14 @@ be_local_closure(Matter_Plugin_Root_write_attribute, /* name */ /* 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), + /* K10 */ be_nested_str_weak(status), + /* K11 */ be_nested_str_weak(CONSTRAINT_ERROR), + /* K12 */ be_const_int(1), + /* K13 */ be_nested_str_weak(INVALID_ACTION), }), be_str_weak(write_attribute), &be_const_str_solidified, - ( &(const binstruction[102]) { /* code */ + ( &(const binstruction[101]) { /* code */ 0xA4120000, // 0000 IMPORT R4 K0 0xB8160200, // 0001 GETNGBL R5 K1 0x88140B02, // 0002 GETMBR R5 R5 K2 @@ -80,9 +79,9 @@ be_local_closure(Matter_Plugin_Root_write_attribute, /* name */ 0x881C0504, // 0004 GETMBR R7 R2 K4 0x5422002F, // 0005 LDINT R8 48 0x1C200C08, // 0006 EQ R8 R6 R8 - 0x7822001A, // 0007 JMPF R8 #0023 + 0x78220019, // 0007 JMPF R8 #0022 0x1C200F05, // 0008 EQ R8 R7 K5 - 0x78220017, // 0009 JMPF R8 #0022 + 0x78220016, // 0009 JMPF R8 #0021 0x60200004, // 000A GETGBL R8 G4 0x5C240600, // 000B MOVE R9 R3 0x7C200200, // 000C CALL R8 1 @@ -92,89 +91,88 @@ be_local_closure(Matter_Plugin_Root_write_attribute, /* name */ 0x5C240600, // 0010 MOVE R9 R3 0xB82A0E00, // 0011 GETNGBL R10 K7 0x7C200400, // 0012 CALL R8 2 - 0x78220008, // 0013 JMPF R8 #001D + 0x78220007, // 0013 JMPF R8 #001C 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 + 0x88280503, // 0016 GETMBR R10 R2 K3 + 0x882C0504, // 0017 GETMBR R11 R2 K4 + 0x7C200600, // 0018 CALL R8 3 + 0x50200200, // 0019 LDBOOL R8 1 0 + 0x80041000, // 001A RET 1 R8 + 0x70020004, // 001B JMP #0021 + 0xB8220200, // 001C GETNGBL R8 K1 + 0x8820110B, // 001D GETMBR R8 R8 K11 + 0x900A1408, // 001E SETMBR R2 K10 R8 + 0x50200000, // 001F LDBOOL R8 0 0 + 0x80041000, // 0020 RET 1 R8 + 0x70020041, // 0021 JMP #0064 + 0x5422001E, // 0022 LDINT R8 31 + 0x1C200C08, // 0023 EQ R8 R6 R8 + 0x78220004, // 0024 JMPF R8 #002A + 0x1C200F05, // 0025 EQ R8 R7 K5 + 0x78220001, // 0026 JMPF R8 #0029 + 0x50200200, // 0027 LDBOOL R8 1 0 + 0x80041000, // 0028 RET 1 R8 + 0x70020039, // 0029 JMP #0064 + 0x54220027, // 002A LDINT R8 40 + 0x1C200C08, // 002B EQ R8 R6 R8 + 0x7822000B, // 002C JMPF R8 #0039 + 0x54220004, // 002D LDINT R8 5 + 0x1C200E08, // 002E EQ R8 R7 R8 + 0x78220002, // 002F JMPF R8 #0033 + 0x50200200, // 0030 LDBOOL R8 1 0 + 0x80041000, // 0031 RET 1 R8 + 0x70020004, // 0032 JMP #0038 + 0x54220005, // 0033 LDINT R8 6 + 0x1C200E08, // 0034 EQ R8 R7 R8 + 0x78220001, // 0035 JMPF R8 #0038 + 0x50200200, // 0036 LDBOOL R8 1 0 + 0x80041000, // 0037 RET 1 R8 + 0x7002002A, // 0038 JMP #0064 + 0x54220029, // 0039 LDINT R8 42 + 0x1C200C08, // 003A EQ R8 R6 R8 + 0x78220004, // 003B JMPF R8 #0041 + 0x1C200F05, // 003C EQ R8 R7 K5 + 0x78220001, // 003D JMPF R8 #0040 + 0x50200200, // 003E LDBOOL R8 1 0 + 0x80041000, // 003F RET 1 R8 + 0x70020022, // 0040 JMP #0064 + 0x5422002A, // 0041 LDINT R8 43 + 0x1C200C08, // 0042 EQ R8 R6 R8 + 0x78220007, // 0043 JMPF R8 #004C + 0x1C200F05, // 0044 EQ R8 R7 K5 + 0x78220004, // 0045 JMPF R8 #004B + 0xB8220200, // 0046 GETNGBL R8 K1 + 0x8820110B, // 0047 GETMBR R8 R8 K11 + 0x900A1408, // 0048 SETMBR R2 K10 R8 + 0x50200000, // 0049 LDBOOL R8 0 0 + 0x80041000, // 004A RET 1 R8 + 0x70020017, // 004B JMP #0064 + 0x5422002B, // 004C LDINT R8 44 + 0x1C200C08, // 004D EQ R8 R6 R8 + 0x78220009, // 004E JMPF R8 #0059 + 0x1C200F05, // 004F EQ R8 R7 K5 + 0x78220002, // 0050 JMPF R8 #0054 + 0x50200200, // 0051 LDBOOL R8 1 0 + 0x80041000, // 0052 RET 1 R8 + 0x70020003, // 0053 JMP #0058 + 0x1C200F0C, // 0054 EQ R8 R7 K12 + 0x78220001, // 0055 JMPF R8 #0058 + 0x50200200, // 0056 LDBOOL R8 1 0 + 0x80041000, // 0057 RET 1 R8 + 0x7002000A, // 0058 JMP #0064 + 0x54220030, // 0059 LDINT R8 49 + 0x1C200C08, // 005A EQ R8 R6 R8 + 0x78220007, // 005B JMPF R8 #0064 + 0x54220003, // 005C LDINT R8 4 + 0x1C200E08, // 005D EQ R8 R7 R8 + 0x78220004, // 005E JMPF R8 #0064 + 0xB8220200, // 005F GETNGBL R8 K1 + 0x8820110D, // 0060 GETMBR R8 R8 K13 + 0x900A1408, // 0061 SETMBR R2 K10 R8 + 0x50200000, // 0062 LDBOOL R8 0 0 + 0x80041000, // 0063 RET 1 R8 + 0x80000000, // 0064 RET 0 }) ) ); 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 f91cef2c8..53e80ddfa 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 @@ -101,7 +101,7 @@ be_local_closure(Matter_Plugin_Sensor_parse_sensors, /* name */ /* K1 */ be_nested_str_weak(pre_value), /* K2 */ be_nested_str_weak(match), /* K3 */ be_nested_str_weak(shadow_value), - /* K4 */ be_nested_str_weak(valued_changed), + /* K4 */ be_nested_str_weak(value_changed), }), be_str_weak(parse_sensors), &be_const_str_solidified, @@ -134,9 +134,9 @@ be_local_closure(Matter_Plugin_Sensor_parse_sensors, /* name */ /******************************************************************** -** Solidified function: valued_changed +** Solidified function: value_changed ********************************************************************/ -be_local_closure(Matter_Plugin_Sensor_valued_changed, /* name */ +be_local_closure(Matter_Plugin_Sensor_value_changed, /* name */ be_nested_proto( 2, /* nstack */ 2, /* argc */ @@ -147,7 +147,7 @@ be_local_closure(Matter_Plugin_Sensor_valued_changed, /* name */ NULL, /* no sub protos */ 0, /* has constants */ NULL, /* no const */ - be_str_weak(valued_changed), + be_str_weak(value_changed), &be_const_str_solidified, ( &(const binstruction[ 1]) { /* code */ 0x80000000, // 0000 RET 0 @@ -171,7 +171,7 @@ be_local_class(Matter_Plugin_Sensor, { 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(value_changed, -1), be_const_closure(Matter_Plugin_Sensor_value_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) }, })), 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 57146e067..995146e41 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 @@ -145,11 +145,11 @@ be_local_closure(Matter_Plugin_Sensor_Humidity_pre_value, /* name */ /******************************************************************** -** Solidified function: valued_changed +** Solidified function: value_changed ********************************************************************/ -be_local_closure(Matter_Plugin_Sensor_Humidity_valued_changed, /* name */ +be_local_closure(Matter_Plugin_Sensor_Humidity_value_changed, /* name */ be_nested_proto( - 7, /* nstack */ + 6, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -161,15 +161,14 @@ be_local_closure(Matter_Plugin_Sensor_Humidity_valued_changed, /* name */ /* K0 */ be_nested_str_weak(attribute_updated), /* K1 */ be_const_int(0), }), - be_str_weak(valued_changed), + be_str_weak(value_changed), &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ + ( &(const binstruction[ 5]) { /* 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 + 0x54120404, // 0001 LDINT R4 1029 + 0x58140001, // 0002 LDCONST R5 K1 + 0x7C080600, // 0003 CALL R2 3 + 0x80000000, // 0004 RET 0 }) ) ); @@ -186,7 +185,7 @@ be_local_class(Matter_Plugin_Sensor_Humidity, be_nested_map(7, ( (struct bmapnode*) &(const bmapnode[]) { { 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(pre_value, 4), 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[]) { @@ -200,14 +199,14 @@ be_local_class(Matter_Plugin_Sensor_Humidity, be_const_int(65533), })) ) } )) }, })) ) } )) }, - { be_const_key_weak(TYPES, 4), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + { be_const_key_weak(TYPE, 6), be_nested_str_weak(humidity) }, + { be_const_key_weak(NAME, -1), be_nested_str_weak(Humidity) }, + { be_const_key_weak(value_changed, -1), be_const_closure(Matter_Plugin_Sensor_Humidity_value_changed_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(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 1ac6a351d..13650c269 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 @@ -144,11 +144,11 @@ be_local_closure(Matter_Plugin_Sensor_Illuminance_pre_value, /* name */ /******************************************************************** -** Solidified function: valued_changed +** Solidified function: value_changed ********************************************************************/ -be_local_closure(Matter_Plugin_Sensor_Illuminance_valued_changed, /* name */ +be_local_closure(Matter_Plugin_Sensor_Illuminance_value_changed, /* name */ be_nested_proto( - 7, /* nstack */ + 6, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -160,15 +160,14 @@ be_local_closure(Matter_Plugin_Sensor_Illuminance_valued_changed, /* name */ /* K0 */ be_nested_str_weak(attribute_updated), /* K1 */ be_const_int(0), }), - be_str_weak(valued_changed), + be_str_weak(value_changed), &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ + ( &(const binstruction[ 5]) { /* 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 + 0x541203FF, // 0001 LDINT R4 1024 + 0x58140001, // 0002 LDCONST R5 K1 + 0x7C080600, // 0003 CALL R2 3 + 0x80000000, // 0004 RET 0 }) ) ); @@ -185,7 +184,7 @@ be_local_class(Matter_Plugin_Sensor_Illuminance, be_nested_map(7, ( (struct bmapnode*) &(const bmapnode[]) { { 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(pre_value, 4), 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[]) { @@ -199,14 +198,14 @@ be_local_class(Matter_Plugin_Sensor_Illuminance, be_const_int(65533), })) ) } )) }, })) ) } )) }, - { be_const_key_weak(TYPES, 4), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + { be_const_key_weak(TYPE, 6), be_nested_str_weak(illuminance) }, + { be_const_key_weak(NAME, -1), be_nested_str_weak(Illuminance) }, + { be_const_key_weak(value_changed, -1), be_const_closure(Matter_Plugin_Sensor_Illuminance_value_changed_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(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 d0e8aa69d..c36f76084 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 @@ -144,11 +144,11 @@ be_local_closure(Matter_Plugin_Sensor_Pressure_pre_value, /* name */ /******************************************************************** -** Solidified function: valued_changed +** Solidified function: value_changed ********************************************************************/ -be_local_closure(Matter_Plugin_Sensor_Pressure_valued_changed, /* name */ +be_local_closure(Matter_Plugin_Sensor_Pressure_value_changed, /* name */ be_nested_proto( - 7, /* nstack */ + 6, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -160,15 +160,14 @@ be_local_closure(Matter_Plugin_Sensor_Pressure_valued_changed, /* name */ /* K0 */ be_nested_str_weak(attribute_updated), /* K1 */ be_const_int(0), }), - be_str_weak(valued_changed), + be_str_weak(value_changed), &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ + ( &(const binstruction[ 5]) { /* 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 + 0x54120402, // 0001 LDINT R4 1027 + 0x58140001, // 0002 LDCONST R5 K1 + 0x7C080600, // 0003 CALL R2 3 + 0x80000000, // 0004 RET 0 }) ) ); @@ -185,7 +184,7 @@ be_local_class(Matter_Plugin_Sensor_Pressure, be_nested_map(7, ( (struct bmapnode*) &(const bmapnode[]) { { 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(pre_value, 4), 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[]) { @@ -199,14 +198,14 @@ be_local_class(Matter_Plugin_Sensor_Pressure, be_const_int(65533), })) ) } )) }, })) ) } )) }, - { be_const_key_weak(TYPES, 4), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + { be_const_key_weak(TYPE, 6), be_nested_str_weak(pressure) }, + { be_const_key_weak(NAME, -1), be_nested_str_weak(Pressure) }, + { be_const_key_weak(value_changed, -1), be_const_closure(Matter_Plugin_Sensor_Pressure_value_changed_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(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 48e76493a..4fdf3b743 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 @@ -142,11 +142,11 @@ be_local_closure(Matter_Plugin_Sensor_Temp_pre_value, /* name */ /******************************************************************** -** Solidified function: valued_changed +** Solidified function: value_changed ********************************************************************/ -be_local_closure(Matter_Plugin_Sensor_Temp_valued_changed, /* name */ +be_local_closure(Matter_Plugin_Sensor_Temp_value_changed, /* name */ be_nested_proto( - 7, /* nstack */ + 6, /* nstack */ 2, /* argc */ 2, /* varg */ 0, /* has upvals */ @@ -158,15 +158,14 @@ be_local_closure(Matter_Plugin_Sensor_Temp_valued_changed, /* name */ /* K0 */ be_nested_str_weak(attribute_updated), /* K1 */ be_const_int(0), }), - be_str_weak(valued_changed), + be_str_weak(value_changed), &be_const_str_solidified, - ( &(const binstruction[ 6]) { /* code */ + ( &(const binstruction[ 5]) { /* 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 + 0x54120401, // 0001 LDINT R4 1026 + 0x58140001, // 0002 LDCONST R5 K1 + 0x7C080600, // 0003 CALL R2 3 + 0x80000000, // 0004 RET 0 }) ) ); @@ -183,7 +182,7 @@ be_local_class(Matter_Plugin_Sensor_Temp, be_nested_map(7, ( (struct bmapnode*) &(const bmapnode[]) { { 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(pre_value, 4), 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[]) { @@ -197,14 +196,14 @@ be_local_class(Matter_Plugin_Sensor_Temp, be_const_int(65533), })) ) } )) }, })) ) } )) }, - { be_const_key_weak(TYPES, 4), be_const_simple_instance(be_nested_simple_instance(&be_class_map, { + { be_const_key_weak(TYPE, 6), be_nested_str_weak(temperature) }, + { be_const_key_weak(NAME, -1), be_nested_str_weak(Temperature) }, + { be_const_key_weak(value_changed, -1), be_const_closure(Matter_Plugin_Sensor_Temp_value_changed_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(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_Plugin_Shutter.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Shutter.h new file mode 100644 index 000000000..bdf05f9db --- /dev/null +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_Plugin_Shutter.h @@ -0,0 +1,710 @@ +/* Solidification of Matter_Plugin_Shutter.h */ +/********************************************************************\ +* Generated code, don't edit * +\********************************************************************/ +#include "be_constobj.h" + +extern const bclass be_class_Matter_Plugin_Shutter; + +/******************************************************************** +** Solidified function: +********************************************************************/ +be_local_closure(Matter_Plugin_Shutter__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: read_attribute +********************************************************************/ +be_local_closure(Matter_Plugin_Shutter_read_attribute, /* name */ + be_nested_proto( + 12, /* nstack */ + 3, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[19]) { /* 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_nested_str_weak(update_shadow_lazy), + /* K6 */ be_const_int(0), + /* K7 */ be_nested_str_weak(create_TLV), + /* K8 */ be_nested_str_weak(U1), + /* K9 */ be_nested_str_weak(U2), + /* K10 */ be_const_int(1), + /* K11 */ be_nested_str_weak(shadow_shutter_pos), + /* K12 */ be_nested_str_weak(shadow_shutter_tilt), + /* K13 */ be_nested_str_weak(shadow_shutter_direction), + /* K14 */ be_const_int(2), + /* K15 */ be_nested_str_weak(shadow_shutter_target), + /* K16 */ be_nested_str_weak(U4), + /* K17 */ be_const_int(3), + /* K18 */ be_nested_str_weak(read_attribute), + }), + be_str_weak(read_attribute), + &be_const_str_solidified, + ( &(const binstruction[186]) { /* 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 + 0x541E0101, // 0005 LDINT R7 258 + 0x1C1C0A07, // 0006 EQ R7 R5 R7 + 0x781E00A8, // 0007 JMPF R7 #00B1 + 0x8C1C0105, // 0008 GETMET R7 R0 K5 + 0x7C1C0200, // 0009 CALL R7 1 + 0x1C1C0D06, // 000A EQ R7 R6 K6 + 0x781E0005, // 000B JMPF R7 #0012 + 0x8C1C0907, // 000C GETMET R7 R4 K7 + 0x88240908, // 000D GETMBR R9 R4 K8 + 0x542A00FE, // 000E LDINT R10 255 + 0x7C1C0600, // 000F CALL R7 3 + 0x80040E00, // 0010 RET 1 R7 + 0x7002009D, // 0011 JMP #00B0 + 0x541E0004, // 0012 LDINT R7 5 + 0x1C1C0C07, // 0013 EQ R7 R6 R7 + 0x781E0005, // 0014 JMPF R7 #001B + 0x8C1C0907, // 0015 GETMET R7 R4 K7 + 0x88240909, // 0016 GETMBR R9 R4 K9 + 0x58280006, // 0017 LDCONST R10 K6 + 0x7C1C0600, // 0018 CALL R7 3 + 0x80040E00, // 0019 RET 1 R7 + 0x70020094, // 001A JMP #00B0 + 0x541E0005, // 001B LDINT R7 6 + 0x1C1C0C07, // 001C EQ R7 R6 R7 + 0x781E0005, // 001D JMPF R7 #0024 + 0x8C1C0907, // 001E GETMET R7 R4 K7 + 0x88240909, // 001F GETMBR R9 R4 K9 + 0x58280006, // 0020 LDCONST R10 K6 + 0x7C1C0600, // 0021 CALL R7 3 + 0x80040E00, // 0022 RET 1 R7 + 0x7002008B, // 0023 JMP #00B0 + 0x541E0006, // 0024 LDINT R7 7 + 0x1C1C0C07, // 0025 EQ R7 R6 R7 + 0x781E0008, // 0026 JMPF R7 #0030 + 0x8C1C0907, // 0027 GETMET R7 R4 K7 + 0x88240908, // 0028 GETMBR R9 R4 K8 + 0x542A0007, // 0029 LDINT R10 8 + 0x002A140A, // 002A ADD R10 K10 R10 + 0x542E000F, // 002B LDINT R11 16 + 0x0028140B, // 002C ADD R10 R10 R11 + 0x7C1C0600, // 002D CALL R7 3 + 0x80040E00, // 002E RET 1 R7 + 0x7002007F, // 002F JMP #00B0 + 0x541E000C, // 0030 LDINT R7 13 + 0x1C1C0C07, // 0031 EQ R7 R6 R7 + 0x781E0005, // 0032 JMPF R7 #0039 + 0x8C1C0907, // 0033 GETMET R7 R4 K7 + 0x88240908, // 0034 GETMBR R9 R4 K8 + 0x542A00FE, // 0035 LDINT R10 255 + 0x7C1C0600, // 0036 CALL R7 3 + 0x80040E00, // 0037 RET 1 R7 + 0x70020076, // 0038 JMP #00B0 + 0x541E0007, // 0039 LDINT R7 8 + 0x1C1C0C07, // 003A EQ R7 R6 R7 + 0x781E0007, // 003B JMPF R7 #0044 + 0x8C1C0907, // 003C GETMET R7 R4 K7 + 0x88240909, // 003D GETMBR R9 R4 K9 + 0x542A0063, // 003E LDINT R10 100 + 0x882C010B, // 003F GETMBR R11 R0 K11 + 0x0428140B, // 0040 SUB R10 R10 R11 + 0x7C1C0600, // 0041 CALL R7 3 + 0x80040E00, // 0042 RET 1 R7 + 0x7002006B, // 0043 JMP #00B0 + 0x541E000D, // 0044 LDINT R7 14 + 0x1C1C0C07, // 0045 EQ R7 R6 R7 + 0x781E0009, // 0046 JMPF R7 #0051 + 0x8C1C0907, // 0047 GETMET R7 R4 K7 + 0x88240909, // 0048 GETMBR R9 R4 K9 + 0x542A0063, // 0049 LDINT R10 100 + 0x882C010B, // 004A GETMBR R11 R0 K11 + 0x0428140B, // 004B SUB R10 R10 R11 + 0x542E0063, // 004C LDINT R11 100 + 0x0828140B, // 004D MUL R10 R10 R11 + 0x7C1C0600, // 004E CALL R7 3 + 0x80040E00, // 004F RET 1 R7 + 0x7002005E, // 0050 JMP #00B0 + 0x541E0008, // 0051 LDINT R7 9 + 0x1C1C0C07, // 0052 EQ R7 R6 R7 + 0x781E0007, // 0053 JMPF R7 #005C + 0x8C1C0907, // 0054 GETMET R7 R4 K7 + 0x88240909, // 0055 GETMBR R9 R4 K9 + 0x542A0063, // 0056 LDINT R10 100 + 0x882C010C, // 0057 GETMBR R11 R0 K12 + 0x0428140B, // 0058 SUB R10 R10 R11 + 0x7C1C0600, // 0059 CALL R7 3 + 0x80040E00, // 005A RET 1 R7 + 0x70020053, // 005B JMP #00B0 + 0x541E000E, // 005C LDINT R7 15 + 0x1C1C0C07, // 005D EQ R7 R6 R7 + 0x781E0009, // 005E JMPF R7 #0069 + 0x8C1C0907, // 005F GETMET R7 R4 K7 + 0x88240909, // 0060 GETMBR R9 R4 K9 + 0x542A0063, // 0061 LDINT R10 100 + 0x882C010C, // 0062 GETMBR R11 R0 K12 + 0x0428140B, // 0063 SUB R10 R10 R11 + 0x542E0063, // 0064 LDINT R11 100 + 0x0828140B, // 0065 MUL R10 R10 R11 + 0x7C1C0600, // 0066 CALL R7 3 + 0x80040E00, // 0067 RET 1 R7 + 0x70020046, // 0068 JMP #00B0 + 0x541E0009, // 0069 LDINT R7 10 + 0x1C1C0C07, // 006A EQ R7 R6 R7 + 0x781E0010, // 006B JMPF R7 #007D + 0x881C010D, // 006C GETMBR R7 R0 K13 + 0x1C1C0F06, // 006D EQ R7 R7 K6 + 0x781E0001, // 006E JMPF R7 #0071 + 0x581C0006, // 006F LDCONST R7 K6 + 0x70020005, // 0070 JMP #0077 + 0x881C010D, // 0071 GETMBR R7 R0 K13 + 0x241C0F06, // 0072 GT R7 R7 K6 + 0x781E0001, // 0073 JMPF R7 #0076 + 0x581C000A, // 0074 LDCONST R7 K10 + 0x70020000, // 0075 JMP #0077 + 0x581C000E, // 0076 LDCONST R7 K14 + 0x8C200907, // 0077 GETMET R8 R4 K7 + 0x88280908, // 0078 GETMBR R10 R4 K8 + 0x5C2C0E00, // 0079 MOVE R11 R7 + 0x7C200600, // 007A CALL R8 3 + 0x80041000, // 007B RET 1 R8 + 0x70020032, // 007C JMP #00B0 + 0x541E000A, // 007D LDINT R7 11 + 0x1C1C0C07, // 007E EQ R7 R6 R7 + 0x781E0009, // 007F JMPF R7 #008A + 0x8C1C0907, // 0080 GETMET R7 R4 K7 + 0x88240909, // 0081 GETMBR R9 R4 K9 + 0x542A0063, // 0082 LDINT R10 100 + 0x882C010F, // 0083 GETMBR R11 R0 K15 + 0x0428140B, // 0084 SUB R10 R10 R11 + 0x542E0063, // 0085 LDINT R11 100 + 0x0828140B, // 0086 MUL R10 R10 R11 + 0x7C1C0600, // 0087 CALL R7 3 + 0x80040E00, // 0088 RET 1 R7 + 0x70020025, // 0089 JMP #00B0 + 0x541E000B, // 008A LDINT R7 12 + 0x1C1C0C07, // 008B EQ R7 R6 R7 + 0x781E0005, // 008C JMPF R7 #0093 + 0x8C1C0907, // 008D GETMET R7 R4 K7 + 0x88240908, // 008E GETMBR R9 R4 K8 + 0x58280006, // 008F LDCONST R10 K6 + 0x7C1C0600, // 0090 CALL R7 3 + 0x80040E00, // 0091 RET 1 R7 + 0x7002001C, // 0092 JMP #00B0 + 0x541E0016, // 0093 LDINT R7 23 + 0x1C1C0C07, // 0094 EQ R7 R6 R7 + 0x781E0005, // 0095 JMPF R7 #009C + 0x8C1C0907, // 0096 GETMET R7 R4 K7 + 0x88240908, // 0097 GETMBR R9 R4 K8 + 0x58280006, // 0098 LDCONST R10 K6 + 0x7C1C0600, // 0099 CALL R7 3 + 0x80040E00, // 009A RET 1 R7 + 0x70020013, // 009B JMP #00B0 + 0x541EFFFB, // 009C LDINT R7 65532 + 0x1C1C0C07, // 009D EQ R7 R6 R7 + 0x781E0008, // 009E JMPF R7 #00A8 + 0x8C1C0907, // 009F GETMET R7 R4 K7 + 0x88240910, // 00A0 GETMBR R9 R4 K16 + 0x542A0003, // 00A1 LDINT R10 4 + 0x002A220A, // 00A2 ADD R10 K17 R10 + 0x542E000F, // 00A3 LDINT R11 16 + 0x0028140B, // 00A4 ADD R10 R10 R11 + 0x7C1C0600, // 00A5 CALL R7 3 + 0x80040E00, // 00A6 RET 1 R7 + 0x70020007, // 00A7 JMP #00B0 + 0x541EFFFC, // 00A8 LDINT R7 65533 + 0x1C1C0C07, // 00A9 EQ R7 R6 R7 + 0x781E0004, // 00AA JMPF R7 #00B0 + 0x8C1C0907, // 00AB GETMET R7 R4 K7 + 0x88240910, // 00AC GETMBR R9 R4 K16 + 0x542A0004, // 00AD LDINT R10 5 + 0x7C1C0600, // 00AE CALL R7 3 + 0x80040E00, // 00AF RET 1 R7 + 0x70020007, // 00B0 JMP #00B9 + 0x601C0003, // 00B1 GETGBL R7 G3 + 0x5C200000, // 00B2 MOVE R8 R0 + 0x7C1C0200, // 00B3 CALL R7 1 + 0x8C1C0F12, // 00B4 GETMET R7 R7 K18 + 0x5C240200, // 00B5 MOVE R9 R1 + 0x5C280400, // 00B6 MOVE R10 R2 + 0x7C1C0600, // 00B7 CALL R7 3 + 0x80040E00, // 00B8 RET 1 R7 + 0x80000000, // 00B9 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: init +********************************************************************/ +be_local_closure(Matter_Plugin_Shutter_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[ 5]) { /* constants */ + /* K0 */ be_nested_str_weak(init), + /* K1 */ be_nested_str_weak(tasmota_shutter_index), + /* K2 */ be_nested_str_weak(find), + /* K3 */ be_nested_str_weak(ARG), + /* K4 */ be_const_int(0), + }), + be_str_weak(init), + &be_const_str_solidified, + ( &(const binstruction[18]) { /* 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 + 0x8C100702, // 0008 GETMET R4 R3 K2 + 0x88180103, // 0009 GETMBR R6 R0 K3 + 0x7C100400, // 000A CALL R4 2 + 0x90020204, // 000B SETMBR R0 K1 R4 + 0x88100101, // 000C GETMBR R4 R0 K1 + 0x4C140000, // 000D LDNIL R5 + 0x1C100805, // 000E EQ R4 R4 R5 + 0x78120000, // 000F JMPF R4 #0011 + 0x90020304, // 0010 SETMBR R0 K1 K4 + 0x80000000, // 0011 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: update_shadow +********************************************************************/ +be_local_closure(Matter_Plugin_Shutter_update_shadow, /* 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(tasmota), + /* K1 */ be_nested_str_weak(cmd), + /* K2 */ be_nested_str_weak(ShutterPosition), + /* K3 */ be_nested_str_weak(tasmota_shutter_index), + /* K4 */ be_const_int(1), + /* K5 */ be_nested_str_weak(parse_sensors), + /* K6 */ be_nested_str_weak(update_shadow), + }), + be_str_weak(update_shadow), + &be_const_str_solidified, + ( &(const binstruction[19]) { /* code */ + 0xB8060000, // 0000 GETNGBL R1 K0 + 0x8C040301, // 0001 GETMET R1 R1 K1 + 0x600C0008, // 0002 GETGBL R3 G8 + 0x88100103, // 0003 GETMBR R4 R0 K3 + 0x00100904, // 0004 ADD R4 R4 K4 + 0x7C0C0200, // 0005 CALL R3 1 + 0x000E0403, // 0006 ADD R3 K2 R3 + 0x50100200, // 0007 LDBOOL R4 1 0 + 0x7C040600, // 0008 CALL R1 3 + 0x78060002, // 0009 JMPF R1 #000D + 0x8C080105, // 000A GETMET R2 R0 K5 + 0x5C100200, // 000B MOVE R4 R1 + 0x7C080400, // 000C CALL R2 2 + 0x60080003, // 000D GETGBL R2 G3 + 0x5C0C0000, // 000E MOVE R3 R0 + 0x7C080200, // 000F CALL R2 1 + 0x8C080506, // 0010 GETMET R2 R2 K6 + 0x7C080200, // 0011 CALL R2 1 + 0x80000000, // 0012 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: invoke_request +********************************************************************/ +be_local_closure(Matter_Plugin_Shutter_invoke_request, /* 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[24]) { /* 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(update_shadow_lazy), + /* K6 */ be_const_int(0), + /* K7 */ be_nested_str_weak(tasmota), + /* K8 */ be_nested_str_weak(cmd), + /* K9 */ be_nested_str_weak(ShutterStopOpen), + /* K10 */ be_nested_str_weak(tasmota_shutter_index), + /* K11 */ be_const_int(1), + /* K12 */ be_nested_str_weak(update_shadow), + /* K13 */ be_nested_str_weak(ShutterStopClose), + /* K14 */ be_const_int(2), + /* K15 */ be_nested_str_weak(ShutterStop), + /* K16 */ be_nested_str_weak(log), + /* K17 */ be_nested_str_weak(MTR_X3A_X20Tilt_X20_X3D_X20), + /* K18 */ be_nested_str_weak(findsubval), + /* K19 */ be_nested_str_weak(ShutterStopPosition), + /* K20 */ be_nested_str_weak(_X20), + /* K21 */ be_nested_str_weak(pos_X25_X3A), + /* K22 */ be_nested_str_weak(tilt_X25_X3A), + /* K23 */ be_nested_str_weak(invoke_request), + }), + be_str_weak(invoke_request), + &be_const_str_solidified, + ( &(const binstruction[131]) { /* 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 + 0x54220101, // 0005 LDINT R8 258 + 0x1C200C08, // 0006 EQ R8 R6 R8 + 0x78220070, // 0007 JMPF R8 #0079 + 0x8C200105, // 0008 GETMET R8 R0 K5 + 0x7C200200, // 0009 CALL R8 1 + 0x1C200F06, // 000A EQ R8 R7 K6 + 0x7822000D, // 000B JMPF R8 #001A + 0xB8220E00, // 000C GETNGBL R8 K7 + 0x8C201108, // 000D GETMET R8 R8 K8 + 0x60280008, // 000E GETGBL R10 G8 + 0x882C010A, // 000F GETMBR R11 R0 K10 + 0x002C170B, // 0010 ADD R11 R11 K11 + 0x7C280200, // 0011 CALL R10 1 + 0x002A120A, // 0012 ADD R10 K9 R10 + 0x502C0200, // 0013 LDBOOL R11 1 0 + 0x7C200600, // 0014 CALL R8 3 + 0x8C20010C, // 0015 GETMET R8 R0 K12 + 0x7C200200, // 0016 CALL R8 1 + 0x50200200, // 0017 LDBOOL R8 1 0 + 0x80041000, // 0018 RET 1 R8 + 0x7002005D, // 0019 JMP #0078 + 0x1C200F0B, // 001A EQ R8 R7 K11 + 0x7822000D, // 001B JMPF R8 #002A + 0xB8220E00, // 001C GETNGBL R8 K7 + 0x8C201108, // 001D GETMET R8 R8 K8 + 0x60280008, // 001E GETGBL R10 G8 + 0x882C010A, // 001F GETMBR R11 R0 K10 + 0x002C170B, // 0020 ADD R11 R11 K11 + 0x7C280200, // 0021 CALL R10 1 + 0x002A1A0A, // 0022 ADD R10 K13 R10 + 0x502C0200, // 0023 LDBOOL R11 1 0 + 0x7C200600, // 0024 CALL R8 3 + 0x8C20010C, // 0025 GETMET R8 R0 K12 + 0x7C200200, // 0026 CALL R8 1 + 0x50200200, // 0027 LDBOOL R8 1 0 + 0x80041000, // 0028 RET 1 R8 + 0x7002004D, // 0029 JMP #0078 + 0x1C200F0E, // 002A EQ R8 R7 K14 + 0x7822000D, // 002B JMPF R8 #003A + 0xB8220E00, // 002C GETNGBL R8 K7 + 0x8C201108, // 002D GETMET R8 R8 K8 + 0x60280008, // 002E GETGBL R10 G8 + 0x882C010A, // 002F GETMBR R11 R0 K10 + 0x002C170B, // 0030 ADD R11 R11 K11 + 0x7C280200, // 0031 CALL R10 1 + 0x002A1E0A, // 0032 ADD R10 K15 R10 + 0x502C0200, // 0033 LDBOOL R11 1 0 + 0x7C200600, // 0034 CALL R8 3 + 0x8C20010C, // 0035 GETMET R8 R0 K12 + 0x7C200200, // 0036 CALL R8 1 + 0x50200200, // 0037 LDBOOL R8 1 0 + 0x80041000, // 0038 RET 1 R8 + 0x7002003D, // 0039 JMP #0078 + 0x54220004, // 003A LDINT R8 5 + 0x1C200E08, // 003B EQ R8 R7 R8 + 0x78220028, // 003C JMPF R8 #0066 + 0xB8220E00, // 003D GETNGBL R8 K7 + 0x8C201110, // 003E GETMET R8 R8 K16 + 0x60280008, // 003F GETGBL R10 G8 + 0x5C2C0400, // 0040 MOVE R11 R2 + 0x7C280200, // 0041 CALL R10 1 + 0x002A220A, // 0042 ADD R10 K17 R10 + 0x582C000E, // 0043 LDCONST R11 K14 + 0x7C200600, // 0044 CALL R8 3 + 0x8C200512, // 0045 GETMET R8 R2 K18 + 0x58280006, // 0046 LDCONST R10 K6 + 0x7C200400, // 0047 CALL R8 2 + 0x4C240000, // 0048 LDNIL R9 + 0x20241009, // 0049 NE R9 R8 R9 + 0x78260017, // 004A JMPF R9 #0063 + 0x54260063, // 004B LDINT R9 100 + 0x0C201009, // 004C DIV R8 R8 R9 + 0xB8260E00, // 004D GETNGBL R9 K7 + 0x8C241308, // 004E GETMET R9 R9 K8 + 0x602C0008, // 004F GETGBL R11 G8 + 0x8830010A, // 0050 GETMBR R12 R0 K10 + 0x0030190B, // 0051 ADD R12 R12 K11 + 0x7C2C0200, // 0052 CALL R11 1 + 0x002E260B, // 0053 ADD R11 K19 R11 + 0x002C1714, // 0054 ADD R11 R11 K20 + 0x60300008, // 0055 GETGBL R12 G8 + 0x54360063, // 0056 LDINT R13 100 + 0x04341A08, // 0057 SUB R13 R13 R8 + 0x7C300200, // 0058 CALL R12 1 + 0x002C160C, // 0059 ADD R11 R11 R12 + 0x50300200, // 005A LDBOOL R12 1 0 + 0x7C240600, // 005B CALL R9 3 + 0x60240008, // 005C GETGBL R9 G8 + 0x5C281000, // 005D MOVE R10 R8 + 0x7C240200, // 005E CALL R9 1 + 0x00262A09, // 005F ADD R9 K21 R9 + 0x900E2009, // 0060 SETMBR R3 K16 R9 + 0x8C24010C, // 0061 GETMET R9 R0 K12 + 0x7C240200, // 0062 CALL R9 1 + 0x50240200, // 0063 LDBOOL R9 1 0 + 0x80041200, // 0064 RET 1 R9 + 0x70020011, // 0065 JMP #0078 + 0x54220007, // 0066 LDINT R8 8 + 0x1C200E08, // 0067 EQ R8 R7 R8 + 0x7822000E, // 0068 JMPF R8 #0078 + 0x8C200512, // 0069 GETMET R8 R2 K18 + 0x58280006, // 006A LDCONST R10 K6 + 0x7C200400, // 006B CALL R8 2 + 0x4C240000, // 006C LDNIL R9 + 0x20241009, // 006D NE R9 R8 R9 + 0x78260006, // 006E JMPF R9 #0076 + 0x54260009, // 006F LDINT R9 10 + 0x0C201009, // 0070 DIV R8 R8 R9 + 0x60240008, // 0071 GETGBL R9 G8 + 0x5C281000, // 0072 MOVE R10 R8 + 0x7C240200, // 0073 CALL R9 1 + 0x00262C09, // 0074 ADD R9 K22 R9 + 0x900E2009, // 0075 SETMBR R3 K16 R9 + 0x50240200, // 0076 LDBOOL R9 1 0 + 0x80041200, // 0077 RET 1 R9 + 0x70020008, // 0078 JMP #0082 + 0x60200003, // 0079 GETGBL R8 G3 + 0x5C240000, // 007A MOVE R9 R0 + 0x7C200200, // 007B CALL R8 1 + 0x8C201117, // 007C GETMET R8 R8 K23 + 0x5C280200, // 007D MOVE R10 R1 + 0x5C2C0400, // 007E MOVE R11 R2 + 0x5C300600, // 007F MOVE R12 R3 + 0x7C200800, // 0080 CALL R8 4 + 0x80041000, // 0081 RET 1 R8 + 0x80000000, // 0082 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified function: parse_sensors +********************************************************************/ +be_local_closure(Matter_Plugin_Shutter_parse_sensors, /* name */ + be_nested_proto( + 13, /* nstack */ + 2, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[15]) { /* constants */ + /* K0 */ be_nested_str_weak(string), + /* K1 */ be_nested_str_weak(Shutter), + /* K2 */ be_nested_str_weak(tasmota_shutter_index), + /* K3 */ be_const_int(1), + /* K4 */ be_nested_str_weak(contains), + /* K5 */ be_nested_str_weak(find), + /* K6 */ be_nested_str_weak(Position), + /* K7 */ be_nested_str_weak(shadow_shutter_pos), + /* K8 */ be_nested_str_weak(attribute_updated), + /* K9 */ be_nested_str_weak(Tilt), + /* K10 */ be_nested_str_weak(shadow_shutter_tilt), + /* K11 */ be_nested_str_weak(Direction), + /* K12 */ be_nested_str_weak(shadow_shutter_direction), + /* K13 */ be_nested_str_weak(Target), + /* K14 */ be_nested_str_weak(shadow_shutter_target), + }), + be_str_weak(parse_sensors), + &be_const_str_solidified, + ( &(const binstruction[68]) { /* code */ + 0xA40A0000, // 0000 IMPORT R2 K0 + 0x600C0008, // 0001 GETGBL R3 G8 + 0x88100102, // 0002 GETMBR R4 R0 K2 + 0x00100903, // 0003 ADD R4 R4 K3 + 0x7C0C0200, // 0004 CALL R3 1 + 0x000E0203, // 0005 ADD R3 K1 R3 + 0x8C100304, // 0006 GETMET R4 R1 K4 + 0x5C180600, // 0007 MOVE R6 R3 + 0x7C100400, // 0008 CALL R4 2 + 0x78120038, // 0009 JMPF R4 #0043 + 0x94100203, // 000A GETIDX R4 R1 R3 + 0x8C140905, // 000B GETMET R5 R4 K5 + 0x581C0006, // 000C LDCONST R7 K6 + 0x7C140400, // 000D CALL R5 2 + 0x4C180000, // 000E LDNIL R6 + 0x20180A06, // 000F NE R6 R5 R6 + 0x781A0007, // 0010 JMPF R6 #0019 + 0x88180107, // 0011 GETMBR R6 R0 K7 + 0x20180A06, // 0012 NE R6 R5 R6 + 0x781A0003, // 0013 JMPF R6 #0018 + 0x8C180108, // 0014 GETMET R6 R0 K8 + 0x54220101, // 0015 LDINT R8 258 + 0x5426000D, // 0016 LDINT R9 14 + 0x7C180600, // 0017 CALL R6 3 + 0x90020E05, // 0018 SETMBR R0 K7 R5 + 0x8C180905, // 0019 GETMET R6 R4 K5 + 0x58200009, // 001A LDCONST R8 K9 + 0x7C180400, // 001B CALL R6 2 + 0x4C1C0000, // 001C LDNIL R7 + 0x201C0C07, // 001D NE R7 R6 R7 + 0x781E0007, // 001E JMPF R7 #0027 + 0x881C010A, // 001F GETMBR R7 R0 K10 + 0x201C0C07, // 0020 NE R7 R6 R7 + 0x781E0003, // 0021 JMPF R7 #0026 + 0x8C1C0108, // 0022 GETMET R7 R0 K8 + 0x54260101, // 0023 LDINT R9 258 + 0x542A000E, // 0024 LDINT R10 15 + 0x7C1C0600, // 0025 CALL R7 3 + 0x90021406, // 0026 SETMBR R0 K10 R6 + 0x8C1C0905, // 0027 GETMET R7 R4 K5 + 0x5824000B, // 0028 LDCONST R9 K11 + 0x7C1C0400, // 0029 CALL R7 2 + 0x4C200000, // 002A LDNIL R8 + 0x20200E08, // 002B NE R8 R7 R8 + 0x78220007, // 002C JMPF R8 #0035 + 0x8820010C, // 002D GETMBR R8 R0 K12 + 0x20200E08, // 002E NE R8 R7 R8 + 0x78220003, // 002F JMPF R8 #0034 + 0x8C200108, // 0030 GETMET R8 R0 K8 + 0x542A0101, // 0031 LDINT R10 258 + 0x542E0009, // 0032 LDINT R11 10 + 0x7C200600, // 0033 CALL R8 3 + 0x90021807, // 0034 SETMBR R0 K12 R7 + 0x8C200905, // 0035 GETMET R8 R4 K5 + 0x5828000D, // 0036 LDCONST R10 K13 + 0x7C200400, // 0037 CALL R8 2 + 0x4C240000, // 0038 LDNIL R9 + 0x20241009, // 0039 NE R9 R8 R9 + 0x78260007, // 003A JMPF R9 #0043 + 0x8824010E, // 003B GETMBR R9 R0 K14 + 0x20241009, // 003C NE R9 R8 R9 + 0x78260003, // 003D JMPF R9 #0042 + 0x8C240108, // 003E GETMET R9 R0 K8 + 0x542E0101, // 003F LDINT R11 258 + 0x5432000A, // 0040 LDINT R12 11 + 0x7C240600, // 0041 CALL R9 3 + 0x90021C08, // 0042 SETMBR R0 K14 R8 + 0x80000000, // 0043 RET 0 + }) + ) +); +/*******************************************************************/ + + +/******************************************************************** +** Solidified class: Matter_Plugin_Shutter +********************************************************************/ +extern const bclass be_class_Matter_Plugin_Device; +be_local_class(Matter_Plugin_Shutter, + 5, + &be_class_Matter_Plugin_Device, + be_nested_map(16, + ( (struct bmapnode*) &(const bmapnode[]) { + { be_const_key_weak(ARG_TYPE, -1), be_const_static_closure(Matter_Plugin_Shutter__X3Clambda_X3E_closure) }, + { be_const_key_weak(shadow_shutter_pos, -1), be_const_var(1) }, + { be_const_key_weak(CLUSTERS, 14), 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(258, -1), be_const_simple_instance(be_nested_simple_instance(&be_class_list, { + be_const_list( * be_nested_list(15, + ( (struct bvalue*) &(const bvalue[]) { + be_const_int(0), + be_const_int(5), + be_const_int(6), + be_const_int(7), + be_const_int(8), + be_const_int(9), + be_const_int(10), + be_const_int(11), + be_const_int(12), + be_const_int(13), + be_const_int(14), + be_const_int(15), + be_const_int(23), + be_const_int(65532), + be_const_int(65533), + })) ) } )) }, + })) ) } )) }, + { be_const_key_weak(init, -1), be_const_closure(Matter_Plugin_Shutter_init_closure) }, + { be_const_key_weak(shadow_shutter_direction, -1), be_const_var(4) }, + { be_const_key_weak(shadow_shutter_target, 15), be_const_var(2) }, + { be_const_key_weak(NAME, 1), be_nested_str_weak(Shutter) }, + { be_const_key_weak(ARG, -1), be_nested_str_weak(shutter) }, + { be_const_key_weak(invoke_request, -1), be_const_closure(Matter_Plugin_Shutter_invoke_request_closure) }, + { be_const_key_weak(tasmota_shutter_index, -1), be_const_var(0) }, + { be_const_key_weak(read_attribute, 2), be_const_closure(Matter_Plugin_Shutter_read_attribute_closure) }, + { be_const_key_weak(shadow_shutter_tilt, 8), be_const_var(3) }, + { be_const_key_weak(parse_sensors, -1), be_const_closure(Matter_Plugin_Shutter_parse_sensors_closure) }, + { be_const_key_weak(TYPE, 4), be_nested_str_weak(shutter) }, + { 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(514, -1), be_const_int(2) }, + })) ) } )) }, + { be_const_key_weak(update_shadow, -1), be_const_closure(Matter_Plugin_Shutter_update_shadow_closure) }, + })), + be_str_weak(Matter_Plugin_Shutter) +); +/*******************************************************************/ + +void be_load_Matter_Plugin_Shutter_class(bvm *vm) { + be_pushntvclass(vm, &be_class_Matter_Plugin_Shutter); + be_setglobal(vm, "Matter_Plugin_Shutter"); + be_pop(vm, 1); +} +/********************************************************************/ +/* End of solidification */ diff --git a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UI.h b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UI.h index 5805865d8..424cf1b1d 100644 --- a/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UI.h +++ b/lib/libesp32/berry_matter/src/solidify/solidified_Matter_UI.h @@ -6,6 +6,309 @@ extern const bclass be_class_Matter_UI; +/******************************************************************** +** 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[35]) { /* 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(format), + /* K17 */ 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_X20value_X3D_X270_X27_X20readonly_X3E_X3C_X2Ftd_X3E), + /* K18 */ be_nested_str_weak(_X3Ctd_X3E_X3Cselect_X20name_X3D_X27pi_X2503i_X27_X3E), + /* K19 */ be_nested_str_weak(plugin_option), + /* K20 */ be_nested_str_weak(), + /* K21 */ be_nested_str_weak(_ROOT_TYPES), + /* 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_X26nbsp_X3B_X3C_X2Ffont_X3E_X3C_X2Ftd_X3E), + /* K24 */ be_const_int(1), + /* K25 */ be_nested_str_weak(get_plugin_class_arg), + /* 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_X25i_X27_X3E_X3C_X2Ftd_X3E), + /* K27 */ be_nested_str_weak(_CLASSES_TYPES), + /* K28 */ 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), + /* K29 */ be_nested_str_weak(html_escape), + /* K30 */ 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), + /* K31 */ 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), + /* K32 */ be_nested_str_weak(_X3C_X2Ftable_X3E_X3Cp_X3E_X3C_X2Fp_X3E), + /* K33 */ be_nested_str_weak(_X3Cbutton_X20name_X3D_X27config_X27_X20class_X3D_X27button_X20bgrn_X27_X3EChange_X20configuration_X3C_X2Fbutton_X3E_X3C_X2Fform_X3E), + /* K34 */ 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[180]) { /* 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 + 0x9414070D, // 0020 GETIDX R5 R3 K13 + 0x1C140B0D, // 0021 EQ R5 R5 K13 + 0x78160026, // 0022 JMPF R5 #004A + 0x94140604, // 0023 GETIDX R5 R3 R4 + 0x8818010A, // 0024 GETMBR R6 R0 K10 + 0x601C0008, // 0025 GETGBL R7 G8 + 0x5C200A00, // 0026 MOVE R8 R5 + 0x7C1C0200, // 0027 CALL R7 1 + 0x88180D0C, // 0028 GETMBR R6 R6 K12 + 0x94180C07, // 0029 GETIDX R6 R6 R7 + 0x8C200D0E, // 002A GETMET R8 R6 K14 + 0x5828000F, // 002B LDCONST R10 K15 + 0x7C200400, // 002C CALL R8 2 + 0x5C1C1000, // 002D MOVE R7 R8 + 0x8C200302, // 002E GETMET R8 R1 K2 + 0x8C280510, // 002F GETMET R10 R2 K16 + 0x58300011, // 0030 LDCONST R12 K17 + 0x5C340800, // 0031 MOVE R13 R4 + 0x7C280600, // 0032 CALL R10 3 + 0x7C200400, // 0033 CALL R8 2 + 0x8C200302, // 0034 GETMET R8 R1 K2 + 0x8C280510, // 0035 GETMET R10 R2 K16 + 0x58300012, // 0036 LDCONST R12 K18 + 0x5C340800, // 0037 MOVE R13 R4 + 0x7C280600, // 0038 CALL R10 3 + 0x7C200400, // 0039 CALL R8 2 + 0x8C200113, // 003A GETMET R8 R0 K19 + 0x8C280D0E, // 003B GETMET R10 R6 K14 + 0x5830000F, // 003C LDCONST R12 K15 + 0x58340014, // 003D LDCONST R13 K20 + 0x7C280600, // 003E CALL R10 3 + 0x882C0115, // 003F GETMBR R11 R0 K21 + 0x7C200600, // 0040 CALL R8 3 + 0x8C200302, // 0041 GETMET R8 R1 K2 + 0x8C280510, // 0042 GETMET R10 R2 K16 + 0x58300016, // 0043 LDCONST R12 K22 + 0x7C280400, // 0044 CALL R10 2 + 0x7C200400, // 0045 CALL R8 2 + 0x8C200302, // 0046 GETMET R8 R1 K2 + 0x58280017, // 0047 LDCONST R10 K23 + 0x7C200400, // 0048 CALL R8 2 + 0x00100918, // 0049 ADD R4 R4 K24 + 0x6014000C, // 004A GETGBL R5 G12 + 0x5C180600, // 004B MOVE R6 R3 + 0x7C140200, // 004C CALL R5 1 + 0x14140805, // 004D LT R5 R4 R5 + 0x7816003F, // 004E JMPF R5 #008F + 0x94140604, // 004F GETIDX R5 R3 R4 + 0x8818010A, // 0050 GETMBR R6 R0 K10 + 0x601C0008, // 0051 GETGBL R7 G8 + 0x5C200A00, // 0052 MOVE R8 R5 + 0x7C1C0200, // 0053 CALL R7 1 + 0x88180D0C, // 0054 GETMBR R6 R6 K12 + 0x94180C07, // 0055 GETIDX R6 R6 R7 + 0x8C200D0E, // 0056 GETMET R8 R6 K14 + 0x5828000F, // 0057 LDCONST R10 K15 + 0x7C200400, // 0058 CALL R8 2 + 0x5C1C1000, // 0059 MOVE R7 R8 + 0x5C200E00, // 005A MOVE R8 R7 + 0x74220001, // 005B JMPT R8 #005E + 0x00100918, // 005C ADD R4 R4 K24 + 0x7001FFEB, // 005D JMP #004A + 0x8820010A, // 005E GETMBR R8 R0 K10 + 0x8C201119, // 005F GETMET R8 R8 K25 + 0x5C280E00, // 0060 MOVE R10 R7 + 0x7C200400, // 0061 CALL R8 2 + 0x78220006, // 0062 JMPF R8 #006A + 0x60240008, // 0063 GETGBL R9 G8 + 0x8C280D0E, // 0064 GETMET R10 R6 K14 + 0x5C301000, // 0065 MOVE R12 R8 + 0x58340014, // 0066 LDCONST R13 K20 + 0x7C280600, // 0067 CALL R10 3 + 0x7C240200, // 0068 CALL R9 1 + 0x70020000, // 0069 JMP #006B + 0x58240014, // 006A LDCONST R9 K20 + 0x8C280302, // 006B GETMET R10 R1 K2 + 0x8C300510, // 006C GETMET R12 R2 K16 + 0x5838001A, // 006D LDCONST R14 K26 + 0x5C3C0800, // 006E MOVE R15 R4 + 0x5C400A00, // 006F MOVE R16 R5 + 0x7C300800, // 0070 CALL R12 4 + 0x7C280400, // 0071 CALL R10 2 + 0x8C280302, // 0072 GETMET R10 R1 K2 + 0x8C300510, // 0073 GETMET R12 R2 K16 + 0x58380012, // 0074 LDCONST R14 K18 + 0x5C3C0800, // 0075 MOVE R15 R4 + 0x7C300600, // 0076 CALL R12 3 + 0x7C280400, // 0077 CALL R10 2 + 0x8C280113, // 0078 GETMET R10 R0 K19 + 0x8C300D0E, // 0079 GETMET R12 R6 K14 + 0x5838000F, // 007A LDCONST R14 K15 + 0x583C0014, // 007B LDCONST R15 K20 + 0x7C300600, // 007C CALL R12 3 + 0x8834011B, // 007D GETMBR R13 R0 K27 + 0x7C280600, // 007E CALL R10 3 + 0x8C280302, // 007F GETMET R10 R1 K2 + 0x8C300510, // 0080 GETMET R12 R2 K16 + 0x58380016, // 0081 LDCONST R14 K22 + 0x7C300400, // 0082 CALL R12 2 + 0x7C280400, // 0083 CALL R10 2 + 0x8C280302, // 0084 GETMET R10 R1 K2 + 0x8C300510, // 0085 GETMET R12 R2 K16 + 0x5838001C, // 0086 LDCONST R14 K28 + 0x5C3C0800, // 0087 MOVE R15 R4 + 0x8C40031D, // 0088 GETMET R16 R1 K29 + 0x5C481200, // 0089 MOVE R18 R9 + 0x7C400400, // 008A CALL R16 2 + 0x7C300800, // 008B CALL R12 4 + 0x7C280400, // 008C CALL R10 2 + 0x00100918, // 008D ADD R4 R4 K24 + 0x7001FFBA, // 008E JMP #004A + 0x8C140302, // 008F GETMET R5 R1 K2 + 0x8C1C0510, // 0090 GETMET R7 R2 K16 + 0x5824001E, // 0091 LDCONST R9 K30 + 0x5C280800, // 0092 MOVE R10 R4 + 0x7C1C0600, // 0093 CALL R7 3 + 0x7C140400, // 0094 CALL R5 2 + 0x8C140302, // 0095 GETMET R5 R1 K2 + 0x8C1C0510, // 0096 GETMET R7 R2 K16 + 0x58240012, // 0097 LDCONST R9 K18 + 0x5C280800, // 0098 MOVE R10 R4 + 0x7C1C0600, // 0099 CALL R7 3 + 0x7C140400, // 009A CALL R5 2 + 0x8C140113, // 009B GETMET R5 R0 K19 + 0x581C0014, // 009C LDCONST R7 K20 + 0x8820011B, // 009D GETMBR R8 R0 K27 + 0x7C140600, // 009E CALL R5 3 + 0x8C140302, // 009F GETMET R5 R1 K2 + 0x8C1C0510, // 00A0 GETMET R7 R2 K16 + 0x58240016, // 00A1 LDCONST R9 K22 + 0x7C1C0400, // 00A2 CALL R7 2 + 0x7C140400, // 00A3 CALL R5 2 + 0x8C140302, // 00A4 GETMET R5 R1 K2 + 0x8C1C0510, // 00A5 GETMET R7 R2 K16 + 0x5824001F, // 00A6 LDCONST R9 K31 + 0x5C280800, // 00A7 MOVE R10 R4 + 0x7C1C0600, // 00A8 CALL R7 3 + 0x7C140400, // 00A9 CALL R5 2 + 0x8C140302, // 00AA GETMET R5 R1 K2 + 0x581C0020, // 00AB LDCONST R7 K32 + 0x7C140400, // 00AC CALL R5 2 + 0x8C140302, // 00AD GETMET R5 R1 K2 + 0x581C0021, // 00AE LDCONST R7 K33 + 0x7C140400, // 00AF CALL R5 2 + 0x8C140302, // 00B0 GETMET R5 R1 K2 + 0x581C0022, // 00B1 LDCONST R7 K34 + 0x7C140400, // 00B2 CALL R5 2 + 0x80000000, // 00B3 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: show_commissioning_info ********************************************************************/ @@ -117,87 +420,88 @@ be_local_closure(Matter_UI_show_commissioning_info, /* name */ /******************************************************************** -** Solidified function: show_enable +** Solidified function: web_add_handler ********************************************************************/ -be_local_closure(Matter_UI_show_enable, /* name */ +be_local_closure(Matter_UI_web_add_handler, /* name */ be_nested_proto( - 11, /* 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[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), + 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_enable), + 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[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 + ( &(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 }) ) ); @@ -205,32 +509,47 @@ be_local_closure(Matter_UI_show_enable, /* name */ /******************************************************************** -** Solidified function: init +** Solidified function: web_get_arg ********************************************************************/ -be_local_closure(Matter_UI_init, /* name */ +be_local_closure(Matter_UI_web_get_arg, /* name */ be_nested_proto( 5, /* nstack */ - 2, /* argc */ + 1, /* 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), + ( &(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(init), + be_str_weak(web_get_arg), &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 + ( &(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 }) ) ); @@ -326,268 +645,6 @@ be_local_closure(Matter_UI_show_passcode_form, /* name */ /*******************************************************************/ -/******************************************************************** -** 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( - 16, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[30]) { /* 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_X3BFabrics_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E), - /* K4 */ be_nested_str_weak(_X3Cp_X3EExisting_X20fabrics_X3A_X3C_X2Fp_X3E), - /* K5 */ be_nested_str_weak(device), - /* K6 */ be_nested_str_weak(sessions), - /* K7 */ be_const_int(0), - /* K8 */ be_nested_str_weak(_X3Cp_X3E_X3Cb_X3ENone_X3C_X2Fb_X3E_X3C_X2Fp_X3E), - /* K9 */ be_nested_str_weak(fabrics), - /* K10 */ be_nested_str_weak(persistables), - /* K11 */ be_nested_str_weak(_X3Chr_X3E), - /* K12 */ be_nested_str_weak(fabric_label), - /* K13 */ be_nested_str_weak(_X3CNo_X20label_X3E), - /* K14 */ be_nested_str_weak(html_escape), - /* K15 */ be_nested_str_weak(format), - /* K16 */ be_nested_str_weak(_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3B_X23_X25i_X20_X25s_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E), - /* K17 */ be_nested_str_weak(get_fabric_index), - /* K18 */ be_nested_str_weak(get_fabric_id), - /* K19 */ be_nested_str_weak(copy), - /* K20 */ be_nested_str_weak(reverse), - /* K21 */ be_nested_str_weak(get_device_id), - /* 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_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), - /* K29 */ be_nested_str_weak(stop_iteration), - }), - 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 ********************************************************************/ @@ -1041,9 +1098,9 @@ be_local_closure(Matter_UI_page_part_ctl, /* name */ /******************************************************************** -** Solidified function: web_get_arg +** Solidified function: web_add_config_button ********************************************************************/ -be_local_closure(Matter_UI_web_get_arg, /* name */ +be_local_closure(Matter_UI_web_add_config_button, /* name */ be_nested_proto( 5, /* nstack */ 1, /* argc */ @@ -1053,420 +1110,29 @@ be_local_closure(Matter_UI_web_get_arg, /* name */ 0, /* has sup protos */ NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 7]) { /* constants */ + ( &(const bvalue[ 6]) { /* 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), + /* 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_get_arg), + be_str_weak(web_add_config_button), &be_const_str_solidified, - ( &(const binstruction[17]) { /* code */ + ( &(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 - 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 - 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 - }) - ) -); -/*******************************************************************/ - - -/******************************************************************** -** Solidified function: web_sensor -********************************************************************/ -be_local_closure(Matter_UI_web_sensor, /* name */ - be_nested_proto( - 13, /* nstack */ - 1, /* argc */ - 2, /* varg */ - 0, /* has upvals */ - NULL, /* no upvals */ - 0, /* has sup protos */ - NULL, /* no sub protos */ - 1, /* has constants */ - ( &(const bvalue[25]) { /* constants */ - /* K0 */ be_nested_str_weak(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(device), - /* K7 */ be_nested_str_weak(is_root_commissioning_open), - /* K8 */ be_nested_str_weak(show_commissioning_info), - /* K9 */ be_nested_str_weak(sessions), - /* K10 */ be_nested_str_weak(count_active_fabrics), - /* K11 */ be_const_int(0), - /* K12 */ be_nested_str_weak(content_send), - /* K13 */ be_nested_str_weak(format), - /* K14 */ be_nested_str_weak(_X3Cdiv_X20style_X3D_X27text_X2Dalign_X3Aright_X3Bfont_X2Dsize_X3A11px_X3Bcolor_X3A_X23aaa_X3B_X27_X3E_X25s_X3C_X2Fdiv_X3E), - /* K15 */ be_nested_str_weak(No_X20active_X20association), - /* K16 */ be_const_int(1), - /* K17 */ be_nested_str_weak(_X20active_X20association), - /* K18 */ be_nested_str_weak(s), - /* K19 */ be_nested_str_weak(), - /* K20 */ be_nested_str_weak(_X3Cbutton_X20onclick_X3D_X27la_X28_X22_X26mtc_X25i_X3D1_X22_X29_X3B_X27_X3E), - /* K21 */ be_nested_str_weak(commissioning_open), - /* K22 */ be_nested_str_weak(_LOGO), - /* K23 */ be_nested_str_weak(_X20Open_X20Commissioning_X3C_X2Fbutton_X3E), - /* K24 */ be_nested_str_weak(_X20Close_X20Commissioning_X3C_X2Fbutton_X3E), - }), - be_str_weak(web_sensor), - &be_const_str_solidified, - ( &(const binstruction[72]) { /* code */ - 0xA4060000, // 0000 IMPORT R1 K0 - 0xA40A0200, // 0001 IMPORT R2 K1 - 0xB80E0400, // 0002 GETNGBL R3 K2 - 0x8C0C0703, // 0003 GETMET R3 R3 K3 - 0xB8160800, // 0004 GETNGBL R5 K4 - 0x88140B05, // 0005 GETMBR R5 R5 K5 - 0x7C0C0400, // 0006 CALL R3 2 - 0x780E003E, // 0007 JMPF R3 #0047 - 0x88100106, // 0008 GETMBR R4 R0 K6 - 0x8C100907, // 0009 GETMET R4 R4 K7 - 0x7C100200, // 000A CALL R4 1 - 0x78120001, // 000B JMPF R4 #000E - 0x8C100108, // 000C GETMET R4 R0 K8 - 0x7C100200, // 000D CALL R4 1 - 0x88100106, // 000E GETMBR R4 R0 K6 - 0x88100909, // 000F GETMBR R4 R4 K9 - 0x8C10090A, // 0010 GETMET R4 R4 K10 - 0x7C100200, // 0011 CALL R4 1 - 0x1C14090B, // 0012 EQ R5 R4 K11 - 0x78160006, // 0013 JMPF R5 #001B - 0x8C14030C, // 0014 GETMET R5 R1 K12 - 0x8C1C050D, // 0015 GETMET R7 R2 K13 - 0x5824000E, // 0016 LDCONST R9 K14 - 0x5828000F, // 0017 LDCONST R10 K15 - 0x7C1C0600, // 0018 CALL R7 3 - 0x7C140400, // 0019 CALL R5 2 - 0x7002000E, // 001A JMP #002A - 0x24140910, // 001B GT R5 R4 K16 - 0x8C18030C, // 001C GETMET R6 R1 K12 - 0x8C20050D, // 001D GETMET R8 R2 K13 - 0x5828000E, // 001E LDCONST R10 K14 - 0x602C0008, // 001F GETGBL R11 G8 - 0x5C300800, // 0020 MOVE R12 R4 - 0x7C2C0200, // 0021 CALL R11 1 - 0x002C1711, // 0022 ADD R11 R11 K17 - 0x78160001, // 0023 JMPF R5 #0026 - 0x58300012, // 0024 LDCONST R12 K18 - 0x70020000, // 0025 JMP #0027 - 0x58300013, // 0026 LDCONST R12 K19 - 0x002C160C, // 0027 ADD R11 R11 R12 - 0x7C200600, // 0028 CALL R8 3 - 0x7C180400, // 0029 CALL R6 2 - 0x8C14030C, // 002A GETMET R5 R1 K12 - 0x8C1C050D, // 002B GETMET R7 R2 K13 - 0x58240014, // 002C LDCONST R9 K20 - 0x88280106, // 002D GETMBR R10 R0 K6 - 0x88281515, // 002E GETMBR R10 R10 K21 - 0x4C2C0000, // 002F LDNIL R11 - 0x1C28140B, // 0030 EQ R10 R10 R11 - 0x782A0001, // 0031 JMPF R10 #0034 - 0x58280010, // 0032 LDCONST R10 K16 - 0x70020000, // 0033 JMP #0035 - 0x5828000B, // 0034 LDCONST R10 K11 - 0x7C1C0600, // 0035 CALL R7 3 - 0x7C140400, // 0036 CALL R5 2 - 0x8C14030C, // 0037 GETMET R5 R1 K12 - 0xB81E0800, // 0038 GETNGBL R7 K4 - 0x881C0F16, // 0039 GETMBR R7 R7 K22 - 0x7C140400, // 003A CALL R5 2 - 0x88140106, // 003B GETMBR R5 R0 K6 - 0x88140B15, // 003C GETMBR R5 R5 K21 - 0x4C180000, // 003D LDNIL R6 - 0x1C140A06, // 003E EQ R5 R5 R6 - 0x78160003, // 003F JMPF R5 #0044 - 0x8C14030C, // 0040 GETMET R5 R1 K12 - 0x581C0017, // 0041 LDCONST R7 K23 - 0x7C140400, // 0042 CALL R5 2 - 0x70020002, // 0043 JMP #0047 - 0x8C14030C, // 0044 GETMET R5 R1 K12 - 0x581C0018, // 0045 LDCONST R7 K24 - 0x7C140400, // 0046 CALL R5 2 - 0x80000000, // 0047 RET 0 + 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 }) ) ); @@ -1640,88 +1306,477 @@ be_local_closure(Matter_UI_show_qrcode, /* name */ /******************************************************************** -** Solidified function: web_add_handler +** Solidified function: plugin_option ********************************************************************/ -be_local_closure(Matter_UI_web_add_handler, /* name */ +be_local_closure(Matter_UI_plugin_option, /* name */ be_nested_proto( - 7, /* nstack */ + 17, /* nstack */ + 3, /* 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(webserver), + /* K1 */ be_nested_str_weak(string), + /* K2 */ be_nested_str_weak(split), + /* K3 */ be_nested_str_weak(_X7C), + /* K4 */ be_const_int(0), + /* K5 */ be_nested_str_weak(), + /* 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_const_int(1), + }), + be_str_weak(plugin_option), + &be_const_str_solidified, + ( &(const binstruction[42]) { /* code */ + 0xA40E0000, // 0000 IMPORT R3 K0 + 0xA4120200, // 0001 IMPORT R4 K1 + 0x780A0004, // 0002 JMPF R2 #0008 + 0x8C140902, // 0003 GETMET R5 R4 K2 + 0x5C1C0400, // 0004 MOVE R7 R2 + 0x58200003, // 0005 LDCONST R8 K3 + 0x7C140600, // 0006 CALL R5 3 + 0x70020001, // 0007 JMP #000A + 0x60140012, // 0008 GETGBL R5 G18 + 0x7C140000, // 0009 CALL R5 0 + 0x58180004, // 000A LDCONST R6 K4 + 0x601C000C, // 000B GETGBL R7 G12 + 0x5C200A00, // 000C MOVE R8 R5 + 0x7C1C0200, // 000D CALL R7 1 + 0x141C0C07, // 000E LT R7 R6 R7 + 0x781E0018, // 000F JMPF R7 #0029 + 0x941C0A06, // 0010 GETIDX R7 R5 R6 + 0x1C200F05, // 0011 EQ R8 R7 K5 + 0x78220003, // 0012 JMPF R8 #0017 + 0x8C200706, // 0013 GETMET R8 R3 K6 + 0x58280007, // 0014 LDCONST R10 K7 + 0x7C200400, // 0015 CALL R8 2 + 0x7002000F, // 0016 JMP #0027 + 0x88200108, // 0017 GETMBR R8 R0 K8 + 0x8C201109, // 0018 GETMET R8 R8 K9 + 0x5C280E00, // 0019 MOVE R10 R7 + 0x7C200400, // 001A CALL R8 2 + 0x8C240706, // 001B GETMET R9 R3 K6 + 0x8C2C090A, // 001C GETMET R11 R4 K10 + 0x5834000B, // 001D LDCONST R13 K11 + 0x5C380E00, // 001E MOVE R14 R7 + 0x1C3C0E01, // 001F EQ R15 R7 R1 + 0x783E0001, // 0020 JMPF R15 #0023 + 0x583C000C, // 0021 LDCONST R15 K12 + 0x70020000, // 0022 JMP #0024 + 0x583C0005, // 0023 LDCONST R15 K5 + 0x5C401000, // 0024 MOVE R16 R8 + 0x7C2C0A00, // 0025 CALL R11 5 + 0x7C240400, // 0026 CALL R9 2 + 0x00180D0D, // 0027 ADD R6 R6 K13 + 0x7001FFE1, // 0028 JMP #000B + 0x80000000, // 0029 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: web_sensor +********************************************************************/ +be_local_closure(Matter_UI_web_sensor, /* name */ + be_nested_proto( + 13, /* 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 - }) - ), - }), + 0, /* has sup protos */ + NULL, /* no sub protos */ 1, /* has constants */ - ( &(const bvalue[ 5]) { /* constants */ + ( &(const bvalue[25]) { /* 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), + /* 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(device), + /* K7 */ be_nested_str_weak(is_root_commissioning_open), + /* K8 */ be_nested_str_weak(show_commissioning_info), + /* K9 */ be_nested_str_weak(sessions), + /* K10 */ be_nested_str_weak(count_active_fabrics), + /* K11 */ be_const_int(0), + /* K12 */ be_nested_str_weak(content_send), + /* K13 */ be_nested_str_weak(format), + /* K14 */ be_nested_str_weak(_X3Cdiv_X20style_X3D_X27text_X2Dalign_X3Aright_X3Bfont_X2Dsize_X3A11px_X3Bcolor_X3A_X23aaa_X3B_X27_X3E_X25s_X3C_X2Fdiv_X3E), + /* K15 */ be_nested_str_weak(No_X20active_X20association), + /* K16 */ be_const_int(1), + /* K17 */ be_nested_str_weak(_X20active_X20association), + /* K18 */ be_nested_str_weak(s), + /* K19 */ be_nested_str_weak(), + /* K20 */ be_nested_str_weak(_X3Cbutton_X20onclick_X3D_X27la_X28_X22_X26mtc_X25i_X3D1_X22_X29_X3B_X27_X3E), + /* K21 */ be_nested_str_weak(commissioning_open), + /* K22 */ be_nested_str_weak(_LOGO), + /* K23 */ be_nested_str_weak(_X20Open_X20Commissioning_X3C_X2Fbutton_X3E), + /* K24 */ be_nested_str_weak(_X20Close_X20Commissioning_X3C_X2Fbutton_X3E), }), - be_str_weak(web_add_handler), + be_str_weak(web_sensor), &be_const_str_solidified, - ( &(const binstruction[13]) { /* code */ + ( &(const binstruction[72]) { /* 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 + 0xA40A0200, // 0001 IMPORT R2 K1 + 0xB80E0400, // 0002 GETNGBL R3 K2 + 0x8C0C0703, // 0003 GETMET R3 R3 K3 + 0xB8160800, // 0004 GETNGBL R5 K4 + 0x88140B05, // 0005 GETMBR R5 R5 K5 + 0x7C0C0400, // 0006 CALL R3 2 + 0x780E003E, // 0007 JMPF R3 #0047 + 0x88100106, // 0008 GETMBR R4 R0 K6 + 0x8C100907, // 0009 GETMET R4 R4 K7 + 0x7C100200, // 000A CALL R4 1 + 0x78120001, // 000B JMPF R4 #000E + 0x8C100108, // 000C GETMET R4 R0 K8 + 0x7C100200, // 000D CALL R4 1 + 0x88100106, // 000E GETMBR R4 R0 K6 + 0x88100909, // 000F GETMBR R4 R4 K9 + 0x8C10090A, // 0010 GETMET R4 R4 K10 + 0x7C100200, // 0011 CALL R4 1 + 0x1C14090B, // 0012 EQ R5 R4 K11 + 0x78160006, // 0013 JMPF R5 #001B + 0x8C14030C, // 0014 GETMET R5 R1 K12 + 0x8C1C050D, // 0015 GETMET R7 R2 K13 + 0x5824000E, // 0016 LDCONST R9 K14 + 0x5828000F, // 0017 LDCONST R10 K15 + 0x7C1C0600, // 0018 CALL R7 3 + 0x7C140400, // 0019 CALL R5 2 + 0x7002000E, // 001A JMP #002A + 0x24140910, // 001B GT R5 R4 K16 + 0x8C18030C, // 001C GETMET R6 R1 K12 + 0x8C20050D, // 001D GETMET R8 R2 K13 + 0x5828000E, // 001E LDCONST R10 K14 + 0x602C0008, // 001F GETGBL R11 G8 + 0x5C300800, // 0020 MOVE R12 R4 + 0x7C2C0200, // 0021 CALL R11 1 + 0x002C1711, // 0022 ADD R11 R11 K17 + 0x78160001, // 0023 JMPF R5 #0026 + 0x58300012, // 0024 LDCONST R12 K18 + 0x70020000, // 0025 JMP #0027 + 0x58300013, // 0026 LDCONST R12 K19 + 0x002C160C, // 0027 ADD R11 R11 R12 + 0x7C200600, // 0028 CALL R8 3 + 0x7C180400, // 0029 CALL R6 2 + 0x8C14030C, // 002A GETMET R5 R1 K12 + 0x8C1C050D, // 002B GETMET R7 R2 K13 + 0x58240014, // 002C LDCONST R9 K20 + 0x88280106, // 002D GETMBR R10 R0 K6 + 0x88281515, // 002E GETMBR R10 R10 K21 + 0x4C2C0000, // 002F LDNIL R11 + 0x1C28140B, // 0030 EQ R10 R10 R11 + 0x782A0001, // 0031 JMPF R10 #0034 + 0x58280010, // 0032 LDCONST R10 K16 + 0x70020000, // 0033 JMP #0035 + 0x5828000B, // 0034 LDCONST R10 K11 + 0x7C1C0600, // 0035 CALL R7 3 + 0x7C140400, // 0036 CALL R5 2 + 0x8C14030C, // 0037 GETMET R5 R1 K12 + 0xB81E0800, // 0038 GETNGBL R7 K4 + 0x881C0F16, // 0039 GETMBR R7 R7 K22 + 0x7C140400, // 003A CALL R5 2 + 0x88140106, // 003B GETMBR R5 R0 K6 + 0x88140B15, // 003C GETMBR R5 R5 K21 + 0x4C180000, // 003D LDNIL R6 + 0x1C140A06, // 003E EQ R5 R5 R6 + 0x78160003, // 003F JMPF R5 #0044 + 0x8C14030C, // 0040 GETMET R5 R1 K12 + 0x581C0017, // 0041 LDCONST R7 K23 + 0x7C140400, // 0042 CALL R5 2 + 0x70020002, // 0043 JMP #0047 + 0x8C14030C, // 0044 GETMET R5 R1 K12 + 0x581C0018, // 0045 LDCONST R7 K24 + 0x7C140400, // 0046 CALL R5 2 + 0x80000000, // 0047 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: show_fabric_info +********************************************************************/ +be_local_closure(Matter_UI_show_fabric_info, /* name */ + be_nested_proto( + 16, /* nstack */ + 1, /* argc */ + 2, /* varg */ + 0, /* has upvals */ + NULL, /* no upvals */ + 0, /* has sup protos */ + NULL, /* no sub protos */ + 1, /* has constants */ + ( &(const bvalue[30]) { /* 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_X3BFabrics_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E), + /* K4 */ be_nested_str_weak(_X3Cp_X3EAssociated_X20fabrics_X3A_X3C_X2Fp_X3E), + /* K5 */ be_nested_str_weak(device), + /* K6 */ be_nested_str_weak(sessions), + /* K7 */ be_const_int(0), + /* K8 */ be_nested_str_weak(_X3Cp_X3E_X3Cb_X3ENone_X3C_X2Fb_X3E_X3C_X2Fp_X3E), + /* K9 */ be_nested_str_weak(fabrics), + /* K10 */ be_nested_str_weak(persistables), + /* K11 */ be_nested_str_weak(_X3Chr_X3E), + /* K12 */ be_nested_str_weak(fabric_label), + /* K13 */ be_nested_str_weak(_X3CNo_X20label_X3E), + /* K14 */ be_nested_str_weak(html_escape), + /* K15 */ be_nested_str_weak(format), + /* K16 */ be_nested_str_weak(_X3Cfieldset_X3E_X3Clegend_X3E_X3Cb_X3E_X26nbsp_X3B_X23_X25i_X20_X25s_X26nbsp_X3B_X3C_X2Fb_X3E_X3C_X2Flegend_X3E_X3Cp_X3E_X3C_X2Fp_X3E), + /* K17 */ be_nested_str_weak(get_fabric_index), + /* K18 */ be_nested_str_weak(get_fabric_id), + /* K19 */ be_nested_str_weak(copy), + /* K20 */ be_nested_str_weak(reverse), + /* K21 */ be_nested_str_weak(get_device_id), + /* 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_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), + /* K29 */ be_nested_str_weak(stop_iteration), + }), + 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 }) ) ); @@ -1734,24 +1789,25 @@ be_local_closure(Matter_UI_web_add_handler, /* name */ be_local_class(Matter_UI, 1, NULL, - be_nested_map(16, + be_nested_map(17, ( (struct bmapnode*) &(const bmapnode[]) { - { 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(show_plugins_configuration, -1), be_const_closure(Matter_UI_show_plugins_configuration_closure) }, + { be_const_key_weak(_CLASSES_TYPES, 2), be_nested_str_weak(_X7Crelay_X7Clight0_X7Clight1_X7Clight2_X7Clight3_X7Cshutter_X7Ctemperature_X7Cpressure_X7Cilluminance_X7Chumidity) }, + { be_const_key_weak(show_fabric_info, 7), be_const_closure(Matter_UI_show_fabric_info_closure) }, + { be_const_key_weak(init, -1), be_const_closure(Matter_UI_init_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(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(_ROOT_TYPES, 11), be_nested_str_weak(root) }, + { be_const_key_weak(show_commissioning_info, 16), be_const_closure(Matter_UI_show_commissioning_info_closure) }, + { be_const_key_weak(device, -1), be_const_var(0) }, + { be_const_key_weak(web_add_config_button, -1), be_const_closure(Matter_UI_web_add_config_button_closure) }, + { be_const_key_weak(page_part_ctl, 5), be_const_closure(Matter_UI_page_part_ctl_closure) }, + { be_const_key_weak(web_get_arg, 13), be_const_closure(Matter_UI_web_get_arg_closure) }, + { be_const_key_weak(web_sensor, 12), be_const_closure(Matter_UI_web_sensor_closure) }, + { be_const_key_weak(show_enable, 14), be_const_closure(Matter_UI_show_enable_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_const_key_weak(show_qrcode, -1), be_const_closure(Matter_UI_show_qrcode_closure) }, + { be_const_key_weak(page_part_mgr, 3), be_const_closure(Matter_UI_page_part_mgr_closure) }, + { be_const_key_weak(show_passcode_form, -1), be_const_closure(Matter_UI_show_passcode_form_closure) }, })), be_str_weak(Matter_UI) );