FactbirdHQ / atat

no_std crate for parsing AT commands
Apache License 2.0
109 stars 29 forks source link

Support for commands with both quoted and unquoted strings #166

Open ijager opened 1 year ago

ijager commented 1 year ago

I want to send the following command:

AT+QSSLCFG="ciphersuite",2,0xFFFF

Note that it has both a quoted string "ciphersuite" and an unquoted string 0xFFFF, I believe this is currently not possible to serialize with atat as the quote_escape_strings option is set for the entire command.

So I would like to add this quote_escape_strings option for ArgAttributes as an optional arg.

pub quote_escape_strings: Option<bool>,

I think if the option is set on ArgAttributes it should override the CmdAttributes.

Any thoughts?