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()) | ||||
|     } | ||||
| 
 | ||||
|     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<UART: serial::Uart> Modem<UART> { | |||
|         Ok(()) | ||||
|     } | ||||
| 
 | ||||
|     pub fn info(&mut self)-> Result<String> { | ||||
|         self.send_command(Command::modem_info()) | ||||
|     } | ||||
| 
 | ||||
|     pub fn probe(&mut self)-> Result<String> { | ||||
|         self.send_command(Command::probe()) | ||||
|     } | ||||
|  | @ -236,11 +227,6 @@ impl<UART: serial::Uart> Modem<UART> { | |||
|         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> { | ||||
|         let res = self.send_command(Command::tcp_ssl_check())?; | ||||
|         Ok(res.contains("+CIPSSL: (1)")) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue