fn disconnect(&mut self, msg: &str) {
        if let Some(hook) = &mut self.handler {
            hook.handle_disconnect();
        }

        self.client.disconnect();
        self.conn_state = ConnectionState::Disconnected;
        error!("{}", msg);

        thread::sleep(conf::RECONNECT_SLEEP);
    }
/// Disconnects from the Blynk servers
///
/// Calls disconnect hook
Disconnects from the Blynk servers
Calls disconnect hook
Disconnects from the Blynk servers Calls disconnect hook
fn disconnect(&mut self, msg: &str) {
        if let Some(hook) = &mut self.handler {
            hook.handle_disconnect();
        }
        self.client.disconnect();
        self.conn_state = ConnectionState::Disconnected;
        error!("{}", msg);
        thread::sleep(conf::RECONNECT_SLEEP);
    }
fn disconnect ( & mut self , msg : & str ) { if let Some ( hook ) = & mut self . handler { hook . handle_disconnect ( ) ; } self . client . disconnect ( ) ; self . conn_state = ConnectionState :: Disconnected ; error ! ( " " msg ) ; thread :: sleep ( conf :: RECONNECT_SLEEP ) ; }
Disconnects from the Blynk servers
Calls disconnect hook
Disconnects from the Blynk servers Calls disconnect hook
&mut self
msg
&str
&mut self
msg
&str