mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-19 08:46:32 +00:00
Matter fix support for Alexa (#20545)
This commit is contained in:
parent
0ccd958c6c
commit
6d0c2fa9bc
@ -34,6 +34,7 @@ All notable changes to this project will be documented in this file.
|
||||
- ESP32 shutter exception 6 (divide by zero) on ``ShutterMode 4`` (#20524)
|
||||
- GPIOViewer exception 3
|
||||
- Berry assigment to list with negative index
|
||||
- Matter fix support for Alexa
|
||||
|
||||
### Removed
|
||||
- Max number of 30 backlog entries
|
||||
|
@ -285,6 +285,7 @@ module matter (scope: global, strings: weak) {
|
||||
_STYLESHEET, comptr(MATTER_STYLESHEET)
|
||||
_ADD_ENDPOINT_JS, comptr(MATTER_ADD_ENDPOINT_HINTS_JS)
|
||||
MATTER_OPTION, int(151) // SetOption151 enables Matter
|
||||
AGGREGATOR_ENDPOINT, int(0xFE) // for Alexa we need only 8 bits endpoints
|
||||
seconds_to_dhm, ctype_func(matter_seconds_to_dhm)
|
||||
|
||||
Verhoeff, class(be_class_Matter_Verhoeff)
|
||||
|
@ -46,7 +46,7 @@ class Matter_Plugin_Aggregator : Matter_Plugin
|
||||
var pl = TLV.Matter_TLV_array()
|
||||
var eps = self.device.get_active_endpoints(true)
|
||||
for ep: eps
|
||||
if ep < 0xFF00
|
||||
if ep < matter.AGGREGATOR_ENDPOINT
|
||||
pl.add_TLV(nil, TLV.U2, ep) # add each endpoint
|
||||
end
|
||||
end
|
||||
|
@ -158,7 +158,7 @@ class Matter_Plugin_Root : Matter_Plugin
|
||||
var nocs = nocl.add_struct(nil)
|
||||
nocs.add_TLV(1, TLV.B2, loc_fabric.get_noc()) # NOC
|
||||
nocs.add_TLV(2, TLV.B2, loc_fabric.get_icac()) # ICAC
|
||||
nocs.add_TLV(0xFE, TLV.U2, loc_fabric.get_fabric_index()) # Label
|
||||
nocs.add_TLV(matter.AGGREGATOR_ENDPOINT, TLV.U2, loc_fabric.get_fabric_index()) # Label
|
||||
end
|
||||
return nocl
|
||||
elif attribute == 0x0001 # ---------- Fabrics / list[FabricDescriptorStruct] ----------
|
||||
@ -312,7 +312,7 @@ class Matter_Plugin_Root : Matter_Plugin
|
||||
var disable_bridge_mode = self.device.disable_bridge_mode
|
||||
for ep: eps
|
||||
# if bridge mode is disabled, don't announce Aggregatore (above 0xFF00)
|
||||
if !disable_bridge_mode || ep < 0xFF00
|
||||
if !disable_bridge_mode || ep < matter.AGGREGATOR_ENDPOINT
|
||||
pl.add_TLV(nil, TLV.U2, ep) # add each endpoint
|
||||
end
|
||||
end
|
||||
|
@ -57,6 +57,7 @@ class Matter_Session_Store
|
||||
#############################################################
|
||||
# remove fabric
|
||||
def remove_fabric(fabric)
|
||||
if (self.sessions != nil)
|
||||
var idx = 0
|
||||
while idx < size(self.sessions)
|
||||
if self.sessions[idx]._fabric == fabric
|
||||
@ -65,8 +66,11 @@ class Matter_Session_Store
|
||||
idx += 1
|
||||
end
|
||||
end
|
||||
end
|
||||
if (self.fabrics != nil)
|
||||
self.fabrics.remove(self.fabrics.find(fabric)) # fail safe
|
||||
end
|
||||
end
|
||||
|
||||
#############################################################
|
||||
# Remove redudant fabric
|
||||
|
@ -837,7 +837,7 @@ class Matter_Device
|
||||
tasmota.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, 0xFF00, {}))
|
||||
self.plugins.push(matter.Plugin_Aggregator(self, matter.AGGREGATOR_ENDPOINT, {}))
|
||||
|
||||
for ep: endpoints
|
||||
if ep == 0 continue end # skip endpoint 0
|
||||
@ -859,7 +859,7 @@ class Matter_Device
|
||||
tasmota.log("MTR: Exception" + str(e) + "|" + str(m), 2)
|
||||
end
|
||||
end
|
||||
tasmota.log(format("MTR: endpoint = %5i type:%s%s", 0xFF00, 'aggregator', ''), 2)
|
||||
tasmota.log(format("MTR: endpoint = %5i type:%s%s", matter.AGGREGATOR_ENDPOINT, 'aggregator', ''), 2)
|
||||
|
||||
tasmota.publish_result('{"Matter":{"Initialized":1}}', 'Matter')
|
||||
end
|
||||
@ -1396,7 +1396,7 @@ class Matter_Device
|
||||
def signal_endpoints_changed()
|
||||
# mark parts lists as changed
|
||||
self.attribute_updated(0x0000, 0x001D, 0x0003, false)
|
||||
self.attribute_updated(0xFF00, 0x001D, 0x0003, false)
|
||||
self.attribute_updated(matter.AGGREGATOR_ENDPOINT, 0x001D, 0x0003, false)
|
||||
end
|
||||
|
||||
#############################################################
|
||||
|
@ -19,7 +19,7 @@ be_local_closure(Matter_Plugin_Aggregator_read_attribute, /* name */
|
||||
0, /* has sup protos */
|
||||
NULL, /* no sub protos */
|
||||
1, /* has constants */
|
||||
( &(const bvalue[12]) { /* constants */
|
||||
( &(const bvalue[13]) { /* constants */
|
||||
/* K0 */ be_nested_str_weak(matter),
|
||||
/* K1 */ be_nested_str_weak(TLV),
|
||||
/* K2 */ be_nested_str_weak(cluster),
|
||||
@ -28,23 +28,24 @@ be_local_closure(Matter_Plugin_Aggregator_read_attribute, /* name */
|
||||
/* K5 */ be_nested_str_weak(Matter_TLV_array),
|
||||
/* K6 */ be_nested_str_weak(device),
|
||||
/* K7 */ be_nested_str_weak(get_active_endpoints),
|
||||
/* K8 */ be_nested_str_weak(add_TLV),
|
||||
/* K9 */ be_nested_str_weak(U2),
|
||||
/* K10 */ be_nested_str_weak(stop_iteration),
|
||||
/* K11 */ be_nested_str_weak(read_attribute),
|
||||
/* K8 */ be_nested_str_weak(AGGREGATOR_ENDPOINT),
|
||||
/* K9 */ be_nested_str_weak(add_TLV),
|
||||
/* K10 */ be_nested_str_weak(U2),
|
||||
/* K11 */ be_nested_str_weak(stop_iteration),
|
||||
/* K12 */ be_nested_str_weak(read_attribute),
|
||||
}),
|
||||
be_str_weak(read_attribute),
|
||||
&be_const_str_solidified,
|
||||
( &(const binstruction[55]) { /* code */
|
||||
( &(const binstruction[56]) { /* code */
|
||||
0xB8120000, // 0000 GETNGBL R4 K0
|
||||
0x88100901, // 0001 GETMBR R4 R4 K1
|
||||
0x88140502, // 0002 GETMBR R5 R2 K2
|
||||
0x88180503, // 0003 GETMBR R6 R2 K3
|
||||
0x541E001C, // 0004 LDINT R7 29
|
||||
0x1C1C0A07, // 0005 EQ R7 R5 R7
|
||||
0x781E0025, // 0006 JMPF R7 #002D
|
||||
0x781E0026, // 0006 JMPF R7 #002E
|
||||
0x1C1C0D04, // 0007 EQ R7 R6 K4
|
||||
0x781E0019, // 0008 JMPF R7 #0023
|
||||
0x781E001A, // 0008 JMPF R7 #0024
|
||||
0x8C1C0905, // 0009 GETMET R7 R4 K5
|
||||
0x7C1C0200, // 000A CALL R7 1
|
||||
0x88200106, // 000B GETMBR R8 R0 K6
|
||||
@ -54,43 +55,44 @@ be_local_closure(Matter_Plugin_Aggregator_read_attribute, /* name */
|
||||
0x60240010, // 000F GETGBL R9 G16
|
||||
0x5C281000, // 0010 MOVE R10 R8
|
||||
0x7C240200, // 0011 CALL R9 1
|
||||
0xA802000A, // 0012 EXBLK 0 #001E
|
||||
0xA802000B, // 0012 EXBLK 0 #001F
|
||||
0x5C281200, // 0013 MOVE R10 R9
|
||||
0x7C280000, // 0014 CALL R10 0
|
||||
0x542EFEFF, // 0015 LDINT R11 65280
|
||||
0x142C140B, // 0016 LT R11 R10 R11
|
||||
0x782E0004, // 0017 JMPF R11 #001D
|
||||
0x8C2C0F08, // 0018 GETMET R11 R7 K8
|
||||
0x4C340000, // 0019 LDNIL R13
|
||||
0x88380909, // 001A GETMBR R14 R4 K9
|
||||
0x5C3C1400, // 001B MOVE R15 R10
|
||||
0x7C2C0800, // 001C CALL R11 4
|
||||
0x7001FFF4, // 001D JMP #0013
|
||||
0x5824000A, // 001E LDCONST R9 K10
|
||||
0xAC240200, // 001F CATCH R9 1 0
|
||||
0xB0080000, // 0020 RAISE 2 R0 R0
|
||||
0x80040E00, // 0021 RET 1 R7
|
||||
0x70020008, // 0022 JMP #002C
|
||||
0x601C0003, // 0023 GETGBL R7 G3
|
||||
0x5C200000, // 0024 MOVE R8 R0
|
||||
0x7C1C0200, // 0025 CALL R7 1
|
||||
0x8C1C0F0B, // 0026 GETMET R7 R7 K11
|
||||
0x5C240200, // 0027 MOVE R9 R1
|
||||
0x5C280400, // 0028 MOVE R10 R2
|
||||
0x5C2C0600, // 0029 MOVE R11 R3
|
||||
0x7C1C0800, // 002A CALL R7 4
|
||||
0x80040E00, // 002B RET 1 R7
|
||||
0x70020008, // 002C JMP #0036
|
||||
0x601C0003, // 002D GETGBL R7 G3
|
||||
0x5C200000, // 002E MOVE R8 R0
|
||||
0x7C1C0200, // 002F CALL R7 1
|
||||
0x8C1C0F0B, // 0030 GETMET R7 R7 K11
|
||||
0x5C240200, // 0031 MOVE R9 R1
|
||||
0x5C280400, // 0032 MOVE R10 R2
|
||||
0x5C2C0600, // 0033 MOVE R11 R3
|
||||
0x7C1C0800, // 0034 CALL R7 4
|
||||
0x80040E00, // 0035 RET 1 R7
|
||||
0x80000000, // 0036 RET 0
|
||||
0xB82E0000, // 0015 GETNGBL R11 K0
|
||||
0x882C1708, // 0016 GETMBR R11 R11 K8
|
||||
0x142C140B, // 0017 LT R11 R10 R11
|
||||
0x782E0004, // 0018 JMPF R11 #001E
|
||||
0x8C2C0F09, // 0019 GETMET R11 R7 K9
|
||||
0x4C340000, // 001A LDNIL R13
|
||||
0x8838090A, // 001B GETMBR R14 R4 K10
|
||||
0x5C3C1400, // 001C MOVE R15 R10
|
||||
0x7C2C0800, // 001D CALL R11 4
|
||||
0x7001FFF3, // 001E JMP #0013
|
||||
0x5824000B, // 001F LDCONST R9 K11
|
||||
0xAC240200, // 0020 CATCH R9 1 0
|
||||
0xB0080000, // 0021 RAISE 2 R0 R0
|
||||
0x80040E00, // 0022 RET 1 R7
|
||||
0x70020008, // 0023 JMP #002D
|
||||
0x601C0003, // 0024 GETGBL R7 G3
|
||||
0x5C200000, // 0025 MOVE R8 R0
|
||||
0x7C1C0200, // 0026 CALL R7 1
|
||||
0x8C1C0F0C, // 0027 GETMET R7 R7 K12
|
||||
0x5C240200, // 0028 MOVE R9 R1
|
||||
0x5C280400, // 0029 MOVE R10 R2
|
||||
0x5C2C0600, // 002A MOVE R11 R3
|
||||
0x7C1C0800, // 002B CALL R7 4
|
||||
0x80040E00, // 002C RET 1 R7
|
||||
0x70020008, // 002D JMP #0037
|
||||
0x601C0003, // 002E GETGBL R7 G3
|
||||
0x5C200000, // 002F MOVE R8 R0
|
||||
0x7C1C0200, // 0030 CALL R7 1
|
||||
0x8C1C0F0C, // 0031 GETMET R7 R7 K12
|
||||
0x5C240200, // 0032 MOVE R9 R1
|
||||
0x5C280400, // 0033 MOVE R10 R2
|
||||
0x5C2C0600, // 0034 MOVE R11 R3
|
||||
0x7C1C0800, // 0035 CALL R7 4
|
||||
0x80040E00, // 0036 RET 1 R7
|
||||
0x80000000, // 0037 RET 0
|
||||
})
|
||||
)
|
||||
);
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -533,7 +533,7 @@ be_local_closure(Matter_Session_Store_count_active_fabrics, /* name */
|
||||
********************************************************************/
|
||||
be_local_closure(Matter_Session_Store_remove_fabric, /* name */
|
||||
be_nested_proto(
|
||||
8, /* nstack */
|
||||
7, /* nstack */
|
||||
2, /* argc */
|
||||
2, /* varg */
|
||||
0, /* has upvals */
|
||||
@ -542,8 +542,8 @@ be_local_closure(Matter_Session_Store_remove_fabric, /* name */
|
||||
NULL, /* no sub protos */
|
||||
1, /* has constants */
|
||||
( &(const bvalue[ 7]) { /* constants */
|
||||
/* K0 */ be_const_int(0),
|
||||
/* K1 */ be_nested_str_weak(sessions),
|
||||
/* K0 */ be_nested_str_weak(sessions),
|
||||
/* K1 */ be_const_int(0),
|
||||
/* K2 */ be_nested_str_weak(_fabric),
|
||||
/* K3 */ be_nested_str_weak(remove),
|
||||
/* K4 */ be_const_int(1),
|
||||
@ -552,33 +552,41 @@ be_local_closure(Matter_Session_Store_remove_fabric, /* name */
|
||||
}),
|
||||
be_str_weak(remove_fabric),
|
||||
&be_const_str_solidified,
|
||||
( &(const binstruction[26]) { /* code */
|
||||
0x58080000, // 0000 LDCONST R2 K0
|
||||
0x600C000C, // 0001 GETGBL R3 G12
|
||||
0x88100101, // 0002 GETMBR R4 R0 K1
|
||||
0x7C0C0200, // 0003 CALL R3 1
|
||||
0x140C0403, // 0004 LT R3 R2 R3
|
||||
0x780E000B, // 0005 JMPF R3 #0012
|
||||
0x880C0101, // 0006 GETMBR R3 R0 K1
|
||||
0x940C0602, // 0007 GETIDX R3 R3 R2
|
||||
0x880C0702, // 0008 GETMBR R3 R3 K2
|
||||
0x1C0C0601, // 0009 EQ R3 R3 R1
|
||||
0x780E0004, // 000A JMPF R3 #0010
|
||||
0x880C0101, // 000B GETMBR R3 R0 K1
|
||||
0x8C0C0703, // 000C GETMET R3 R3 K3
|
||||
0x5C140400, // 000D MOVE R5 R2
|
||||
0x7C0C0400, // 000E CALL R3 2
|
||||
0x70020000, // 000F JMP #0011
|
||||
0x00080504, // 0010 ADD R2 R2 K4
|
||||
0x7001FFEE, // 0011 JMP #0001
|
||||
0x880C0105, // 0012 GETMBR R3 R0 K5
|
||||
0x8C0C0703, // 0013 GETMET R3 R3 K3
|
||||
0x88140105, // 0014 GETMBR R5 R0 K5
|
||||
0x8C140B06, // 0015 GETMET R5 R5 K6
|
||||
0x5C1C0200, // 0016 MOVE R7 R1
|
||||
0x7C140400, // 0017 CALL R5 2
|
||||
0x7C0C0400, // 0018 CALL R3 2
|
||||
0x80000000, // 0019 RET 0
|
||||
( &(const binstruction[34]) { /* code */
|
||||
0x88080100, // 0000 GETMBR R2 R0 K0
|
||||
0x4C0C0000, // 0001 LDNIL R3
|
||||
0x20080403, // 0002 NE R2 R2 R3
|
||||
0x780A0011, // 0003 JMPF R2 #0016
|
||||
0x58080001, // 0004 LDCONST R2 K1
|
||||
0x600C000C, // 0005 GETGBL R3 G12
|
||||
0x88100100, // 0006 GETMBR R4 R0 K0
|
||||
0x7C0C0200, // 0007 CALL R3 1
|
||||
0x140C0403, // 0008 LT R3 R2 R3
|
||||
0x780E000B, // 0009 JMPF R3 #0016
|
||||
0x880C0100, // 000A GETMBR R3 R0 K0
|
||||
0x940C0602, // 000B GETIDX R3 R3 R2
|
||||
0x880C0702, // 000C GETMBR R3 R3 K2
|
||||
0x1C0C0601, // 000D EQ R3 R3 R1
|
||||
0x780E0004, // 000E JMPF R3 #0014
|
||||
0x880C0100, // 000F GETMBR R3 R0 K0
|
||||
0x8C0C0703, // 0010 GETMET R3 R3 K3
|
||||
0x5C140400, // 0011 MOVE R5 R2
|
||||
0x7C0C0400, // 0012 CALL R3 2
|
||||
0x70020000, // 0013 JMP #0015
|
||||
0x00080504, // 0014 ADD R2 R2 K4
|
||||
0x7001FFEE, // 0015 JMP #0005
|
||||
0x88080105, // 0016 GETMBR R2 R0 K5
|
||||
0x4C0C0000, // 0017 LDNIL R3
|
||||
0x20080403, // 0018 NE R2 R2 R3
|
||||
0x780A0006, // 0019 JMPF R2 #0021
|
||||
0x88080105, // 001A GETMBR R2 R0 K5
|
||||
0x8C080503, // 001B GETMET R2 R2 K3
|
||||
0x88100105, // 001C GETMBR R4 R0 K5
|
||||
0x8C100906, // 001D GETMET R4 R4 K6
|
||||
0x5C180200, // 001E MOVE R6 R1
|
||||
0x7C100400, // 001F CALL R4 2
|
||||
0x7C080400, // 0020 CALL R2 2
|
||||
0x80000000, // 0021 RET 0
|
||||
})
|
||||
)
|
||||
);
|
||||
|
@ -2404,7 +2404,7 @@ be_local_closure(Matter_Device__instantiate_plugins_from_config, /* name */
|
||||
0, /* has sup protos */
|
||||
NULL, /* no sub protos */
|
||||
1, /* has constants */
|
||||
( &(const bvalue[30]) { /* constants */
|
||||
( &(const bvalue[31]) { /* constants */
|
||||
/* K0 */ be_nested_str_weak(k2l_num),
|
||||
/* K1 */ be_nested_str_weak(tasmota),
|
||||
/* K2 */ be_nested_str_weak(log),
|
||||
@ -2419,26 +2419,27 @@ be_local_closure(Matter_Device__instantiate_plugins_from_config, /* name */
|
||||
/* K11 */ be_nested_str_weak(root),
|
||||
/* K12 */ be_nested_str_weak(),
|
||||
/* K13 */ be_nested_str_weak(Plugin_Aggregator),
|
||||
/* K14 */ be_nested_str_weak(find),
|
||||
/* K15 */ be_nested_str_weak(type),
|
||||
/* K16 */ be_nested_str_weak(MTR_X3A_X20no_X20class_X20name_X2C_X20skipping),
|
||||
/* K17 */ be_const_int(3),
|
||||
/* K18 */ be_nested_str_weak(MTR_X3A_X20only_X20one_X20root_X20node_X20allowed),
|
||||
/* K19 */ be_nested_str_weak(plugins_classes),
|
||||
/* K20 */ be_nested_str_weak(MTR_X3A_X20unknown_X20class_X20name_X20_X27),
|
||||
/* K21 */ be_nested_str_weak(_X27_X20skipping),
|
||||
/* K22 */ be_nested_str_weak(conf_to_log),
|
||||
/* K23 */ be_nested_str_weak(MTR_X3A_X20Exception),
|
||||
/* K24 */ be_nested_str_weak(_X7C),
|
||||
/* K25 */ be_nested_str_weak(stop_iteration),
|
||||
/* K26 */ be_nested_str_weak(aggregator),
|
||||
/* K27 */ be_nested_str_weak(publish_result),
|
||||
/* K28 */ be_nested_str_weak(_X7B_X22Matter_X22_X3A_X7B_X22Initialized_X22_X3A1_X7D_X7D),
|
||||
/* K29 */ be_nested_str_weak(Matter),
|
||||
/* K14 */ be_nested_str_weak(AGGREGATOR_ENDPOINT),
|
||||
/* K15 */ be_nested_str_weak(find),
|
||||
/* K16 */ be_nested_str_weak(type),
|
||||
/* K17 */ be_nested_str_weak(MTR_X3A_X20no_X20class_X20name_X2C_X20skipping),
|
||||
/* K18 */ be_const_int(3),
|
||||
/* K19 */ be_nested_str_weak(MTR_X3A_X20only_X20one_X20root_X20node_X20allowed),
|
||||
/* K20 */ be_nested_str_weak(plugins_classes),
|
||||
/* K21 */ be_nested_str_weak(MTR_X3A_X20unknown_X20class_X20name_X20_X27),
|
||||
/* K22 */ be_nested_str_weak(_X27_X20skipping),
|
||||
/* K23 */ be_nested_str_weak(conf_to_log),
|
||||
/* K24 */ be_nested_str_weak(MTR_X3A_X20Exception),
|
||||
/* K25 */ be_nested_str_weak(_X7C),
|
||||
/* K26 */ be_nested_str_weak(stop_iteration),
|
||||
/* K27 */ be_nested_str_weak(aggregator),
|
||||
/* K28 */ be_nested_str_weak(publish_result),
|
||||
/* K29 */ be_nested_str_weak(_X7B_X22Matter_X22_X3A_X7B_X22Initialized_X22_X3A1_X7D_X7D),
|
||||
/* K30 */ be_nested_str_weak(Matter),
|
||||
}),
|
||||
be_str_weak(_instantiate_plugins_from_config),
|
||||
&be_const_str_solidified,
|
||||
( &(const binstruction[152]) { /* code */
|
||||
( &(const binstruction[154]) { /* code */
|
||||
0x8C080100, // 0000 GETMET R2 R0 K0
|
||||
0x5C100200, // 0001 MOVE R4 R1
|
||||
0x7C080400, // 0002 CALL R2 2
|
||||
@ -2472,125 +2473,127 @@ be_local_closure(Matter_Device__instantiate_plugins_from_config, /* name */
|
||||
0xB8160E00, // 001E GETNGBL R5 K7
|
||||
0x8C140B0D, // 001F GETMET R5 R5 K13
|
||||
0x5C1C0000, // 0020 MOVE R7 R0
|
||||
0x5422FEFF, // 0021 LDINT R8 65280
|
||||
0x60240013, // 0022 GETGBL R9 G19
|
||||
0x7C240000, // 0023 CALL R9 0
|
||||
0x7C140800, // 0024 CALL R5 4
|
||||
0x7C0C0400, // 0025 CALL R3 2
|
||||
0x600C0010, // 0026 GETGBL R3 G16
|
||||
0x5C100400, // 0027 MOVE R4 R2
|
||||
0x7C0C0200, // 0028 CALL R3 1
|
||||
0xA802005A, // 0029 EXBLK 0 #0085
|
||||
0x5C100600, // 002A MOVE R4 R3
|
||||
0x7C100000, // 002B CALL R4 0
|
||||
0x1C140909, // 002C EQ R5 R4 K9
|
||||
0x78160000, // 002D JMPF R5 #002F
|
||||
0x7001FFFA, // 002E JMP #002A
|
||||
0xA8020042, // 002F EXBLK 0 #0073
|
||||
0x60140008, // 0030 GETGBL R5 G8
|
||||
0x5C180800, // 0031 MOVE R6 R4
|
||||
0x7C140200, // 0032 CALL R5 1
|
||||
0x94140205, // 0033 GETIDX R5 R1 R5
|
||||
0x8C180B0E, // 0034 GETMET R6 R5 K14
|
||||
0x5820000F, // 0035 LDCONST R8 K15
|
||||
0x7C180400, // 0036 CALL R6 2
|
||||
0x4C1C0000, // 0037 LDNIL R7
|
||||
0x1C1C0C07, // 0038 EQ R7 R6 R7
|
||||
0x781E0006, // 0039 JMPF R7 #0041
|
||||
0xB81E0200, // 003A GETNGBL R7 K1
|
||||
0x8C1C0F02, // 003B GETMET R7 R7 K2
|
||||
0x58240010, // 003C LDCONST R9 K16
|
||||
0x58280011, // 003D LDCONST R10 K17
|
||||
0x7C1C0600, // 003E CALL R7 3
|
||||
0xA8040001, // 003F EXBLK 1 1
|
||||
0x7001FFE8, // 0040 JMP #002A
|
||||
0x1C1C0D0B, // 0041 EQ R7 R6 K11
|
||||
0x781E0006, // 0042 JMPF R7 #004A
|
||||
0xB81E0200, // 0043 GETNGBL R7 K1
|
||||
0x8C1C0F02, // 0044 GETMET R7 R7 K2
|
||||
0x58240012, // 0045 LDCONST R9 K18
|
||||
0x58280011, // 0046 LDCONST R10 K17
|
||||
0x7C1C0600, // 0047 CALL R7 3
|
||||
0xA8040001, // 0048 EXBLK 1 1
|
||||
0x7001FFDF, // 0049 JMP #002A
|
||||
0x881C0113, // 004A GETMBR R7 R0 K19
|
||||
0x8C1C0F0E, // 004B GETMET R7 R7 K14
|
||||
0x5C240C00, // 004C MOVE R9 R6
|
||||
0x7C1C0400, // 004D CALL R7 2
|
||||
0x4C200000, // 004E LDNIL R8
|
||||
0x1C200E08, // 004F EQ R8 R7 R8
|
||||
0x7822000A, // 0050 JMPF R8 #005C
|
||||
0xB8220200, // 0051 GETNGBL R8 K1
|
||||
0x8C201102, // 0052 GETMET R8 R8 K2
|
||||
0x60280008, // 0053 GETGBL R10 G8
|
||||
0x5C2C0C00, // 0054 MOVE R11 R6
|
||||
0x7C280200, // 0055 CALL R10 1
|
||||
0x002A280A, // 0056 ADD R10 K20 R10
|
||||
0x00281515, // 0057 ADD R10 R10 K21
|
||||
0x582C0004, // 0058 LDCONST R11 K4
|
||||
0x7C200600, // 0059 CALL R8 3
|
||||
0xA8040001, // 005A EXBLK 1 1
|
||||
0x7001FFCD, // 005B JMP #002A
|
||||
0x5C200E00, // 005C MOVE R8 R7
|
||||
0x5C240000, // 005D MOVE R9 R0
|
||||
0x5C280800, // 005E MOVE R10 R4
|
||||
0x5C2C0A00, // 005F MOVE R11 R5
|
||||
0x7C200600, // 0060 CALL R8 3
|
||||
0x88240105, // 0061 GETMBR R9 R0 K5
|
||||
0x8C241306, // 0062 GETMET R9 R9 K6
|
||||
0x5C2C1000, // 0063 MOVE R11 R8
|
||||
0x7C240400, // 0064 CALL R9 2
|
||||
0xB8260200, // 0065 GETNGBL R9 K1
|
||||
0x8C241302, // 0066 GETMET R9 R9 K2
|
||||
0x602C0018, // 0067 GETGBL R11 G24
|
||||
0x5830000A, // 0068 LDCONST R12 K10
|
||||
0x5C340800, // 0069 MOVE R13 R4
|
||||
0x5C380C00, // 006A MOVE R14 R6
|
||||
0x8C3C0116, // 006B GETMET R15 R0 K22
|
||||
0x5C440A00, // 006C MOVE R17 R5
|
||||
0x7C3C0400, // 006D CALL R15 2
|
||||
0x7C2C0800, // 006E CALL R11 4
|
||||
0x58300004, // 006F LDCONST R12 K4
|
||||
0x7C240600, // 0070 CALL R9 3
|
||||
0xA8040001, // 0071 EXBLK 1 1
|
||||
0x70020010, // 0072 JMP #0084
|
||||
0xAC140002, // 0073 CATCH R5 0 2
|
||||
0x7002000D, // 0074 JMP #0083
|
||||
0xB81E0200, // 0075 GETNGBL R7 K1
|
||||
0x8C1C0F02, // 0076 GETMET R7 R7 K2
|
||||
0x60240008, // 0077 GETGBL R9 G8
|
||||
0x5C280A00, // 0078 MOVE R10 R5
|
||||
0x7C240200, // 0079 CALL R9 1
|
||||
0x00262E09, // 007A ADD R9 K23 R9
|
||||
0x00241318, // 007B ADD R9 R9 K24
|
||||
0x60280008, // 007C GETGBL R10 G8
|
||||
0x5C2C0C00, // 007D MOVE R11 R6
|
||||
0x7C280200, // 007E CALL R10 1
|
||||
0x0024120A, // 007F ADD R9 R9 R10
|
||||
0x58280004, // 0080 LDCONST R10 K4
|
||||
0x7C1C0600, // 0081 CALL R7 3
|
||||
0x70020000, // 0082 JMP #0084
|
||||
0xB0080000, // 0083 RAISE 2 R0 R0
|
||||
0x7001FFA4, // 0084 JMP #002A
|
||||
0x580C0019, // 0085 LDCONST R3 K25
|
||||
0xAC0C0200, // 0086 CATCH R3 1 0
|
||||
0xB0080000, // 0087 RAISE 2 R0 R0
|
||||
0xB80E0200, // 0088 GETNGBL R3 K1
|
||||
0x8C0C0702, // 0089 GETMET R3 R3 K2
|
||||
0x60140018, // 008A GETGBL R5 G24
|
||||
0x5818000A, // 008B LDCONST R6 K10
|
||||
0x541EFEFF, // 008C LDINT R7 65280
|
||||
0x5820001A, // 008D LDCONST R8 K26
|
||||
0x5824000C, // 008E LDCONST R9 K12
|
||||
0x7C140800, // 008F CALL R5 4
|
||||
0x58180004, // 0090 LDCONST R6 K4
|
||||
0x7C0C0600, // 0091 CALL R3 3
|
||||
0xB80E0200, // 0092 GETNGBL R3 K1
|
||||
0x8C0C071B, // 0093 GETMET R3 R3 K27
|
||||
0x5814001C, // 0094 LDCONST R5 K28
|
||||
0x5818001D, // 0095 LDCONST R6 K29
|
||||
0x7C0C0600, // 0096 CALL R3 3
|
||||
0x80000000, // 0097 RET 0
|
||||
0xB8220E00, // 0021 GETNGBL R8 K7
|
||||
0x8820110E, // 0022 GETMBR R8 R8 K14
|
||||
0x60240013, // 0023 GETGBL R9 G19
|
||||
0x7C240000, // 0024 CALL R9 0
|
||||
0x7C140800, // 0025 CALL R5 4
|
||||
0x7C0C0400, // 0026 CALL R3 2
|
||||
0x600C0010, // 0027 GETGBL R3 G16
|
||||
0x5C100400, // 0028 MOVE R4 R2
|
||||
0x7C0C0200, // 0029 CALL R3 1
|
||||
0xA802005A, // 002A EXBLK 0 #0086
|
||||
0x5C100600, // 002B MOVE R4 R3
|
||||
0x7C100000, // 002C CALL R4 0
|
||||
0x1C140909, // 002D EQ R5 R4 K9
|
||||
0x78160000, // 002E JMPF R5 #0030
|
||||
0x7001FFFA, // 002F JMP #002B
|
||||
0xA8020042, // 0030 EXBLK 0 #0074
|
||||
0x60140008, // 0031 GETGBL R5 G8
|
||||
0x5C180800, // 0032 MOVE R6 R4
|
||||
0x7C140200, // 0033 CALL R5 1
|
||||
0x94140205, // 0034 GETIDX R5 R1 R5
|
||||
0x8C180B0F, // 0035 GETMET R6 R5 K15
|
||||
0x58200010, // 0036 LDCONST R8 K16
|
||||
0x7C180400, // 0037 CALL R6 2
|
||||
0x4C1C0000, // 0038 LDNIL R7
|
||||
0x1C1C0C07, // 0039 EQ R7 R6 R7
|
||||
0x781E0006, // 003A JMPF R7 #0042
|
||||
0xB81E0200, // 003B GETNGBL R7 K1
|
||||
0x8C1C0F02, // 003C GETMET R7 R7 K2
|
||||
0x58240011, // 003D LDCONST R9 K17
|
||||
0x58280012, // 003E LDCONST R10 K18
|
||||
0x7C1C0600, // 003F CALL R7 3
|
||||
0xA8040001, // 0040 EXBLK 1 1
|
||||
0x7001FFE8, // 0041 JMP #002B
|
||||
0x1C1C0D0B, // 0042 EQ R7 R6 K11
|
||||
0x781E0006, // 0043 JMPF R7 #004B
|
||||
0xB81E0200, // 0044 GETNGBL R7 K1
|
||||
0x8C1C0F02, // 0045 GETMET R7 R7 K2
|
||||
0x58240013, // 0046 LDCONST R9 K19
|
||||
0x58280012, // 0047 LDCONST R10 K18
|
||||
0x7C1C0600, // 0048 CALL R7 3
|
||||
0xA8040001, // 0049 EXBLK 1 1
|
||||
0x7001FFDF, // 004A JMP #002B
|
||||
0x881C0114, // 004B GETMBR R7 R0 K20
|
||||
0x8C1C0F0F, // 004C GETMET R7 R7 K15
|
||||
0x5C240C00, // 004D MOVE R9 R6
|
||||
0x7C1C0400, // 004E CALL R7 2
|
||||
0x4C200000, // 004F LDNIL R8
|
||||
0x1C200E08, // 0050 EQ R8 R7 R8
|
||||
0x7822000A, // 0051 JMPF R8 #005D
|
||||
0xB8220200, // 0052 GETNGBL R8 K1
|
||||
0x8C201102, // 0053 GETMET R8 R8 K2
|
||||
0x60280008, // 0054 GETGBL R10 G8
|
||||
0x5C2C0C00, // 0055 MOVE R11 R6
|
||||
0x7C280200, // 0056 CALL R10 1
|
||||
0x002A2A0A, // 0057 ADD R10 K21 R10
|
||||
0x00281516, // 0058 ADD R10 R10 K22
|
||||
0x582C0004, // 0059 LDCONST R11 K4
|
||||
0x7C200600, // 005A CALL R8 3
|
||||
0xA8040001, // 005B EXBLK 1 1
|
||||
0x7001FFCD, // 005C JMP #002B
|
||||
0x5C200E00, // 005D MOVE R8 R7
|
||||
0x5C240000, // 005E MOVE R9 R0
|
||||
0x5C280800, // 005F MOVE R10 R4
|
||||
0x5C2C0A00, // 0060 MOVE R11 R5
|
||||
0x7C200600, // 0061 CALL R8 3
|
||||
0x88240105, // 0062 GETMBR R9 R0 K5
|
||||
0x8C241306, // 0063 GETMET R9 R9 K6
|
||||
0x5C2C1000, // 0064 MOVE R11 R8
|
||||
0x7C240400, // 0065 CALL R9 2
|
||||
0xB8260200, // 0066 GETNGBL R9 K1
|
||||
0x8C241302, // 0067 GETMET R9 R9 K2
|
||||
0x602C0018, // 0068 GETGBL R11 G24
|
||||
0x5830000A, // 0069 LDCONST R12 K10
|
||||
0x5C340800, // 006A MOVE R13 R4
|
||||
0x5C380C00, // 006B MOVE R14 R6
|
||||
0x8C3C0117, // 006C GETMET R15 R0 K23
|
||||
0x5C440A00, // 006D MOVE R17 R5
|
||||
0x7C3C0400, // 006E CALL R15 2
|
||||
0x7C2C0800, // 006F CALL R11 4
|
||||
0x58300004, // 0070 LDCONST R12 K4
|
||||
0x7C240600, // 0071 CALL R9 3
|
||||
0xA8040001, // 0072 EXBLK 1 1
|
||||
0x70020010, // 0073 JMP #0085
|
||||
0xAC140002, // 0074 CATCH R5 0 2
|
||||
0x7002000D, // 0075 JMP #0084
|
||||
0xB81E0200, // 0076 GETNGBL R7 K1
|
||||
0x8C1C0F02, // 0077 GETMET R7 R7 K2
|
||||
0x60240008, // 0078 GETGBL R9 G8
|
||||
0x5C280A00, // 0079 MOVE R10 R5
|
||||
0x7C240200, // 007A CALL R9 1
|
||||
0x00263009, // 007B ADD R9 K24 R9
|
||||
0x00241319, // 007C ADD R9 R9 K25
|
||||
0x60280008, // 007D GETGBL R10 G8
|
||||
0x5C2C0C00, // 007E MOVE R11 R6
|
||||
0x7C280200, // 007F CALL R10 1
|
||||
0x0024120A, // 0080 ADD R9 R9 R10
|
||||
0x58280004, // 0081 LDCONST R10 K4
|
||||
0x7C1C0600, // 0082 CALL R7 3
|
||||
0x70020000, // 0083 JMP #0085
|
||||
0xB0080000, // 0084 RAISE 2 R0 R0
|
||||
0x7001FFA4, // 0085 JMP #002B
|
||||
0x580C001A, // 0086 LDCONST R3 K26
|
||||
0xAC0C0200, // 0087 CATCH R3 1 0
|
||||
0xB0080000, // 0088 RAISE 2 R0 R0
|
||||
0xB80E0200, // 0089 GETNGBL R3 K1
|
||||
0x8C0C0702, // 008A GETMET R3 R3 K2
|
||||
0x60140018, // 008B GETGBL R5 G24
|
||||
0x5818000A, // 008C LDCONST R6 K10
|
||||
0xB81E0E00, // 008D GETNGBL R7 K7
|
||||
0x881C0F0E, // 008E GETMBR R7 R7 K14
|
||||
0x5820001B, // 008F LDCONST R8 K27
|
||||
0x5824000C, // 0090 LDCONST R9 K12
|
||||
0x7C140800, // 0091 CALL R5 4
|
||||
0x58180004, // 0092 LDCONST R6 K4
|
||||
0x7C0C0600, // 0093 CALL R3 3
|
||||
0xB80E0200, // 0094 GETNGBL R3 K1
|
||||
0x8C0C071C, // 0095 GETMET R3 R3 K28
|
||||
0x5814001D, // 0096 LDCONST R5 K29
|
||||
0x5818001E, // 0097 LDCONST R6 K30
|
||||
0x7C0C0600, // 0098 CALL R3 3
|
||||
0x80000000, // 0099 RET 0
|
||||
})
|
||||
)
|
||||
);
|
||||
@ -5875,14 +5878,16 @@ be_local_closure(Matter_Device_signal_endpoints_changed, /* name */
|
||||
0, /* has sup protos */
|
||||
NULL, /* no sub protos */
|
||||
1, /* has constants */
|
||||
( &(const bvalue[ 3]) { /* constants */
|
||||
( &(const bvalue[ 5]) { /* constants */
|
||||
/* K0 */ be_nested_str_weak(attribute_updated),
|
||||
/* K1 */ be_const_int(0),
|
||||
/* K2 */ be_const_int(3),
|
||||
/* K3 */ be_nested_str_weak(matter),
|
||||
/* K4 */ be_nested_str_weak(AGGREGATOR_ENDPOINT),
|
||||
}),
|
||||
be_str_weak(signal_endpoints_changed),
|
||||
&be_const_str_solidified,
|
||||
( &(const binstruction[13]) { /* code */
|
||||
( &(const binstruction[14]) { /* code */
|
||||
0x8C040100, // 0000 GETMET R1 R0 K0
|
||||
0x580C0001, // 0001 LDCONST R3 K1
|
||||
0x5412001C, // 0002 LDINT R4 29
|
||||
@ -5890,12 +5895,13 @@ be_local_closure(Matter_Device_signal_endpoints_changed, /* name */
|
||||
0x50180000, // 0004 LDBOOL R6 0 0
|
||||
0x7C040A00, // 0005 CALL R1 5
|
||||
0x8C040100, // 0006 GETMET R1 R0 K0
|
||||
0x540EFEFF, // 0007 LDINT R3 65280
|
||||
0x5412001C, // 0008 LDINT R4 29
|
||||
0x58140002, // 0009 LDCONST R5 K2
|
||||
0x50180000, // 000A LDBOOL R6 0 0
|
||||
0x7C040A00, // 000B CALL R1 5
|
||||
0x80000000, // 000C RET 0
|
||||
0xB80E0600, // 0007 GETNGBL R3 K3
|
||||
0x880C0704, // 0008 GETMBR R3 R3 K4
|
||||
0x5412001C, // 0009 LDINT R4 29
|
||||
0x58140002, // 000A LDCONST R5 K2
|
||||
0x50180000, // 000B LDBOOL R6 0 0
|
||||
0x7C040A00, // 000C CALL R1 5
|
||||
0x80000000, // 000D RET 0
|
||||
})
|
||||
)
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user