Skip to content

Commit f3ede30

Browse files
ericonettogijzelaerr
authored andcommitted
Compatibility issue with Python3 (#109)
ip_address.encode()
1 parent 19fc871 commit f3ede30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snap7/logo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def set_connection_params(self, ip_address, tsap_snap7, tsap_logo):
256256
:param tsap_logo: TSAP Logo Server (e.g. 20.00 = 0x2000)
257257
"""
258258
assert re.match(ipv4, ip_address), '%s is invalid ipv4' % ip_address
259-
result = self.library.Cli_SetConnectionParams(self.pointer, ip_address,
259+
result = self.library.Cli_SetConnectionParams(self.pointer, ip_address.encode(),
260260
c_uint16(tsap_snap7),
261261
c_uint16(tsap_logo))
262262
if result != 0:

0 commit comments

Comments
 (0)