send 'byteArray' through socket
Asked by
Silverallis
Hi Greats...
Once again I have a question and am sure will get a quick answer.
I am trying to communicate to another device using socket.
Here is my code :
import socket
data = bytearray(b"hello world")
client_socket = socket.
client_
client_
client_
The above code works fine on python, but when I tried to run the same in Sikuli. It displays 'bytearray' not defined error. Is there any alternative to send the info through socket.
The server requires ASCII info. I tried convert it into ascii and send but I wasn't able to.
Thanks for your valuable time and help.
Regards,
Silverallis
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Silverallis
- Solved:
- Last query:
- Last reply:
To post a message you must log in.