//console output:
// arr[0]: 175 -> 0xAF
// arr[1]: 190 -> 0xBE
// arr[2]: 173 -> 0xAD
// arr[3]: 222 -> 0xDE -> makes 0xDEADBEAF
// arr[4]: 255 -> 0xFF
// arr[5]: 127 -> 0x7F -> makes 32767
// arr[6]: 72 -> 0x48 -> ASCII H
// arr[7]: 97 -> 0x61 -> ASCII a
// arr[8]: 108 -> 0x6C -> ASCII l
// arr[9]: 108 -> 0x6C -> ASCII l
// arr[10]: 111 -> 0x6F -> ASCII o
// arr[11]: 32 -> 0x20 -> ASCII <blank space>
// arr[12]: 84 -> 0x54 -> ASCII T
// arr[13]: 101 -> 0x65 -> ASCII e
// arr[14]: 115 -> 0x73 -> ASCII s
// arr[15]: 116 -> 0x74 -> ASCII t
// arr[16]: 33 -> 0x21 -> ASCII !
// arr[17]: 0 -> String stop sign
// arr[18]: 0 -> String stop sign
// arr[19]: 0 -> String stop sign
// arr[20]: 0 -> String stop sign
// arr[21]: 0 -> String stop sign
// arr[22]: 0 -> String stop sign
// arr[23]: 0 -> String stop sign
// arr[24]: 0 -> String stop sign
// arr[25]: 0 -> String stop sign
// arr[26]: 1 -> bool true
// arr[27]: 255 -> 0xFF
// arr[28]: 85 -> 0x55
Why was this long array returned? No data type was given in the read command, so the bytes
are returned as a JavaScript array.
Please note: Numbers are stored LSB first, Strings are stored linearly from beginning to end.
With this function the ID of the object (graphical object or CAN mapping) or the name of the
variable that triggered the execution of the current script.
Prototype:
var result = getCallerID();
result will contain the ID of the object if the script was triggered by a graphical object or a CAN
mapping, or the name of the variable if the script was triggered by a variable.
If neither is the case (only theoretical, should never happen), the result will be undefined.
This function can be used to create a directory on a USB stick or in the /opt/user_files
directory on the device itself.
provide a directory name or hierarchy as a parameter. If the path starts with /opt/user_files,
the directory hierarchy is created inside the user_files directory. If the path is not