diff --git a/src/modem.rs b/src/modem.rs index 36f4dd3..588f768 100644 --- a/src/modem.rs +++ b/src/modem.rs @@ -202,11 +202,6 @@ impl Modem { self.send_command(Command::getbear()) } - pub fn get_local_ip_addr(&mut self) -> Result<()> { - let _ = self.send_command(Command::get_local_ip_addr())?; - Ok(()) - } - pub fn connect_to_gprs_ap(&mut self, apn: &str, username: &str, password: &str)-> Result<()> { println!("init gprs ..."); let _ = self.send_command(Command::gprs_init())?; @@ -223,10 +218,6 @@ impl Modem { Ok(()) } - pub fn info(&mut self)-> Result { - self.send_command(Command::modem_info()) - } - pub fn probe(&mut self)-> Result { self.send_command(Command::probe()) } @@ -236,11 +227,6 @@ impl Modem { Ok(res.contains("+CGATT: 1")) } - pub fn ping(&mut self, domain: &str)-> Result<()> { - self.send_command(Command::ping(domain))?; - Ok(()) - } - pub fn tcp_is_ssl_enabled(&mut self) -> Result { let res = self.send_command(Command::tcp_ssl_check())?; Ok(res.contains("+CIPSSL: (1)"))