gijzelaerr / python-snap7

A Python wrapper for the snap7 PLC communication library
http://python-snap7.readthedocs.org/
MIT License
643 stars 245 forks source link

fixing ip string paramters to c function #329

Closed zsisamci closed 2 years ago

zsisamci commented 2 years ago

ctypes doesnt convert python3 string to c_char_p but bytes are therefore .encode() is needed