UNIT-TYPE-VALUE

This file defines the semantic for KNoT data types and unities used by KNoT data sources.

KNoT Type ID

KNoT Type ID
Value

KNoT Unit

KNoT Unit
Value

Value Type

KNOT_TYPE_ID_NONE

0x0000

KNOT_UNIT_NOT_APPLICABLE

0x00

KNOT_VALUE_TYPE_RAW

KNOT_TYPE_ID_VOLTAGE

0x0001

KNOT_UNIT_VOLTAGE_V
KNOT_UNIT_VOLTAGE_MV
KNOT_UNIT_VOLTAGE_KV
0x01
0x02
0x03

KNOT_VALUE_TYPE_INT

KNOT_TYPE_ID_CURRENT

0x0002

KNOT_UNIT_CURRENT_A
KNOT_UNIT_CURRENT_MA
0x01
0x02

KNOT_VALUE_TYPE_INT

KNOT_TYPE_ID_RESISTENCE

0x0003

KNOT_UNIT_RESISTENCE_OHM

0x01

KNOT_VALUE_TYPE_INT

KNOT_TYPE_ID_POWER

0x0004

KNOT_UNIT_POWER_W
KNOT_UNIT_POWER_KW
KNOT_UNIT_POWER_MW
0x01
0x02
0x03

KNOT_VALUE_TYPE_INT

KNOT_TYPE_ID_TEMPERATURE

0x0005

KNOT_UNIT_TEMPERATURE_C
KNOT_UNIT_TEMPERATURE_F
KNOT_UNIT_TEMPERATURE_K
0x01
0x02
0x03

KNOT_VALUE_TYPE_INT

KNOT_TYPE_ID_RELATIVE_HUMIDITY

0x0006

KNOT_UNIT_RELATIVE_HUMIDITY

0x01

KNOT_VALUE_TYPE_INT

KNOT_TYPE_ID_LUMINOSITY

0x0007

KNOT_UNIT_LUMINOSITY_LM
KNOT_UNIT_LUMINOSITY_CD
KNOT_UNIT_LUMINOSITY_LX
0x01
0x02
0x03

KNOT_VALUE_TYPE_INT

KNOT_TYPE_ID_TIME

0x0008

KNOT_UNIT_TIME_S
KNOT_UNIT_TIME_MS
KNOT_UNIT_TIME_US
0x01
0x02
0x03

KNOT_VALUE_TYPE_INT

KNOT_TYPE_ID_MASS

0x0009

KNOT_UNIT_MASS_KG
KNOT_UNIT_MASS_G
KNOT_UNIT_MASS_LB
KNOT_UNIT_MASS_OZ
0x01
0x02
0x03
0x04

KNOT_VALUE_TYPE_INT

KNOT_TYPE_ID_PRESSURE

0x000A

KNOT_UNIT_PRESSURE_PA
KNOT_UNIT_PRESSURE_PSI
KNOT_UNIT_PRESSURE_BAR
0x01
0x02
0x03

KNOT_VALUE_TYPE_INT

KNOT_TYPE_ID_DISTANCE

0x000B

KNOT_UNIT_DISTANCE_M
KNOT_UNIT_DISTANCE_CM
KNOT_UNIT_DISTANCE_MI
KNOT_UNIT_DISTANCE_IN
0x01
0x02
0x03
0x04

KNOT_VALUE_TYPE_INT

KNOT_TYPE_ID_ANGLE

0x000C

KNOT_UNIT_ANGLE_RAD
KNOT_UNIT_ANGLE_DEGREE
0x01
0x02

KNOT_VALUE_TYPE_FLOAT

KNOT_TYPE_ID_VOLUME

0x000D

KNOT_UNIT_VOLUME_L
KNOT_UNIT_VOLUME_ML
KNOT_UNIT_VOLUME_FLOZ
KNOT_UNIT_VOLUME_GAL
0x01
0x02
0x03
0x04

KNOT_VALUE_TYPE_FLOAT

KNOT_TYPE_ID_AREA

0x000E

KNOT_UNIT_AREA_M2
KNOT_UNIT_AREA_HA
KNOT_UNIT_AREA_AC
0x01
0x02
0x03

KNOT_VALUE_TYPE_FLOAT

KNOT_TYPE_ID_RAIN

0x000F

KNOT_UNIT_RAIN_MM

0x01

KNOT_VALUE_TYPE_FLOAT

KNOT_TYPE_ID_DENSITY

0x0010

KNOT_UNIT_DENSITY_KGM3

0x01

KNOT_VALUE_TYPE_FLOAT

KNOT_TYPE_ID_LATITUDE

0x0011

KNOT_UNIT_LATITUDE_DEGREE

0x01

KNOT_VALUE_TYPE_FLOAT

KNOT_TYPE_ID_LONGITUDE

0x0012

KNOT_UNIT_LONGITUDE_DEGREE

0x01

KNOT_VALUE_TYPE_FLOAT

KNOT_TYPE_ID_SPEED

0x0013

KNOT_UNIT_SPEED_MS
KNOT_UNIT_SPEED_CMS
KNOT_UNIT_SPEED_KMH
KNOT_UNIT_SPEED_MIH
0x01
0x02
0x03
0x04

KNOT_VALUE_TYPE_INT

KNOT_TYPE_ID_VOLUMEFLOW

0x0014

KNOT_UNIT_VOLUMEFLOW_M3S
KNOT_UNIT_VOLUMEFLOW_SCMM
KNOT_UNIT_VOLUMEFLOW_LS
KNOT_UNIT_VOLUMEFLOW_LM
KNOT_UNIT_VOLUMEFLOW_FT3S
KNOT_UNIT_VOLUMEFLOW_GALM
0x01
0x02
0x03
0x04
0x05
0x06

KNOT_VALUE_TYPE_FLOAT

KNOT_TYPE_ID_ENERGY

0x0015

KNOT_UNIT_ENERGY_J
KNOT_UNIT_ENERGY_NM
KNOT_UNIT_ENERGY_WH
KNOT_UNIT_ENERGY_KWH
KNOT_UNIT_ENERGY_CAL
KNOT_UNIT_ENERGY_KCAL
0x01
0x02
0x03
0x04
0x05
0x06

KNOT_VALUE_TYPE_INT

TypeIDs for logical units
KNOT_TYPE_ID_PRESENCE
KNOT_TYPE_ID_SWITCH
KNOT_TYPE_ID_COMMAND
KNOT_TYPE_ID_ANALOG
KNOT_TYPE_ID_INVALID

0xFFF0
0xFFF1
0xFFF2
0xFF10
0xFFFF

KNOT_UNIT_NOT_APPLICABLE
KNOT_UNIT_NOT_APPLICABLE
KNOT_UNIT_NOT_APPLICABLE
KNOT_UNIT_NOT_APPLICABLE
KNOT_UNIT_NOT_APPLICABLE

0x00
0x00
0x00
0x00
0x00

KNOT_VALUE_TYPE_BOOL
KNOT_VALUE_TYPE_BOOL
KNOT_VALUE_TYPE_RAW
KNOT_VALUE_TYPE_INT
KNOT_VALUE_TYPE_RAW