tls function skeleton

This commit is contained in:
Vladan Popovic 2023-02-08 01:33:31 +01:00
parent b30acab823
commit e7c51f2b61

View file

@ -269,6 +269,16 @@ impl<UART: serial::Uart> Modem<UART> {
Ok(()) 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<()> { pub fn tcp_set_quick_mode(&mut self, mode: bool) -> Result<()> {
self.send_command(Command::tcp_set_quick_mode(mode)) self.send_command(Command::tcp_set_quick_mode(mode))
.map(|_| ()) .map(|_| ())