commit | d988f6d98990dbf14c505ae56732c25b9d8c4b11 | [log] [tgz] |
---|---|---|
author | Christopher Collins <ccollins@apache.org> | Fri Aug 30 14:18:27 2019 -0700 |
committer | ccollins476ad <ccollins476ad@gmail.com> | Fri Aug 30 15:10:12 2019 -0700 |
tree | b6b2b190dc0c23cb8f2908a4c6b78f2c0eefd3e8 | |
parent | ced946c42bc9c4451cf6024c85a8d5fb83df4946 [diff] |
res: Don't include payload if none specified If the user issues a `res` command with no payload (e.g., `res get /my/resource`), the outgoing command should not have a payload. Instead, newtmgr was encoding an empty map as the payload.
Newt Manager (newtmgr) is the application tool that enables a user to communicate with and manage remote devices running the Mynewt OS. It uses a connection profile to establish a connection with a device and sends command requests to the device. The newtmgr tool documentation can be found under /docs which are published at http://mynewt.apache.org/latest/os/modules/devmgmt/newtmgr.html
Build the newtmgr tool as follows:
apache-mynewt-newtmgr-1.3.0
directory to $GOPATH/src/mynewt.apache.org/newtmgr
cd $GOPATH/src/mynewt.apache.org/newtmgr/newtmgr
GO111MODULE=on go build