We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a425a43 + 2d9f329 commit 77a8f93Copy full SHA for 77a8f93
RFExplorer/RFExplorer.py
@@ -1509,7 +1509,7 @@ def SendCommand(self, sCommand):
1509
sCommand -- Unformatted command from http://www.rf-explorer.com/API
1510
"""
1511
sCompleteCommand = "#" + chr(len(sCommand) + 2) + sCommand
1512
- self.m_objSerialPort.write(sCompleteCommand.encode('ascii'))
+ self.m_objSerialPort.write(sCompleteCommand.encode('utf-8'))
1513
if self.m_nVerboseLevel>5:
1514
print("RFE Command: #(" + str(len(sCompleteCommand)) + ")" + sCommand + " [" + " ".join("{:02X}".format(ord(c)) for c in sCompleteCommand) + "]")
1515
0 commit comments