tls function skeleton

This commit is contained in:
Vladan Popovic 2023-02-08 01:33:31 +01:00
parent b30acab823
commit e7c51f2b61
1 changed files with 10 additions and 0 deletions

View File

@ -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(|_| ())