Matter size optimization (#21590)

This commit is contained in:
s-hadinger 2024-06-07 20:44:17 +02:00 committed by GitHub
parent 5a1ae70549
commit 02cd72403d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
59 changed files with 8439 additions and 8889 deletions

View File

@ -12,7 +12,7 @@ import sys
sys.path().push('src/embedded') # allow to import from src/embedded
# globals that need to exist to make compilation succeed
var globs = "path,ctypes_bytes_dyn,tasmota,ccronexpr,gpio,light,webclient,load,MD5,lv,light_state,udp,tcpclientasync,"
var globs = "path,ctypes_bytes_dyn,tasmota,ccronexpr,gpio,light,webclient,load,MD5,lv,light_state,udp,tcpclientasync,log,"
"lv_clock,lv_clock_icon,lv_signal_arcs,lv_signal_bars,lv_wifi_arcs_icon,lv_wifi_arcs,"
"lv_wifi_bars_icon,lv_wifi_bars,"
"_lvgl,"

View File

@ -45,7 +45,7 @@ class Matter_Commisioning_Context
#############################################################
def add_session(local_session_id, initiator_session_id, i2r, r2i, ac)
# create session object
tasmota.log(format("MTR: add_session local_session_id=%i initiator_session_id=%i", local_session_id, initiator_session_id), 4)
log(format("MTR: add_session local_session_id=%i initiator_session_id=%i", local_session_id, initiator_session_id), 4)
var session = self.device.sessions.create_session(local_session_id, initiator_session_id)
session.set_keys(i2r, r2i, ac)
@ -54,11 +54,11 @@ class Matter_Commisioning_Context
def process_incoming(msg)
#
if !self.device.is_commissioning_open() && msg.opcode >= 0x20 && msg.opcode <= 0x24
tasmota.log("MTR: commissioning not open", 2)
log("MTR: commissioning not open", 2)
return false
end
# tasmota.log("MTR: received message " + matter.inspect(msg), 4)
# log("MTR: received message " + matter.inspect(msg), 4)
if msg.opcode == 0x10
# don't need to do anything, the message is acked already before this call
elif msg.opcode == 0x20
@ -74,7 +74,7 @@ class Matter_Commisioning_Context
elif msg.opcode == 0x40
return self.parse_StatusReport(msg)
else
tasmota.log(format("MTR: >????????? Unknown OpCode (secure channel) %02X", msg.opcode), 2)
log(format("MTR: >????????? Unknown OpCode (secure channel) %02X", msg.opcode), 2)
return false
end
@ -109,8 +109,8 @@ class Matter_Commisioning_Context
var session = msg.session
# sanity checks
if msg.opcode != 0x20 || msg.local_session_id != 0 || msg.protocol_id != 0
tasmota.log("MTR: invalid PBKDFParamRequest message", 2)
tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 3)
log("MTR: invalid PBKDFParamRequest message", 2)
log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 3)
self.send_status_report(msg, 0x01, 0x0000, 0x0002, false)
return false
end
@ -121,8 +121,8 @@ class Matter_Commisioning_Context
# sanity check for PBKDFParamRequest
if pbkdfparamreq.passcodeId != 0
tasmota.log("MTR: non-zero passcode id", 2)
tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 3)
log("MTR: non-zero passcode id", 2)
log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 3)
self.send_status_report(msg, 0x01, 0x0000, 0x0002, false)
return false
end
@ -130,7 +130,7 @@ class Matter_Commisioning_Context
# record the initiator_session_id
session.__future_initiator_session_id = pbkdfparamreq.initiator_session_id
session.__future_local_session_id = self.device.sessions.gen_local_session_id()
tasmota.log(format("MTR: +Session (%6i) from '[%s]:%i'", session.__future_local_session_id, msg.remote_ip, msg.remote_port), 3)
log(format("MTR: +Session (%6i) from '[%s]:%i'", session.__future_local_session_id, msg.remote_ip, msg.remote_port), 3)
# prepare response
var pbkdfparamresp = matter.PBKDFParamResponse()
@ -141,9 +141,9 @@ class Matter_Commisioning_Context
pbkdfparamresp.responderSessionId = session.__future_local_session_id
pbkdfparamresp.pbkdf_parameters_salt = self.device.commissioning_salt
pbkdfparamresp.pbkdf_parameters_iterations = self.device.commissioning_iterations
# tasmota.log("MTR: pbkdfparamresp: " + str(matter.inspect(pbkdfparamresp)), 4)
# log("MTR: pbkdfparamresp: " + str(matter.inspect(pbkdfparamresp)), 4)
var pbkdfparamresp_raw = pbkdfparamresp.tlv2raw()
# tasmota.log("MTR: pbkdfparamresp_raw: " + pbkdfparamresp_raw.tohex(), 4)
# log("MTR: pbkdfparamresp_raw: " + pbkdfparamresp_raw.tohex(), 4)
session.__Msg2 = pbkdfparamresp_raw
@ -160,15 +160,15 @@ class Matter_Commisioning_Context
var session = msg.session
# sanity checks
if msg.opcode != 0x22 || msg.local_session_id != 0 || msg.protocol_id != 0
tasmota.log("MTR: invalid Pake1 message", 3)
tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 3)
log("MTR: invalid Pake1 message", 3)
log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 3)
self.send_status_report(msg, 0x01, 0x0000, 0x0002, false)
return false
end
var pake1 = matter.Pake1().parse(msg.raw, msg.app_payload_idx)
var pA = pake1.pA
# tasmota.log("MTR: received pA=" + pA.tohex(), 4)
# log("MTR: received pA=" + pA.tohex(), 4)
# instanciate SPAKE
# for testing purpose, we don't send `w1` to make sure
@ -179,13 +179,13 @@ class Matter_Commisioning_Context
# compute pB
spake.compute_pB(y)
# tasmota.log("MTR: y=" + y.tohex(), 4)
# tasmota.log("MTR: pb=" + spake.pB.tohex(), 4)
# log("MTR: y=" + y.tohex(), 4)
# log("MTR: pb=" + spake.pB.tohex(), 4)
# compute ZV
spake.compute_ZV_verifier(pA)
# tasmota.log("MTR: Z=" + spake.Z.tohex(), 4)
# tasmota.log("MTR: V=" + spake.V.tohex(), 4)
# log("MTR: Z=" + spake.Z.tohex(), 4)
# log("MTR: V=" + spake.V.tohex(), 4)
var context = crypto.SHA256()
context.update(bytes().fromstring(self.Matter_Context_Prefix))
@ -193,7 +193,7 @@ class Matter_Commisioning_Context
context.update(session.__Msg2)
var context_hash = context.out()
# tasmota.log("MTR: Context=" + context_hash.tohex(), 4)
# log("MTR: Context=" + context_hash.tohex(), 4)
# add pA
spake.pA = pA
@ -201,31 +201,31 @@ class Matter_Commisioning_Context
spake.set_context(context_hash)
spake.compute_TT_hash(true) # `true` to indicate it's Matter variant to SPAKE2+
# tasmota.log("MTR: ------------------------------", 4)
# tasmota.log("MTR: Context = " + spake.Context.tohex(), 4)
# tasmota.log("MTR: M = " + spake.M.tohex(), 4)
# tasmota.log("MTR: N = " + spake.N.tohex(), 4)
# tasmota.log("MTR: pA = " + spake.pA.tohex(), 4)
# tasmota.log("MTR: pB = " + spake.pB.tohex(), 4)
# tasmota.log("MTR: Z = " + spake.Z.tohex(), 4)
# tasmota.log("MTR: V = " + spake.V.tohex(), 4)
# tasmota.log("MTR: w0 = " + spake.w0.tohex(), 4)
# tasmota.log("MTR: ------------------------------", 4)
# log("MTR: ------------------------------", 4)
# log("MTR: Context = " + spake.Context.tohex(), 4)
# log("MTR: M = " + spake.M.tohex(), 4)
# log("MTR: N = " + spake.N.tohex(), 4)
# log("MTR: pA = " + spake.pA.tohex(), 4)
# log("MTR: pB = " + spake.pB.tohex(), 4)
# log("MTR: Z = " + spake.Z.tohex(), 4)
# log("MTR: V = " + spake.V.tohex(), 4)
# log("MTR: w0 = " + spake.w0.tohex(), 4)
# log("MTR: ------------------------------", 4)
# tasmota.log("MTR: Kmain =" + spake.Kmain.tohex(), 4)
# log("MTR: Kmain =" + spake.Kmain.tohex(), 4)
# tasmota.log("MTR: KcA =" + spake.KcA.tohex(), 4)
# tasmota.log("MTR: KcB =" + spake.KcB.tohex(), 4)
# tasmota.log("MTR: K_shared=" + spake.K_shared.tohex(), 4)
# tasmota.log("MTR: Ke =" + spake.Ke.tohex(), 4)
# tasmota.log("MTR: cB=" + spake.cB.tohex(), 4)
# log("MTR: KcA =" + spake.KcA.tohex(), 4)
# log("MTR: KcB =" + spake.KcB.tohex(), 4)
# log("MTR: K_shared=" + spake.K_shared.tohex(), 4)
# log("MTR: Ke =" + spake.Ke.tohex(), 4)
# log("MTR: cB=" + spake.cB.tohex(), 4)
var pake2 = matter.Pake2()
pake2.pB = spake.pB
pake2.cB = spake.cB
# tasmota.log("MTR: pake2: " + matter.inspect(pake2), 4)
# log("MTR: pake2: " + matter.inspect(pake2), 4)
var pake2_raw = pake2.tlv2raw()
# tasmota.log("MTR: pake2_raw: " + pake2_raw.tohex(), 4)
# log("MTR: pake2_raw: " + pake2_raw.tohex(), 4)
session.__spake_cA = spake.cA
session.__spake_Ke = spake.Ke
@ -235,7 +235,7 @@ class Matter_Commisioning_Context
var raw = resp.encode_frame(pake2_raw)
# log the fact that a new commissioning is starting
tasmota.log(format("MTR: New Commissioning (PASE id=%i) from [%s]:%i", session.__future_local_session_id, session._ip, session._port), 2)
log(format("MTR: New Commissioning (PASE id=%i) from [%s]:%i", session.__future_local_session_id, session._ip, session._port), 2)
self.responder.send_response_frame(resp)
return true
@ -246,20 +246,20 @@ class Matter_Commisioning_Context
var session = msg.session
# sanity checks
if msg.opcode != 0x24 || msg.local_session_id != 0 || msg.protocol_id != 0
tasmota.log("MTR: invalid Pake3 message", 3)
tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 3)
log("MTR: invalid Pake3 message", 3)
log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 3)
self.send_status_report(msg, 0x01, 0x0000, 0x0002, false)
return false
end
var pake3 = matter.Pake3().parse(msg.raw, msg.app_payload_idx)
var cA = pake3.cA
# tasmota.log("MTR: received cA=" + cA.tohex(), 4)
# log("MTR: received cA=" + cA.tohex(), 4)
# check the value against computed
if cA != session.__spake_cA
tasmota.log("MTR: invalid cA received", 3)
tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 3)
log("MTR: invalid cA received", 3)
log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 3)
self.send_status_report(msg, 0x01, 0x0000, 0x0002, false)
return false
end
@ -271,12 +271,12 @@ class Matter_Commisioning_Context
var R2IKey = session_keys[16..31]
var AttestationChallenge = session_keys[32..47]
# tasmota.log("MTR: ******************************", 4)
# tasmota.log("MTR: session_keys=" + session_keys.tohex(), 4)
# tasmota.log("MTR: I2RKey =" + I2RKey.tohex(), 4)
# tasmota.log("MTR: R2IKey =" + R2IKey.tohex(), 4)
# tasmota.log("MTR: AC =" + AttestationChallenge.tohex(), 4)
# tasmota.log("MTR: ******************************", 4)
# log("MTR: ******************************", 4)
# log("MTR: session_keys=" + session_keys.tohex(), 4)
# log("MTR: I2RKey =" + I2RKey.tohex(), 4)
# log("MTR: R2IKey =" + R2IKey.tohex(), 4)
# log("MTR: AC =" + AttestationChallenge.tohex(), 4)
# log("MTR: ******************************", 4)
# StatusReport(GeneralCode: SUCCESS, ProtocolId: SECURE_CHANNEL, ProtocolCode: SESSION_ESTABLISHMENT_SUCCESS)
self.send_status_report(msg, 0x00, 0x0000, 0x0000, false)
@ -290,20 +290,20 @@ class Matter_Commisioning_Context
# Validate Sigma1 Destination ID, p.162
# traverse all existing fabrics
if tasmota.loglevel(4)
tasmota.log("MTR: SEARCHING: destinationId=" + destinationId.tohex(), 4)
log("MTR: SEARCHING: destinationId=" + destinationId.tohex(), 4)
end
for fabric : self.device.sessions.fabrics
if fabric.noc == nil || fabric.fabric_id == nil || fabric.device_id == nil continue end
# compute candidateDestinationId, Section 4.13.2.4.1, "Destination Identifier"
var destinationMessage = initiatorRandom + fabric.get_ca_pub() + fabric.fabric_id + fabric.device_id
var key = fabric.get_ipk_group_key()
# tasmota.log("MTR: SIGMA1: destinationMessage=" + destinationMessage.tohex(), 4)
# tasmota.log("MTR: SIGMA1: key_ipk=" + key.tohex(), 4)
# log("MTR: SIGMA1: destinationMessage=" + destinationMessage.tohex(), 4)
# log("MTR: SIGMA1: key_ipk=" + key.tohex(), 4)
var h = crypto.HMAC_SHA256(key)
h.update(destinationMessage)
var candidateDestinationId = h.out()
if tasmota.loglevel(4)
tasmota.log("MTR: SIGMA1: candidateDestinationId=" + candidateDestinationId.tohex(), 4)
log("MTR: SIGMA1: candidateDestinationId=" + candidateDestinationId.tohex(), 4)
end
if candidateDestinationId == destinationId
return fabric
@ -311,7 +311,7 @@ class Matter_Commisioning_Context
end
# TODO if there is only 1 fabric, we can try to use it anyways
# if size(self.device.sessions.fabrics) == 1
# tasmota.log("MTR: *** Could not find fabric, trying only fabric in store", 2)
# log("MTR: *** Could not find fabric, trying only fabric in store", 2)
# return self.device.sessions.fabrics[0]
# end
return nil
@ -322,19 +322,19 @@ class Matter_Commisioning_Context
var session = msg.session
# sanity checks
if msg.opcode != 0x30 || msg.local_session_id != 0 || msg.protocol_id != 0
# tasmota.log("MTR: invalid Sigma1 message", 3)
tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 3)
# log("MTR: invalid Sigma1 message", 3)
log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 3)
self.send_status_report(msg, 0x01, 0x0000, 0x0002, false)
return false
end
var sigma1 = matter.Sigma1().parse(msg.raw, msg.app_payload_idx)
# tasmota.log(format("MTR: sigma1=%s", matter.inspect(sigma1)), 4)
# log(format("MTR: sigma1=%s", matter.inspect(sigma1)), 4)
session.__initiator_pub = sigma1.initiatorEphPubKey
# find session
var is_resumption = (sigma1.resumptionID != nil && sigma1.initiatorResumeMIC != nil)
# tasmota.log(format("MTR: is_resumption=%i", is_resumption ? 1 : 0), 4)
# log(format("MTR: is_resumption=%i", is_resumption ? 1 : 0), 4)
# TODO disable resumption until fixed
is_resumption = false
@ -342,7 +342,7 @@ class Matter_Commisioning_Context
var session_resumption
if is_resumption
session_resumption = self.device.sessions.find_session_by_resumption_id(sigma1.resumptionID)
# tasmota.log(format("MTR: session_resumption found session=%s session_resumption=%s", matter.inspect(session), matter.inspect(session_resumption)), 4)
# log(format("MTR: session_resumption found session=%s session_resumption=%s", matter.inspect(session), matter.inspect(session_resumption)), 4)
if session_resumption == nil || session_resumption._fabric == nil
is_resumption = false
end
@ -362,19 +362,19 @@ class Matter_Commisioning_Context
var Resume1MICPayload = ec.decrypt(encrypted)
var decrypted_tag = ec.tag()
# tasmota.log("****************************************", 4)
# tasmota.log("MTR: * s1rk = " + s1rk.tohex(), 4)
# tasmota.log("MTR: * tag = " + tag.tohex(), 4)
# tasmota.log("MTR: * Resume1MICPayload = " + Resume1MICPayload.tohex(), 4)
# tasmota.log("MTR: * decrypted_tag = " + decrypted_tag.tohex(), 4)
# tasmota.log("****************************************", 4)
# log("****************************************", 4)
# log("MTR: * s1rk = " + s1rk.tohex(), 4)
# log("MTR: * tag = " + tag.tohex(), 4)
# log("MTR: * Resume1MICPayload = " + Resume1MICPayload.tohex(), 4)
# log("MTR: * decrypted_tag = " + decrypted_tag.tohex(), 4)
# log("****************************************", 4)
if tag == decrypted_tag
session._fabric = session_resumption._fabric
session._source_node_id = msg.source_node_id
session.set_mode_CASE()
session.__future_initiator_session_id = sigma1.initiator_session_id # update initiator_session_id
session.__future_local_session_id = self.device.sessions.gen_local_session_id()
tasmota.log(format("MTR: +Session (%6i) from '[%s]:%i'", session.__future_local_session_id, msg.remote_ip, msg.remote_port), 3)
log(format("MTR: +Session (%6i) from '[%s]:%i'", session.__future_local_session_id, msg.remote_ip, msg.remote_port), 3)
# Generate and Send Sigma2_Resume
session.shared_secret = session_resumption.shared_secret
@ -395,13 +395,13 @@ class Matter_Commisioning_Context
sigma2resume.responderSessionID = session.__future_local_session_id
sigma2resume.sigma2ResumeMIC = Resume2MIC
# tasmota.log("****************************************", 4)
# tasmota.log("MTR: * s2rk = " + s2rk.tohex(), 4)
# tasmota.log("MTR: * s2rk_salt = " + s2rk_salt.tohex(), 4)
# tasmota.log("MTR: * new_resumption_id = " + session.resumption_id.tohex(), 4)
# tasmota.log("MTR: * responderSessionID= " + str(session.__future_local_session_id), 4)
# tasmota.log("MTR: * sigma2ResumeMIC = " + Resume2MIC.tohex(), 4)
# tasmota.log("****************************************", 4)
# log("****************************************", 4)
# log("MTR: * s2rk = " + s2rk.tohex(), 4)
# log("MTR: * s2rk_salt = " + s2rk_salt.tohex(), 4)
# log("MTR: * new_resumption_id = " + session.resumption_id.tohex(), 4)
# log("MTR: * responderSessionID= " + str(session.__future_local_session_id), 4)
# log("MTR: * sigma2ResumeMIC = " + Resume2MIC.tohex(), 4)
# log("****************************************", 4)
# # compute session key, p.178
var session_keys = crypto.HKDF_SHA256().derive(session.shared_secret #- input key -#,
sigma1.initiatorRandom + session.resumption_id #- salt -#,
@ -412,16 +412,16 @@ class Matter_Commisioning_Context
var ac = session_keys[32..47]
var created = tasmota.rtc_utc()
# tasmota.log("MTR: ******************************", 4)
# tasmota.log("MTR: I2RKey =" + i2r.tohex(), 4)
# tasmota.log("MTR: R2IKey =" + r2i.tohex(), 4)
# tasmota.log("MTR: AC =" + ac.tohex(), 4)
# tasmota.log("MTR: ******************************", 4)
# log("MTR: ******************************", 4)
# log("MTR: I2RKey =" + i2r.tohex(), 4)
# log("MTR: R2IKey =" + r2i.tohex(), 4)
# log("MTR: AC =" + ac.tohex(), 4)
# log("MTR: ******************************", 4)
var sigma2resume_raw = sigma2resume.tlv2raw()
session.__Msg1 = nil
# tasmota.log("MTR: sigma2resume: " + matter.inspect(sigma2resume), 4)
# tasmota.log("MTR: sigma2resume_raw: " + sigma2resume_raw.tohex(), 4)
# log("MTR: sigma2resume: " + matter.inspect(sigma2resume), 4)
# log("MTR: sigma2resume_raw: " + sigma2resume_raw.tohex(), 4)
# now package the response message
var resp = msg.build_response(0x33 #-sigma-2-resume-#, true)
@ -453,7 +453,7 @@ class Matter_Commisioning_Context
session._fabric = fabric
if session == nil || session._fabric == nil
tasmota.log("MTR: StatusReport(GeneralCode: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: NO_SHARED_TRUST_ROOTS)", 3)
log("MTR: StatusReport(GeneralCode: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: NO_SHARED_TRUST_ROOTS)", 3)
self.send_status_report(msg, 0x01, 0x0000, 0x0001, false)
return false
end
@ -462,26 +462,26 @@ class Matter_Commisioning_Context
session.__future_initiator_session_id = sigma1.initiator_session_id # update initiator_session_id
session.__future_local_session_id = self.device.sessions.gen_local_session_id()
tasmota.log(format("MTR: +Session (%6i) from '[%s]:%i'", session.__future_local_session_id, msg.remote_ip, msg.remote_port), 3)
log(format("MTR: +Session (%6i) from '[%s]:%i'", session.__future_local_session_id, msg.remote_ip, msg.remote_port), 3)
# tasmota.log("MTR: fabric="+matter.inspect(session._fabric), 4)
# tasmota.log("MTR: no_private_key="+session.get_pk().tohex(), 4)
# tasmota.log("MTR: noc ="+session.get_noc().tohex(), 4)
# log("MTR: fabric="+matter.inspect(session._fabric), 4)
# log("MTR: no_private_key="+session.get_pk().tohex(), 4)
# log("MTR: noc ="+session.get_noc().tohex(), 4)
# if fabric.get_icac()
# tasmota.log("MTR: icac ="+fabric.get_icac().tohex(), 4)
# log("MTR: icac ="+fabric.get_icac().tohex(), 4)
# end
# tasmota.log("MTR: root_ca_cert ="+fabric.get_ca().tohex(), 4)
# log("MTR: root_ca_cert ="+fabric.get_ca().tohex(), 4)
# Compute Sigma2, p.162
session.resumption_id = crypto.random(16) # generate a new resumption id
session.__responder_priv = crypto.random(32)
session.__responder_pub = crypto.EC_P256().public_key(session.__responder_priv)
# tasmota.log("MTR: ResponderEph_priv ="+session.__responder_priv.tohex(), 4)
# tasmota.log("MTR: ResponderEph_pub ="+session.__responder_pub.tohex(), 4)
# log("MTR: ResponderEph_priv ="+session.__responder_priv.tohex(), 4)
# log("MTR: ResponderEph_pub ="+session.__responder_pub.tohex(), 4)
var responderRandom = crypto.random(32)
session.shared_secret = crypto.EC_P256().shared_key(session.__responder_priv, sigma1.initiatorEphPubKey)
# tasmota.log("MTR: * shared_secret = " + session.shared_secret.tohex(), 4)
# log("MTR: * shared_secret = " + session.shared_secret.tohex(), 4)
var sigma2_tbsdata = matter.TLV.Matter_TLV_struct()
sigma2_tbsdata.add_TLV(1, matter.TLV.B2, fabric.get_noc())
@ -490,10 +490,10 @@ class Matter_Commisioning_Context
sigma2_tbsdata.add_TLV(4, matter.TLV.B2, sigma1.initiatorEphPubKey)
var TBSData2Signature = crypto.EC_P256().ecdsa_sign_sha256(fabric.get_pk(), sigma2_tbsdata.tlv2raw())
# tasmota.log("****************************************", 4)
# tasmota.log("MTR: * fabric.get_pk = " + str(fabric.get_pk()), 4)
# tasmota.log("MTR: * sigma2_tbsdata = " + str(sigma2_tbsdata), 4)
# tasmota.log("MTR: * TBSData2Signature = " + TBSData2Signature.tohex(), 4)
# log("****************************************", 4)
# log("MTR: * fabric.get_pk = " + str(fabric.get_pk()), 4)
# log("MTR: * sigma2_tbsdata = " + str(sigma2_tbsdata), 4)
# log("MTR: * TBSData2Signature = " + TBSData2Signature.tohex(), 4)
var sigma2_tbedata = matter.TLV.Matter_TLV_struct()
sigma2_tbedata.add_TLV(1, matter.TLV.B2, fabric.get_noc())
@ -502,47 +502,47 @@ class Matter_Commisioning_Context
sigma2_tbedata.add_TLV(4, matter.TLV.B2, session.resumption_id)
# compute TranscriptHash = Crypto_Hash(message = Msg1)
# tasmota.log("****************************************", 4)
# log("****************************************", 4)
session.__Msg1 = sigma1.Msg1
# tasmota.log("MTR: * resumptionid = " + session.resumption_id.tohex(), 4)
# tasmota.log("MTR: * MSG1 = " + session.__Msg1.tohex(), 4)
# log("MTR: * resumptionid = " + session.resumption_id.tohex(), 4)
# log("MTR: * MSG1 = " + session.__Msg1.tohex(), 4)
var TranscriptHash = crypto.SHA256().update(session.__Msg1).out()
# tasmota.log("MTR: TranscriptHash =" + TranscriptHash.tohex(), 4)
# log("MTR: TranscriptHash =" + TranscriptHash.tohex(), 4)
# Compute S2K, p.175
var s2k_info = bytes().fromstring(self.S2K_Info)
var s2k_salt = fabric.get_ipk_group_key() + responderRandom + session.__responder_pub + TranscriptHash
var s2k = crypto.HKDF_SHA256().derive(session.shared_secret, s2k_salt, s2k_info, 16)
# tasmota.log("MTR: * SharedSecret = " + session.shared_secret.tohex(), 4)
# tasmota.log("MTR: * s2k_salt = " + s2k_salt.tohex(), 4)
# tasmota.log("MTR: * s2k = " + s2k.tohex(), 4)
# log("MTR: * SharedSecret = " + session.shared_secret.tohex(), 4)
# log("MTR: * s2k_salt = " + s2k_salt.tohex(), 4)
# log("MTR: * s2k = " + s2k.tohex(), 4)
var sigma2_tbedata_raw = sigma2_tbedata.tlv2raw()
# tasmota.log("MTR: * TBEData2Raw = " + sigma2_tbedata_raw.tohex(), 4)
# log("MTR: * TBEData2Raw = " + sigma2_tbedata_raw.tohex(), 4)
# // `AES_CCM.init(secret_key:bytes(16 or 32), iv:bytes(7..13), aad:bytes(), data_len:int, tag_len:int) -> instance`
var aes = crypto.AES_CCM(s2k, bytes().fromstring(self.TBEData2_Nonce), bytes(), size(sigma2_tbedata_raw), 16)
var TBEData2Encrypted = aes.encrypt(sigma2_tbedata_raw) + aes.tag()
# tasmota.log("MTR: * TBEData2Enc = " + TBEData2Encrypted.tohex(), 4)
# tasmota.log("****************************************", 4)
# log("MTR: * TBEData2Enc = " + TBEData2Encrypted.tohex(), 4)
# log("****************************************", 4)
var sigma2 = matter.Sigma2()
sigma2.responderRandom = responderRandom
sigma2.responderSessionId = session.__future_local_session_id
sigma2.responderEphPubKey = session.__responder_pub
sigma2.encrypted2 = TBEData2Encrypted
# tasmota.log("MTR: sigma2: " + matter.inspect(sigma2), 4)
# log("MTR: sigma2: " + matter.inspect(sigma2), 4)
var sigma2_raw = sigma2.tlv2raw()
session.__Msg2 = sigma2_raw
# tasmota.log("MTR: sigma2_raw: " + sigma2_raw.tohex(), 4)
# log("MTR: sigma2_raw: " + sigma2_raw.tohex(), 4)
# now package the response message
var resp = msg.build_response(0x31 #-sigma-2-#, true) # no reliable flag
var raw = resp.encode_frame(sigma2_raw)
# log the fact that a new connection is starting
tasmota.log(format("MTR: New Connection (CASE id=%i) from [%s]:%i", session.__future_local_session_id, session._ip, session._port), 2)
log(format("MTR: New Connection (CASE id=%i) from [%s]:%i", session.__future_local_session_id, session._ip, session._port), 2)
self.responder.send_response_frame(resp)
return true
@ -555,29 +555,29 @@ class Matter_Commisioning_Context
import crypto
# sanity checks
if msg.opcode != 0x32 || msg.local_session_id != 0 || msg.protocol_id != 0
tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 3)
log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 3)
self.send_status_report(msg, 0x01, 0x0000, 0x0002, false)
return false
end
var session = msg.session
var sigma3 = matter.Sigma3().parse(msg.raw, msg.app_payload_idx)
# tasmota.log("****************************************", 4)
# log("****************************************", 4)
# compute TranscriptHash = Crypto_Hash(message = Msg1 || Msg2)
var TranscriptHash = crypto.SHA256().update(session.__Msg1).update(session.__Msg2).out()
# tasmota.log("MTR: * session = " + str(session), 4)
# tasmota.log("MTR: .ipk_epoch_key=" + str(session.get_ipk_epoch_key()), 4)
# tasmota.log("MTR: .fabric_compr = " + str(session.get_fabric_compressed()), 4)
# tasmota.log("MTR: * ipk_group_key = " + session.get_ipk_group_key().tohex(), 4)
# tasmota.log("MTR: * TranscriptHash= " + TranscriptHash.tohex(), 4)
# log("MTR: * session = " + str(session), 4)
# log("MTR: .ipk_epoch_key=" + str(session.get_ipk_epoch_key()), 4)
# log("MTR: .fabric_compr = " + str(session.get_fabric_compressed()), 4)
# log("MTR: * ipk_group_key = " + session.get_ipk_group_key().tohex(), 4)
# log("MTR: * TranscriptHash= " + TranscriptHash.tohex(), 4)
var s3k_info = bytes().fromstring(self.S3K_Info)
var s3k = crypto.HKDF_SHA256().derive(session.shared_secret, session.get_ipk_group_key() + TranscriptHash, s3k_info, 16)
# tasmota.log("****************************************", 4)
# tasmota.log("MTR: * s3k_salt = " + (session.get_ipk_group_key() + TranscriptHash).tohex(), 4)
# tasmota.log("MTR: * s3k = " + s3k.tohex(), 4)
# tasmota.log("****************************************", 4)
# log("****************************************", 4)
# log("MTR: * s3k_salt = " + (session.get_ipk_group_key() + TranscriptHash).tohex(), 4)
# log("MTR: * s3k = " + s3k.tohex(), 4)
# log("****************************************", 4)
# decrypt
var encrypted = sigma3.TBEData3Encrypted[0..-17]
@ -585,75 +585,75 @@ class Matter_Commisioning_Context
var ec = crypto.AES_CCM(s3k, bytes().fromstring(self.TBEData3_Nonce), bytes(), size(encrypted), 16)
var TBEData3 = ec.decrypt(encrypted)
var TBETag3 = ec.tag()
# tasmota.log("MTR: * TBEData3 = " + TBEData3.tohex(), 4)
# tasmota.log("MTR: * TBETag3 = " + TBETag3.tohex(), 4)
# tasmota.log("MTR: * tag_sent = " + tag.tohex(), 4)
# tasmota.log("****************************************", 4)
# log("MTR: * TBEData3 = " + TBEData3.tohex(), 4)
# log("MTR: * TBETag3 = " + TBETag3.tohex(), 4)
# log("MTR: * tag_sent = " + tag.tohex(), 4)
# log("****************************************", 4)
if TBETag3 != tag
tasmota.log("MTR: Tag don't match", 3)
tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 3)
log("MTR: Tag don't match", 3)
log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 3)
self.send_status_report(msg, 0x01, 0x0000, 0x0002, false)
return false
end
var TBEData3TLV = matter.TLV.parse(TBEData3)
# tasmota.log("MTR: * TBEData3TLV = " + str(TBEData3TLV), 4)
# log("MTR: * TBEData3TLV = " + str(TBEData3TLV), 4)
var initiatorNOC = TBEData3TLV.findsubval(1)
var initiatorICAC = TBEData3TLV.findsubval(2)
var ec_signature = TBEData3TLV.findsubval(3)
# tasmota.log("MTR: * initiatorNOC = " + str(initiatorNOC), 4)
# tasmota.log("MTR: * initiatorICAC = " + str(initiatorICAC), 4)
# tasmota.log("MTR: * ec_signature = " + str(ec_signature), 4)
# log("MTR: * initiatorNOC = " + str(initiatorNOC), 4)
# log("MTR: * initiatorICAC = " + str(initiatorICAC), 4)
# log("MTR: * ec_signature = " + str(ec_signature), 4)
# Success = Crypto_VerifyChain(certificates = [TBEData3.initiatorNOC, TBEData3.initiatorICAC, TrustedRCAC]), when TBEData3.initiatorICAC is present
# TODO
var initiatorNOCTLV = matter.TLV.parse(initiatorNOC)
# tasmota.log("MTR: initiatorNOCTLV = " + str(initiatorNOCTLV), 4)
# log("MTR: initiatorNOCTLV = " + str(initiatorNOCTLV), 4)
var initiatorNOCPubKey = initiatorNOCTLV.findsubval(9)
var initiatorNOCListDN = initiatorNOCTLV.findsub(6)
var initiatorFabricId = initiatorNOCListDN.findsubval(17)
if type(initiatorFabricId) == 'int' session.peer_node_id = int64.fromu32(initiatorFabricId).tobytes() else session.peer_node_id = initiatorFabricId.tobytes() end
# tasmota.log("MTR: initiatorFabricId="+str(session.peer_node_id), 4)
# log("MTR: initiatorFabricId="+str(session.peer_node_id), 4)
var sigma3_tbs = matter.TLV.Matter_TLV_struct()
sigma3_tbs.add_TLV(1, matter.TLV.B1, initiatorNOC)
sigma3_tbs.add_TLV(2, matter.TLV.B1, initiatorICAC)
sigma3_tbs.add_TLV(3, matter.TLV.B1, session.__initiator_pub)
sigma3_tbs.add_TLV(4, matter.TLV.B1, session.__responder_pub)
# tasmota.log("MTR: * sigma3_tbs = " + str(sigma3_tbs), 4)
# log("MTR: * sigma3_tbs = " + str(sigma3_tbs), 4)
var sigma3_tbs_raw = sigma3_tbs.tlv2raw()
# tasmota.log("MTR: * sigma3_tbs_raw= " + sigma3_tbs_raw.tohex(), 4)
# log("MTR: * sigma3_tbs_raw= " + sigma3_tbs_raw.tohex(), 4)
# tasmota.log("MTR: * initiatorNOCPubKey= " + initiatorNOCPubKey.tohex(), 4)
# tasmota.log("MTR: * ec_signature = " + ec_signature.tohex(), 4)
# tasmota.log("****************************************", 4)
# log("MTR: * initiatorNOCPubKey= " + initiatorNOCPubKey.tohex(), 4)
# log("MTR: * ec_signature = " + ec_signature.tohex(), 4)
# log("****************************************", 4)
# `crypto.EC_P256().ecdsa_verify_sha256(public_key:bytes(65), message:bytes(), hash:bytes()) -> bool`
var sigma3_tbs_valid = crypto.EC_P256().ecdsa_verify_sha256(initiatorNOCPubKey, sigma3_tbs_raw, ec_signature)
if !sigma3_tbs_valid
tasmota.log("MTR: sigma3_tbs does not have a valid signature", 2)
tasmota.log("MTR: ******************* Invalid signature, trying anyways", 2)
# tasmota.log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 2)
log("MTR: sigma3_tbs does not have a valid signature", 2)
log("MTR: ******************* Invalid signature, trying anyways", 2)
# log("MTR: StatusReport(General Code: FAILURE, ProtocolId: SECURE_CHANNEL, ProtocolCode: INVALID_PARAMETER)", 2)
# self.send_status_report(msg, 0x01, 0x0000, 0x0002, false)
# return false
else
# All good, compute new keys
tasmota.log("MTR: Sigma3 verified, computing new keys", 3)
log("MTR: Sigma3 verified, computing new keys", 3)
end
TranscriptHash = crypto.SHA256().update(session.__Msg1).update(session.__Msg2).update(sigma3.Msg3).out()
# tasmota.log("MTR: * __Msg1 = " + session.__Msg1.tohex(), 4)
# tasmota.log("MTR: * __Msg2 = " + session.__Msg2.tohex(), 4)
# tasmota.log("MTR: * __Msg3 = " + sigma3.Msg3.tohex(), 4)
# tasmota.log("MTR: * TranscriptHash = " + TranscriptHash.tohex(), 4)
# log("MTR: * __Msg1 = " + session.__Msg1.tohex(), 4)
# log("MTR: * __Msg2 = " + session.__Msg2.tohex(), 4)
# log("MTR: * __Msg3 = " + sigma3.Msg3.tohex(), 4)
# log("MTR: * TranscriptHash = " + TranscriptHash.tohex(), 4)
# we can now free __Msg1 and __Msg2
session.__Msg1 = nil
session.__Msg2 = nil
# tasmota.log("MTR: ******************************", 4)
# tasmota.log("MTR: shared_secret =" + session.shared_secret.tohex(), 4)
# tasmota.log("MTR: ipk + hash =" + (session.get_ipk_group_key() + TranscriptHash).tohex(), 4)
# log("MTR: ******************************", 4)
# log("MTR: shared_secret =" + session.shared_secret.tohex(), 4)
# log("MTR: ipk + hash =" + (session.get_ipk_group_key() + TranscriptHash).tohex(), 4)
# compute session key
var session_keys = crypto.HKDF_SHA256().derive(session.shared_secret #- input key -#,
session.get_ipk_group_key() + TranscriptHash #- salt -#,
@ -664,11 +664,11 @@ class Matter_Commisioning_Context
var ac = session_keys[32..47]
var created = tasmota.rtc_utc()
# tasmota.log("MTR: ******************************", 4)
# tasmota.log("MTR: I2RKey =" + i2r.tohex(), 4)
# tasmota.log("MTR: R2IKey =" + r2i.tohex(), 4)
# tasmota.log("MTR: AC =" + ac.tohex(), 4)
# tasmota.log("MTR: ******************************", 4)
# log("MTR: ******************************", 4)
# log("MTR: I2RKey =" + i2r.tohex(), 4)
# log("MTR: R2IKey =" + r2i.tohex(), 4)
# log("MTR: AC =" + ac.tohex(), 4)
# log("MTR: ******************************", 4)
# StatusReport(GeneralCode: SUCCESS, ProtocolId: SECURE_CHANNEL, ProtocolCode: SESSION_ESTABLISHMENT_SUCCESS)
self.send_status_report(msg, 0x00, 0x0000, 0x0000, true)
@ -691,7 +691,7 @@ class Matter_Commisioning_Context
# placeholder, nothing to run for now
def parse_StatusReport(msg)
var session = msg.session
tasmota.log("MTR: >Status "+msg.raw[msg.app_payload_idx..].tohex(), 3)
log("MTR: >Status "+msg.raw[msg.app_payload_idx..].tohex(), 3)
return false # we don't explicitly ack the message
end

View File

@ -41,8 +41,9 @@ class Matter_PBKDFParamRequest
var SLEEPY_ACTIVE_INTERVAL
def parse(b, idx)
var TLV = matter.TLV
if idx == nil idx = 0 end
var val = matter.TLV.parse(b, idx)
var val = TLV.parse(b, idx)
self.initiatorRandom = val.getsubval(1)
self.initiator_session_id = val.getsubval(2)
@ -71,18 +72,19 @@ class Matter_PBKDFParamResponse
var SLEEPY_ACTIVE_INTERVAL
def tlv2raw(b)
var s = matter.TLV.Matter_TLV_struct()
var TLV = matter.TLV
var s = TLV.Matter_TLV_struct()
# initiatorRandom
s.add_TLV(1, matter.TLV.B1, self.initiatorRandom)
s.add_TLV(2, matter.TLV.B1, self.responderRandom)
s.add_TLV(3, matter.TLV.U2, self.responderSessionId)
s.add_TLV(1, TLV.B1, self.initiatorRandom)
s.add_TLV(2, TLV.B1, self.responderRandom)
s.add_TLV(3, TLV.U2, self.responderSessionId)
var s_pbkdf = s.add_struct(4)
s_pbkdf.add_TLV(1, matter.TLV.U4, self.pbkdf_parameters_iterations)
s_pbkdf.add_TLV(2, matter.TLV.B1, self.pbkdf_parameters_salt)
s_pbkdf.add_TLV(1, TLV.U4, self.pbkdf_parameters_iterations)
s_pbkdf.add_TLV(2, TLV.B1, self.pbkdf_parameters_salt)
if self.SLEEPY_IDLE_INTERVAL != nil || self.SLEEPY_ACTIVE_INTERVAL != nil
var s2 = s.add_struct(5)
s2.add_TLV(1, matter.TLV.U4, self.SLEEPY_IDLE_INTERVAL)
s2.add_TLV(2, matter.TLV.U4, self.SLEEPY_ACTIVE_INTERVAL)
s2.add_TLV(1, TLV.U4, self.SLEEPY_IDLE_INTERVAL)
s2.add_TLV(2, TLV.U4, self.SLEEPY_ACTIVE_INTERVAL)
end
return s.tlv2raw(b)
end
@ -98,7 +100,7 @@ class Matter_Pake1
def parse(b, idx)
if idx == nil idx = 0 end
var val = matter.TLV.parse(b, idx)
# tasmota.log("MTR: parsed TLV: " + str(val), 4)
# log("MTR: parsed TLV: " + str(val), 4)
self.pA = val.getsubval(1)
return self
@ -114,10 +116,11 @@ class Matter_Pake2
var cB # 32 bytes
def tlv2raw(b)
var s = matter.TLV.Matter_TLV_struct()
var TLV = matter.TLV
var s = TLV.Matter_TLV_struct()
#
s.add_TLV(1, matter.TLV.B1, self.pB)
s.add_TLV(2, matter.TLV.B1, self.cB)
s.add_TLV(1, TLV.B1, self.pB)
s.add_TLV(2, TLV.B1, self.cB)
return s.tlv2raw(b)
end
end
@ -130,7 +133,7 @@ class Matter_Pake3
def parse(b, idx)
if idx == nil idx = 0 end
var val = matter.TLV.parse(b, idx)
# tasmota.log("MTR: parsed TLV: " + str(val), 4)
# log("MTR: parsed TLV: " + str(val), 4)
self.cA = val.getsubval(1)
return self
@ -157,7 +160,7 @@ class Matter_Sigma1
if idx == nil idx = 0 end
var val = matter.TLV.parse(b, idx)
self.Msg1 = b[idx..]
# tasmota.log("MTR: Sigma1 TLV=" + str(val), 4)
# log("MTR: Sigma1 TLV=" + str(val), 4)
self.initiatorRandom = val.getsubval(1)
self.initiator_session_id = val.getsubval(2)
@ -187,16 +190,17 @@ class Matter_Sigma2
var SLEEPY_ACTIVE_INTERVAL
def tlv2raw(b)
var s = matter.TLV.Matter_TLV_struct()
var TLV = matter.TLV
var s = TLV.Matter_TLV_struct()
# initiatorRandom
s.add_TLV(1, matter.TLV.B1, self.responderRandom)
s.add_TLV(2, matter.TLV.U2, self.responderSessionId)
s.add_TLV(3, matter.TLV.B1, self.responderEphPubKey)
s.add_TLV(4, matter.TLV.B1, self.encrypted2)
s.add_TLV(1, TLV.B1, self.responderRandom)
s.add_TLV(2, TLV.U2, self.responderSessionId)
s.add_TLV(3, TLV.B1, self.responderEphPubKey)
s.add_TLV(4, TLV.B1, self.encrypted2)
if self.SLEEPY_IDLE_INTERVAL != nil || self.SLEEPY_ACTIVE_INTERVAL != nil
var s2 = s.add_struct(5)
s2.add_TLV(1, matter.TLV.U4, self.SLEEPY_IDLE_INTERVAL)
s2.add_TLV(2, matter.TLV.U4, self.SLEEPY_ACTIVE_INTERVAL)
s2.add_TLV(1, TLV.U4, self.SLEEPY_IDLE_INTERVAL)
s2.add_TLV(2, TLV.U4, self.SLEEPY_ACTIVE_INTERVAL)
end
return s.tlv2raw(b)
end
@ -214,15 +218,16 @@ class Matter_Sigma2Resume
var SLEEPY_ACTIVE_INTERVAL
def tlv2raw(b)
var s = matter.TLV.Matter_TLV_struct()
var TLV = matter.TLV
var s = TLV.Matter_TLV_struct()
# initiatorRandom
s.add_TLV(1, matter.TLV.B1, self.resumptionID)
s.add_TLV(2, matter.TLV.B1, self.sigma2ResumeMIC)
s.add_TLV(3, matter.TLV.U2, self.responderSessionID)
s.add_TLV(1, TLV.B1, self.resumptionID)
s.add_TLV(2, TLV.B1, self.sigma2ResumeMIC)
s.add_TLV(3, TLV.U2, self.responderSessionID)
if self.SLEEPY_IDLE_INTERVAL != nil || self.SLEEPY_ACTIVE_INTERVAL != nil
var s2 = s.add_struct(4)
s2.add_TLV(1, matter.TLV.U4, self.SLEEPY_IDLE_INTERVAL)
s2.add_TLV(2, matter.TLV.U4, self.SLEEPY_ACTIVE_INTERVAL)
s2.add_TLV(1, TLV.U4, self.SLEEPY_IDLE_INTERVAL)
s2.add_TLV(2, TLV.U4, self.SLEEPY_ACTIVE_INTERVAL)
end
return s.tlv2raw(b)
end
@ -240,7 +245,7 @@ class Matter_Sigma3
if idx == nil idx = 0 end
var val = matter.TLV.parse(b, idx)
self.Msg3 = b[idx..]
# tasmota.log("MTR: Sigma3 TLV=" + str(val), 4)
# log("MTR: Sigma3 TLV=" + str(val), 4)
self.TBEData3Encrypted = val.getsubval(1)
return self

View File

@ -39,13 +39,13 @@ class Matter_Control_Message
def process_incoming_control_message(msg)
tasmota.log("MTR: received control message " + matter.inspect(msg), 3)
log("MTR: received control message " + matter.inspect(msg), 3)
if msg.opcode == 0x00
return self.parse_MsgCounterSyncReq(msg)
elif msg.opcode == 0x01
return self.parse_MsgCounterSyncRsp(msg)
else
tasmota.log(format("MTR: >????????? Unknown OpCode (control message) %02X", msg.opcode), 2)
log(format("MTR: >????????? Unknown OpCode (control message) %02X", msg.opcode), 2)
return false
end
@ -58,7 +58,7 @@ class Matter_Control_Message
# Not yet implemented
def parse_MsgCounterSyncReq(msg)
var session = msg.session
tasmota.log(format("MTR: >MCSyncReq * Not implemented %s", msg.raw[msg.app_payload_idx..].tohex()), 2)
log(format("MTR: >MCSyncReq * Not implemented %s", msg.raw[msg.app_payload_idx..].tohex()), 2)
return false # we don't explicitly ack the message
end
@ -68,7 +68,7 @@ class Matter_Control_Message
# Not yet implemented
def parse_MsgCounterSyncRsp(msg)
var session = msg.session
tasmota.log(format("MTR: >MCSyncRsp * Not implemented %s", msg.raw[msg.app_payload_idx..].tohex()), 2)
log(format("MTR: >MCSyncRsp * Not implemented %s", msg.raw[msg.app_payload_idx..].tohex()), 2)
return false # we don't explicitly ack the message
end

View File

@ -193,7 +193,7 @@ class Matter_Fabric : Matter_Expirable
#
def counter_group_data_snd_next()
var next = self._counter_group_data_snd_impl.next()
tasmota.log(f"MTR: . Counter_group_data_snd={next:i}", 3)
log(f"MTR: . Counter_group_data_snd={next:i}", 3)
if matter.Counter.is_greater(next, self.counter_group_data_snd)
self.counter_group_data_snd = next + self._GROUP_SND_INCR
if self.does_persist()
@ -208,7 +208,7 @@ class Matter_Fabric : Matter_Expirable
#
def counter_group_ctrl_snd_next()
var next = self._counter_group_ctrl_snd_impl.next()
tasmota.log(f"MTR: . Counter_group_ctrl_snd={next:i}", 3)
log(f"MTR: . Counter_group_ctrl_snd={next:i}", 3)
if matter.Counter.is_greater(next, self.counter_group_ctrl_snd)
self.counter_group_ctrl_snd = next + self._GROUP_SND_INCR
if self.does_persist()
@ -222,13 +222,13 @@ class Matter_Fabric : Matter_Expirable
#############################################################
# Called before removal
def log_new_fabric()
tasmota.log(format("MTR: +Fabric fab='%s' vendorid=%s", self.get_fabric_id().copy().reverse().tohex(), self.get_admin_vendor_name()), 3)
log(format("MTR: +Fabric fab='%s' vendorid=%s", self.get_fabric_id().copy().reverse().tohex(), self.get_admin_vendor_name()), 3)
end
#############################################################
# Called before removal
def before_remove()
tasmota.log(format("MTR: -Fabric fab='%s' (removed)", self.get_fabric_id().copy().reverse().tohex()), 3)
log(format("MTR: -Fabric fab='%s' (removed)", self.get_fabric_id().copy().reverse().tohex()), 3)
end
#############################################################

View File

@ -137,7 +137,7 @@ class Matter_HTTP_remote : Matter_HTTP_async
# dispatch to method in charge of converting to shadow values
method(obj, j, code)
else
tasmota.log(f"MTR: *** failed to parse JSON response {payload=}", 3)
log(f"MTR: *** failed to parse JSON response {payload=}", 3)
end
end
end
@ -159,7 +159,7 @@ class Matter_HTTP_remote : Matter_HTTP_async
else
self.info.remove("name")
end
tasmota.log(f"MTR: update '{self.addr}' name='{device_name}'", 3)
log(f"MTR: update '{self.addr}' name='{device_name}'", 3)
changed = true
end
@ -175,7 +175,7 @@ class Matter_HTTP_remote : Matter_HTTP_async
else
self.info.remove('version')
end
tasmota.log(f"MTR: update '{self.addr}' version='{version}'", 3)
log(f"MTR: update '{self.addr}' version='{version}'", 3)
changed = true
end
@ -185,7 +185,7 @@ class Matter_HTTP_remote : Matter_HTTP_async
else
self.info.remove('hardware')
end
tasmota.log(f"MTR: update '{self.addr}' hardware='{hardware}'", 3)
log(f"MTR: update '{self.addr}' hardware='{hardware}'", 3)
changed = true
end
@ -201,7 +201,7 @@ class Matter_HTTP_remote : Matter_HTTP_async
else
self.info.remove("mac")
end
tasmota.log(f"MTR: update '{self.addr}' mac='{mac}'", 3)
log(f"MTR: update '{self.addr}' mac='{mac}'", 3)
changed = true
end
@ -283,7 +283,7 @@ class Matter_HTTP_remote : Matter_HTTP_async
self.current_cmd = cmd
var cmd_url = "/cm?cmnd=" + string.tr(cmd, ' ', '+')
tasmota.log(format("MTR: HTTP async request 'http://%s:%i%s'", self.addr, self.port, cmd_url), 4)
log(format("MTR: HTTP async request 'http://%s:%i%s'", self.addr, self.port, cmd_url), 4)
var ret = self.begin(cmd_url)
end
@ -302,11 +302,11 @@ class Matter_HTTP_remote : Matter_HTTP_async
self.current_cmd = nil
var cmd_url = "/cm?cmnd=" + string.tr(cmd, ' ', '+')
tasmota.log(format("MTR: HTTP sync request 'http://%s:%i%s'", self.addr, self.port, cmd_url), 4)
log(format("MTR: HTTP sync request 'http://%s:%i%s'", self.addr, self.port, cmd_url), 4)
var ret = super(self).begin_sync(cmd_url, timeout)
var payload_short = (ret) ? ret : 'nil'
if size(payload_short) > 30 payload_short = payload_short[0..29] + '...' end
tasmota.log(format("MTR: HTTP sync-resp in %i ms from %s: [%i] '%s'", tasmota.millis() - self.time_start, self.addr, size(self.payload), payload_short), 3)
log(format("MTR: HTTP sync-resp in %i ms from %s: [%i] '%s'", tasmota.millis() - self.time_start, self.addr, size(self.payload), payload_short), 3)
return ret
end
@ -314,17 +314,17 @@ class Matter_HTTP_remote : Matter_HTTP_async
if self.current_cmd == nil return end # do nothing if sync request
var payload_short = (self.payload != nil) ? self.payload : 'nil'
if size(payload_short) > 30 payload_short = payload_short[0..29] + '...' end
tasmota.log(format("MTR: HTTP async-resp in %i ms from %s: [%i] '%s'", tasmota.millis() - self.time_start, self.addr, size(self.payload), payload_short), 3)
log(format("MTR: HTTP async-resp in %i ms from %s: [%i] '%s'", tasmota.millis() - self.time_start, self.addr, size(self.payload), payload_short), 3)
self.dispatch_cb(self.http_status, self.payload)
end
def event_http_failed()
if self.current_cmd == nil return end # do nothing if sync request
tasmota.log("MTR: HTTP failed", 3)
log("MTR: HTTP failed", 3)
self.dispatch_cb(self.http_status, nil)
end
def event_http_timeout()
if self.current_cmd == nil return end # do nothing if sync request
tasmota.log(format("MTR: HTTP timeout http_status=%i phase=%i tcp_status=%i size_payload=%i", self.http_status, self.phase, self.status, size(self.payload)), 3)
log(format("MTR: HTTP timeout http_status=%i phase=%i tcp_status=%i size_payload=%i", self.http_status, self.phase, self.status, size(self.payload)), 3)
self.dispatch_cb(self.http_status, nil)
end

View File

@ -52,24 +52,24 @@ class Matter_IM
if opcode == 0x02 # Read Request
var read_request_solo = self.read_request_solo.from_raw(msg.raw, msg.app_payload_idx)
if read_request_solo != nil
# tasmota.log(f"MTR: process_incoming {read_request_solo=}")
# log(f"MTR: process_incoming {read_request_solo=}")
return self.process_read_request_solo(msg, read_request_solo)
end
elif opcode == 0x08 # Invoke Request
var invoke_request_solo = self.invoke_request_solo.from_raw(msg.raw, msg.app_payload_idx)
# tasmota.log(f"MTR: {invoke_request_solo=} {msg.raw[msg.app_payload_idx .. ].tohex()} {msg.app_payload_idx=} {msg.raw.tohex()}")
# log(f"MTR: {invoke_request_solo=} {msg.raw[msg.app_payload_idx .. ].tohex()} {msg.app_payload_idx=} {msg.raw.tohex()}")
if invoke_request_solo != nil
return self.process_invoke_request_solo(msg, invoke_request_solo)
end
end
# tasmota.log("MTR: received IM message " + matter.inspect(msg), 3)
# log("MTR: received IM message " + matter.inspect(msg), 3)
var val = matter.TLV.parse(msg.raw, msg.app_payload_idx)
# tasmota.log("MTR: IM TLV: " + str(val), 3)
# log("MTR: IM TLV: " + str(val), 3)
# var InteractionModelRevision = val.findsubval(0xFF)
# tasmota.log("MTR: InteractionModelRevision=" + (InteractionModelRevision != nil ? str(InteractionModelRevision) : "nil"), 4)
# log("MTR: InteractionModelRevision=" + (InteractionModelRevision != nil ? str(InteractionModelRevision) : "nil"), 4)
if opcode == 0x01 # Status Response
return self.process_status_response(msg, val)
@ -108,7 +108,7 @@ class Matter_IM
def process_incoming_ack(msg)
# check if there is an exchange_id interested in receiving this
var message = self.find_sendqueue_by_exchangeid(msg.exchange_id)
# tasmota.log(format("MTR: process_incoming_ack exch=%i message=%i", msg.exchange_id, message != nil ? 1 : 0), 4)
# log(format("MTR: process_incoming_ack exch=%i message=%i", msg.exchange_id, message != nil ? 1 : 0), 4)
if message
return message.ack_received(msg) # dispatch to IM_Message
end
@ -139,7 +139,7 @@ class Matter_IM
end
if message.finish
tasmota.log("MTR: remove IM message exch="+str(message.resp.exchange_id), 4)
log("MTR: remove IM message exch="+str(message.resp.exchange_id), 4)
self.send_queue.remove(idx)
else
idx += 1
@ -208,11 +208,11 @@ class Matter_IM
if message
return message.status_ok_received(msg) # re-arm the sending of next packets for the same exchange
else
tasmota.log(format("MTR: >OK (%6i) exch=%i not found", msg.session.local_session_id, msg.exchange_id), 4) # don't show 'SUCCESS' to not overflow logs with non-information
log(format("MTR: >OK (%6i) exch=%i not found", msg.session.local_session_id, msg.exchange_id), 4) # don't show 'SUCCESS' to not overflow logs with non-information
end
else
# error
tasmota.log(format("MTR: >Status ERROR = 0x%02X", status), 3)
log(format("MTR: >Status ERROR = 0x%02X", status), 3)
if message
message.status_error_received(msg)
self.remove_sendqueue_by_exchangeid(msg.exchange_id)
@ -253,23 +253,23 @@ class Matter_IM
# check if too big to encode as a single packet
if (res.is_list || res.is_array) && res.encode_len() > matter.IM_ReportData.MAX_MESSAGE
# tasmota.log(f"MTR: >>>>>> long response", 3)
# log(f"MTR: >>>>>> long response", 3)
a1_raw_or_list = [] # we return a list of block
var a1_raw = bytes(48)
var empty_list = TLV.Matter_TLV_array()
self.attributedata2raw(a1_raw, ctx, empty_list, false)
a1_raw_or_list.push(a1_raw)
# tasmota.log(f"MTR: >>>>>> long response global DELETE {a1_raw.tohex()}", 3)
# log(f"MTR: >>>>>> long response global DELETE {a1_raw.tohex()}", 3)
for elt:res.val
a1_raw = bytes(48)
# var list_item = TLV.Matter_TLV_array()
# list_item.val.push(elt)
self.attributedata2raw(a1_raw, ctx, elt, true #- add ListIndex:null -#)
# tasmota.log(f"MTR: >>>>>> long response global ADD {a1_raw.tohex()}", 3)
# log(f"MTR: >>>>>> long response global ADD {a1_raw.tohex()}", 3)
a1_raw_or_list.push(a1_raw)
end
# tasmota.log(f"MTR: >>>>>> long response global {a1_raw_or_list}", 3)
# log(f"MTR: >>>>>> long response global {a1_raw_or_list}", 3)
else
# normal encoding
# encode directly raw bytes()
@ -278,7 +278,7 @@ class Matter_IM
end
if !no_log
tasmota.log(f"MTR: >Read_Attr ({session.local_session_id:6i}) {ctx}{attr_name} - {res_str}", 3)
log(f"MTR: >Read_Attr ({session.local_session_id:6i}) {ctx}{attr_name} - {res_str}", 3)
end
elif ctx.status != nil
if direct # we report an error only if a concrete direct read, not with wildcards
@ -287,12 +287,12 @@ class Matter_IM
self.attributestatus2raw(a1_raw_or_list, ctx, ctx.status)
if tasmota.loglevel(3)
tasmota.log(format("MTR: >Read_Attr (%6i) %s%s - STATUS: 0x%02X %s", session.local_session_id, str(ctx), attr_name, ctx.status, ctx.status == matter.UNSUPPORTED_ATTRIBUTE ? "UNSUPPORTED_ATTRIBUTE" : ""), 3)
log(format("MTR: >Read_Attr (%6i) %s%s - STATUS: 0x%02X %s", session.local_session_id, str(ctx), attr_name, ctx.status, ctx.status == matter.UNSUPPORTED_ATTRIBUTE ? "UNSUPPORTED_ATTRIBUTE" : ""), 3)
end
end
else
if !no_log
tasmota.log(format("MTR: >Read_Attr (%6i) %s%s - IGNORED", session.local_session_id, str(ctx), attr_name), 3)
log(format("MTR: >Read_Attr (%6i) %s%s - IGNORED", session.local_session_id, str(ctx), attr_name), 3)
end
# ignore if content is nil and status is undefined
if direct
@ -368,9 +368,9 @@ class Matter_IM
# we need expansion, log first
if ctx.cluster != nil && ctx.attribute != nil
var attr_name = matter.get_attribute_name(ctx.cluster, ctx.attribute)
tasmota.log(format("MTR: >Read_Attr (%6i) %s", session.local_session_id, str(ctx) + (attr_name ? " (" + attr_name + ")" : "")), 3)
log(format("MTR: >Read_Attr (%6i) %s", session.local_session_id, str(ctx) + (attr_name ? " (" + attr_name + ")" : "")), 3)
else
tasmota.log(format("MTR: >Read_Attr (%6i) %s", session.local_session_id, str(ctx)), 3)
log(format("MTR: >Read_Attr (%6i) %s", session.local_session_id, str(ctx)), 3)
end
end
@ -381,8 +381,8 @@ class Matter_IM
)
end
# tasmota.log("MTR: ReportDataMessage=" + str(ret), 3)
# tasmota.log("MTR: ReportDataMessageTLV=" + str(ret.to_TLV()), 3)
# log("MTR: ReportDataMessage=" + str(ret), 3)
# log("MTR: ReportDataMessageTLV=" + str(ret.to_TLV()), 3)
return ret
end
@ -705,7 +705,7 @@ class Matter_IM
var pi = self.device.process_attribute_read_solo(ctx)
var res = nil
# matter.profiler.log("read_request_solo pi ok")
# tasmota.log(f"MTR: process_read_request_solo {pi=}")
# log(f"MTR: process_read_request_solo {pi=}")
var raw # this is the bytes() block we need to add to response (or nil)
if pi != nil
@ -721,7 +721,7 @@ class Matter_IM
# revert to standard
# the attribute will be read again, but it's hard to avoid it
res = nil # indicated to GC that we don't need it again
tasmota.log(f"MTR: Response to big, revert to non-solo", 3)
log(f"MTR: Response to big, revert to non-solo", 3)
var val = matter.TLV.parse(msg.raw, msg.app_payload_idx)
return self.process_read_request(msg, val)
end
@ -752,7 +752,7 @@ class Matter_IM
raw.add(0x18, 1) # add 18
else
tasmota.log(f"MTR: >Read_Attr ({msg.session.local_session_id:6i}) {ctx} - IGNORED", 3)
log(f"MTR: >Read_Attr ({msg.session.local_session_id:6i}) {ctx} - IGNORED", 3)
return false
end
@ -765,7 +765,7 @@ class Matter_IM
resp.encode_frame(raw, msg_raw) # payload in cleartext
resp.encrypt()
if tasmota.loglevel(4)
tasmota.log(format("MTR: <snd (%6i) id=%i exch=%i rack=%s", resp.session.local_session_id, resp.message_counter, resp.exchange_id, resp.ack_message_counter), 4)
log(format("MTR: <snd (%6i) id=%i exch=%i rack=%s", resp.session.local_session_id, resp.message_counter, resp.exchange_id, resp.ack_message_counter), 4)
end
responder.send_response_frame(resp)
@ -779,23 +779,23 @@ class Matter_IM
if res != nil
if tasmota.loglevel(3)
var res_str = res.to_str_val() # get the value with anonymous tag before it is tagged, for logging
tasmota.log(f"MTR: >Read_Attr1({msg.session.local_session_id:6i}) {ctx}{attr_name} - {res_str}", 3)
# tasmota.log(f"MTR: {res.tlv2raw().tohex()}", 3)
log(f"MTR: >Read_Attr1({msg.session.local_session_id:6i}) {ctx}{attr_name} - {res_str}", 3)
# log(f"MTR: {res.tlv2raw().tohex()}", 3)
end
# if matter.profiler.active && tasmota.loglevel(3)
# tasmota.log(f"MTR: {raw=}", 3) # TODO remove before flight
# log(f"MTR: {raw=}", 3) # TODO remove before flight
# end
elif ctx.status != nil
var unsupported_attribute = (ctx.status == matter.UNSUPPORTED_ATTRIBUTE ? "UNSUPPORTED_ATTRIBUTE" : "")
if tasmota.loglevel(3)
tasmota.log(f"MTR: >Read_Attr1({msg.session.local_session_id:6i}) {ctx}{attr_name} - STATUS: 0x{ctx.status:02X} {unsupported_attribute}", 3)
log(f"MTR: >Read_Attr1({msg.session.local_session_id:6i}) {ctx}{attr_name} - STATUS: 0x{ctx.status:02X} {unsupported_attribute}", 3)
end
# if matter.profiler.active && tasmota.loglevel(3)
# tasmota.log(f"MTR: {raw=}", 3) # TODO remove before flight
# log(f"MTR: {raw=}", 3) # TODO remove before flight
# end
else
if tasmota.loglevel(3)
tasmota.log(f"MTR: >Read_Attr1({msg.session.local_session_id:6i}) {ctx}{attr_name} - IGNORED", 3)
log(f"MTR: >Read_Attr1({msg.session.local_session_id:6i}) {ctx}{attr_name} - IGNORED", 3)
end
end
@ -813,7 +813,7 @@ class Matter_IM
self.subs_shop.remove_by_session(msg.session) # if `keep_subscriptions`, kill all subscriptions from current session
end
# tasmota.log("MTR: received SubscribeRequestMessage=" + str(query), 3)
# log("MTR: received SubscribeRequestMessage=" + str(query), 3)
var sub = self.subs_shop.new_subscription(msg.session, query)
@ -827,10 +827,10 @@ class Matter_IM
ctx.attribute = q.attribute
attr_req.push(str(ctx))
end
tasmota.log(format("MTR: >Subscribe (%6i) %s (min=%i, max=%i, keep=%i) sub=%i fabric_filtered=%s",
log(format("MTR: >Subscribe (%6i) %s (min=%i, max=%i, keep=%i) sub=%i fabric_filtered=%s",
msg.session.local_session_id, attr_req.concat(" "), sub.min_interval, sub.max_interval, query.keep_subscriptions ? 1 : 0, sub.subscription_id, query.fabric_filtered), 3)
if query.event_requests != nil && size(query.event_requests) > 0
tasmota.log(f"MTR: >Subscribe ({msg.session.local_session_id:6i}) event_requests_size={size(query.event_requests)}", 3)
log(f"MTR: >Subscribe ({msg.session.local_session_id:6i}) event_requests_size={size(query.event_requests)}", 3)
end
var ret = self._inner_process_read_request(msg.session, query, msg, true #-no_log-#)
@ -849,7 +849,7 @@ class Matter_IM
def process_invoke_request(msg, val)
# import debug
# structure is `ReadRequestMessage` 10.6.2 p.558
# tasmota.log("MTR: IM:invoke_request processing start", 4)
# log("MTR: IM:invoke_request processing start", 4)
matter.profiler.log("invoke_request_start")
var ctx = matter.Path()
ctx.msg = msg
@ -872,8 +872,8 @@ class Matter_IM
var res = self.device.invoke_request(msg.session, q.command_fields, ctx)
matter.profiler.log("COMMAND DONE")
var params_log = (ctx.log != nil) ? "(" + str(ctx.log) + ") " : ""
tasmota.log(format("MTR: >Command (%6i) %s %s %s", msg.session.local_session_id, ctx_str, cmd_name ? cmd_name : "", params_log), 3)
# tasmota.log("MTR: Perf/Command = " + str(debug.counters()), 4)
log(format("MTR: >Command (%6i) %s %s %s", msg.session.local_session_id, ctx_str, cmd_name ? cmd_name : "", params_log), 3)
# log("MTR: Perf/Command = " + str(debug.counters()), 4)
ctx.log = nil
var raw = bytes(32)
# var a1 = matter.InvokeResponseIB()
@ -882,7 +882,7 @@ class Matter_IM
self.invokeresponse2raw(raw, ctx, nil)
ret.invoke_responses.push(raw)
if tasmota.loglevel(3)
tasmota.log(f"MTR: <Replied ({msg.session.local_session_id:6i}) OK exch={msg.exchange_id:i}", 3)
log(f"MTR: <Replied ({msg.session.local_session_id:6i}) OK exch={msg.exchange_id:i}", 3)
end
elif res != nil
self.invokeresponse2raw(raw, ctx, res)
@ -891,17 +891,17 @@ class Matter_IM
cmd_name = matter.get_command_name(ctx.cluster, ctx.command)
if !cmd_name cmd_name = "" end
if tasmota.loglevel(3)
tasmota.log(f"MTR: <Replied ({msg.session.local_session_id:6i}) {ctx} {cmd_name}", 3)
log(f"MTR: <Replied ({msg.session.local_session_id:6i}) {ctx} {cmd_name}", 3)
end
elif ctx.status != nil
self.invokeresponse2raw(raw, ctx, nil)
ret.invoke_responses.push(raw)
if tasmota.loglevel(3)
tasmota.log(f"MTR: <Replied ({msg.session.local_session_id:6i}) Status=0x{ctx.status:02X} exch={msg.exchange_id:i}", 3)
log(f"MTR: <Replied ({msg.session.local_session_id:6i}) Status=0x{ctx.status:02X} exch={msg.exchange_id:i}", 3)
end
else
if tasmota.loglevel(3)
tasmota.log(f"MTR: _Ignore ({msg.session.local_session_id:6i}) exch={msg.exchange_id:i}", 3)
log(f"MTR: _Ignore ({msg.session.local_session_id:6i}) exch={msg.exchange_id:i}", 3)
end
# ignore if content is nil and status is undefined
end
@ -934,9 +934,9 @@ class Matter_IM
matter.profiler.log("COMMAND DONE")
var params_log = (ctx.log != nil) ? "(" + str(ctx.log) + ") " : ""
if tasmota.loglevel(3)
tasmota.log(format("MTR: >Command1 (%6i) %s %s %s", msg.session.local_session_id, ctx_str, cmd_name ? cmd_name : "", params_log), 3)
log(format("MTR: >Command1 (%6i) %s %s %s", msg.session.local_session_id, ctx_str, cmd_name ? cmd_name : "", params_log), 3)
end
# tasmota.log("MTR: Perf/Command = " + str(debug.counters()), 4)
# log("MTR: Perf/Command = " + str(debug.counters()), 4)
ctx.log = nil
var raw = bytes(48)
@ -948,24 +948,24 @@ class Matter_IM
self.invokeresponse2raw(raw, ctx, nil)
if tasmota.loglevel(3)
tasmota.log(f"MTR: <Replied ({msg.session.local_session_id:6i}) OK exch={msg.exchange_id:i}", 3)
log(f"MTR: <Replied ({msg.session.local_session_id:6i}) OK exch={msg.exchange_id:i}", 3)
end
elif res != nil
self.invokeresponse2raw(raw, ctx, res)
if !cmd_name cmd_name = "" end
if tasmota.loglevel(3)
tasmota.log(f"MTR: <Replied ({msg.session.local_session_id:6i}) {ctx} {cmd_name}", 3)
log(f"MTR: <Replied ({msg.session.local_session_id:6i}) {ctx} {cmd_name}", 3)
end
elif ctx.status != nil
self.invokeresponse2raw(raw, ctx, nil)
if tasmota.loglevel(3)
tasmota.log(f"MTR: <Replied ({msg.session.local_session_id:6i}) Status=0x{ctx.status:02X} exch={msg.exchange_id:i}", 3)
log(f"MTR: <Replied ({msg.session.local_session_id:6i}) Status=0x{ctx.status:02X} exch={msg.exchange_id:i}", 3)
end
else
if tasmota.loglevel(3)
tasmota.log(f"MTR: _Ignore ({msg.session.local_session_id:6i}) exch={msg.exchange_id:i}", 3)
log(f"MTR: _Ignore ({msg.session.local_session_id:6i}) exch={msg.exchange_id:i}", 3)
end
# ignore if content is nil and status is undefined
return false
@ -974,7 +974,7 @@ class Matter_IM
raw.add(0x1824FF01, -4) # add 1824FF01
raw.add(0x18, 1) # add 18
# tasmota.log(f"MTR: raw={raw.tohex()}", 3)
# log(f"MTR: raw={raw.tohex()}", 3)
var resp = msg.build_response(0x09 #-Invoke Response-#, true)
var responder = self.device.message_handler
var msg_raw = msg.raw
@ -992,7 +992,7 @@ class Matter_IM
#
def subscribe_response(msg, val)
var query = matter.SubscribeResponseMessage().from_TLV(val)
# tasmota.log("MTR: received SubscribeResponsetMessage=" + str(query), 4)
# log("MTR: received SubscribeResponsetMessage=" + str(query), 4)
return false
end
@ -1001,7 +1001,7 @@ class Matter_IM
#
def report_data(msg, val)
var query = matter.ReportDataMessage().from_TLV(val)
# tasmota.log("MTR: received ReportDataMessage=" + str(query), 4)
# log("MTR: received ReportDataMessage=" + str(query), 4)
return false
end
@ -1010,7 +1010,7 @@ class Matter_IM
#
def process_write_request(msg, val)
var query = matter.WriteRequestMessage().from_TLV(val)
# tasmota.log("MTR: received WriteRequestMessage=" + str(query), 3)
# log("MTR: received WriteRequestMessage=" + str(query), 3)
var suppress_response = query.suppress_response
# var timed_request = query.timed_request # TODO not supported
@ -1030,7 +1030,7 @@ class Matter_IM
def write_single_attribute(ret, pi, ctx, write_data, direct)
var attr_name = matter.get_attribute_name(ctx.cluster, ctx.attribute)
attr_name = attr_name ? " (" + attr_name + ")" : ""
# tasmota.log(format("MTR: Read Attribute " + str(ctx) + (attr_name ? " (" + attr_name + ")" : ""), 2)
# log(format("MTR: Read Attribute " + str(ctx) + (attr_name ? " (" + attr_name + ")" : ""), 2)
# Special case to report unsupported item, if pi==nil
ctx.status = matter.UNSUPPORTED_WRITE
var res = (pi != nil) ? pi.write_attribute(msg.session, ctx, write_data) : nil
@ -1046,17 +1046,17 @@ class Matter_IM
a1.status.status = ctx.status
ret.write_responses.push(a1)
tasmota.log(format("MTR: Write_Attr %s%s - STATUS: 0x%02X %s", str(ctx), attr_name, ctx.status, ctx.status == matter.SUCCESS ? "SUCCESS" : ""), (ctx.endpoint != 0) ? 2 : 3)
log(format("MTR: Write_Attr %s%s - STATUS: 0x%02X %s", str(ctx), attr_name, ctx.status, ctx.status == matter.SUCCESS ? "SUCCESS" : ""), (ctx.endpoint != 0) ? 2 : 3)
return true
end
else
tasmota.log(format("MTR: Write_Attr %s%s - IGNORED", str(ctx), attr_name), 3)
log(format("MTR: Write_Attr %s%s - IGNORED", str(ctx), attr_name), 3)
# ignore if content is nil and status is undefined
end
end
# structure is `ReadRequestMessage` 10.6.2 p.558
# tasmota.log("MTR: IM:write_request processing start", 4)
# log("MTR: IM:write_request processing start", 4)
var ctx = matter.Path()
ctx.msg = msg
@ -1087,7 +1087,7 @@ class Matter_IM
if ctx.endpoint == nil
# we need expansion, log first
var attr_name = matter.get_attribute_name(ctx.cluster, ctx.attribute)
tasmota.log("MTR: Write_Attr " + str(ctx) + (attr_name ? " (" + attr_name + ")" : ""), 3)
log("MTR: Write_Attr " + str(ctx) + (attr_name ? " (" + attr_name + ")" : ""), 3)
end
# implement concrete expansion
@ -1096,8 +1096,8 @@ class Matter_IM
)
end
# tasmota.log("MTR: ReportWriteMessage=" + str(ret), 4)
# tasmota.log("MTR: ReportWriteMessageTLV=" + str(ret.to_TLV()), 3)
# log("MTR: ReportWriteMessage=" + str(ret), 4)
# log("MTR: ReportWriteMessageTLV=" + str(ret.to_TLV()), 3)
# send the reponse that may need to be chunked if too large to fit in a single UDP message
if !suppress_response
@ -1112,7 +1112,7 @@ class Matter_IM
#
def process_write_response(msg, val)
var query = matter.WriteResponseMessage().from_TLV(val)
# tasmota.log("MTR: received WriteResponseMessage=" + str(query), 4)
# log("MTR: received WriteResponseMessage=" + str(query), 4)
return false
end
@ -1121,7 +1121,7 @@ class Matter_IM
#
def process_invoke_response(msg, val)
var query = matter.InvokeResponseMessage().from_TLV(val)
# tasmota.log("MTR: received InvokeResponseMessage=" + str(query), 4)
# log("MTR: received InvokeResponseMessage=" + str(query), 4)
return false
end
@ -1130,9 +1130,9 @@ class Matter_IM
#
def process_timed_request(msg, val)
var query = matter.TimedRequestMessage().from_TLV(val)
# tasmota.log("MTR: received TimedRequestMessage=" + str(query), 3)
# log("MTR: received TimedRequestMessage=" + str(query), 3)
tasmota.log(format("MTR: >Command (%6i) TimedRequest=%i", msg.session.local_session_id, query.timeout), 3)
log(format("MTR: >Command (%6i) TimedRequest=%i", msg.session.local_session_id, query.timeout), 3)
# Send success status report
self.send_status(msg, matter.SUCCESS)
@ -1159,7 +1159,7 @@ class Matter_IM
fake_read.attributes_requests.push(p1)
end
tasmota.log(format("MTR: <Sub_Data (%6i) sub=%i", session.local_session_id, sub.subscription_id), 3)
log(format("MTR: <Sub_Data (%6i) sub=%i", session.local_session_id, sub.subscription_id), 3)
sub.is_keep_alive = false # sending an actual data update
var ret = self._inner_process_read_request(session, fake_read, nil #-no msg-#)
@ -1177,7 +1177,7 @@ class Matter_IM
def send_subscribe_heartbeat(sub)
var session = sub.session
tasmota.log(format("MTR: <Sub_Alive (%6i) sub=%i", session.local_session_id, sub.subscription_id), 3)
log(format("MTR: <Sub_Alive (%6i) sub=%i", session.local_session_id, sub.subscription_id), 3)
sub.is_keep_alive = true # sending keep-alive
# prepare the response

View File

@ -63,7 +63,7 @@ class Matter_IM_Message
# ack received for previous message, proceed to next (if any)
# return true if we manage the ack ourselves, false if it needs to be done upper
def ack_received(msg)
# tasmota.log("MTR: IM_Message ack_received exch="+str(self.resp.exchange_id), 3)
# log("MTR: IM_Message ack_received exch="+str(self.resp.exchange_id), 3)
self.expiration = tasmota.millis() + self.MSG_TIMEOUT # give more time
return false
end
@ -71,7 +71,7 @@ class Matter_IM_Message
# Status Report OK received for previous message, proceed to next (if any)
# return true if we manage the ack ourselves, false if it needs to be done upper
def status_ok_received(msg)
# tasmota.log(format("MTR: IM_Message status_ok_received exch=%i", self.resp.exchange_id), 3)
# log(format("MTR: IM_Message status_ok_received exch=%i", self.resp.exchange_id), 3)
self.expiration = tasmota.millis() + self.MSG_TIMEOUT # give more time
if msg
self.resp = msg.build_response(self.resp.opcode, self.resp.x_flag_r, self.resp) # update packet
@ -91,7 +91,7 @@ class Matter_IM_Message
# default responder for data
def send_im(responder)
# tasmota.log(format("MTR: IM_Message send_im exch=%i ready=%i", self.resp.exchange_id, self.ready ? 1 : 0), 3)
# log(format("MTR: IM_Message send_im exch=%i ready=%i", self.resp.exchange_id, self.ready ? 1 : 0), 3)
if !self.ready return false end
# import debug
var resp = self.resp
@ -102,9 +102,9 @@ class Matter_IM_Message
resp.encode_frame(data_raw) # payload in cleartext
resp.encrypt()
if tasmota.loglevel(4)
tasmota.log(format("MTR: <snd (%6i) id=%i exch=%i rack=%s", resp.session.local_session_id, resp.message_counter, resp.exchange_id, resp.ack_message_counter), 4)
log(format("MTR: <snd (%6i) id=%i exch=%i rack=%s", resp.session.local_session_id, resp.message_counter, resp.exchange_id, resp.ack_message_counter), 4)
end
# tasmota.log("MTR: Perf/Send = " + str(debug.counters()), 4)
# log("MTR: Perf/Send = " + str(debug.counters()), 4)
responder.send_response_frame(resp)
self.last_counter = resp.message_counter
self.finish = true # by default we remove the packet after it is sent
@ -175,7 +175,7 @@ class Matter_IM_ReportData : Matter_IM_Message
# default responder for data
def send_im(responder)
# tasmota.log(format("MTR: IM_ReportData send_im exch=%i ready=%i", self.resp.exchange_id, self.ready ? 1 : 0), 3)
# log(format("MTR: IM_ReportData send_im exch=%i ready=%i", self.resp.exchange_id, self.ready ? 1 : 0), 3)
if !self.ready return false end
var resp = self.resp # response frame object
var data = self.data # TLV data of the response (if any)
@ -184,7 +184,7 @@ class Matter_IM_ReportData : Matter_IM_Message
# the message were grouped by right-sized binaries upfront, we just need to send one block at time
var elements = 1 # number of elements added
# tasmota.log(format("MTR: exch=%i elements=%i msg_sz=%i total=%i", self.get_exchangeid(), elements, msg_sz, sz_attribute_reports), 3)
# log(format("MTR: exch=%i elements=%i msg_sz=%i total=%i", self.get_exchangeid(), elements, msg_sz, sz_attribute_reports), 3)
var next_elemnts
if data.attribute_reports != nil
next_elemnts = data.attribute_reports[elements .. ]
@ -195,13 +195,13 @@ class Matter_IM_ReportData : Matter_IM_Message
end
if was_chunked
# tasmota.log(format("MTR: .Read_Attr next_chunk exch=%i", self.get_exchangeid()), 4)
# log(format("MTR: .Read_Attr next_chunk exch=%i", self.get_exchangeid()), 4)
end
if data.more_chunked_messages
if !was_chunked
# tasmota.log(format("MTR: .Read_Attr first_chunk exch=%i", self.get_exchangeid()), 4)
# log(format("MTR: .Read_Attr first_chunk exch=%i", self.get_exchangeid()), 4)
end
# tasmota.log("MTR: sending TLV" + str(data), 4)
# log("MTR: sending TLV" + str(data), 4)
end
# print(">>>>> send elements before encode")
@ -213,13 +213,13 @@ class Matter_IM_ReportData : Matter_IM_Message
# print(">>>>> send elements after encode")
resp.encrypt()
# print(">>>>> send elements after encrypt")
# tasmota.log(format("MTR: <snd (%6i) id=%i exch=%i rack=%s", resp.session.local_session_id, resp.message_counter, resp.exchange_id, resp.ack_message_counter), 4)
# log(format("MTR: <snd (%6i) id=%i exch=%i rack=%s", resp.session.local_session_id, resp.message_counter, resp.exchange_id, resp.ack_message_counter), 4)
responder.send_response_frame(resp)
self.last_counter = resp.message_counter
if next_elemnts != nil && size(next_elemnts) > 0
data.attribute_reports = next_elemnts
# tasmota.log(format("MTR: to_be_sent_later size=%i exch=%i", size(data.attribute_reports), resp.exchange_id), 4)
# log(format("MTR: to_be_sent_later size=%i exch=%i", size(data.attribute_reports), resp.exchange_id), 4)
self.ready = false # wait for Status Report before continuing sending
# keep alive
else
@ -256,7 +256,7 @@ class Matter_IM_ReportDataSubscribed : Matter_IM_ReportData
# ack received, confirm the heartbeat
def ack_received(msg)
# tasmota.log(format("MTR: IM_ReportDataSubscribed ack_received sub=%i", self.sub.subscription_id), 3)
# log(format("MTR: IM_ReportDataSubscribed ack_received sub=%i", self.sub.subscription_id), 3)
super(self).ack_received(msg)
if !self.report_data_phase
# if ack is received while all data is sent, means that it finished without error
@ -271,14 +271,14 @@ class Matter_IM_ReportDataSubscribed : Matter_IM_ReportData
# we received an ACK error, remove subscription
def status_error_received(msg)
# tasmota.log(format("MTR: IM_ReportDataSubscribed status_error_received sub=%i exch=%i", self.sub.subscription_id, self.resp.exchange_id), 3)
# log(format("MTR: IM_ReportDataSubscribed status_error_received sub=%i exch=%i", self.sub.subscription_id, self.resp.exchange_id), 3)
self.sub.remove_self()
end
# ack received for previous message, proceed to next (if any)
# return true if we manage the ack ourselves, false if it needs to be done upper
def status_ok_received(msg)
# tasmota.log(format("MTR: IM_ReportDataSubscribed status_ok_received sub=%i exch=%i", self.sub.subscription_id, self.resp.exchange_id), 3)
# log(format("MTR: IM_ReportDataSubscribed status_ok_received sub=%i exch=%i", self.sub.subscription_id, self.resp.exchange_id), 3)
if self.report_data_phase
return super(self).status_ok_received(msg)
else
@ -291,13 +291,13 @@ class Matter_IM_ReportDataSubscribed : Matter_IM_ReportData
# returns true if transaction is complete (remove object from queue)
# default responder for data
def send_im(responder)
# tasmota.log(format("MTR: IM_ReportDataSubscribed send sub=%i exch=%i ready=%i", self.sub.subscription_id, self.resp.exchange_id, self.ready ? 1 : 0), 3)
# tasmota.log(format("MTR: ReportDataSubscribed::send_im size(self.data.attribute_reports)=%i ready=%s report_data_phase=%s", size(self.data.attribute_reports), str(self.ready), str(self.report_data_phase)), 3)
# log(format("MTR: IM_ReportDataSubscribed send sub=%i exch=%i ready=%i", self.sub.subscription_id, self.resp.exchange_id, self.ready ? 1 : 0), 3)
# log(format("MTR: ReportDataSubscribed::send_im size(self.data.attribute_reports)=%i ready=%s report_data_phase=%s", size(self.data.attribute_reports), str(self.ready), str(self.report_data_phase)), 3)
if !self.ready return false end
if size(self.data.attribute_reports) > 0 # do we have still attributes to send
if self.report_data_phase
super(self).send_im(responder)
# tasmota.log(format("MTR: ReportDataSubscribed::send_im called super finish=%i", self.finish), 3)
# log(format("MTR: ReportDataSubscribed::send_im called super finish=%i", self.finish), 3)
if !self.finish return end # ReportData needs to continue
# ReportData is finished
self.report_data_phase = false
@ -309,7 +309,7 @@ class Matter_IM_ReportDataSubscribed : Matter_IM_ReportData
resp.encode_frame()
resp.encrypt()
if tasmota.loglevel(4)
tasmota.log(format("MTR: <Ack (%6i) ack=%i id=%i", resp.session.local_session_id, resp.ack_message_counter, resp.message_counter), 4)
log(format("MTR: <Ack (%6i) ack=%i id=%i", resp.session.local_session_id, resp.ack_message_counter, resp.message_counter), 4)
end
responder.send_response_frame(resp)
self.last_counter = resp.message_counter
@ -354,7 +354,7 @@ class Matter_IM_SubscribedHeartbeat : Matter_IM_ReportData
# ack received, confirm the heartbeat
def ack_received(msg)
# tasmota.log(format("MTR: Matter_IM_SubscribedHeartbeat ack_received sub=%i", self.sub.subscription_id), 3)
# log(format("MTR: Matter_IM_SubscribedHeartbeat ack_received sub=%i", self.sub.subscription_id), 3)
super(self).ack_received(msg)
self.finish = true
return true # proceed to calling send() which removes the message
@ -362,7 +362,7 @@ class Matter_IM_SubscribedHeartbeat : Matter_IM_ReportData
# we received an ACK error, remove subscription
def status_error_received(msg)
# tasmota.log(format("MTR: Matter_IM_SubscribedHeartbeat status_error_received sub=%i exch=%i", self.sub.subscription_id, self.resp.exchange_id), 3)
# log(format("MTR: Matter_IM_SubscribedHeartbeat status_error_received sub=%i exch=%i", self.sub.subscription_id, self.resp.exchange_id), 3)
self.sub.remove_self()
return false # let the caller to the ack
end
@ -370,13 +370,13 @@ class Matter_IM_SubscribedHeartbeat : Matter_IM_ReportData
# ack received for previous message, proceed to next (if any)
# return true if we manage the ack ourselves, false if it needs to be done upper
def status_ok_received(msg)
# tasmota.log(format("MTR: Matter_IM_SubscribedHeartbeat status_ok_received sub=%i exch=%i", self.sub.subscription_id, self.resp.exchange_id), 3)
# log(format("MTR: Matter_IM_SubscribedHeartbeat status_ok_received sub=%i exch=%i", self.sub.subscription_id, self.resp.exchange_id), 3)
return false # let the caller to the ack
end
# default responder for data
def send_im(responder)
# tasmota.log(format("MTR: Matter_IM_SubscribedHeartbeat send sub=%i exch=%i ready=%i", self.sub.subscription_id, self.resp.exchange_id, self.ready ? 1 : 0), 3)
# log(format("MTR: Matter_IM_SubscribedHeartbeat send sub=%i exch=%i ready=%i", self.sub.subscription_id, self.resp.exchange_id, self.ready ? 1 : 0), 3)
if !self.ready return false end
super(self).send_im(responder)
@ -402,7 +402,7 @@ class Matter_IM_SubscribeResponse : Matter_IM_ReportData
# default responder for data
def send_im(responder)
# tasmota.log(format("MTR: Matter_IM_SubscribeResponse send sub=%i ready=%i", self.sub.subscription_id, self.ready ? 1 : 0), 3)
# log(format("MTR: Matter_IM_SubscribeResponse send sub=%i ready=%i", self.sub.subscription_id, self.ready ? 1 : 0), 3)
if !self.ready return false end
if self.report_data_phase
super(self).send_im(responder)
@ -425,7 +425,7 @@ class Matter_IM_SubscribeResponse : Matter_IM_ReportData
resp.encrypt()
responder.send_response_frame(resp)
self.last_counter = resp.message_counter
# tasmota.log(format("MTR: Send SubscribeResponseMessage sub=%i id=%i", self.sub.subscription_id, resp.message_counter), 3)
# log(format("MTR: Send SubscribeResponseMessage sub=%i id=%i", self.sub.subscription_id, resp.message_counter), 3)
self.sub.re_arm()
self.finish = true # remove exchange
end
@ -433,10 +433,10 @@ class Matter_IM_SubscribeResponse : Matter_IM_ReportData
# Status ok received
def status_ok_received(msg)
# tasmota.log(format("MTR: IM_SubscribeResponse status_ok_received sub=%i exch=%i ack=%i last_counter=%i", self.sub.subscription_id, self.resp.exchange_id, msg.ack_message_counter ? msg.ack_message_counter : 0 , self.last_counter), 3)
# log(format("MTR: IM_SubscribeResponse status_ok_received sub=%i exch=%i ack=%i last_counter=%i", self.sub.subscription_id, self.resp.exchange_id, msg.ack_message_counter ? msg.ack_message_counter : 0 , self.last_counter), 3)
# once we receive ack, open flow for subscriptions
if tasmota.loglevel(3)
tasmota.log(format("MTR: >Sub_OK (%6i) sub=%i", msg.session.local_session_id, self.sub.subscription_id), 3)
log(format("MTR: >Sub_OK (%6i) sub=%i", msg.session.local_session_id, self.sub.subscription_id), 3)
end
return super(self).status_ok_received(msg)
end

View File

@ -81,12 +81,12 @@ class Matter_IM_Subscription
self.clear_before_arm()
self.is_keep_alive = false
# tasmota.log("MTR: new subsctiption " + matter.inspect(self), 3)
# log("MTR: new subsctiption " + matter.inspect(self), 3)
end
# remove self from subs_shop list
def remove_self()
tasmota.log("MTR: -Sub_Del ( ) sub=" + str(self.subscription_id), 3)
log("MTR: -Sub_Del ( ) sub=" + str(self.subscription_id), 3)
self.subs_shop.remove_sub(self)
end
@ -103,7 +103,7 @@ class Matter_IM_Subscription
self.expiration = now + (self.max_interval - self.MAX_INTERVAL_MARGIN) * 1000
self.not_before = now + self.min_interval * 1000 - 1
if !self.is_keep_alive
tasmota.log(format("MTR: .Sub_Done ( ) sub=%i", self.subscription_id), 3)
log(format("MTR: .Sub_Done ( ) sub=%i", self.subscription_id), 3)
end
end

View File

@ -304,7 +304,7 @@ class Matter_Frame
if resp.local_session_id == 0
var op_name = matter.get_opcode_name(resp.opcode)
if !op_name op_name = format("0x%02X", resp.opcode) end
tasmota.log(format("MTR: <Replied (%6i) %s", resp.session.local_session_id, op_name), 3)
log(format("MTR: <Replied (%6i) %s", resp.session.local_session_id, op_name), 3)
end
return resp
end
@ -363,7 +363,7 @@ class Matter_Frame
# check privacy flag, p.127
if self.sec_p
# compute privacy key, p.71
tasmota.log("MTR: >>>>>>>>>>>>>>>>>>>> Compute Privacy TODO", 2)
log("MTR: >>>>>>>>>>>>>>>>>>>> Compute Privacy TODO", 2)
var k = session.get_i2r_privacy()
var mic = raw[-16..] # take last 16 bytes as signature
var n = bytes().add(self.local_session_id, -2) + mic[5..15] # session in Big Endian
@ -387,13 +387,13 @@ class Matter_Frame
n.resize(13) # add zeros
end
# tasmota.log("MTR: ******************************", 4)
# tasmota.log("MTR: raw =" + raw.tohex(), 4)
# tasmota.log("MTR: i2r =" + i2r.tohex(), 4)
# tasmota.log("MTR: p =" + raw[payload_idx .. -17].tohex(), 4)
# tasmota.log("MTR: a =" + raw[0 .. payload_idx - 1].tohex(), 4)
# tasmota.log("MTR: n =" + n.tohex(), 4)
# tasmota.log("MTR: mic =" + raw[-16..].tohex(), 4)
# log("MTR: ******************************", 4)
# log("MTR: raw =" + raw.tohex(), 4)
# log("MTR: i2r =" + i2r.tohex(), 4)
# log("MTR: p =" + raw[payload_idx .. -17].tohex(), 4)
# log("MTR: a =" + raw[0 .. payload_idx - 1].tohex(), 4)
# log("MTR: n =" + n.tohex(), 4)
# log("MTR: mic =" + raw[-16..].tohex(), 4)
# decrypt
var ret = crypto.AES_CCM.decrypt1(i2r, # secret key
@ -405,7 +405,7 @@ class Matter_Frame
# succcess
raw.resize(size(raw) - tag_len) # remove MIC
else
tasmota.log("MTR: rejected packet due to invalid MIC", 3)
log("MTR: rejected packet due to invalid MIC", 3)
end
return ret
end
@ -451,7 +451,7 @@ class Matter_Frame
var r = matter.Frame(self.message_handler, raw)
r.decode_header()
r.decode_payload()
# tasmota.log("MTR: sending decode: " + matter.inspect(r), 4)
# log("MTR: sending decode: " + matter.inspect(r), 4)
end
end
matter.Frame = Matter_Frame

View File

@ -52,7 +52,7 @@ class Matter_MessageHandler
var resp = frame.build_standalone_ack(reliable)
resp.encode_frame()
if tasmota.loglevel(4)
tasmota.log(format("MTR: <Ack (%6i) ack=%i id=%i %s", resp.session.local_session_id, resp.ack_message_counter, resp.message_counter, reliable ? '{reliable}' : ''), 4)
log(format("MTR: <Ack (%6i) ack=%i id=%i %s", resp.session.local_session_id, resp.ack_message_counter, resp.message_counter, reliable ? '{reliable}' : ''), 4)
end
self.send_response_frame(resp)
end
@ -69,7 +69,7 @@ class Matter_MessageHandler
resp.encode_frame()
resp.encrypt()
if tasmota.loglevel(4)
tasmota.log(format("MTR: <Ack* (%6i) ack=%i id=%i %s", resp.session.local_session_id, resp.ack_message_counter, resp.message_counter, reliable ? '{reliable}' : ''), 4)
log(format("MTR: <Ack* (%6i) ack=%i id=%i %s", resp.session.local_session_id, resp.ack_message_counter, resp.message_counter, reliable ? '{reliable}' : ''), 4)
end
self.send_response_frame(resp)
end
@ -86,7 +86,7 @@ class Matter_MessageHandler
matter.profiler.log("msg_received")
try
# tasmota.log("MTR: MessageHandler::msg_received raw="+raw.tohex(), 4)
# log("MTR: MessageHandler::msg_received raw="+raw.tohex(), 4)
var frame = matter.Frame(self, raw, addr, port)
var ok = frame.decode_header()
@ -96,15 +96,15 @@ class Matter_MessageHandler
# do we need decryption?
if frame.sec_p
# Control message
# tasmota.log("MTR: CONTROL MESSAGE=" + matter.inspect(frame), 4)
# log("MTR: CONTROL MESSAGE=" + matter.inspect(frame), 4)
var session = self.device.sessions.find_session_source_id_unsecure(frame.source_node_id, 90) # 90 seconds max
# tasmota.log("MTR: find session by source_node_id = " + str(frame.source_node_id) + " session_id = " + str(session.local_session_id), 4)
# log("MTR: find session by source_node_id = " + str(frame.source_node_id) + " session_id = " + str(session.local_session_id), 4)
return self.control_message.process_incoming_control_message(frame)
elif frame.local_session_id == 0 && frame.sec_sesstype == 0
#############################################################
### unencrypted session, handled by commissioning
var session = self.device.sessions.find_session_source_id_unsecure(frame.source_node_id, 90) # 90 seconds max
# tasmota.log("MTR: find session by source_node_id = " + str(frame.source_node_id) + " session_id = " + str(session.local_session_id), 4)
# log("MTR: find session by source_node_id = " + str(frame.source_node_id) + " session_id = " + str(session.local_session_id), 4)
if addr session._ip = addr end
if port session._port = port end
session._message_handler = self
@ -113,7 +113,7 @@ class Matter_MessageHandler
# check if it's a duplicate
if !session._counter_insecure_rcv.validate(frame.message_counter, false)
if tasmota.loglevel(4)
tasmota.log(format("MTR: . Duplicate unencrypted message = %i ref = %i", frame.message_counter, session._counter_insecure_rcv.val()), 4)
log(format("MTR: . Duplicate unencrypted message = %i ref = %i", frame.message_counter, session._counter_insecure_rcv.val()), 4)
end
self.send_simple_ack(frame, false #-not reliable-#)
return false
@ -125,11 +125,11 @@ class Matter_MessageHandler
var op_name = matter.get_opcode_name(frame.opcode)
if !op_name op_name = format("0x%02X", frame.opcode) end
if tasmota.loglevel(3)
tasmota.log(format("MTR: >Received (%6i) %s rid=%i exch=%i from [%s]:%i", session.local_session_id, op_name, frame.message_counter, frame.exchange_id, addr, port), 3)
log(format("MTR: >Received (%6i) %s rid=%i exch=%i from [%s]:%i", session.local_session_id, op_name, frame.message_counter, frame.exchange_id, addr, port), 3)
end
else
if tasmota.loglevel(4)
tasmota.log(format("MTR: >rcv Ack (%6i) rid=%i exch=%i ack=%s %sfrom [%s]:%i", session.local_session_id, frame.message_counter, frame.x_flag_r ? "{reliable} " : "", frame.exchange_id, str(frame.ack_message_counter), addr, port), 4)
log(format("MTR: >rcv Ack (%6i) rid=%i exch=%i ack=%s %sfrom [%s]:%i", session.local_session_id, frame.message_counter, frame.x_flag_r ? "{reliable} " : "", frame.exchange_id, str(frame.ack_message_counter), addr, port), 4)
end
end
ret = self.commissioning.process_incoming(frame)
@ -141,14 +141,14 @@ class Matter_MessageHandler
# encrypted message
# matter.profiler.log("msg_received_header_encrypted_message_received")
if tasmota.loglevel(4)
tasmota.log(format("MTR: decode header: local_session_id=%i message_counter=%i", frame.local_session_id, frame.message_counter), 4)
log(format("MTR: decode header: local_session_id=%i message_counter=%i", frame.local_session_id, frame.message_counter), 4)
end
var session = self.device.sessions.get_session_by_local_session_id(frame.local_session_id)
# matter.profiler.log("msg_received_header_session_retrieved")
if session == nil
tasmota.log("MTR: unknown local_session_id="+str(frame.local_session_id), 3)
# tasmota.log("MTR: frame="+matter.inspect(frame), 3)
log("MTR: unknown local_session_id="+str(frame.local_session_id), 3)
# log("MTR: frame="+matter.inspect(frame), 3)
return false
end
# matter.profiler.log("msg_received_session_found")
@ -160,7 +160,7 @@ class Matter_MessageHandler
# check if it's a duplicate
if !session.counter_rcv_validate(frame.message_counter, true)
if tasmota.loglevel(3)
tasmota.log("MTR: . Duplicate encrypted message = " + str(frame.message_counter) + " counter=" + str(session.counter_rcv), 3)
log("MTR: . Duplicate encrypted message = " + str(frame.message_counter) + " counter=" + str(session.counter_rcv), 3)
end
self.send_encrypted_ack(frame, false #-not reliable-#)
return false
@ -173,14 +173,14 @@ class Matter_MessageHandler
# matter.profiler.log("msg_received_payload_undecoded")
# continue decoding
# tasmota.log(format("MTR: idx=%i clear=%s", frame.payload_idx, frame.raw.tohex()), 4)
# log(format("MTR: idx=%i clear=%s", frame.payload_idx, frame.raw.tohex()), 4)
frame.decode_payload()
# matter.profiler.log("msg_received_payload_decoded")
if tasmota.loglevel(4)
tasmota.log("MTR: > Decrypted message: protocol_id:"+str(frame.protocol_id)+" opcode="+str(frame.opcode)+" exchange_id="+str(frame.exchange_id & 0xFFFF), 4)
log("MTR: > Decrypted message: protocol_id:"+str(frame.protocol_id)+" opcode="+str(frame.opcode)+" exchange_id="+str(frame.exchange_id & 0xFFFF), 4)
end
# tasmota.log(format("MTR: >rcv (%6i) [%02X/%02X] rid=%i exch=%i ack=%s %sfrom [%s]:%i", session.local_session_id, frame.protocol_id, frame.opcode, frame.message_counter, frame.exchange_id, str(frame.ack_message_counter), frame.x_flag_r ? "{reliable} " : "", addr, port), 3)
# log(format("MTR: >rcv (%6i) [%02X/%02X] rid=%i exch=%i ack=%s %sfrom [%s]:%i", session.local_session_id, frame.protocol_id, frame.opcode, frame.message_counter, frame.exchange_id, str(frame.ack_message_counter), frame.x_flag_r ? "{reliable} " : "", addr, port), 3)
self.device.received_ack(frame) # remove acknowledge packet from sending list
@ -188,7 +188,7 @@ class Matter_MessageHandler
var protocol_id = frame.protocol_id
if protocol_id == 0x0000 # PROTOCOL_ID_SECURE_CHANNEL
# it should not be encrypted
# tasmota.log("MTR: PROTOCOL_ID_SECURE_CHANNEL " + matter.inspect(frame), 3)
# log("MTR: PROTOCOL_ID_SECURE_CHANNEL " + matter.inspect(frame), 3)
if frame.opcode == 0x10 # MRPStandaloneAcknowledgement
ret = self.im.process_incoming_ack(frame)
if ret
@ -212,21 +212,21 @@ class Matter_MessageHandler
# -- PROTOCOL_ID_BDX is used for file transfer between devices, not used in Tasmota
# elif protocol_id == 0x0002 # PROTOCOL_ID_BDX -- BDX not handled at all in Tasmota
# tasmota.log("MTR: PROTOCOL_ID_BDX not yet handled", 2)
# log("MTR: PROTOCOL_ID_BDX not yet handled", 2)
# return false # ignore for now TODO
# -- PROTOCOL_ID_USER_DIRECTED_COMMISSIONING is only used by devices, as a device we will not receive any
# elif protocol_id == 0x0003 # PROTOCOL_ID_USER_DIRECTED_COMMISSIONING
# tasmota.log("MTR: PROTOCOL_ID_USER_DIRECTED_COMMISSIONING not yet handled", 2)
# log("MTR: PROTOCOL_ID_USER_DIRECTED_COMMISSIONING not yet handled", 2)
# return false # ignore for now TODO
else
tasmota.log("MTR: ignoring unhandled protocol_id:"+str(protocol_id), 3)
log("MTR: ignoring unhandled protocol_id:"+str(protocol_id), 3)
end
end
return ret
except .. as e, m
tasmota.log("MTR: MessageHandler::msg_received exception: "+str(e)+";"+str(m), 2)
log("MTR: MessageHandler::msg_received exception: "+str(e)+";"+str(m), 2)
if tasmota._debug_present
import debug
debug.traceback()

View File

@ -118,11 +118,7 @@ class Matter_Plugin_Device : Matter_Plugin
if attribute == 0x0003 # ---------- ProductName / string ----------
if self.BRIDGE
var name = self.http_remote.get_info().find("name")
if name
return tlv_solo.set(TLV.UTF1, name)
else
return tlv_solo.set(TLV.NULL, nil)
end
return tlv_solo.set_or_nil(TLV.UTF1, name)
else
return tlv_solo.set(TLV.UTF1, tasmota.cmd("DeviceName", true)['DeviceName'])
end
@ -147,11 +143,7 @@ class Matter_Plugin_Device : Matter_Plugin
elif attribute == 0x000F || attribute == 0x0012 # ---------- SerialNumber / string ----------
if self.BRIDGE
var mac = self.http_remote.get_info().find("mac")
if mac
return tlv_solo.set(TLV.UTF1, mac)
else
return tlv_solo.set(TLV.NULL, nil)
end
return tlv_solo.set_or_nil(TLV.UTF1, mac)
else
return tlv_solo.set(TLV.UTF1, tasmota.wifi().find("mac", ""))
end
@ -325,7 +317,7 @@ class Matter_Plugin_Device : Matter_Plugin
return j
end
retry -= 1
tasmota.log("MTR: HTTP GET retrying", 3)
log("MTR: HTTP GET retrying", 3)
end
self.http_remote.device_is_alive(false)
return nil

View File

@ -94,13 +94,13 @@ class Matter_Plugin_Root : Matter_Plugin
eth.add_TLV(2, TLV.BOOL, 1) # OffPremiseServicesReachableIPv4
eth.add_TLV(3, TLV.NULL, nil) # OffPremiseServicesReachableIPv6
var mac = bytes().fromhex(string.replace(tas_eth.find("mac", ""), ":", ""))
eth.add_TLV(4, TLV.B1, mac) # HardwareAddress
var ip4 = eth.add_array(5) # IPv4Addresses
eth.add_TLV(4, TLV.B1, mac) # HardwareAddress
var ip4 = eth.add_array(5) # IPv4Addresses
ip4.add_TLV(nil, TLV.B1, matter.get_ip_bytes(tas_eth.find("ip", "")))
var ip6 = eth.add_array(6) # IPv6Addresses
var ip6 = eth.add_array(6) # IPv6Addresses
ip6.add_TLV(nil, TLV.B1, matter.get_ip_bytes(tas_eth.find("ip6local", "")))
ip6.add_TLV(nil, TLV.B1, matter.get_ip_bytes(tas_eth.find("ip6", "")))
eth.add_TLV(7, TLV.U1, 2) # InterfaceType, p646
eth.add_TLV(7, TLV.U1, 2) # InterfaceType, p646
end
var tas_wif = tasmota.wifi()
@ -111,13 +111,13 @@ class Matter_Plugin_Root : Matter_Plugin
wif.add_TLV(2, TLV.BOOL, 1) # OffPremiseServicesReachableIPv4
wif.add_TLV(3, TLV.NULL, nil) # OffPremiseServicesReachableIPv6
var mac = bytes().fromhex(string.replace(tas_wif.find("mac", ""), ":", ""))
wif.add_TLV(4, TLV.B1, mac) # HardwareAddress
var ip4 = wif.add_array(5) # IPv4Addresses
wif.add_TLV(4, TLV.B1, mac) # HardwareAddress
var ip4 = wif.add_array(5) # IPv4Addresses
ip4.add_TLV(nil, TLV.B1, matter.get_ip_bytes(tas_wif.find("ip", "")))
var ip6 = wif.add_array(6) # IPv6Addresses
var ip6 = wif.add_array(6) # IPv6Addresses
ip6.add_TLV(nil, TLV.B1, matter.get_ip_bytes(tas_wif.find("ip6local", "")))
ip6.add_TLV(nil, TLV.B1, matter.get_ip_bytes(tas_wif.find("ip6", "")))
wif.add_TLV(7, TLV.U1, 1) # InterfaceType, p646
wif.add_TLV(7, TLV.U1, 1) # InterfaceType, p646
end
return nwi
elif attribute == 0x0001 # ---------- RebootCount u16 ----------
@ -142,7 +142,7 @@ class Matter_Plugin_Root : Matter_Plugin
return tlv_solo.set(TLV.U1, 3) # MillisecondsGranularity (NTP every hour, i.e. 36ms max drift)
# TODO add some missing args
elif attribute == 0x0007 # ---------- LocalTime / epoch_us ----------
var epoch_us = int64(tasmota.rtc()['local']) * int64(1000000)
var epoch_us = int64(tasmota.rtc('local')) * int64(1000000)
return tlv_solo.set(TLV.U8, epoch_us) # TODO test the conversion of int64()
end
@ -201,16 +201,12 @@ class Matter_Plugin_Root : Matter_Plugin
elif attribute == 0x0001 # ---------- AdminFabricIndex / u16 ----------
var admin_fabric = self.device.commissioning_admin_fabric
if admin_fabric != nil
return tlv_solo.set(TLV.U2, admin_fabric.get_fabric_index())
else
return tlv_solo.set(TLV.NULL, nil)
return tlv_solo.set_or_nil(TLV.U2, admin_fabric.get_fabric_index())
end
elif attribute == 0x0002 # ---------- AdminVendorId / u16 ----------
var admin_fabric = self.device.commissioning_admin_fabric
if admin_fabric != nil
return tlv_solo.set(TLV.U2, admin_fabric.get_admin_vendor())
else
return tlv_solo.set(TLV.NULL, nil)
return tlv_solo.set_or_nil(TLV.U2, admin_fabric.get_admin_vendor())
end
end
@ -426,7 +422,7 @@ class Matter_Plugin_Root : Matter_Plugin
var ac = session.get_ac()
var attestation_tbs = attestation_message + ac
# tasmota.log("MTR: attestation_tbs=" + attestation_tbs.tohex(), 4)
# log("MTR: attestation_tbs=" + attestation_tbs.tohex(), 4)
var attestation_signature = crypto.EC_P256().ecdsa_sign_sha256(matter.DAC_Priv_FFF1_8000(), attestation_tbs)
@ -444,7 +440,7 @@ class Matter_Plugin_Root : Matter_Plugin
var CSRNonce = val.findsubval(0) # octstr 32
if size(CSRNonce) != 32 return nil end # check size on nonce
var IsForUpdateNOC = val.findsubval(1, false) # bool
# tasmota.log(format("MTR: CSRRequest CSRNonce=%s IsForUpdateNOC=%s", str(CSRNonce), str(IsForUpdateNOC)), 4)
# log(format("MTR: CSRRequest CSRNonce=%s IsForUpdateNOC=%s", str(CSRNonce), str(IsForUpdateNOC)), 4)
var csr = session.gen_CSR()
@ -454,7 +450,7 @@ class Matter_Plugin_Root : Matter_Plugin
var nocsr_elements_message = nocsr_elements.tlv2raw()
# sign with attestation challenge
var nocsr_tbs = nocsr_elements_message + session.get_ac()
# tasmota.log("MTR: nocsr_tbs=" + nocsr_tbs.tohex(), 4)
# log("MTR: nocsr_tbs=" + nocsr_tbs.tohex(), 4)
var attestation_signature = crypto.EC_P256().ecdsa_sign_sha256(matter.DAC_Priv_FFF1_8000(), nocsr_tbs)
# create CSRResponse
@ -470,12 +466,12 @@ class Matter_Plugin_Root : Matter_Plugin
var RootCACertificate = val.findsubval(0) # octstr 400 max
# TODO - additional tests are expected according to 11.17.7.13. AddTrustedRootCertificate Command
session.set_temp_ca(RootCACertificate)
# tasmota.log("MTR: received ca_root="+RootCACertificate.tohex(), 4)
# log("MTR: received ca_root="+RootCACertificate.tohex(), 4)
ctx.status = matter.SUCCESS # OK
return nil # trigger a standalone ack
elif command == 0x0006 # ---------- AddNOC ----------
tasmota.log("MTR: AddNoc Args=" + str(val), 4)
log("MTR: AddNoc Args=" + str(val), 4)
var NOCValue = val.findsubval(0) # octstr max 400
var ICACValue = val.findsubval(1) # octstr max 400
# Apple sends an empty ICAC instead of a missing attribute, fix this
@ -483,14 +479,14 @@ class Matter_Plugin_Root : Matter_Plugin
var IpkValue = val.findsubval(2) # octstr max 16
var CaseAdminSubject = val.findsubval(3)
var AdminVendorId = val.findsubval(4)
# tasmota.log("MTR: AddNoc NOCValue=" + (NOCValue ? NOCValue.tohex() : ""), 3)
# tasmota.log("MTR: AddNoc ICACValue=" + (ICACValue ? ICACValue.tohex() : ""), 3)
# tasmota.log("MTR: AddNoc IpkValue=" + str(IpkValue), 3)
# tasmota.log("MTR: AddNoc CaseAdminSubject=" + str(CaseAdminSubject), 3)
# tasmota.log("MTR: AddNoc AdminVendorId=" + str(AdminVendorId), 3)
# log("MTR: AddNoc NOCValue=" + (NOCValue ? NOCValue.tohex() : ""), 3)
# log("MTR: AddNoc ICACValue=" + (ICACValue ? ICACValue.tohex() : ""), 3)
# log("MTR: AddNoc IpkValue=" + str(IpkValue), 3)
# log("MTR: AddNoc CaseAdminSubject=" + str(CaseAdminSubject), 3)
# log("MTR: AddNoc AdminVendorId=" + str(AdminVendorId), 3)
if session.get_temp_ca() == nil
tasmota.log("MTR: Error: AdNOC without CA", 2)
log("MTR: Error: AdNOC without CA", 2)
return nil
end
@ -506,23 +502,23 @@ class Matter_Plugin_Root : Matter_Plugin
var dnlist = noc_cert.findsub(6)
var fabric_id = dnlist.findsubval(21)
var deviceid = dnlist.findsubval(17)
# tasmota.log("MTR: AddNoc noc_cert=" + str(noc_cert), 3)
# tasmota.log("MTR: AddNoc dnlist=" + str(dnlist), 3)
# log("MTR: AddNoc noc_cert=" + str(noc_cert), 3)
# log("MTR: AddNoc dnlist=" + str(dnlist), 3)
if !fabric_id || !deviceid
tasmota.log("MTR: Error: no fabricid nor deviceid in NOC certificate", 2)
log("MTR: Error: no fabricid nor deviceid in NOC certificate", 2)
return false
end
# convert fo bytes(8)
if type(fabric_id) == 'int' fabric_id = int64.fromu32(fabric_id).tobytes() else fabric_id = fabric_id.tobytes() end
if type(deviceid) == 'int' deviceid = int64.fromu32(deviceid).tobytes() else deviceid = deviceid.tobytes() end
# tasmota.log("MTR: AddNoc fabric_id=" + str(fabric_id), 3)
# tasmota.log("MTR: AddNoc deviceid=" + str(deviceid), 3)
# log("MTR: AddNoc fabric_id=" + str(fabric_id), 3)
# log("MTR: AddNoc deviceid=" + str(deviceid), 3)
var root_ca_pub = session.get_temp_ca_pub()
# tasmota.log("MTR: AddNoc root_ca_pub=" + str(root_ca_pub), 3)
# tasmota.log("MTR: AddNoc root_ca_pub=" + root_ca_pub.tohex(), 3)
# log("MTR: AddNoc root_ca_pub=" + str(root_ca_pub), 3)
# log("MTR: AddNoc root_ca_pub=" + root_ca_pub.tohex(), 3)
root_ca_pub = root_ca_pub[1..] # remove first byte as per Matter specification
var info = bytes().fromstring("CompressedFabric") # as per spec, 4.3.2.2 p.99
var hk = crypto.HKDF_SHA256()
@ -531,7 +527,7 @@ class Matter_Plugin_Root : Matter_Plugin
var parent_fabric = session._fabric ? session._fabric : self.device.commissioning_admin_fabric # get parent fabric whether CASE or PASE
new_fabric.set_fabric_device(fabric_id, deviceid, k_fabric, parent_fabric)
# tasmota.log("MTR: AddNoc k_fabric=" + str(k_fabric), 3)
# log("MTR: AddNoc k_fabric=" + str(k_fabric), 3)
# We have a candidate fabric, add it as expirable for 2 minutes
new_fabric.fabric_candidate()
@ -543,10 +539,10 @@ class Matter_Plugin_Root : Matter_Plugin
session.set_expire_in_seconds(60)
end
# tasmota.log("MTR: ------------------------------------------", 3)
# tasmota.log("MTR: session=" + matter.inspect(session), 3)
# tasmota.log("MTR: fabric=" + matter.inspect(session._fabric), 3)
# tasmota.log("MTR: ------------------------------------------", 3)
# log("MTR: ------------------------------------------", 3)
# log("MTR: session=" + matter.inspect(session), 3)
# log("MTR: fabric=" + matter.inspect(session._fabric), 3)
# log("MTR: ------------------------------------------", 3)
new_fabric.log_new_fabric() # log that we registered a new fabric
new_fabric.assign_fabric_index()
# create NOCResponse
@ -562,7 +558,7 @@ class Matter_Plugin_Root : Matter_Plugin
elif command == 0x0009 # ---------- UpdateFabricLabel ----------
var label = val.findsubval(0) # Label string max 32
session.set_fabric_label(label)
tasmota.log(format("MTR: . Update fabric '%s' label='%s'", session._fabric.get_fabric_id().copy().reverse().tohex(), str(label)), 3)
log(format("MTR: . Update fabric '%s' label='%s'", session._fabric.get_fabric_id().copy().reverse().tohex(), str(label)), 3)
# create NOCResponse
# 0=StatusCode
@ -580,7 +576,7 @@ class Matter_Plugin_Root : Matter_Plugin
for fab: self.device.sessions.active_fabrics()
if fab.get_fabric_index() == index
# tasmota.log("MTR: removing fabric " + fab.get_fabric_id().copy().reverse().tohex(), 2)
# log("MTR: removing fabric " + fab.get_fabric_id().copy().reverse().tohex(), 2)
# defer actual removal to send a response
fab.mark_for_deletion() # this should not appear anymore in the list
tasmota.set_timer(2000, def () self.device.remove_fabric(fab) end)
@ -596,7 +592,7 @@ class Matter_Plugin_Root : Matter_Plugin
return nocr
end
end
tasmota.log("MTR: RemoveFabric fabric("+str(index)+") not found", 2)
log("MTR: RemoveFabric fabric("+str(index)+") not found", 2)
ctx.status = matter.INVALID_ACTION
return nil # trigger a standalone ack
@ -612,7 +608,7 @@ class Matter_Plugin_Root : Matter_Plugin
var iterations = val.findsubval(3) # Iterations u4
var salt = val.findsubval(4) # Salt octstr
tasmota.log(format("MTR: OpenCommissioningWindow(timeout=%i, passcode=%s, discriminator=%i, iterations=%i, salt=%s)",
log(format("MTR: OpenCommissioningWindow(timeout=%i, passcode=%s, discriminator=%i, iterations=%i, salt=%s)",
timeout, passcode_verifier.tohex(), discriminator, iterations, salt.tohex()), 4)
# check values
@ -621,7 +617,7 @@ class Matter_Plugin_Root : Matter_Plugin
return nil # trigger a standalone ack
end
if size(passcode_verifier) != 32+65 || size(salt) < 16 || size(salt) > 32
tasmota.log("MTR: wrong size for PAKE parameters", 2)
log("MTR: wrong size for PAKE parameters", 2)
ctx.status = matter.CONSTRAINT_ERROR
return nil # trigger a standalone ack
end
@ -634,7 +630,7 @@ class Matter_Plugin_Root : Matter_Plugin
return true # OK
elif command == 0x0001 # ---------- OpenBasicCommissioningWindow ----------
var commissioning_timeout = val.findsubval(0) # CommissioningTimeout
tasmota.log("MTR: OpenBasicCommissioningWindow commissioning_timeout="+str(commissioning_timeout), 3)
log("MTR: OpenBasicCommissioningWindow commissioning_timeout="+str(commissioning_timeout), 3)
self.device.start_root_basic_commissioning(commissioning_timeout)
return true
elif command == 0x0002 # ---------- RevokeCommissioning ----------

View File

@ -135,11 +135,7 @@ class Matter_Plugin_Sensor_Air_Quality : Matter_Plugin_Device
def handle_value(shadow_value, unit)
if (unit == nil) unit = 0 end # default unit is `0` = PPM
if attribute == 0x0000 # ---------- Measured­ Value / float ----------
if shadow_value != nil
return tlv_solo.set(TLV.FLOAT, shadow_value)
else
return tlv_solo.set(TLV.NULL, nil)
end
return tlv_solo.set_or_nil(TLV.FLOAT, shadow_value)
elif attribute == 0x0001 # ---------- MinMeasured Value / float ----------
return tlv_solo.set(TLV.NULL, nil)
elif attribute == 0x0002 # ---------- MaxMeasured Value / float ----------
@ -157,11 +153,7 @@ class Matter_Plugin_Sensor_Air_Quality : Matter_Plugin_Device
# ====================================================================================================
if cluster == 0x005B # ========== Air Quality ==========
if attribute == 0x0000 # ---------- AirQuality / U8 ----------
if self.shadow_air_quality != nil
return tlv_solo.set(TLV.U1, self.shadow_air_quality)
else
return tlv_solo.set(TLV.NULL, nil)
end
return tlv_solo.set_or_nil(TLV.U1, self.shadow_air_quality)
# elif attribute == 0xFFFC # ---------- FeatureMap / map32 ----------
# return tlv_solo.set(TLV.U4, 0) #
end

View File

@ -87,11 +87,7 @@ class Matter_Plugin_Sensor_Contact : Matter_Plugin_Device
# ====================================================================================================
if cluster == 0x0045 # ========== Boolean State ==========
if attribute == 0x0000 # ---------- StateValue / bool ----------
if self.shadow_contact != nil
return tlv_solo.set(TLV.BOOL, self.shadow_contact)
else
return tlv_solo.set(TLV.NULL, nil)
end
return tlv_solo.set_or_nil(TLV.BOOL, self.shadow_contact)
end
end

View File

@ -87,11 +87,7 @@ class Matter_Plugin_Sensor_Occupancy : Matter_Plugin_Device
# ====================================================================================================
if cluster == 0x0406 # ========== Occupancy Sensing ==========
if attribute == 0x0000 # ---------- Occupancy / U8 ----------
if self.shadow_occupancy != nil
return tlv_solo.set(TLV.U1, self.shadow_occupancy)
else
return tlv_solo.set(TLV.NULL, nil)
end
return tlv_solo.set_or_nil(TLV.U1, self.shadow_occupancy)
elif attribute == 0x0001 # ---------- OccupancySensorType / enum8 ----------
return tlv_solo.set(TLV.U1, 3) # physical contact
elif attribute == 0x0002 # ---------- OccupancySensorTypeBitmap / u8 ----------

View File

@ -65,10 +65,10 @@ class Matter_Plugin_Shutter : Matter_Plugin_Device
if r_st13.contains('StatusSHT')
r_st13 = r_st13['StatusSHT'] # skip root
var d = r_st13.find("SHT"+str(self.tasmota_shutter_index), {}).find('Opt')
# tasmota.log("MTR: opt: "+str(d))
# log("MTR: opt: "+str(d))
if d != nil
self.shadow_shutter_inverted = int(d[size(d)-1]) # inverted is at the most right character
# tasmota.log("MTR: Inverted flag: "+str(self.shadow_shutter_inverted))
# log("MTR: Inverted flag: "+str(self.shadow_shutter_inverted))
end
end
end
@ -162,7 +162,7 @@ class Matter_Plugin_Shutter : Matter_Plugin_Device
self.update_shadow()
return true
elif command == 0x0005 # ---------- GoToLiftPercentage ----------
tasmota.log("MTR: Tilt = "+str(val), 2)
log("MTR: Tilt = "+str(val), 2)
var pos_100 = val.findsubval(0)
if pos_100 != nil
pos_100 = pos_100 / 100
@ -191,7 +191,7 @@ class Matter_Plugin_Shutter : Matter_Plugin_Device
var k = "Shutter" + str(self.tasmota_shutter_index + 1)
if payload.contains(k)
var v = payload[k]
# tasmota.log(format("MTR: getting shutter values(%i): %s", self.endpoint, str(v)), 2)
# log(format("MTR: getting shutter values(%i): %s", self.endpoint, str(v)), 2)
# Position
var val_pos = v.find("Position")
if val_pos != nil

View File

@ -62,11 +62,7 @@ class Matter_Plugin_Sensor_Flow : Matter_Plugin_Sensor
# ====================================================================================================
if cluster == 0x0404 # ========== Flow Measurement 2.4 p.98 ==========
if attribute == 0x0000 # ---------- MeasuredValue / i16 ----------
if self.shadow_value != nil
return tlv_solo.set(TLV.U2, int(self.shadow_value)) # MeasuredValue represents 10 x flow in m3/h.
else
return tlv_solo.set(TLV.NULL, nil)
end
return tlv_solo.set_or_nil(TLV.U2, int(self.shadow_value)) # MeasuredValue represents 10 x flow in m3/h.
elif attribute == 0x0001 # ---------- MinMeasuredValue / i16 ----------
return tlv_solo.set(TLV.U2, 0) # 0 m3/h
elif attribute == 0x0002 # ---------- MaxMeasuredValue / i16 ----------

View File

@ -62,11 +62,7 @@ class Matter_Plugin_Sensor_Humidity : Matter_Plugin_Sensor
# ====================================================================================================
if cluster == 0x0405 # ========== Humidity Measurement 2.4 p.98 ==========
if attribute == 0x0000 # ---------- Humidity / u16 ----------
if self.shadow_value != nil
return tlv_solo.set(TLV.U2, int(self.shadow_value))
else
return tlv_solo.set(TLV.NULL, nil)
end
return tlv_solo.set_or_nil(TLV.U2, int(self.shadow_value))
elif attribute == 0x0001 # ---------- MinMeasuredValue / u16 ----------
return tlv_solo.set(TLV.U2, 500) # 0%
elif attribute == 0x0002 # ---------- MaxMeasuredValue / u16 ----------

View File

@ -69,11 +69,7 @@ class Matter_Plugin_Sensor_Illuminance : Matter_Plugin_Sensor
# ====================================================================================================
if cluster == 0x0400 # ========== Illuminance Measurement 2.2 p.95 ==========
if attribute == 0x0000 # ---------- MeasuredValue / i16 ----------
if self.shadow_value != nil
return tlv_solo.set(TLV.U2, int(self.shadow_value))
else
return tlv_solo.set(TLV.NULL, nil)
end
return tlv_solo.set_or_nil(TLV.U2, int(self.shadow_value))
elif attribute == 0x0001 # ---------- MinMeasuredValue / i16 ----------
return tlv_solo.set(TLV.U2, 1) # 1 lux
elif attribute == 0x0002 # ---------- MaxMeasuredValue / i16 ----------

View File

@ -62,11 +62,7 @@ class Matter_Plugin_Sensor_Pressure : Matter_Plugin_Sensor
# ====================================================================================================
if cluster == 0x0403 # ========== Pressure Measurement 2.4 p.98 ==========
if attribute == 0x0000 # ---------- MeasuredValue / i16 ----------
if self.shadow_value != nil
return tlv_solo.set(TLV.I2, int(self.shadow_value))
else
return tlv_solo.set(TLV.NULL, nil)
end
return tlv_solo.set_or_nil(TLV.I2, int(self.shadow_value))
elif attribute == 0x0001 # ---------- MinMeasuredValue / i16 ----------
return tlv_solo.set(TLV.I2, 500) # 500 hPA
elif attribute == 0x0002 # ---------- MaxMeasuredValue / i16 ----------

View File

@ -73,11 +73,7 @@ class Matter_Plugin_Sensor_Temp : Matter_Plugin_Sensor
# ====================================================================================================
if cluster == 0x0402 # ========== Temperature Measurement 2.3 p.97 ==========
if attribute == 0x0000 # ---------- MeasuredValue / i16 (*100) ----------
if self.shadow_value != nil
return tlv_solo.set(TLV.I2, self.shadow_value)
else
return tlv_solo.set(TLV.NULL, nil)
end
return tlv_solo.set_or_nil(TLV.I2, self.shadow_value)
elif attribute == 0x0001 # ---------- MinMeasuredValue / i16 (*100) ----------
return tlv_solo.set(TLV.I2, -5000) # -50 °C
elif attribute == 0x0002 # ---------- MaxMeasuredValue / i16 (*100) ----------

View File

@ -80,14 +80,14 @@ class Matter_Profiler
def dump(loglevel)
if !self.active return end
self.log("<--end-->")
tasmota.log("MTR: Profiler dump:", loglevel)
log("MTR: Profiler dump:", loglevel)
var origin = self.millis[0]
var allocs0 = self.allocs[0]
var reallocs0 = self.reallocs[0]
var idx = 1
while idx < self.len
# tasmota.log(f"MTR: {self.millis[idx] - origin:4i} [{self.allocs[idx] - allocs0:4i}|{self.reallocs[idx] - reallocs0:4i}]'{self.names[idx]}'", loglevel)
tasmota.log(f"MTR: {self.millis[idx] - origin:4i} [{self.allocs[idx] - allocs0:4i}]'{self.names[idx]}'", loglevel)
# log(f"MTR: {self.millis[idx] - origin:4i} [{self.allocs[idx] - allocs0:4i}|{self.reallocs[idx] - reallocs0:4i}]'{self.names[idx]}'", loglevel)
log(f"MTR: {self.millis[idx] - origin:4i} [{self.allocs[idx] - allocs0:4i}]'{self.names[idx]}'", loglevel)
idx += 1
end
end

View File

@ -118,7 +118,7 @@ class Matter_Session : Matter_Expirable
#############################################################
# Called before removal
def before_remove()
tasmota.log(format("MTR: -Session (%6i) (removed)", self.local_session_id), 3)
log(format("MTR: -Session (%6i) (removed)", self.local_session_id), 3)
end
#############################################################
@ -128,7 +128,7 @@ class Matter_Session : Matter_Expirable
#
def counter_snd_next()
var next = self._counter_snd_impl.next()
# tasmota.log(format("MTR: . Counter_snd=%i", next), 4)
# log(format("MTR: . Counter_snd=%i", next), 4)
if matter.Counter.is_greater(next, self.counter_snd)
self.counter_snd = next + self._COUNTER_SND_INCR
if self.does_persist()

View File

@ -286,9 +286,9 @@ class Matter_Session_Store
var sessions = self.sessions
while i < size(sessions)
var session = sessions[i]
tasmota.log(format("MTR: session.resumption_id=%s vs %s", str(session.resumption_id), str(resumption_id)), 4)
log(format("MTR: session.resumption_id=%s vs %s", str(session.resumption_id), str(resumption_id)), 4)
if session.resumption_id == resumption_id && session.shared_secret != nil
# tasmota.log(format("MTR: session.shared_secret=%s", str(session.shared_secret)), 4)
# log(format("MTR: session.shared_secret=%s", str(session.shared_secret)), 4)
session.update()
return session
end
@ -339,13 +339,13 @@ class Matter_Session_Store
# saving went well, now remove previous version and rename
path.remove(self._FABRICS)
if (path.rename(self._FABRICS_TEMP, self._FABRICS))
tasmota.log(f"MTR: =Saved {fabrics_saved} fabric(s) and {sessions_saved} session(s)", 2)
log(f"MTR: =Saved {fabrics_saved} fabric(s) and {sessions_saved} session(s)", 2)
self.device.event_fabrics_saved() # signal event
else
tasmota.log(f"MTR: Saving Fabrics failed", 2)
log(f"MTR: Saving Fabrics failed", 2)
end
except .. as e, m
tasmota.log("MTR: Session_Store::save Exception:" + str(e) + "|" + str(m), 2)
log("MTR: Session_Store::save Exception:" + str(e) + "|" + str(m), 2)
end
end
@ -386,10 +386,10 @@ class Matter_Session_Store
self.fabrics.push(fabric)
end
tasmota.log(format("MTR: Loaded %i fabric(s)", size(self.fabrics)), 2)
log(format("MTR: Loaded %i fabric(s)", size(self.fabrics)), 2)
except .. as e, m
if e != "io_error"
tasmota.log("MTR: Session_Store::load Exception:" + str(e) + "|" + str(m), 2)
log("MTR: Session_Store::load Exception:" + str(e) + "|" + str(m), 2)
end
end
# persistables are normally not expiring

View File

@ -81,7 +81,7 @@ class Matter_TCP_async
end
return true
else
tasmota.log(format("BRY: failed to resolve [%s]:%i", self.addr, self.port), 3)
log(format("BRY: failed to resolve [%s]:%i", self.addr, self.port), 3)
self.close()
self.status = -1
self.tcp_connected = false

View File

@ -275,9 +275,9 @@ class Matter_TLV
elif item_type == TLV.NULL # null
# do nothing
elif item_type == TLV.EOC
tasmota.log("MTR: unexpected eoc", 3)
log("MTR: unexpected eoc", 3)
else
tasmota.log("MTR: unexpected type: " + str(item_type), 3)
log("MTR: unexpected type: " + str(item_type), 3)
end
self.next_idx = idx
return idx

View File

@ -135,9 +135,9 @@ class Matter_UDPServer
var from_addr = self.udp_socket.remote_ip
var from_port = self.udp_socket.remote_port
if tasmota.loglevel(4)
tasmota.log(format("MTR: UDP received from [%s]:%i", from_addr, from_port), 4)
log(format("MTR: UDP received from [%s]:%i", from_addr, from_port), 4)
end
# tasmota.log("MTR: Perf/UDP_received = " + str(debug.counters()), 4)
# log("MTR: Perf/UDP_received = " + str(debug.counters()), 4)
if self.dispatch_cb
profiler.log("udp_loop_dispatch")
self.dispatch_cb(packet, from_addr, from_port)
@ -165,11 +165,11 @@ class Matter_UDPServer
if ok
if tasmota.loglevel(4)
tasmota.log(format("MTR: sending packet to '[%s]:%i'", packet.addr, packet.port), 4)
log(format("MTR: sending packet to '[%s]:%i'", packet.addr, packet.port), 4)
end
else
if tasmota.loglevel(3)
tasmota.log(format("MTR: error sending packet to '[%s]:%i'", packet.addr, packet.port), 3)
log(format("MTR: error sending packet to '[%s]:%i'", packet.addr, packet.port), 3)
end
end
return ok
@ -190,14 +190,14 @@ class Matter_UDPServer
var packet = self.packets_sent[idx]
if tasmota.time_reached(packet.next_try)
if packet.retries <= self.RETRIES
tasmota.log("MTR: . Resending packet id=" + str(packet.msg_id), 4)
log("MTR: . Resending packet id=" + str(packet.msg_id), 4)
self.send(packet)
packet.next_try = tasmota.millis() + self._backoff_time(packet.retries)
packet.retries += 1
idx += 1
else
self.packets_sent.remove(idx)
tasmota.log(format("MTR: . (%6i) Unacked packet '[%s]:%i' msg_id=%i", packet.session_id, packet.addr, packet.port, packet.msg_id), 3)
log(format("MTR: . (%6i) Unacked packet '[%s]:%i' msg_id=%i", packet.session_id, packet.addr, packet.port, packet.msg_id), 3)
end
else
idx += 1
@ -211,14 +211,14 @@ class Matter_UDPServer
var id = msg.ack_message_counter
var exch = msg.exchange_id
if id == nil return end
# tasmota.log("MTR: receveived ACK id="+str(id), 4)
# log("MTR: receveived ACK id="+str(id), 4)
var idx = 0
while idx < size(self.packets_sent)
var packet = self.packets_sent[idx]
if packet.msg_id == id && packet.exchange_id == exch
self.packets_sent.remove(idx)
if tasmota.loglevel(4)
tasmota.log("MTR: . Removed packet from sending list id=" + str(id), 4)
log("MTR: . Removed packet from sending list id=" + str(id), 4)
end
else
idx += 1

View File

@ -368,7 +368,7 @@ class Matter_UI
end
end
self.device.sort_distinct(remotes)
# tasmota.log("MTR: remotes: "+str(remotes), 4)
# log("MTR: remotes: "+str(remotes), 4)
for remote: remotes
@ -642,7 +642,7 @@ class Matter_UI
end
if status10 != nil && status11 != nil
tasmota.log(format("MTR: probed '%s' status10=%s satus11=%s", url, str(status10), str(status11)), 3)
log(format("MTR: probed '%s' status10=%s satus11=%s", url, str(status10), str(status11)), 3)
var config_list = self.generate_config_from_status(status10, status11)
@ -752,14 +752,14 @@ class Matter_UI
# debug information about parameters
# for i:0..webserver.arg_size()-1
# tasmota.log(format("MTR: Arg%i '%s' = '%s'", i, webserver.arg_name(i), webserver.arg(i)))
# log(format("MTR: Arg%i '%s' = '%s'", i, webserver.arg_name(i), webserver.arg(i)))
# end
#---------------------------------------------------------------------#
# Change Passcode and/or Passcode
#---------------------------------------------------------------------#
if webserver.has_arg("passcode") || webserver.has_arg("discriminator")
tasmota.log(format("MTR: /matterc received '%s' command", 'passcode'), 3)
log(format("MTR: /matterc received '%s' command", 'passcode'), 3)
if webserver.has_arg("passcode")
self.device.root_passcode = int(webserver.arg("passcode"))
end
@ -783,10 +783,10 @@ class Matter_UI
if matter_enabled_requested != self.matter_enabled()
if matter_enabled_requested
tasmota.log(format("MTR: /matterc received '%s' command", 'enable'), 3)
log(format("MTR: /matterc received '%s' command", 'enable'), 3)
tasmota.cmd("SetOption" + str(matter.MATTER_OPTION) + " 1")
else
tasmota.log(format("MTR: /matterc received '%s' command", 'disable'), 3)
log(format("MTR: /matterc received '%s' command", 'disable'), 3)
tasmota.cmd("SetOption" + str(matter.MATTER_OPTION) + " 0")
end
#- and force restart -#
@ -808,7 +808,7 @@ class Matter_UI
# Delete Fabric
#---------------------------------------------------------------------#
elif webserver.has_arg("del_fabric")
tasmota.log(format("MTR: /matterc received '%s' command", 'del_fabric'), 3)
log(format("MTR: /matterc received '%s' command", 'del_fabric'), 3)
var del_fabric = int(webserver.arg("del_fabric"))
var idx = 0
var fabrics = self.device.sessions.fabrics
@ -827,7 +827,7 @@ class Matter_UI
# Reset to default auto-configuration
#---------------------------------------------------------------------#
elif webserver.has_arg("auto")
tasmota.log(format("MTR: /matterc received '%s' command", 'auto'), 3)
log(format("MTR: /matterc received '%s' command", 'auto'), 3)
self.device.plugins_persist = false
self.device.save_param()
#- and force restart -#
@ -837,7 +837,7 @@ class Matter_UI
# Apply new configuration template
#---------------------------------------------------------------------#
elif webserver.has_arg("config")
tasmota.log(format("MTR: /matterc received '%s' command", 'config'), 3)
log(format("MTR: /matterc received '%s' command", 'config'), 3)
var needs_saving = false
# iterate by endpoint number
for i:0..webserver.arg_size()-1
@ -851,25 +851,25 @@ class Matter_UI
if conf_ep != nil # found
var typ_class = self.device.plugins_classes.find(conf_ep.find('type', ''))
if typ_class != nil
tasmota.log(format("MTR: ep=%i arg=%s", arg_ep, arg), 3)
log(format("MTR: ep=%i arg=%s", arg_ep, arg), 3)
# compute the actual value
var prev_arg = typ_class.ui_conf_to_string(typ_class, conf_ep)
var changed = (prev_arg != arg)
tasmota.log(format("MTR: ep=%i prev_arg='%s' arg='%s' %s", arg_ep, prev_arg, arg, prev_arg != arg ? "changed" : ""), 3)
log(format("MTR: ep=%i prev_arg='%s' arg='%s' %s", arg_ep, prev_arg, arg, prev_arg != arg ? "changed" : ""), 3)
if changed
needs_saving = true
typ_class.ui_string_to_conf(typ_class, conf_ep, arg)
var pl = self.device.find_plugin_by_endpoint(arg_ep)
if pl
tasmota.log(format("MTR: apply conf '%s' (%i) to %s", conf_ep, arg_ep, pl), 3)
log(format("MTR: apply conf '%s' (%i) to %s", conf_ep, arg_ep, pl), 3)
pl.parse_configuration(conf_ep)
end
end
end
else
tasmota.log(format("MTR: ep=%i not found", arg_ep), 3)
log(format("MTR: ep=%i not found", arg_ep), 3)
end
elif string.find(arg_name, "nam") == 0 # 'nam<i>' with i being the endpoint
var nam_ep = int(arg_name[3..]) # target endpoint as int
@ -891,7 +891,7 @@ class Matter_UI
else
conf_ep.remove('name')
end
tasmota.log(format("MTR: apply name '%s' (%i) to %s", conf_ep, nam_ep, pl), 3)
log(format("MTR: apply name '%s' (%i) to %s", conf_ep, nam_ep, pl), 3)
pl.parse_configuration(conf_ep)
end
end
@ -899,10 +899,10 @@ class Matter_UI
end
end
tasmota.log(format("MTR: config = %s", str(self.device.plugins_config)), 3)
log(format("MTR: config = %s", str(self.device.plugins_config)), 3)
if error
tasmota.log(format("MTR: config error = %s", error), 3)
log(format("MTR: config error = %s", error), 3)
else
if needs_saving || !self.device.plugins_persist
self.device.plugins_persist = true
@ -918,7 +918,7 @@ class Matter_UI
var typ = webserver.arg('pi')
var arg = webserver.arg('arg')
var nam = webserver.arg('nam')
tasmota.log(format("MTR: add endpoint typ='%s' arg='%s'", typ, arg), 3)
log(format("MTR: add endpoint typ='%s' arg='%s'", typ, arg), 3)
# check if type exists
var typ_class = self.device.plugins_classes.find(typ)
@ -958,12 +958,12 @@ class Matter_UI
# check if configuration is already present
var duplicate = false
for c: self.device.plugins_config # iterate on values, not on keys()
# tasmota.log(format("MTR: map_compare '%s' ?= '%s' -> %s", str(c), str(config), str(self.equal_map(c,config))), 3)
# log(format("MTR: map_compare '%s' ?= '%s' -> %s", str(c), str(config), str(self.equal_map(c,config))), 3)
if self.equal_map(c,config) duplicate = true break end
end
# not a duplicate, add it
if !duplicate
tasmota.log(format("MTR: remote add url='%s' type='%s' arg='%s'", url, typ, arg), 3)
log(format("MTR: remote add url='%s' type='%s' arg='%s'", url, typ, arg), 3)
self.device.bridge_add_endpoint(typ, config)
end
end
@ -1004,7 +1004,7 @@ class Matter_UI
end
except .. as e, m
tasmota.log(format("BRY: Exception> '%s' - %s", e, m), 2)
log(format("BRY: Exception> '%s' - %s", e, m), 2)
#- display error page -#
webserver.content_start("Parameter error") #- title of the web page -#
webserver.content_send_style() #- send standard Tasmota styles -#

View File

@ -162,7 +162,7 @@ class Matter_Device
# show Manual pairing code in logs
var pairing_code = self.compute_manual_pairing_code()
tasmota.log(format("MTR: Manual pairing code: %s", pairing_code), 2)
log(format("MTR: Manual pairing code: %s", pairing_code), 2)
# output MQTT
var qr_code = self.compute_qrcode_content()
@ -177,7 +177,7 @@ class Matter_Device
# Remove a fabric and clean all corresponding values and mDNS entries
def remove_fabric(fabric)
if fabric != nil
tasmota.log("MTR: removing fabric " + fabric.get_fabric_id().copy().reverse().tohex(), 2)
log("MTR: removing fabric " + fabric.get_fabric_id().copy().reverse().tohex(), 2)
self.message_handler.im.subs_shop.remove_by_fabric(fabric)
self.mdns_remove_op_discovery(fabric)
self.sessions.remove_fabric(fabric)
@ -187,7 +187,7 @@ class Matter_Device
# for fabric_index : sub_fabrics
# var fabric = self.sessions.find_fabric_by_index(fabric_index)
# if fabric != nil
# tasmota.log("MTR: removing fabric " + fabric.get_fabric_id().copy().reverse().tohex(), 2)
# log("MTR: removing fabric " + fabric.get_fabric_id().copy().reverse().tohex(), 2)
# self.message_handler.im.subs_shop.remove_by_fabric(fabric)
# self.mdns_remove_op_discovery(fabric)
# self.sessions.remove_fabric(fabric)
@ -266,12 +266,12 @@ class Matter_Device
# self.root_w1 = crypto.EC_P256().mod(w1s)
self.root_L = crypto.EC_P256().public_key(w1)
# tasmota.log("MTR: ******************************", 4)
# tasmota.log("MTR: salt = " + self.root_salt.tohex(), 4)
# tasmota.log("MTR: passcode_hex = " + passcode.tohex(), 4)
# tasmota.log("MTR: w0 = " + self.root_w0.tohex(), 4)
# tasmota.log("MTR: L = " + self.root_L.tohex(), 4)
# tasmota.log("MTR: ******************************", 4)
# log("MTR: ******************************", 4)
# log("MTR: salt = " + self.root_salt.tohex(), 4)
# log("MTR: passcode_hex = " + passcode.tohex(), 4)
# log("MTR: w0 = " + self.root_w0.tohex(), 4)
# log("MTR: L = " + self.root_L.tohex(), 4)
# log("MTR: ******************************", 4)
end
#############################################################
@ -356,7 +356,7 @@ class Matter_Device
import json
var rs_json = tasmota.read_sensors()
if tasmota.loglevel(3)
tasmota.log("MTR: read_sensors: "+str(rs_json), 3)
log("MTR: read_sensors: "+str(rs_json), 3)
end
if rs_json == nil return end
var rs = json.load(rs_json)
@ -370,7 +370,7 @@ class Matter_Device
end
else
tasmota.log("MTR: unable to parse read_sensors: "+str(rs_json), 3)
log("MTR: unable to parse read_sensors: "+str(rs_json), 3)
end
end
@ -413,7 +413,7 @@ class Matter_Device
def _start_udp(port)
if self.udp_server return end # already started
if port == nil port = 5540 end
tasmota.log("MTR: Starting UDP server on port: " + str(port), 2)
log("MTR: Starting UDP server on port: " + str(port), 2)
self.udp_server = matter.UDPServer(self, "", port)
self.udp_server.start(/ raw, addr, port -> self.msg_received(raw, addr, port))
end
@ -462,7 +462,7 @@ class Matter_Device
var fabric = session.get_fabric()
var fabric_id = fabric.get_fabric_id().copy().reverse().tohex()
var vendor_name = fabric.get_admin_vendor_name()
tasmota.log(f"MTR: --- Commissioning complete for Fabric '{fabric_id}' (Vendor {vendor_name}) ---", 2)
log(f"MTR: --- Commissioning complete for Fabric '{fabric_id}' (Vendor {vendor_name}) ---", 2)
self.stop_basic_commissioning() # by default close commissioning when it's complete
end
@ -532,7 +532,7 @@ class Matter_Device
var direct = (ctx.endpoint != nil) && (ctx.cluster != nil) && (ctx.attribute != nil) # true if the target is a precise attribute, false if it results from an expansion and error are ignored
# tasmota.log(f"MTR: process_attribute_expansion {str(ctx))}", 4)
# log(f"MTR: process_attribute_expansion {str(ctx))}", 4)
# build the generator for all endpoint/cluster/attributes candidates
var path_generator = matter.PathGenerator(self)
@ -662,10 +662,10 @@ class Matter_Device
var f = open(self.FILENAME, "w")
f.write(j)
f.close()
tasmota.log(format("MTR: =Saved parameters%s", self.plugins_persist ? " and configuration" : ""), 2)
log(format("MTR: =Saved parameters%s", self.plugins_persist ? " and configuration" : ""), 2)
return j
except .. as e, m
tasmota.log("MTR: Session_Store::save Exception:" + str(e) + "|" + str(m), 2)
log("MTR: Session_Store::save Exception:" + str(e) + "|" + str(m), 2)
return j
end
end
@ -718,18 +718,18 @@ class Matter_Device
self.next_ep = j.find("nextep", self.next_ep)
self.plugins_config = j.find("config")
if self.plugins_config != nil
tasmota.log(f"MTR: Load_config = {self.plugins_config}", 3)
log(f"MTR: Load_config = {self.plugins_config}", 3)
self.adjust_next_ep()
dirty = self.check_config_ep()
self.plugins_persist = true
end
self.plugins_config_remotes = j.find("remotes", {})
if self.plugins_config_remotes
tasmota.log("MTR: load_remotes = " + str(self.plugins_config_remotes), 3)
log("MTR: load_remotes = " + str(self.plugins_config_remotes), 3)
end
except .. as e, m
if e != "io_error"
tasmota.log("MTR: load_param Exception:" + str(e) + "|" + str(m), 2)
log("MTR: load_param Exception:" + str(e) + "|" + str(m), 2)
end
end
@ -763,35 +763,35 @@ class Matter_Device
# {'32': {'filter': 'AXP192#Temperature', 'type': 'temperature'}, '40': {'filter': 'BMP280#Pressure', 'type': 'pressure'}, '34': {'filter': 'SHT3X#Temperature', 'type': 'temperature'}, '33': {'filter': 'BMP280#Temperature', 'type': 'temperature'}, '1': {'relay': 0, 'type': 'relay'}, '56': {'filter': 'SHT3X#Humidity', 'type': 'humidity'}, '0': {'type': 'root'}}
def _instantiate_plugins_from_config(config)
var endpoints = self.k2l_num(config)
# tasmota.log("MTR: endpoints to be configured "+str(endpoints), 4)
tasmota.log("MTR: Configuring endpoints", 2)
# log("MTR: endpoints to be configured "+str(endpoints), 4)
log("MTR: Configuring endpoints", 2)
# start with mandatory endpoint 0 for root node
self.plugins.push(matter.Plugin_Root(self, 0, {}))
tasmota.log(format("MTR: endpoint = %5i type:%s%s", 0, 'root', ''), 2)
log(format("MTR: endpoint = %5i type:%s%s", 0, 'root', ''), 2)
# always include an aggregator for dynamic endpoints
self.plugins.push(matter.Plugin_Aggregator(self, matter.AGGREGATOR_ENDPOINT, {}))
tasmota.log(format("MTR: endpoint = %5i type:%s%s", matter.AGGREGATOR_ENDPOINT, 'aggregator', ''), 2)
log(format("MTR: endpoint = %5i type:%s%s", matter.AGGREGATOR_ENDPOINT, 'aggregator', ''), 2)
for ep: endpoints
if ep == 0 continue end # skip endpoint 0
try
var plugin_conf = config[str(ep)]
# tasmota.log(format("MTR: endpoint %i config %s", ep, plugin_conf), 3)
# log(format("MTR: endpoint %i config %s", ep, plugin_conf), 3)
var pi_class_name = plugin_conf.find('type')
if pi_class_name == nil tasmota.log("MTR: no class name, skipping", 3) continue end
if pi_class_name == 'root' tasmota.log("MTR: only one root node allowed", 3) continue end
if pi_class_name == nil log("MTR: no class name, skipping", 3) continue end
if pi_class_name == 'root' log("MTR: only one root node allowed", 3) continue end
var pi_class = self.plugins_classes.find(pi_class_name)
if pi_class == nil tasmota.log("MTR: unknown class name '"+str(pi_class_name)+"' skipping", 2) continue end
if pi_class == nil log("MTR: unknown class name '"+str(pi_class_name)+"' skipping", 2) continue end
var pi = pi_class(self, ep, plugin_conf)
self.plugins.push(pi)
tasmota.log(format("MTR: endpoint = %5i type:%s%s", ep, pi_class_name, self.conf_to_log(plugin_conf)), 2)
log(format("MTR: endpoint = %5i type:%s%s", ep, pi_class_name, self.conf_to_log(plugin_conf)), 2)
except .. as e, m
tasmota.log("MTR: Exception" + str(e) + "|" + str(m), 2)
log("MTR: Exception" + str(e) + "|" + str(m), 2)
end
end
@ -863,26 +863,26 @@ class Matter_Device
var eth = tasmota.eth()
self.hostname_eth = string.replace(eth.find("mac"), ':', '')
if !self.ipv4only || !eth.contains('ip6local')
# tasmota.log(format("MTR: calling mdns.add_hostname(%s, %s, %s)", self.hostname_eth, eth.find('ip6local',''), eth.find('ip','')), 4)
# log(format("MTR: calling mdns.add_hostname(%s, %s, %s)", self.hostname_eth, eth.find('ip6local',''), eth.find('ip','')), 4)
mdns.add_hostname(self.hostname_eth, eth.find('ip6local',''), eth.find('ip',''), eth.find('ip6',''))
else
tasmota.log(format("MTR: calling mdns.add_hostname(%s, %s)", self.hostname_eth, eth.find('ip','')), 3)
log(format("MTR: calling mdns.add_hostname(%s, %s)", self.hostname_eth, eth.find('ip','')), 3)
mdns.add_hostname(self.hostname_eth, eth.find('ip',''))
end
else
var wifi = tasmota.wifi()
self.hostname_wifi = string.replace(wifi.find("mac"), ':', '')
if !self.ipv4only || !wifi.contains('ip6local')
# tasmota.log(format("MTR: calling mdns.add_hostname(%s, %s, %s)", self.hostname_wifi, wifi.find('ip6local',''), wifi.find('ip','')), 4)
# log(format("MTR: calling mdns.add_hostname(%s, %s, %s)", self.hostname_wifi, wifi.find('ip6local',''), wifi.find('ip','')), 4)
mdns.add_hostname(self.hostname_wifi, wifi.find('ip6local',''), wifi.find('ip',''), wifi.find('ip6',''))
else
tasmota.log(format("MTR: calling mdns.add_hostname(%s, %s)", self.hostname_wifi, wifi.find('ip','')), 3)
log(format("MTR: calling mdns.add_hostname(%s, %s)", self.hostname_wifi, wifi.find('ip','')), 3)
mdns.add_hostname(self.hostname_wifi, wifi.find('ip',''))
end
end
tasmota.log(format("MTR: start mDNS on %s host '%s.local'", is_eth ? "eth" : "wifi", is_eth ? self.hostname_eth : self.hostname_wifi), 3)
log(format("MTR: start mDNS on %s host '%s.local'", is_eth ? "eth" : "wifi", is_eth ? self.hostname_eth : self.hostname_wifi), 3)
except .. as e, m
tasmota.log("MTR: Exception" + str(e) + "|" + str(m), 2)
log("MTR: Exception" + str(e) + "|" + str(m), 2)
end
self.mdns_announce_op_discovery_all_fabrics()
@ -908,50 +908,50 @@ class Matter_Device
try
if self.hostname_eth
# Add Matter `_matterc._udp` service
# tasmota.log(format("MTR: calling mdns.add_service(%s, %s, %i, %s, %s, %s)", "_matterc", "_udp", 5540, str(services), self.commissioning_instance_eth, self.hostname_eth), 4)
# log(format("MTR: calling mdns.add_service(%s, %s, %i, %s, %s, %s)", "_matterc", "_udp", 5540, str(services), self.commissioning_instance_eth, self.hostname_eth), 4)
mdns.add_service("_matterc", "_udp", 5540, services, self.commissioning_instance_eth, self.hostname_eth)
self.mdns_pase_eth = true
tasmota.log(format("MTR: announce mDNS on %s '%s' ptr to `%s.local`", "eth", self.commissioning_instance_eth, self.hostname_eth), 2)
log(format("MTR: announce mDNS on %s '%s' ptr to `%s.local`", "eth", self.commissioning_instance_eth, self.hostname_eth), 2)
# `mdns.add_subtype(service:string, proto:string, instance:string, hostname:string, subtype:string) -> nil`
var subtype = "_L" + str(self.commissioning_discriminator & 0xFFF)
tasmota.log("MTR: adding subtype: "+subtype, 3)
log("MTR: adding subtype: "+subtype, 3)
mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_eth, self.hostname_eth, subtype)
subtype = "_S" + str((self.commissioning_discriminator & 0xF00) >> 8)
tasmota.log("MTR: adding subtype: "+subtype, 3)
log("MTR: adding subtype: "+subtype, 3)
mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_eth, self.hostname_eth, subtype)
subtype = "_V" + str(self.vendorid)
tasmota.log("MTR: adding subtype: "+subtype, 3)
log("MTR: adding subtype: "+subtype, 3)
mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_eth, self.hostname_eth, subtype)
subtype = "_CM1"
tasmota.log("MTR: adding subtype: "+subtype, 3)
log("MTR: adding subtype: "+subtype, 3)
mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_eth, self.hostname_eth, subtype)
end
if self.hostname_wifi
# tasmota.log(format("MTR: calling mdns.add_service(%s, %s, %i, %s, %s, %s)", "_matterc", "_udp", 5540, str(services), self.commissioning_instance_wifi, self.hostname_wifi), 4)
# log(format("MTR: calling mdns.add_service(%s, %s, %i, %s, %s, %s)", "_matterc", "_udp", 5540, str(services), self.commissioning_instance_wifi, self.hostname_wifi), 4)
mdns.add_service("_matterc", "_udp", 5540, services, self.commissioning_instance_wifi, self.hostname_wifi)
self.mdns_pase_wifi = true
tasmota.log(format("MTR: starting mDNS on %s '%s' ptr to `%s.local`", "wifi", self.commissioning_instance_wifi, self.hostname_wifi), 3)
log(format("MTR: starting mDNS on %s '%s' ptr to `%s.local`", "wifi", self.commissioning_instance_wifi, self.hostname_wifi), 3)
# `mdns.add_subtype(service:string, proto:string, instance:string, hostname:string, subtype:string) -> nil`
var subtype = "_L" + str(self.commissioning_discriminator & 0xFFF)
tasmota.log("MTR: adding subtype: "+subtype, 3)
log("MTR: adding subtype: "+subtype, 3)
mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_wifi, self.hostname_wifi, subtype)
subtype = "_S" + str((self.commissioning_discriminator & 0xF00) >> 8)
tasmota.log("MTR: adding subtype: "+subtype, 3)
log("MTR: adding subtype: "+subtype, 3)
mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_wifi, self.hostname_wifi, subtype)
subtype = "_V" + str(self.vendorid)
tasmota.log("MTR: adding subtype: "+subtype, 3)
log("MTR: adding subtype: "+subtype, 3)
mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_wifi, self.hostname_wifi, subtype)
subtype = "_CM1"
tasmota.log("MTR: adding subtype: "+subtype, 3)
log("MTR: adding subtype: "+subtype, 3)
mdns.add_subtype("_matterc", "_udp", self.commissioning_instance_wifi, self.hostname_wifi, subtype)
end
except .. as e, m
tasmota.log("MTR: Exception" + str(e) + "|" + str(m), 2)
log("MTR: Exception" + str(e) + "|" + str(m), 2)
end
end
@ -963,19 +963,19 @@ class Matter_Device
try
if self.mdns_pase_eth
tasmota.log(format("MTR: calling mdns.remove_service(%s, %s, %s, %s)", "_matterc", "_udp", self.commissioning_instance_eth, self.hostname_eth), 3)
tasmota.log(format("MTR: remove mDNS on %s '%s'", "eth", self.commissioning_instance_eth), 3)
log(format("MTR: calling mdns.remove_service(%s, %s, %s, %s)", "_matterc", "_udp", self.commissioning_instance_eth, self.hostname_eth), 3)
log(format("MTR: remove mDNS on %s '%s'", "eth", self.commissioning_instance_eth), 3)
self.mdns_pase_eth = false
mdns.remove_service("_matterc", "_udp", self.commissioning_instance_eth, self.hostname_eth)
end
if self.mdns_pase_wifi
tasmota.log(format("MTR: calling mdns.remove_service(%s, %s, %s, %s)", "_matterc", "_udp", self.commissioning_instance_wifi, self.hostname_wifi), 3)
tasmota.log(format("MTR: remove mDNS on %s '%s'", "wifi", self.commissioning_instance_wifi), 3)
log(format("MTR: calling mdns.remove_service(%s, %s, %s, %s)", "_matterc", "_udp", self.commissioning_instance_wifi, self.hostname_wifi), 3)
log(format("MTR: remove mDNS on %s '%s'", "wifi", self.commissioning_instance_wifi), 3)
self.mdns_pase_wifi = false
mdns.remove_service("_matterc", "_udp", self.commissioning_instance_wifi, self.hostname_wifi)
end
except .. as e, m
tasmota.log("MTR: Exception" + str(e) + "|" + str(m), 2)
log("MTR: Exception" + str(e) + "|" + str(m), 2)
end
end
@ -997,25 +997,25 @@ class Matter_Device
var device_id = fabric.get_device_id().copy().reverse()
var k_fabric = fabric.get_fabric_compressed()
var op_node = k_fabric.tohex() + "-" + device_id.tohex()
tasmota.log("MTR: Operational Discovery node = " + op_node, 3)
log("MTR: Operational Discovery node = " + op_node, 3)
# mdns
if (tasmota.eth().find("up"))
tasmota.log(format("MTR: adding mDNS on %s '%s' ptr to `%s.local`", "eth", op_node, self.hostname_eth), 3)
log(format("MTR: adding mDNS on %s '%s' ptr to `%s.local`", "eth", op_node, self.hostname_eth), 3)
mdns.add_service("_matter","_tcp", 5540, nil, op_node, self.hostname_eth)
var subtype = "_I" + k_fabric.tohex()
tasmota.log("MTR: adding subtype: "+subtype, 3)
log("MTR: adding subtype: "+subtype, 3)
mdns.add_subtype("_matter", "_tcp", op_node, self.hostname_eth, subtype)
end
if (tasmota.wifi().find("up"))
tasmota.log(format("MTR: adding mDNS on %s '%s' ptr to `%s.local`", "wifi", op_node, self.hostname_wifi), 3)
log(format("MTR: adding mDNS on %s '%s' ptr to `%s.local`", "wifi", op_node, self.hostname_wifi), 3)
mdns.add_service("_matter","_tcp", 5540, nil, op_node, self.hostname_wifi)
var subtype = "_I" + k_fabric.tohex()
tasmota.log("MTR: adding subtype: "+subtype, 3)
log("MTR: adding subtype: "+subtype, 3)
mdns.add_subtype("_matter", "_tcp", op_node, self.hostname_wifi, subtype)
end
except .. as e, m
tasmota.log("MTR: Exception" + str(e) + "|" + str(m), 2)
log("MTR: Exception" + str(e) + "|" + str(m), 2)
end
end
@ -1040,15 +1040,15 @@ class Matter_Device
# mdns
if (tasmota.eth().find("up"))
tasmota.log(format("MTR: remove mDNS on %s '%s'", "eth", op_node), 3)
log(format("MTR: remove mDNS on %s '%s'", "eth", op_node), 3)
mdns.remove_service("_matter", "_tcp", op_node, self.hostname_eth)
end
if (tasmota.wifi().find("up"))
tasmota.log(format("MTR: remove mDNS on %s '%s'", "wifi", op_node), 3)
log(format("MTR: remove mDNS on %s '%s'", "wifi", op_node), 3)
mdns.remove_service("_matter", "_tcp", op_node, self.hostname_wifi)
end
except .. as e, m
tasmota.log("MTR: Exception" + str(e) + "|" + str(m), 2)
log("MTR: Exception" + str(e) + "|" + str(m), 2)
end
end
@ -1075,7 +1075,7 @@ class Matter_Device
self.plugins_config = self.autoconf_device_map()
self.plugins_config_remotes = {}
self.adjust_next_ep()
tasmota.log("MTR: autoconfig = " + str(self.plugins_config), 3)
log("MTR: autoconfig = " + str(self.plugins_config), 3)
end
self._instantiate_plugins_from_config(self.plugins_config)
@ -1117,7 +1117,7 @@ class Matter_Device
# 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)
log("MTR: Status 13 = "+str(r_st13), 3)
if r_st13 != nil && r_st13.contains('StatusSHT')
r_st13 = r_st13['StatusSHT'] # skip root
@ -1127,14 +1127,14 @@ class Matter_Device
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(format("MTR: '%s' = %s", k, str(d)), 3)
log(format("MTR: '%s' = %s", k, str(d)), 3)
var relay1 = d.find('Relay1', -1) # relay base 1 or -1 if none
var relay2 = d.find('Relay2', -1) # relay base 1 or -1 if none
if relay1 > 0 relays_reserved.push(relay1 - 1) end # mark relay1/2 as non-relays
if relay2 > 0 relays_reserved.push(relay2 - 1) end
tasmota.log(f"MTR: {relay1=} {relay2=}", 3)
log(f"MTR: {relay1=} {relay2=}", 3)
# is there tilt support
var tilt_array = d.find('TiltConfig')
var tilt_config = tilt_array && (tilt_array[2] > 0)
@ -1258,7 +1258,7 @@ class Matter_Device
# returns endpoint number newly allocated, or `nil` if failed
def bridge_add_endpoint(pi_class_name, plugin_conf)
var pi_class = self.plugins_classes.find(pi_class_name)
if pi_class == nil tasmota.log("MTR: unknown class name '"+str(pi_class_name)+"' skipping", 3) return end
if pi_class == nil log("MTR: unknown class name '"+str(pi_class_name)+"' skipping", 3) return end
# get the next allocated endpoint number
var ep = self.next_ep
@ -1275,7 +1275,7 @@ class Matter_Device
pi_conf[k] = plugin_conf[k]
end
# add to main
tasmota.log(format("MTR: adding endpoint = %i type:%s%s", ep, pi_class_name, self.conf_to_log(plugin_conf)), 2)
log(format("MTR: adding endpoint = %i type:%s%s", ep, pi_class_name, self.conf_to_log(plugin_conf)), 2)
self.plugins_config[ep_str] = pi_conf
self.plugins_persist = true
self.next_ep += 1 # increment next allocated endpoint before saving
@ -1298,10 +1298,10 @@ class Matter_Device
var f_in
if !self.plugins_config.contains(ep_str)
tasmota.log("MTR: Cannot remove an enpoint not configured: " + ep_str, 3)
log("MTR: Cannot remove an enpoint not configured: " + ep_str, 3)
return
end
tasmota.log(format("MTR: deleting endpoint = %i", ep), 2)
log(format("MTR: deleting endpoint = %i", ep), 2)
self.plugins_config.remove(ep_str)
self.plugins_persist = true
@ -1344,12 +1344,12 @@ class Matter_Device
for k: self.plugins_config.keys() keys.push(int(k)) end
for ep: keys
if ep == 0
tasmota.log("MTR: invalid entry with ep '0'", 2)
log("MTR: invalid entry with ep '0'", 2)
self.plugins_config.remove(str(ep))
dirty = true
elif ep == matter.AGGREGATOR_ENDPOINT
dirty = true
tasmota.log(f"MTR: endpoint {ep} collides wit aggregator, relocating to {self.next_ep}", 2)
log(f"MTR: endpoint {ep} collides wit aggregator, relocating to {self.next_ep}", 2)
self.plugins_config[str(self.next_ep)] = self.plugins_config[str(ep)]
self.plugins_config.remove(str(ep))
self.next_ep += 1
@ -1450,7 +1450,7 @@ class Matter_Device
# print("remotes_map2", remotes_map)
# tasmota.log("MTR: remotes references: " + str(remotes_map), 3)
# log("MTR: remotes references: " + str(remotes_map), 3)
var remote_to_remove = [] # we first get the list of remotes to remove, to not interfere with map iterator
for remote:remotes_map.keys()
@ -1460,7 +1460,7 @@ class Matter_Device
end
for remote: remote_to_remove
tasmota.log("MTR: remove unused remote: " + remote.addr, 3)
log("MTR: remove unused remote: " + remote.addr, 3)
remote.close()
self.http_remotes.remove(remote.addr)
end

View File

@ -12,7 +12,7 @@ extern const bclass be_class_Matter_PBKDFParamRequest;
extern const bclass be_class_Matter_PBKDFParamRequest;
be_local_closure(class_Matter_PBKDFParamRequest_parse, /* name */
be_nested_proto(
8, /* nstack */
9, /* nstack */
3, /* argc */
2, /* varg */
0, /* has upvals */
@ -21,9 +21,9 @@ be_local_closure(class_Matter_PBKDFParamRequest_parse, /* name */
&be_class_Matter_PBKDFParamRequest,
1, /* has constants */
( &(const bvalue[16]) { /* constants */
/* K0 */ be_const_int(0),
/* K1 */ be_nested_str_weak(matter),
/* K2 */ be_nested_str_weak(TLV),
/* K0 */ be_nested_str_weak(matter),
/* K1 */ be_nested_str_weak(TLV),
/* K2 */ be_const_int(0),
/* K3 */ be_nested_str_weak(parse),
/* K4 */ be_nested_str_weak(initiatorRandom),
/* K5 */ be_nested_str_weak(getsubval),
@ -41,46 +41,46 @@ be_local_closure(class_Matter_PBKDFParamRequest_parse, /* name */
be_str_weak(parse),
&be_const_str_solidified,
( &(const binstruction[41]) { /* code */
0x4C0C0000, // 0000 LDNIL R3
0x1C0C0403, // 0001 EQ R3 R2 R3
0x780E0000, // 0002 JMPF R3 #0004
0x58080000, // 0003 LDCONST R2 K0
0xB80E0200, // 0004 GETNGBL R3 K1
0x880C0702, // 0005 GETMBR R3 R3 K2
0x8C0C0703, // 0006 GETMET R3 R3 K3
0x5C140200, // 0007 MOVE R5 R1
0x5C180400, // 0008 MOVE R6 R2
0x7C0C0600, // 0009 CALL R3 3
0x8C100705, // 000A GETMET R4 R3 K5
0x58180006, // 000B LDCONST R6 K6
0x7C100400, // 000C CALL R4 2
0x90020804, // 000D SETMBR R0 K4 R4
0x8C100705, // 000E GETMET R4 R3 K5
0x58180008, // 000F LDCONST R6 K8
0x7C100400, // 0010 CALL R4 2
0x90020E04, // 0011 SETMBR R0 K7 R4
0x8C100705, // 0012 GETMET R4 R3 K5
0x5818000A, // 0013 LDCONST R6 K10
0x7C100400, // 0014 CALL R4 2
0x90021204, // 0015 SETMBR R0 K9 R4
0x8C100705, // 0016 GETMET R4 R3 K5
0x541A0003, // 0017 LDINT R6 4
0x7C100400, // 0018 CALL R4 2
0x90021604, // 0019 SETMBR R0 K11 R4
0x8C10070C, // 001A GETMET R4 R3 K12
0x541A0004, // 001B LDINT R6 5
0x7C100400, // 001C CALL R4 2
0x4C140000, // 001D LDNIL R5
0x20140805, // 001E NE R5 R4 R5
0x78160007, // 001F JMPF R5 #0028
0x8C14090E, // 0020 GETMET R5 R4 K14
0x581C0006, // 0021 LDCONST R7 K6
0x7C140400, // 0022 CALL R5 2
0x90021A05, // 0023 SETMBR R0 K13 R5
0x8C14090E, // 0024 GETMET R5 R4 K14
0x581C0008, // 0025 LDCONST R7 K8
0x7C140400, // 0026 CALL R5 2
0x90021E05, // 0027 SETMBR R0 K15 R5
0xB80E0000, // 0000 GETNGBL R3 K0
0x880C0701, // 0001 GETMBR R3 R3 K1
0x4C100000, // 0002 LDNIL R4
0x1C100404, // 0003 EQ R4 R2 R4
0x78120000, // 0004 JMPF R4 #0006
0x58080002, // 0005 LDCONST R2 K2
0x8C100703, // 0006 GETMET R4 R3 K3
0x5C180200, // 0007 MOVE R6 R1
0x5C1C0400, // 0008 MOVE R7 R2
0x7C100600, // 0009 CALL R4 3
0x8C140905, // 000A GETMET R5 R4 K5
0x581C0006, // 000B LDCONST R7 K6
0x7C140400, // 000C CALL R5 2
0x90020805, // 000D SETMBR R0 K4 R5
0x8C140905, // 000E GETMET R5 R4 K5
0x581C0008, // 000F LDCONST R7 K8
0x7C140400, // 0010 CALL R5 2
0x90020E05, // 0011 SETMBR R0 K7 R5
0x8C140905, // 0012 GETMET R5 R4 K5
0x581C000A, // 0013 LDCONST R7 K10
0x7C140400, // 0014 CALL R5 2
0x90021205, // 0015 SETMBR R0 K9 R5
0x8C140905, // 0016 GETMET R5 R4 K5
0x541E0003, // 0017 LDINT R7 4
0x7C140400, // 0018 CALL R5 2
0x90021605, // 0019 SETMBR R0 K11 R5
0x8C14090C, // 001A GETMET R5 R4 K12
0x541E0004, // 001B LDINT R7 5
0x7C140400, // 001C CALL R5 2
0x4C180000, // 001D LDNIL R6
0x20180A06, // 001E NE R6 R5 R6
0x781A0007, // 001F JMPF R6 #0028
0x8C180B0E, // 0020 GETMET R6 R5 K14
0x58200006, // 0021 LDCONST R8 K6
0x7C180400, // 0022 CALL R6 2
0x90021A06, // 0023 SETMBR R0 K13 R6
0x8C180B0E, // 0024 GETMET R6 R5 K14
0x58200008, // 0025 LDCONST R8 K8
0x7C180400, // 0026 CALL R6 2
0x90021E06, // 0027 SETMBR R0 K15 R6
0x80040000, // 0028 RET 1 R0
})
)
@ -115,7 +115,7 @@ extern const bclass be_class_Matter_PBKDFParamResponse;
extern const bclass be_class_Matter_PBKDFParamResponse;
be_local_closure(class_Matter_PBKDFParamResponse_tlv2raw, /* name */
be_nested_proto(
10, /* nstack */
11, /* nstack */
2, /* argc */
2, /* varg */
0, /* has upvals */
@ -146,78 +146,64 @@ be_local_closure(class_Matter_PBKDFParamResponse_tlv2raw, /* name */
}),
be_str_weak(tlv2raw),
&be_const_str_solidified,
( &(const binstruction[71]) { /* code */
( &(const binstruction[57]) { /* code */
0xB80A0000, // 0000 GETNGBL R2 K0
0x88080501, // 0001 GETMBR R2 R2 K1
0x8C080502, // 0002 GETMET R2 R2 K2
0x7C080200, // 0003 CALL R2 1
0x8C0C0503, // 0004 GETMET R3 R2 K3
0x58140004, // 0005 LDCONST R5 K4
0xB81A0000, // 0006 GETNGBL R6 K0
0x88180D01, // 0007 GETMBR R6 R6 K1
0x88180D05, // 0008 GETMBR R6 R6 K5
0x881C0106, // 0009 GETMBR R7 R0 K6
0x7C0C0800, // 000A CALL R3 4
0x8C0C0503, // 000B GETMET R3 R2 K3
0x58140007, // 000C LDCONST R5 K7
0xB81A0000, // 000D GETNGBL R6 K0
0x88180D01, // 000E GETMBR R6 R6 K1
0x88180D05, // 000F GETMBR R6 R6 K5
0x881C0108, // 0010 GETMBR R7 R0 K8
0x7C0C0800, // 0011 CALL R3 4
0x8C0C0503, // 0012 GETMET R3 R2 K3
0x58140009, // 0013 LDCONST R5 K9
0xB81A0000, // 0014 GETNGBL R6 K0
0x88180D01, // 0015 GETMBR R6 R6 K1
0x88180D0A, // 0016 GETMBR R6 R6 K10
0x881C010B, // 0017 GETMBR R7 R0 K11
0x7C0C0800, // 0018 CALL R3 4
0x8C0C050C, // 0019 GETMET R3 R2 K12
0x54160003, // 001A LDINT R5 4
0x7C0C0400, // 001B CALL R3 2
0x8C100703, // 001C GETMET R4 R3 K3
0x58180004, // 001D LDCONST R6 K4
0xB81E0000, // 001E GETNGBL R7 K0
0x881C0F01, // 001F GETMBR R7 R7 K1
0x881C0F0D, // 0020 GETMBR R7 R7 K13
0x8820010E, // 0021 GETMBR R8 R0 K14
0x7C100800, // 0022 CALL R4 4
0x8C100703, // 0023 GETMET R4 R3 K3
0x58180007, // 0024 LDCONST R6 K7
0xB81E0000, // 0025 GETNGBL R7 K0
0x881C0F01, // 0026 GETMBR R7 R7 K1
0x881C0F05, // 0027 GETMBR R7 R7 K5
0x8820010F, // 0028 GETMBR R8 R0 K15
0x7C100800, // 0029 CALL R4 4
0x88100110, // 002A GETMBR R4 R0 K16
0x4C140000, // 002B LDNIL R5
0x20100805, // 002C NE R4 R4 R5
0x74120003, // 002D JMPT R4 #0032
0x88100111, // 002E GETMBR R4 R0 K17
0x4C140000, // 002F LDNIL R5
0x20100805, // 0030 NE R4 R4 R5
0x78120010, // 0031 JMPF R4 #0043
0x8C10050C, // 0032 GETMET R4 R2 K12
0x541A0004, // 0033 LDINT R6 5
0x7C100400, // 0034 CALL R4 2
0x8C140903, // 0035 GETMET R5 R4 K3
0x581C0004, // 0036 LDCONST R7 K4
0xB8220000, // 0037 GETNGBL R8 K0
0x88201101, // 0038 GETMBR R8 R8 K1
0x8820110D, // 0039 GETMBR R8 R8 K13
0x88240110, // 003A GETMBR R9 R0 K16
0x7C140800, // 003B CALL R5 4
0x8C140903, // 003C GETMET R5 R4 K3
0x581C0007, // 003D LDCONST R7 K7
0xB8220000, // 003E GETNGBL R8 K0
0x88201101, // 003F GETMBR R8 R8 K1
0x8820110D, // 0040 GETMBR R8 R8 K13
0x88240111, // 0041 GETMBR R9 R0 K17
0x7C140800, // 0042 CALL R5 4
0x8C100512, // 0043 GETMET R4 R2 K18
0x5C180200, // 0044 MOVE R6 R1
0x7C100400, // 0045 CALL R4 2
0x80040800, // 0046 RET 1 R4
0x8C0C0502, // 0002 GETMET R3 R2 K2
0x7C0C0200, // 0003 CALL R3 1
0x8C100703, // 0004 GETMET R4 R3 K3
0x58180004, // 0005 LDCONST R6 K4
0x881C0505, // 0006 GETMBR R7 R2 K5
0x88200106, // 0007 GETMBR R8 R0 K6
0x7C100800, // 0008 CALL R4 4
0x8C100703, // 0009 GETMET R4 R3 K3
0x58180007, // 000A LDCONST R6 K7
0x881C0505, // 000B GETMBR R7 R2 K5
0x88200108, // 000C GETMBR R8 R0 K8
0x7C100800, // 000D CALL R4 4
0x8C100703, // 000E GETMET R4 R3 K3
0x58180009, // 000F LDCONST R6 K9
0x881C050A, // 0010 GETMBR R7 R2 K10
0x8820010B, // 0011 GETMBR R8 R0 K11
0x7C100800, // 0012 CALL R4 4
0x8C10070C, // 0013 GETMET R4 R3 K12
0x541A0003, // 0014 LDINT R6 4
0x7C100400, // 0015 CALL R4 2
0x8C140903, // 0016 GETMET R5 R4 K3
0x581C0004, // 0017 LDCONST R7 K4
0x8820050D, // 0018 GETMBR R8 R2 K13
0x8824010E, // 0019 GETMBR R9 R0 K14
0x7C140800, // 001A CALL R5 4
0x8C140903, // 001B GETMET R5 R4 K3
0x581C0007, // 001C LDCONST R7 K7
0x88200505, // 001D GETMBR R8 R2 K5
0x8824010F, // 001E GETMBR R9 R0 K15
0x7C140800, // 001F CALL R5 4
0x88140110, // 0020 GETMBR R5 R0 K16
0x4C180000, // 0021 LDNIL R6
0x20140A06, // 0022 NE R5 R5 R6
0x74160003, // 0023 JMPT R5 #0028
0x88140111, // 0024 GETMBR R5 R0 K17
0x4C180000, // 0025 LDNIL R6
0x20140A06, // 0026 NE R5 R5 R6
0x7816000C, // 0027 JMPF R5 #0035
0x8C14070C, // 0028 GETMET R5 R3 K12
0x541E0004, // 0029 LDINT R7 5
0x7C140400, // 002A CALL R5 2
0x8C180B03, // 002B GETMET R6 R5 K3
0x58200004, // 002C LDCONST R8 K4
0x8824050D, // 002D GETMBR R9 R2 K13
0x88280110, // 002E GETMBR R10 R0 K16
0x7C180800, // 002F CALL R6 4
0x8C180B03, // 0030 GETMET R6 R5 K3
0x58200007, // 0031 LDCONST R8 K7
0x8824050D, // 0032 GETMBR R9 R2 K13
0x88280111, // 0033 GETMBR R10 R0 K17
0x7C180800, // 0034 CALL R6 4
0x8C140712, // 0035 GETMET R5 R3 K18
0x5C1C0200, // 0036 MOVE R7 R1
0x7C140400, // 0037 CALL R5 2
0x80040A00, // 0038 RET 1 R5
})
)
);
@ -315,7 +301,7 @@ extern const bclass be_class_Matter_Pake2;
extern const bclass be_class_Matter_Pake2;
be_local_closure(class_Matter_Pake2_tlv2raw, /* name */
be_nested_proto(
8, /* nstack */
9, /* nstack */
2, /* argc */
2, /* varg */
0, /* has upvals */
@ -337,29 +323,25 @@ be_local_closure(class_Matter_Pake2_tlv2raw, /* name */
}),
be_str_weak(tlv2raw),
&be_const_str_solidified,
( &(const binstruction[22]) { /* code */
( &(const binstruction[18]) { /* code */
0xB80A0000, // 0000 GETNGBL R2 K0
0x88080501, // 0001 GETMBR R2 R2 K1
0x8C080502, // 0002 GETMET R2 R2 K2
0x7C080200, // 0003 CALL R2 1
0x8C0C0503, // 0004 GETMET R3 R2 K3
0x58140004, // 0005 LDCONST R5 K4
0xB81A0000, // 0006 GETNGBL R6 K0
0x88180D01, // 0007 GETMBR R6 R6 K1
0x88180D05, // 0008 GETMBR R6 R6 K5
0x881C0106, // 0009 GETMBR R7 R0 K6
0x7C0C0800, // 000A CALL R3 4
0x8C0C0503, // 000B GETMET R3 R2 K3
0x58140007, // 000C LDCONST R5 K7
0xB81A0000, // 000D GETNGBL R6 K0
0x88180D01, // 000E GETMBR R6 R6 K1
0x88180D05, // 000F GETMBR R6 R6 K5
0x881C0108, // 0010 GETMBR R7 R0 K8
0x7C0C0800, // 0011 CALL R3 4
0x8C0C0509, // 0012 GETMET R3 R2 K9
0x5C140200, // 0013 MOVE R5 R1
0x7C0C0400, // 0014 CALL R3 2
0x80040600, // 0015 RET 1 R3
0x8C0C0502, // 0002 GETMET R3 R2 K2
0x7C0C0200, // 0003 CALL R3 1
0x8C100703, // 0004 GETMET R4 R3 K3
0x58180004, // 0005 LDCONST R6 K4
0x881C0505, // 0006 GETMBR R7 R2 K5
0x88200106, // 0007 GETMBR R8 R0 K6
0x7C100800, // 0008 CALL R4 4
0x8C100703, // 0009 GETMET R4 R3 K3
0x58180007, // 000A LDCONST R6 K7
0x881C0505, // 000B GETMBR R7 R2 K5
0x88200108, // 000C GETMBR R8 R0 K8
0x7C100800, // 000D CALL R4 4
0x8C100709, // 000E GETMET R4 R3 K9
0x5C180200, // 000F MOVE R6 R1
0x7C100400, // 0010 CALL R4 2
0x80040800, // 0011 RET 1 R4
})
)
);
@ -573,7 +555,7 @@ extern const bclass be_class_Matter_Sigma2;
extern const bclass be_class_Matter_Sigma2;
be_local_closure(class_Matter_Sigma2_tlv2raw, /* name */
be_nested_proto(
9, /* nstack */
10, /* nstack */
2, /* argc */
2, /* varg */
0, /* has upvals */
@ -603,68 +585,56 @@ be_local_closure(class_Matter_Sigma2_tlv2raw, /* name */
}),
be_str_weak(tlv2raw),
&be_const_str_solidified,
( &(const binstruction[61]) { /* code */
( &(const binstruction[49]) { /* code */
0xB80A0000, // 0000 GETNGBL R2 K0
0x88080501, // 0001 GETMBR R2 R2 K1
0x8C080502, // 0002 GETMET R2 R2 K2
0x7C080200, // 0003 CALL R2 1
0x8C0C0503, // 0004 GETMET R3 R2 K3
0x58140004, // 0005 LDCONST R5 K4
0xB81A0000, // 0006 GETNGBL R6 K0
0x88180D01, // 0007 GETMBR R6 R6 K1
0x88180D05, // 0008 GETMBR R6 R6 K5
0x881C0106, // 0009 GETMBR R7 R0 K6
0x7C0C0800, // 000A CALL R3 4
0x8C0C0503, // 000B GETMET R3 R2 K3
0x58140007, // 000C LDCONST R5 K7
0xB81A0000, // 000D GETNGBL R6 K0
0x88180D01, // 000E GETMBR R6 R6 K1
0x88180D08, // 000F GETMBR R6 R6 K8
0x881C0109, // 0010 GETMBR R7 R0 K9
0x7C0C0800, // 0011 CALL R3 4
0x8C0C0503, // 0012 GETMET R3 R2 K3
0x5814000A, // 0013 LDCONST R5 K10
0xB81A0000, // 0014 GETNGBL R6 K0
0x88180D01, // 0015 GETMBR R6 R6 K1
0x88180D05, // 0016 GETMBR R6 R6 K5
0x881C010B, // 0017 GETMBR R7 R0 K11
0x7C0C0800, // 0018 CALL R3 4
0x8C0C0503, // 0019 GETMET R3 R2 K3
0x54160003, // 001A LDINT R5 4
0xB81A0000, // 001B GETNGBL R6 K0
0x88180D01, // 001C GETMBR R6 R6 K1
0x88180D05, // 001D GETMBR R6 R6 K5
0x881C010C, // 001E GETMBR R7 R0 K12
0x7C0C0800, // 001F CALL R3 4
0x880C010D, // 0020 GETMBR R3 R0 K13
0x4C100000, // 0021 LDNIL R4
0x200C0604, // 0022 NE R3 R3 R4
0x740E0003, // 0023 JMPT R3 #0028
0x880C010E, // 0024 GETMBR R3 R0 K14
0x4C100000, // 0025 LDNIL R4
0x200C0604, // 0026 NE R3 R3 R4
0x780E0010, // 0027 JMPF R3 #0039
0x8C0C050F, // 0028 GETMET R3 R2 K15
0x54160004, // 0029 LDINT R5 5
0x7C0C0400, // 002A CALL R3 2
0x8C100703, // 002B GETMET R4 R3 K3
0x58180004, // 002C LDCONST R6 K4
0xB81E0000, // 002D GETNGBL R7 K0
0x881C0F01, // 002E GETMBR R7 R7 K1
0x881C0F10, // 002F GETMBR R7 R7 K16
0x8820010D, // 0030 GETMBR R8 R0 K13
0x7C100800, // 0031 CALL R4 4
0x8C100703, // 0032 GETMET R4 R3 K3
0x58180007, // 0033 LDCONST R6 K7
0xB81E0000, // 0034 GETNGBL R7 K0
0x881C0F01, // 0035 GETMBR R7 R7 K1
0x881C0F10, // 0036 GETMBR R7 R7 K16
0x8820010E, // 0037 GETMBR R8 R0 K14
0x7C100800, // 0038 CALL R4 4
0x8C0C0511, // 0039 GETMET R3 R2 K17
0x5C140200, // 003A MOVE R5 R1
0x7C0C0400, // 003B CALL R3 2
0x80040600, // 003C RET 1 R3
0x8C0C0502, // 0002 GETMET R3 R2 K2
0x7C0C0200, // 0003 CALL R3 1
0x8C100703, // 0004 GETMET R4 R3 K3
0x58180004, // 0005 LDCONST R6 K4
0x881C0505, // 0006 GETMBR R7 R2 K5
0x88200106, // 0007 GETMBR R8 R0 K6
0x7C100800, // 0008 CALL R4 4
0x8C100703, // 0009 GETMET R4 R3 K3
0x58180007, // 000A LDCONST R6 K7
0x881C0508, // 000B GETMBR R7 R2 K8
0x88200109, // 000C GETMBR R8 R0 K9
0x7C100800, // 000D CALL R4 4
0x8C100703, // 000E GETMET R4 R3 K3
0x5818000A, // 000F LDCONST R6 K10
0x881C0505, // 0010 GETMBR R7 R2 K5
0x8820010B, // 0011 GETMBR R8 R0 K11
0x7C100800, // 0012 CALL R4 4
0x8C100703, // 0013 GETMET R4 R3 K3
0x541A0003, // 0014 LDINT R6 4
0x881C0505, // 0015 GETMBR R7 R2 K5
0x8820010C, // 0016 GETMBR R8 R0 K12
0x7C100800, // 0017 CALL R4 4
0x8810010D, // 0018 GETMBR R4 R0 K13
0x4C140000, // 0019 LDNIL R5
0x20100805, // 001A NE R4 R4 R5
0x74120003, // 001B JMPT R4 #0020
0x8810010E, // 001C GETMBR R4 R0 K14
0x4C140000, // 001D LDNIL R5
0x20100805, // 001E NE R4 R4 R5
0x7812000C, // 001F JMPF R4 #002D
0x8C10070F, // 0020 GETMET R4 R3 K15
0x541A0004, // 0021 LDINT R6 5
0x7C100400, // 0022 CALL R4 2
0x8C140903, // 0023 GETMET R5 R4 K3
0x581C0004, // 0024 LDCONST R7 K4
0x88200510, // 0025 GETMBR R8 R2 K16
0x8824010D, // 0026 GETMBR R9 R0 K13
0x7C140800, // 0027 CALL R5 4
0x8C140903, // 0028 GETMET R5 R4 K3
0x581C0007, // 0029 LDCONST R7 K7
0x88200510, // 002A GETMBR R8 R2 K16
0x8824010E, // 002B GETMBR R9 R0 K14
0x7C140800, // 002C CALL R5 4
0x8C100711, // 002D GETMET R4 R3 K17
0x5C180200, // 002E MOVE R6 R1
0x7C100400, // 002F CALL R4 2
0x80040800, // 0030 RET 1 R4
})
)
);
@ -698,7 +668,7 @@ extern const bclass be_class_Matter_Sigma2Resume;
extern const bclass be_class_Matter_Sigma2Resume;
be_local_closure(class_Matter_Sigma2Resume_tlv2raw, /* name */
be_nested_proto(
9, /* nstack */
10, /* nstack */
2, /* argc */
2, /* varg */
0, /* has upvals */
@ -727,61 +697,51 @@ be_local_closure(class_Matter_Sigma2Resume_tlv2raw, /* name */
}),
be_str_weak(tlv2raw),
&be_const_str_solidified,
( &(const binstruction[54]) { /* code */
( &(const binstruction[44]) { /* code */
0xB80A0000, // 0000 GETNGBL R2 K0
0x88080501, // 0001 GETMBR R2 R2 K1
0x8C080502, // 0002 GETMET R2 R2 K2
0x7C080200, // 0003 CALL R2 1
0x8C0C0503, // 0004 GETMET R3 R2 K3
0x58140004, // 0005 LDCONST R5 K4
0xB81A0000, // 0006 GETNGBL R6 K0
0x88180D01, // 0007 GETMBR R6 R6 K1
0x88180D05, // 0008 GETMBR R6 R6 K5
0x881C0106, // 0009 GETMBR R7 R0 K6
0x7C0C0800, // 000A CALL R3 4
0x8C0C0503, // 000B GETMET R3 R2 K3
0x58140007, // 000C LDCONST R5 K7
0xB81A0000, // 000D GETNGBL R6 K0
0x88180D01, // 000E GETMBR R6 R6 K1
0x88180D05, // 000F GETMBR R6 R6 K5
0x881C0108, // 0010 GETMBR R7 R0 K8
0x7C0C0800, // 0011 CALL R3 4
0x8C0C0503, // 0012 GETMET R3 R2 K3
0x58140009, // 0013 LDCONST R5 K9
0xB81A0000, // 0014 GETNGBL R6 K0
0x88180D01, // 0015 GETMBR R6 R6 K1
0x88180D0A, // 0016 GETMBR R6 R6 K10
0x881C010B, // 0017 GETMBR R7 R0 K11
0x7C0C0800, // 0018 CALL R3 4
0x880C010C, // 0019 GETMBR R3 R0 K12
0x4C100000, // 001A LDNIL R4
0x200C0604, // 001B NE R3 R3 R4
0x740E0003, // 001C JMPT R3 #0021
0x880C010D, // 001D GETMBR R3 R0 K13
0x4C100000, // 001E LDNIL R4
0x200C0604, // 001F NE R3 R3 R4
0x780E0010, // 0020 JMPF R3 #0032
0x8C0C050E, // 0021 GETMET R3 R2 K14
0x54160003, // 0022 LDINT R5 4
0x7C0C0400, // 0023 CALL R3 2
0x8C100703, // 0024 GETMET R4 R3 K3
0x58180004, // 0025 LDCONST R6 K4
0xB81E0000, // 0026 GETNGBL R7 K0
0x881C0F01, // 0027 GETMBR R7 R7 K1
0x881C0F0F, // 0028 GETMBR R7 R7 K15
0x8820010C, // 0029 GETMBR R8 R0 K12
0x7C100800, // 002A CALL R4 4
0x8C100703, // 002B GETMET R4 R3 K3
0x58180007, // 002C LDCONST R6 K7
0xB81E0000, // 002D GETNGBL R7 K0
0x881C0F01, // 002E GETMBR R7 R7 K1
0x881C0F0F, // 002F GETMBR R7 R7 K15
0x8820010D, // 0030 GETMBR R8 R0 K13
0x7C100800, // 0031 CALL R4 4
0x8C0C0510, // 0032 GETMET R3 R2 K16
0x5C140200, // 0033 MOVE R5 R1
0x7C0C0400, // 0034 CALL R3 2
0x80040600, // 0035 RET 1 R3
0x8C0C0502, // 0002 GETMET R3 R2 K2
0x7C0C0200, // 0003 CALL R3 1
0x8C100703, // 0004 GETMET R4 R3 K3
0x58180004, // 0005 LDCONST R6 K4
0x881C0505, // 0006 GETMBR R7 R2 K5
0x88200106, // 0007 GETMBR R8 R0 K6
0x7C100800, // 0008 CALL R4 4
0x8C100703, // 0009 GETMET R4 R3 K3
0x58180007, // 000A LDCONST R6 K7
0x881C0505, // 000B GETMBR R7 R2 K5
0x88200108, // 000C GETMBR R8 R0 K8
0x7C100800, // 000D CALL R4 4
0x8C100703, // 000E GETMET R4 R3 K3
0x58180009, // 000F LDCONST R6 K9
0x881C050A, // 0010 GETMBR R7 R2 K10
0x8820010B, // 0011 GETMBR R8 R0 K11
0x7C100800, // 0012 CALL R4 4
0x8810010C, // 0013 GETMBR R4 R0 K12
0x4C140000, // 0014 LDNIL R5
0x20100805, // 0015 NE R4 R4 R5
0x74120003, // 0016 JMPT R4 #001B
0x8810010D, // 0017 GETMBR R4 R0 K13
0x4C140000, // 0018 LDNIL R5
0x20100805, // 0019 NE R4 R4 R5
0x7812000C, // 001A JMPF R4 #0028
0x8C10070E, // 001B GETMET R4 R3 K14
0x541A0003, // 001C LDINT R6 4
0x7C100400, // 001D CALL R4 2
0x8C140903, // 001E GETMET R5 R4 K3
0x581C0004, // 001F LDCONST R7 K4
0x8820050F, // 0020 GETMBR R8 R2 K15
0x8824010C, // 0021 GETMBR R9 R0 K12
0x7C140800, // 0022 CALL R5 4
0x8C140903, // 0023 GETMET R5 R4 K3
0x581C0007, // 0024 LDCONST R7 K7
0x8820050F, // 0025 GETMBR R8 R2 K15
0x8824010D, // 0026 GETMBR R9 R0 K13
0x7C140800, // 0027 CALL R5 4
0x8C100710, // 0028 GETMET R4 R3 K16
0x5C180200, // 0029 MOVE R6 R1
0x7C100400, // 002A CALL R4 2
0x80040800, // 002B RET 1 R4
})
)
);

View File

@ -12,7 +12,7 @@ extern const bclass be_class_Matter_Control_Message;
extern const bclass be_class_Matter_Control_Message;
be_local_closure(class_Matter_Control_Message_parse_MsgCounterSyncRsp, /* name */
be_nested_proto(
9, /* nstack */
8, /* nstack */
2, /* argc */
2, /* varg */
0, /* has upvals */
@ -20,36 +20,34 @@ be_local_closure(class_Matter_Control_Message_parse_MsgCounterSyncRsp, /* name
0, /* has sup protos */
&be_class_Matter_Control_Message,
1, /* has constants */
( &(const bvalue[ 9]) { /* constants */
( &(const bvalue[ 8]) { /* constants */
/* K0 */ be_nested_str_weak(session),
/* K1 */ be_nested_str_weak(tasmota),
/* K2 */ be_nested_str_weak(log),
/* K3 */ be_nested_str_weak(MTR_X3A_X20_X3EMCSyncRsp_X20_X2A_X20Not_X20implemented_X20_X25s),
/* K4 */ be_nested_str_weak(raw),
/* K5 */ be_nested_str_weak(app_payload_idx),
/* K6 */ be_const_int(2147483647),
/* K7 */ be_nested_str_weak(tohex),
/* K8 */ be_const_int(2),
/* K1 */ be_nested_str_weak(log),
/* K2 */ be_nested_str_weak(MTR_X3A_X20_X3EMCSyncRsp_X20_X2A_X20Not_X20implemented_X20_X25s),
/* K3 */ be_nested_str_weak(raw),
/* K4 */ be_nested_str_weak(app_payload_idx),
/* K5 */ be_const_int(2147483647),
/* K6 */ be_nested_str_weak(tohex),
/* K7 */ be_const_int(2),
}),
be_str_weak(parse_MsgCounterSyncRsp),
&be_const_str_solidified,
( &(const binstruction[16]) { /* code */
( &(const binstruction[15]) { /* code */
0x88080300, // 0000 GETMBR R2 R1 K0
0xB80E0200, // 0001 GETNGBL R3 K1
0x8C0C0702, // 0002 GETMET R3 R3 K2
0x60140018, // 0003 GETGBL R5 G24
0x58180003, // 0004 LDCONST R6 K3
0x881C0305, // 0005 GETMBR R7 R1 K5
0x401C0F06, // 0006 CONNECT R7 R7 K6
0x88200304, // 0007 GETMBR R8 R1 K4
0x941C1007, // 0008 GETIDX R7 R8 R7
0x8C1C0F07, // 0009 GETMET R7 R7 K7
0x7C1C0200, // 000A CALL R7 1
0x7C140400, // 000B CALL R5 2
0x58180008, // 000C LDCONST R6 K8
0x7C0C0600, // 000D CALL R3 3
0x500C0000, // 000E LDBOOL R3 0 0
0x80040600, // 000F RET 1 R3
0x60100018, // 0002 GETGBL R4 G24
0x58140002, // 0003 LDCONST R5 K2
0x88180304, // 0004 GETMBR R6 R1 K4
0x40180D05, // 0005 CONNECT R6 R6 K5
0x881C0303, // 0006 GETMBR R7 R1 K3
0x94180E06, // 0007 GETIDX R6 R7 R6
0x8C180D06, // 0008 GETMET R6 R6 K6
0x7C180200, // 0009 CALL R6 1
0x7C100400, // 000A CALL R4 2
0x58140007, // 000B LDCONST R5 K7
0x7C0C0400, // 000C CALL R3 2
0x500C0000, // 000D LDBOOL R3 0 0
0x80040600, // 000E RET 1 R3
})
)
);
@ -62,7 +60,7 @@ be_local_closure(class_Matter_Control_Message_parse_MsgCounterSyncRsp, /* name
extern const bclass be_class_Matter_Control_Message;
be_local_closure(class_Matter_Control_Message_parse_MsgCounterSyncReq, /* name */
be_nested_proto(
9, /* nstack */
8, /* nstack */
2, /* argc */
2, /* varg */
0, /* has upvals */
@ -70,36 +68,34 @@ be_local_closure(class_Matter_Control_Message_parse_MsgCounterSyncReq, /* name
0, /* has sup protos */
&be_class_Matter_Control_Message,
1, /* has constants */
( &(const bvalue[ 9]) { /* constants */
( &(const bvalue[ 8]) { /* constants */
/* K0 */ be_nested_str_weak(session),
/* K1 */ be_nested_str_weak(tasmota),
/* K2 */ be_nested_str_weak(log),
/* K3 */ be_nested_str_weak(MTR_X3A_X20_X3EMCSyncReq_X20_X2A_X20Not_X20implemented_X20_X25s),
/* K4 */ be_nested_str_weak(raw),
/* K5 */ be_nested_str_weak(app_payload_idx),
/* K6 */ be_const_int(2147483647),
/* K7 */ be_nested_str_weak(tohex),
/* K8 */ be_const_int(2),
/* K1 */ be_nested_str_weak(log),
/* K2 */ be_nested_str_weak(MTR_X3A_X20_X3EMCSyncReq_X20_X2A_X20Not_X20implemented_X20_X25s),
/* K3 */ be_nested_str_weak(raw),
/* K4 */ be_nested_str_weak(app_payload_idx),
/* K5 */ be_const_int(2147483647),
/* K6 */ be_nested_str_weak(tohex),
/* K7 */ be_const_int(2),
}),
be_str_weak(parse_MsgCounterSyncReq),
&be_const_str_solidified,
( &(const binstruction[16]) { /* code */
( &(const binstruction[15]) { /* code */
0x88080300, // 0000 GETMBR R2 R1 K0
0xB80E0200, // 0001 GETNGBL R3 K1
0x8C0C0702, // 0002 GETMET R3 R3 K2
0x60140018, // 0003 GETGBL R5 G24
0x58180003, // 0004 LDCONST R6 K3
0x881C0305, // 0005 GETMBR R7 R1 K5
0x401C0F06, // 0006 CONNECT R7 R7 K6
0x88200304, // 0007 GETMBR R8 R1 K4
0x941C1007, // 0008 GETIDX R7 R8 R7
0x8C1C0F07, // 0009 GETMET R7 R7 K7
0x7C1C0200, // 000A CALL R7 1
0x7C140400, // 000B CALL R5 2
0x58180008, // 000C LDCONST R6 K8
0x7C0C0600, // 000D CALL R3 3
0x500C0000, // 000E LDBOOL R3 0 0
0x80040600, // 000F RET 1 R3
0x60100018, // 0002 GETGBL R4 G24
0x58140002, // 0003 LDCONST R5 K2
0x88180304, // 0004 GETMBR R6 R1 K4
0x40180D05, // 0005 CONNECT R6 R6 K5
0x881C0303, // 0006 GETMBR R7 R1 K3
0x94180E06, // 0007 GETIDX R6 R7 R6
0x8C180D06, // 0008 GETMET R6 R6 K6
0x7C180200, // 0009 CALL R6 1
0x7C100400, // 000A CALL R4 2
0x58140007, // 000B LDCONST R5 K7
0x7C0C0400, // 000C CALL R3 2
0x500C0000, // 000D LDBOOL R3 0 0
0x80040600, // 000E RET 1 R3
})
)
);
@ -145,7 +141,7 @@ be_local_closure(class_Matter_Control_Message_init, /* name */
extern const bclass be_class_Matter_Control_Message;
be_local_closure(class_Matter_Control_Message_process_incoming_control_message, /* name */
be_nested_proto(
7, /* nstack */
6, /* nstack */
2, /* argc */
2, /* varg */
0, /* has upvals */
@ -153,61 +149,58 @@ be_local_closure(class_Matter_Control_Message_process_incoming_control_message,
0, /* has sup protos */
&be_class_Matter_Control_Message,
1, /* has constants */
( &(const bvalue[13]) { /* constants */
/* K0 */ be_nested_str_weak(tasmota),
/* K1 */ be_nested_str_weak(log),
/* K2 */ be_nested_str_weak(MTR_X3A_X20received_X20control_X20message_X20),
/* K3 */ be_nested_str_weak(matter),
/* K4 */ be_nested_str_weak(inspect),
/* K5 */ be_const_int(3),
/* K6 */ be_nested_str_weak(opcode),
/* K7 */ be_const_int(0),
/* K8 */ be_nested_str_weak(parse_MsgCounterSyncReq),
/* K9 */ be_const_int(1),
/* K10 */ be_nested_str_weak(parse_MsgCounterSyncRsp),
/* K11 */ be_nested_str_weak(MTR_X3A_X20_X3E_X3F_X3F_X3F_X3F_X3F_X3F_X3F_X3F_X3F_X20Unknown_X20OpCode_X20_X28control_X20message_X29_X20_X2502X),
/* K12 */ be_const_int(2),
( &(const bvalue[12]) { /* constants */
/* K0 */ be_nested_str_weak(log),
/* K1 */ be_nested_str_weak(MTR_X3A_X20received_X20control_X20message_X20),
/* K2 */ be_nested_str_weak(matter),
/* K3 */ be_nested_str_weak(inspect),
/* K4 */ be_const_int(3),
/* K5 */ be_nested_str_weak(opcode),
/* K6 */ be_const_int(0),
/* K7 */ be_nested_str_weak(parse_MsgCounterSyncReq),
/* K8 */ be_const_int(1),
/* K9 */ be_nested_str_weak(parse_MsgCounterSyncRsp),
/* K10 */ be_nested_str_weak(MTR_X3A_X20_X3E_X3F_X3F_X3F_X3F_X3F_X3F_X3F_X3F_X3F_X20Unknown_X20OpCode_X20_X28control_X20message_X29_X20_X2502X),
/* K11 */ be_const_int(2),
}),
be_str_weak(process_incoming_control_message),
&be_const_str_solidified,
( &(const binstruction[37]) { /* code */
( &(const binstruction[35]) { /* code */
0xB80A0000, // 0000 GETNGBL R2 K0
0x8C080501, // 0001 GETMET R2 R2 K1
0xB8120600, // 0002 GETNGBL R4 K3
0x8C100904, // 0003 GETMET R4 R4 K4
0x5C180200, // 0004 MOVE R6 R1
0x7C100400, // 0005 CALL R4 2
0x00120404, // 0006 ADD R4 K2 R4
0x58140005, // 0007 LDCONST R5 K5
0x7C080600, // 0008 CALL R2 3
0x88080306, // 0009 GETMBR R2 R1 K6
0x1C080507, // 000A EQ R2 R2 K7
0x780A0004, // 000B JMPF R2 #0011
0x8C080108, // 000C GETMET R2 R0 K8
0x5C100200, // 000D MOVE R4 R1
0x7C080400, // 000E CALL R2 2
0x80040400, // 000F RET 1 R2
0x70020011, // 0010 JMP #0023
0x88080306, // 0011 GETMBR R2 R1 K6
0x1C080509, // 0012 EQ R2 R2 K9
0x780A0004, // 0013 JMPF R2 #0019
0x8C08010A, // 0014 GETMET R2 R0 K10
0x5C100200, // 0015 MOVE R4 R1
0x7C080400, // 0016 CALL R2 2
0x80040400, // 0017 RET 1 R2
0x70020009, // 0018 JMP #0023
0xB80A0000, // 0019 GETNGBL R2 K0
0x8C080501, // 001A GETMET R2 R2 K1
0x60100018, // 001B GETGBL R4 G24
0x5814000B, // 001C LDCONST R5 K11
0x88180306, // 001D GETMBR R6 R1 K6
0x7C100400, // 001E CALL R4 2
0x5814000C, // 001F LDCONST R5 K12
0x7C080600, // 0020 CALL R2 3
0xB80E0400, // 0001 GETNGBL R3 K2
0x8C0C0703, // 0002 GETMET R3 R3 K3
0x5C140200, // 0003 MOVE R5 R1
0x7C0C0400, // 0004 CALL R3 2
0x000E0203, // 0005 ADD R3 K1 R3
0x58100004, // 0006 LDCONST R4 K4
0x7C080400, // 0007 CALL R2 2
0x88080305, // 0008 GETMBR R2 R1 K5
0x1C080506, // 0009 EQ R2 R2 K6
0x780A0004, // 000A JMPF R2 #0010
0x8C080107, // 000B GETMET R2 R0 K7
0x5C100200, // 000C MOVE R4 R1
0x7C080400, // 000D CALL R2 2
0x80040400, // 000E RET 1 R2
0x70020010, // 000F JMP #0021
0x88080305, // 0010 GETMBR R2 R1 K5
0x1C080508, // 0011 EQ R2 R2 K8
0x780A0004, // 0012 JMPF R2 #0018
0x8C080109, // 0013 GETMET R2 R0 K9
0x5C100200, // 0014 MOVE R4 R1
0x7C080400, // 0015 CALL R2 2
0x80040400, // 0016 RET 1 R2
0x70020008, // 0017 JMP #0021
0xB80A0000, // 0018 GETNGBL R2 K0
0x600C0018, // 0019 GETGBL R3 G24
0x5810000A, // 001A LDCONST R4 K10
0x88140305, // 001B GETMBR R5 R1 K5
0x7C0C0400, // 001C CALL R3 2
0x5810000B, // 001D LDCONST R4 K11
0x7C080400, // 001E CALL R2 2
0x50080000, // 001F LDBOOL R2 0 0
0x80040400, // 0020 RET 1 R2
0x50080000, // 0021 LDBOOL R2 0 0
0x80040400, // 0022 RET 1 R2
0x50080000, // 0023 LDBOOL R2 0 0
0x80040400, // 0024 RET 1 R2
})
)
);

View File

@ -40,7 +40,7 @@ be_local_closure(class_Matter_Fabric_get_icac, /* name */
extern const bclass be_class_Matter_Fabric;
be_local_closure(class_Matter_Fabric_before_remove, /* name */
be_nested_proto(
7, /* nstack */
6, /* nstack */
1, /* argc */
2, /* varg */
0, /* has upvals */
@ -48,35 +48,33 @@ be_local_closure(class_Matter_Fabric_before_remove, /* name */
0, /* has sup protos */
&be_class_Matter_Fabric,
1, /* has constants */
( &(const bvalue[ 8]) { /* constants */
/* K0 */ be_nested_str_weak(tasmota),
/* K1 */ be_nested_str_weak(log),
/* K2 */ be_nested_str_weak(MTR_X3A_X20_X2DFabric_X20_X20_X20_X20fab_X3D_X27_X25s_X27_X20_X28removed_X29),
/* K3 */ be_nested_str_weak(get_fabric_id),
/* K4 */ be_nested_str_weak(copy),
/* K5 */ be_nested_str_weak(reverse),
/* K6 */ be_nested_str_weak(tohex),
/* K7 */ be_const_int(3),
( &(const bvalue[ 7]) { /* constants */
/* K0 */ be_nested_str_weak(log),
/* K1 */ be_nested_str_weak(MTR_X3A_X20_X2DFabric_X20_X20_X20_X20fab_X3D_X27_X25s_X27_X20_X28removed_X29),
/* K2 */ be_nested_str_weak(get_fabric_id),
/* K3 */ be_nested_str_weak(copy),
/* K4 */ be_nested_str_weak(reverse),
/* K5 */ be_nested_str_weak(tohex),
/* K6 */ be_const_int(3),
}),
be_str_weak(before_remove),
&be_const_str_solidified,
( &(const binstruction[16]) { /* code */
( &(const binstruction[15]) { /* code */
0xB8060000, // 0000 GETNGBL R1 K0
0x8C040301, // 0001 GETMET R1 R1 K1
0x600C0018, // 0002 GETGBL R3 G24
0x58100002, // 0003 LDCONST R4 K2
0x8C140103, // 0004 GETMET R5 R0 K3
0x7C140200, // 0005 CALL R5 1
0x8C140B04, // 0006 GETMET R5 R5 K4
0x7C140200, // 0007 CALL R5 1
0x8C140B05, // 0008 GETMET R5 R5 K5
0x7C140200, // 0009 CALL R5 1
0x8C140B06, // 000A GETMET R5 R5 K6
0x7C140200, // 000B CALL R5 1
0x7C0C0400, // 000C CALL R3 2
0x58100007, // 000D LDCONST R4 K7
0x7C040600, // 000E CALL R1 3
0x80000000, // 000F RET 0
0x60080018, // 0001 GETGBL R2 G24
0x580C0001, // 0002 LDCONST R3 K1
0x8C100102, // 0003 GETMET R4 R0 K2
0x7C100200, // 0004 CALL R4 1
0x8C100903, // 0005 GETMET R4 R4 K3
0x7C100200, // 0006 CALL R4 1
0x8C100904, // 0007 GETMET R4 R4 K4
0x7C100200, // 0008 CALL R4 1
0x8C100905, // 0009 GETMET R4 R4 K5
0x7C100200, // 000A CALL R4 1
0x7C080400, // 000B CALL R2 2
0x580C0006, // 000C LDCONST R3 K6
0x7C040400, // 000D CALL R1 2
0x80000000, // 000E RET 0
})
)
);
@ -914,7 +912,7 @@ be_local_closure(class_Matter_Fabric_fabric_completed, /* name */
extern const bclass be_class_Matter_Fabric;
be_local_closure(class_Matter_Fabric_counter_group_data_snd_next, /* name */
be_nested_proto(
7, /* nstack */
6, /* nstack */
1, /* argc */
2, /* varg */
0, /* has upvals */
@ -922,51 +920,49 @@ be_local_closure(class_Matter_Fabric_counter_group_data_snd_next, /* name */
0, /* has sup protos */
&be_class_Matter_Fabric,
1, /* has constants */
( &(const bvalue[13]) { /* constants */
( &(const bvalue[12]) { /* constants */
/* K0 */ be_nested_str_weak(_counter_group_data_snd_impl),
/* K1 */ be_nested_str_weak(next),
/* K2 */ be_nested_str_weak(tasmota),
/* K3 */ be_nested_str_weak(log),
/* K4 */ be_nested_str_weak(MTR_X3A_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Counter_group_data_snd_X3D_X25i),
/* K5 */ be_const_int(3),
/* K6 */ be_nested_str_weak(matter),
/* K7 */ be_nested_str_weak(Counter),
/* K8 */ be_nested_str_weak(is_greater),
/* K9 */ be_nested_str_weak(counter_group_data_snd),
/* K10 */ be_nested_str_weak(_GROUP_SND_INCR),
/* K11 */ be_nested_str_weak(does_persist),
/* K12 */ be_nested_str_weak(save),
/* K2 */ be_nested_str_weak(log),
/* K3 */ be_nested_str_weak(MTR_X3A_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Counter_group_data_snd_X3D_X25i),
/* K4 */ be_const_int(3),
/* K5 */ be_nested_str_weak(matter),
/* K6 */ be_nested_str_weak(Counter),
/* K7 */ be_nested_str_weak(is_greater),
/* K8 */ be_nested_str_weak(counter_group_data_snd),
/* K9 */ be_nested_str_weak(_GROUP_SND_INCR),
/* K10 */ be_nested_str_weak(does_persist),
/* K11 */ be_nested_str_weak(save),
}),
be_str_weak(counter_group_data_snd_next),
&be_const_str_solidified,
( &(const binstruction[27]) { /* code */
( &(const binstruction[26]) { /* code */
0x88040100, // 0000 GETMBR R1 R0 K0
0x8C040301, // 0001 GETMET R1 R1 K1
0x7C040200, // 0002 CALL R1 1
0xB80A0400, // 0003 GETNGBL R2 K2
0x8C080503, // 0004 GETMET R2 R2 K3
0x60100018, // 0005 GETGBL R4 G24
0x58140004, // 0006 LDCONST R5 K4
0x5C180200, // 0007 MOVE R6 R1
0x7C100400, // 0008 CALL R4 2
0x58140005, // 0009 LDCONST R5 K5
0x7C080600, // 000A CALL R2 3
0xB80A0C00, // 000B GETNGBL R2 K6
0x88080507, // 000C GETMBR R2 R2 K7
0x8C080508, // 000D GETMET R2 R2 K8
0x5C100200, // 000E MOVE R4 R1
0x88140109, // 000F GETMBR R5 R0 K9
0x7C080600, // 0010 CALL R2 3
0x780A0007, // 0011 JMPF R2 #001A
0x8808010A, // 0012 GETMBR R2 R0 K10
0x00080202, // 0013 ADD R2 R1 R2
0x90021202, // 0014 SETMBR R0 K9 R2
0x8C08010B, // 0015 GETMET R2 R0 K11
0x7C080200, // 0016 CALL R2 1
0x780A0001, // 0017 JMPF R2 #001A
0x8C08010C, // 0018 GETMET R2 R0 K12
0x7C080200, // 0019 CALL R2 1
0x80040200, // 001A RET 1 R1
0x600C0018, // 0004 GETGBL R3 G24
0x58100003, // 0005 LDCONST R4 K3
0x5C140200, // 0006 MOVE R5 R1
0x7C0C0400, // 0007 CALL R3 2
0x58100004, // 0008 LDCONST R4 K4
0x7C080400, // 0009 CALL R2 2
0xB80A0A00, // 000A GETNGBL R2 K5
0x88080506, // 000B GETMBR R2 R2 K6
0x8C080507, // 000C GETMET R2 R2 K7
0x5C100200, // 000D MOVE R4 R1
0x88140108, // 000E GETMBR R5 R0 K8
0x7C080600, // 000F CALL R2 3
0x780A0007, // 0010 JMPF R2 #0019
0x88080109, // 0011 GETMBR R2 R0 K9
0x00080202, // 0012 ADD R2 R1 R2
0x90021002, // 0013 SETMBR R0 K8 R2
0x8C08010A, // 0014 GETMET R2 R0 K10
0x7C080200, // 0015 CALL R2 1
0x780A0001, // 0016 JMPF R2 #0019
0x8C08010B, // 0017 GETMET R2 R0 K11
0x7C080200, // 0018 CALL R2 1
0x80040200, // 0019 RET 1 R1
})
)
);
@ -1067,7 +1063,7 @@ be_local_closure(class_Matter_Fabric_get_newest_session, /* name */
extern const bclass be_class_Matter_Fabric;
be_local_closure(class_Matter_Fabric_log_new_fabric, /* name */
be_nested_proto(
8, /* nstack */
7, /* nstack */
1, /* argc */
2, /* varg */
0, /* has upvals */
@ -1075,38 +1071,36 @@ be_local_closure(class_Matter_Fabric_log_new_fabric, /* name */
0, /* has sup protos */
&be_class_Matter_Fabric,
1, /* has constants */
( &(const bvalue[ 9]) { /* constants */
/* K0 */ be_nested_str_weak(tasmota),
/* K1 */ be_nested_str_weak(log),
/* K2 */ be_nested_str_weak(MTR_X3A_X20_X2BFabric_X20_X20_X20_X20fab_X3D_X27_X25s_X27_X20vendorid_X3D_X25s),
/* K3 */ be_nested_str_weak(get_fabric_id),
/* K4 */ be_nested_str_weak(copy),
/* K5 */ be_nested_str_weak(reverse),
/* K6 */ be_nested_str_weak(tohex),
/* K7 */ be_nested_str_weak(get_admin_vendor_name),
/* K8 */ be_const_int(3),
( &(const bvalue[ 8]) { /* constants */
/* K0 */ be_nested_str_weak(log),
/* K1 */ be_nested_str_weak(MTR_X3A_X20_X2BFabric_X20_X20_X20_X20fab_X3D_X27_X25s_X27_X20vendorid_X3D_X25s),
/* K2 */ be_nested_str_weak(get_fabric_id),
/* K3 */ be_nested_str_weak(copy),
/* K4 */ be_nested_str_weak(reverse),
/* K5 */ be_nested_str_weak(tohex),
/* K6 */ be_nested_str_weak(get_admin_vendor_name),
/* K7 */ be_const_int(3),
}),
be_str_weak(log_new_fabric),
&be_const_str_solidified,
( &(const binstruction[18]) { /* code */
( &(const binstruction[17]) { /* code */
0xB8060000, // 0000 GETNGBL R1 K0
0x8C040301, // 0001 GETMET R1 R1 K1
0x600C0018, // 0002 GETGBL R3 G24
0x58100002, // 0003 LDCONST R4 K2
0x8C140103, // 0004 GETMET R5 R0 K3
0x7C140200, // 0005 CALL R5 1
0x8C140B04, // 0006 GETMET R5 R5 K4
0x7C140200, // 0007 CALL R5 1
0x8C140B05, // 0008 GETMET R5 R5 K5
0x7C140200, // 0009 CALL R5 1
0x8C140B06, // 000A GETMET R5 R5 K6
0x7C140200, // 000B CALL R5 1
0x8C180107, // 000C GETMET R6 R0 K7
0x7C180200, // 000D CALL R6 1
0x7C0C0600, // 000E CALL R3 3
0x58100008, // 000F LDCONST R4 K8
0x7C040600, // 0010 CALL R1 3
0x80000000, // 0011 RET 0
0x60080018, // 0001 GETGBL R2 G24
0x580C0001, // 0002 LDCONST R3 K1
0x8C100102, // 0003 GETMET R4 R0 K2
0x7C100200, // 0004 CALL R4 1
0x8C100903, // 0005 GETMET R4 R4 K3
0x7C100200, // 0006 CALL R4 1
0x8C100904, // 0007 GETMET R4 R4 K4
0x7C100200, // 0008 CALL R4 1
0x8C100905, // 0009 GETMET R4 R4 K5
0x7C100200, // 000A CALL R4 1
0x8C140106, // 000B GETMET R5 R0 K6
0x7C140200, // 000C CALL R5 1
0x7C080600, // 000D CALL R2 3
0x580C0007, // 000E LDCONST R3 K7
0x7C040400, // 000F CALL R1 2
0x80000000, // 0010 RET 0
})
)
);
@ -1365,7 +1359,7 @@ be_local_closure(class_Matter_Fabric_writejson, /* name */
extern const bclass be_class_Matter_Fabric;
be_local_closure(class_Matter_Fabric_counter_group_ctrl_snd_next, /* name */
be_nested_proto(
7, /* nstack */
6, /* nstack */
1, /* argc */
2, /* varg */
0, /* has upvals */
@ -1373,51 +1367,49 @@ be_local_closure(class_Matter_Fabric_counter_group_ctrl_snd_next, /* name */
0, /* has sup protos */
&be_class_Matter_Fabric,
1, /* has constants */
( &(const bvalue[13]) { /* constants */
( &(const bvalue[12]) { /* constants */
/* K0 */ be_nested_str_weak(_counter_group_ctrl_snd_impl),
/* K1 */ be_nested_str_weak(next),
/* K2 */ be_nested_str_weak(tasmota),
/* K3 */ be_nested_str_weak(log),
/* K4 */ be_nested_str_weak(MTR_X3A_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Counter_group_ctrl_snd_X3D_X25i),
/* K5 */ be_const_int(3),
/* K6 */ be_nested_str_weak(matter),
/* K7 */ be_nested_str_weak(Counter),
/* K8 */ be_nested_str_weak(is_greater),
/* K9 */ be_nested_str_weak(counter_group_ctrl_snd),
/* K10 */ be_nested_str_weak(_GROUP_SND_INCR),
/* K11 */ be_nested_str_weak(does_persist),
/* K12 */ be_nested_str_weak(save),
/* K2 */ be_nested_str_weak(log),
/* K3 */ be_nested_str_weak(MTR_X3A_X20_X2E_X20_X20_X20_X20_X20_X20_X20_X20_X20_X20Counter_group_ctrl_snd_X3D_X25i),
/* K4 */ be_const_int(3),
/* K5 */ be_nested_str_weak(matter),
/* K6 */ be_nested_str_weak(Counter),
/* K7 */ be_nested_str_weak(is_greater),
/* K8 */ be_nested_str_weak(counter_group_ctrl_snd),
/* K9 */ be_nested_str_weak(_GROUP_SND_INCR),
/* K10 */ be_nested_str_weak(does_persist),
/* K11 */ be_nested_str_weak(save),
}),
be_str_weak(counter_group_ctrl_snd_next),
&be_const_str_solidified,
( &(const binstruction[27]) { /* code */
( &(const binstruction[26]) { /* code */
0x88040100, // 0000 GETMBR R1 R0 K0
0x8C040301, // 0001 GETMET R1 R1 K1
0x7C040200, // 0002 CALL R1 1
0xB80A0400, // 0003 GETNGBL R2 K2
0x8C080503, // 0004 GETMET R2 R2 K3
0x60100018, // 0005 GETGBL R4 G24
0x58140004, // 0006 LDCONST R5 K4
0x5C180200, // 0007 MOVE R6 R1
0x7C100400, // 0008 CALL R4 2
0x58140005, // 0009 LDCONST R5 K5
0x7C080600, // 000A CALL R2 3
0xB80A0C00, // 000B GETNGBL R2 K6
0x88080507, // 000C GETMBR R2 R2 K7
0x8C080508, // 000D GETMET R2 R2 K8
0x5C100200, // 000E MOVE R4 R1
0x88140109, // 000F GETMBR R5 R0 K9
0x7C080600, // 0010 CALL R2 3
0x780A0007, // 0011 JMPF R2 #001A
0x8808010A, // 0012 GETMBR R2 R0 K10
0x00080202, // 0013 ADD R2 R1 R2
0x90021202, // 0014 SETMBR R0 K9 R2
0x8C08010B, // 0015 GETMET R2 R0 K11
0x7C080200, // 0016 CALL R2 1
0x780A0001, // 0017 JMPF R2 #001A
0x8C08010C, // 0018 GETMET R2 R0 K12
0x7C080200, // 0019 CALL R2 1
0x80040200, // 001A RET 1 R1
0x600C0018, // 0004 GETGBL R3 G24
0x58100003, // 0005 LDCONST R4 K3
0x5C140200, // 0006 MOVE R5 R1
0x7C0C0400, // 0007 CALL R3 2
0x58100004, // 0008 LDCONST R4 K4
0x7C080400, // 0009 CALL R2 2
0xB80A0A00, // 000A GETNGBL R2 K5
0x88080506, // 000B GETMBR R2 R2 K6
0x8C080507, // 000C GETMET R2 R2 K7
0x5C100200, // 000D MOVE R4 R1
0x88140108, // 000E GETMBR R5 R0 K8
0x7C080600, // 000F CALL R2 3
0x780A0007, // 0010 JMPF R2 #0019
0x88080109, // 0011 GETMBR R2 R0 K9
0x00080202, // 0012 ADD R2 R1 R2
0x90021002, // 0013 SETMBR R0 K8 R2
0x8C08010A, // 0014 GETMET R2 R0 K10
0x7C080200, // 0015 CALL R2 1
0x780A0001, // 0016 JMPF R2 #0019
0x8C08010B, // 0017 GETMET R2 R0 K11
0x7C080200, // 0018 CALL R2 1
0x80040200, // 0019 RET 1 R1
})
)
);

View File

@ -153,7 +153,7 @@ be_local_closure(class_Matter_HTTP_remote_get_info, /* name */
extern const bclass be_class_Matter_HTTP_remote;
be_local_closure(class_Matter_HTTP_remote_parse_status_http, /* name */
be_nested_proto(
12, /* nstack */
11, /* nstack */
3, /* argc */
2, /* varg */
0, /* has upvals */
@ -161,7 +161,7 @@ be_local_closure(class_Matter_HTTP_remote_parse_status_http, /* name */
0, /* has sup protos */
&be_class_Matter_HTTP_remote,
1, /* has constants */
( &(const bvalue[28]) { /* constants */
( &(const bvalue[27]) { /* constants */
/* K0 */ be_const_int(0),
/* K1 */ be_nested_str_weak(find),
/* K2 */ be_nested_str_weak(DeviceName),
@ -169,34 +169,33 @@ be_local_closure(class_Matter_HTTP_remote_parse_status_http, /* name */
/* K4 */ be_nested_str_weak(info),
/* K5 */ be_nested_str_weak(name),
/* K6 */ be_nested_str_weak(remove),
/* K7 */ be_nested_str_weak(tasmota),
/* K8 */ be_nested_str_weak(log),
/* K9 */ be_nested_str_weak(MTR_X3A_X20update_X20_X27_X25s_X27_X20name_X3D_X27_X25s_X27),
/* K10 */ be_nested_str_weak(addr),
/* K11 */ be_const_int(3),
/* K12 */ be_nested_str_weak(change_schedule),
/* K13 */ be_nested_str_weak(UPDATE_CMD0),
/* K14 */ be_nested_str_weak(UPDATE_TIME2),
/* K15 */ be_const_int(2),
/* K16 */ be_nested_str_weak(Version),
/* K17 */ be_nested_str_weak(Hardware),
/* K18 */ be_nested_str_weak(version),
/* K19 */ be_nested_str_weak(MTR_X3A_X20update_X20_X27_X25s_X27_X20version_X3D_X27_X25s_X27),
/* K20 */ be_nested_str_weak(hardware),
/* K21 */ be_nested_str_weak(MTR_X3A_X20update_X20_X27_X25s_X27_X20hardware_X3D_X27_X25s_X27),
/* K22 */ be_nested_str_weak(UPDATE_CMD2),
/* K23 */ be_nested_str_weak(Mac),
/* K24 */ be_nested_str_weak(mac),
/* K25 */ be_nested_str_weak(MTR_X3A_X20update_X20_X27_X25s_X27_X20mac_X3D_X27_X25s_X27),
/* K26 */ be_nested_str_weak(UPDATE_CMD5),
/* K27 */ be_nested_str_weak(info_changed),
/* K7 */ be_nested_str_weak(log),
/* K8 */ be_nested_str_weak(MTR_X3A_X20update_X20_X27_X25s_X27_X20name_X3D_X27_X25s_X27),
/* K9 */ be_nested_str_weak(addr),
/* K10 */ be_const_int(3),
/* K11 */ be_nested_str_weak(change_schedule),
/* K12 */ be_nested_str_weak(UPDATE_CMD0),
/* K13 */ be_nested_str_weak(UPDATE_TIME2),
/* K14 */ be_const_int(2),
/* K15 */ be_nested_str_weak(Version),
/* K16 */ be_nested_str_weak(Hardware),
/* K17 */ be_nested_str_weak(version),
/* K18 */ be_nested_str_weak(MTR_X3A_X20update_X20_X27_X25s_X27_X20version_X3D_X27_X25s_X27),
/* K19 */ be_nested_str_weak(hardware),
/* K20 */ be_nested_str_weak(MTR_X3A_X20update_X20_X27_X25s_X27_X20hardware_X3D_X27_X25s_X27),
/* K21 */ be_nested_str_weak(UPDATE_CMD2),
/* K22 */ be_nested_str_weak(Mac),
/* K23 */ be_nested_str_weak(mac),
/* K24 */ be_nested_str_weak(MTR_X3A_X20update_X20_X27_X25s_X27_X20mac_X3D_X27_X25s_X27),
/* K25 */ be_nested_str_weak(UPDATE_CMD5),
/* K26 */ be_nested_str_weak(info_changed),
}),
be_str_weak(parse_status_http),
&be_const_str_solidified,
( &(const binstruction[145]) { /* code */
( &(const binstruction[141]) { /* code */
0x500C0000, // 0000 LDBOOL R3 0 0
0x1C100500, // 0001 EQ R4 R2 K0
0x78120024, // 0002 JMPF R4 #0028
0x78120023, // 0002 JMPF R4 #0027
0x8C100301, // 0003 GETMET R4 R1 K1
0x58180002, // 0004 LDCONST R6 K2
0x7C100400, // 0005 CALL R4 2
@ -208,7 +207,7 @@ be_local_closure(class_Matter_HTTP_remote_parse_status_http, /* name */
0x581C0005, // 000B LDCONST R7 K5
0x7C140400, // 000C CALL R5 2
0x20140A04, // 000D NE R5 R5 R4
0x78160013, // 000E JMPF R5 #0023
0x78160012, // 000E JMPF R5 #0022
0x4C140000, // 000F LDNIL R5
0x20140805, // 0010 NE R5 R4 R5
0x78160002, // 0011 JMPF R5 #0015
@ -220,125 +219,121 @@ be_local_closure(class_Matter_HTTP_remote_parse_status_http, /* name */
0x581C0005, // 0017 LDCONST R7 K5
0x7C140400, // 0018 CALL R5 2
0xB8160E00, // 0019 GETNGBL R5 K7
0x8C140B08, // 001A GETMET R5 R5 K8
0x601C0018, // 001B GETGBL R7 G24
0x58200009, // 001C LDCONST R8 K9
0x8824010A, // 001D GETMBR R9 R0 K10
0x5C280800, // 001E MOVE R10 R4
0x7C1C0600, // 001F CALL R7 3
0x5820000B, // 0020 LDCONST R8 K11
0x7C140600, // 0021 CALL R5 3
0x500C0200, // 0022 LDBOOL R3 1 0
0x8C14010C, // 0023 GETMET R5 R0 K12
0x881C010D, // 0024 GETMBR R7 R0 K13
0x8820010E, // 0025 GETMBR R8 R0 K14
0x7C140600, // 0026 CALL R5 3
0x70020064, // 0027 JMP #008D
0x1C10050F, // 0028 EQ R4 R2 K15
0x7812003E, // 0029 JMPF R4 #0069
0x8C100301, // 002A GETMET R4 R1 K1
0x58180010, // 002B LDCONST R6 K16
0x7C100400, // 002C CALL R4 2
0x8C140301, // 002D GETMET R5 R1 K1
0x581C0011, // 002E LDCONST R7 K17
0x7C140400, // 002F CALL R5 2
0x88180104, // 0030 GETMBR R6 R0 K4
0x8C180D01, // 0031 GETMET R6 R6 K1
0x58200012, // 0032 LDCONST R8 K18
0x7C180400, // 0033 CALL R6 2
0x20180C04, // 0034 NE R6 R6 R4
0x781A0013, // 0035 JMPF R6 #004A
0x4C180000, // 0036 LDNIL R6
0x20180806, // 0037 NE R6 R4 R6
0x781A0002, // 0038 JMPF R6 #003C
0x88180104, // 0039 GETMBR R6 R0 K4
0x981A2404, // 003A SETIDX R6 K18 R4
0x70020003, // 003B JMP #0040
0x88180104, // 003C GETMBR R6 R0 K4
0x8C180D06, // 003D GETMET R6 R6 K6
0x58200012, // 003E LDCONST R8 K18
0x7C180400, // 003F CALL R6 2
0xB81A0E00, // 0040 GETNGBL R6 K7
0x8C180D08, // 0041 GETMET R6 R6 K8
0x60200018, // 0042 GETGBL R8 G24
0x58240013, // 0043 LDCONST R9 K19
0x8828010A, // 0044 GETMBR R10 R0 K10
0x5C2C0800, // 0045 MOVE R11 R4
0x7C200600, // 0046 CALL R8 3
0x5824000B, // 0047 LDCONST R9 K11
0x7C180600, // 0048 CALL R6 3
0x500C0200, // 0049 LDBOOL R3 1 0
0x88180104, // 004A GETMBR R6 R0 K4
0x8C180D01, // 004B GETMET R6 R6 K1
0x58200014, // 004C LDCONST R8 K20
0x7C180400, // 004D CALL R6 2
0x20180C05, // 004E NE R6 R6 R5
0x781A0013, // 004F JMPF R6 #0064
0x4C180000, // 0050 LDNIL R6
0x20180A06, // 0051 NE R6 R5 R6
0x781A0002, // 0052 JMPF R6 #0056
0x88180104, // 0053 GETMBR R6 R0 K4
0x981A2805, // 0054 SETIDX R6 K20 R5
0x70020003, // 0055 JMP #005A
0x88180104, // 0056 GETMBR R6 R0 K4
0x8C180D06, // 0057 GETMET R6 R6 K6
0x58200014, // 0058 LDCONST R8 K20
0x7C180400, // 0059 CALL R6 2
0xB81A0E00, // 005A GETNGBL R6 K7
0x8C180D08, // 005B GETMET R6 R6 K8
0x60200018, // 005C GETGBL R8 G24
0x58240015, // 005D LDCONST R9 K21
0x8828010A, // 005E GETMBR R10 R0 K10
0x5C2C0A00, // 005F MOVE R11 R5
0x7C200600, // 0060 CALL R8 3
0x5824000B, // 0061 LDCONST R9 K11
0x7C180600, // 0062 CALL R6 3
0x500C0200, // 0063 LDBOOL R3 1 0
0x8C18010C, // 0064 GETMET R6 R0 K12
0x88200116, // 0065 GETMBR R8 R0 K22
0x8824010E, // 0066 GETMBR R9 R0 K14
0x7C180600, // 0067 CALL R6 3
0x70020023, // 0068 JMP #008D
0x54120004, // 0069 LDINT R4 5
0x1C100404, // 006A EQ R4 R2 R4
0x78120020, // 006B JMPF R4 #008D
0x8C100301, // 006C GETMET R4 R1 K1
0x58180017, // 006D LDCONST R6 K23
0x7C100400, // 006E CALL R4 2
0x88140104, // 006F GETMBR R5 R0 K4
0x8C140B01, // 0070 GETMET R5 R5 K1
0x581C0018, // 0071 LDCONST R7 K24
0x7C140400, // 0072 CALL R5 2
0x20140A04, // 0073 NE R5 R5 R4
0x78160013, // 0074 JMPF R5 #0089
0x4C140000, // 0075 LDNIL R5
0x20140805, // 0076 NE R5 R4 R5
0x78160002, // 0077 JMPF R5 #007B
0x60180018, // 001A GETGBL R6 G24
0x581C0008, // 001B LDCONST R7 K8
0x88200109, // 001C GETMBR R8 R0 K9
0x5C240800, // 001D MOVE R9 R4
0x7C180600, // 001E CALL R6 3
0x581C000A, // 001F LDCONST R7 K10
0x7C140400, // 0020 CALL R5 2
0x500C0200, // 0021 LDBOOL R3 1 0
0x8C14010B, // 0022 GETMET R5 R0 K11
0x881C010C, // 0023 GETMBR R7 R0 K12
0x8820010D, // 0024 GETMBR R8 R0 K13
0x7C140600, // 0025 CALL R5 3
0x70020061, // 0026 JMP #0089
0x1C10050E, // 0027 EQ R4 R2 K14
0x7812003C, // 0028 JMPF R4 #0066
0x8C100301, // 0029 GETMET R4 R1 K1
0x5818000F, // 002A LDCONST R6 K15
0x7C100400, // 002B CALL R4 2
0x8C140301, // 002C GETMET R5 R1 K1
0x581C0010, // 002D LDCONST R7 K16
0x7C140400, // 002E CALL R5 2
0x88180104, // 002F GETMBR R6 R0 K4
0x8C180D01, // 0030 GETMET R6 R6 K1
0x58200011, // 0031 LDCONST R8 K17
0x7C180400, // 0032 CALL R6 2
0x20180C04, // 0033 NE R6 R6 R4
0x781A0012, // 0034 JMPF R6 #0048
0x4C180000, // 0035 LDNIL R6
0x20180806, // 0036 NE R6 R4 R6
0x781A0002, // 0037 JMPF R6 #003B
0x88180104, // 0038 GETMBR R6 R0 K4
0x981A2204, // 0039 SETIDX R6 K17 R4
0x70020003, // 003A JMP #003F
0x88180104, // 003B GETMBR R6 R0 K4
0x8C180D06, // 003C GETMET R6 R6 K6
0x58200011, // 003D LDCONST R8 K17
0x7C180400, // 003E CALL R6 2
0xB81A0E00, // 003F GETNGBL R6 K7
0x601C0018, // 0040 GETGBL R7 G24
0x58200012, // 0041 LDCONST R8 K18
0x88240109, // 0042 GETMBR R9 R0 K9
0x5C280800, // 0043 MOVE R10 R4
0x7C1C0600, // 0044 CALL R7 3
0x5820000A, // 0045 LDCONST R8 K10
0x7C180400, // 0046 CALL R6 2
0x500C0200, // 0047 LDBOOL R3 1 0
0x88180104, // 0048 GETMBR R6 R0 K4
0x8C180D01, // 0049 GETMET R6 R6 K1
0x58200013, // 004A LDCONST R8 K19
0x7C180400, // 004B CALL R6 2
0x20180C05, // 004C NE R6 R6 R5
0x781A0012, // 004D JMPF R6 #0061
0x4C180000, // 004E LDNIL R6
0x20180A06, // 004F NE R6 R5 R6
0x781A0002, // 0050 JMPF R6 #0054
0x88180104, // 0051 GETMBR R6 R0 K4
0x981A2605, // 0052 SETIDX R6 K19 R5
0x70020003, // 0053 JMP #0058
0x88180104, // 0054 GETMBR R6 R0 K4
0x8C180D06, // 0055 GETMET R6 R6 K6
0x58200013, // 0056 LDCONST R8 K19
0x7C180400, // 0057 CALL R6 2
0xB81A0E00, // 0058 GETNGBL R6 K7
0x601C0018, // 0059 GETGBL R7 G24
0x58200014, // 005A LDCONST R8 K20
0x88240109, // 005B GETMBR R9 R0 K9
0x5C280A00, // 005C MOVE R10 R5
0x7C1C0600, // 005D CALL R7 3
0x5820000A, // 005E LDCONST R8 K10
0x7C180400, // 005F CALL R6 2
0x500C0200, // 0060 LDBOOL R3 1 0
0x8C18010B, // 0061 GETMET R6 R0 K11
0x88200115, // 0062 GETMBR R8 R0 K21
0x8824010D, // 0063 GETMBR R9 R0 K13
0x7C180600, // 0064 CALL R6 3
0x70020022, // 0065 JMP #0089
0x54120004, // 0066 LDINT R4 5
0x1C100404, // 0067 EQ R4 R2 R4
0x7812001F, // 0068 JMPF R4 #0089
0x8C100301, // 0069 GETMET R4 R1 K1
0x58180016, // 006A LDCONST R6 K22
0x7C100400, // 006B CALL R4 2
0x88140104, // 006C GETMBR R5 R0 K4
0x8C140B01, // 006D GETMET R5 R5 K1
0x581C0017, // 006E LDCONST R7 K23
0x7C140400, // 006F CALL R5 2
0x20140A04, // 0070 NE R5 R5 R4
0x78160012, // 0071 JMPF R5 #0085
0x4C140000, // 0072 LDNIL R5
0x20140805, // 0073 NE R5 R4 R5
0x78160002, // 0074 JMPF R5 #0078
0x88140104, // 0075 GETMBR R5 R0 K4
0x98162E04, // 0076 SETIDX R5 K23 R4
0x70020003, // 0077 JMP #007C
0x88140104, // 0078 GETMBR R5 R0 K4
0x98163004, // 0079 SETIDX R5 K24 R4
0x70020003, // 007A JMP #007F
0x88140104, // 007B GETMBR R5 R0 K4
0x8C140B06, // 007C GETMET R5 R5 K6
0x581C0018, // 007D LDCONST R7 K24
0x7C140400, // 007E CALL R5 2
0xB8160E00, // 007F GETNGBL R5 K7
0x8C140B08, // 0080 GETMET R5 R5 K8
0x601C0018, // 0081 GETGBL R7 G24
0x58200019, // 0082 LDCONST R8 K25
0x8824010A, // 0083 GETMBR R9 R0 K10
0x5C280800, // 0084 MOVE R10 R4
0x7C1C0600, // 0085 CALL R7 3
0x5820000B, // 0086 LDCONST R8 K11
0x7C140600, // 0087 CALL R5 3
0x500C0200, // 0088 LDBOOL R3 1 0
0x8C14010C, // 0089 GETMET R5 R0 K12
0x881C011A, // 008A GETMBR R7 R0 K26
0x8820010E, // 008B GETMBR R8 R0 K14
0x7C140600, // 008C CALL R5 3
0x780E0001, // 008D JMPF R3 #0090
0x8C10011B, // 008E GETMET R4 R0 K27
0x7C100200, // 008F CALL R4 1
0x80000000, // 0090 RET 0
0x8C140B06, // 0079 GETMET R5 R5 K6
0x581C0017, // 007A LDCONST R7 K23
0x7C140400, // 007B CALL R5 2
0xB8160E00, // 007C GETNGBL R5 K7
0x60180018, // 007D GETGBL R6 G24
0x581C0018, // 007E LDCONST R7 K24
0x88200109, // 007F GETMBR R8 R0 K9
0x5C240800, // 0080 MOVE R9 R4
0x7C180600, // 0081 CALL R6 3
0x581C000A, // 0082 LDCONST R7 K10
0x7C140400, // 0083 CALL R5 2
0x500C0200, // 0084 LDBOOL R3 1 0
0x8C14010B, // 0085 GETMET R5 R0 K11
0x881C0119, // 0086 GETMBR R7 R0 K25
0x8820010D, // 0087 GETMBR R8 R0 K13
0x7C140600, // 0088 CALL R5 3
0x780E0001, // 0089 JMPF R3 #008C
0x8C10011A, // 008A GETMET R4 R0 K26
0x7C100200, // 008B CALL R4 1
0x80000000, // 008C RET 0
})
)
);
@ -419,7 +414,7 @@ be_local_closure(class_Matter_HTTP_remote_device_is_alive, /* name */
extern const bclass be_class_Matter_HTTP_remote;
be_local_closure(class_Matter_HTTP_remote_event_http_finished, /* name */
be_nested_proto(
10, /* nstack */
9, /* nstack */
1, /* argc */
2, /* varg */
0, /* has upvals */
@ -433,9 +428,9 @@ be_local_closure(class_Matter_HTTP_remote_event_http_finished, /* name */
/* K2 */ be_nested_str_weak(nil),
/* K3 */ be_const_int(0),
/* K4 */ be_nested_str_weak(_X2E_X2E_X2E),
/* K5 */ be_nested_str_weak(tasmota),
/* K6 */ be_nested_str_weak(log),
/* K7 */ be_nested_str_weak(MTR_X3A_X20HTTP_X20async_X2Dresp_X20in_X20_X25i_X20ms_X20from_X20_X25s_X3A_X20_X5B_X25i_X5D_X20_X27_X25s_X27),
/* K5 */ be_nested_str_weak(log),
/* K6 */ be_nested_str_weak(MTR_X3A_X20HTTP_X20async_X2Dresp_X20in_X20_X25i_X20ms_X20from_X20_X25s_X3A_X20_X5B_X25i_X5D_X20_X27_X25s_X27),
/* K7 */ be_nested_str_weak(tasmota),
/* K8 */ be_nested_str_weak(millis),
/* K9 */ be_nested_str_weak(time_start),
/* K10 */ be_nested_str_weak(addr),
@ -445,7 +440,7 @@ be_local_closure(class_Matter_HTTP_remote_event_http_finished, /* name */
}),
be_str_weak(event_http_finished),
&be_const_str_solidified,
( &(const binstruction[45]) { /* code */
( &(const binstruction[44]) { /* code */
0x88040100, // 0000 GETMBR R1 R0 K0
0x4C080000, // 0001 LDNIL R2
0x1C040202, // 0002 EQ R1 R1 R2
@ -470,27 +465,26 @@ be_local_closure(class_Matter_HTTP_remote_event_http_finished, /* name */
0x00080504, // 0015 ADD R2 R2 K4
0x5C040400, // 0016 MOVE R1 R2
0xB80A0A00, // 0017 GETNGBL R2 K5
0x8C080506, // 0018 GETMET R2 R2 K6
0x60100018, // 0019 GETGBL R4 G24
0x58140007, // 001A LDCONST R5 K7
0xB81A0A00, // 001B GETNGBL R6 K5
0x8C180D08, // 001C GETMET R6 R6 K8
0x7C180200, // 001D CALL R6 1
0x881C0109, // 001E GETMBR R7 R0 K9
0x04180C07, // 001F SUB R6 R6 R7
0x881C010A, // 0020 GETMBR R7 R0 K10
0x6020000C, // 0021 GETGBL R8 G12
0x88240101, // 0022 GETMBR R9 R0 K1
0x7C200200, // 0023 CALL R8 1
0x5C240200, // 0024 MOVE R9 R1
0x7C100A00, // 0025 CALL R4 5
0x5814000B, // 0026 LDCONST R5 K11
0x7C080600, // 0027 CALL R2 3
0x8C08010C, // 0028 GETMET R2 R0 K12
0x8810010D, // 0029 GETMBR R4 R0 K13
0x88140101, // 002A GETMBR R5 R0 K1
0x7C080600, // 002B CALL R2 3
0x80000000, // 002C RET 0
0x600C0018, // 0018 GETGBL R3 G24
0x58100006, // 0019 LDCONST R4 K6
0xB8160E00, // 001A GETNGBL R5 K7
0x8C140B08, // 001B GETMET R5 R5 K8
0x7C140200, // 001C CALL R5 1
0x88180109, // 001D GETMBR R6 R0 K9
0x04140A06, // 001E SUB R5 R5 R6
0x8818010A, // 001F GETMBR R6 R0 K10
0x601C000C, // 0020 GETGBL R7 G12
0x88200101, // 0021 GETMBR R8 R0 K1
0x7C1C0200, // 0022 CALL R7 1
0x5C200200, // 0023 MOVE R8 R1
0x7C0C0A00, // 0024 CALL R3 5
0x5810000B, // 0025 LDCONST R4 K11
0x7C080400, // 0026 CALL R2 2
0x8C08010C, // 0027 GETMET R2 R0 K12
0x8810010D, // 0028 GETMBR R4 R0 K13
0x88140101, // 0029 GETMBR R5 R0 K1
0x7C080600, // 002A CALL R2 3
0x80000000, // 002B RET 0
})
)
);
@ -503,7 +497,7 @@ be_local_closure(class_Matter_HTTP_remote_event_http_finished, /* name */
extern const bclass be_class_Matter_HTTP_remote;
be_local_closure(class_Matter_HTTP_remote_probe_async, /* name */
be_nested_proto(
12, /* nstack */
11, /* nstack */
2, /* argc */
2, /* varg */
0, /* has upvals */
@ -531,7 +525,7 @@ be_local_closure(class_Matter_HTTP_remote_probe_async, /* name */
}),
be_str_weak(probe_async),
&be_const_str_solidified,
( &(const binstruction[35]) { /* code */
( &(const binstruction[34]) { /* code */
0xA40A0000, // 0000 IMPORT R2 K0
0xA40E0200, // 0001 IMPORT R3 K1
0xB8120400, // 0002 GETNGBL R4 K2
@ -553,20 +547,19 @@ be_local_closure(class_Matter_HTTP_remote_probe_async, /* name */
0x5820000A, // 0012 LDCONST R8 K10
0x7C100800, // 0013 CALL R4 4
0x00120E04, // 0014 ADD R4 K7 R4
0xB8160400, // 0015 GETNGBL R5 K2
0x8C140B0B, // 0016 GETMET R5 R5 K11
0x601C0018, // 0017 GETGBL R7 G24
0x5820000C, // 0018 LDCONST R8 K12
0x8824010D, // 0019 GETMBR R9 R0 K13
0x8828010E, // 001A GETMBR R10 R0 K14
0x5C2C0800, // 001B MOVE R11 R4
0x7C1C0800, // 001C CALL R7 4
0x54220003, // 001D LDINT R8 4
0x7C140600, // 001E CALL R5 3
0x8C14010F, // 001F GETMET R5 R0 K15
0x5C1C0800, // 0020 MOVE R7 R4
0x7C140400, // 0021 CALL R5 2
0x80000000, // 0022 RET 0
0xB8161600, // 0015 GETNGBL R5 K11
0x60180018, // 0016 GETGBL R6 G24
0x581C000C, // 0017 LDCONST R7 K12
0x8820010D, // 0018 GETMBR R8 R0 K13
0x8824010E, // 0019 GETMBR R9 R0 K14
0x5C280800, // 001A MOVE R10 R4
0x7C180800, // 001B CALL R6 4
0x541E0003, // 001C LDINT R7 4
0x7C140400, // 001D CALL R5 2
0x8C14010F, // 001E GETMET R5 R0 K15
0x5C1C0800, // 001F MOVE R7 R4
0x7C140400, // 0020 CALL R5 2
0x80000000, // 0021 RET 0
})
)
);
@ -885,7 +878,7 @@ be_local_closure(class_Matter_HTTP_remote_parse_status_response_and_call_method,
0, /* has sup protos */
&be_class_Matter_HTTP_remote,
1, /* has constants */
( &(const bvalue[12]) { /* constants */
( &(const bvalue[11]) { /* constants */
/* K0 */ be_const_int(0),
/* K1 */ be_nested_str_weak(device_is_alive),
/* K2 */ be_nested_str_weak(string),
@ -894,19 +887,18 @@ be_local_closure(class_Matter_HTTP_remote_parse_status_response_and_call_method,
/* K5 */ be_nested_str_weak(STATUS_PREFIX),
/* K6 */ be_nested_str_weak(contains),
/* K7 */ be_const_int(1),
/* K8 */ be_nested_str_weak(tasmota),
/* K9 */ be_nested_str_weak(log),
/* K10 */ be_nested_str_weak(MTR_X3A_X20_X2A_X2A_X2A_X20failed_X20to_X20parse_X20JSON_X20response_X20payload_X3D_X25s),
/* K11 */ be_const_int(3),
/* K8 */ be_nested_str_weak(log),
/* K9 */ be_nested_str_weak(MTR_X3A_X20_X2A_X2A_X2A_X20failed_X20to_X20parse_X20JSON_X20response_X20payload_X3D_X25s),
/* K10 */ be_const_int(3),
}),
be_str_weak(parse_status_response_and_call_method),
&be_const_str_solidified,
( &(const binstruction[58]) { /* code */
( &(const binstruction[57]) { /* code */
0x4C180000, // 0000 LDNIL R6
0x20180206, // 0001 NE R6 R1 R6
0x781A0035, // 0002 JMPF R6 #0039
0x781A0034, // 0002 JMPF R6 #0038
0x24180300, // 0003 GT R6 R1 K0
0x781A0033, // 0004 JMPF R6 #0039
0x781A0032, // 0004 JMPF R6 #0038
0x8C180101, // 0005 GETMET R6 R0 K1
0x50200200, // 0006 LDBOOL R8 1 0
0x7C180400, // 0007 CALL R6 2
@ -950,16 +942,15 @@ be_local_closure(class_Matter_HTTP_remote_parse_status_response_and_call_method,
0x5C300C00, // 002D MOVE R12 R6
0x5C340E00, // 002E MOVE R13 R7
0x7C280600, // 002F CALL R10 3
0x70020007, // 0030 JMP #0039
0x70020006, // 0030 JMP #0038
0xB8221000, // 0031 GETNGBL R8 K8
0x8C201109, // 0032 GETMET R8 R8 K9
0x60280018, // 0033 GETGBL R10 G24
0x582C000A, // 0034 LDCONST R11 K10
0x5C300400, // 0035 MOVE R12 R2
0x7C280400, // 0036 CALL R10 2
0x582C000B, // 0037 LDCONST R11 K11
0x7C200600, // 0038 CALL R8 3
0x80000000, // 0039 RET 0
0x60240018, // 0032 GETGBL R9 G24
0x58280009, // 0033 LDCONST R10 K9
0x5C2C0400, // 0034 MOVE R11 R2
0x7C240400, // 0035 CALL R9 2
0x5828000A, // 0036 LDCONST R10 K10
0x7C200400, // 0037 CALL R8 2
0x80000000, // 0038 RET 0
})
)
);
@ -972,7 +963,7 @@ be_local_closure(class_Matter_HTTP_remote_parse_status_response_and_call_method,
extern const bclass be_class_Matter_HTTP_remote;
be_local_closure(class_Matter_HTTP_remote_call_sync, /* name */
be_nested_proto(
16, /* nstack */
15, /* nstack */
3, /* argc */
2, /* varg */
0, /* has upvals */
@ -1008,7 +999,7 @@ be_local_closure(class_Matter_HTTP_remote_call_sync, /* name */
}),
be_str_weak(call_sync),
&be_const_str_solidified,
( &(const binstruction[72]) { /* code */
( &(const binstruction[70]) { /* code */
0xA40E0000, // 0000 IMPORT R3 K0
0xA4120200, // 0001 IMPORT R4 K1
0xB8160400, // 0002 GETNGBL R5 K2
@ -1031,56 +1022,54 @@ be_local_closure(class_Matter_HTTP_remote_call_sync, /* name */
0x5824000A, // 0013 LDCONST R9 K10
0x7C140800, // 0014 CALL R5 4
0x00160E05, // 0015 ADD R5 K7 R5
0xB81A0400, // 0016 GETNGBL R6 K2
0x8C180D0B, // 0017 GETMET R6 R6 K11
0x60200018, // 0018 GETGBL R8 G24
0x5824000C, // 0019 LDCONST R9 K12
0x8828010D, // 001A GETMBR R10 R0 K13
0x882C010E, // 001B GETMBR R11 R0 K14
0x5C300A00, // 001C MOVE R12 R5
0x7C200800, // 001D CALL R8 4
0x54260003, // 001E LDINT R9 4
0x7C180600, // 001F CALL R6 3
0x60180003, // 0020 GETGBL R6 G3
0x5C1C0000, // 0021 MOVE R7 R0
0x7C180200, // 0022 CALL R6 1
0x8C180D0F, // 0023 GETMET R6 R6 K15
0x5C200A00, // 0024 MOVE R8 R5
0x5C240400, // 0025 MOVE R9 R2
0x7C180600, // 0026 CALL R6 3
0x781A0001, // 0027 JMPF R6 #002A
0x5C1C0C00, // 0028 MOVE R7 R6
0x70020000, // 0029 JMP #002B
0x581C0010, // 002A LDCONST R7 K16
0x6020000C, // 002B GETGBL R8 G12
0x5C240E00, // 002C MOVE R9 R7
0x7C200200, // 002D CALL R8 1
0x5426001D, // 002E LDINT R9 30
0x24201009, // 002F GT R8 R8 R9
0x78220004, // 0030 JMPF R8 #0036
0x5422001C, // 0031 LDINT R8 29
0x40222208, // 0032 CONNECT R8 K17 R8
0x94200E08, // 0033 GETIDX R8 R7 R8
0x00201112, // 0034 ADD R8 R8 K18
0x5C1C1000, // 0035 MOVE R7 R8
0xB8220400, // 0036 GETNGBL R8 K2
0x8C20110B, // 0037 GETMET R8 R8 K11
0x60280018, // 0038 GETGBL R10 G24
0x582C0013, // 0039 LDCONST R11 K19
0xB8320400, // 003A GETNGBL R12 K2
0x8C301914, // 003B GETMET R12 R12 K20
0x7C300200, // 003C CALL R12 1
0x88340115, // 003D GETMBR R13 R0 K21
0x0430180D, // 003E SUB R12 R12 R13
0x8834010D, // 003F GETMBR R13 R0 K13
0x6038000C, // 0040 GETGBL R14 G12
0x883C0116, // 0041 GETMBR R15 R0 K22
0x7C380200, // 0042 CALL R14 1
0x5C3C0E00, // 0043 MOVE R15 R7
0x7C280A00, // 0044 CALL R10 5
0x582C0017, // 0045 LDCONST R11 K23
0x7C200600, // 0046 CALL R8 3
0x80040C00, // 0047 RET 1 R6
0xB81A1600, // 0016 GETNGBL R6 K11
0x601C0018, // 0017 GETGBL R7 G24
0x5820000C, // 0018 LDCONST R8 K12
0x8824010D, // 0019 GETMBR R9 R0 K13
0x8828010E, // 001A GETMBR R10 R0 K14
0x5C2C0A00, // 001B MOVE R11 R5
0x7C1C0800, // 001C CALL R7 4
0x54220003, // 001D LDINT R8 4
0x7C180400, // 001E CALL R6 2
0x60180003, // 001F GETGBL R6 G3
0x5C1C0000, // 0020 MOVE R7 R0
0x7C180200, // 0021 CALL R6 1
0x8C180D0F, // 0022 GETMET R6 R6 K15
0x5C200A00, // 0023 MOVE R8 R5
0x5C240400, // 0024 MOVE R9 R2
0x7C180600, // 0025 CALL R6 3
0x781A0001, // 0026 JMPF R6 #0029
0x5C1C0C00, // 0027 MOVE R7 R6
0x70020000, // 0028 JMP #002A
0x581C0010, // 0029 LDCONST R7 K16
0x6020000C, // 002A GETGBL R8 G12
0x5C240E00, // 002B MOVE R9 R7
0x7C200200, // 002C CALL R8 1
0x5426001D, // 002D LDINT R9 30
0x24201009, // 002E GT R8 R8 R9
0x78220004, // 002F JMPF R8 #0035
0x5422001C, // 0030 LDINT R8 29
0x40222208, // 0031 CONNECT R8 K17 R8
0x94200E08, // 0032 GETIDX R8 R7 R8
0x00201112, // 0033 ADD R8 R8 K18
0x5C1C1000, // 0034 MOVE R7 R8
0xB8221600, // 0035 GETNGBL R8 K11
0x60240018, // 0036 GETGBL R9 G24
0x58280013, // 0037 LDCONST R10 K19
0xB82E0400, // 0038 GETNGBL R11 K2
0x8C2C1714, // 0039 GETMET R11 R11 K20
0x7C2C0200, // 003A CALL R11 1
0x88300115, // 003B GETMBR R12 R0 K21
0x042C160C, // 003C SUB R11 R11 R12
0x8830010D, // 003D GETMBR R12 R0 K13
0x6034000C, // 003E GETGBL R13 G12
0x88380116, // 003F GETMBR R14 R0 K22
0x7C340200, // 0040 CALL R13 1
0x5C380E00, // 0041 MOVE R14 R7
0x7C240A00, // 0042 CALL R9 5
0x58280017, // 0043 LDCONST R10 K23
0x7C200400, // 0044 CALL R8 2
0x80040C00, // 0045 RET 1 R6
})
)
);
@ -1202,33 +1191,31 @@ be_local_closure(class_Matter_HTTP_remote_event_http_failed, /* name */
0, /* has sup protos */
&be_class_Matter_HTTP_remote,
1, /* has constants */
( &(const bvalue[ 7]) { /* constants */
( &(const bvalue[ 6]) { /* constants */
/* K0 */ be_nested_str_weak(current_cmd),
/* K1 */ be_nested_str_weak(tasmota),
/* K2 */ be_nested_str_weak(log),
/* K3 */ be_nested_str_weak(MTR_X3A_X20HTTP_X20failed),
/* K4 */ be_const_int(3),
/* K5 */ be_nested_str_weak(dispatch_cb),
/* K6 */ be_nested_str_weak(http_status),
/* K1 */ be_nested_str_weak(log),
/* K2 */ be_nested_str_weak(MTR_X3A_X20HTTP_X20failed),
/* K3 */ be_const_int(3),
/* K4 */ be_nested_str_weak(dispatch_cb),
/* K5 */ be_nested_str_weak(http_status),
}),
be_str_weak(event_http_failed),
&be_const_str_solidified,
( &(const binstruction[15]) { /* code */
( &(const binstruction[14]) { /* code */
0x88040100, // 0000 GETMBR R1 R0 K0
0x4C080000, // 0001 LDNIL R2
0x1C040202, // 0002 EQ R1 R1 R2
0x78060000, // 0003 JMPF R1 #0005
0x80000200, // 0004 RET 0
0xB8060200, // 0005 GETNGBL R1 K1
0x8C040302, // 0006 GETMET R1 R1 K2
0x58080002, // 0006 LDCONST R2 K2
0x580C0003, // 0007 LDCONST R3 K3
0x58100004, // 0008 LDCONST R4 K4
0x7C040600, // 0009 CALL R1 3
0x8C040105, // 000A GETMET R1 R0 K5
0x880C0106, // 000B GETMBR R3 R0 K6
0x4C100000, // 000C LDNIL R4
0x7C040600, // 000D CALL R1 3
0x80000000, // 000E RET 0
0x7C040400, // 0008 CALL R1 2
0x8C040104, // 0009 GETMET R1 R0 K4
0x880C0105, // 000A GETMBR R3 R0 K5
0x4C100000, // 000B LDNIL R4
0x7C040600, // 000C CALL R1 3
0x80000000, // 000D RET 0
})
)
);
@ -1270,7 +1257,7 @@ be_local_closure(class_Matter_HTTP_remote_add_async_cb, /* name */
extern const bclass be_class_Matter_HTTP_remote;
be_local_closure(class_Matter_HTTP_remote_event_http_timeout, /* name */
be_nested_proto(
10, /* nstack */
9, /* nstack */
1, /* argc */
2, /* varg */
0, /* has upvals */
@ -1278,44 +1265,42 @@ be_local_closure(class_Matter_HTTP_remote_event_http_timeout, /* name */
0, /* has sup protos */
&be_class_Matter_HTTP_remote,
1, /* has constants */
( &(const bvalue[10]) { /* constants */
( &(const bvalue[ 9]) { /* constants */
/* K0 */ be_nested_str_weak(current_cmd),
/* K1 */ be_nested_str_weak(tasmota),
/* K2 */ be_nested_str_weak(log),
/* K3 */ be_nested_str_weak(MTR_X3A_X20HTTP_X20timeout_X20http_status_X3D_X25i_X20phase_X3D_X25i_X20tcp_status_X3D_X25i_X20size_payload_X3D_X25i),
/* K4 */ be_nested_str_weak(http_status),
/* K5 */ be_nested_str_weak(phase),
/* K6 */ be_nested_str_weak(status),
/* K7 */ be_nested_str_weak(payload),
/* K8 */ be_const_int(3),
/* K9 */ be_nested_str_weak(dispatch_cb),
/* K1 */ be_nested_str_weak(log),
/* K2 */ be_nested_str_weak(MTR_X3A_X20HTTP_X20timeout_X20http_status_X3D_X25i_X20phase_X3D_X25i_X20tcp_status_X3D_X25i_X20size_payload_X3D_X25i),
/* K3 */ be_nested_str_weak(http_status),
/* K4 */ be_nested_str_weak(phase),
/* K5 */ be_nested_str_weak(status),
/* K6 */ be_nested_str_weak(payload),
/* K7 */ be_const_int(3),
/* K8 */ be_nested_str_weak(dispatch_cb),
}),
be_str_weak(event_http_timeout),
&be_const_str_solidified,
( &(const binstruction[23]) { /* code */
( &(const binstruction[22]) { /* code */
0x88040100, // 0000 GETMBR R1 R0 K0
0x4C080000, // 0001 LDNIL R2
0x1C040202, // 0002 EQ R1 R1 R2
0x78060000, // 0003 JMPF R1 #0005
0x80000200, // 0004 RET 0
0xB8060200, // 0005 GETNGBL R1 K1
0x8C040302, // 0006 GETMET R1 R1 K2
0x600C0018, // 0007 GETGBL R3 G24
0x58100003, // 0008 LDCONST R4 K3
0x60080018, // 0006 GETGBL R2 G24
0x580C0002, // 0007 LDCONST R3 K2
0x88100103, // 0008 GETMBR R4 R0 K3
0x88140104, // 0009 GETMBR R5 R0 K4
0x88180105, // 000A GETMBR R6 R0 K5
0x881C0106, // 000B GETMBR R7 R0 K6
0x6020000C, // 000C GETGBL R8 G12
0x88240107, // 000D GETMBR R9 R0 K7
0x7C200200, // 000E CALL R8 1
0x7C0C0A00, // 000F CALL R3 5
0x58100008, // 0010 LDCONST R4 K8
0x7C040600, // 0011 CALL R1 3
0x8C040109, // 0012 GETMET R1 R0 K9
0x880C0104, // 0013 GETMBR R3 R0 K4
0x4C100000, // 0014 LDNIL R4
0x7C040600, // 0015 CALL R1 3
0x80000000, // 0016 RET 0
0x601C000C, // 000B GETGBL R7 G12
0x88200106, // 000C GETMBR R8 R0 K6
0x7C1C0200, // 000D CALL R7 1
0x7C080A00, // 000E CALL R2 5
0x580C0007, // 000F LDCONST R3 K7
0x7C040400, // 0010 CALL R1 2
0x8C040108, // 0011 GETMET R1 R0 K8
0x880C0103, // 0012 GETMBR R3 R0 K3
0x4C100000, // 0013 LDNIL R4
0x7C040600, // 0014 CALL R1 3
0x80000000, // 0015 RET 0
})
)
);

File diff suppressed because it is too large Load Diff

View File

@ -74,7 +74,7 @@ be_local_closure(class_Matter_IM_Message_get_exchangeid, /* name */
extern const bclass be_class_Matter_IM_Message;
be_local_closure(class_Matter_IM_Message_send_im, /* name */
be_nested_proto(
13, /* nstack */
12, /* nstack */
2, /* argc */
2, /* varg */
0, /* has upvals */
@ -105,7 +105,7 @@ be_local_closure(class_Matter_IM_Message_send_im, /* name */
}),
be_str_weak(send_im),
&be_const_str_solidified,
( &(const binstruction[40]) { /* code */
( &(const binstruction[39]) { /* code */
0x88080100, // 0000 GETMBR R2 R0 K0
0x740A0001, // 0001 JMPT R2 #0004
0x50080000, // 0002 LDBOOL R2 0 0
@ -125,27 +125,26 @@ be_local_closure(class_Matter_IM_Message_send_im, /* name */
0x8C140B08, // 0010 GETMET R5 R5 K8
0x541E0003, // 0011 LDINT R7 4
0x7C140400, // 0012 CALL R5 2
0x7816000B, // 0013 JMPF R5 #0020
0xB8160E00, // 0014 GETNGBL R5 K7
0x8C140B09, // 0015 GETMET R5 R5 K9
0x601C0018, // 0016 GETGBL R7 G24
0x5820000A, // 0017 LDCONST R8 K10
0x8824050B, // 0018 GETMBR R9 R2 K11
0x8824130C, // 0019 GETMBR R9 R9 K12
0x8828050D, // 001A GETMBR R10 R2 K13
0x882C050E, // 001B GETMBR R11 R2 K14
0x8830050F, // 001C GETMBR R12 R2 K15
0x7C1C0A00, // 001D CALL R7 5
0x54220003, // 001E LDINT R8 4
0x7C140600, // 001F CALL R5 3
0x8C140310, // 0020 GETMET R5 R1 K16
0x5C1C0400, // 0021 MOVE R7 R2
0x7C140400, // 0022 CALL R5 2
0x8814050D, // 0023 GETMBR R5 R2 K13
0x90022205, // 0024 SETMBR R0 K17 R5
0x50140200, // 0025 LDBOOL R5 1 0
0x90022405, // 0026 SETMBR R0 K18 R5
0x80000000, // 0027 RET 0
0x7816000A, // 0013 JMPF R5 #001F
0xB8161200, // 0014 GETNGBL R5 K9
0x60180018, // 0015 GETGBL R6 G24
0x581C000A, // 0016 LDCONST R7 K10
0x8820050B, // 0017 GETMBR R8 R2 K11
0x8820110C, // 0018 GETMBR R8 R8 K12
0x8824050D, // 0019 GETMBR R9 R2 K13
0x8828050E, // 001A GETMBR R10 R2 K14
0x882C050F, // 001B GETMBR R11 R2 K15
0x7C180A00, // 001C CALL R6 5
0x541E0003, // 001D LDINT R7 4
0x7C140400, // 001E CALL R5 2
0x8C140310, // 001F GETMET R5 R1 K16
0x5C1C0400, // 0020 MOVE R7 R2
0x7C140400, // 0021 CALL R5 2
0x8814050D, // 0022 GETMBR R5 R2 K13
0x90022205, // 0023 SETMBR R0 K17 R5
0x50140200, // 0024 LDBOOL R5 1 0
0x90022405, // 0025 SETMBR R0 K18 R5
0x80000000, // 0026 RET 0
})
)
);
@ -763,7 +762,7 @@ be_local_closure(class_Matter_IM_ReportDataSubscribed_ack_received, /* name */
extern const bclass be_class_Matter_IM_ReportDataSubscribed;
be_local_closure(class_Matter_IM_ReportDataSubscribed_send_im, /* name */
be_nested_proto(
10, /* nstack */
9, /* nstack */
2, /* argc */
2, /* varg */
0, /* has upvals */
@ -796,7 +795,7 @@ be_local_closure(class_Matter_IM_ReportDataSubscribed_send_im, /* name */
}),
be_str_weak(send_im),
&be_const_str_solidified,
( &(const binstruction[74]) { /* code */
( &(const binstruction[73]) { /* code */
0x88080100, // 0000 GETMBR R2 R0 K0
0x740A0001, // 0001 JMPT R2 #0004
0x50080000, // 0002 LDBOOL R2 0 0
@ -806,7 +805,7 @@ be_local_closure(class_Matter_IM_ReportDataSubscribed_send_im, /* name */
0x880C0702, // 0006 GETMBR R3 R3 K2
0x7C080200, // 0007 CALL R2 1
0x24080503, // 0008 GT R2 R2 K3
0x780A0031, // 0009 JMPF R2 #003C
0x780A0030, // 0009 JMPF R2 #003B
0x88080104, // 000A GETMBR R2 R0 K4
0x780A000F, // 000B JMPF R2 #001C
0x60080003, // 000C GETGBL R2 G3
@ -824,7 +823,7 @@ be_local_closure(class_Matter_IM_ReportDataSubscribed_send_im, /* name */
0x90020002, // 0018 SETMBR R0 K0 R2
0x50080000, // 0019 LDBOOL R2 0 0
0x90020C02, // 001A SETMBR R0 K6 R2
0x7002001E, // 001B JMP #003B
0x7002001D, // 001B JMP #003A
0x88080107, // 001C GETMBR R2 R0 K7
0x8C080508, // 001D GETMET R2 R2 K8
0x50100000, // 001E LDBOOL R4 0 0
@ -837,40 +836,39 @@ be_local_closure(class_Matter_IM_ReportDataSubscribed_send_im, /* name */
0x8C0C070C, // 0025 GETMET R3 R3 K12
0x54160003, // 0026 LDINT R5 4
0x7C0C0400, // 0027 CALL R3 2
0x780E000A, // 0028 JMPF R3 #0034
0xB80E1600, // 0029 GETNGBL R3 K11
0x8C0C070D, // 002A GETMET R3 R3 K13
0x60140018, // 002B GETGBL R5 G24
0x5818000E, // 002C LDCONST R6 K14
0x881C050F, // 002D GETMBR R7 R2 K15
0x881C0F10, // 002E GETMBR R7 R7 K16
0x88200511, // 002F GETMBR R8 R2 K17
0x88240512, // 0030 GETMBR R9 R2 K18
0x7C140800, // 0031 CALL R5 4
0x541A0003, // 0032 LDINT R6 4
0x7C0C0600, // 0033 CALL R3 3
0x8C0C0313, // 0034 GETMET R3 R1 K19
0x5C140400, // 0035 MOVE R5 R2
0x7C0C0400, // 0036 CALL R3 2
0x880C0512, // 0037 GETMBR R3 R2 K18
0x90022803, // 0038 SETMBR R0 K20 R3
0x500C0200, // 0039 LDBOOL R3 1 0
0x90020C03, // 003A SETMBR R0 K6 R3
0x7002000C, // 003B JMP #0049
0x88080104, // 003C GETMBR R2 R0 K4
0x780A0008, // 003D JMPF R2 #0047
0x60080003, // 003E GETGBL R2 G3
0x5C0C0000, // 003F MOVE R3 R0
0x7C080200, // 0040 CALL R2 1
0x8C080505, // 0041 GETMET R2 R2 K5
0x5C100200, // 0042 MOVE R4 R1
0x7C080400, // 0043 CALL R2 2
0x50080000, // 0044 LDBOOL R2 0 0
0x90020802, // 0045 SETMBR R0 K4 R2
0x70020001, // 0046 JMP #0049
0x50080200, // 0047 LDBOOL R2 1 0
0x90020C02, // 0048 SETMBR R0 K6 R2
0x80000000, // 0049 RET 0
0x780E0009, // 0028 JMPF R3 #0033
0xB80E1A00, // 0029 GETNGBL R3 K13
0x60100018, // 002A GETGBL R4 G24
0x5814000E, // 002B LDCONST R5 K14
0x8818050F, // 002C GETMBR R6 R2 K15
0x88180D10, // 002D GETMBR R6 R6 K16
0x881C0511, // 002E GETMBR R7 R2 K17
0x88200512, // 002F GETMBR R8 R2 K18
0x7C100800, // 0030 CALL R4 4
0x54160003, // 0031 LDINT R5 4
0x7C0C0400, // 0032 CALL R3 2
0x8C0C0313, // 0033 GETMET R3 R1 K19
0x5C140400, // 0034 MOVE R5 R2
0x7C0C0400, // 0035 CALL R3 2
0x880C0512, // 0036 GETMBR R3 R2 K18
0x90022803, // 0037 SETMBR R0 K20 R3
0x500C0200, // 0038 LDBOOL R3 1 0
0x90020C03, // 0039 SETMBR R0 K6 R3
0x7002000C, // 003A JMP #0048
0x88080104, // 003B GETMBR R2 R0 K4
0x780A0008, // 003C JMPF R2 #0046
0x60080003, // 003D GETGBL R2 G3
0x5C0C0000, // 003E MOVE R3 R0
0x7C080200, // 003F CALL R2 1
0x8C080505, // 0040 GETMET R2 R2 K5
0x5C100200, // 0041 MOVE R4 R1
0x7C080400, // 0042 CALL R2 2
0x50080000, // 0043 LDBOOL R2 0 0
0x90020802, // 0044 SETMBR R0 K4 R2
0x70020001, // 0045 JMP #0048
0x50080200, // 0046 LDBOOL R2 1 0
0x90020C02, // 0047 SETMBR R0 K6 R2
0x80000000, // 0048 RET 0
})
)
);
@ -1361,7 +1359,7 @@ be_local_closure(class_Matter_IM_SubscribeResponse_init, /* name */
extern const bclass be_class_Matter_IM_SubscribeResponse;
be_local_closure(class_Matter_IM_SubscribeResponse_status_ok_received, /* name */
be_nested_proto(
8, /* nstack */
7, /* nstack */
2, /* argc */
2, /* varg */
0, /* has upvals */
@ -1383,30 +1381,29 @@ be_local_closure(class_Matter_IM_SubscribeResponse_status_ok_received, /* name
}),
be_str_weak(status_ok_received),
&be_const_str_solidified,
( &(const binstruction[23]) { /* code */
( &(const binstruction[22]) { /* code */
0xB80A0000, // 0000 GETNGBL R2 K0
0x8C080501, // 0001 GETMET R2 R2 K1
0x58100002, // 0002 LDCONST R4 K2
0x7C080400, // 0003 CALL R2 2
0x780A000A, // 0004 JMPF R2 #0010
0xB80A0000, // 0005 GETNGBL R2 K0
0x8C080503, // 0006 GETMET R2 R2 K3
0x60100018, // 0007 GETGBL R4 G24
0x58140004, // 0008 LDCONST R5 K4
0x88180305, // 0009 GETMBR R6 R1 K5
0x88180D06, // 000A GETMBR R6 R6 K6
0x881C0107, // 000B GETMBR R7 R0 K7
0x881C0F08, // 000C GETMBR R7 R7 K8
0x7C100600, // 000D CALL R4 3
0x58140002, // 000E LDCONST R5 K2
0x7C080600, // 000F CALL R2 3
0x60080003, // 0010 GETGBL R2 G3
0x5C0C0000, // 0011 MOVE R3 R0
0x7C080200, // 0012 CALL R2 1
0x8C080509, // 0013 GETMET R2 R2 K9
0x5C100200, // 0014 MOVE R4 R1
0x7C080400, // 0015 CALL R2 2
0x80040400, // 0016 RET 1 R2
0x780A0009, // 0004 JMPF R2 #000F
0xB80A0600, // 0005 GETNGBL R2 K3
0x600C0018, // 0006 GETGBL R3 G24
0x58100004, // 0007 LDCONST R4 K4
0x88140305, // 0008 GETMBR R5 R1 K5
0x88140B06, // 0009 GETMBR R5 R5 K6
0x88180107, // 000A GETMBR R6 R0 K7
0x88180D08, // 000B GETMBR R6 R6 K8
0x7C0C0600, // 000C CALL R3 3
0x58100002, // 000D LDCONST R4 K2
0x7C080400, // 000E CALL R2 2
0x60080003, // 000F GETGBL R2 G3
0x5C0C0000, // 0010 MOVE R3 R0
0x7C080200, // 0011 CALL R2 1
0x8C080509, // 0012 GETMET R2 R2 K9
0x5C100200, // 0013 MOVE R4 R1
0x7C080400, // 0014 CALL R2 2
0x80040400, // 0015 RET 1 R2
})
)
);

View File

@ -180,7 +180,7 @@ be_local_closure(class_Matter_IM_Subscription__add_attribute_unique_path, /* n
extern const bclass be_class_Matter_IM_Subscription;
be_local_closure(class_Matter_IM_Subscription_remove_self, /* name */
be_nested_proto(
5, /* nstack */
4, /* nstack */
1, /* argc */
2, /* varg */
0, /* has upvals */
@ -188,31 +188,29 @@ be_local_closure(class_Matter_IM_Subscription_remove_self, /* name */
0, /* has sup protos */
&be_class_Matter_IM_Subscription,
1, /* has constants */
( &(const bvalue[ 7]) { /* constants */
/* K0 */ be_nested_str_weak(tasmota),
/* K1 */ be_nested_str_weak(log),
/* K2 */ be_nested_str_weak(MTR_X3A_X20_X2DSub_Del_X20_X20_X20_X28_X20_X20_X20_X20_X20_X20_X29_X20sub_X3D),
/* K3 */ be_nested_str_weak(subscription_id),
/* K4 */ be_const_int(3),
/* K5 */ be_nested_str_weak(subs_shop),
/* K6 */ be_nested_str_weak(remove_sub),
( &(const bvalue[ 6]) { /* constants */
/* K0 */ be_nested_str_weak(log),
/* K1 */ be_nested_str_weak(MTR_X3A_X20_X2DSub_Del_X20_X20_X20_X28_X20_X20_X20_X20_X20_X20_X29_X20sub_X3D),
/* K2 */ be_nested_str_weak(subscription_id),
/* K3 */ be_const_int(3),
/* K4 */ be_nested_str_weak(subs_shop),
/* K5 */ be_nested_str_weak(remove_sub),
}),
be_str_weak(remove_self),
&be_const_str_solidified,
( &(const binstruction[13]) { /* code */
( &(const binstruction[12]) { /* code */
0xB8060000, // 0000 GETNGBL R1 K0
0x8C040301, // 0001 GETMET R1 R1 K1
0x600C0008, // 0002 GETGBL R3 G8
0x88100103, // 0003 GETMBR R4 R0 K3
0x7C0C0200, // 0004 CALL R3 1
0x000E0403, // 0005 ADD R3 K2 R3
0x58100004, // 0006 LDCONST R4 K4
0x7C040600, // 0007 CALL R1 3
0x88040105, // 0008 GETMBR R1 R0 K5
0x8C040306, // 0009 GETMET R1 R1 K6
0x5C0C0000, // 000A MOVE R3 R0
0x7C040400, // 000B CALL R1 2
0x80000000, // 000C RET 0
0x60080008, // 0001 GETGBL R2 G8
0x880C0102, // 0002 GETMBR R3 R0 K2
0x7C080200, // 0003 CALL R2 1
0x000A0202, // 0004 ADD R2 K1 R2
0x580C0003, // 0005 LDCONST R3 K3
0x7C040400, // 0006 CALL R1 2
0x88040104, // 0007 GETMBR R1 R0 K4
0x8C040305, // 0008 GETMET R1 R1 K5
0x5C0C0000, // 0009 MOVE R3 R0
0x7C040400, // 000A CALL R1 2
0x80000000, // 000B RET 0
})
)
);
@ -329,7 +327,7 @@ be_local_closure(class_Matter_IM_Subscription_attribute_updated_ctx, /* name *
extern const bclass be_class_Matter_IM_Subscription;
be_local_closure(class_Matter_IM_Subscription_re_arm, /* name */
be_nested_proto(
7, /* nstack */
6, /* nstack */
1, /* argc */
2, /* varg */
0, /* has upvals */
@ -355,7 +353,7 @@ be_local_closure(class_Matter_IM_Subscription_re_arm, /* name */
}),
be_str_weak(re_arm),
&be_const_str_solidified,
( &(const binstruction[29]) { /* code */
( &(const binstruction[28]) { /* code */
0x50040000, // 0000 LDBOOL R1 0 0
0x90020001, // 0001 SETMBR R0 K0 R1
0xB8060200, // 0002 GETNGBL R1 K1
@ -375,16 +373,15 @@ be_local_closure(class_Matter_IM_Subscription_re_arm, /* name */
0x04080508, // 0010 SUB R2 R2 K8
0x90020C02, // 0011 SETMBR R0 K6 R2
0x88080109, // 0012 GETMBR R2 R0 K9
0x740A0007, // 0013 JMPT R2 #001C
0xB80A0200, // 0014 GETNGBL R2 K1
0x8C08050A, // 0015 GETMET R2 R2 K10
0x60100018, // 0016 GETGBL R4 G24
0x5814000B, // 0017 LDCONST R5 K11
0x8818010C, // 0018 GETMBR R6 R0 K12
0x7C100400, // 0019 CALL R4 2
0x5814000D, // 001A LDCONST R5 K13
0x7C080600, // 001B CALL R2 3
0x80000000, // 001C RET 0
0x740A0006, // 0013 JMPT R2 #001B
0xB80A1400, // 0014 GETNGBL R2 K10
0x600C0018, // 0015 GETGBL R3 G24
0x5810000B, // 0016 LDCONST R4 K11
0x8814010C, // 0017 GETMBR R5 R0 K12
0x7C0C0400, // 0018 CALL R3 2
0x5810000D, // 0019 LDCONST R4 K13
0x7C080400, // 001A CALL R2 2
0x80000000, // 001B RET 0
})
)
);

View File

@ -458,7 +458,7 @@ be_local_closure(class_Matter_Frame_build_standalone_ack, /* name */
extern const bclass be_class_Matter_Frame;
be_local_closure(class_Matter_Frame_build_response, /* name */
be_nested_proto(
11, /* nstack */
10, /* nstack */
4, /* argc */
2, /* varg */
0, /* has upvals */
@ -466,7 +466,7 @@ be_local_closure(class_Matter_Frame_build_response, /* name */
0, /* has sup protos */
&be_class_Matter_Frame,
1, /* has constants */
( &(const bvalue[30]) { /* constants */
( &(const bvalue[29]) { /* constants */
/* K0 */ be_nested_str_weak(message_handler),
/* K1 */ be_nested_str_weak(remote_ip),
/* K2 */ be_nested_str_weak(remote_port),
@ -493,14 +493,13 @@ be_local_closure(class_Matter_Frame_build_response, /* name */
/* K23 */ be_nested_str_weak(matter),
/* K24 */ be_nested_str_weak(get_opcode_name),
/* K25 */ be_nested_str_weak(0x_X2502X),
/* K26 */ be_nested_str_weak(tasmota),
/* K27 */ be_nested_str_weak(log),
/* K28 */ be_nested_str_weak(MTR_X3A_X20_X3CReplied_X20_X20_X20_X28_X256i_X29_X20_X25s),
/* K29 */ be_const_int(3),
/* K26 */ be_nested_str_weak(log),
/* K27 */ be_nested_str_weak(MTR_X3A_X20_X3CReplied_X20_X20_X20_X28_X256i_X29_X20_X25s),
/* K28 */ be_const_int(3),
}),
be_str_weak(build_response),
&be_const_str_solidified,
( &(const binstruction[91]) { /* code */
( &(const binstruction[90]) { /* code */
0x4C100000, // 0000 LDNIL R4
0x1C100604, // 0001 EQ R4 R3 R4
0x78120005, // 0002 JMPF R4 #0009
@ -569,7 +568,7 @@ be_local_closure(class_Matter_Frame_build_response, /* name */
0x900E2804, // 0041 SETMBR R3 K20 R4
0x8810070A, // 0042 GETMBR R4 R3 K10
0x1C100908, // 0043 EQ R4 R4 K8
0x78120014, // 0044 JMPF R4 #005A
0x78120013, // 0044 JMPF R4 #0059
0xB8122E00, // 0045 GETNGBL R4 K23
0x8C100918, // 0046 GETMET R4 R4 K24
0x88180711, // 0047 GETMBR R6 R3 K17
@ -582,16 +581,15 @@ be_local_closure(class_Matter_Frame_build_response, /* name */
0x7C140400, // 004E CALL R5 2
0x5C100A00, // 004F MOVE R4 R5
0xB8163400, // 0050 GETNGBL R5 K26
0x8C140B1B, // 0051 GETMET R5 R5 K27
0x601C0018, // 0052 GETGBL R7 G24
0x5820001C, // 0053 LDCONST R8 K28
0x88240709, // 0054 GETMBR R9 R3 K9
0x8824130A, // 0055 GETMBR R9 R9 K10
0x5C280800, // 0056 MOVE R10 R4
0x7C1C0600, // 0057 CALL R7 3
0x5820001D, // 0058 LDCONST R8 K29
0x7C140600, // 0059 CALL R5 3
0x80040600, // 005A RET 1 R3
0x60180018, // 0051 GETGBL R6 G24
0x581C001B, // 0052 LDCONST R7 K27
0x88200709, // 0053 GETMBR R8 R3 K9
0x8820110A, // 0054 GETMBR R8 R8 K10
0x5C240800, // 0055 MOVE R9 R4
0x7C180600, // 0056 CALL R6 3
0x581C001C, // 0057 LDCONST R7 K28
0x7C140400, // 0058 CALL R5 2
0x80040600, // 0059 RET 1 R3
})
)
);
@ -1044,41 +1042,40 @@ be_local_closure(class_Matter_Frame_decrypt, /* name */
0, /* has sup protos */
&be_class_Matter_Frame,
1, /* has constants */
( &(const bvalue[30]) { /* constants */
( &(const bvalue[29]) { /* constants */
/* K0 */ be_nested_str_weak(crypto),
/* K1 */ be_nested_str_weak(session),
/* K2 */ be_nested_str_weak(raw),
/* K3 */ be_nested_str_weak(payload_idx),
/* K4 */ be_nested_str_weak(get_i2r),
/* K5 */ be_nested_str_weak(sec_p),
/* K6 */ be_nested_str_weak(tasmota),
/* K7 */ be_nested_str_weak(log),
/* K8 */ be_nested_str_weak(MTR_X3A_X20_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X20Compute_X20Privacy_X20TODO),
/* K9 */ be_const_int(2),
/* K10 */ be_nested_str_weak(get_i2r_privacy),
/* K11 */ be_const_int(2147483647),
/* K12 */ be_nested_str_weak(add),
/* K13 */ be_nested_str_weak(local_session_id),
/* K14 */ be_const_int(1),
/* K15 */ be_nested_str_weak(AES_CTR),
/* K16 */ be_nested_str_weak(decrypt),
/* K17 */ be_const_int(0),
/* K18 */ be_const_int(3),
/* K19 */ be_nested_str_weak(message_handler),
/* K20 */ be_nested_str_weak(_n_bytes),
/* K21 */ be_nested_str_weak(clear),
/* K22 */ be_nested_str_weak(flags),
/* K23 */ be_nested_str_weak(message_counter),
/* K24 */ be_nested_str_weak(source_node_id),
/* K25 */ be_nested_str_weak(peer_node_id),
/* K26 */ be_nested_str_weak(resize),
/* K27 */ be_nested_str_weak(AES_CCM),
/* K28 */ be_nested_str_weak(decrypt1),
/* K29 */ be_nested_str_weak(MTR_X3A_X20rejected_X20packet_X20due_X20to_X20invalid_X20MIC),
/* K6 */ be_nested_str_weak(log),
/* K7 */ be_nested_str_weak(MTR_X3A_X20_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X3E_X20Compute_X20Privacy_X20TODO),
/* K8 */ be_const_int(2),
/* K9 */ be_nested_str_weak(get_i2r_privacy),
/* K10 */ be_const_int(2147483647),
/* K11 */ be_nested_str_weak(add),
/* K12 */ be_nested_str_weak(local_session_id),
/* K13 */ be_const_int(1),
/* K14 */ be_nested_str_weak(AES_CTR),
/* K15 */ be_nested_str_weak(decrypt),
/* K16 */ be_const_int(0),
/* K17 */ be_const_int(3),
/* K18 */ be_nested_str_weak(message_handler),
/* K19 */ be_nested_str_weak(_n_bytes),
/* K20 */ be_nested_str_weak(clear),
/* K21 */ be_nested_str_weak(flags),
/* K22 */ be_nested_str_weak(message_counter),
/* K23 */ be_nested_str_weak(source_node_id),
/* K24 */ be_nested_str_weak(peer_node_id),
/* K25 */ be_nested_str_weak(resize),
/* K26 */ be_nested_str_weak(AES_CCM),
/* K27 */ be_nested_str_weak(decrypt1),
/* K28 */ be_nested_str_weak(MTR_X3A_X20rejected_X20packet_X20due_X20to_X20invalid_X20MIC),
}),
be_str_weak(decrypt),
&be_const_str_solidified,
( &(const binstruction[117]) { /* code */
( &(const binstruction[115]) { /* code */
0xA4060000, // 0000 IMPORT R1 K0
0x88080101, // 0001 GETMBR R2 R0 K1
0x880C0102, // 0002 GETMBR R3 R0 K2
@ -1087,115 +1084,113 @@ be_local_closure(class_Matter_Frame_decrypt, /* name */
0x8C180504, // 0005 GETMET R6 R2 K4
0x7C180200, // 0006 CALL R6 1
0x881C0105, // 0007 GETMBR R7 R0 K5
0x781E002C, // 0008 JMPF R7 #0036
0x781E002B, // 0008 JMPF R7 #0035
0xB81E0C00, // 0009 GETNGBL R7 K6
0x8C1C0F07, // 000A GETMET R7 R7 K7
0x58200007, // 000A LDCONST R8 K7
0x58240008, // 000B LDCONST R9 K8
0x58280009, // 000C LDCONST R10 K9
0x7C1C0600, // 000D CALL R7 3
0x8C1C050A, // 000E GETMET R7 R2 K10
0x7C1C0200, // 000F CALL R7 1
0x5421FFEF, // 0010 LDINT R8 -16
0x4020110B, // 0011 CONNECT R8 R8 K11
0x94200608, // 0012 GETIDX R8 R3 R8
0x60240015, // 0013 GETGBL R9 G21
0x7C240000, // 0014 CALL R9 0
0x8C24130C, // 0015 GETMET R9 R9 K12
0x882C010D, // 0016 GETMBR R11 R0 K13
0x5431FFFD, // 0017 LDINT R12 -2
0x7C240600, // 0018 CALL R9 3
0x542A0004, // 0019 LDINT R10 5
0x542E000E, // 001A LDINT R11 15
0x4028140B, // 001B CONNECT R10 R10 R11
0x9428100A, // 001C GETIDX R10 R8 R10
0x0024120A, // 001D ADD R9 R9 R10
0x542A0003, // 001E LDINT R10 4
0x882C0103, // 001F GETMBR R11 R0 K3
0x042C170E, // 0020 SUB R11 R11 K14
0x4028140B, // 0021 CONNECT R10 R10 R11
0x882C0102, // 0022 GETMBR R11 R0 K2
0x9428160A, // 0023 GETIDX R10 R11 R10
0x8C30030F, // 0024 GETMET R12 R1 K15
0x5C380E00, // 0025 MOVE R14 R7
0x7C300400, // 0026 CALL R12 2
0x8C301910, // 0027 GETMET R12 R12 K16
0x5C381400, // 0028 MOVE R14 R10
0x5C3C1200, // 0029 MOVE R15 R9
0x58400009, // 002A LDCONST R16 K9
0x7C300800, // 002B CALL R12 4
0x5C2C1800, // 002C MOVE R11 R12
0x40322312, // 002D CONNECT R12 K17 K18
0x88340102, // 002E GETMBR R13 R0 K2
0x94301A0C, // 002F GETIDX R12 R13 R12
0x0030180B, // 0030 ADD R12 R12 R11
0x88340103, // 0031 GETMBR R13 R0 K3
0x40341B0B, // 0032 CONNECT R13 R13 K11
0x9434140D, // 0033 GETIDX R13 R10 R13
0x0030180D, // 0034 ADD R12 R12 R13
0x9002040C, // 0035 SETMBR R0 K2 R12
0x881C0113, // 0036 GETMBR R7 R0 K19
0x881C0F14, // 0037 GETMBR R7 R7 K20
0x8C200F15, // 0038 GETMET R8 R7 K21
0x7C200200, // 0039 CALL R8 1
0x8C200F0C, // 003A GETMET R8 R7 K12
0x88280116, // 003B GETMBR R10 R0 K22
0x582C000E, // 003C LDCONST R11 K14
0x7C200600, // 003D CALL R8 3
0x8C200F0C, // 003E GETMET R8 R7 K12
0x88280117, // 003F GETMBR R10 R0 K23
0x542E0003, // 0040 LDINT R11 4
0x7C200600, // 0041 CALL R8 3
0x88200118, // 0042 GETMBR R8 R0 K24
0x78220002, // 0043 JMPF R8 #0047
0x88200118, // 0044 GETMBR R8 R0 K24
0x40200E08, // 0045 CONNECT R8 R7 R8
0x70020006, // 0046 JMP #004E
0x88200519, // 0047 GETMBR R8 R2 K25
0x78220001, // 0048 JMPF R8 #004B
0x88200519, // 0049 GETMBR R8 R2 K25
0x40200E08, // 004A CONNECT R8 R7 R8
0x8C200F1A, // 004B GETMET R8 R7 K26
0x542A000C, // 004C LDINT R10 13
0x7C200400, // 004D CALL R8 2
0x8820031B, // 004E GETMBR R8 R1 K27
0x8C20111C, // 004F GETMET R8 R8 K28
0x5C280C00, // 0050 MOVE R10 R6
0x5C2C0E00, // 0051 MOVE R11 R7
0x58300011, // 0052 LDCONST R12 K17
0x6034000C, // 0053 GETGBL R13 G12
0x5C380E00, // 0054 MOVE R14 R7
0x7C340200, // 0055 CALL R13 1
0x5C380600, // 0056 MOVE R14 R3
0x583C0011, // 0057 LDCONST R15 K17
0x5C400800, // 0058 MOVE R16 R4
0x5C440600, // 0059 MOVE R17 R3
0x5C480800, // 005A MOVE R18 R4
0x604C000C, // 005B GETGBL R19 G12
0x5C500600, // 005C MOVE R20 R3
0x7C4C0200, // 005D CALL R19 1
0x044C2604, // 005E SUB R19 R19 R4
0x044C2605, // 005F SUB R19 R19 R5
0x5C500600, // 0060 MOVE R20 R3
0x6054000C, // 0061 GETGBL R21 G12
0x5C580600, // 0062 MOVE R22 R3
0x7C540200, // 0063 CALL R21 1
0x04542A05, // 0064 SUB R21 R21 R5
0x5C580A00, // 0065 MOVE R22 R5
0x7C201C00, // 0066 CALL R8 14
0x78220006, // 0067 JMPF R8 #006F
0x8C24071A, // 0068 GETMET R9 R3 K26
0x602C000C, // 0069 GETGBL R11 G12
0x5C300600, // 006A MOVE R12 R3
0x7C2C0200, // 006B CALL R11 1
0x042C1605, // 006C SUB R11 R11 R5
0x7C240400, // 006D CALL R9 2
0x70020004, // 006E JMP #0074
0xB8260C00, // 006F GETNGBL R9 K6
0x8C241307, // 0070 GETMET R9 R9 K7
0x582C001D, // 0071 LDCONST R11 K29
0x58300012, // 0072 LDCONST R12 K18
0x7C240600, // 0073 CALL R9 3
0x80041000, // 0074 RET 1 R8
0x7C1C0400, // 000C CALL R7 2
0x8C1C0509, // 000D GETMET R7 R2 K9
0x7C1C0200, // 000E CALL R7 1
0x5421FFEF, // 000F LDINT R8 -16
0x4020110A, // 0010 CONNECT R8 R8 K10
0x94200608, // 0011 GETIDX R8 R3 R8
0x60240015, // 0012 GETGBL R9 G21
0x7C240000, // 0013 CALL R9 0
0x8C24130B, // 0014 GETMET R9 R9 K11
0x882C010C, // 0015 GETMBR R11 R0 K12
0x5431FFFD, // 0016 LDINT R12 -2
0x7C240600, // 0017 CALL R9 3
0x542A0004, // 0018 LDINT R10 5
0x542E000E, // 0019 LDINT R11 15
0x4028140B, // 001A CONNECT R10 R10 R11
0x9428100A, // 001B GETIDX R10 R8 R10
0x0024120A, // 001C ADD R9 R9 R10
0x542A0003, // 001D LDINT R10 4
0x882C0103, // 001E GETMBR R11 R0 K3
0x042C170D, // 001F SUB R11 R11 K13
0x4028140B, // 0020 CONNECT R10 R10 R11
0x882C0102, // 0021 GETMBR R11 R0 K2
0x9428160A, // 0022 GETIDX R10 R11 R10
0x8C30030E, // 0023 GETMET R12 R1 K14
0x5C380E00, // 0024 MOVE R14 R7
0x7C300400, // 0025 CALL R12 2
0x8C30190F, // 0026 GETMET R12 R12 K15
0x5C381400, // 0027 MOVE R14 R10
0x5C3C1200, // 0028 MOVE R15 R9
0x58400008, // 0029 LDCONST R16 K8
0x7C300800, // 002A CALL R12 4
0x5C2C1800, // 002B MOVE R11 R12
0x40322111, // 002C CONNECT R12 K16 K17
0x88340102, // 002D GETMBR R13 R0 K2
0x94301A0C, // 002E GETIDX R12 R13 R12
0x0030180B, // 002F ADD R12 R12 R11
0x88340103, // 0030 GETMBR R13 R0 K3
0x40341B0A, // 0031 CONNECT R13 R13 K10
0x9434140D, // 0032 GETIDX R13 R10 R13
0x0030180D, // 0033 ADD R12 R12 R13
0x9002040C, // 0034 SETMBR R0 K2 R12
0x881C0112, // 0035 GETMBR R7 R0 K18
0x881C0F13, // 0036 GETMBR R7 R7 K19
0x8C200F14, // 0037 GETMET R8 R7 K20
0x7C200200, // 0038 CALL R8 1
0x8C200F0B, // 0039 GETMET R8 R7 K11
0x88280115, // 003A GETMBR R10 R0 K21
0x582C000D, // 003B LDCONST R11 K13
0x7C200600, // 003C CALL R8 3
0x8C200F0B, // 003D GETMET R8 R7 K11
0x88280116, // 003E GETMBR R10 R0 K22
0x542E0003, // 003F LDINT R11 4
0x7C200600, // 0040 CALL R8 3
0x88200117, // 0041 GETMBR R8 R0 K23
0x78220002, // 0042 JMPF R8 #0046
0x88200117, // 0043 GETMBR R8 R0 K23
0x40200E08, // 0044 CONNECT R8 R7 R8
0x70020006, // 0045 JMP #004D
0x88200518, // 0046 GETMBR R8 R2 K24
0x78220001, // 0047 JMPF R8 #004A
0x88200518, // 0048 GETMBR R8 R2 K24
0x40200E08, // 0049 CONNECT R8 R7 R8
0x8C200F19, // 004A GETMET R8 R7 K25
0x542A000C, // 004B LDINT R10 13
0x7C200400, // 004C CALL R8 2
0x8820031A, // 004D GETMBR R8 R1 K26
0x8C20111B, // 004E GETMET R8 R8 K27
0x5C280C00, // 004F MOVE R10 R6
0x5C2C0E00, // 0050 MOVE R11 R7
0x58300010, // 0051 LDCONST R12 K16
0x6034000C, // 0052 GETGBL R13 G12
0x5C380E00, // 0053 MOVE R14 R7
0x7C340200, // 0054 CALL R13 1
0x5C380600, // 0055 MOVE R14 R3
0x583C0010, // 0056 LDCONST R15 K16
0x5C400800, // 0057 MOVE R16 R4
0x5C440600, // 0058 MOVE R17 R3
0x5C480800, // 0059 MOVE R18 R4
0x604C000C, // 005A GETGBL R19 G12
0x5C500600, // 005B MOVE R20 R3
0x7C4C0200, // 005C CALL R19 1
0x044C2604, // 005D SUB R19 R19 R4
0x044C2605, // 005E SUB R19 R19 R5
0x5C500600, // 005F MOVE R20 R3
0x6054000C, // 0060 GETGBL R21 G12
0x5C580600, // 0061 MOVE R22 R3
0x7C540200, // 0062 CALL R21 1
0x04542A05, // 0063 SUB R21 R21 R5
0x5C580A00, // 0064 MOVE R22 R5
0x7C201C00, // 0065 CALL R8 14
0x78220006, // 0066 JMPF R8 #006E
0x8C240719, // 0067 GETMET R9 R3 K25
0x602C000C, // 0068 GETGBL R11 G12
0x5C300600, // 0069 MOVE R12 R3
0x7C2C0200, // 006A CALL R11 1
0x042C1605, // 006B SUB R11 R11 R5
0x7C240400, // 006C CALL R9 2
0x70020003, // 006D JMP #0072
0xB8260C00, // 006E GETNGBL R9 K6
0x5828001C, // 006F LDCONST R10 K28
0x582C0011, // 0070 LDCONST R11 K17
0x7C240400, // 0071 CALL R9 2
0x80041000, // 0072 RET 1 R8
})
)
);

View File

@ -67,7 +67,7 @@ be_local_closure(class_Matter_MessageHandler_init, /* name */
extern const bclass be_class_Matter_MessageHandler;
be_local_closure(class_Matter_MessageHandler_send_encrypted_ack, /* name */
be_nested_proto(
12, /* nstack */
11, /* nstack */
3, /* argc */
2, /* varg */
0, /* has upvals */
@ -94,9 +94,9 @@ be_local_closure(class_Matter_MessageHandler_send_encrypted_ack, /* name */
}),
be_str_weak(send_encrypted_ack),
&be_const_str_solidified,
( &(const binstruction[33]) { /* code */
( &(const binstruction[32]) { /* code */
0x880C0300, // 0000 GETMBR R3 R1 K0
0x780E001D, // 0001 JMPF R3 #0020
0x780E001C, // 0001 JMPF R3 #001F
0x8C0C0301, // 0002 GETMET R3 R1 K1
0x5C140400, // 0003 MOVE R5 R2
0x7C0C0400, // 0004 CALL R3 2
@ -108,26 +108,25 @@ be_local_closure(class_Matter_MessageHandler_send_encrypted_ack, /* name */
0x8C100905, // 000A GETMET R4 R4 K5
0x541A0003, // 000B LDINT R6 4
0x7C100400, // 000C CALL R4 2
0x7812000E, // 000D JMPF R4 #001D
0xB8120800, // 000E GETNGBL R4 K4
0x8C100906, // 000F GETMET R4 R4 K6
0x60180018, // 0010 GETGBL R6 G24
0x581C0007, // 0011 LDCONST R7 K7
0x88200708, // 0012 GETMBR R8 R3 K8
0x88201109, // 0013 GETMBR R8 R8 K9
0x8824070A, // 0014 GETMBR R9 R3 K10
0x8828070B, // 0015 GETMBR R10 R3 K11
0x780A0001, // 0016 JMPF R2 #0019
0x582C000C, // 0017 LDCONST R11 K12
0x70020000, // 0018 JMP #001A
0x582C000D, // 0019 LDCONST R11 K13
0x7C180A00, // 001A CALL R6 5
0x541E0003, // 001B LDINT R7 4
0x7C100600, // 001C CALL R4 3
0x8C10010E, // 001D GETMET R4 R0 K14
0x5C180600, // 001E MOVE R6 R3
0x7C100400, // 001F CALL R4 2
0x80000000, // 0020 RET 0
0x7812000D, // 000D JMPF R4 #001C
0xB8120C00, // 000E GETNGBL R4 K6
0x60140018, // 000F GETGBL R5 G24
0x58180007, // 0010 LDCONST R6 K7
0x881C0708, // 0011 GETMBR R7 R3 K8
0x881C0F09, // 0012 GETMBR R7 R7 K9
0x8820070A, // 0013 GETMBR R8 R3 K10
0x8824070B, // 0014 GETMBR R9 R3 K11
0x780A0001, // 0015 JMPF R2 #0018
0x5828000C, // 0016 LDCONST R10 K12
0x70020000, // 0017 JMP #0019
0x5828000D, // 0018 LDCONST R10 K13
0x7C140A00, // 0019 CALL R5 5
0x541A0003, // 001A LDINT R6 4
0x7C100400, // 001B CALL R4 2
0x8C10010E, // 001C GETMET R4 R0 K14
0x5C180600, // 001D MOVE R6 R3
0x7C100400, // 001E CALL R4 2
0x80000000, // 001F RET 0
})
)
);
@ -140,7 +139,7 @@ be_local_closure(class_Matter_MessageHandler_send_encrypted_ack, /* name */
extern const bclass be_class_Matter_MessageHandler;
be_local_closure(class_Matter_MessageHandler_msg_received, /* name */
be_nested_proto(
19, /* nstack */
18, /* nstack */
4, /* argc */
2, /* varg */
0, /* has upvals */
@ -222,14 +221,14 @@ be_local_closure(class_Matter_MessageHandler_msg_received, /* name */
}),
be_str_weak(msg_received),
&be_const_str_solidified,
( &(const binstruction[365]) { /* code */
( &(const binstruction[356]) { /* code */
0x50100000, // 0000 LDBOOL R4 0 0
0xB8160000, // 0001 GETNGBL R5 K0
0x88140B01, // 0002 GETMBR R5 R5 K1
0x8C140B02, // 0003 GETMET R5 R5 K2
0x581C0003, // 0004 LDCONST R7 K3
0x7C140400, // 0005 CALL R5 2
0xA802014B, // 0006 EXBLK 0 #0153
0xA8020143, // 0006 EXBLK 0 #014B
0xB8160000, // 0007 GETNGBL R5 K0
0x8C140B04, // 0008 GETMET R5 R5 K4
0x5C1C0000, // 0009 MOVE R7 R0
@ -258,13 +257,13 @@ be_local_closure(class_Matter_MessageHandler_msg_received, /* name */
0x7C200400, // 0020 CALL R8 2
0xA8040001, // 0021 EXBLK 1 1
0x80041000, // 0022 RET 1 R8
0x7002012A, // 0023 JMP #014F
0x70020122, // 0023 JMP #0147
0x881C0B0D, // 0024 GETMBR R7 R5 K13
0x1C1C0F0E, // 0025 EQ R7 R7 K14
0x781E007F, // 0026 JMPF R7 #00A7
0x781E007C, // 0026 JMPF R7 #00A4
0x881C0B0F, // 0027 GETMBR R7 R5 K15
0x1C1C0F0E, // 0028 EQ R7 R7 K14
0x781E007C, // 0029 JMPF R7 #00A7
0x781E0079, // 0029 JMPF R7 #00A4
0x881C0107, // 002A GETMBR R7 R0 K7
0x881C0F08, // 002B GETMBR R7 R7 K8
0x8C1C0F09, // 002C GETMET R7 R7 K9
@ -282,312 +281,303 @@ be_local_closure(class_Matter_MessageHandler_msg_received, /* name */
0x88280B16, // 0038 GETMBR R10 R5 K22
0x502C0000, // 0039 LDBOOL R11 0 0
0x7C200600, // 003A CALL R8 3
0x74220016, // 003B JMPT R8 #0053
0x74220015, // 003B JMPT R8 #0052
0xB8222E00, // 003C GETNGBL R8 K23
0x8C201118, // 003D GETMET R8 R8 K24
0x542A0003, // 003E LDINT R10 4
0x7C200400, // 003F CALL R8 2
0x7822000A, // 0040 JMPF R8 #004C
0xB8222E00, // 0041 GETNGBL R8 K23
0x8C201102, // 0042 GETMET R8 R8 K2
0x60280018, // 0043 GETGBL R10 G24
0x582C0019, // 0044 LDCONST R11 K25
0x88300B16, // 0045 GETMBR R12 R5 K22
0x88340F14, // 0046 GETMBR R13 R7 K20
0x8C341B1A, // 0047 GETMET R13 R13 K26
0x7C340200, // 0048 CALL R13 1
0x7C280600, // 0049 CALL R10 3
0x542E0003, // 004A LDINT R11 4
0x7C200600, // 004B CALL R8 3
0x8C20011B, // 004C GETMET R8 R0 K27
0x5C280A00, // 004D MOVE R10 R5
0x502C0000, // 004E LDBOOL R11 0 0
0x7C200600, // 004F CALL R8 3
0x50200000, // 0050 LDBOOL R8 0 0
0xA8040001, // 0051 EXBLK 1 1
0x80041000, // 0052 RET 1 R8
0x8C200B1C, // 0053 GETMET R8 R5 K28
0x7C200200, // 0054 CALL R8 1
0x74220002, // 0055 JMPT R8 #0059
0x50200000, // 0056 LDBOOL R8 0 0
0xA8040001, // 0057 EXBLK 1 1
0x80041000, // 0058 RET 1 R8
0x88200107, // 0059 GETMBR R8 R0 K7
0x8C20111D, // 005A GETMET R8 R8 K29
0x5C280A00, // 005B MOVE R10 R5
0x7C200400, // 005C CALL R8 2
0x88200B1E, // 005D GETMBR R8 R5 K30
0x5426000F, // 005E LDINT R9 16
0x20201009, // 005F NE R8 R8 R9
0x7822001D, // 0060 JMPF R8 #007F
0xB8220000, // 0061 GETNGBL R8 K0
0x8C20111F, // 0062 GETMET R8 R8 K31
0x88280B1E, // 0063 GETMBR R10 R5 K30
0x7C200400, // 0064 CALL R8 2
0x5C241000, // 0065 MOVE R9 R8
0x74260004, // 0066 JMPT R9 #006C
0x60240018, // 0067 GETGBL R9 G24
0x58280020, // 0068 LDCONST R10 K32
0x882C0B1E, // 0069 GETMBR R11 R5 K30
0x7C240400, // 006A CALL R9 2
0x5C201200, // 006B MOVE R8 R9
0xB8262E00, // 006C GETNGBL R9 K23
0x8C241318, // 006D GETMET R9 R9 K24
0x582C0021, // 006E LDCONST R11 K33
0x7C240400, // 006F CALL R9 2
0x7826000C, // 0070 JMPF R9 #007E
0xB8262E00, // 0071 GETNGBL R9 K23
0x8C241302, // 0072 GETMET R9 R9 K2
0x602C0018, // 0073 GETGBL R11 G24
0x58300022, // 0074 LDCONST R12 K34
0x88340F0D, // 0075 GETMBR R13 R7 K13
0x5C381000, // 0076 MOVE R14 R8
0x883C0B16, // 0077 GETMBR R15 R5 K22
0x88400B23, // 0078 GETMBR R16 R5 K35
0x5C440400, // 0079 MOVE R17 R2
0x5C480600, // 007A MOVE R18 R3
0x7C2C0E00, // 007B CALL R11 7
0x58300021, // 007C LDCONST R12 K33
0x7C240600, // 007D CALL R9 3
0x70020018, // 007E JMP #0098
0xB8222E00, // 007F GETNGBL R8 K23
0x8C201118, // 0080 GETMET R8 R8 K24
0x542A0003, // 0081 LDINT R10 4
0x7C200400, // 0082 CALL R8 2
0x78220013, // 0083 JMPF R8 #0098
0xB8222E00, // 0084 GETNGBL R8 K23
0x8C201102, // 0085 GETMET R8 R8 K2
0x60280018, // 0086 GETGBL R10 G24
0x582C0024, // 0087 LDCONST R11 K36
0x88300F0D, // 0088 GETMBR R12 R7 K13
0x88340B16, // 0089 GETMBR R13 R5 K22
0x88380B25, // 008A GETMBR R14 R5 K37
0x783A0001, // 008B JMPF R14 #008E
0x58380026, // 008C LDCONST R14 K38
0x70020000, // 008D JMP #008F
0x58380027, // 008E LDCONST R14 K39
0x883C0B23, // 008F GETMBR R15 R5 K35
0x60400008, // 0090 GETGBL R16 G8
0x88440B28, // 0091 GETMBR R17 R5 K40
0x7C400200, // 0092 CALL R16 1
0x5C440400, // 0093 MOVE R17 R2
0x5C480600, // 0094 MOVE R18 R3
0x7C281000, // 0095 CALL R10 8
0x542E0003, // 0096 LDINT R11 4
0x7C200600, // 0097 CALL R8 3
0x88200129, // 0098 GETMBR R8 R0 K41
0x8C20112A, // 0099 GETMET R8 R8 K42
0x5C280A00, // 009A MOVE R10 R5
0x7C200400, // 009B CALL R8 2
0x5C101000, // 009C MOVE R4 R8
0x5C200800, // 009D MOVE R8 R4
0x74220003, // 009E JMPT R8 #00A3
0x8C20011B, // 009F GETMET R8 R0 K27
0x5C280A00, // 00A0 MOVE R10 R5
0x502C0000, // 00A1 LDBOOL R11 0 0
0x7C200600, // 00A2 CALL R8 3
0x50200200, // 00A3 LDBOOL R8 1 0
0xA8040001, // 00A4 EXBLK 1 1
0x80041000, // 00A5 RET 1 R8
0x700200A7, // 00A6 JMP #014F
0xB81E2E00, // 00A7 GETNGBL R7 K23
0x8C1C0F18, // 00A8 GETMET R7 R7 K24
0x54260003, // 00A9 LDINT R9 4
0x7C1C0400, // 00AA CALL R7 2
0x781E0008, // 00AB JMPF R7 #00B5
0xB81E2E00, // 00AC GETNGBL R7 K23
0x8C1C0F02, // 00AD GETMET R7 R7 K2
0x60240018, // 00AE GETGBL R9 G24
0x5828002B, // 00AF LDCONST R10 K43
0x882C0B0D, // 00B0 GETMBR R11 R5 K13
0x88300B16, // 00B1 GETMBR R12 R5 K22
0x7C240600, // 00B2 CALL R9 3
0x542A0003, // 00B3 LDINT R10 4
0x7C1C0600, // 00B4 CALL R7 3
0x881C0107, // 00B5 GETMBR R7 R0 K7
0x881C0F08, // 00B6 GETMBR R7 R7 K8
0x8C1C0F2C, // 00B7 GETMET R7 R7 K44
0x88240B0D, // 00B8 GETMBR R9 R5 K13
0x7C1C0400, // 00B9 CALL R7 2
0x4C200000, // 00BA LDNIL R8
0x1C200E08, // 00BB EQ R8 R7 R8
0x7822000A, // 00BC JMPF R8 #00C8
0xB8222E00, // 00BD GETNGBL R8 K23
0x8C201102, // 00BE GETMET R8 R8 K2
0x60280008, // 00BF GETGBL R10 G8
0x882C0B0D, // 00C0 GETMBR R11 R5 K13
0x7C280200, // 00C1 CALL R10 1
0x002A5A0A, // 00C2 ADD R10 K45 R10
0x582C0021, // 00C3 LDCONST R11 K33
0x7C200600, // 00C4 CALL R8 3
0x50200000, // 00C5 LDBOOL R8 0 0
0xA8040001, // 00C6 EXBLK 1 1
0x80041000, // 00C7 RET 1 R8
0x780A0000, // 00C8 JMPF R2 #00CA
0x901E2002, // 00C9 SETMBR R7 K16 R2
0x780E0000, // 00CA JMPF R3 #00CC
0x901E2203, // 00CB SETMBR R7 K17 R3
0x901E2400, // 00CC SETMBR R7 K18 R0
0x90162607, // 00CD SETMBR R5 K19 R7
0x8C200F2E, // 00CE GETMET R8 R7 K46
0x88280B16, // 00CF GETMBR R10 R5 K22
0x502C0200, // 00D0 LDBOOL R11 1 0
0x7C200600, // 00D1 CALL R8 3
0x74220018, // 00D2 JMPT R8 #00EC
0xB8222E00, // 00D3 GETNGBL R8 K23
0x8C201118, // 00D4 GETMET R8 R8 K24
0x58280021, // 00D5 LDCONST R10 K33
0x7C200400, // 00D6 CALL R8 2
0x7822000C, // 00D7 JMPF R8 #00E5
0xB8222E00, // 00D8 GETNGBL R8 K23
0x8C201102, // 00D9 GETMET R8 R8 K2
0x60280008, // 00DA GETGBL R10 G8
0x882C0B16, // 00DB GETMBR R11 R5 K22
0x7C280200, // 00DC CALL R10 1
0x002A5E0A, // 00DD ADD R10 K47 R10
0x00281530, // 00DE ADD R10 R10 K48
0x602C0008, // 00DF GETGBL R11 G8
0x88300F31, // 00E0 GETMBR R12 R7 K49
0x7C2C0200, // 00E1 CALL R11 1
0x0028140B, // 00E2 ADD R10 R10 R11
0x582C0021, // 00E3 LDCONST R11 K33
0x7C200600, // 00E4 CALL R8 3
0x8C200132, // 00E5 GETMET R8 R0 K50
0x5C280A00, // 00E6 MOVE R10 R5
0x502C0000, // 00E7 LDBOOL R11 0 0
0x7C200600, // 00E8 CALL R8 3
0x50200000, // 00E9 LDBOOL R8 0 0
0xA8040001, // 00EA EXBLK 1 1
0x80041000, // 00EB RET 1 R8
0x8C200B33, // 00EC GETMET R8 R5 K51
0x7C200200, // 00ED CALL R8 1
0xB8260000, // 00EE GETNGBL R9 K0
0x88241301, // 00EF GETMBR R9 R9 K1
0x8C241302, // 00F0 GETMET R9 R9 K2
0x582C0034, // 00F1 LDCONST R11 K52
0x7C240400, // 00F2 CALL R9 2
0x5C241000, // 00F3 MOVE R9 R8
0x74260002, // 00F4 JMPT R9 #00F8
0x50240000, // 00F5 LDBOOL R9 0 0
0xA8040001, // 00F6 EXBLK 1 1
0x80041200, // 00F7 RET 1 R9
0x8C240B1C, // 00F8 GETMET R9 R5 K28
0x7C240200, // 00F9 CALL R9 1
0xB8262E00, // 00FA GETNGBL R9 K23
0x8C241318, // 00FB GETMET R9 R9 K24
0x542E0003, // 00FC LDINT R11 4
0x7C240400, // 00FD CALL R9 2
0x78260013, // 00FE JMPF R9 #0113
0xB8262E00, // 00FF GETNGBL R9 K23
0x8C241302, // 0100 GETMET R9 R9 K2
0x602C0008, // 0101 GETGBL R11 G8
0x88300B36, // 0102 GETMBR R12 R5 K54
0x7C2C0200, // 0103 CALL R11 1
0x002E6A0B, // 0104 ADD R11 K53 R11
0x002C1737, // 0105 ADD R11 R11 K55
0x60300008, // 0106 GETGBL R12 G8
0x88340B1E, // 0107 GETMBR R13 R5 K30
0x7C300200, // 0108 CALL R12 1
0x002C160C, // 0109 ADD R11 R11 R12
0x002C1738, // 010A ADD R11 R11 K56
0x60300008, // 010B GETGBL R12 G8
0x88340B23, // 010C GETMBR R13 R5 K35
0x543AFFFE, // 010D LDINT R14 65535
0x2C341A0E, // 010E AND R13 R13 R14
0x7C300200, // 010F CALL R12 1
0x002C160C, // 0110 ADD R11 R11 R12
0x54320003, // 0111 LDINT R12 4
0x7C240600, // 0112 CALL R9 3
0x88240107, // 0113 GETMBR R9 R0 K7
0x8C24131D, // 0114 GETMET R9 R9 K29
0x5C2C0A00, // 0115 MOVE R11 R5
0x7C240400, // 0116 CALL R9 2
0x88240B36, // 0117 GETMBR R9 R5 K54
0x1C28130E, // 0118 EQ R10 R9 K14
0x782A000F, // 0119 JMPF R10 #012A
0x88280B1E, // 011A GETMBR R10 R5 K30
0x542E000F, // 011B LDINT R11 16
0x1C28140B, // 011C EQ R10 R10 R11
0x782A0009, // 011D JMPF R10 #0128
0x88280139, // 011E GETMBR R10 R0 K57
0x8C28153A, // 011F GETMET R10 R10 K58
0x5C300A00, // 0120 MOVE R12 R5
0x7C280400, // 0121 CALL R10 2
0x5C101400, // 0122 MOVE R4 R10
0x78120003, // 0123 JMPF R4 #0128
0x88280139, // 0124 GETMBR R10 R0 K57
0x8C28153B, // 0125 GETMET R10 R10 K59
0x5C300000, // 0126 MOVE R12 R0
0x7C280400, // 0127 CALL R10 2
0x50100200, // 0128 LDBOOL R4 1 0
0x70020024, // 0129 JMP #014F
0x1C28133C, // 012A EQ R10 R9 K60
0x782A001A, // 012B JMPF R10 #0147
0xB82A0000, // 012C GETNGBL R10 K0
0x88281501, // 012D GETMBR R10 R10 K1
0x8C281502, // 012E GETMET R10 R10 K2
0x5830003D, // 012F LDCONST R12 K61
0x7C280400, // 0130 CALL R10 2
0x88280139, // 0131 GETMBR R10 R0 K57
0x8C28152A, // 0132 GETMET R10 R10 K42
0x5C300A00, // 0133 MOVE R12 R5
0x7C280400, // 0134 CALL R10 2
0x5C101400, // 0135 MOVE R4 R10
0xB82A0000, // 0136 GETNGBL R10 K0
0x88281501, // 0137 GETMBR R10 R10 K1
0x8C281502, // 0138 GETMET R10 R10 K2
0x5830003E, // 0139 LDCONST R12 K62
0x7C280400, // 013A CALL R10 2
0x78120004, // 013B JMPF R4 #0141
0x88280139, // 013C GETMBR R10 R0 K57
0x8C28153B, // 013D GETMET R10 R10 K59
0x5C300000, // 013E MOVE R12 R0
0x7C280400, // 013F CALL R10 2
0x70020003, // 0140 JMP #0145
0x8C280132, // 0141 GETMET R10 R0 K50
0x5C300A00, // 0142 MOVE R12 R5
0x50340200, // 0143 LDBOOL R13 1 0
0x7C280600, // 0144 CALL R10 3
0x50100200, // 0145 LDBOOL R4 1 0
0x70020007, // 0146 JMP #014F
0xB82A2E00, // 0147 GETNGBL R10 K23
0x8C281502, // 0148 GETMET R10 R10 K2
0x60300008, // 0149 GETGBL R12 G8
0x5C341200, // 014A MOVE R13 R9
0x7C300200, // 014B CALL R12 1
0x00327E0C, // 014C ADD R12 K63 R12
0x58340021, // 014D LDCONST R13 K33
0x7C280600, // 014E CALL R10 3
0xA8040001, // 014F EXBLK 1 1
0x80040800, // 0150 RET 1 R4
0xA8040001, // 0151 EXBLK 1 1
0x70020018, // 0152 JMP #016C
0xAC140002, // 0153 CATCH R5 0 2
0x70020015, // 0154 JMP #016B
0xB81E2E00, // 0155 GETNGBL R7 K23
0x8C1C0F02, // 0156 GETMET R7 R7 K2
0x60240008, // 0157 GETGBL R9 G8
0x5C280A00, // 0158 MOVE R10 R5
0x7C240200, // 0159 CALL R9 1
0x00268009, // 015A ADD R9 K64 R9
0x00241341, // 015B ADD R9 R9 K65
0x60280008, // 015C GETGBL R10 G8
0x5C2C0C00, // 015D MOVE R11 R6
0x7C280200, // 015E CALL R10 1
0x0024120A, // 015F ADD R9 R9 R10
0x58280042, // 0160 LDCONST R10 K66
0x7C1C0600, // 0161 CALL R7 3
0xB81E2E00, // 0162 GETNGBL R7 K23
0x881C0F43, // 0163 GETMBR R7 R7 K67
0x781E0002, // 0164 JMPF R7 #0168
0xA41E8800, // 0165 IMPORT R7 K68
0x8C200F45, // 0166 GETMET R8 R7 K69
0x7C200200, // 0167 CALL R8 1
0x501C0000, // 0168 LDBOOL R7 0 0
0x80040E00, // 0169 RET 1 R7
0x70020000, // 016A JMP #016C
0xB0080000, // 016B RAISE 2 R0 R0
0x80000000, // 016C RET 0
0x78220009, // 0040 JMPF R8 #004B
0xB8220400, // 0041 GETNGBL R8 K2
0x60240018, // 0042 GETGBL R9 G24
0x58280019, // 0043 LDCONST R10 K25
0x882C0B16, // 0044 GETMBR R11 R5 K22
0x88300F14, // 0045 GETMBR R12 R7 K20
0x8C30191A, // 0046 GETMET R12 R12 K26
0x7C300200, // 0047 CALL R12 1
0x7C240600, // 0048 CALL R9 3
0x542A0003, // 0049 LDINT R10 4
0x7C200400, // 004A CALL R8 2
0x8C20011B, // 004B GETMET R8 R0 K27
0x5C280A00, // 004C MOVE R10 R5
0x502C0000, // 004D LDBOOL R11 0 0
0x7C200600, // 004E CALL R8 3
0x50200000, // 004F LDBOOL R8 0 0
0xA8040001, // 0050 EXBLK 1 1
0x80041000, // 0051 RET 1 R8
0x8C200B1C, // 0052 GETMET R8 R5 K28
0x7C200200, // 0053 CALL R8 1
0x74220002, // 0054 JMPT R8 #0058
0x50200000, // 0055 LDBOOL R8 0 0
0xA8040001, // 0056 EXBLK 1 1
0x80041000, // 0057 RET 1 R8
0x88200107, // 0058 GETMBR R8 R0 K7
0x8C20111D, // 0059 GETMET R8 R8 K29
0x5C280A00, // 005A MOVE R10 R5
0x7C200400, // 005B CALL R8 2
0x88200B1E, // 005C GETMBR R8 R5 K30
0x5426000F, // 005D LDINT R9 16
0x20201009, // 005E NE R8 R8 R9
0x7822001C, // 005F JMPF R8 #007D
0xB8220000, // 0060 GETNGBL R8 K0
0x8C20111F, // 0061 GETMET R8 R8 K31
0x88280B1E, // 0062 GETMBR R10 R5 K30
0x7C200400, // 0063 CALL R8 2
0x5C241000, // 0064 MOVE R9 R8
0x74260004, // 0065 JMPT R9 #006B
0x60240018, // 0066 GETGBL R9 G24
0x58280020, // 0067 LDCONST R10 K32
0x882C0B1E, // 0068 GETMBR R11 R5 K30
0x7C240400, // 0069 CALL R9 2
0x5C201200, // 006A MOVE R8 R9
0xB8262E00, // 006B GETNGBL R9 K23
0x8C241318, // 006C GETMET R9 R9 K24
0x582C0021, // 006D LDCONST R11 K33
0x7C240400, // 006E CALL R9 2
0x7826000B, // 006F JMPF R9 #007C
0xB8260400, // 0070 GETNGBL R9 K2
0x60280018, // 0071 GETGBL R10 G24
0x582C0022, // 0072 LDCONST R11 K34
0x88300F0D, // 0073 GETMBR R12 R7 K13
0x5C341000, // 0074 MOVE R13 R8
0x88380B16, // 0075 GETMBR R14 R5 K22
0x883C0B23, // 0076 GETMBR R15 R5 K35
0x5C400400, // 0077 MOVE R16 R2
0x5C440600, // 0078 MOVE R17 R3
0x7C280E00, // 0079 CALL R10 7
0x582C0021, // 007A LDCONST R11 K33
0x7C240400, // 007B CALL R9 2
0x70020017, // 007C JMP #0095
0xB8222E00, // 007D GETNGBL R8 K23
0x8C201118, // 007E GETMET R8 R8 K24
0x542A0003, // 007F LDINT R10 4
0x7C200400, // 0080 CALL R8 2
0x78220012, // 0081 JMPF R8 #0095
0xB8220400, // 0082 GETNGBL R8 K2
0x60240018, // 0083 GETGBL R9 G24
0x58280024, // 0084 LDCONST R10 K36
0x882C0F0D, // 0085 GETMBR R11 R7 K13
0x88300B16, // 0086 GETMBR R12 R5 K22
0x88340B25, // 0087 GETMBR R13 R5 K37
0x78360001, // 0088 JMPF R13 #008B
0x58340026, // 0089 LDCONST R13 K38
0x70020000, // 008A JMP #008C
0x58340027, // 008B LDCONST R13 K39
0x88380B23, // 008C GETMBR R14 R5 K35
0x603C0008, // 008D GETGBL R15 G8
0x88400B28, // 008E GETMBR R16 R5 K40
0x7C3C0200, // 008F CALL R15 1
0x5C400400, // 0090 MOVE R16 R2
0x5C440600, // 0091 MOVE R17 R3
0x7C241000, // 0092 CALL R9 8
0x542A0003, // 0093 LDINT R10 4
0x7C200400, // 0094 CALL R8 2
0x88200129, // 0095 GETMBR R8 R0 K41
0x8C20112A, // 0096 GETMET R8 R8 K42
0x5C280A00, // 0097 MOVE R10 R5
0x7C200400, // 0098 CALL R8 2
0x5C101000, // 0099 MOVE R4 R8
0x5C200800, // 009A MOVE R8 R4
0x74220003, // 009B JMPT R8 #00A0
0x8C20011B, // 009C GETMET R8 R0 K27
0x5C280A00, // 009D MOVE R10 R5
0x502C0000, // 009E LDBOOL R11 0 0
0x7C200600, // 009F CALL R8 3
0x50200200, // 00A0 LDBOOL R8 1 0
0xA8040001, // 00A1 EXBLK 1 1
0x80041000, // 00A2 RET 1 R8
0x700200A2, // 00A3 JMP #0147
0xB81E2E00, // 00A4 GETNGBL R7 K23
0x8C1C0F18, // 00A5 GETMET R7 R7 K24
0x54260003, // 00A6 LDINT R9 4
0x7C1C0400, // 00A7 CALL R7 2
0x781E0007, // 00A8 JMPF R7 #00B1
0xB81E0400, // 00A9 GETNGBL R7 K2
0x60200018, // 00AA GETGBL R8 G24
0x5824002B, // 00AB LDCONST R9 K43
0x88280B0D, // 00AC GETMBR R10 R5 K13
0x882C0B16, // 00AD GETMBR R11 R5 K22
0x7C200600, // 00AE CALL R8 3
0x54260003, // 00AF LDINT R9 4
0x7C1C0400, // 00B0 CALL R7 2
0x881C0107, // 00B1 GETMBR R7 R0 K7
0x881C0F08, // 00B2 GETMBR R7 R7 K8
0x8C1C0F2C, // 00B3 GETMET R7 R7 K44
0x88240B0D, // 00B4 GETMBR R9 R5 K13
0x7C1C0400, // 00B5 CALL R7 2
0x4C200000, // 00B6 LDNIL R8
0x1C200E08, // 00B7 EQ R8 R7 R8
0x78220009, // 00B8 JMPF R8 #00C3
0xB8220400, // 00B9 GETNGBL R8 K2
0x60240008, // 00BA GETGBL R9 G8
0x88280B0D, // 00BB GETMBR R10 R5 K13
0x7C240200, // 00BC CALL R9 1
0x00265A09, // 00BD ADD R9 K45 R9
0x58280021, // 00BE LDCONST R10 K33
0x7C200400, // 00BF CALL R8 2
0x50200000, // 00C0 LDBOOL R8 0 0
0xA8040001, // 00C1 EXBLK 1 1
0x80041000, // 00C2 RET 1 R8
0x780A0000, // 00C3 JMPF R2 #00C5
0x901E2002, // 00C4 SETMBR R7 K16 R2
0x780E0000, // 00C5 JMPF R3 #00C7
0x901E2203, // 00C6 SETMBR R7 K17 R3
0x901E2400, // 00C7 SETMBR R7 K18 R0
0x90162607, // 00C8 SETMBR R5 K19 R7
0x8C200F2E, // 00C9 GETMET R8 R7 K46
0x88280B16, // 00CA GETMBR R10 R5 K22
0x502C0200, // 00CB LDBOOL R11 1 0
0x7C200600, // 00CC CALL R8 3
0x74220017, // 00CD JMPT R8 #00E6
0xB8222E00, // 00CE GETNGBL R8 K23
0x8C201118, // 00CF GETMET R8 R8 K24
0x58280021, // 00D0 LDCONST R10 K33
0x7C200400, // 00D1 CALL R8 2
0x7822000B, // 00D2 JMPF R8 #00DF
0xB8220400, // 00D3 GETNGBL R8 K2
0x60240008, // 00D4 GETGBL R9 G8
0x88280B16, // 00D5 GETMBR R10 R5 K22
0x7C240200, // 00D6 CALL R9 1
0x00265E09, // 00D7 ADD R9 K47 R9
0x00241330, // 00D8 ADD R9 R9 K48
0x60280008, // 00D9 GETGBL R10 G8
0x882C0F31, // 00DA GETMBR R11 R7 K49
0x7C280200, // 00DB CALL R10 1
0x0024120A, // 00DC ADD R9 R9 R10
0x58280021, // 00DD LDCONST R10 K33
0x7C200400, // 00DE CALL R8 2
0x8C200132, // 00DF GETMET R8 R0 K50
0x5C280A00, // 00E0 MOVE R10 R5
0x502C0000, // 00E1 LDBOOL R11 0 0
0x7C200600, // 00E2 CALL R8 3
0x50200000, // 00E3 LDBOOL R8 0 0
0xA8040001, // 00E4 EXBLK 1 1
0x80041000, // 00E5 RET 1 R8
0x8C200B33, // 00E6 GETMET R8 R5 K51
0x7C200200, // 00E7 CALL R8 1
0xB8260000, // 00E8 GETNGBL R9 K0
0x88241301, // 00E9 GETMBR R9 R9 K1
0x8C241302, // 00EA GETMET R9 R9 K2
0x582C0034, // 00EB LDCONST R11 K52
0x7C240400, // 00EC CALL R9 2
0x5C241000, // 00ED MOVE R9 R8
0x74260002, // 00EE JMPT R9 #00F2
0x50240000, // 00EF LDBOOL R9 0 0
0xA8040001, // 00F0 EXBLK 1 1
0x80041200, // 00F1 RET 1 R9
0x8C240B1C, // 00F2 GETMET R9 R5 K28
0x7C240200, // 00F3 CALL R9 1
0xB8262E00, // 00F4 GETNGBL R9 K23
0x8C241318, // 00F5 GETMET R9 R9 K24
0x542E0003, // 00F6 LDINT R11 4
0x7C240400, // 00F7 CALL R9 2
0x78260012, // 00F8 JMPF R9 #010C
0xB8260400, // 00F9 GETNGBL R9 K2
0x60280008, // 00FA GETGBL R10 G8
0x882C0B36, // 00FB GETMBR R11 R5 K54
0x7C280200, // 00FC CALL R10 1
0x002A6A0A, // 00FD ADD R10 K53 R10
0x00281537, // 00FE ADD R10 R10 K55
0x602C0008, // 00FF GETGBL R11 G8
0x88300B1E, // 0100 GETMBR R12 R5 K30
0x7C2C0200, // 0101 CALL R11 1
0x0028140B, // 0102 ADD R10 R10 R11
0x00281538, // 0103 ADD R10 R10 K56
0x602C0008, // 0104 GETGBL R11 G8
0x88300B23, // 0105 GETMBR R12 R5 K35
0x5436FFFE, // 0106 LDINT R13 65535
0x2C30180D, // 0107 AND R12 R12 R13
0x7C2C0200, // 0108 CALL R11 1
0x0028140B, // 0109 ADD R10 R10 R11
0x542E0003, // 010A LDINT R11 4
0x7C240400, // 010B CALL R9 2
0x88240107, // 010C GETMBR R9 R0 K7
0x8C24131D, // 010D GETMET R9 R9 K29
0x5C2C0A00, // 010E MOVE R11 R5
0x7C240400, // 010F CALL R9 2
0x88240B36, // 0110 GETMBR R9 R5 K54
0x1C28130E, // 0111 EQ R10 R9 K14
0x782A000F, // 0112 JMPF R10 #0123
0x88280B1E, // 0113 GETMBR R10 R5 K30
0x542E000F, // 0114 LDINT R11 16
0x1C28140B, // 0115 EQ R10 R10 R11
0x782A0009, // 0116 JMPF R10 #0121
0x88280139, // 0117 GETMBR R10 R0 K57
0x8C28153A, // 0118 GETMET R10 R10 K58
0x5C300A00, // 0119 MOVE R12 R5
0x7C280400, // 011A CALL R10 2
0x5C101400, // 011B MOVE R4 R10
0x78120003, // 011C JMPF R4 #0121
0x88280139, // 011D GETMBR R10 R0 K57
0x8C28153B, // 011E GETMET R10 R10 K59
0x5C300000, // 011F MOVE R12 R0
0x7C280400, // 0120 CALL R10 2
0x50100200, // 0121 LDBOOL R4 1 0
0x70020023, // 0122 JMP #0147
0x1C28133C, // 0123 EQ R10 R9 K60
0x782A001A, // 0124 JMPF R10 #0140
0xB82A0000, // 0125 GETNGBL R10 K0
0x88281501, // 0126 GETMBR R10 R10 K1
0x8C281502, // 0127 GETMET R10 R10 K2
0x5830003D, // 0128 LDCONST R12 K61
0x7C280400, // 0129 CALL R10 2
0x88280139, // 012A GETMBR R10 R0 K57
0x8C28152A, // 012B GETMET R10 R10 K42
0x5C300A00, // 012C MOVE R12 R5
0x7C280400, // 012D CALL R10 2
0x5C101400, // 012E MOVE R4 R10
0xB82A0000, // 012F GETNGBL R10 K0
0x88281501, // 0130 GETMBR R10 R10 K1
0x8C281502, // 0131 GETMET R10 R10 K2
0x5830003E, // 0132 LDCONST R12 K62
0x7C280400, // 0133 CALL R10 2
0x78120004, // 0134 JMPF R4 #013A
0x88280139, // 0135 GETMBR R10 R0 K57
0x8C28153B, // 0136 GETMET R10 R10 K59
0x5C300000, // 0137 MOVE R12 R0
0x7C280400, // 0138 CALL R10 2
0x70020003, // 0139 JMP #013E
0x8C280132, // 013A GETMET R10 R0 K50
0x5C300A00, // 013B MOVE R12 R5
0x50340200, // 013C LDBOOL R13 1 0
0x7C280600, // 013D CALL R10 3
0x50100200, // 013E LDBOOL R4 1 0
0x70020006, // 013F JMP #0147
0xB82A0400, // 0140 GETNGBL R10 K2
0x602C0008, // 0141 GETGBL R11 G8
0x5C301200, // 0142 MOVE R12 R9
0x7C2C0200, // 0143 CALL R11 1
0x002E7E0B, // 0144 ADD R11 K63 R11
0x58300021, // 0145 LDCONST R12 K33
0x7C280400, // 0146 CALL R10 2
0xA8040001, // 0147 EXBLK 1 1
0x80040800, // 0148 RET 1 R4
0xA8040001, // 0149 EXBLK 1 1
0x70020017, // 014A JMP #0163
0xAC140002, // 014B CATCH R5 0 2
0x70020014, // 014C JMP #0162
0xB81E0400, // 014D GETNGBL R7 K2
0x60200008, // 014E GETGBL R8 G8
0x5C240A00, // 014F MOVE R9 R5
0x7C200200, // 0150 CALL R8 1
0x00228008, // 0151 ADD R8 K64 R8
0x00201141, // 0152 ADD R8 R8 K65
0x60240008, // 0153 GETGBL R9 G8
0x5C280C00, // 0154 MOVE R10 R6
0x7C240200, // 0155 CALL R9 1
0x00201009, // 0156 ADD R8 R8 R9
0x58240042, // 0157 LDCONST R9 K66
0x7C1C0400, // 0158 CALL R7 2
0xB81E2E00, // 0159 GETNGBL R7 K23
0x881C0F43, // 015A GETMBR R7 R7 K67
0x781E0002, // 015B JMPF R7 #015F
0xA41E8800, // 015C IMPORT R7 K68
0x8C200F45, // 015D GETMET R8 R7 K69
0x7C200200, // 015E CALL R8 1
0x501C0000, // 015F LDBOOL R7 0 0
0x80040E00, // 0160 RET 1 R7
0x70020000, // 0161 JMP #0163
0xB0080000, // 0162 RAISE 2 R0 R0
0x80000000, // 0163 RET 0
})
)
);
@ -641,7 +631,7 @@ be_local_closure(class_Matter_MessageHandler_send_response_frame, /* name */
extern const bclass be_class_Matter_MessageHandler;
be_local_closure(class_Matter_MessageHandler_send_simple_ack, /* name */
be_nested_proto(
12, /* nstack */
11, /* nstack */
3, /* argc */
2, /* varg */
0, /* has upvals */
@ -667,9 +657,9 @@ be_local_closure(class_Matter_MessageHandler_send_simple_ack, /* name */
}),
be_str_weak(send_simple_ack),
&be_const_str_solidified,
( &(const binstruction[31]) { /* code */
( &(const binstruction[30]) { /* code */
0x880C0300, // 0000 GETMBR R3 R1 K0
0x780E001B, // 0001 JMPF R3 #001E
0x780E001A, // 0001 JMPF R3 #001D
0x8C0C0301, // 0002 GETMET R3 R1 K1
0x5C140400, // 0003 MOVE R5 R2
0x7C0C0400, // 0004 CALL R3 2
@ -679,26 +669,25 @@ be_local_closure(class_Matter_MessageHandler_send_simple_ack, /* name */
0x8C100904, // 0008 GETMET R4 R4 K4
0x541A0003, // 0009 LDINT R6 4
0x7C100400, // 000A CALL R4 2
0x7812000E, // 000B JMPF R4 #001B
0xB8120600, // 000C GETNGBL R4 K3
0x8C100905, // 000D GETMET R4 R4 K5
0x60180018, // 000E GETGBL R6 G24
0x581C0006, // 000F LDCONST R7 K6
0x88200707, // 0010 GETMBR R8 R3 K7
0x88201108, // 0011 GETMBR R8 R8 K8
0x88240709, // 0012 GETMBR R9 R3 K9
0x8828070A, // 0013 GETMBR R10 R3 K10
0x780A0001, // 0014 JMPF R2 #0017
0x582C000B, // 0015 LDCONST R11 K11
0x70020000, // 0016 JMP #0018
0x582C000C, // 0017 LDCONST R11 K12
0x7C180A00, // 0018 CALL R6 5
0x541E0003, // 0019 LDINT R7 4
0x7C100600, // 001A CALL R4 3
0x8C10010D, // 001B GETMET R4 R0 K13
0x5C180600, // 001C MOVE R6 R3
0x7C100400, // 001D CALL R4 2
0x80000000, // 001E RET 0
0x7812000D, // 000B JMPF R4 #001A
0xB8120A00, // 000C GETNGBL R4 K5
0x60140018, // 000D GETGBL R5 G24
0x58180006, // 000E LDCONST R6 K6
0x881C0707, // 000F GETMBR R7 R3 K7
0x881C0F08, // 0010 GETMBR R7 R7 K8
0x88200709, // 0011 GETMBR R8 R3 K9
0x8824070A, // 0012 GETMBR R9 R3 K10
0x780A0001, // 0013 JMPF R2 #0016
0x5828000B, // 0014 LDCONST R10 K11
0x70020000, // 0015 JMP #0017
0x5828000C, // 0016 LDCONST R10 K12
0x7C140A00, // 0017 CALL R5 5
0x541A0003, // 0018 LDINT R6 4
0x7C100400, // 0019 CALL R4 2
0x8C10010D, // 001A GETMET R4 R0 K13
0x5C180600, // 001B MOVE R6 R3
0x7C100400, // 001C CALL R4 2
0x80000000, // 001D RET 0
})
)
);

View File

@ -575,7 +575,7 @@ be_local_closure(class_Matter_Plugin_Device_update_shadow, /* name */
extern const bclass be_class_Matter_Plugin_Device;
be_local_closure(class_Matter_Plugin_Device_call_remote_sync, /* name */
be_nested_proto(
10, /* nstack */
9, /* nstack */
3, /* argc */
2, /* varg */
0, /* has upvals */
@ -583,7 +583,7 @@ be_local_closure(class_Matter_Plugin_Device_call_remote_sync, /* name */
0, /* has sup protos */
&be_class_Matter_Plugin_Device,
1, /* has constants */
( &(const bvalue[15]) { /* constants */
( &(const bvalue[14]) { /* constants */
/* K0 */ be_nested_str_weak(BRIDGE),
/* K1 */ be_nested_str_weak(json),
/* K2 */ be_const_int(2),
@ -595,16 +595,15 @@ be_local_closure(class_Matter_Plugin_Device_call_remote_sync, /* name */
/* K8 */ be_nested_str_weak(device_is_alive),
/* K9 */ be_nested_str_weak(load),
/* K10 */ be_const_int(1),
/* K11 */ be_nested_str_weak(tasmota),
/* K12 */ be_nested_str_weak(log),
/* K13 */ be_nested_str_weak(MTR_X3A_X20HTTP_X20GET_X20retrying),
/* K14 */ be_const_int(3),
/* K11 */ be_nested_str_weak(log),
/* K12 */ be_nested_str_weak(MTR_X3A_X20HTTP_X20GET_X20retrying),
/* K13 */ be_const_int(3),
}),
be_str_weak(call_remote_sync),
&be_const_str_solidified,
( &(const binstruction[45]) { /* code */
( &(const binstruction[44]) { /* code */
0x880C0100, // 0000 GETMBR R3 R0 K0
0x780E0029, // 0001 JMPF R3 #002C
0x780E0028, // 0001 JMPF R3 #002B
0xA40E0200, // 0002 IMPORT R3 K1
0x58100002, // 0003 LDCONST R4 K2
0x4C140000, // 0004 LDNIL R5
@ -617,7 +616,7 @@ be_local_closure(class_Matter_Plugin_Device_call_remote_sync, /* name */
0x00140A06, // 000B ADD R5 R5 R6
0x5C040A00, // 000C MOVE R1 R5
0x24140904, // 000D GT R5 R4 K4
0x78160016, // 000E JMPF R5 #0026
0x78160015, // 000E JMPF R5 #0025
0x88140105, // 000F GETMBR R5 R0 K5
0x8C140B06, // 0010 GETMET R5 R5 K6
0x5C1C0200, // 0011 MOVE R7 R1
@ -636,18 +635,17 @@ be_local_closure(class_Matter_Plugin_Device_call_remote_sync, /* name */
0x80040C00, // 001E RET 1 R6
0x0410090A, // 001F SUB R4 R4 K10
0xB81A1600, // 0020 GETNGBL R6 K11
0x8C180D0C, // 0021 GETMET R6 R6 K12
0x581C000C, // 0021 LDCONST R7 K12
0x5820000D, // 0022 LDCONST R8 K13
0x5824000E, // 0023 LDCONST R9 K14
0x7C180600, // 0024 CALL R6 3
0x7001FFE6, // 0025 JMP #000D
0x88140105, // 0026 GETMBR R5 R0 K5
0x8C140B08, // 0027 GETMET R5 R5 K8
0x501C0000, // 0028 LDBOOL R7 0 0
0x7C140400, // 0029 CALL R5 2
0x4C140000, // 002A LDNIL R5
0x80040A00, // 002B RET 1 R5
0x80000000, // 002C RET 0
0x7C180400, // 0023 CALL R6 2
0x7001FFE7, // 0024 JMP #000D
0x88140105, // 0025 GETMBR R5 R0 K5
0x8C140B08, // 0026 GETMET R5 R5 K8
0x501C0000, // 0027 LDBOOL R7 0 0
0x7C140400, // 0028 CALL R5 2
0x4C140000, // 0029 LDNIL R5
0x80040A00, // 002A RET 1 R5
0x80000000, // 002B RET 0
})
)
);
@ -759,7 +757,7 @@ be_local_closure(class_Matter_Plugin_Device_read_attribute, /* name */
0, /* has sup protos */
&be_class_Matter_Plugin_Device,
1, /* has constants */
( &(const bvalue[43]) { /* constants */
( &(const bvalue[44]) { /* constants */
/* K0 */ be_nested_str_weak(matter),
/* K1 */ be_nested_str_weak(TLV),
/* K2 */ be_nested_str_weak(cluster),
@ -786,27 +784,28 @@ be_local_closure(class_Matter_Plugin_Device_read_attribute, /* name */
/* K23 */ be_nested_str_weak(http_remote),
/* K24 */ be_nested_str_weak(get_info),
/* K25 */ be_nested_str_weak(name),
/* K26 */ be_nested_str_weak(UTF1),
/* K27 */ be_nested_str_weak(NULL),
/* K26 */ be_nested_str_weak(set_or_nil),
/* K27 */ be_nested_str_weak(UTF1),
/* K28 */ be_nested_str_weak(tasmota),
/* K29 */ be_nested_str_weak(cmd),
/* K30 */ be_nested_str_weak(DeviceName),
/* K31 */ be_nested_str_weak(get_name),
/* K32 */ be_nested_str_weak(version),
/* K33 */ be_nested_str_weak(_X28),
/* K34 */ be_nested_str_weak(Status_X202),
/* K35 */ be_nested_str_weak(StatusFWR),
/* K36 */ be_nested_str_weak(Version),
/* K37 */ be_nested_str_weak(mac),
/* K38 */ be_nested_str_weak(wifi),
/* K39 */ be_nested_str_weak(),
/* K40 */ be_nested_str_weak(BOOL),
/* K41 */ be_nested_str_weak(reachable),
/* K42 */ be_nested_str_weak(read_attribute),
/* K34 */ be_nested_str_weak(NULL),
/* K35 */ be_nested_str_weak(Status_X202),
/* K36 */ be_nested_str_weak(StatusFWR),
/* K37 */ be_nested_str_weak(Version),
/* K38 */ be_nested_str_weak(mac),
/* K39 */ be_nested_str_weak(wifi),
/* K40 */ be_nested_str_weak(),
/* K41 */ be_nested_str_weak(BOOL),
/* K42 */ be_nested_str_weak(reachable),
/* K43 */ be_nested_str_weak(read_attribute),
}),
be_str_weak(read_attribute),
&be_const_str_solidified,
( &(const binstruction[258]) { /* code */
( &(const binstruction[244]) { /* code */
0xB8120000, // 0000 GETNGBL R4 K0
0x88100901, // 0001 GETMBR R4 R4 K1
0x88140502, // 0002 GETMBR R5 R2 K2
@ -828,7 +827,7 @@ be_local_closure(class_Matter_Plugin_Device_read_attribute, /* name */
0x58280005, // 0012 LDCONST R10 K5
0x7C1C0600, // 0013 CALL R7 3
0x80040E00, // 0014 RET 1 R7
0x700200E2, // 0015 JMP #00F9
0x700200D4, // 0015 JMP #00EB
0x541E0003, // 0016 LDINT R7 4
0x1C1C0A07, // 0017 EQ R7 R5 R7
0x781E0004, // 0018 JMPF R7 #001E
@ -836,11 +835,11 @@ be_local_closure(class_Matter_Plugin_Device_read_attribute, /* name */
0x781E0001, // 001A JMPF R7 #001D
0x4C1C0000, // 001B LDNIL R7
0x80040E00, // 001C RET 1 R7
0x700200DA, // 001D JMP #00F9
0x700200CC, // 001D JMP #00EB
0x541E0004, // 001E LDINT R7 5
0x1C1C0A07, // 001F EQ R7 R5 R7
0x781E0000, // 0020 JMPF R7 #0022
0x700200D6, // 0021 JMP #00F9
0x700200C8, // 0021 JMP #00EB
0x541E001C, // 0022 LDINT R7 29
0x1C1C0A07, // 0023 EQ R7 R5 R7
0x781E0034, // 0024 JMPF R7 #005A
@ -896,175 +895,161 @@ be_local_closure(class_Matter_Plugin_Device_read_attribute, /* name */
0x58380008, // 0056 LDCONST R14 K8
0x7C280800, // 0057 CALL R10 4
0x80040E00, // 0058 RET 1 R7
0x7002009E, // 0059 JMP #00F9
0x70020090, // 0059 JMP #00EB
0x541E0038, // 005A LDINT R7 57
0x1C1C0A07, // 005B EQ R7 R5 R7
0x781E009B, // 005C JMPF R7 #00F9
0x781E008D, // 005C JMPF R7 #00EB
0xA41E2A00, // 005D IMPORT R7 K21
0x1C200D04, // 005E EQ R8 R6 K4
0x7822001F, // 005F JMPF R8 #0080
0x78220018, // 005F JMPF R8 #0079
0x88200116, // 0060 GETMBR R8 R0 K22
0x78220012, // 0061 JMPF R8 #0075
0x7822000B, // 0061 JMPF R8 #006E
0x88200117, // 0062 GETMBR R8 R0 K23
0x8C201118, // 0063 GETMET R8 R8 K24
0x7C200200, // 0064 CALL R8 1
0x8C201111, // 0065 GETMET R8 R8 K17
0x58280019, // 0066 LDCONST R10 K25
0x7C200400, // 0067 CALL R8 2
0x78220005, // 0068 JMPF R8 #006F
0x8C240706, // 0069 GETMET R9 R3 K6
0x882C091A, // 006A GETMBR R11 R4 K26
0x5C301000, // 006B MOVE R12 R8
0x7C240600, // 006C CALL R9 3
0x80041200, // 006D RET 1 R9
0x70020004, // 006E JMP #0074
0x8C240706, // 006F GETMET R9 R3 K6
0x882C091B, // 0070 GETMBR R11 R4 K27
0x4C300000, // 0071 LDNIL R12
0x7C240600, // 0072 CALL R9 3
0x80041200, // 0073 RET 1 R9
0x70020009, // 0074 JMP #007F
0x8C200706, // 0075 GETMET R8 R3 K6
0x8828091A, // 0076 GETMBR R10 R4 K26
0xB82E3800, // 0077 GETNGBL R11 K28
0x8C2C171D, // 0078 GETMET R11 R11 K29
0x5834001E, // 0079 LDCONST R13 K30
0x50380200, // 007A LDBOOL R14 1 0
0x7C2C0600, // 007B CALL R11 3
0x942C171E, // 007C GETIDX R11 R11 K30
0x7C200600, // 007D CALL R8 3
0x80041000, // 007E RET 1 R8
0x70020078, // 007F JMP #00F9
0x54220004, // 0080 LDINT R8 5
0x1C200C08, // 0081 EQ R8 R6 R8
0x78220006, // 0082 JMPF R8 #008A
0x8C200706, // 0083 GETMET R8 R3 K6
0x8828091A, // 0084 GETMBR R10 R4 K26
0x8C2C011F, // 0085 GETMET R11 R0 K31
0x7C2C0200, // 0086 CALL R11 1
0x7C200600, // 0087 CALL R8 3
0x80041000, // 0088 RET 1 R8
0x7002006E, // 0089 JMP #00F9
0x54220009, // 008A LDINT R8 10
0x1C200C08, // 008B EQ R8 R6 R8
0x78220033, // 008C JMPF R8 #00C1
0x88200116, // 008D GETMBR R8 R0 K22
0x7822001B, // 008E JMPF R8 #00AB
0x88200117, // 008F GETMBR R8 R0 K23
0x8C201118, // 0090 GETMET R8 R8 K24
0x7C200200, // 0091 CALL R8 1
0x8C201111, // 0092 GETMET R8 R8 K17
0x58280020, // 0093 LDCONST R10 K32
0x7C200400, // 0094 CALL R8 2
0x7822000E, // 0095 JMPF R8 #00A5
0x8C240F11, // 0096 GETMET R9 R7 K17
0x5C2C1000, // 0097 MOVE R11 R8
0x58300021, // 0098 LDCONST R12 K33
0x7C240600, // 0099 CALL R9 3
0x24281305, // 009A GT R10 R9 K5
0x782A0002, // 009B JMPF R10 #009F
0x04281308, // 009C SUB R10 R9 K8
0x402A0A0A, // 009D CONNECT R10 K5 R10
0x9420100A, // 009E GETIDX R8 R8 R10
0x8C280706, // 009F GETMET R10 R3 K6
0x8830091A, // 00A0 GETMBR R12 R4 K26
0x5C341000, // 00A1 MOVE R13 R8
0x7C280600, // 00A2 CALL R10 3
0x80041400, // 00A3 RET 1 R10
0x70020004, // 00A4 JMP #00AA
0x8C240706, // 00A5 GETMET R9 R3 K6
0x882C091B, // 00A6 GETMBR R11 R4 K27
0x4C300000, // 00A7 LDNIL R12
0x7C240600, // 00A8 CALL R9 3
0x80041200, // 00A9 RET 1 R9
0x70020014, // 00AA JMP #00C0
0xB8223800, // 00AB GETNGBL R8 K28
0x8C20111D, // 00AC GETMET R8 R8 K29
0x58280022, // 00AD LDCONST R10 K34
0x502C0200, // 00AE LDBOOL R11 1 0
0x7C200600, // 00AF CALL R8 3
0x94201123, // 00B0 GETIDX R8 R8 K35
0x94201124, // 00B1 GETIDX R8 R8 K36
0x8C240F11, // 00B2 GETMET R9 R7 K17
0x5C2C1000, // 00B3 MOVE R11 R8
0x58300021, // 00B4 LDCONST R12 K33
0x7C240600, // 00B5 CALL R9 3
0x24281305, // 00B6 GT R10 R9 K5
0x782A0002, // 00B7 JMPF R10 #00BB
0x04281308, // 00B8 SUB R10 R9 K8
0x402A0A0A, // 00B9 CONNECT R10 K5 R10
0x9420100A, // 00BA GETIDX R8 R8 R10
0x8C280706, // 00BB GETMET R10 R3 K6
0x8830091A, // 00BC GETMBR R12 R4 K26
0x5C341000, // 00BD MOVE R13 R8
0x7C280600, // 00BE CALL R10 3
0x80041400, // 00BF RET 1 R10
0x70020037, // 00C0 JMP #00F9
0x5422000E, // 00C1 LDINT R8 15
0x1C200C08, // 00C2 EQ R8 R6 R8
0x74220002, // 00C3 JMPT R8 #00C7
0x54220011, // 00C4 LDINT R8 18
0x1C200C08, // 00C5 EQ R8 R6 R8
0x78220020, // 00C6 JMPF R8 #00E8
0x88200116, // 00C7 GETMBR R8 R0 K22
0x78220012, // 00C8 JMPF R8 #00DC
0x88200117, // 00C9 GETMBR R8 R0 K23
0x8C201118, // 00CA GETMET R8 R8 K24
0x7C200200, // 00CB CALL R8 1
0x8C201111, // 00CC GETMET R8 R8 K17
0x58280025, // 00CD LDCONST R10 K37
0x7C200400, // 00CE CALL R8 2
0x78220005, // 00CF JMPF R8 #00D6
0x8C240706, // 00D0 GETMET R9 R3 K6
0x882C091A, // 00D1 GETMBR R11 R4 K26
0x5C301000, // 00D2 MOVE R12 R8
0x7C240600, // 00D3 CALL R9 3
0x80041200, // 00D4 RET 1 R9
0x70020004, // 00D5 JMP #00DB
0x8C240706, // 00D6 GETMET R9 R3 K6
0x882C091B, // 00D7 GETMBR R11 R4 K27
0x4C300000, // 00D8 LDNIL R12
0x7C240600, // 00D9 CALL R9 3
0x80041200, // 00DA RET 1 R9
0x7002000A, // 00DB JMP #00E7
0x8C200706, // 00DC GETMET R8 R3 K6
0x8828091A, // 00DD GETMBR R10 R4 K26
0xB82E3800, // 00DE GETNGBL R11 K28
0x8C2C1726, // 00DF GETMET R11 R11 K38
0x7C2C0200, // 00E0 CALL R11 1
0x8C2C1711, // 00E1 GETMET R11 R11 K17
0x58340025, // 00E2 LDCONST R13 K37
0x58380027, // 00E3 LDCONST R14 K39
0x7C2C0600, // 00E4 CALL R11 3
0x7C200600, // 00E5 CALL R8 3
0x80041000, // 00E6 RET 1 R8
0x70020010, // 00E7 JMP #00F9
0x54220010, // 00E8 LDINT R8 17
0x1C200C08, // 00E9 EQ R8 R6 R8
0x7822000D, // 00EA JMPF R8 #00F9
0x88200116, // 00EB GETMBR R8 R0 K22
0x78220006, // 00EC JMPF R8 #00F4
0x8C200706, // 00ED GETMET R8 R3 K6
0x88280928, // 00EE GETMBR R10 R4 K40
0x882C0117, // 00EF GETMBR R11 R0 K23
0x882C1729, // 00F0 GETMBR R11 R11 K41
0x7C200600, // 00F1 CALL R8 3
0x80041000, // 00F2 RET 1 R8
0x70020004, // 00F3 JMP #00F9
0x8C200706, // 00F4 GETMET R8 R3 K6
0x88280928, // 00F5 GETMBR R10 R4 K40
0x582C0008, // 00F6 LDCONST R11 K8
0x7C200600, // 00F7 CALL R8 3
0x80041000, // 00F8 RET 1 R8
0x601C0003, // 00F9 GETGBL R7 G3
0x5C200000, // 00FA MOVE R8 R0
0x7C1C0200, // 00FB CALL R7 1
0x8C1C0F2A, // 00FC GETMET R7 R7 K42
0x5C240200, // 00FD MOVE R9 R1
0x5C280400, // 00FE MOVE R10 R2
0x5C2C0600, // 00FF MOVE R11 R3
0x7C1C0800, // 0100 CALL R7 4
0x80040E00, // 0101 RET 1 R7
0x8C24071A, // 0068 GETMET R9 R3 K26
0x882C091B, // 0069 GETMBR R11 R4 K27
0x5C301000, // 006A MOVE R12 R8
0x7C240600, // 006B CALL R9 3
0x80041200, // 006C RET 1 R9
0x70020009, // 006D JMP #0078
0x8C200706, // 006E GETMET R8 R3 K6
0x8828091B, // 006F GETMBR R10 R4 K27
0xB82E3800, // 0070 GETNGBL R11 K28
0x8C2C171D, // 0071 GETMET R11 R11 K29
0x5834001E, // 0072 LDCONST R13 K30
0x50380200, // 0073 LDBOOL R14 1 0
0x7C2C0600, // 0074 CALL R11 3
0x942C171E, // 0075 GETIDX R11 R11 K30
0x7C200600, // 0076 CALL R8 3
0x80041000, // 0077 RET 1 R8
0x70020071, // 0078 JMP #00EB
0x54220004, // 0079 LDINT R8 5
0x1C200C08, // 007A EQ R8 R6 R8
0x78220006, // 007B JMPF R8 #0083
0x8C200706, // 007C GETMET R8 R3 K6
0x8828091B, // 007D GETMBR R10 R4 K27
0x8C2C011F, // 007E GETMET R11 R0 K31
0x7C2C0200, // 007F CALL R11 1
0x7C200600, // 0080 CALL R8 3
0x80041000, // 0081 RET 1 R8
0x70020067, // 0082 JMP #00EB
0x54220009, // 0083 LDINT R8 10
0x1C200C08, // 0084 EQ R8 R6 R8
0x78220033, // 0085 JMPF R8 #00BA
0x88200116, // 0086 GETMBR R8 R0 K22
0x7822001B, // 0087 JMPF R8 #00A4
0x88200117, // 0088 GETMBR R8 R0 K23
0x8C201118, // 0089 GETMET R8 R8 K24
0x7C200200, // 008A CALL R8 1
0x8C201111, // 008B GETMET R8 R8 K17
0x58280020, // 008C LDCONST R10 K32
0x7C200400, // 008D CALL R8 2
0x7822000E, // 008E JMPF R8 #009E
0x8C240F11, // 008F GETMET R9 R7 K17
0x5C2C1000, // 0090 MOVE R11 R8
0x58300021, // 0091 LDCONST R12 K33
0x7C240600, // 0092 CALL R9 3
0x24281305, // 0093 GT R10 R9 K5
0x782A0002, // 0094 JMPF R10 #0098
0x04281308, // 0095 SUB R10 R9 K8
0x402A0A0A, // 0096 CONNECT R10 K5 R10
0x9420100A, // 0097 GETIDX R8 R8 R10
0x8C280706, // 0098 GETMET R10 R3 K6
0x8830091B, // 0099 GETMBR R12 R4 K27
0x5C341000, // 009A MOVE R13 R8
0x7C280600, // 009B CALL R10 3
0x80041400, // 009C RET 1 R10
0x70020004, // 009D JMP #00A3
0x8C240706, // 009E GETMET R9 R3 K6
0x882C0922, // 009F GETMBR R11 R4 K34
0x4C300000, // 00A0 LDNIL R12
0x7C240600, // 00A1 CALL R9 3
0x80041200, // 00A2 RET 1 R9
0x70020014, // 00A3 JMP #00B9
0xB8223800, // 00A4 GETNGBL R8 K28
0x8C20111D, // 00A5 GETMET R8 R8 K29
0x58280023, // 00A6 LDCONST R10 K35
0x502C0200, // 00A7 LDBOOL R11 1 0
0x7C200600, // 00A8 CALL R8 3
0x94201124, // 00A9 GETIDX R8 R8 K36
0x94201125, // 00AA GETIDX R8 R8 K37
0x8C240F11, // 00AB GETMET R9 R7 K17
0x5C2C1000, // 00AC MOVE R11 R8
0x58300021, // 00AD LDCONST R12 K33
0x7C240600, // 00AE CALL R9 3
0x24281305, // 00AF GT R10 R9 K5
0x782A0002, // 00B0 JMPF R10 #00B4
0x04281308, // 00B1 SUB R10 R9 K8
0x402A0A0A, // 00B2 CONNECT R10 K5 R10
0x9420100A, // 00B3 GETIDX R8 R8 R10
0x8C280706, // 00B4 GETMET R10 R3 K6
0x8830091B, // 00B5 GETMBR R12 R4 K27
0x5C341000, // 00B6 MOVE R13 R8
0x7C280600, // 00B7 CALL R10 3
0x80041400, // 00B8 RET 1 R10
0x70020030, // 00B9 JMP #00EB
0x5422000E, // 00BA LDINT R8 15
0x1C200C08, // 00BB EQ R8 R6 R8
0x74220002, // 00BC JMPT R8 #00C0
0x54220011, // 00BD LDINT R8 18
0x1C200C08, // 00BE EQ R8 R6 R8
0x78220019, // 00BF JMPF R8 #00DA
0x88200116, // 00C0 GETMBR R8 R0 K22
0x7822000B, // 00C1 JMPF R8 #00CE
0x88200117, // 00C2 GETMBR R8 R0 K23
0x8C201118, // 00C3 GETMET R8 R8 K24
0x7C200200, // 00C4 CALL R8 1
0x8C201111, // 00C5 GETMET R8 R8 K17
0x58280026, // 00C6 LDCONST R10 K38
0x7C200400, // 00C7 CALL R8 2
0x8C24071A, // 00C8 GETMET R9 R3 K26
0x882C091B, // 00C9 GETMBR R11 R4 K27
0x5C301000, // 00CA MOVE R12 R8
0x7C240600, // 00CB CALL R9 3
0x80041200, // 00CC RET 1 R9
0x7002000A, // 00CD JMP #00D9
0x8C200706, // 00CE GETMET R8 R3 K6
0x8828091B, // 00CF GETMBR R10 R4 K27
0xB82E3800, // 00D0 GETNGBL R11 K28
0x8C2C1727, // 00D1 GETMET R11 R11 K39
0x7C2C0200, // 00D2 CALL R11 1
0x8C2C1711, // 00D3 GETMET R11 R11 K17
0x58340026, // 00D4 LDCONST R13 K38
0x58380028, // 00D5 LDCONST R14 K40
0x7C2C0600, // 00D6 CALL R11 3
0x7C200600, // 00D7 CALL R8 3
0x80041000, // 00D8 RET 1 R8
0x70020010, // 00D9 JMP #00EB
0x54220010, // 00DA LDINT R8 17
0x1C200C08, // 00DB EQ R8 R6 R8
0x7822000D, // 00DC JMPF R8 #00EB
0x88200116, // 00DD GETMBR R8 R0 K22
0x78220006, // 00DE JMPF R8 #00E6
0x8C200706, // 00DF GETMET R8 R3 K6
0x88280929, // 00E0 GETMBR R10 R4 K41
0x882C0117, // 00E1 GETMBR R11 R0 K23
0x882C172A, // 00E2 GETMBR R11 R11 K42
0x7C200600, // 00E3 CALL R8 3
0x80041000, // 00E4 RET 1 R8
0x70020004, // 00E5 JMP #00EB
0x8C200706, // 00E6 GETMET R8 R3 K6
0x88280929, // 00E7 GETMBR R10 R4 K41
0x582C0008, // 00E8 LDCONST R11 K8
0x7C200600, // 00E9 CALL R8 3
0x80041000, // 00EA RET 1 R8
0x601C0003, // 00EB GETGBL R7 G3
0x5C200000, // 00EC MOVE R8 R0
0x7C1C0200, // 00ED CALL R7 1
0x8C1C0F2B, // 00EE GETMET R7 R7 K43
0x5C240200, // 00EF MOVE R9 R1
0x5C280400, // 00F0 MOVE R10 R2
0x5C2C0600, // 00F1 MOVE R11 R3
0x7C1C0800, // 00F2 CALL R7 4
0x80040E00, // 00F3 RET 1 R7
})
)
);

View File

@ -283,130 +283,119 @@ be_local_closure(class_Matter_Plugin_Sensor_Air_Quality_read_attribute, /* nam
0, /* has sup protos */
NULL,
1, /* has constants */
( &(const bvalue[ 8]) { /* constants */
( &(const bvalue[ 9]) { /* constants */
/* K0 */ be_const_int(0),
/* K1 */ be_nested_str_weak(set),
/* K1 */ be_nested_str_weak(set_or_nil),
/* K2 */ be_nested_str_weak(FLOAT),
/* K3 */ be_nested_str_weak(NULL),
/* K4 */ be_const_int(1),
/* K5 */ be_const_int(2),
/* K6 */ be_nested_str_weak(U1),
/* K7 */ be_nested_str_weak(U4),
/* K3 */ be_const_int(1),
/* K4 */ be_nested_str_weak(set),
/* K5 */ be_nested_str_weak(NULL),
/* K6 */ be_const_int(2),
/* K7 */ be_nested_str_weak(U1),
/* K8 */ be_nested_str_weak(U4),
}),
be_str_weak(handle_value),
&be_const_str_solidified,
( &(const binstruction[85]) { /* code */
( &(const binstruction[74]) { /* code */
0x4C080000, // 0000 LDNIL R2
0x1C080202, // 0001 EQ R2 R1 R2
0x780A0000, // 0002 JMPF R2 #0004
0x58040000, // 0003 LDCONST R1 K0
0x68080000, // 0004 GETUPV R2 U0
0x1C080500, // 0005 EQ R2 R2 K0
0x780A0012, // 0006 JMPF R2 #001A
0x4C080000, // 0007 LDNIL R2
0x20080002, // 0008 NE R2 R0 R2
0x780A0007, // 0009 JMPF R2 #0012
0x68080001, // 000A GETUPV R2 U1
0x8C080501, // 000B GETMET R2 R2 K1
0x68100002, // 000C GETUPV R4 U2
0x88100902, // 000D GETMBR R4 R4 K2
0x5C140000, // 000E MOVE R5 R0
0x7C080600, // 000F CALL R2 3
0x80040400, // 0010 RET 1 R2
0x70020006, // 0011 JMP #0019
0x780A0007, // 0006 JMPF R2 #000F
0x68080001, // 0007 GETUPV R2 U1
0x8C080501, // 0008 GETMET R2 R2 K1
0x68100002, // 0009 GETUPV R4 U2
0x88100902, // 000A GETMBR R4 R4 K2
0x5C140000, // 000B MOVE R5 R0
0x7C080600, // 000C CALL R2 3
0x80040400, // 000D RET 1 R2
0x70020038, // 000E JMP #0048
0x68080000, // 000F GETUPV R2 U0
0x1C080503, // 0010 EQ R2 R2 K3
0x780A0007, // 0011 JMPF R2 #001A
0x68080001, // 0012 GETUPV R2 U1
0x8C080501, // 0013 GETMET R2 R2 K1
0x8C080504, // 0013 GETMET R2 R2 K4
0x68100002, // 0014 GETUPV R4 U2
0x88100903, // 0015 GETMBR R4 R4 K3
0x88100905, // 0015 GETMBR R4 R4 K5
0x4C140000, // 0016 LDNIL R5
0x7C080600, // 0017 CALL R2 3
0x80040400, // 0018 RET 1 R2
0x70020038, // 0019 JMP #0053
0x7002002D, // 0019 JMP #0048
0x68080000, // 001A GETUPV R2 U0
0x1C080504, // 001B EQ R2 R2 K4
0x1C080506, // 001B EQ R2 R2 K6
0x780A0007, // 001C JMPF R2 #0025
0x68080001, // 001D GETUPV R2 U1
0x8C080501, // 001E GETMET R2 R2 K1
0x8C080504, // 001E GETMET R2 R2 K4
0x68100002, // 001F GETUPV R4 U2
0x88100903, // 0020 GETMBR R4 R4 K3
0x88100905, // 0020 GETMBR R4 R4 K5
0x4C140000, // 0021 LDNIL R5
0x7C080600, // 0022 CALL R2 3
0x80040400, // 0023 RET 1 R2
0x7002002D, // 0024 JMP #0053
0x70020022, // 0024 JMP #0048
0x68080000, // 0025 GETUPV R2 U0
0x1C080505, // 0026 EQ R2 R2 K5
0x780A0007, // 0027 JMPF R2 #0030
0x68080001, // 0028 GETUPV R2 U1
0x8C080501, // 0029 GETMET R2 R2 K1
0x68100002, // 002A GETUPV R4 U2
0x88100903, // 002B GETMBR R4 R4 K3
0x4C140000, // 002C LDNIL R5
0x7C080600, // 002D CALL R2 3
0x80040400, // 002E RET 1 R2
0x70020022, // 002F JMP #0053
0x68080000, // 0030 GETUPV R2 U0
0x540E0007, // 0031 LDINT R3 8
0x1C080403, // 0032 EQ R2 R2 R3
0x780A0007, // 0033 JMPF R2 #003C
0x68080001, // 0034 GETUPV R2 U1
0x8C080501, // 0035 GETMET R2 R2 K1
0x68100002, // 0036 GETUPV R4 U2
0x88100906, // 0037 GETMBR R4 R4 K6
0x5C140200, // 0038 MOVE R5 R1
0x7C080600, // 0039 CALL R2 3
0x80040400, // 003A RET 1 R2
0x70020016, // 003B JMP #0053
0x68080000, // 003C GETUPV R2 U0
0x540E0008, // 003D LDINT R3 9
0x1C080403, // 003E EQ R2 R2 R3
0x780A0007, // 003F JMPF R2 #0048
0x68080001, // 0040 GETUPV R2 U1
0x8C080501, // 0041 GETMET R2 R2 K1
0x68100002, // 0042 GETUPV R4 U2
0x88100906, // 0043 GETMBR R4 R4 K6
0x58140000, // 0044 LDCONST R5 K0
0x7C080600, // 0045 CALL R2 3
0x80040400, // 0046 RET 1 R2
0x7002000A, // 0047 JMP #0053
0x68080000, // 0048 GETUPV R2 U0
0x540EFFFB, // 0049 LDINT R3 65532
0x1C080403, // 004A EQ R2 R2 R3
0x780A0006, // 004B JMPF R2 #0053
0x68080001, // 004C GETUPV R2 U1
0x8C080501, // 004D GETMET R2 R2 K1
0x68100002, // 004E GETUPV R4 U2
0x88100907, // 004F GETMBR R4 R4 K7
0x58140004, // 0050 LDCONST R5 K4
0x7C080600, // 0051 CALL R2 3
0x80040400, // 0052 RET 1 R2
0x4C080000, // 0053 LDNIL R2
0x80040400, // 0054 RET 1 R2
0x540E0007, // 0026 LDINT R3 8
0x1C080403, // 0027 EQ R2 R2 R3
0x780A0007, // 0028 JMPF R2 #0031
0x68080001, // 0029 GETUPV R2 U1
0x8C080504, // 002A GETMET R2 R2 K4
0x68100002, // 002B GETUPV R4 U2
0x88100907, // 002C GETMBR R4 R4 K7
0x5C140200, // 002D MOVE R5 R1
0x7C080600, // 002E CALL R2 3
0x80040400, // 002F RET 1 R2
0x70020016, // 0030 JMP #0048
0x68080000, // 0031 GETUPV R2 U0
0x540E0008, // 0032 LDINT R3 9
0x1C080403, // 0033 EQ R2 R2 R3
0x780A0007, // 0034 JMPF R2 #003D
0x68080001, // 0035 GETUPV R2 U1
0x8C080504, // 0036 GETMET R2 R2 K4
0x68100002, // 0037 GETUPV R4 U2
0x88100907, // 0038 GETMBR R4 R4 K7
0x58140000, // 0039 LDCONST R5 K0
0x7C080600, // 003A CALL R2 3
0x80040400, // 003B RET 1 R2
0x7002000A, // 003C JMP #0048
0x68080000, // 003D GETUPV R2 U0
0x540EFFFB, // 003E LDINT R3 65532
0x1C080403, // 003F EQ R2 R2 R3
0x780A0006, // 0040 JMPF R2 #0048
0x68080001, // 0041 GETUPV R2 U1
0x8C080504, // 0042 GETMET R2 R2 K4
0x68100002, // 0043 GETUPV R4 U2
0x88100908, // 0044 GETMBR R4 R4 K8
0x58140003, // 0045 LDCONST R5 K3
0x7C080600, // 0046 CALL R2 3
0x80040400, // 0047 RET 1 R2
0x4C080000, // 0048 LDNIL R2
0x80040400, // 0049 RET 1 R2
})
),
&be_class_Matter_Plugin_Sensor_Air_Quality,
}),
1, /* has constants */
( &(const bvalue[16]) { /* constants */
( &(const bvalue[15]) { /* constants */
/* K0 */ be_nested_str_weak(matter),
/* K1 */ be_nested_str_weak(TLV),
/* K2 */ be_nested_str_weak(cluster),
/* K3 */ be_nested_str_weak(attribute),
/* K4 */ be_const_int(0),
/* K5 */ be_nested_str_weak(shadow_air_quality),
/* K6 */ be_nested_str_weak(set),
/* K7 */ be_nested_str_weak(U1),
/* K8 */ be_nested_str_weak(NULL),
/* K9 */ be_nested_str_weak(shadow_co2),
/* K10 */ be_nested_str_weak(shadow_pm1),
/* K11 */ be_nested_str_weak(shadow_pm2_5),
/* K12 */ be_nested_str_weak(shadow_pm10),
/* K13 */ be_nested_str_weak(shadow_tvoc),
/* K14 */ be_nested_str_weak(shadow_no2),
/* K15 */ be_nested_str_weak(read_attribute),
/* K5 */ be_nested_str_weak(set_or_nil),
/* K6 */ be_nested_str_weak(U1),
/* K7 */ be_nested_str_weak(shadow_air_quality),
/* K8 */ be_nested_str_weak(shadow_co2),
/* K9 */ be_nested_str_weak(shadow_pm1),
/* K10 */ be_nested_str_weak(shadow_pm2_5),
/* K11 */ be_nested_str_weak(shadow_pm10),
/* K12 */ be_nested_str_weak(shadow_tvoc),
/* K13 */ be_nested_str_weak(shadow_no2),
/* K14 */ be_nested_str_weak(read_attribute),
}),
be_str_weak(read_attribute),
&be_const_str_solidified,
( &(const binstruction[104]) { /* code */
( &(const binstruction[93]) { /* code */
0xB8120000, // 0000 GETNGBL R4 K0
0x88100901, // 0001 GETMBR R4 R4 K1
0x88140502, // 0002 GETMBR R5 R2 K2
@ -415,28 +404,28 @@ be_local_closure(class_Matter_Plugin_Sensor_Air_Quality_read_attribute, /* nam
0x84200000, // 0005 CLOSURE R8 P0
0x5426005A, // 0006 LDINT R9 91
0x1C240A09, // 0007 EQ R9 R5 R9
0x78260013, // 0008 JMPF R9 #001D
0x78260008, // 0008 JMPF R9 #0012
0x1C240D04, // 0009 EQ R9 R6 K4
0x78260010, // 000A JMPF R9 #001C
0x88240105, // 000B GETMBR R9 R0 K5
0x4C280000, // 000C LDNIL R10
0x2024120A, // 000D NE R9 R9 R10
0x78260006, // 000E JMPF R9 #0016
0x8C240706, // 000F GETMET R9 R3 K6
0x882C0907, // 0010 GETMBR R11 R4 K7
0x88300105, // 0011 GETMBR R12 R0 K5
0x7C240600, // 0012 CALL R9 3
0xA0000000, // 0013 CLOSE R0
0x80041200, // 0014 RET 1 R9
0x70020005, // 0015 JMP #001C
0x8C240706, // 0016 GETMET R9 R3 K6
0x882C0908, // 0017 GETMBR R11 R4 K8
0x4C300000, // 0018 LDNIL R12
0x7C240600, // 0019 CALL R9 3
0x78260005, // 000A JMPF R9 #0011
0x8C240705, // 000B GETMET R9 R3 K5
0x882C0906, // 000C GETMBR R11 R4 K6
0x88300107, // 000D GETMBR R12 R0 K7
0x7C240600, // 000E CALL R9 3
0xA0000000, // 000F CLOSE R0
0x80041200, // 0010 RET 1 R9
0x70020040, // 0011 JMP #0053
0x5426040C, // 0012 LDINT R9 1037
0x1C240A09, // 0013 EQ R9 R5 R9
0x78260007, // 0014 JMPF R9 #001D
0x5C241000, // 0015 MOVE R9 R8
0x88280108, // 0016 GETMBR R10 R0 K8
0x7C240200, // 0017 CALL R9 1
0x5C1C1200, // 0018 MOVE R7 R9
0x78260001, // 0019 JMPF R9 #001C
0xA0000000, // 001A CLOSE R0
0x80041200, // 001B RET 1 R9
0x70020040, // 001C JMP #005E
0x5426040C, // 001D LDINT R9 1037
0x80040E00, // 001B RET 1 R7
0x70020035, // 001C JMP #0053
0x5426042B, // 001D LDINT R9 1068
0x1C240A09, // 001E EQ R9 R5 R9
0x78260007, // 001F JMPF R9 #0028
0x5C241000, // 0020 MOVE R9 R8
@ -446,8 +435,8 @@ be_local_closure(class_Matter_Plugin_Sensor_Air_Quality_read_attribute, /* nam
0x78260001, // 0024 JMPF R9 #0027
0xA0000000, // 0025 CLOSE R0
0x80040E00, // 0026 RET 1 R7
0x70020035, // 0027 JMP #005E
0x5426042B, // 0028 LDINT R9 1068
0x7002002A, // 0027 JMP #0053
0x54260429, // 0028 LDINT R9 1066
0x1C240A09, // 0029 EQ R9 R5 R9
0x78260007, // 002A JMPF R9 #0033
0x5C241000, // 002B MOVE R9 R8
@ -457,8 +446,8 @@ be_local_closure(class_Matter_Plugin_Sensor_Air_Quality_read_attribute, /* nam
0x78260001, // 002F JMPF R9 #0032
0xA0000000, // 0030 CLOSE R0
0x80040E00, // 0031 RET 1 R7
0x7002002A, // 0032 JMP #005E
0x54260429, // 0033 LDINT R9 1066
0x7002001F, // 0032 JMP #0053
0x5426042C, // 0033 LDINT R9 1069
0x1C240A09, // 0034 EQ R9 R5 R9
0x78260007, // 0035 JMPF R9 #003E
0x5C241000, // 0036 MOVE R9 R8
@ -468,8 +457,8 @@ be_local_closure(class_Matter_Plugin_Sensor_Air_Quality_read_attribute, /* nam
0x78260001, // 003A JMPF R9 #003D
0xA0000000, // 003B CLOSE R0
0x80040E00, // 003C RET 1 R7
0x7002001F, // 003D JMP #005E
0x5426042C, // 003E LDINT R9 1069
0x70020014, // 003D JMP #0053
0x5426042D, // 003E LDINT R9 1070
0x1C240A09, // 003F EQ R9 R5 R9
0x78260007, // 0040 JMPF R9 #0049
0x5C241000, // 0041 MOVE R9 R8
@ -479,10 +468,10 @@ be_local_closure(class_Matter_Plugin_Sensor_Air_Quality_read_attribute, /* nam
0x78260001, // 0045 JMPF R9 #0048
0xA0000000, // 0046 CLOSE R0
0x80040E00, // 0047 RET 1 R7
0x70020014, // 0048 JMP #005E
0x5426042D, // 0049 LDINT R9 1070
0x70020009, // 0048 JMP #0053
0x54260412, // 0049 LDINT R9 1043
0x1C240A09, // 004A EQ R9 R5 R9
0x78260007, // 004B JMPF R9 #0054
0x78260006, // 004B JMPF R9 #0053
0x5C241000, // 004C MOVE R9 R8
0x8828010D, // 004D GETMBR R10 R0 K13
0x7C240200, // 004E CALL R9 1
@ -490,27 +479,16 @@ be_local_closure(class_Matter_Plugin_Sensor_Air_Quality_read_attribute, /* nam
0x78260001, // 0050 JMPF R9 #0053
0xA0000000, // 0051 CLOSE R0
0x80040E00, // 0052 RET 1 R7
0x70020009, // 0053 JMP #005E
0x54260412, // 0054 LDINT R9 1043
0x1C240A09, // 0055 EQ R9 R5 R9
0x78260006, // 0056 JMPF R9 #005E
0x5C241000, // 0057 MOVE R9 R8
0x8828010E, // 0058 GETMBR R10 R0 K14
0x7C240200, // 0059 CALL R9 1
0x5C1C1200, // 005A MOVE R7 R9
0x78260001, // 005B JMPF R9 #005E
0xA0000000, // 005C CLOSE R0
0x80040E00, // 005D RET 1 R7
0x60240003, // 005E GETGBL R9 G3
0x5C280000, // 005F MOVE R10 R0
0x7C240200, // 0060 CALL R9 1
0x8C24130F, // 0061 GETMET R9 R9 K15
0x5C2C0200, // 0062 MOVE R11 R1
0x5C300400, // 0063 MOVE R12 R2
0x5C340600, // 0064 MOVE R13 R3
0x7C240800, // 0065 CALL R9 4
0xA0000000, // 0066 CLOSE R0
0x80041200, // 0067 RET 1 R9
0x60240003, // 0053 GETGBL R9 G3
0x5C280000, // 0054 MOVE R10 R0
0x7C240200, // 0055 CALL R9 1
0x8C24130E, // 0056 GETMET R9 R9 K14
0x5C2C0200, // 0057 MOVE R11 R1
0x5C300400, // 0058 MOVE R12 R2
0x5C340600, // 0059 MOVE R13 R3
0x7C240800, // 005A CALL R9 4
0xA0000000, // 005B CLOSE R0
0x80041200, // 005C RET 1 R9
})
)
);

View File

@ -20,54 +20,43 @@ be_local_closure(class_Matter_Plugin_Sensor_Contact_read_attribute, /* name */
0, /* has sup protos */
&be_class_Matter_Plugin_Sensor_Contact,
1, /* has constants */
( &(const bvalue[10]) { /* constants */
( &(const bvalue[ 9]) { /* constants */
/* K0 */ be_nested_str_weak(matter),
/* K1 */ be_nested_str_weak(TLV),
/* K2 */ be_nested_str_weak(cluster),
/* K3 */ be_nested_str_weak(attribute),
/* K4 */ be_const_int(0),
/* K5 */ be_nested_str_weak(shadow_contact),
/* K6 */ be_nested_str_weak(set),
/* K7 */ be_nested_str_weak(BOOL),
/* K8 */ be_nested_str_weak(NULL),
/* K9 */ be_nested_str_weak(read_attribute),
/* K5 */ be_nested_str_weak(set_or_nil),
/* K6 */ be_nested_str_weak(BOOL),
/* K7 */ be_nested_str_weak(shadow_contact),
/* K8 */ be_nested_str_weak(read_attribute),
}),
be_str_weak(read_attribute),
&be_const_str_solidified,
( &(const binstruction[33]) { /* code */
( &(const binstruction[23]) { /* code */
0xB8120000, // 0000 GETNGBL R4 K0
0x88100901, // 0001 GETMBR R4 R4 K1
0x88140502, // 0002 GETMBR R5 R2 K2
0x88180503, // 0003 GETMBR R6 R2 K3
0x541E0044, // 0004 LDINT R7 69
0x1C1C0A07, // 0005 EQ R7 R5 R7
0x781E0010, // 0006 JMPF R7 #0018
0x781E0006, // 0006 JMPF R7 #000E
0x1C1C0D04, // 0007 EQ R7 R6 K4
0x781E000E, // 0008 JMPF R7 #0018
0x881C0105, // 0009 GETMBR R7 R0 K5
0x4C200000, // 000A LDNIL R8
0x201C0E08, // 000B NE R7 R7 R8
0x781E0005, // 000C JMPF R7 #0013
0x8C1C0706, // 000D GETMET R7 R3 K6
0x88240907, // 000E GETMBR R9 R4 K7
0x88280105, // 000F GETMBR R10 R0 K5
0x7C1C0600, // 0010 CALL R7 3
0x80040E00, // 0011 RET 1 R7
0x70020004, // 0012 JMP #0018
0x8C1C0706, // 0013 GETMET R7 R3 K6
0x88240908, // 0014 GETMBR R9 R4 K8
0x4C280000, // 0015 LDNIL R10
0x7C1C0600, // 0016 CALL R7 3
0x80040E00, // 0017 RET 1 R7
0x601C0003, // 0018 GETGBL R7 G3
0x5C200000, // 0019 MOVE R8 R0
0x7C1C0200, // 001A CALL R7 1
0x8C1C0F09, // 001B GETMET R7 R7 K9
0x5C240200, // 001C MOVE R9 R1
0x5C280400, // 001D MOVE R10 R2
0x5C2C0600, // 001E MOVE R11 R3
0x7C1C0800, // 001F CALL R7 4
0x80040E00, // 0020 RET 1 R7
0x781E0004, // 0008 JMPF R7 #000E
0x8C1C0705, // 0009 GETMET R7 R3 K5
0x88240906, // 000A GETMBR R9 R4 K6
0x88280107, // 000B GETMBR R10 R0 K7
0x7C1C0600, // 000C CALL R7 3
0x80040E00, // 000D RET 1 R7
0x601C0003, // 000E GETGBL R7 G3
0x5C200000, // 000F MOVE R8 R0
0x7C1C0200, // 0010 CALL R7 1
0x8C1C0F08, // 0011 GETMET R7 R7 K8
0x5C240200, // 0012 MOVE R9 R1
0x5C280400, // 0013 MOVE R10 R2
0x5C2C0600, // 0014 MOVE R11 R3
0x7C1C0800, // 0015 CALL R7 4
0x80040E00, // 0016 RET 1 R7
})
)
);

View File

@ -26,67 +26,57 @@ be_local_closure(class_Matter_Plugin_Sensor_Occupancy_read_attribute, /* name
/* K2 */ be_nested_str_weak(cluster),
/* K3 */ be_nested_str_weak(attribute),
/* K4 */ be_const_int(0),
/* K5 */ be_nested_str_weak(shadow_occupancy),
/* K6 */ be_nested_str_weak(set),
/* K7 */ be_nested_str_weak(U1),
/* K8 */ be_nested_str_weak(NULL),
/* K9 */ be_const_int(1),
/* K5 */ be_nested_str_weak(set_or_nil),
/* K6 */ be_nested_str_weak(U1),
/* K7 */ be_nested_str_weak(shadow_occupancy),
/* K8 */ be_const_int(1),
/* K9 */ be_nested_str_weak(set),
/* K10 */ be_const_int(3),
/* K11 */ be_const_int(2),
/* K12 */ be_nested_str_weak(read_attribute),
}),
be_str_weak(read_attribute),
&be_const_str_solidified,
( &(const binstruction[49]) { /* code */
( &(const binstruction[39]) { /* code */
0xB8120000, // 0000 GETNGBL R4 K0
0x88100901, // 0001 GETMBR R4 R4 K1
0x88140502, // 0002 GETMBR R5 R2 K2
0x88180503, // 0003 GETMBR R6 R2 K3
0x541E0405, // 0004 LDINT R7 1030
0x1C1C0A07, // 0005 EQ R7 R5 R7
0x781E0020, // 0006 JMPF R7 #0028
0x781E0016, // 0006 JMPF R7 #001E
0x1C1C0D04, // 0007 EQ R7 R6 K4
0x781E000F, // 0008 JMPF R7 #0019
0x881C0105, // 0009 GETMBR R7 R0 K5
0x4C200000, // 000A LDNIL R8
0x201C0E08, // 000B NE R7 R7 R8
0x781E0005, // 000C JMPF R7 #0013
0x8C1C0706, // 000D GETMET R7 R3 K6
0x88240907, // 000E GETMBR R9 R4 K7
0x88280105, // 000F GETMBR R10 R0 K5
0x7C1C0600, // 0010 CALL R7 3
0x80040E00, // 0011 RET 1 R7
0x70020004, // 0012 JMP #0018
0x8C1C0706, // 0013 GETMET R7 R3 K6
0x88240908, // 0014 GETMBR R9 R4 K8
0x4C280000, // 0015 LDNIL R10
0x7C1C0600, // 0016 CALL R7 3
0x80040E00, // 0017 RET 1 R7
0x7002000E, // 0018 JMP #0028
0x1C1C0D09, // 0019 EQ R7 R6 K9
0x781E0005, // 001A JMPF R7 #0021
0x8C1C0706, // 001B GETMET R7 R3 K6
0x88240907, // 001C GETMBR R9 R4 K7
0x5828000A, // 001D LDCONST R10 K10
0x7C1C0600, // 001E CALL R7 3
0x80040E00, // 001F RET 1 R7
0x70020006, // 0020 JMP #0028
0x1C1C0D0B, // 0021 EQ R7 R6 K11
0x781E0004, // 0022 JMPF R7 #0028
0x8C1C0706, // 0023 GETMET R7 R3 K6
0x88240907, // 0024 GETMBR R9 R4 K7
0x58280004, // 0025 LDCONST R10 K4
0x7C1C0600, // 0026 CALL R7 3
0x80040E00, // 0027 RET 1 R7
0x601C0003, // 0028 GETGBL R7 G3
0x5C200000, // 0029 MOVE R8 R0
0x7C1C0200, // 002A CALL R7 1
0x8C1C0F0C, // 002B GETMET R7 R7 K12
0x5C240200, // 002C MOVE R9 R1
0x5C280400, // 002D MOVE R10 R2
0x5C2C0600, // 002E MOVE R11 R3
0x7C1C0800, // 002F CALL R7 4
0x80040E00, // 0030 RET 1 R7
0x781E0005, // 0008 JMPF R7 #000F
0x8C1C0705, // 0009 GETMET R7 R3 K5
0x88240906, // 000A GETMBR R9 R4 K6
0x88280107, // 000B GETMBR R10 R0 K7
0x7C1C0600, // 000C CALL R7 3
0x80040E00, // 000D RET 1 R7
0x7002000E, // 000E JMP #001E
0x1C1C0D08, // 000F EQ R7 R6 K8
0x781E0005, // 0010 JMPF R7 #0017
0x8C1C0709, // 0011 GETMET R7 R3 K9
0x88240906, // 0012 GETMBR R9 R4 K6
0x5828000A, // 0013 LDCONST R10 K10
0x7C1C0600, // 0014 CALL R7 3
0x80040E00, // 0015 RET 1 R7
0x70020006, // 0016 JMP #001E
0x1C1C0D0B, // 0017 EQ R7 R6 K11
0x781E0004, // 0018 JMPF R7 #001E
0x8C1C0709, // 0019 GETMET R7 R3 K9
0x88240906, // 001A GETMBR R9 R4 K6
0x58280004, // 001B LDCONST R10 K4
0x7C1C0600, // 001C CALL R7 3
0x80040E00, // 001D RET 1 R7
0x601C0003, // 001E GETGBL R7 G3
0x5C200000, // 001F MOVE R8 R0
0x7C1C0200, // 0020 CALL R7 1
0x8C1C0F0C, // 0021 GETMET R7 R7 K12
0x5C240200, // 0022 MOVE R9 R1
0x5C280400, // 0023 MOVE R10 R2
0x5C2C0600, // 0024 MOVE R11 R3
0x7C1C0800, // 0025 CALL R7 4
0x80040E00, // 0026 RET 1 R7
})
)
);

View File

@ -90,7 +90,7 @@ be_local_closure(class_Matter_Plugin_Shutter_invoke_request, /* name */
}),
be_str_weak(invoke_request),
&be_const_str_solidified,
( &(const binstruction[116]) { /* code */
( &(const binstruction[115]) { /* code */
0xA4120000, // 0000 IMPORT R4 K0
0xB8160200, // 0001 GETNGBL R5 K1
0x88140B02, // 0002 GETMBR R5 R5 K2
@ -98,7 +98,7 @@ be_local_closure(class_Matter_Plugin_Shutter_invoke_request, /* name */
0x881C0704, // 0004 GETMBR R7 R3 K4
0x54220101, // 0005 LDINT R8 258
0x1C200C08, // 0006 EQ R8 R6 R8
0x78220061, // 0007 JMPF R8 #006A
0x78220060, // 0007 JMPF R8 #0069
0x8C200105, // 0008 GETMET R8 R0 K5
0x7C200200, // 0009 CALL R8 1
0x1C200F06, // 000A EQ R8 R7 K6
@ -116,7 +116,7 @@ be_local_closure(class_Matter_Plugin_Shutter_invoke_request, /* name */
0x7C200200, // 0016 CALL R8 1
0x50200200, // 0017 LDBOOL R8 1 0
0x80041000, // 0018 RET 1 R8
0x7002004E, // 0019 JMP #0069
0x7002004D, // 0019 JMP #0068
0x1C200F0B, // 001A EQ R8 R7 K11
0x7822000D, // 001B JMPF R8 #002A
0xB8220E00, // 001C GETNGBL R8 K7
@ -132,7 +132,7 @@ be_local_closure(class_Matter_Plugin_Shutter_invoke_request, /* name */
0x7C200200, // 0026 CALL R8 1
0x50200200, // 0027 LDBOOL R8 1 0
0x80041000, // 0028 RET 1 R8
0x7002003E, // 0029 JMP #0069
0x7002003D, // 0029 JMP #0068
0x1C200F0E, // 002A EQ R8 R7 K14
0x7822000D, // 002B JMPF R8 #003A
0xB8220E00, // 002C GETNGBL R8 K7
@ -148,65 +148,64 @@ be_local_closure(class_Matter_Plugin_Shutter_invoke_request, /* name */
0x7C200200, // 0036 CALL R8 1
0x50200200, // 0037 LDBOOL R8 1 0
0x80041000, // 0038 RET 1 R8
0x7002002E, // 0039 JMP #0069
0x7002002D, // 0039 JMP #0068
0x54220004, // 003A LDINT R8 5
0x1C200E08, // 003B EQ R8 R7 R8
0x7822002B, // 003C JMPF R8 #0069
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
0x7826001B, // 004A JMPF R9 #0067
0x54260063, // 004B LDINT R9 100
0x0C201009, // 004C DIV R8 R8 R9
0x88240113, // 004D GETMBR R9 R0 K19
0x1C241306, // 004E EQ R9 R9 K6
0x78260001, // 004F JMPF R9 #0052
0x54260063, // 0050 LDINT R9 100
0x04201208, // 0051 SUB R8 R9 R8
0xB8260E00, // 0052 GETNGBL R9 K7
0x8C241308, // 0053 GETMET R9 R9 K8
0x602C0008, // 0054 GETGBL R11 G8
0x8830010A, // 0055 GETMBR R12 R0 K10
0x0030190B, // 0056 ADD R12 R12 K11
0x7C2C0200, // 0057 CALL R11 1
0x002E280B, // 0058 ADD R11 K20 R11
0x002C1715, // 0059 ADD R11 R11 K21
0x60300008, // 005A GETGBL R12 G8
0x5C341000, // 005B MOVE R13 R8
0x7C300200, // 005C CALL R12 1
0x002C160C, // 005D ADD R11 R11 R12
0x50300200, // 005E LDBOOL R12 1 0
0x7C240600, // 005F CALL R9 3
0x60240008, // 0060 GETGBL R9 G8
0x5C281000, // 0061 MOVE R10 R8
0x7C240200, // 0062 CALL R9 1
0x00262C09, // 0063 ADD R9 K22 R9
0x900E2009, // 0064 SETMBR R3 K16 R9
0x8C24010C, // 0065 GETMET R9 R0 K12
0x7C240200, // 0066 CALL R9 1
0x50240200, // 0067 LDBOOL R9 1 0
0x80041200, // 0068 RET 1 R9
0x70020008, // 0069 JMP #0073
0x60200003, // 006A GETGBL R8 G3
0x5C240000, // 006B MOVE R9 R0
0x7C200200, // 006C CALL R8 1
0x8C201117, // 006D GETMET R8 R8 K23
0x5C280200, // 006E MOVE R10 R1
0x5C2C0400, // 006F MOVE R11 R2
0x5C300600, // 0070 MOVE R12 R3
0x7C200800, // 0071 CALL R8 4
0x80041000, // 0072 RET 1 R8
0x80000000, // 0073 RET 0
0x7822002A, // 003C JMPF R8 #0068
0xB8222000, // 003D GETNGBL R8 K16
0x60240008, // 003E GETGBL R9 G8
0x5C280400, // 003F MOVE R10 R2
0x7C240200, // 0040 CALL R9 1
0x00262209, // 0041 ADD R9 K17 R9
0x5828000E, // 0042 LDCONST R10 K14
0x7C200400, // 0043 CALL R8 2
0x8C200512, // 0044 GETMET R8 R2 K18
0x58280006, // 0045 LDCONST R10 K6
0x7C200400, // 0046 CALL R8 2
0x4C240000, // 0047 LDNIL R9
0x20241009, // 0048 NE R9 R8 R9
0x7826001B, // 0049 JMPF R9 #0066
0x54260063, // 004A LDINT R9 100
0x0C201009, // 004B DIV R8 R8 R9
0x88240113, // 004C GETMBR R9 R0 K19
0x1C241306, // 004D EQ R9 R9 K6
0x78260001, // 004E JMPF R9 #0051
0x54260063, // 004F LDINT R9 100
0x04201208, // 0050 SUB R8 R9 R8
0xB8260E00, // 0051 GETNGBL R9 K7
0x8C241308, // 0052 GETMET R9 R9 K8
0x602C0008, // 0053 GETGBL R11 G8
0x8830010A, // 0054 GETMBR R12 R0 K10
0x0030190B, // 0055 ADD R12 R12 K11
0x7C2C0200, // 0056 CALL R11 1
0x002E280B, // 0057 ADD R11 K20 R11
0x002C1715, // 0058 ADD R11 R11 K21
0x60300008, // 0059 GETGBL R12 G8
0x5C341000, // 005A MOVE R13 R8
0x7C300200, // 005B CALL R12 1
0x002C160C, // 005C ADD R11 R11 R12
0x50300200, // 005D LDBOOL R12 1 0
0x7C240600, // 005E CALL R9 3
0x60240008, // 005F GETGBL R9 G8
0x5C281000, // 0060 MOVE R10 R8
0x7C240200, // 0061 CALL R9 1
0x00262C09, // 0062 ADD R9 K22 R9
0x900E2009, // 0063 SETMBR R3 K16 R9
0x8C24010C, // 0064 GETMET R9 R0 K12
0x7C240200, // 0065 CALL R9 1
0x50240200, // 0066 LDBOOL R9 1 0
0x80041200, // 0067 RET 1 R9
0x70020008, // 0068 JMP #0072
0x60200003, // 0069 GETGBL R8 G3
0x5C240000, // 006A MOVE R9 R0
0x7C200200, // 006B CALL R8 1
0x8C201117, // 006C GETMET R8 R8 K23
0x5C280200, // 006D MOVE R10 R1
0x5C2C0400, // 006E MOVE R11 R2
0x5C300600, // 006F MOVE R12 R3
0x7C200800, // 0070 CALL R8 4
0x80041000, // 0071 RET 1 R8
0x80000000, // 0072 RET 0
})
)
);

View File

@ -58,68 +58,58 @@ be_local_closure(class_Matter_Plugin_Sensor_Flow_read_attribute, /* name */
/* K2 */ be_nested_str_weak(cluster),
/* K3 */ be_nested_str_weak(attribute),
/* K4 */ be_const_int(0),
/* K5 */ be_nested_str_weak(shadow_value),
/* K6 */ be_nested_str_weak(set),
/* K7 */ be_nested_str_weak(U2),
/* K8 */ be_nested_str_weak(NULL),
/* K9 */ be_const_int(1),
/* K5 */ be_nested_str_weak(set_or_nil),
/* K6 */ be_nested_str_weak(U2),
/* K7 */ be_nested_str_weak(shadow_value),
/* K8 */ be_const_int(1),
/* K9 */ be_nested_str_weak(set),
/* K10 */ be_const_int(2),
/* K11 */ be_nested_str_weak(read_attribute),
}),
be_str_weak(read_attribute),
&be_const_str_solidified,
( &(const binstruction[51]) { /* code */
( &(const binstruction[41]) { /* code */
0xB8120000, // 0000 GETNGBL R4 K0
0x88100901, // 0001 GETMBR R4 R4 K1
0x88140502, // 0002 GETMBR R5 R2 K2
0x88180503, // 0003 GETMBR R6 R2 K3
0x541E0403, // 0004 LDINT R7 1028
0x1C1C0A07, // 0005 EQ R7 R5 R7
0x781E0022, // 0006 JMPF R7 #002A
0x781E0018, // 0006 JMPF R7 #0020
0x1C1C0D04, // 0007 EQ R7 R6 K4
0x781E0011, // 0008 JMPF R7 #001B
0x881C0105, // 0009 GETMBR R7 R0 K5
0x4C200000, // 000A LDNIL R8
0x201C0E08, // 000B NE R7 R7 R8
0x781E0007, // 000C JMPF R7 #0015
0x8C1C0706, // 000D GETMET R7 R3 K6
0x88240907, // 000E GETMBR R9 R4 K7
0x60280009, // 000F GETGBL R10 G9
0x882C0105, // 0010 GETMBR R11 R0 K5
0x7C280200, // 0011 CALL R10 1
0x7C1C0600, // 0012 CALL R7 3
0x80040E00, // 0013 RET 1 R7
0x70020004, // 0014 JMP #001A
0x8C1C0706, // 0015 GETMET R7 R3 K6
0x88240908, // 0016 GETMBR R9 R4 K8
0x4C280000, // 0017 LDNIL R10
0x7C1C0600, // 0018 CALL R7 3
0x80040E00, // 0019 RET 1 R7
0x7002000E, // 001A JMP #002A
0x1C1C0D09, // 001B EQ R7 R6 K9
0x781E0005, // 001C JMPF R7 #0023
0x8C1C0706, // 001D GETMET R7 R3 K6
0x88240907, // 001E GETMBR R9 R4 K7
0x58280004, // 001F LDCONST R10 K4
0x7C1C0600, // 0020 CALL R7 3
0x80040E00, // 0021 RET 1 R7
0x70020006, // 0022 JMP #002A
0x1C1C0D0A, // 0023 EQ R7 R6 K10
0x781E0004, // 0024 JMPF R7 #002A
0x8C1C0706, // 0025 GETMET R7 R3 K6
0x88240907, // 0026 GETMBR R9 R4 K7
0x542AFFFD, // 0027 LDINT R10 65534
0x7C1C0600, // 0028 CALL R7 3
0x80040E00, // 0029 RET 1 R7
0x601C0003, // 002A GETGBL R7 G3
0x5C200000, // 002B MOVE R8 R0
0x7C1C0200, // 002C CALL R7 1
0x8C1C0F0B, // 002D GETMET R7 R7 K11
0x5C240200, // 002E MOVE R9 R1
0x5C280400, // 002F MOVE R10 R2
0x5C2C0600, // 0030 MOVE R11 R3
0x7C1C0800, // 0031 CALL R7 4
0x80040E00, // 0032 RET 1 R7
0x781E0007, // 0008 JMPF R7 #0011
0x8C1C0705, // 0009 GETMET R7 R3 K5
0x88240906, // 000A GETMBR R9 R4 K6
0x60280009, // 000B GETGBL R10 G9
0x882C0107, // 000C GETMBR R11 R0 K7
0x7C280200, // 000D CALL R10 1
0x7C1C0600, // 000E CALL R7 3
0x80040E00, // 000F RET 1 R7
0x7002000E, // 0010 JMP #0020
0x1C1C0D08, // 0011 EQ R7 R6 K8
0x781E0005, // 0012 JMPF R7 #0019
0x8C1C0709, // 0013 GETMET R7 R3 K9
0x88240906, // 0014 GETMBR R9 R4 K6
0x58280004, // 0015 LDCONST R10 K4
0x7C1C0600, // 0016 CALL R7 3
0x80040E00, // 0017 RET 1 R7
0x70020006, // 0018 JMP #0020
0x1C1C0D0A, // 0019 EQ R7 R6 K10
0x781E0004, // 001A JMPF R7 #0020
0x8C1C0709, // 001B GETMET R7 R3 K9
0x88240906, // 001C GETMBR R9 R4 K6
0x542AFFFD, // 001D LDINT R10 65534
0x7C1C0600, // 001E CALL R7 3
0x80040E00, // 001F RET 1 R7
0x601C0003, // 0020 GETGBL R7 G3
0x5C200000, // 0021 MOVE R8 R0
0x7C1C0200, // 0022 CALL R7 1
0x8C1C0F0B, // 0023 GETMET R7 R7 K11
0x5C240200, // 0024 MOVE R9 R1
0x5C280400, // 0025 MOVE R10 R2
0x5C2C0600, // 0026 MOVE R11 R3
0x7C1C0800, // 0027 CALL R7 4
0x80040E00, // 0028 RET 1 R7
})
)
);

View File

@ -58,68 +58,58 @@ be_local_closure(class_Matter_Plugin_Sensor_Humidity_read_attribute, /* name *
/* K2 */ be_nested_str_weak(cluster),
/* K3 */ be_nested_str_weak(attribute),
/* K4 */ be_const_int(0),
/* K5 */ be_nested_str_weak(shadow_value),
/* K6 */ be_nested_str_weak(set),
/* K7 */ be_nested_str_weak(U2),
/* K8 */ be_nested_str_weak(NULL),
/* K9 */ be_const_int(1),
/* K5 */ be_nested_str_weak(set_or_nil),
/* K6 */ be_nested_str_weak(U2),
/* K7 */ be_nested_str_weak(shadow_value),
/* K8 */ be_const_int(1),
/* K9 */ be_nested_str_weak(set),
/* K10 */ be_const_int(2),
/* K11 */ be_nested_str_weak(read_attribute),
}),
be_str_weak(read_attribute),
&be_const_str_solidified,
( &(const binstruction[51]) { /* code */
( &(const binstruction[41]) { /* code */
0xB8120000, // 0000 GETNGBL R4 K0
0x88100901, // 0001 GETMBR R4 R4 K1
0x88140502, // 0002 GETMBR R5 R2 K2
0x88180503, // 0003 GETMBR R6 R2 K3
0x541E0404, // 0004 LDINT R7 1029
0x1C1C0A07, // 0005 EQ R7 R5 R7
0x781E0022, // 0006 JMPF R7 #002A
0x781E0018, // 0006 JMPF R7 #0020
0x1C1C0D04, // 0007 EQ R7 R6 K4
0x781E0011, // 0008 JMPF R7 #001B
0x881C0105, // 0009 GETMBR R7 R0 K5
0x4C200000, // 000A LDNIL R8
0x201C0E08, // 000B NE R7 R7 R8
0x781E0007, // 000C JMPF R7 #0015
0x8C1C0706, // 000D GETMET R7 R3 K6
0x88240907, // 000E GETMBR R9 R4 K7
0x60280009, // 000F GETGBL R10 G9
0x882C0105, // 0010 GETMBR R11 R0 K5
0x7C280200, // 0011 CALL R10 1
0x7C1C0600, // 0012 CALL R7 3
0x80040E00, // 0013 RET 1 R7
0x70020004, // 0014 JMP #001A
0x8C1C0706, // 0015 GETMET R7 R3 K6
0x88240908, // 0016 GETMBR R9 R4 K8
0x4C280000, // 0017 LDNIL R10
0x7C1C0600, // 0018 CALL R7 3
0x80040E00, // 0019 RET 1 R7
0x7002000E, // 001A JMP #002A
0x1C1C0D09, // 001B EQ R7 R6 K9
0x781E0005, // 001C JMPF R7 #0023
0x8C1C0706, // 001D GETMET R7 R3 K6
0x88240907, // 001E GETMBR R9 R4 K7
0x542A01F3, // 001F LDINT R10 500
0x7C1C0600, // 0020 CALL R7 3
0x80040E00, // 0021 RET 1 R7
0x70020006, // 0022 JMP #002A
0x1C1C0D0A, // 0023 EQ R7 R6 K10
0x781E0004, // 0024 JMPF R7 #002A
0x8C1C0706, // 0025 GETMET R7 R3 K6
0x88240907, // 0026 GETMBR R9 R4 K7
0x542A270F, // 0027 LDINT R10 10000
0x7C1C0600, // 0028 CALL R7 3
0x80040E00, // 0029 RET 1 R7
0x601C0003, // 002A GETGBL R7 G3
0x5C200000, // 002B MOVE R8 R0
0x7C1C0200, // 002C CALL R7 1
0x8C1C0F0B, // 002D GETMET R7 R7 K11
0x5C240200, // 002E MOVE R9 R1
0x5C280400, // 002F MOVE R10 R2
0x5C2C0600, // 0030 MOVE R11 R3
0x7C1C0800, // 0031 CALL R7 4
0x80040E00, // 0032 RET 1 R7
0x781E0007, // 0008 JMPF R7 #0011
0x8C1C0705, // 0009 GETMET R7 R3 K5
0x88240906, // 000A GETMBR R9 R4 K6
0x60280009, // 000B GETGBL R10 G9
0x882C0107, // 000C GETMBR R11 R0 K7
0x7C280200, // 000D CALL R10 1
0x7C1C0600, // 000E CALL R7 3
0x80040E00, // 000F RET 1 R7
0x7002000E, // 0010 JMP #0020
0x1C1C0D08, // 0011 EQ R7 R6 K8
0x781E0005, // 0012 JMPF R7 #0019
0x8C1C0709, // 0013 GETMET R7 R3 K9
0x88240906, // 0014 GETMBR R9 R4 K6
0x542A01F3, // 0015 LDINT R10 500
0x7C1C0600, // 0016 CALL R7 3
0x80040E00, // 0017 RET 1 R7
0x70020006, // 0018 JMP #0020
0x1C1C0D0A, // 0019 EQ R7 R6 K10
0x781E0004, // 001A JMPF R7 #0020
0x8C1C0709, // 001B GETMET R7 R3 K9
0x88240906, // 001C GETMBR R9 R4 K6
0x542A270F, // 001D LDINT R10 10000
0x7C1C0600, // 001E CALL R7 3
0x80040E00, // 001F RET 1 R7
0x601C0003, // 0020 GETGBL R7 G3
0x5C200000, // 0021 MOVE R8 R0
0x7C1C0200, // 0022 CALL R7 1
0x8C1C0F0B, // 0023 GETMET R7 R7 K11
0x5C240200, // 0024 MOVE R9 R1
0x5C280400, // 0025 MOVE R10 R2
0x5C2C0600, // 0026 MOVE R11 R3
0x7C1C0800, // 0027 CALL R7 4
0x80040E00, // 0028 RET 1 R7
})
)
);

View File

@ -58,68 +58,58 @@ be_local_closure(class_Matter_Plugin_Sensor_Illuminance_read_attribute, /* nam
/* K2 */ be_nested_str_weak(cluster),
/* K3 */ be_nested_str_weak(attribute),
/* K4 */ be_const_int(0),
/* K5 */ be_nested_str_weak(shadow_value),
/* K6 */ be_nested_str_weak(set),
/* K7 */ be_nested_str_weak(U2),
/* K8 */ be_nested_str_weak(NULL),
/* K9 */ be_const_int(1),
/* K5 */ be_nested_str_weak(set_or_nil),
/* K6 */ be_nested_str_weak(U2),
/* K7 */ be_nested_str_weak(shadow_value),
/* K8 */ be_const_int(1),
/* K9 */ be_nested_str_weak(set),
/* K10 */ be_const_int(2),
/* K11 */ be_nested_str_weak(read_attribute),
}),
be_str_weak(read_attribute),
&be_const_str_solidified,
( &(const binstruction[51]) { /* code */
( &(const binstruction[41]) { /* code */
0xB8120000, // 0000 GETNGBL R4 K0
0x88100901, // 0001 GETMBR R4 R4 K1
0x88140502, // 0002 GETMBR R5 R2 K2
0x88180503, // 0003 GETMBR R6 R2 K3
0x541E03FF, // 0004 LDINT R7 1024
0x1C1C0A07, // 0005 EQ R7 R5 R7
0x781E0022, // 0006 JMPF R7 #002A
0x781E0018, // 0006 JMPF R7 #0020
0x1C1C0D04, // 0007 EQ R7 R6 K4
0x781E0011, // 0008 JMPF R7 #001B
0x881C0105, // 0009 GETMBR R7 R0 K5
0x4C200000, // 000A LDNIL R8
0x201C0E08, // 000B NE R7 R7 R8
0x781E0007, // 000C JMPF R7 #0015
0x8C1C0706, // 000D GETMET R7 R3 K6
0x88240907, // 000E GETMBR R9 R4 K7
0x60280009, // 000F GETGBL R10 G9
0x882C0105, // 0010 GETMBR R11 R0 K5
0x7C280200, // 0011 CALL R10 1
0x7C1C0600, // 0012 CALL R7 3
0x80040E00, // 0013 RET 1 R7
0x70020004, // 0014 JMP #001A
0x8C1C0706, // 0015 GETMET R7 R3 K6
0x88240908, // 0016 GETMBR R9 R4 K8
0x4C280000, // 0017 LDNIL R10
0x7C1C0600, // 0018 CALL R7 3
0x80040E00, // 0019 RET 1 R7
0x7002000E, // 001A JMP #002A
0x1C1C0D09, // 001B EQ R7 R6 K9
0x781E0005, // 001C JMPF R7 #0023
0x8C1C0706, // 001D GETMET R7 R3 K6
0x88240907, // 001E GETMBR R9 R4 K7
0x58280009, // 001F LDCONST R10 K9
0x7C1C0600, // 0020 CALL R7 3
0x80040E00, // 0021 RET 1 R7
0x70020006, // 0022 JMP #002A
0x1C1C0D0A, // 0023 EQ R7 R6 K10
0x781E0004, // 0024 JMPF R7 #002A
0x8C1C0706, // 0025 GETMET R7 R3 K6
0x88240907, // 0026 GETMBR R9 R4 K7
0x542AFFFD, // 0027 LDINT R10 65534
0x7C1C0600, // 0028 CALL R7 3
0x80040E00, // 0029 RET 1 R7
0x601C0003, // 002A GETGBL R7 G3
0x5C200000, // 002B MOVE R8 R0
0x7C1C0200, // 002C CALL R7 1
0x8C1C0F0B, // 002D GETMET R7 R7 K11
0x5C240200, // 002E MOVE R9 R1
0x5C280400, // 002F MOVE R10 R2
0x5C2C0600, // 0030 MOVE R11 R3
0x7C1C0800, // 0031 CALL R7 4
0x80040E00, // 0032 RET 1 R7
0x781E0007, // 0008 JMPF R7 #0011
0x8C1C0705, // 0009 GETMET R7 R3 K5
0x88240906, // 000A GETMBR R9 R4 K6
0x60280009, // 000B GETGBL R10 G9
0x882C0107, // 000C GETMBR R11 R0 K7
0x7C280200, // 000D CALL R10 1
0x7C1C0600, // 000E CALL R7 3
0x80040E00, // 000F RET 1 R7
0x7002000E, // 0010 JMP #0020
0x1C1C0D08, // 0011 EQ R7 R6 K8
0x781E0005, // 0012 JMPF R7 #0019
0x8C1C0709, // 0013 GETMET R7 R3 K9
0x88240906, // 0014 GETMBR R9 R4 K6
0x58280008, // 0015 LDCONST R10 K8
0x7C1C0600, // 0016 CALL R7 3
0x80040E00, // 0017 RET 1 R7
0x70020006, // 0018 JMP #0020
0x1C1C0D0A, // 0019 EQ R7 R6 K10
0x781E0004, // 001A JMPF R7 #0020
0x8C1C0709, // 001B GETMET R7 R3 K9
0x88240906, // 001C GETMBR R9 R4 K6
0x542AFFFD, // 001D LDINT R10 65534
0x7C1C0600, // 001E CALL R7 3
0x80040E00, // 001F RET 1 R7
0x601C0003, // 0020 GETGBL R7 G3
0x5C200000, // 0021 MOVE R8 R0
0x7C1C0200, // 0022 CALL R7 1
0x8C1C0F0B, // 0023 GETMET R7 R7 K11
0x5C240200, // 0024 MOVE R9 R1
0x5C280400, // 0025 MOVE R10 R2
0x5C2C0600, // 0026 MOVE R11 R3
0x7C1C0800, // 0027 CALL R7 4
0x80040E00, // 0028 RET 1 R7
})
)
);

View File

@ -58,68 +58,58 @@ be_local_closure(class_Matter_Plugin_Sensor_Pressure_read_attribute, /* name *
/* K2 */ be_nested_str_weak(cluster),
/* K3 */ be_nested_str_weak(attribute),
/* K4 */ be_const_int(0),
/* K5 */ be_nested_str_weak(shadow_value),
/* K6 */ be_nested_str_weak(set),
/* K7 */ be_nested_str_weak(I2),
/* K8 */ be_nested_str_weak(NULL),
/* K9 */ be_const_int(1),
/* K5 */ be_nested_str_weak(set_or_nil),
/* K6 */ be_nested_str_weak(I2),
/* K7 */ be_nested_str_weak(shadow_value),
/* K8 */ be_const_int(1),
/* K9 */ be_nested_str_weak(set),
/* K10 */ be_const_int(2),
/* K11 */ be_nested_str_weak(read_attribute),
}),
be_str_weak(read_attribute),
&be_const_str_solidified,
( &(const binstruction[51]) { /* code */
( &(const binstruction[41]) { /* code */
0xB8120000, // 0000 GETNGBL R4 K0
0x88100901, // 0001 GETMBR R4 R4 K1
0x88140502, // 0002 GETMBR R5 R2 K2
0x88180503, // 0003 GETMBR R6 R2 K3
0x541E0402, // 0004 LDINT R7 1027
0x1C1C0A07, // 0005 EQ R7 R5 R7
0x781E0022, // 0006 JMPF R7 #002A
0x781E0018, // 0006 JMPF R7 #0020
0x1C1C0D04, // 0007 EQ R7 R6 K4
0x781E0011, // 0008 JMPF R7 #001B
0x881C0105, // 0009 GETMBR R7 R0 K5
0x4C200000, // 000A LDNIL R8
0x201C0E08, // 000B NE R7 R7 R8
0x781E0007, // 000C JMPF R7 #0015
0x8C1C0706, // 000D GETMET R7 R3 K6
0x88240907, // 000E GETMBR R9 R4 K7
0x60280009, // 000F GETGBL R10 G9
0x882C0105, // 0010 GETMBR R11 R0 K5
0x7C280200, // 0011 CALL R10 1
0x7C1C0600, // 0012 CALL R7 3
0x80040E00, // 0013 RET 1 R7
0x70020004, // 0014 JMP #001A
0x8C1C0706, // 0015 GETMET R7 R3 K6
0x88240908, // 0016 GETMBR R9 R4 K8
0x4C280000, // 0017 LDNIL R10
0x7C1C0600, // 0018 CALL R7 3
0x80040E00, // 0019 RET 1 R7
0x7002000E, // 001A JMP #002A
0x1C1C0D09, // 001B EQ R7 R6 K9
0x781E0005, // 001C JMPF R7 #0023
0x8C1C0706, // 001D GETMET R7 R3 K6
0x88240907, // 001E GETMBR R9 R4 K7
0x542A01F3, // 001F LDINT R10 500
0x7C1C0600, // 0020 CALL R7 3
0x80040E00, // 0021 RET 1 R7
0x70020006, // 0022 JMP #002A
0x1C1C0D0A, // 0023 EQ R7 R6 K10
0x781E0004, // 0024 JMPF R7 #002A
0x8C1C0706, // 0025 GETMET R7 R3 K6
0x88240907, // 0026 GETMBR R9 R4 K7
0x542A05DB, // 0027 LDINT R10 1500
0x7C1C0600, // 0028 CALL R7 3
0x80040E00, // 0029 RET 1 R7
0x601C0003, // 002A GETGBL R7 G3
0x5C200000, // 002B MOVE R8 R0
0x7C1C0200, // 002C CALL R7 1
0x8C1C0F0B, // 002D GETMET R7 R7 K11
0x5C240200, // 002E MOVE R9 R1
0x5C280400, // 002F MOVE R10 R2
0x5C2C0600, // 0030 MOVE R11 R3
0x7C1C0800, // 0031 CALL R7 4
0x80040E00, // 0032 RET 1 R7
0x781E0007, // 0008 JMPF R7 #0011
0x8C1C0705, // 0009 GETMET R7 R3 K5
0x88240906, // 000A GETMBR R9 R4 K6
0x60280009, // 000B GETGBL R10 G9
0x882C0107, // 000C GETMBR R11 R0 K7
0x7C280200, // 000D CALL R10 1
0x7C1C0600, // 000E CALL R7 3
0x80040E00, // 000F RET 1 R7
0x7002000E, // 0010 JMP #0020
0x1C1C0D08, // 0011 EQ R7 R6 K8
0x781E0005, // 0012 JMPF R7 #0019
0x8C1C0709, // 0013 GETMET R7 R3 K9
0x88240906, // 0014 GETMBR R9 R4 K6
0x542A01F3, // 0015 LDINT R10 500
0x7C1C0600, // 0016 CALL R7 3
0x80040E00, // 0017 RET 1 R7
0x70020006, // 0018 JMP #0020
0x1C1C0D0A, // 0019 EQ R7 R6 K10
0x781E0004, // 001A JMPF R7 #0020
0x8C1C0709, // 001B GETMET R7 R3 K9
0x88240906, // 001C GETMBR R9 R4 K6
0x542A05DB, // 001D LDINT R10 1500
0x7C1C0600, // 001E CALL R7 3
0x80040E00, // 001F RET 1 R7
0x601C0003, // 0020 GETGBL R7 G3
0x5C200000, // 0021 MOVE R8 R0
0x7C1C0200, // 0022 CALL R7 1
0x8C1C0F0B, // 0023 GETMET R7 R7 K11
0x5C240200, // 0024 MOVE R9 R1
0x5C280400, // 0025 MOVE R10 R2
0x5C2C0600, // 0026 MOVE R11 R3
0x7C1C0800, // 0027 CALL R7 4
0x80040E00, // 0028 RET 1 R7
})
)
);

View File

@ -58,66 +58,56 @@ be_local_closure(class_Matter_Plugin_Sensor_Temp_read_attribute, /* name */
/* K2 */ be_nested_str_weak(cluster),
/* K3 */ be_nested_str_weak(attribute),
/* K4 */ be_const_int(0),
/* K5 */ be_nested_str_weak(shadow_value),
/* K6 */ be_nested_str_weak(set),
/* K7 */ be_nested_str_weak(I2),
/* K8 */ be_nested_str_weak(NULL),
/* K9 */ be_const_int(1),
/* K5 */ be_nested_str_weak(set_or_nil),
/* K6 */ be_nested_str_weak(I2),
/* K7 */ be_nested_str_weak(shadow_value),
/* K8 */ be_const_int(1),
/* K9 */ be_nested_str_weak(set),
/* K10 */ be_const_int(2),
/* K11 */ be_nested_str_weak(read_attribute),
}),
be_str_weak(read_attribute),
&be_const_str_solidified,
( &(const binstruction[49]) { /* code */
( &(const binstruction[39]) { /* code */
0xB8120000, // 0000 GETNGBL R4 K0
0x88100901, // 0001 GETMBR R4 R4 K1
0x88140502, // 0002 GETMBR R5 R2 K2
0x88180503, // 0003 GETMBR R6 R2 K3
0x541E0401, // 0004 LDINT R7 1026
0x1C1C0A07, // 0005 EQ R7 R5 R7
0x781E0020, // 0006 JMPF R7 #0028
0x781E0016, // 0006 JMPF R7 #001E
0x1C1C0D04, // 0007 EQ R7 R6 K4
0x781E000F, // 0008 JMPF R7 #0019
0x881C0105, // 0009 GETMBR R7 R0 K5
0x4C200000, // 000A LDNIL R8
0x201C0E08, // 000B NE R7 R7 R8
0x781E0005, // 000C JMPF R7 #0013
0x8C1C0706, // 000D GETMET R7 R3 K6
0x88240907, // 000E GETMBR R9 R4 K7
0x88280105, // 000F GETMBR R10 R0 K5
0x7C1C0600, // 0010 CALL R7 3
0x80040E00, // 0011 RET 1 R7
0x70020004, // 0012 JMP #0018
0x8C1C0706, // 0013 GETMET R7 R3 K6
0x88240908, // 0014 GETMBR R9 R4 K8
0x4C280000, // 0015 LDNIL R10
0x7C1C0600, // 0016 CALL R7 3
0x80040E00, // 0017 RET 1 R7
0x7002000E, // 0018 JMP #0028
0x1C1C0D09, // 0019 EQ R7 R6 K9
0x781E0005, // 001A JMPF R7 #0021
0x8C1C0706, // 001B GETMET R7 R3 K6
0x88240907, // 001C GETMBR R9 R4 K7
0x5429EC77, // 001D LDINT R10 -5000
0x7C1C0600, // 001E CALL R7 3
0x80040E00, // 001F RET 1 R7
0x70020006, // 0020 JMP #0028
0x1C1C0D0A, // 0021 EQ R7 R6 K10
0x781E0004, // 0022 JMPF R7 #0028
0x8C1C0706, // 0023 GETMET R7 R3 K6
0x88240907, // 0024 GETMBR R9 R4 K7
0x542A3A97, // 0025 LDINT R10 15000
0x7C1C0600, // 0026 CALL R7 3
0x80040E00, // 0027 RET 1 R7
0x601C0003, // 0028 GETGBL R7 G3
0x5C200000, // 0029 MOVE R8 R0
0x7C1C0200, // 002A CALL R7 1
0x8C1C0F0B, // 002B GETMET R7 R7 K11
0x5C240200, // 002C MOVE R9 R1
0x5C280400, // 002D MOVE R10 R2
0x5C2C0600, // 002E MOVE R11 R3
0x7C1C0800, // 002F CALL R7 4
0x80040E00, // 0030 RET 1 R7
0x781E0005, // 0008 JMPF R7 #000F
0x8C1C0705, // 0009 GETMET R7 R3 K5
0x88240906, // 000A GETMBR R9 R4 K6
0x88280107, // 000B GETMBR R10 R0 K7
0x7C1C0600, // 000C CALL R7 3
0x80040E00, // 000D RET 1 R7
0x7002000E, // 000E JMP #001E
0x1C1C0D08, // 000F EQ R7 R6 K8
0x781E0005, // 0010 JMPF R7 #0017
0x8C1C0709, // 0011 GETMET R7 R3 K9
0x88240906, // 0012 GETMBR R9 R4 K6
0x5429EC77, // 0013 LDINT R10 -5000
0x7C1C0600, // 0014 CALL R7 3
0x80040E00, // 0015 RET 1 R7
0x70020006, // 0016 JMP #001E
0x1C1C0D0A, // 0017 EQ R7 R6 K10
0x781E0004, // 0018 JMPF R7 #001E
0x8C1C0709, // 0019 GETMET R7 R3 K9
0x88240906, // 001A GETMBR R9 R4 K6
0x542A3A97, // 001B LDINT R10 15000
0x7C1C0600, // 001C CALL R7 3
0x80040E00, // 001D RET 1 R7
0x601C0003, // 001E GETGBL R7 G3
0x5C200000, // 001F MOVE R8 R0
0x7C1C0200, // 0020 CALL R7 1
0x8C1C0F0B, // 0021 GETMET R7 R7 K11
0x5C240200, // 0022 MOVE R9 R1
0x5C280400, // 0023 MOVE R10 R2
0x5C2C0600, // 0024 MOVE R11 R3
0x7C1C0800, // 0025 CALL R7 4
0x80040E00, // 0026 RET 1 R7
})
)
);

View File

@ -231,7 +231,7 @@ be_local_closure(class_Matter_Profiler_log, /* name */
extern const bclass be_class_Matter_Profiler;
be_local_closure(class_Matter_Profiler_dump, /* name */
be_nested_proto(
13, /* nstack */
12, /* nstack */
2, /* argc */
2, /* varg */
0, /* has upvals */
@ -239,63 +239,60 @@ be_local_closure(class_Matter_Profiler_dump, /* name */
0, /* has sup protos */
&be_class_Matter_Profiler,
1, /* has constants */
( &(const bvalue[13]) { /* constants */
( &(const bvalue[12]) { /* constants */
/* K0 */ be_nested_str_weak(active),
/* K1 */ be_nested_str_weak(log),
/* K2 */ be_nested_str_weak(_X3C_X2D_X2Dend_X2D_X2D_X3E),
/* K3 */ be_nested_str_weak(tasmota),
/* K4 */ be_nested_str_weak(MTR_X3A_X20Profiler_X20dump_X3A),
/* K5 */ be_nested_str_weak(millis),
/* K6 */ be_const_int(0),
/* K7 */ be_nested_str_weak(allocs),
/* K8 */ be_nested_str_weak(reallocs),
/* K9 */ be_const_int(1),
/* K10 */ be_nested_str_weak(len),
/* K11 */ be_nested_str_weak(MTR_X3A_X20_X20_X20_X254i_X20_X5B_X254i_X5D_X27_X25s_X27),
/* K12 */ be_nested_str_weak(names),
/* K3 */ be_nested_str_weak(MTR_X3A_X20Profiler_X20dump_X3A),
/* K4 */ be_nested_str_weak(millis),
/* K5 */ be_const_int(0),
/* K6 */ be_nested_str_weak(allocs),
/* K7 */ be_nested_str_weak(reallocs),
/* K8 */ be_const_int(1),
/* K9 */ be_nested_str_weak(len),
/* K10 */ be_nested_str_weak(MTR_X3A_X20_X20_X20_X254i_X20_X5B_X254i_X5D_X27_X25s_X27),
/* K11 */ be_nested_str_weak(names),
}),
be_str_weak(dump),
&be_const_str_solidified,
( &(const binstruction[39]) { /* code */
( &(const binstruction[37]) { /* code */
0x88080100, // 0000 GETMBR R2 R0 K0
0x740A0000, // 0001 JMPT R2 #0003
0x80000400, // 0002 RET 0
0x8C080101, // 0003 GETMET R2 R0 K1
0x58100002, // 0004 LDCONST R4 K2
0x7C080400, // 0005 CALL R2 2
0xB80A0600, // 0006 GETNGBL R2 K3
0x8C080501, // 0007 GETMET R2 R2 K1
0x58100004, // 0008 LDCONST R4 K4
0x5C140200, // 0009 MOVE R5 R1
0x7C080600, // 000A CALL R2 3
0x88080105, // 000B GETMBR R2 R0 K5
0x94080506, // 000C GETIDX R2 R2 K6
0x880C0107, // 000D GETMBR R3 R0 K7
0x940C0706, // 000E GETIDX R3 R3 K6
0x88100108, // 000F GETMBR R4 R0 K8
0x94100906, // 0010 GETIDX R4 R4 K6
0x58140009, // 0011 LDCONST R5 K9
0x8818010A, // 0012 GETMBR R6 R0 K10
0x14180A06, // 0013 LT R6 R5 R6
0x781A0010, // 0014 JMPF R6 #0026
0xB81A0600, // 0015 GETNGBL R6 K3
0x8C180D01, // 0016 GETMET R6 R6 K1
0x60200018, // 0017 GETGBL R8 G24
0x5824000B, // 0018 LDCONST R9 K11
0x88280105, // 0019 GETMBR R10 R0 K5
0x94281405, // 001A GETIDX R10 R10 R5
0x04281402, // 001B SUB R10 R10 R2
0x882C0107, // 001C GETMBR R11 R0 K7
0x942C1605, // 001D GETIDX R11 R11 R5
0x042C1603, // 001E SUB R11 R11 R3
0x8830010C, // 001F GETMBR R12 R0 K12
0x94301805, // 0020 GETIDX R12 R12 R5
0x7C200800, // 0021 CALL R8 4
0x5C240200, // 0022 MOVE R9 R1
0x7C180600, // 0023 CALL R6 3
0x00140B09, // 0024 ADD R5 R5 K9
0x7001FFEB, // 0025 JMP #0012
0x80000000, // 0026 RET 0
0xB80A0200, // 0006 GETNGBL R2 K1
0x580C0003, // 0007 LDCONST R3 K3
0x5C100200, // 0008 MOVE R4 R1
0x7C080400, // 0009 CALL R2 2
0x88080104, // 000A GETMBR R2 R0 K4
0x94080505, // 000B GETIDX R2 R2 K5
0x880C0106, // 000C GETMBR R3 R0 K6
0x940C0705, // 000D GETIDX R3 R3 K5
0x88100107, // 000E GETMBR R4 R0 K7
0x94100905, // 000F GETIDX R4 R4 K5
0x58140008, // 0010 LDCONST R5 K8
0x88180109, // 0011 GETMBR R6 R0 K9
0x14180A06, // 0012 LT R6 R5 R6
0x781A000F, // 0013 JMPF R6 #0024
0xB81A0200, // 0014 GETNGBL R6 K1
0x601C0018, // 0015 GETGBL R7 G24
0x5820000A, // 0016 LDCONST R8 K10
0x88240104, // 0017 GETMBR R9 R0 K4
0x94241205, // 0018 GETIDX R9 R9 R5
0x04241202, // 0019 SUB R9 R9 R2
0x88280106, // 001A GETMBR R10 R0 K6
0x94281405, // 001B GETIDX R10 R10 R5
0x04281403, // 001C SUB R10 R10 R3
0x882C010B, // 001D GETMBR R11 R0 K11
0x942C1605, // 001E GETIDX R11 R11 R5
0x7C1C0800, // 001F CALL R7 4
0x5C200200, // 0020 MOVE R8 R1
0x7C180400, // 0021 CALL R6 2
0x00140B08, // 0022 ADD R5 R5 K8
0x7001FFEC, // 0023 JMP #0011
0x80000000, // 0024 RET 0
})
)
);

View File

@ -1004,7 +1004,7 @@ be_local_closure(class_Matter_Session_is_CASE, /* name */
extern const bclass be_class_Matter_Session;
be_local_closure(class_Matter_Session_before_remove, /* name */
be_nested_proto(
6, /* nstack */
5, /* nstack */
1, /* argc */
2, /* varg */
0, /* has upvals */
@ -1012,25 +1012,23 @@ be_local_closure(class_Matter_Session_before_remove, /* name */
0, /* has sup protos */
&be_class_Matter_Session,
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_X2DSession_X20_X20_X20_X28_X256i_X29_X20_X28removed_X29),
/* K3 */ be_nested_str_weak(local_session_id),
/* K4 */ be_const_int(3),
( &(const bvalue[ 4]) { /* constants */
/* K0 */ be_nested_str_weak(log),
/* K1 */ be_nested_str_weak(MTR_X3A_X20_X2DSession_X20_X20_X20_X28_X256i_X29_X20_X28removed_X29),
/* K2 */ be_nested_str_weak(local_session_id),
/* K3 */ be_const_int(3),
}),
be_str_weak(before_remove),
&be_const_str_solidified,
( &(const binstruction[ 9]) { /* code */
( &(const binstruction[ 8]) { /* code */
0xB8060000, // 0000 GETNGBL R1 K0
0x8C040301, // 0001 GETMET R1 R1 K1
0x600C0018, // 0002 GETGBL R3 G24
0x58100002, // 0003 LDCONST R4 K2
0x88140103, // 0004 GETMBR R5 R0 K3
0x7C0C0400, // 0005 CALL R3 2
0x58100004, // 0006 LDCONST R4 K4
0x7C040600, // 0007 CALL R1 3
0x80000000, // 0008 RET 0
0x60080018, // 0001 GETGBL R2 G24
0x580C0001, // 0002 LDCONST R3 K1
0x88100102, // 0003 GETMBR R4 R0 K2
0x7C080400, // 0004 CALL R2 2
0x580C0003, // 0005 LDCONST R3 K3
0x7C040400, // 0006 CALL R1 2
0x80000000, // 0007 RET 0
})
)
);

View File

@ -147,8 +147,8 @@ be_local_closure(class_Matter_Session_Store_load_fabrics, /* name */
}),
be_str_weak(load_fabrics),
&be_const_str_solidified,
( &(const binstruction[117]) { /* code */
0xA802005F, // 0000 EXBLK 0 #0061
( &(const binstruction[115]) { /* code */
0xA802005E, // 0000 EXBLK 0 #0060
0xB8060200, // 0001 GETNGBL R1 K1
0x8C040302, // 0002 GETMET R1 R1 K2
0x7C040200, // 0003 CALL R1 1
@ -233,38 +233,36 @@ be_local_closure(class_Matter_Session_Store_load_fabrics, /* name */
0x58140013, // 0052 LDCONST R5 K19
0xAC140200, // 0053 CATCH R5 1 0
0xB0080000, // 0054 RAISE 2 R0 R0
0xB8161200, // 0055 GETNGBL R5 K9
0x8C140B15, // 0056 GETMET R5 R5 K21
0x601C0018, // 0057 GETGBL R7 G24
0x58200016, // 0058 LDCONST R8 K22
0x6024000C, // 0059 GETGBL R9 G12
0x88280103, // 005A GETMBR R10 R0 K3
0x7C240200, // 005B CALL R9 1
0x7C1C0400, // 005C CALL R7 2
0x58200017, // 005D LDCONST R8 K23
0x7C140600, // 005E CALL R5 3
0xA8040001, // 005F EXBLK 1 1
0x70020012, // 0060 JMP #0074
0xAC040002, // 0061 CATCH R1 0 2
0x7002000F, // 0062 JMP #0073
0x200C0318, // 0063 NE R3 R1 K24
0x780E000C, // 0064 JMPF R3 #0072
0xB80E1200, // 0065 GETNGBL R3 K9
0x8C0C0715, // 0066 GETMET R3 R3 K21
0x60140008, // 0067 GETGBL R5 G8
0x5C180200, // 0068 MOVE R6 R1
0x7C140200, // 0069 CALL R5 1
0x00163205, // 006A ADD R5 K25 R5
0x00140B1A, // 006B ADD R5 R5 K26
0x60180008, // 006C GETGBL R6 G8
0x5C1C0400, // 006D MOVE R7 R2
0x7C180200, // 006E CALL R6 1
0x00140A06, // 006F ADD R5 R5 R6
0x58180017, // 0070 LDCONST R6 K23
0x7C0C0600, // 0071 CALL R3 3
0x70020000, // 0072 JMP #0074
0xB0080000, // 0073 RAISE 2 R0 R0
0x80000000, // 0074 RET 0
0xB8162A00, // 0055 GETNGBL R5 K21
0x60180018, // 0056 GETGBL R6 G24
0x581C0016, // 0057 LDCONST R7 K22
0x6020000C, // 0058 GETGBL R8 G12
0x88240103, // 0059 GETMBR R9 R0 K3
0x7C200200, // 005A CALL R8 1
0x7C180400, // 005B CALL R6 2
0x581C0017, // 005C LDCONST R7 K23
0x7C140400, // 005D CALL R5 2
0xA8040001, // 005E EXBLK 1 1
0x70020011, // 005F JMP #0072
0xAC040002, // 0060 CATCH R1 0 2
0x7002000E, // 0061 JMP #0071
0x200C0318, // 0062 NE R3 R1 K24
0x780E000B, // 0063 JMPF R3 #0070
0xB80E2A00, // 0064 GETNGBL R3 K21
0x60100008, // 0065 GETGBL R4 G8
0x5C140200, // 0066 MOVE R5 R1
0x7C100200, // 0067 CALL R4 1
0x00123204, // 0068 ADD R4 K25 R4
0x0010091A, // 0069 ADD R4 R4 K26
0x60140008, // 006A GETGBL R5 G8
0x5C180400, // 006B MOVE R6 R2
0x7C140200, // 006C CALL R5 1
0x00100805, // 006D ADD R4 R4 R5
0x58140017, // 006E LDCONST R5 K23
0x7C0C0400, // 006F CALL R3 2
0x70020000, // 0070 JMP #0072
0xB0080000, // 0071 RAISE 2 R0 R0
0x80000000, // 0072 RET 0
})
)
);
@ -582,7 +580,7 @@ be_local_closure(class_Matter_Session_Store_count_active_fabrics, /* name */
extern const bclass be_class_Matter_Session_Store;
be_local_closure(class_Matter_Session_Store_find_session_by_resumption_id, /* name */
be_nested_proto(
12, /* nstack */
11, /* nstack */
2, /* argc */
2, /* varg */
0, /* has upvals */
@ -590,20 +588,19 @@ be_local_closure(class_Matter_Session_Store_find_session_by_resumption_id, /*
0, /* has sup protos */
&be_class_Matter_Session_Store,
1, /* has constants */
( &(const bvalue[ 9]) { /* constants */
( &(const bvalue[ 8]) { /* constants */
/* K0 */ be_const_int(0),
/* K1 */ be_nested_str_weak(sessions),
/* K2 */ be_nested_str_weak(tasmota),
/* K3 */ be_nested_str_weak(log),
/* K4 */ be_nested_str_weak(MTR_X3A_X20session_X2Eresumption_id_X3D_X25s_X20vs_X20_X25s),
/* K5 */ be_nested_str_weak(resumption_id),
/* K6 */ be_nested_str_weak(shared_secret),
/* K7 */ be_nested_str_weak(update),
/* K8 */ be_const_int(1),
/* K2 */ be_nested_str_weak(log),
/* K3 */ be_nested_str_weak(MTR_X3A_X20session_X2Eresumption_id_X3D_X25s_X20vs_X20_X25s),
/* K4 */ be_nested_str_weak(resumption_id),
/* K5 */ be_nested_str_weak(shared_secret),
/* K6 */ be_nested_str_weak(update),
/* K7 */ be_const_int(1),
}),
be_str_weak(find_session_by_resumption_id),
&be_const_str_solidified,
( &(const binstruction[38]) { /* code */
( &(const binstruction[37]) { /* code */
0x5C080200, // 0000 MOVE R2 R1
0x740A0001, // 0001 JMPT R2 #0004
0x4C080000, // 0002 LDNIL R2
@ -614,34 +611,33 @@ be_local_closure(class_Matter_Session_Store_find_session_by_resumption_id, /*
0x5C140600, // 0007 MOVE R5 R3
0x7C100200, // 0008 CALL R4 1
0x14100404, // 0009 LT R4 R2 R4
0x78120019, // 000A JMPF R4 #0025
0x78120018, // 000A JMPF R4 #0024
0x94100602, // 000B GETIDX R4 R3 R2
0xB8160400, // 000C GETNGBL R5 K2
0x8C140B03, // 000D GETMET R5 R5 K3
0x601C0018, // 000E GETGBL R7 G24
0x58200004, // 000F LDCONST R8 K4
0x60240008, // 0010 GETGBL R9 G8
0x88280905, // 0011 GETMBR R10 R4 K5
0x7C240200, // 0012 CALL R9 1
0x60280008, // 0013 GETGBL R10 G8
0x5C2C0200, // 0014 MOVE R11 R1
0x7C280200, // 0015 CALL R10 1
0x7C1C0600, // 0016 CALL R7 3
0x54220003, // 0017 LDINT R8 4
0x7C140600, // 0018 CALL R5 3
0x88140905, // 0019 GETMBR R5 R4 K5
0x1C140A01, // 001A EQ R5 R5 R1
0x78160006, // 001B JMPF R5 #0023
0x88140906, // 001C GETMBR R5 R4 K6
0x4C180000, // 001D LDNIL R6
0x20140A06, // 001E NE R5 R5 R6
0x78160002, // 001F JMPF R5 #0023
0x8C140907, // 0020 GETMET R5 R4 K7
0x7C140200, // 0021 CALL R5 1
0x80040800, // 0022 RET 1 R4
0x00080508, // 0023 ADD R2 R2 K8
0x7001FFE0, // 0024 JMP #0006
0x80000000, // 0025 RET 0
0x60180018, // 000D GETGBL R6 G24
0x581C0003, // 000E LDCONST R7 K3
0x60200008, // 000F GETGBL R8 G8
0x88240904, // 0010 GETMBR R9 R4 K4
0x7C200200, // 0011 CALL R8 1
0x60240008, // 0012 GETGBL R9 G8
0x5C280200, // 0013 MOVE R10 R1
0x7C240200, // 0014 CALL R9 1
0x7C180600, // 0015 CALL R6 3
0x541E0003, // 0016 LDINT R7 4
0x7C140400, // 0017 CALL R5 2
0x88140904, // 0018 GETMBR R5 R4 K4
0x1C140A01, // 0019 EQ R5 R5 R1
0x78160006, // 001A JMPF R5 #0022
0x88140905, // 001B GETMBR R5 R4 K5
0x4C180000, // 001C LDNIL R6
0x20140A06, // 001D NE R5 R5 R6
0x78160002, // 001E JMPF R5 #0022
0x8C140906, // 001F GETMET R5 R4 K6
0x7C140200, // 0020 CALL R5 1
0x80040800, // 0021 RET 1 R4
0x00080507, // 0022 ADD R2 R2 K7
0x7001FFE1, // 0023 JMP #0006
0x80000000, // 0024 RET 0
})
)
);
@ -1127,7 +1123,7 @@ be_local_closure(class_Matter_Session_Store_next_fabric_idx, /* name */
extern const bclass be_class_Matter_Session_Store;
be_local_closure(class_Matter_Session_Store_save_fabrics, /* name */
be_nested_proto(
12, /* nstack */
11, /* nstack */
1, /* argc */
2, /* varg */
0, /* has upvals */
@ -1135,7 +1131,7 @@ be_local_closure(class_Matter_Session_Store_save_fabrics, /* name */
0, /* has sup protos */
&be_class_Matter_Session_Store,
1, /* has constants */
( &(const bvalue[29]) { /* constants */
( &(const bvalue[28]) { /* constants */
/* K0 */ be_nested_str_weak(json),
/* K1 */ be_nested_str_weak(path),
/* K2 */ be_nested_str_weak(remove_expired),
@ -1156,22 +1152,21 @@ be_local_closure(class_Matter_Session_Store_save_fabrics, /* name */
/* K17 */ be_nested_str_weak(remove),
/* K18 */ be_nested_str_weak(_FABRICS),
/* K19 */ be_nested_str_weak(rename),
/* K20 */ be_nested_str_weak(tasmota),
/* K21 */ be_nested_str_weak(log),
/* K22 */ be_nested_str_weak(MTR_X3A_X20_X3DSaved_X20_X20_X20_X20_X20_X25s_X20fabric_X28s_X29_X20and_X20_X25s_X20session_X28s_X29),
/* K23 */ be_const_int(2),
/* K24 */ be_nested_str_weak(device),
/* K25 */ be_nested_str_weak(event_fabrics_saved),
/* K26 */ be_nested_str_weak(MTR_X3A_X20Saving_X20Fabrics_X20failed),
/* K27 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Asave_X20Exception_X3A),
/* K28 */ be_nested_str_weak(_X7C),
/* K20 */ be_nested_str_weak(log),
/* K21 */ be_nested_str_weak(MTR_X3A_X20_X3DSaved_X20_X20_X20_X20_X20_X25s_X20fabric_X28s_X29_X20and_X20_X25s_X20session_X28s_X29),
/* K22 */ be_const_int(2),
/* K23 */ be_nested_str_weak(device),
/* K24 */ be_nested_str_weak(event_fabrics_saved),
/* K25 */ be_nested_str_weak(MTR_X3A_X20Saving_X20Fabrics_X20failed),
/* K26 */ be_nested_str_weak(MTR_X3A_X20Session_Store_X3A_X3Asave_X20Exception_X3A),
/* K27 */ be_nested_str_weak(_X7C),
}),
be_str_weak(save_fabrics),
&be_const_str_solidified,
( &(const binstruction[101]) { /* code */
( &(const binstruction[98]) { /* code */
0xA4060000, // 0000 IMPORT R1 K0
0xA40A0200, // 0001 IMPORT R2 K1
0xA802004F, // 0002 EXBLK 0 #0053
0xA802004D, // 0002 EXBLK 0 #0051
0x8C0C0102, // 0003 GETMET R3 R0 K2
0x7C0C0200, // 0004 CALL R3 1
0x580C0003, // 0005 LDCONST R3 K3
@ -1229,47 +1224,44 @@ be_local_closure(class_Matter_Session_Store_save_fabrics, /* name */
0x88200104, // 0039 GETMBR R8 R0 K4
0x88240112, // 003A GETMBR R9 R0 K18
0x7C180600, // 003B CALL R6 3
0x781A000C, // 003C JMPF R6 #004A
0x781A000B, // 003C JMPF R6 #0049
0xB81A2800, // 003D GETNGBL R6 K20
0x8C180D15, // 003E GETMET R6 R6 K21
0x60200018, // 003F GETGBL R8 G24
0x58240016, // 0040 LDCONST R9 K22
0x5C280800, // 0041 MOVE R10 R4
0x5C2C0600, // 0042 MOVE R11 R3
0x7C200600, // 0043 CALL R8 3
0x58240017, // 0044 LDCONST R9 K23
0x7C180600, // 0045 CALL R6 3
0x88180118, // 0046 GETMBR R6 R0 K24
0x8C180D19, // 0047 GETMET R6 R6 K25
0x7C180200, // 0048 CALL R6 1
0x70020006, // 0049 JMP #0051
0xB81A2800, // 004A GETNGBL R6 K20
0x8C180D15, // 004B GETMET R6 R6 K21
0x60200018, // 004C GETGBL R8 G24
0x5824001A, // 004D LDCONST R9 K26
0x7C200200, // 004E CALL R8 1
0x58240017, // 004F LDCONST R9 K23
0x7C180600, // 0050 CALL R6 3
0xA8040001, // 0051 EXBLK 1 1
0x70020010, // 0052 JMP #0064
0xAC0C0002, // 0053 CATCH R3 0 2
0x7002000D, // 0054 JMP #0063
0xB8162800, // 0055 GETNGBL R5 K20
0x8C140B15, // 0056 GETMET R5 R5 K21
0x601C0008, // 0057 GETGBL R7 G8
0x5C200600, // 0058 MOVE R8 R3
0x7C1C0200, // 0059 CALL R7 1
0x001E3607, // 005A ADD R7 K27 R7
0x001C0F1C, // 005B ADD R7 R7 K28
0x60200008, // 005C GETGBL R8 G8
0x5C240800, // 005D MOVE R9 R4
0x7C200200, // 005E CALL R8 1
0x001C0E08, // 005F ADD R7 R7 R8
0x58200017, // 0060 LDCONST R8 K23
0x7C140600, // 0061 CALL R5 3
0x70020000, // 0062 JMP #0064
0xB0080000, // 0063 RAISE 2 R0 R0
0x80000000, // 0064 RET 0
0x601C0018, // 003E GETGBL R7 G24
0x58200015, // 003F LDCONST R8 K21
0x5C240800, // 0040 MOVE R9 R4
0x5C280600, // 0041 MOVE R10 R3
0x7C1C0600, // 0042 CALL R7 3
0x58200016, // 0043 LDCONST R8 K22
0x7C180400, // 0044 CALL R6 2
0x88180117, // 0045 GETMBR R6 R0 K23
0x8C180D18, // 0046 GETMET R6 R6 K24
0x7C180200, // 0047 CALL R6 1
0x70020005, // 0048 JMP #004F
0xB81A2800, // 0049 GETNGBL R6 K20
0x601C0018, // 004A GETGBL R7 G24
0x58200019, // 004B LDCONST R8 K25
0x7C1C0200, // 004C CALL R7 1
0x58200016, // 004D LDCONST R8 K22
0x7C180400, // 004E CALL R6 2
0xA8040001, // 004F EXBLK 1 1
0x7002000F, // 0050 JMP #0061
0xAC0C0002, // 0051 CATCH R3 0 2
0x7002000C, // 0052 JMP #0060
0xB8162800, // 0053 GETNGBL R5 K20
0x60180008, // 0054 GETGBL R6 G8
0x5C1C0600, // 0055 MOVE R7 R3
0x7C180200, // 0056 CALL R6 1
0x001A3406, // 0057 ADD R6 K26 R6
0x00180D1B, // 0058 ADD R6 R6 K27
0x601C0008, // 0059 GETGBL R7 G8
0x5C200800, // 005A MOVE R8 R4
0x7C1C0200, // 005B CALL R7 1
0x00180C07, // 005C ADD R6 R6 R7
0x581C0016, // 005D LDCONST R7 K22
0x7C140400, // 005E CALL R5 2
0x70020000, // 005F JMP #0061
0xB0080000, // 0060 RAISE 2 R0 R0
0x80000000, // 0061 RET 0
})
)
);

View File

@ -48,7 +48,7 @@ be_local_closure(class_Matter_TCP_async_read, /* name */
extern const bclass be_class_Matter_TCP_async;
be_local_closure(class_Matter_TCP_async_begin, /* name */
be_nested_proto(
7, /* nstack */
6, /* nstack */
1, /* argc */
2, /* varg */
0, /* has upvals */
@ -83,7 +83,7 @@ be_local_closure(class_Matter_TCP_async_begin, /* name */
}),
be_str_weak(begin),
&be_const_str_solidified,
( &(const binstruction[63]) { /* code */
( &(const binstruction[62]) { /* code */
0x8C040100, // 0000 GETMET R1 R0 K0
0x7C040200, // 0001 CALL R1 1
0xB8060200, // 0002 GETNGBL R1 K1
@ -126,27 +126,26 @@ be_local_closure(class_Matter_TCP_async_begin, /* name */
0x7C040400, // 0027 CALL R1 2
0x50040200, // 0028 LDBOOL R1 1 0
0x80040200, // 0029 RET 1 R1
0x70020012, // 002A JMP #003E
0xB8060200, // 002B GETNGBL R1 K1
0x8C040311, // 002C GETMET R1 R1 K17
0x600C0018, // 002D GETGBL R3 G24
0x58100012, // 002E LDCONST R4 K18
0x8814010B, // 002F GETMBR R5 R0 K11
0x8818010C, // 0030 GETMBR R6 R0 K12
0x7C0C0600, // 0031 CALL R3 3
0x58100013, // 0032 LDCONST R4 K19
0x7C040600, // 0033 CALL R1 3
0x8C040114, // 0034 GETMET R1 R0 K20
0x7C040200, // 0035 CALL R1 1
0x5405FFFE, // 0036 LDINT R1 -1
0x90020E01, // 0037 SETMBR R0 K7 R1
0x50040000, // 0038 LDBOOL R1 0 0
0x90022A01, // 0039 SETMBR R0 K21 R1
0x8C040116, // 003A GETMET R1 R0 K22
0x7C040200, // 003B CALL R1 1
0x50040000, // 003C LDBOOL R1 0 0
0x80040200, // 003D RET 1 R1
0x80000000, // 003E RET 0
0x70020011, // 002A JMP #003D
0xB8062200, // 002B GETNGBL R1 K17
0x60080018, // 002C GETGBL R2 G24
0x580C0012, // 002D LDCONST R3 K18
0x8810010B, // 002E GETMBR R4 R0 K11
0x8814010C, // 002F GETMBR R5 R0 K12
0x7C080600, // 0030 CALL R2 3
0x580C0013, // 0031 LDCONST R3 K19
0x7C040400, // 0032 CALL R1 2
0x8C040114, // 0033 GETMET R1 R0 K20
0x7C040200, // 0034 CALL R1 1
0x5405FFFE, // 0035 LDINT R1 -1
0x90020E01, // 0036 SETMBR R0 K7 R1
0x50040000, // 0037 LDBOOL R1 0 0
0x90022A01, // 0038 SETMBR R0 K21 R1
0x8C040116, // 0039 GETMET R1 R0 K22
0x7C040200, // 003A CALL R1 1
0x50040000, // 003B LDBOOL R1 0 0
0x80040200, // 003C RET 1 R1
0x80000000, // 003D RET 0
})
)
);

View File

@ -896,7 +896,7 @@ be_local_closure(class_Matter_TLV_item_parse, /* name */
0, /* has sup protos */
&be_class_Matter_TLV_item,
1, /* has constants */
( &(const bvalue[25]) { /* constants */
( &(const bvalue[24]) { /* constants */
/* K0 */ be_nested_str_weak(typ),
/* K1 */ be_nested_str_weak(TLV),
/* K2 */ be_nested_str_weak(_len),
@ -916,16 +916,15 @@ be_local_closure(class_Matter_TLV_item_parse, /* name */
/* K16 */ be_nested_str_weak(asstring),
/* K17 */ be_nested_str_weak(NULL),
/* K18 */ be_nested_str_weak(EOC),
/* K19 */ be_nested_str_weak(tasmota),
/* K20 */ be_nested_str_weak(log),
/* K21 */ be_nested_str_weak(MTR_X3A_X20unexpected_X20eoc),
/* K22 */ be_const_int(3),
/* K23 */ be_nested_str_weak(MTR_X3A_X20unexpected_X20type_X3A_X20),
/* K24 */ be_nested_str_weak(next_idx),
/* K19 */ be_nested_str_weak(log),
/* K20 */ be_nested_str_weak(MTR_X3A_X20unexpected_X20eoc),
/* K21 */ be_const_int(3),
/* K22 */ be_nested_str_weak(MTR_X3A_X20unexpected_X20type_X3A_X20),
/* K23 */ be_nested_str_weak(next_idx),
}),
be_str_weak(parse),
&be_const_str_solidified,
( &(const binstruction[103]) { /* code */
( &(const binstruction[101]) { /* code */
0x880C0100, // 0000 GETMBR R3 R0 K0
0x88100101, // 0001 GETMBR R4 R0 K1
0x88140902, // 0002 GETMBR R5 R4 K2
@ -941,7 +940,7 @@ be_local_closure(class_Matter_TLV_item_parse, /* name */
0x90020606, // 000C SETMBR R0 K3 R6
0x541A0007, // 000D LDINT R6 8
0x00080406, // 000E ADD R2 R2 R6
0x70020054, // 000F JMP #0065
0x70020052, // 000F JMP #0063
0x88180906, // 0010 GETMBR R6 R4 K6
0x1C180606, // 0011 EQ R6 R3 R6
0x741A0002, // 0012 JMPT R6 #0016
@ -951,7 +950,7 @@ be_local_closure(class_Matter_TLV_item_parse, /* name */
0x88180907, // 0016 GETMBR R6 R4 K7
0x1C180606, // 0017 EQ R6 R3 R6
0x90020606, // 0018 SETMBR R0 K3 R6
0x7002004A, // 0019 JMP #0065
0x70020048, // 0019 JMP #0063
0x88180908, // 001A GETMBR R6 R4 K8
0x14180606, // 001B LT R6 R3 R6
0x781A000E, // 001C JMPF R6 #002C
@ -969,7 +968,7 @@ be_local_closure(class_Matter_TLV_item_parse, /* name */
0x7C180600, // 0028 CALL R6 3
0x90020606, // 0029 SETMBR R0 K3 R6
0x00080405, // 002A ADD R2 R2 R5
0x70020038, // 002B JMP #0065
0x70020036, // 002B JMP #0063
0x8818090C, // 002C GETMBR R6 R4 K12
0x1C180606, // 002D EQ R6 R3 R6
0x781A0006, // 002E JMPF R6 #0036
@ -979,7 +978,7 @@ be_local_closure(class_Matter_TLV_item_parse, /* name */
0x90020606, // 0032 SETMBR R0 K3 R6
0x541A0003, // 0033 LDINT R6 4
0x00080406, // 0034 ADD R2 R2 R6
0x7002002E, // 0035 JMP #0065
0x7002002C, // 0035 JMP #0063
0x5419FFF7, // 0036 LDINT R6 -8
0x28180A06, // 0037 GE R6 R5 R6
0x781A0016, // 0038 JMPF R6 #0050
@ -1005,30 +1004,28 @@ be_local_closure(class_Matter_TLV_item_parse, /* name */
0x8C1C0F10, // 004C GETMET R7 R7 K16
0x7C1C0200, // 004D CALL R7 1
0x90020607, // 004E SETMBR R0 K3 R7
0x70020014, // 004F JMP #0065
0x70020012, // 004F JMP #0063
0x88180911, // 0050 GETMBR R6 R4 K17
0x1C180606, // 0051 EQ R6 R3 R6
0x781A0000, // 0052 JMPF R6 #0054
0x70020010, // 0053 JMP #0065
0x7002000E, // 0053 JMP #0063
0x88180912, // 0054 GETMBR R6 R4 K18
0x1C180606, // 0055 EQ R6 R3 R6
0x781A0005, // 0056 JMPF R6 #005D
0x781A0004, // 0056 JMPF R6 #005C
0xB81A2600, // 0057 GETNGBL R6 K19
0x8C180D14, // 0058 GETMET R6 R6 K20
0x581C0014, // 0058 LDCONST R7 K20
0x58200015, // 0059 LDCONST R8 K21
0x58240016, // 005A LDCONST R9 K22
0x7C180600, // 005B CALL R6 3
0x70020007, // 005C JMP #0065
0xB81A2600, // 005D GETNGBL R6 K19
0x8C180D14, // 005E GETMET R6 R6 K20
0x60200008, // 005F GETGBL R8 G8
0x5C240600, // 0060 MOVE R9 R3
0x7C200200, // 0061 CALL R8 1
0x00222E08, // 0062 ADD R8 K23 R8
0x58240016, // 0063 LDCONST R9 K22
0x7C180600, // 0064 CALL R6 3
0x90023002, // 0065 SETMBR R0 K24 R2
0x80040400, // 0066 RET 1 R2
0x7C180400, // 005A CALL R6 2
0x70020006, // 005B JMP #0063
0xB81A2600, // 005C GETNGBL R6 K19
0x601C0008, // 005D GETGBL R7 G8
0x5C200600, // 005E MOVE R8 R3
0x7C1C0200, // 005F CALL R7 1
0x001E2C07, // 0060 ADD R7 K22 R7
0x58200015, // 0061 LDCONST R8 K21
0x7C180400, // 0062 CALL R6 2
0x90022E02, // 0063 SETMBR R0 K23 R2
0x80040400, // 0064 RET 1 R2
})
)
);

View File

@ -193,7 +193,7 @@ be_local_closure(class_Matter_UDPServer_send_UDP, /* name */
extern const bclass be_class_Matter_UDPServer;
be_local_closure(class_Matter_UDPServer_received_ack, /* name */
be_nested_proto(
10, /* nstack */
9, /* nstack */
2, /* argc */
2, /* varg */
0, /* has upvals */
@ -216,7 +216,7 @@ be_local_closure(class_Matter_UDPServer_received_ack, /* name */
}),
be_str_weak(received_ack),
&be_const_str_solidified,
( &(const binstruction[41]) { /* code */
( &(const binstruction[40]) { /* code */
0x88080300, // 0000 GETMBR R2 R1 K0
0x880C0301, // 0001 GETMBR R3 R1 K1
0x4C100000, // 0002 LDNIL R4
@ -228,15 +228,15 @@ be_local_closure(class_Matter_UDPServer_received_ack, /* name */
0x88180103, // 0008 GETMBR R6 R0 K3
0x7C140200, // 0009 CALL R5 1
0x14140805, // 000A LT R5 R4 R5
0x7816001B, // 000B JMPF R5 #0028
0x7816001A, // 000B JMPF R5 #0027
0x88140103, // 000C GETMBR R5 R0 K3
0x94140A04, // 000D GETIDX R5 R5 R4
0x88180B04, // 000E GETMBR R6 R5 K4
0x1C180C02, // 000F EQ R6 R6 R2
0x781A0014, // 0010 JMPF R6 #0026
0x781A0013, // 0010 JMPF R6 #0025
0x88180B01, // 0011 GETMBR R6 R5 K1
0x1C180C03, // 0012 EQ R6 R6 R3
0x781A0011, // 0013 JMPF R6 #0026
0x781A0010, // 0013 JMPF R6 #0025
0x88180103, // 0014 GETMBR R6 R0 K3
0x8C180D05, // 0015 GETMET R6 R6 K5
0x5C200800, // 0016 MOVE R8 R4
@ -245,19 +245,18 @@ be_local_closure(class_Matter_UDPServer_received_ack, /* name */
0x8C180D07, // 0019 GETMET R6 R6 K7
0x54220003, // 001A LDINT R8 4
0x7C180400, // 001B CALL R6 2
0x781A0007, // 001C JMPF R6 #0025
0xB81A0C00, // 001D GETNGBL R6 K6
0x8C180D08, // 001E GETMET R6 R6 K8
0x60200008, // 001F GETGBL R8 G8
0x5C240400, // 0020 MOVE R9 R2
0x7C200200, // 0021 CALL R8 1
0x00221208, // 0022 ADD R8 K9 R8
0x54260003, // 0023 LDINT R9 4
0x7C180600, // 0024 CALL R6 3
0x70020000, // 0025 JMP #0027
0x0010090A, // 0026 ADD R4 R4 K10
0x7001FFDE, // 0027 JMP #0007
0x80000000, // 0028 RET 0
0x781A0006, // 001C JMPF R6 #0024
0xB81A1000, // 001D GETNGBL R6 K8
0x601C0008, // 001E GETGBL R7 G8
0x5C200400, // 001F MOVE R8 R2
0x7C1C0200, // 0020 CALL R7 1
0x001E1207, // 0021 ADD R7 K9 R7
0x54220003, // 0022 LDINT R8 4
0x7C180400, // 0023 CALL R6 2
0x70020000, // 0024 JMP #0026
0x0010090A, // 0025 ADD R4 R4 K10
0x7001FFDF, // 0026 JMP #0007
0x80000000, // 0027 RET 0
})
)
);
@ -328,7 +327,7 @@ be_local_closure(class_Matter_UDPServer_start, /* name */
extern const bclass be_class_Matter_UDPServer;
be_local_closure(class_Matter_UDPServer_send, /* name */
be_nested_proto(
9, /* nstack */
8, /* nstack */
2, /* argc */
2, /* varg */
0, /* has upvals */
@ -353,7 +352,7 @@ be_local_closure(class_Matter_UDPServer_send, /* name */
}),
be_str_weak(send),
&be_const_str_solidified,
( &(const binstruction[47]) { /* code */
( &(const binstruction[45]) { /* code */
0x88080100, // 0000 GETMBR R2 R0 K0
0x8C080501, // 0001 GETMET R2 R2 K1
0x88100302, // 0002 GETMBR R4 R1 K2
@ -370,37 +369,35 @@ be_local_closure(class_Matter_UDPServer_send, /* name */
0x88140B05, // 000D GETMBR R5 R5 K5
0x88180306, // 000E GETMBR R6 R1 K6
0x7C080800, // 000F CALL R2 4
0x780A000E, // 0010 JMPF R2 #0020
0x780A000D, // 0010 JMPF R2 #001F
0xB80E0E00, // 0011 GETNGBL R3 K7
0x8C0C0708, // 0012 GETMET R3 R3 K8
0x54160003, // 0013 LDINT R5 4
0x7C0C0400, // 0014 CALL R3 2
0x780E0008, // 0015 JMPF R3 #001F
0xB80E0E00, // 0016 GETNGBL R3 K7
0x8C0C0709, // 0017 GETMET R3 R3 K9
0x60140018, // 0018 GETGBL R5 G24
0x5818000A, // 0019 LDCONST R6 K10
0x881C0302, // 001A GETMBR R7 R1 K2
0x88200304, // 001B GETMBR R8 R1 K4
0x7C140600, // 001C CALL R5 3
0x541A0003, // 001D LDINT R6 4
0x7C0C0600, // 001E CALL R3 3
0x7002000D, // 001F JMP #002E
0xB80E0E00, // 0020 GETNGBL R3 K7
0x8C0C0708, // 0021 GETMET R3 R3 K8
0x5814000B, // 0022 LDCONST R5 K11
0x7C0C0400, // 0023 CALL R3 2
0x780E0008, // 0024 JMPF R3 #002E
0xB80E0E00, // 0025 GETNGBL R3 K7
0x8C0C0709, // 0026 GETMET R3 R3 K9
0x60140018, // 0027 GETGBL R5 G24
0x5818000C, // 0028 LDCONST R6 K12
0x881C0302, // 0029 GETMBR R7 R1 K2
0x88200304, // 002A GETMBR R8 R1 K4
0x7C140600, // 002B CALL R5 3
0x5818000B, // 002C LDCONST R6 K11
0x7C0C0600, // 002D CALL R3 3
0x80040400, // 002E RET 1 R2
0x780E0007, // 0015 JMPF R3 #001E
0xB80E1200, // 0016 GETNGBL R3 K9
0x60100018, // 0017 GETGBL R4 G24
0x5814000A, // 0018 LDCONST R5 K10
0x88180302, // 0019 GETMBR R6 R1 K2
0x881C0304, // 001A GETMBR R7 R1 K4
0x7C100600, // 001B CALL R4 3
0x54160003, // 001C LDINT R5 4
0x7C0C0400, // 001D CALL R3 2
0x7002000C, // 001E JMP #002C
0xB80E0E00, // 001F GETNGBL R3 K7
0x8C0C0708, // 0020 GETMET R3 R3 K8
0x5814000B, // 0021 LDCONST R5 K11
0x7C0C0400, // 0022 CALL R3 2
0x780E0007, // 0023 JMPF R3 #002C
0xB80E1200, // 0024 GETNGBL R3 K9
0x60100018, // 0025 GETGBL R4 G24
0x5814000C, // 0026 LDCONST R5 K12
0x88180302, // 0027 GETMBR R6 R1 K2
0x881C0304, // 0028 GETMBR R7 R1 K4
0x7C100600, // 0029 CALL R4 3
0x5814000B, // 002A LDCONST R5 K11
0x7C0C0400, // 002B CALL R3 2
0x80040400, // 002C RET 1 R2
})
)
);
@ -533,7 +530,7 @@ be_local_closure(class_Matter_UDPServer_init, /* name */
extern const bclass be_class_Matter_UDPServer;
be_local_closure(class_Matter_UDPServer__resend_packets, /* name */
be_nested_proto(
11, /* nstack */
10, /* nstack */
1, /* argc */
2, /* varg */
0, /* has upvals */
@ -565,67 +562,65 @@ be_local_closure(class_Matter_UDPServer__resend_packets, /* name */
}),
be_str_weak(_resend_packets),
&be_const_str_solidified,
( &(const binstruction[60]) { /* code */
( &(const binstruction[58]) { /* code */
0x58040000, // 0000 LDCONST R1 K0
0x6008000C, // 0001 GETGBL R2 G12
0x880C0101, // 0002 GETMBR R3 R0 K1
0x7C080200, // 0003 CALL R2 1
0x14080202, // 0004 LT R2 R1 R2
0x780A0034, // 0005 JMPF R2 #003B
0x780A0032, // 0005 JMPF R2 #0039
0x88080101, // 0006 GETMBR R2 R0 K1
0x94080401, // 0007 GETIDX R2 R2 R1
0xB80E0400, // 0008 GETNGBL R3 K2
0x8C0C0703, // 0009 GETMET R3 R3 K3
0x88140504, // 000A GETMBR R5 R2 K4
0x7C0C0400, // 000B CALL R3 2
0x780E002B, // 000C JMPF R3 #0039
0x780E0029, // 000C JMPF R3 #0037
0x880C0505, // 000D GETMBR R3 R2 K5
0x88100106, // 000E GETMBR R4 R0 K6
0x180C0604, // 000F LE R3 R3 R4
0x780E0017, // 0010 JMPF R3 #0029
0xB80E0400, // 0011 GETNGBL R3 K2
0x8C0C0707, // 0012 GETMET R3 R3 K7
0x60140008, // 0013 GETGBL R5 G8
0x88180509, // 0014 GETMBR R6 R2 K9
0x7C140200, // 0015 CALL R5 1
0x00161005, // 0016 ADD R5 K8 R5
0x541A0003, // 0017 LDINT R6 4
0x7C0C0600, // 0018 CALL R3 3
0x8C0C010A, // 0019 GETMET R3 R0 K10
0x5C140400, // 001A MOVE R5 R2
0x7C0C0400, // 001B CALL R3 2
0xB80E0400, // 001C GETNGBL R3 K2
0x8C0C070B, // 001D GETMET R3 R3 K11
0x7C0C0200, // 001E CALL R3 1
0x8C10010C, // 001F GETMET R4 R0 K12
0x88180505, // 0020 GETMBR R6 R2 K5
0x7C100400, // 0021 CALL R4 2
0x000C0604, // 0022 ADD R3 R3 R4
0x900A0803, // 0023 SETMBR R2 K4 R3
0x880C0505, // 0024 GETMBR R3 R2 K5
0x000C070D, // 0025 ADD R3 R3 K13
0x900A0A03, // 0026 SETMBR R2 K5 R3
0x0004030D, // 0027 ADD R1 R1 K13
0x7002000E, // 0028 JMP #0038
0x880C0101, // 0029 GETMBR R3 R0 K1
0x8C0C070E, // 002A GETMET R3 R3 K14
0x5C140200, // 002B MOVE R5 R1
0x7C0C0400, // 002C CALL R3 2
0xB80E0400, // 002D GETNGBL R3 K2
0x8C0C0707, // 002E GETMET R3 R3 K7
0x60140018, // 002F GETGBL R5 G24
0x5818000F, // 0030 LDCONST R6 K15
0x881C0510, // 0031 GETMBR R7 R2 K16
0x88200511, // 0032 GETMBR R8 R2 K17
0x88240512, // 0033 GETMBR R9 R2 K18
0x88280509, // 0034 GETMBR R10 R2 K9
0x7C140A00, // 0035 CALL R5 5
0x58180013, // 0036 LDCONST R6 K19
0x7C0C0600, // 0037 CALL R3 3
0x70020000, // 0038 JMP #003A
0x0004030D, // 0039 ADD R1 R1 K13
0x7001FFC5, // 003A JMP #0001
0x80000000, // 003B RET 0
0x780E0016, // 0010 JMPF R3 #0028
0xB80E0E00, // 0011 GETNGBL R3 K7
0x60100008, // 0012 GETGBL R4 G8
0x88140509, // 0013 GETMBR R5 R2 K9
0x7C100200, // 0014 CALL R4 1
0x00121004, // 0015 ADD R4 K8 R4
0x54160003, // 0016 LDINT R5 4
0x7C0C0400, // 0017 CALL R3 2
0x8C0C010A, // 0018 GETMET R3 R0 K10
0x5C140400, // 0019 MOVE R5 R2
0x7C0C0400, // 001A CALL R3 2
0xB80E0400, // 001B GETNGBL R3 K2
0x8C0C070B, // 001C GETMET R3 R3 K11
0x7C0C0200, // 001D CALL R3 1
0x8C10010C, // 001E GETMET R4 R0 K12
0x88180505, // 001F GETMBR R6 R2 K5
0x7C100400, // 0020 CALL R4 2
0x000C0604, // 0021 ADD R3 R3 R4
0x900A0803, // 0022 SETMBR R2 K4 R3
0x880C0505, // 0023 GETMBR R3 R2 K5
0x000C070D, // 0024 ADD R3 R3 K13
0x900A0A03, // 0025 SETMBR R2 K5 R3
0x0004030D, // 0026 ADD R1 R1 K13
0x7002000D, // 0027 JMP #0036
0x880C0101, // 0028 GETMBR R3 R0 K1
0x8C0C070E, // 0029 GETMET R3 R3 K14
0x5C140200, // 002A MOVE R5 R1
0x7C0C0400, // 002B CALL R3 2
0xB80E0E00, // 002C GETNGBL R3 K7
0x60100018, // 002D GETGBL R4 G24
0x5814000F, // 002E LDCONST R5 K15
0x88180510, // 002F GETMBR R6 R2 K16
0x881C0511, // 0030 GETMBR R7 R2 K17
0x88200512, // 0031 GETMBR R8 R2 K18
0x88240509, // 0032 GETMBR R9 R2 K9
0x7C100A00, // 0033 CALL R4 5
0x58140013, // 0034 LDCONST R5 K19
0x7C0C0400, // 0035 CALL R3 2
0x70020000, // 0036 JMP #0038
0x0004030D, // 0037 ADD R1 R1 K13
0x7001FFC7, // 0038 JMP #0001
0x80000000, // 0039 RET 0
})
)
);
@ -727,7 +722,7 @@ be_local_closure(class_Matter_UDPServer__backoff_time, /* name */
extern const bclass be_class_Matter_UDPServer;
be_local_closure(class_Matter_UDPServer_loop, /* name */
be_nested_proto(
12, /* nstack */
11, /* nstack */
1, /* argc */
2, /* varg */
0, /* has upvals */
@ -759,7 +754,7 @@ be_local_closure(class_Matter_UDPServer_loop, /* name */
}),
be_str_weak(loop),
&be_const_str_solidified,
( &(const binstruction[63]) { /* code */
( &(const binstruction[62]) { /* code */
0xB8060000, // 0000 GETNGBL R1 K0
0x88040301, // 0001 GETMBR R1 R1 K1
0x58080002, // 0002 LDCONST R2 K2
@ -774,7 +769,7 @@ be_local_closure(class_Matter_UDPServer_loop, /* name */
0x7C0C0400, // 000B CALL R3 2
0x4C100000, // 000C LDNIL R4
0x20100604, // 000D NE R4 R3 R4
0x7812002C, // 000E JMPF R4 #003C
0x7812002B, // 000E JMPF R4 #003B
0x8C100306, // 000F GETMET R4 R1 K6
0x7C100200, // 0010 CALL R4 1
0x90020A03, // 0011 SETMBR R0 K5 R3
@ -787,42 +782,41 @@ be_local_closure(class_Matter_UDPServer_loop, /* name */
0x8C180D0B, // 0018 GETMET R6 R6 K11
0x54220003, // 0019 LDINT R8 4
0x7C180400, // 001A CALL R6 2
0x781A0008, // 001B JMPF R6 #0025
0xB81A1400, // 001C GETNGBL R6 K10
0x8C180D0C, // 001D GETMET R6 R6 K12
0x60200018, // 001E GETGBL R8 G24
0x5824000D, // 001F LDCONST R9 K13
0x5C280800, // 0020 MOVE R10 R4
0x5C2C0A00, // 0021 MOVE R11 R5
0x7C200600, // 0022 CALL R8 3
0x54260003, // 0023 LDINT R9 4
0x7C180600, // 0024 CALL R6 3
0x8818010E, // 0025 GETMBR R6 R0 K14
0x781A0007, // 0026 JMPF R6 #002F
0x8C18030C, // 0027 GETMET R6 R1 K12
0x5820000F, // 0028 LDCONST R8 K15
0x7C180400, // 0029 CALL R6 2
0x8C18010E, // 002A GETMET R6 R0 K14
0x5C200600, // 002B MOVE R8 R3
0x5C240800, // 002C MOVE R9 R4
0x5C280A00, // 002D MOVE R10 R5
0x7C180800, // 002E CALL R6 4
0x8C180310, // 002F GETMET R6 R1 K16
0x58200011, // 0030 LDCONST R8 K17
0x7C180400, // 0031 CALL R6 2
0x88180112, // 0032 GETMBR R6 R0 K18
0x14180406, // 0033 LT R6 R2 R6
0x781A0004, // 0034 JMPF R6 #003A
0x88180103, // 0035 GETMBR R6 R0 K3
0x8C180D04, // 0036 GETMET R6 R6 K4
0x7C180200, // 0037 CALL R6 1
0x5C0C0C00, // 0038 MOVE R3 R6
0x70020000, // 0039 JMP #003B
0x4C0C0000, // 003A LDNIL R3
0x7001FFCF, // 003B JMP #000C
0x8C100113, // 003C GETMET R4 R0 K19
0x7C100200, // 003D CALL R4 1
0x80000000, // 003E RET 0
0x781A0007, // 001B JMPF R6 #0024
0xB81A1800, // 001C GETNGBL R6 K12
0x601C0018, // 001D GETGBL R7 G24
0x5820000D, // 001E LDCONST R8 K13
0x5C240800, // 001F MOVE R9 R4
0x5C280A00, // 0020 MOVE R10 R5
0x7C1C0600, // 0021 CALL R7 3
0x54220003, // 0022 LDINT R8 4
0x7C180400, // 0023 CALL R6 2
0x8818010E, // 0024 GETMBR R6 R0 K14
0x781A0007, // 0025 JMPF R6 #002E
0x8C18030C, // 0026 GETMET R6 R1 K12
0x5820000F, // 0027 LDCONST R8 K15
0x7C180400, // 0028 CALL R6 2
0x8C18010E, // 0029 GETMET R6 R0 K14
0x5C200600, // 002A MOVE R8 R3
0x5C240800, // 002B MOVE R9 R4
0x5C280A00, // 002C MOVE R10 R5
0x7C180800, // 002D CALL R6 4
0x8C180310, // 002E GETMET R6 R1 K16
0x58200011, // 002F LDCONST R8 K17
0x7C180400, // 0030 CALL R6 2
0x88180112, // 0031 GETMBR R6 R0 K18
0x14180406, // 0032 LT R6 R2 R6
0x781A0004, // 0033 JMPF R6 #0039
0x88180103, // 0034 GETMBR R6 R0 K3
0x8C180D04, // 0035 GETMET R6 R6 K4
0x7C180200, // 0036 CALL R6 1
0x5C0C0C00, // 0037 MOVE R3 R6
0x70020000, // 0038 JMP #003A
0x4C0C0000, // 0039 LDNIL R3
0x7001FFD0, // 003A JMP #000C
0x8C100113, // 003B GETMET R4 R0 K19
0x7C100200, // 003C CALL R4 1
0x80000000, // 003D RET 0
})
)
);

File diff suppressed because it is too large Load Diff