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. Thew newtmgr tool is documented at http://mynewt.apache.org/latest/newtmgr/overview/
newtmgr is vendored using the dep tool (https://github.com/golang/dep).
To build newtmgr from source, you will need to manually acquire the missing dependencies. OS-specific instructions are below:
- Unpack newtmgr source.
- Rename resulting
apache-mynewt-newtmgr-1.2.0
directory to$GOPATH/src/mynewt.apache.org/newtmgr
cd $GOPATH/src/mynewt.apache.org/newtmgr/newtmgr
go get github.com/currantlabs/ble github.com/mgutz/logxi/v1 golang.org/x/sys/unix
go build
- Unpack newtmgr source.
- Rename resulting
apache-mynewt-newtmgr-1.2.0
directory to$GOPATH/src/mynewt.apache.org/newtmgr
cd $GOPATH/src/mynewt.apache.org/newtmgr/newtmgr
go get github.com/currantlabs/ble github.com/mgutz/logxi/v1 github.com/raff/goble/xpc
go build