C Functions Called From Lua; Module 'Misc - HMS Networks IXXAT CAN@net NT User Manual

Table of Contents

Advertisement

Lua API Function and Module Reference
5.2

C Functions Called from Lua

5.2.1

Module 'misc'

Functions from the module misc are loaded by default and are directly available.
Function 'hex'
hex(val)
Converts the parameter val into a hexadecimal representation.
Function 'dump'
dump(o, indent, nested, level)
Dumps values in a one-statement format.
For example, {test = {"Testing..."}} becomes:
{
test = {
"Testing..."
}
}
The function also supports tables as keys, but not circular references.
indent: specifies an indentation string, it defaults to a tab. Use the empty string to disable
indentation.
nested: internal only. Do not provide any value.
level: internal only. Do not provide any value.
Function 'string.split'
string.split(str, delim, include_empty, max_splits, sep_is_pattern)
Splits the string str into a list of substrings, breaking the original string on occurrences of the
given separator delim (character, character set, or pattern).
include_empty: boolean, default: false, e.g. "a,,,b":split(",") returns
{"a","","",b"}
max_splits: number, if negative, splits are not limited, default: -1
sep_is_pattern: boolean, specifies whether the separator is a plain string or a pattern
(regex), default: false, e.g. "a,b":split(",") returns {"a","b"}
Function 'table.copy'
table.copy(tbl)
Returns a deep copy of tbl.
CAN@net NT/CANbridge NT User Manual
13 (22)
4.02.0332.20002 1.2 en-US

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the IXXAT CAN@net NT and is the answer not in the manual?

This manual is also suitable for:

Ixxat canbridge nt

Table of Contents