File tree 1 file changed +4
-3
lines changed
applications/zpc/components/zpc_rust/src/zwave_poll_manager
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -38,8 +38,9 @@ const ATTRIBUTE_HOME_ID: AttributeTypeId = 0x2;
38
38
const ATTRIBUTE_ENDPOINT_ID : AttributeTypeId = 0x4 ;
39
39
40
40
//< This represents the Network Status of a node. NodeStateNetworkStatus
41
- const DOTDOT_ATTRIBUTE_ID_STATE_NETWORK_STATUS : AttributeTypeId = 0x000D ;
42
- const ZCL_NODE_STATE_NETWORK_STATUS_ONLINE_FUNCTIONAL : u8 = 1 ;
41
+ const DOTDOT_ATTRIBUTE_ID_STATE_NETWORK_STATUS : AttributeTypeId = 0xfd020001 ;
42
+ // This is reported as a u32 in the attribute store
43
+ const ZCL_NODE_STATE_NETWORK_STATUS_ONLINE_FUNCTIONAL : u32 = 0 ;
43
44
44
45
struct PollRegister {
45
46
poll_map : Option < AttributePollMap > ,
@@ -83,7 +84,7 @@ impl PollRegister {
83
84
event. attribute . type_of ( ) == DOTDOT_ATTRIBUTE_ID_STATE_NETWORK_STATUS
84
85
&& event. event_type == AttributeEventType :: ATTRIBUTE_UPDATED
85
86
&& event. value_state == AttributeValueState :: REPORTED_ATTRIBUTE
86
- && event. attribute . get_reported :: < u8 > ( ) == Ok ( ZCL_NODE_STATE_NETWORK_STATUS_ONLINE_FUNCTIONAL )
87
+ && event. attribute . get_reported :: < u32 > ( ) == Ok ( ZCL_NODE_STATE_NETWORK_STATUS_ONLINE_FUNCTIONAL )
87
88
&& is_in_home_id
88
89
}
89
90
You can’t perform that action at this time.
0 commit comments