No, you can create a string of bytes of any value 0 to FF (hex)
This is a string with bytes (dec) equal to 48, 0, 32, 7
When we print it, 48 is intepreted as chatracter 0, 0 is unprintable, 32 is a space, 7 is a machine beep
Also you can easily convert hex to decimal:
TextWindow.WriteLine(LDMath.Base2Decimal("ff",16))
EDIT
Something like this:
Code:
bytes = ""
bytes = Text.Append(bytes,Text.GetCharacter(48))
bytes = Text.Append(bytes,Text.GetCharacter(0))
bytes = Text.Append(bytes,Text.GetCharacter(32))
bytes = Text.Append(bytes,Text.GetCharacter(7))
TextWindow.WriteLine(":"+bytes+":")
LDClient.SendMessage(bytes)
This is a string with bytes (dec) equal to 48, 0, 32, 7
When we print it, 48 is intepreted as chatracter 0, 0 is unprintable, 32 is a space, 7 is a machine beep
Also you can easily convert hex to decimal:
TextWindow.WriteLine(LDMath.Base2Decimal("ff",16))
EDIT
Something like this:
Code:
data = "0 0 3 0 5 0 0 CB 0 0 0 af 0" 'A space separated list of hex bytes
GetBytes()
LDClient.SendMessage(bytes)
Sub GetBytes
dataArray = LDText.Split(data," ")
bytes = ""
For i = 1 To Array.GetItemCount(dataArray)
codeHex = dataArray[i]
codeDec = LDMath.Base2Decimal(codeHex,16)
TextWindow.WriteLine("Byte "+i+" Hex="+codeHex+" Dec="+codeDec)
char = Text.GetCharacter(codeDec)
bytes = Text.Append(bytes,char)
EndFor
EndSub