FactbirdHQ / ublox-short-range-rs

A driver crate for the entire u-blox short range family in Rust
6 stars 2 forks source link

Whether to join timeout exit while waiting for URC #21

Closed apeng2012 closed 3 years ago

apeng2012 commented 3 years ago
self.send_at(Ping {
    hostname: hostname,
    retry_num: 1,
})?;
while self.dns_state.get() == DNSState::Resolving {
    self.spin()?;
}

If there is no response, the program will loop indefinitely