The package name of this class is hubitat.helper, so to use in an app or driver you would reference it with hubitat.helper.HexUtils.
Convert integer value to hex string.
String integerToHexString(int value, int minBytes)
value - the integer value to encode
minBytes - the minmum number of hex encoded bytes, must be greater than 0
String - The value of the integer encoded as a hex string.
int i = 5
`def hexStr = hubitat.helper.HexUtils.integerToHexString(i, 1)
Convert hex string to integer.
int hexStringToInt(String value)
value - the hex string to convert
int - The integer value represented by the hex string.
def myInt = hubitat.helper.HexUtils.hexStringToInt("01A6")
Convert a byte array to hex string.
String byteArrayToHexString(byte[] value)
value - the byte array to convert
String - The hex string representation of the byte array
Convert a hex string to a byte array.
byte[] hexStringToByteArray(String value)
Convert an integer array to a hex string.
String intArrayToHexString(int[] value)
Convert a hex string into an integer array.
int[] hexStringToIntArray(String value)