You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2019/05/30 00:29:06 UTC
[GitHub] [mynewt-newtmgr] ccollins476ad opened a new pull request #128: res:
`-j` option to specify payload as JSON
ccollins476ad opened a new pull request #128: res: `-j` option to specify payload as JSON
URL: https://github.com/apache/mynewt-newtmgr/pull/128
Before this commit, the `res` command accepted a payload in the form of `k=v` pairs, e.g.,
```
newtmgr res put /my/res a=start dur=1
```
This commit adds a new option to the `res` command: `-j`. When this option is specified, the CoAP message body is expressed as a JSON string, e.g.,
```
newtmgr res -j put /my/res '{"a":"start","dur":1}'
```
This allows for more complex payloads, and it removes ambiguity about what data types are used.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services