tls function skeleton
This commit is contained in:
parent
b30acab823
commit
e7c51f2b61
1 changed files with 10 additions and 0 deletions
10
src/modem.rs
10
src/modem.rs
|
@ -269,6 +269,16 @@ impl<UART: serial::Uart> Modem<UART> {
|
|||
Ok(())
|
||||
}
|
||||
|
||||
pub fn tls_connect(&mut self, addr: &str, port: u16) -> Result<()> {
|
||||
let _ = self.tcp_connect(addr, port)?;
|
||||
|
||||
// ------------------------
|
||||
// TLS handshake goes here.
|
||||
// ------------------------
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub fn tcp_set_quick_mode(&mut self, mode: bool) -> Result<()> {
|
||||
self.send_command(Command::tcp_set_quick_mode(mode))
|
||||
.map(|_| ())
|
||||
|
|
Loading…
Add table
Reference in a new issue