The preamble series is >, >, >

[Doodle Internet of Things Footprint] Doodle cloud platform interface list — intelligent door lock

A brief description of the various data types and the data used by the platform

1. Data types

  • Boolean: A binary variable that is either true or false. The on/off function, for example, takes on or off.
  • Integer: Suitable for linearly adjustable types of data. For example: temperature regulation, temperature range 20-40℃.
  • Enumeration (ENUM) : Finite set values. For example: work gear, low, middle or high grade.
  • String: The type of String.
  • Object type (JSON) : The value issued is in the JSON format of an object, with a description of the corresponding object properties.

II. Data transmission type:

  • Issue and report: The command data can be sent to the device and the device data can be reported to the cloud.
  • Escalation-only: Data is only supported from the device.
  • Send only: Data can only be sent from the cloud.

Third, value constraint

Integer Type Example Format:

{“min”:11,”unit”:”s”,”scale”:0,”max”:86400,”step”:1}

Value constraint description

  • Min: The minimum value. Example value: 11.
  • Max: Maximum value. Example value: 86400.
  • A unit of value. Example value: s.
  • Scale: Data will be transmitted on an exponential conversion of 10. Example: 0, which means 10 to the 0 power, which is 1.
  • Step: Data increment spacing (that is, step size). Example value: 1.

    Scale parameter specification

The following is an example of a value constraint for the current voltage value. Scale is equal to 1. If the device status query returns {” CUR_VOLTAGE “:2230}, the user-readable value is 2230/(10^1)= 223V (i.e., the voltage is: 223V).

The value constraint range specified in this document is the reference range. In fact, each device has a specific value constraint range.

(2) Sample format of String type

{“maxlen”:255}

Value constraint description

  • Maxlen: The maximum length of the value. Example value: 255.

(3) Enum type example format

{“range”:[“1″,”2″,”3″,”4″,”5”]}

Value constraint description

  • Range: Enumeration values limit the range. Examples are: “1”,”2″,”3″,”4″,”5″.