commit | 93a037782c2f9b607eaab4ca8477d4f3e356f750 | [log] [tgz] |
---|---|---|
author | Christopher Collins <ccollins@apache.org> | Fri Jan 24 09:47:34 2020 -0800 |
committer | ccollins476ad <ccollins476ad@gmail.com> | Tue Jan 28 09:26:00 2020 -0800 |
tree | 01bd1f8c51ddb9de33857d068f4328f1c02786d9 | |
parent | 3ef086d33edc8f54de34a14d20e44b932c9b96ff [diff] |
res: Allow file to specify payload The `res` (resource) command sends a generic CoAP request. By default, the CoAP payload is specified as a series of command line arguments. This commit allows newt to read the payload from a file instead. There are three new command line options: -B, --binfile string Name of file containing bytes to encode as a byte string for the CoAP message body -J, --jsonfile string Name of file containing JSON for the CoAP message body -R, --rawfile string Name of file containing the raw CoAP message body
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