Add method for buypassing and running at command directly

This commit is contained in:
Ulf Lilleengen 2024-09-05 11:25:19 +02:00
parent 5d0ed24640
commit d71fd447cc

View File

@ -86,6 +86,11 @@ impl<'a> Control<'a> {
Self { control, cid }
}
/// Perform a raw AT command
pub async fn at_command(&self, req: &[u8], resp: &mut [u8]) -> usize {
self.control.at_command(req, resp).await
}
/// Configures the modem with the provided config.
pub async fn configure(&self, config: &Config<'_>) -> Result<(), Error> {
let mut cmd: [u8; 256] = [0; 256];