Warning
The main branch of this repository contains work-in-progress development code for the upcoming release, and is not guaranteed to be stable or working. It is only compatible with the main branch of edgex-compose which uses the Docker images built from the main branch of this repo and other repos.The source for the latest release can be found at Releases.
EdgeX device service for REST protocol
This device service supports two-way communication for commanding. REST endpoints provides easy way for 3'rd party applications, such as Point of Sale, CV Analytics, etc., to push async data into EdgeX via the REST protocol. Commands allows EdgeX to send GET and PUT request to end device.
For latest documentation please visit https://docs.edgexfoundry.org/latest/microservices/device/services/device-rest/Purpose
The locally built Docker image can then be used in place of the published Docker image in your compose file.
See Compose Builder nat-bus
option to generate compose file for NATS and local dev images.
-
Clone the device-rest-go repo with the following command:
git clone https://github.com/edgexfoundry/device-rest-go.git
-
Build a docker image by using the following command:
make docker
-
Alternatively the device service can be built natively:
make build
Currently, the NATS Messaging capability (NATS MessageBus) is opt-in at build time. This means that the published Docker images do not include the NATS messaging capability.
The following make commands will build the local binary or local Docker image with NATS messaging capability included.
make build-nats
make docker-nats
This component is packaged as docker images. Please refer to the Dockerfile and Docker Compose Builder scripts.