Skip to content

Commit 07f3eb3

Browse files
committed
Fix unicode decode error with report slave id request
1 parent b63e96f commit 07f3eb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pymodbus/repl/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ def report_slave_id(self, **kwargs):
306306
if not resp.isError():
307307
return {
308308
'function_code': resp.function_code,
309-
'identifier': resp.identifier,
309+
'identifier': resp.identifier.decode('cp1252'),
310310
'status': resp.status,
311311
'byte count': resp.byte_count
312312
}

0 commit comments

Comments
 (0)