pub fn run(&mut self) {
        if !matches!(self.conn_state, ConnectionState::Authenticated) {
            error!("Not connected, trying reconnect");
            if let Err(err) = self.connect() {
                error!("Problem while connecting: {}", err);
                self.disconnect("Problem while connecting");
                return;
            }
        }

        self.read_response();
        if !self.is_server_alive() {
            info!("Blynk is offline for some reson :(");
            self.disconnect("Blynk server is offline");
        }
    }
/// Performs event loop run that is reposnible for:
/// - checking the connection state
/// - reconnecting if connection failed
/// - reading any pending responses from blynk servers
/// - executing events hooks if those are provided
Performs event loop run that is reposnible for:
checking the connection state
reconnecting if connection failed
reading any pending responses from blynk servers
executing events hooks if those are provided
Performs event loop run that is reposnible for : checking the connection state reconnecting if connection failed reading any pending responses from blynk servers executing events hooks if those are provided
pub fn run(&mut self) {
        if !matches!(self.conn_state, ConnectionState::Authenticated) {
            error!("Not connected, trying reconnect");
            if let Err(err) = self.connect() {
                error!("Problem while connecting: {}", err);
                self.disconnect("Problem while connecting");
                return;
            }
        }
        self.read_response();
        if !self.is_server_alive() {
            info!("Blynk is offline for some reson :(");
            self.disconnect("Blynk server is offline");
        }
    }
pub fn run ( & mut self ) { if ! matches ! ( self conn_state ConnectionState Authenticated ) { error ! ( " " ) ; if let Err ( err ) = self . connect ( ) { error ! ( " " err ) ; self . disconnect ( " " ) ; return ; } } self . read_response ( ) ; if ! self . is_server_alive ( ) { info ! ( " " ) ; self . disconnect ( " " ) ; } }
Performs event loop run that is reposnible for:
 checking the connection state
 reconnecting if connection failed
 reading any pending responses from blynk servers
 executing events hooks if those are provided
Performs event loop run that is reposnible for : checking the connection state reconnecting if connection failed reading any pending responses from blynk servers executing events hooks if those are provided
&mut self
&mut self