remove unused modem methods
This commit is contained in:
parent
84ab94df46
commit
858129cc82
1 changed files with 0 additions and 14 deletions
14
src/modem.rs
14
src/modem.rs
|
@ -202,11 +202,6 @@ impl<UART: serial::Uart> Modem<UART> {
|
||||||
self.send_command(Command::getbear())
|
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<()> {
|
pub fn connect_to_gprs_ap(&mut self, apn: &str, username: &str, password: &str)-> Result<()> {
|
||||||
println!("init gprs ...");
|
println!("init gprs ...");
|
||||||
let _ = self.send_command(Command::gprs_init())?;
|
let _ = self.send_command(Command::gprs_init())?;
|
||||||
|
@ -223,10 +218,6 @@ impl<UART: serial::Uart> Modem<UART> {
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn info(&mut self)-> Result<String> {
|
|
||||||
self.send_command(Command::modem_info())
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn probe(&mut self)-> Result<String> {
|
pub fn probe(&mut self)-> Result<String> {
|
||||||
self.send_command(Command::probe())
|
self.send_command(Command::probe())
|
||||||
}
|
}
|
||||||
|
@ -236,11 +227,6 @@ impl<UART: serial::Uart> Modem<UART> {
|
||||||
Ok(res.contains("+CGATT: 1"))
|
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<bool> {
|
pub fn tcp_is_ssl_enabled(&mut self) -> Result<bool> {
|
||||||
let res = self.send_command(Command::tcp_ssl_check())?;
|
let res = self.send_command(Command::tcp_ssl_check())?;
|
||||||
Ok(res.contains("+CIPSSL: (1)"))
|
Ok(res.contains("+CIPSSL: (1)"))
|
||||||
|
|
Loading…
Reference in a new issue