I set up AmbientPoly on a Raspberry Pi and everything seems to work initially. After some period of time (24 to 48 hours) it stops reporting data. The node server still shows "connected" during that time and restarting the node server will fix the problem. The error log is below:
2022-11-27 00:56:04,656 Controller polyinterface ERROR polyinterface:write: Exception in thread Controller:
Traceback (most recent call last):
File "/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
self.run()
File "/usr/lib/python3.7/threading.py", line 865, in run
self._target(*self._args, **self._kwargs)
File "/home/pi/.local/lib/python3.7/site-packages/polyinterface/polyinterface.py", line 854, in _parseInput
self.longPoll()
File "./ambient-poly.py", line 184, in longPoll
self.set_driver(node, 'GV1', d, 'windgustmph')
File "./ambient-poly.py", line 206, in set_driver
report = True, force = self.first_poll)
File "/home/pi/.local/lib/python3.7/site-packages/polyinterface/polyinterface.py", line 683, in setDriver
self.reportDriver(d, report, force)
File "/home/pi/.local/lib/python3.7/site-packages/polyinterface/polyinterface.py", line 704, in reportDriver
self.controller.poly.send(message)
File "/home/pi/.local/lib/python3.7/site-packages/polyinterface/polyinterface.py", line 385, in send
self._mqttc.publish(self.topicInput, json.dumps(message), retain=False)
File "/home/pi/.local/lib/python3.7/site-packages/paho/mqtt/client.py", line 1258, in publish
local_mid, topic, local_payload, qos, retain, False, info, properties)
File "/home/pi/.local/lib/python3.7/site-packages/paho/mqtt/client.py", line 2693, in _send_publish
return self._packet_queue(PUBLISH, packet, mid, qos, info)
File "/home/pi/.local/lib/python3.7/site-packages/paho/mqtt/client.py", line 3016, in _packet_queue
return self.loop_write()
File "/home/pi/.local/lib/python3.7/site-packages/paho/mqtt/client.py", line 1577, in loop_write
rc = self._packet_write()
File "/home/pi/.local/lib/python3.7/site-packages/paho/mqtt/client.py", line 2465, in _packet_write
packet['packet'][packet['pos']:])
File "/home/pi/.local/lib/python3.7/site-packages/paho/mqtt/client.py", line 649, in _sock_send
return self._sock.send(buf)
File "/usr/lib/python3.7/ssl.py", line 984, in send
return self._sslobj.write(data)
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:2341)
Any thoughts?