multiple calls per second for onConnectionLost of DeviceReconnectFilter



  • Read values from the device. Device turns off. Then my onConnectionLost get called as expected, but gets called multiple times per second continuously until device connects again.

    Is it normal to get called multiple times per second? Something like 20-30 times per second. My onConnectionLost return looks like

    override fun onConnectionLost(connectionLostEvent: ConnectionLostEvent): ConnectionLostPlease {
        return ConnectionLostPlease.retryIn(Interval.secs(2.0))
     }
    


  • No, it's not supposed to fire that much. Looks like you found a bug, thanks for pointing it out. We'll make sure to get this fixed for the next release.