Skip to content

Commit

Permalink
samples: net: https_client: add graceful iface down
Browse files Browse the repository at this point in the history
Add graceful bring down of the network interfaces.

Signed-off-by: Mirko Covizzi <[email protected]>
  • Loading branch information
MirkoCovizzi authored and nordicjm committed Jan 15, 2024
1 parent 85f37e1 commit 6fcf737
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,10 @@ Networking samples
The documentation is now found in the :ref:`networking_samples` section.
* The sample to use the :ref:`coap_client_interface` library.

* :ref:`https_client` sample:

* Updated the sample to gracefully bring down the network interfaces.

NFC samples
-----------

Expand Down
5 changes: 5 additions & 0 deletions samples/net/https_client/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -337,5 +337,10 @@ int main(void)
printk("conn_mgr_all_if_disconnect, error: %d\n", err);
}

err = conn_mgr_all_if_down(true);
if (err) {
printk("conn_mgr_all_if_down, error: %d\n", err);
}

return 0;
}

0 comments on commit 6fcf737

Please sign in to comment.