Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Oops... reconnecting...
- Exception in thread Thread-1:
- Traceback (most recent call last):
- File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
- self.run()
- File "/usr/lib/python2.7/threading.py", line 763, in run
- self.__target(*self.__args, **self.__kwargs)
- File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 2630, in _thread_main
- self.loop_forever(retry_first_connection=True)
- File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 1410, in loop_forever
- rc = self.loop(timeout, max_packets)
- File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 926, in loop
- rc = self.loop_read(max_packets)
- File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 1209, in loop_read
- rc = self._packet_read()
- File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 1802, in _packet_read
- rc = self._packet_handle()
- File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 2278, in _packet_handle
- return self._handle_publish()
- File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 2464, in _handle_publish
- self._handle_on_message(message)
- File "/usr/local/lib/python2.7/dist-packages/paho/mqtt/client.py", line 2624, in _handle_on_message
- self.on_message(self, self._userdata, message)
- File "./roowifi-mqtt-gw.py", line 87, in on_message
- roomba_state()
- File "./roowifi-mqtt-gw.py", line 39, in roomba_state
- s.send(chr(142))
- AttributeError: 'NoneType' object has no attribute 'send'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement