use std::time::Duration; use mikrotik_lite::MikrotikLite; #[tokio::main] async fn main() { let mut api = MikrotikLite::new_async( "api_login".to_string(), "api_pass".to_string(), "10.80.80.1:8728".to_string(), Duration::from_secs(5), ).await.unwrap(); let identity_json = api.send_command_json_async( "/system/identity/print".to_string(), None, ).await.unwrap(); println!("{}", identity_json); }