-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Hi
I am trying to use the LWRPClient in Python 3 and am receiving an error when trying to print the status of the GPI ports.
Code I am trying to execute:
from LWRPClient import LWRPClient
LWRP = LWRPClient("*IP Removed*", 93)
LWRP.login()
print (LWRP.GPIData())
I then receive the following error from my Python shell:
Exception in thread Thread-1:
Traceback (most recent call last):
File "C:\Users\dmartin\AppData\Local\Programs\Python\Python36\lib\threading.py", line 916, in _bootstrap_inner
self.run()
File "S:\GPO Monitor\v2\LWRPClientComms.py", line 59, in run
sent = self.sock.send(dataToSend)
TypeError: a bytes-like object is required, not 'str'
The shell then prints 'None' before finishing and the LWRP connection terminates.
Thanks, Dan
Metadata
Metadata
Assignees
Labels
No labels