Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Message generation with rusp #2

Open
mzribi opened this issue Feb 26, 2019 · 6 comments
Open

Message generation with rusp #2

mzribi opened this issue Feb 26, 2019 · 6 comments

Comments

@mzribi
Copy link

mzribi commented Feb 26, 2019

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.

@therealprof
Copy link
Member

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."]'

@mzribi mzribi changed the title Message geenration with rusp Message generation with rusp Feb 26, 2019
@therealprof
Copy link
Member

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

@mzribi
Copy link
Author

mzribi commented Feb 26, 2019

Thank you very much.

@mzribi
Copy link
Author

mzribi commented Feb 26, 2019

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
Copy link
Author

mzribi commented Feb 26, 2019

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

@therealprof
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants