I used the "reset" function on the thermostat and just reset it every
time it showed "offline" even though it wasn't. After 10 or more resets
over 3 or 4 days, it maintained connection and has been working. It's
not scientific but it held for a year ...