aboutsummaryrefslogtreecommitdiff
path: root/embassy-net-nrf91/src
diff options
context:
space:
mode:
authorUlf Lilleengen <[email protected]>2024-09-05 11:25:19 +0200
committerUlf Lilleengen <[email protected]>2024-09-05 11:25:19 +0200
commitd71fd447cc4778be8abfdaf510be3a75dac23bf8 (patch)
tree251bb98de07927b5b323bf87c642b10c505bd631 /embassy-net-nrf91/src
parent5d0ed246400b1e7973c1fe870dba977ab7186a21 (diff)
Add method for buypassing and running at command directly
Diffstat (limited to 'embassy-net-nrf91/src')
-rw-r--r--embassy-net-nrf91/src/context.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/embassy-net-nrf91/src/context.rs b/embassy-net-nrf91/src/context.rs
index 3671fdd68..b936e5f87 100644
--- a/embassy-net-nrf91/src/context.rs
+++ b/embassy-net-nrf91/src/context.rs
@@ -86,6 +86,11 @@ impl<'a> Control<'a> {
86 Self { control, cid } 86 Self { control, cid }
87 } 87 }
88 88
89 /// Perform a raw AT command
90 pub async fn at_command(&self, req: &[u8], resp: &mut [u8]) -> usize {
91 self.control.at_command(req, resp).await
92 }
93
89 /// Configures the modem with the provided config. 94 /// Configures the modem with the provided config.
90 pub async fn configure(&self, config: &Config<'_>) -> Result<(), Error> { 95 pub async fn configure(&self, config: &Config<'_>) -> Result<(), Error> {
91 let mut cmd: [u8; 256] = [0; 256]; 96 let mut cmd: [u8; 256] = [0; 256];