regdevices

command
v0.0.0-...-1cd458f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2017 License: MIT Imports: 5 Imported by: 0

README

Register Devices (regdevices)

Device registration tool

Usage

  -config string
        config-file for the API-settings (default "config.yml")
  -devid string
        Device ID to update device parameters
  -imei string
        IMEI number of the device to register
  -name string
        Device name in OceanConnect (defaults to IMEI)

Configuration

The configuration file (by default config.yml) needs several options to work. An full example is provided below.

# Defaults to cert.crt
cert_file: cert.crt
# Defaults to key.key
key_file: key.key
# Base-URL for the API without trailing slash
url: https://127.0.0.1:8765
# Application ID
app_id: QWERTYUIOP1234568789
# Application Secret
secret: 0987654321poiuytrewq

manufacturer_name: Foo Company
manufacturer_id: foobar
end_user_id: foo
location: Unknown
device_type: devtypecode
model: modelname

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL