Controlling camera by Visca command
Hi guys,
I am writing a serial socket to send hex commands to a Sony Visca EVI_D70 PTZ camera.
The VISCA up-tilt command is as below:
8x 01 06 01 VV WW 03 01 FF
I tried socket.writeByte, socket.writeBytes and socket.writeMultiByte
My code, for example:
socket.writeBytes("8x 01 06 01 VV WW 03 01 FF")
Error messages appears:
1067: Implicit coercion of a value of type String to an unrelated type flash.utils:ByteArray.
Please tell me how to deliver hex commands.
Thanks a lot
Eddie