Converts the given value to boolean using following rules: nil, boolean false, 0, empty string, '0' string are treated as false, everything else as true
Returns two values: current timestamp in seconds and timestamp fraction in nanoseconds.
Delays script execution by delay seconds.
Returns the given string with whitespaces stripped from the start and the end.
Splits the given string into chunks by the given separator. Returns Lua table.
Converts binary-encoded individual adress to Lua string. This function accepts either one or two arguments (interpreted as two single bytes).
Converts binary-encoded group adress to Lua string. This function accepts either one or two arguments (interpreted as two single bytes).
Converts Lua string to binary-encoded group adress. Returns group address a single Lua number when second argument is nil or false and two separate bytes otherwise.
Converts the given hex string to and integer of a given length in bytes.
Converts the given integer to a hex string of given bytes.
Converts the given binary string to a hex-encoded string.
Converts the given hex-encoded string to a binary string.
Converts the given value to number using following rules: numbers and valid numeric strings are treated as is, boolean true is 1, boolean false is 0, everything else is nil.