Derive crate for ATAT
This crate provides derive macros for automatically deriving
atat::AtatCmd
, atat::AtatResp
, atat::AtatUrc
, atat::AtatEnum
and atat::AtatLen
Examples
AtatCmd
See AtatCmd
for descriptions and documentation on required and allowed
attributes
// Serializing the following struct, results in `AT+USORD=<socket>,<length>\r\n`
#[derive(AtatCmd)]
#[at_cmd("+USORD", SocketData)]
pub struct ReadSocketData {
#[at_arg(position = 0)]
pub socket: u8,
#[at_arg(position = 1)]
pub length: usize,
}