Dynamic Types
Dynamic Types provide a way for event data to be handled as static values or templates. These types extend the capabilities of many configuration items to allow for dynamic information.
bool
bool
A boolean value that can be specified as a static boolean or as a template which computes to a boolean. If
a value is not specified. The static values can be 0
, 1
, true
, false
, "t"
,
"true"
, "f"
, or "false"
.
Referenced By:
KKMEslConfig deviceGroupIterator deviceReport deviceReport deviceReport read
Example
{
"boolExample": true,
"templateExample": "{{ .payload.aBoolValue }}"
}
bytes
bytes
An array of bytes that can be specified as a static hex/base64 string, or as a template which computes to a byte array
or string. If the template computes to a string, this type
will attempt to convert it from a hex string or base64
string into an array of bytes.
Referenced By:
KKMEslConfig MQTTCredentials MQTTCredentials MQTTCredentials cipherDecrypt cipherDecrypt cipherDecrypt cipherDecrypt cipherDecrypt cipherEncrypt cipherEncrypt cipherEncrypt cipherEncrypt cipherEncrypt keystoreSet keystoreSet
Example
{
"base64Example": "YVN0cmluZ09mQnl0ZXM=",
"templateExample": "{{ .payload.someBytes }}"
}
int64
int64
An int64 that can be specified as a static number,
a static string that is convertible to a number, or as a template which computes to a number.
Referenced By:
KKMEslConfig KKMEslConfig chunk
Example
{
"int64Example": 33,
"templateExample": "{{ .payload.nodeId }}"
}
positiveDuration
positiveDuration
A PositiveDuration value that can be specified as a static duration string, static number of seconds (if no units are specified) or as a template which computes to a duration string or number.
Referenced By:
awsmqttble azuredps azureiot azureiotcentral fwupdate fwupdate fwupdate history history httpFetch publish publish throttle timer wait
Example
{
"DurationExample": 10000000000,
"templateExample": "{{ .payload.aDurationValue }}"
}
string
string
A string that can be specified as a static string or as a template
which computes to a string.
Referenced By:
KKMEslConfig MQTTCredentials MQTTCredentials MQTTCredentials chunk cipherDecrypt cipherDecrypt cipherEncrypt cipherEncrypt deviceReport minew mqtt mqtt mqtt read read read read
Example
{
"stringExample": "someString",
"templateExample": "{{ .payload.value }}"
}
stringArray
stringArray
A string array that can be specified as a static string, a static array of strings,
or as a template which computes to a string array.
Referenced By:
awsmqttble deviceGroupIterator deviceReport
Example
{
"arrayExample": [
"oneValue",
"twoValue"
],
"stringExample": "oneValue",
"templateExample": "{{ .payload.values }}"
}
Updated over 1 year ago