-
Notifications
You must be signed in to change notification settings - Fork 12
dslink.json
The dslink.json file is the basic configuration and description for every DSLink application. It's a JSON document that shares most of the properties same as package.json from npm.
To ensure that upgrades to Java DSLinks are performed correctly, add the following stanza to the dslink.json file:
"update": {
"backupForUpdate": true,
"delete": ["lib", "bin"]
},
Name of the DSLink.
Version of the DSLink.
Description of the DSLink.
License of the DSLink.
JSON object containing information about the DSLink author.
Name of the author.
Email of the author.
Command that is ran to start the DSLink, it may contain parameters.
Contains data about the DSLink source code control repository.
Source code control type, examples include git, svn, and hg.
URL to repository viewer.
URL to bugtracker for DSLink.
Provides configuration parameters that are passed to the DSLink. These are also managed by the DSLink manager in DGLux Server.
"configs": {
"broker": {
"type": "url"
},
"nodes": {
"type": "path",
"value": "nodes.json",
"required": true
},
"key": {
"type": "path",
"value": ".dslink.key",
"required": true
}
}
- type
- string
- number
- int
- bool
- url
- path (file or uri path)
- required (bool)
- Used by dslink manager to check if config is valid
List of commands that are ran to set the DSLink's environment up.
"getDependencies": [
"pub get"
]
{
"name": "dslink-java-dsa-coap",
"version": "0.0.2",
"description": "DSA-over-COAP",
"license": "Apache",
"author": {
"name": "Kenneth Endfinger",
"email": "[email protected]"
},
"main": "bin/dslink-java-dsa-coap",
"repository": {
"type": "git",
"url": "https://github.com/IOT-DSA/dslink-java-dsa-coap"
},
"bugs": {
"url": "https://github.com/IOT-DSA/dslink-java-dsa-coap/issues"
},
"configs": {
"name": {
"type": "string",
"default": "DSA-COAP"
},
"broker": {
"type": "url"
},
"token": {
"type": "string"
},
"nodes": {
"type": "path",
"default": "nodes.json"
},
"key": {
"type": "path",
"default": ".key"
},
"log": {
"type": "enum",
"default": "info"
},
"handler_class": {
"type": "string",
"default": "org.dsa.iot.coap.CoapHandler"
}
}
}
Protocol
◌ Design
◌ Initializing Connection
◌ Node API
◌ Methods
◌ Broker
◌ Broker Discovery
◌ Configs
◌ Value Types
◌ Tokens
◌ Quality of Service
DSLink Manager
◌ dslink.json
◌ Startup Command
SDK Development
◌ Implementation Guide
DSA Server
◌ Installation
◌ Update Server
◌ Server Configuration
◌ CLI Tools
◌ DSA Permission Basics
◌ DSA Permission Model
◌ Permission List for the Root
◌ Authentication
◌ OpenID Connect
◌ Password Hasher
◌ DGLux Server SSL (HTTPS)
◌ Docker
◌ Audit
◌ Data Node
◌ Install NGINX with DSA Server
◌ Configure Ubuntu Linux to auto start DSA server
◌ Troubleshooting