Open cacharle opened 3 months ago
It is able to parse it if I don't specify any struct in the URC enum:
#[derive(AtatUrc)]
pub enum Urc {
#[at_urc("+QIND")]
OTAStatus,
}
But of course, I don't get any of the informations I want with this so it's not great.
Okay, looking has some previous code that could parse it, I think this specific URC is terminated by a \r
instead of \r\n
.
I now have #[at_urc("+QIND", termination = "\r")]
but it still fails to parse.
Also tried to copy the default urc parser in my code and replace the \r\n
by \r
but it wasn't successful
I am failing to make a response struct that will parse to my desired URC:
Gives me some of the following errors when parsing:
I have also tried to properly parse the fields of the response like so:
or tried to not have any fields in the struct. I always get the same errors
I am a new user of this crate so I may be missing something obvious