We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SimModem::negotiate
EspModem::run
1 parent 35f9887 commit fc6d0f6Copy full SHA for fc6d0f6
examples/lte_modem.rs
@@ -48,7 +48,8 @@ fn main() -> anyhow::Result<()> {
48
)?;
49
log::info!("Hello");
50
let mut sim_device = SIM7600::new();
51
- match sim_device.negotiate(&mut serial) {
+ let buff = [0u8; 64];
52
+ match sim_device.negotiate(&mut serial, buff) {
53
Err(x) => log::error!("Error = {}", x),
54
Ok(()) => log::info!("Device in PPP mode"),
55
}
@@ -57,7 +58,7 @@ fn main() -> anyhow::Result<()> {
57
58
59
let _scope = std::thread::scope::<_, anyhow::Result<()>>(|s| {
60
let my_thread: ScopedJoinHandle<anyhow::Result<()>> = s.spawn(|| {
- match modem.run() {
61
+ match modem.run(buff) {
62
Err(x) => log::error!("Error: {:?}", x),
63
Ok(_x) => (),
64
};
0 commit comments