Forums › SM Series Discussions › Communicate with SM200C through API › Reply To: Communicate with SM200C through API
Roger
Moderator
Hi jfer,
The first two arguments passed to sm_open_networked_device() must be byte strings, defined in Python by prefixing a string literal with “b”. So the function you quoted above would be written as:
sm_open_networked_device(b“192.168.2.2”, b“192.168.2.20”, 56120)
Let me know if this does not fix it.
