Hello!
Trying to use the TCP driver to talk to a machine.
Currently getting a "Expected ByteString, received xxx" error message when writing to the /WritableBytes field.
The tag is written to via script, see below:
test = chr(2) + 'CurrentStats?' + chr(3) + chr(207)
values = [ord(i) for i in test]
tagPath = '[Test]zzLP_TESTING/SG01/Data/WriteableBytes' #writes to /Writable no 'e'
system.tag.writeBlocking([tagPath], [values])
I have tried several different ways of specifying value:
value = b'\x02\x43\x75\x72\x72\x65\x6E\x74\x53\x74\x61\x74\x73\x3F\x03\xCF'
value = b'\x02CurrentStats?\x03\xcf'
value = [2, 67, 117, 114, 114, 101, 110, 116, 83, 116, 97, 116, 115, 63, 3, 207]
value = array('b', [2, 67, 117, 114, 114, 101, 110, 116, 83, 116, 97, 116, 115, 63, 3, -49])
but each gives me the same error message "Expected ByteStream...".
Any hints on the right way to specify?
Thank you kindly!