All Projects → canonical → iot-agent

canonical / iot-agent

Licence: GPL-3.0 license
IoT Device Management Agent

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects

Build Status Go Report Card codecov

IoT Agent

The IoT Agent enrolls a device with the IoT Identity service and receives credentials to access the MQTT broker. Via MQTT, it establishes communication with an IoT Management service, so the device can be remotely monitored and managed over a secure connection. The state of the device is mirrored in the cloud by the IoT Device Twin service.

The agent is intended to operate on a device running Ubuntu or Ubuntu Core with snapd enabled. The device management features are implemented using the snapd REST API.

IoT Management Solution Overview

Build

The project uses vendorized dependencies using govendor. Development has been done on minimum Go version 1.12.1.

$ cd iot-agent
$ go mod tidy
$ go build cmd/agent/main.go
$ go build cmd/configure/main.go

Connect Interfaces

iot-agent uses snapd-control interface which is super powerful. Only the private IoT App Store (aka Brand Store) owners can automatically connect the mentioned interface. To use the iot-agent, one can either install it with --devmode or manually connect snapd-control interface. Please note that a snap with snapd-control interface can not be uploaded to the Global Snap Store. iot-agent snap is an exception for demonstrating purposes.

$ snap connect iot-agent:snapd-control :snapd-control

Run

go run cmd/agent/main.go -help
  -credentials string
        The full path to the credentials file (default ".secret")
  -url string
        The URL of the Identity Service (default "http://localhost:8030/")

Contributing

Before contributing you should sign Canonical's contributor agreement, it’s the easiest way for you to give us permission to use your contributions.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].