pub fn new(auth_token: String) -> Blynk<E> {
        Self {
            conn_state: ConnectionState::Disconnected,
            config: Config {
                token: auth_token,
                ..Default::default()
            },

            client: Client::default(),
            handler: None,

            last_rcv_time: Instant::now(),
            last_ping_time: Instant::now(),
            last_send_time: Instant::now(),
        }
    }
/// Returns the Blynk client initalized with API token
///
/// # Arguments
/// * `auth_token` - A string that holds the Blynk API token
Returns the Blynk client initalized with API token
Returns the Blynk client initalized with API token
pub fn new(auth_token: String) -> Blynk<E> {
        Self {
            conn_state: ConnectionState::Disconnected,
            config: Config {
                token: auth_token,
                ..Default::default()
            },
            client: Client::default(),
            handler: None,
            last_rcv_time: Instant::now(),
            last_ping_time: Instant::now(),
            last_send_time: Instant::now(),
        }
    }
pub fn new ( auth_token : String ) -> Blynk < E > { Self { conn_state : ConnectionState :: Disconnected , config : Config { token : auth_token , .. Default :: default ( ) } , client : Client :: default ( ) , handler : None , last_rcv_time : Instant :: now ( ) , last_ping_time : Instant :: now ( ) , last_send_time : Instant :: now ( ) , } }
Returns the Blynk client initalized with API token
Returns the Blynk client initalized with API token
auth_token
String
auth_token
String