aboutsummaryrefslogtreecommitdiff
path: root/examples/nrf9160
diff options
context:
space:
mode:
authorUlf Lilleengen <[email protected]>2024-09-04 13:09:27 +0200
committerUlf Lilleengen <[email protected]>2024-09-04 13:09:27 +0200
commit5e27a3e64f46340e50bc6f61e6ef5a89e9f077ab (patch)
treee745256bb5beb36e9cf562eef1183cd8acdc2bda /examples/nrf9160
parentb76b7ca9f5d64e83f7f69a6f7d97ba605ab2af7f (diff)
Document public API and fix warnings
Diffstat (limited to 'examples/nrf9160')
-rw-r--r--examples/nrf9160/src/bin/modem_tcp_client.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/nrf9160/src/bin/modem_tcp_client.rs b/examples/nrf9160/src/bin/modem_tcp_client.rs
index f80861693..55ab2a707 100644
--- a/examples/nrf9160/src/bin/modem_tcp_client.rs
+++ b/examples/nrf9160/src/bin/modem_tcp_client.rs
@@ -7,7 +7,7 @@ use core::ptr::addr_of_mut;
7use core::str::FromStr; 7use core::str::FromStr;
8use core::slice; 8use core::slice;
9 9
10use defmt::{assert, info, warn, unwrap}; 10use defmt::{info, warn, unwrap};
11use heapless::Vec; 11use heapless::Vec;
12use embassy_executor::Spawner; 12use embassy_executor::Spawner;
13use embassy_net::{Ipv4Address, Ipv4Cidr, Stack, StackResources}; 13use embassy_net::{Ipv4Address, Ipv4Cidr, Stack, StackResources};
@@ -93,7 +93,7 @@ async fn main(spawner: Spawner) {
93 93
94 static mut TRACE_BUF: [u8; 4096] = [0u8; 4096]; 94 static mut TRACE_BUF: [u8; 4096] = [0u8; 4096];
95 let mut config = uarte::Config::default(); 95 let mut config = uarte::Config::default();
96 config.baudrate = Baudrate::BAUD1M; 96 config.baudrate = Baudrate::BAUD115200;
97 let trace_writer = TraceWriter(BufferedUarteTx::new( 97 let trace_writer = TraceWriter(BufferedUarteTx::new(
98 //let trace_uart = BufferedUarteTx::new( 98 //let trace_uart = BufferedUarteTx::new(
99 unsafe { peripherals::SERIAL0::steal() }, 99 unsafe { peripherals::SERIAL0::steal() },
@@ -128,7 +128,7 @@ async fn main(spawner: Spawner) {
128 let control = context::Control::new(control, 0).await; 128 let control = context::Control::new(control, 0).await;
129 129
130 unwrap!(control.configure(context::Config { 130 unwrap!(control.configure(context::Config {
131 gateway: "iot.nat.es", 131 apn: "iot.nat.es",
132 auth_prot: context::AuthProt::Pap, 132 auth_prot: context::AuthProt::Pap,
133 auth: Some(("orange", "orange")), 133 auth: Some(("orange", "orange")),
134 }).await); 134 }).await);