mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-22 06:42:32 +00:00
Add method for buypassing and running at command directly
This commit is contained in:
parent
5d0ed24640
commit
d71fd447cc
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user