diff options
| author | Ulf Lilleengen <[email protected]> | 2024-09-04 19:31:55 +0200 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2024-09-04 19:31:55 +0200 |
| commit | ccfa6264b0ad258625f2dd667ba8e6eaca1cfdc3 (patch) | |
| tree | afd078095d2090b9641ee58ee3d47b9177f95e75 /examples/nrf9160/src/bin/modem_tcp_client.rs | |
| parent | 372e45dabc0cfd3eb495e902665bb752a67aa804 (diff) | |
Add closing if raw socket to handle re-attach
Diffstat (limited to 'examples/nrf9160/src/bin/modem_tcp_client.rs')
| -rw-r--r-- | examples/nrf9160/src/bin/modem_tcp_client.rs | 2 |
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 | } |
