Skip to content

Commit

Permalink
Add DeleteSecurityData (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximeborges committed Oct 26, 2022
1 parent 7ca53e1 commit 71efe2f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ublox-cellular/src/command/device_data_security/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,21 @@ pub struct SendSecurityDataImport<'a> {
pub data: &'a atat::serde_bytes::Bytes,
}

#[derive(Clone, AtatCmd)]
#[at_cmd("+USECMNG=2,", NoResponse, value_sep = false)]
pub struct DeleteSecurityData<'a> {
/// Type of the security data
#[at_arg(position = 0)]
pub data_type: SecurityDataType,
/// Unique identifier of an imported certificate or private key.
///
/// **TOBY-L2 / MPCI-L2 / LARA-R2 / TOBY-R2 / SARA-U2 / LISA-U2 / SARA-G4 /
/// SARA-G3:**
/// - The maximum length is 200 characters
#[at_arg(position = 1, len = 200)]
pub internal_name: &'a str,
}

#[derive(Clone, AtatCmd)]
#[at_cmd("+USECMNG=3", Vec<SecurityData, 3> , value_sep = false)]
pub struct ListSecurityData;
Expand Down

0 comments on commit 71efe2f

Please sign in to comment.