-
Hello, I am starting to implement a new neolink command line to GET and SET the PIR status of the reolink argus pro camera (this should work also for reolnk argus 2). After using the wireshark dissector and using the app in parallel, I now know the the message ID is:
What I don't know is the XML schema to use for this. In the code, I do print but after XML parsing: let get = Bc {
meta: BcMeta {
msg_id: MSG_ID_GET_MOTION_ALARM,
channel_id: self.channel_id,
msg_num: self.new_message_num(),
response_code: 0,
stream_type: 0,
class: 0x6414,
},
body: BcBody::ModernMsg(ModernMsg {
extension: Some(Extension {
channel_id: Some(self.channel_id),
..Default::default()
}),
payload: None,
}),
};
sub_get.send(get)?;
let msg = sub_get.rx.recv_timeout(RX_TIMEOUT)?;
println!("{:?}", msg.body); So it does not print the RAW XML Thank you for your help ! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
It is not in xml yet. At this stage it is still generic data. It is only encoded into xml just before sending the message. If you want to see where it is done then you should check out here: neolink/crates/core/src/bc/ser.rs neolink/crates/core/src/bc/ser.rs Lines 80 to 88 in 57c55e4 |
Beta Was this translation helpful? Give feedback.
-
I managed, with an old version of reolink app, to get the XML and message type, when setting PIR to on:
With this, I will try to use it within a new neolink command |
Beta Was this translation helpful? Give feedback.
-
I just created this PR that add the support: #271 |
Beta Was this translation helpful? Give feedback.
I just created this PR that add the support: #271