Skip to content

Commit

Permalink
Test out parsing cellid
Browse files Browse the repository at this point in the history
  • Loading branch information
lukipuki committed Nov 14, 2024
1 parent eb477e3 commit 1cfb25e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nrf52840/src/bg77.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,12 @@ impl BG77 {
self.uart1
.call("AT+QCSQ", MINIMUM_TIMEOUT, &[1, 2, 3])
.await?;
self.uart1
let (_, status, cellid) = self
.uart1
.call("AT+CEREG?", MINIMUM_TIMEOUT, &[0, 1, 3])
.await?;
.await?
.parse3::<u32, u32, String<8>>()?;
info!("Registration info: {} {}", status, cellid.as_str());
self.uart1
.call("AT+QMTCONN?", MINIMUM_TIMEOUT, &[0, 1])
.await?;
Expand Down

0 comments on commit 1cfb25e

Please sign in to comment.