FactbirdHQ / atat

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

Question: Enum for "Success == 0, Failure for everything else" #138

Open mvniekerk opened 1 year ago

mvniekerk commented 1 year ago

Hi all I'm implementing the AT commands for https://docs.ai-thinker.com/_media/lora/docs/ra-08_at_instruction.pdf . The command +CLINKCHECK has the following:

Y0 indicates the Link Check result:
 0: indicates that the Link Check is successfully executed
 non-0: indicates that the Link Check fails

Is there a simple way to model this?

MathiasKoch commented 1 year ago

There is no such annotation currently.

If you can come up with a clever and intuitive way of annotating it, a PR is welcomed.

Alternatively, a manual implementation of deserialize is quite easy