diondokter / at-commands

Rust project for building and parsing at commands
Apache License 2.0
33 stars 5 forks source link

Carriage return #1

Closed rfael closed 4 years ago

rfael commented 4 years ago

Hey, AT commands should end witch \r\n instead of only \n. I think a configurable postfix would be good idea.

diondokter commented 4 years ago

Oh hey! Someone is actually using this!

Oof... I should finish parsing at some point...

Yeah, it'd be a good idea indeed. Let me see what I can do.

diondokter commented 4 years ago

So I released an update! (0.3.0) Changed the default to \r\n and added a new function to allow you to specify it yourself: https://github.com/diondokter/at-commands/blob/77adeb8a6e38c3192137a832845e03555b15b5a8/src/builder.rs#L233

Hopefully this helps you :) If there's anything else, just open an issue and I'll see what I can do!