gilestrolab / ethoscope

a platform from monitoring animal behaviour in real time from a raspberry pi
http://lab.gilest.ro/ethoscope/
GNU General Public License v3.0
17 stars 25 forks source link

mDNS devices disappear after some time #100

Closed ggilestro closed 4 years ago

ggilestro commented 4 years ago

Devices registered through avahi / zeroconf may disappear after some days and not being available on the network anymore. This happens with ethoscopes - albeit seldom - and more reproducibly with the ESP32 ambient sensors based on mDNS - this latter currently uses a modification of the following code: https://github.com/espressif/arduino-esp32/blob/master/libraries/ESPmDNS/examples/mDNS_Web_Server/mDNS_Web_Server.ino

ggilestro commented 4 years ago

This is most likely an issue on the client-side. For the ESP32 sensors, it may be linked to this upstream issue: https://github.com/espressif/arduino-esp32/issues/962

ggilestro commented 4 years ago

Commit https://github.com/gilestrolab/ethoscope/commit/f3ed4d9b3bed040a0efaa640b12aa78b491e65c5 partly addresses this issue and offers a decent workaround for now.