diff options
| author | Ulf Lilleengen <[email protected]> | 2024-09-06 11:22:07 +0200 |
|---|---|---|
| committer | Ulf Lilleengen <[email protected]> | 2024-09-06 11:22:07 +0200 |
| commit | 1b1db2401bfdfe6f813fb7738529749e4ec80882 (patch) | |
| tree | b391abf8ed6319689c0089504f436c6155054151 /embassy-net-nrf91 | |
| parent | e2e3143c2ea9a606eff2fa1d4e51a74824b5c2ac (diff) | |
Use byte slice for config
Diffstat (limited to 'embassy-net-nrf91')
| -rw-r--r-- | embassy-net-nrf91/src/context.rs | 4 |
1 files changed, 2 insertions, 2 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 |
| 17 | pub struct Config<'a> { | 17 | pub 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. |
