Skip to content

Value Types

Logan Gorence edited this page Apr 26, 2016 · 15 revisions

number

example values:

  • 1
  • 0.12

when number type is used in action parameter, it support addition properties

editor: the editor used in GUI tool can be color, int

min: minimun value (doesn't work in color editor) max: maximun value (doesn't work in color editor)

string

example values:

  • "hello world"
  • ""

when string type is used in action parameter, it support addition properties

  • editor: the editor used in GUI tool
  • can be password, daterange, date, textarea
  • placeholder: the placeholder for the input box when used in GUI tool

bool

Bools can also have labels attached to them similar to enums. The first value is always equivalent to false and the second value is always equivalent of true

  • bool[disabled,enabled]

However the responder must always send either of these two values.

  • true
  • false

enum[..]

a enum value type can be enum[...] with comma separated values, example:

  • enum[off,on,auto]
  • enum[Sun,Mon,Tue,Wed,Thu,Fri,Sat]

the first value in the list will be the default value

the value sent in network will look same as a string

binary

Byte array expressed in a string. String is prefixed with \u001Bbytes:, afterwards a byte array encoded in Base64 is added.

map

a map object with key:value pairs key is always string and value is dynamic type example values:

array

a array object, children values are dynamic example values:

dynamic

a dynamic value type can have value of any above type

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

Clone this wiki locally