Skip to content

Security, registration, MQTT, FILE write and improvements #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Apr 7, 2022
Merged

Security, registration, MQTT, FILE write and improvements #15

merged 10 commits into from
Apr 7, 2022

Conversation

mazgch
Copy link
Contributor

@mazgch mazgch commented Apr 5, 2022

Hi Paul, Nathan,

Attached you will find unfortunately a rather big PR to consider. I have added quite some functionality for my project that could be useful for others. If I wait longer, merging back it will just become even worse.

Do you think you could consider these changes, enhancements and improvements?
Sorry I have not yet good isolated examples that show the new functionality.

  • Security APIs
  • MQTT APIs
  • File download
  • improved ERROR parsing in all commands (do not timeout in case of ERROR), this speeds up startup a lot.
  • debug capability to see raw AT commands and responses.
  • Avoid nasty recursion in init just use a do - while loop. recursion is almost always a bad thing.
  • switch the parser to more extended end tags \r\nXX\r\n as required by specification. You could still provide a special endtag is you need in a specific commend.
  • fix an issue in the waiting for response to break a special case where a spurious duplicate first character e.g. \r\r\nXX\r\n would not be detected as successful expected response. this happens e.g. if ATE0\r is sent while echo is enabled you will get ATE0\r\r\nXX\r\n, this will start paring and throw away both \r\r and would not consider the second \r as the start of the correct end tag.

PaulZC and others added 10 commits January 18, 2022 10:39
- Security APIs
- MQTT APIs
- File download
- improved ERROR parsing
- debug capability to see raw AT commands and responses
- Avoid nasty recursion in init just use a do - while loop. recursion is almost always a bad thing.
- switch the parser to more sticks end tags \r\nXX\r\n 
- fix an issue in the waiting for response to break a special case where a spurious duplicate first character e.g. \r\r\nXX\r\n would not be detected as successful expected response. this happens e.g. if ATE0\r is sent while echo is enabled you will get ATE0\r\r\nXX\r\n
- optimise times
- avoid issues when ruining from from task and with concurrent access  when changing baud rate
registration callbacks and EPS status
Merge into release candidate
do not reallocate buffers in begin, but delete them in the destructor.
@PaulZC
Copy link
Collaborator

PaulZC commented Apr 5, 2022

Wow Michael - this is huge... Thank you!

We will study this and merge it as soon as possible.

Thank you again,
Paul

Tagging @nseidle - just so this pops up on his feed...

@PaulZC PaulZC self-assigned this Apr 5, 2022
@PaulZC PaulZC added the enhancement New feature or request label Apr 5, 2022
@mazgch
Copy link
Contributor Author

mazgch commented Apr 5, 2022

Wow Michael - this is huge... Thank you!
We will study this and merge it as soon as possible.

Yes I am sorry about the size, maybe its better to start a new project [SparkFun_u-blox_Cellular_Arduino_Library] as my final goal is to support LARA-R6 in parallel to SARA-R5 and other SKUs.

@PaulZC PaulZC merged commit 733582d into sparkfun:release_candidate Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants