rusp icon indicating copy to clipboard operation
rusp copied to clipboard

Message generation with rusp

Open mzribi opened this issue 6 years ago • 6 comments

Hello, I have this problem when trying to generate msg with rusp encode_msg or encode_msg_body

$ rusp encode_msg_body -f file.probuff Get thread 'main' panicked at 'called Result::unwrap() on an Err value: Error("EOF while parsing a value", line: 1, column: 0)', src/libcore/result.rs:1009:5 note: Run with RUST_BACKTRACE=1 for a backtrace.

mzribi avatar Feb 26 '19 13:02 mzribi

You need to specify the paths of what you'd like to Get after the command, e.g.

$ rusp encode_msg_body -f file.probuff Get '["Device."]'

therealprof avatar Feb 26 '19 13:02 therealprof

Please feel free to send a PR with documentation or usability improvements.

therealprof avatar Feb 26 '19 13:02 therealprof

Thank you very much.

mzribi avatar Feb 26 '19 13:02 mzribi

According to the documentation we can use only Get Generate an USP Get request message GetResp Generate an USP GetResp response message

Can we use other message type like :

Get get GetSupportedDM get_supported_dm GetInstances get_instances Set set Add add Delete delete Operate operate Notify notify GetSupportedProtocol get_supported_protocol

mzribi avatar Feb 26 '19 13:02 mzribi

Can you give us how to use rusp in the other case ?

mzribi avatar Feb 26 '19 13:02 mzribi

Yes, whenever I get around to implementing them or someone sends a PR to implement it.

therealprof avatar Feb 26 '19 13:02 therealprof