FactbirdHQ / atat

no_std crate for parsing AT commands
Apache License 2.0
115 stars 31 forks source link

Fix nested struct serialization #163

Closed c-h-johnson closed 1 year ago

c-h-johnson commented 1 year ago

The following now produces the correct output:

#[derive(Clone, AtatCmd)]
#[at_cmd("+CMD", NoResponse)]
pub struct Outer {
    #[at_arg(position = 0)]
    pub inner: Inner,
}

#[derive(Clone, Serialize)]
pub struct Inner {
    s: String<32>,
}