aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--embassy-net-nrf91/src/context.rs4
-rw-r--r--examples/nrf9160/src/bin/modem_tcp_client.rs4
2 files changed, 4 insertions, 4 deletions
diff --git a/embassy-net-nrf91/src/context.rs b/embassy-net-nrf91/src/context.rs
index 22629fe5b..8b45919ef 100644
--- a/embassy-net-nrf91/src/context.rs
+++ b/embassy-net-nrf91/src/context.rs
@@ -16,11 +16,11 @@ pub struct Control<'a> {
16/// Configuration for a given context 16/// Configuration for a given context
17pub struct Config<'a> { 17pub struct Config<'a> {
18 /// Desired APN address. 18 /// Desired APN address.
19 pub apn: &'a str, 19 pub apn: &'a [u8],
20 /// Desired authentication protocol. 20 /// Desired authentication protocol.
21 pub auth_prot: AuthProt, 21 pub auth_prot: AuthProt,
22 /// Credentials. 22 /// Credentials.
23 pub auth: Option<(&'a str, &'a str)>, 23 pub auth: Option<(&'a [u8], &'a [u8])>,
24} 24}
25 25
26/// Authentication protocol. 26/// Authentication protocol.
diff --git a/examples/nrf9160/src/bin/modem_tcp_client.rs b/examples/nrf9160/src/bin/modem_tcp_client.rs
index 7d78eba0a..5335b6b51 100644
--- a/examples/nrf9160/src/bin/modem_tcp_client.rs
+++ b/examples/nrf9160/src/bin/modem_tcp_client.rs
@@ -166,9 +166,9 @@ async fn main(spawner: Spawner) {
166 unwrap!(spawner.spawn(control_task( 166 unwrap!(spawner.spawn(control_task(
167 control, 167 control,
168 context::Config { 168 context::Config {
169 apn: "iot.nat.es", 169 apn: b"iot.nat.es",
170 auth_prot: context::AuthProt::Pap, 170 auth_prot: context::AuthProt::Pap,
171 auth: Some(("orange", "orange")), 171 auth: Some((b"orange", b"orange")),
172 }, 172 },
173 stack 173 stack
174 ))); 174 )));