aboutsummaryrefslogtreecommitdiff
path: root/examples/nrf9160
diff options
context:
space:
mode:
authorUlf Lilleengen <[email protected]>2024-09-04 19:31:55 +0200
committerUlf Lilleengen <[email protected]>2024-09-04 19:31:55 +0200
commitccfa6264b0ad258625f2dd667ba8e6eaca1cfdc3 (patch)
treeafd078095d2090b9641ee58ee3d47b9177f95e75 /examples/nrf9160
parent372e45dabc0cfd3eb495e902665bb752a67aa804 (diff)
Add closing if raw socket to handle re-attach
Diffstat (limited to 'examples/nrf9160')
-rw-r--r--examples/nrf9160/src/bin/modem_tcp_client.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/nrf9160/src/bin/modem_tcp_client.rs b/examples/nrf9160/src/bin/modem_tcp_client.rs
index a6f42eb3b..fb14b746f 100644
--- a/examples/nrf9160/src/bin/modem_tcp_client.rs
+++ b/examples/nrf9160/src/bin/modem_tcp_client.rs
@@ -193,5 +193,7 @@ async fn main(spawner: Spawner) {
193 info!("txd: {}", core::str::from_utf8(msg).unwrap()); 193 info!("txd: {}", core::str::from_utf8(msg).unwrap());
194 Timer::after_secs(1).await; 194 Timer::after_secs(1).await;
195 } 195 }
196 // Test auto-attach
197 unwrap!(control.detach().await);
196 } 198 }
197} 199}