-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
client.loop_forever() error !!!!! #11
Comments
File "test123.py", line 24, in |
I am facing with these error Please help me to fix this :( |
Traceback (most recent call last):
File "test.py", line 26, in
client.loop_forever()
File "/home/pi/paho-mqtt/lib/python3.4/site-packages/paho/mqtt/client.py", line 1481, in loop_forever
rc = self.loop(timeout, max_packets)
File "/home/pi/paho-mqtt/lib/python3.4/site-packages/paho/mqtt/client.py", line 1003, in loop
rc = self.loop_read(max_packets)
File "/home/pi/paho-mqtt/lib/python3.4/site-packages/paho/mqtt/client.py", line 1284, in loop_read
rc = self._packet_read()
File "/home/pi/paho-mqtt/lib/python3.4/site-packages/paho/mqtt/client.py", line 1849, in _packet_read
rc = self._packet_handle()
File "/home/pi/paho-mqtt/lib/python3.4/site-packages/paho/mqtt/client.py", line 2305, in _packet_handle
return self._handle_publish()
File "/home/pi/paho-mqtt/lib/python3.4/site-packages/paho/mqtt/client.py", line 2500, in _handle_publish
self._handle_on_message(message)
File "/home/pi/paho-mqtt/lib/python3.4/site-packages/paho/mqtt/client.py", line 2647, in _handle_on_message
self.on_message(self, self._userdata, message)
File "test.py", line 14, in on_message
print(msg.topic+" "+str(msg.payload))
File "/home/pi/paho-mqtt/lib/python3.4/site-packages/paho/mqtt/client.py", line 360, in topic
return self._topic.decode('utf-8')
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe7 in position 31: invalid continuation byte
The text was updated successfully, but these errors were encountered: