New question #161870 on Sikuli:
https://answers.launchpad.net/sikuli/+question/161870
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.socket(socket.AF_INET, socket.SOCK_STREAM)
client_socket.connect(("192.168.1.2", 5000))
client_socket.send(data)
client_socket.close()
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
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp