-
Notifications
You must be signed in to change notification settings - Fork 173
[modem]: Enhanced URC handling #883
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
base: master
Are you sure you want to change the base?
Conversation
|
|
||
| void set_enhanced_urc(esp_modem::DTE::enhanced_urc_cb enhanced_cb) | ||
| { | ||
| dte->set_enhanced_urc_cb(enhanced_cb); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to check for valid callback?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need IMO, I use nullptr value for clearing the cb
| std::string_view buffer((const char*)info.buffer_start, info.buffer_total_size); | ||
|
|
||
| // First, check if we have the completion message anywhere in the buffer | ||
| if (buffer.find("Transfer completed") != std::string_view::npos) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could use contains
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not unless we move to C++23, esp-modem is still C++17.
| @@ -0,0 +1,314 @@ | |||
| # ESP Modem Enhanced URC Documentation Plan | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we keep this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I'll remove this before merge, it's mentioned above in the TODO list:
Remove AI guided files
| @@ -0,0 +1,439 @@ | |||
| # ESP Modem Enhanced URC Interface Test Plan | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we keep?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
New URC "observer" that controls:
TODO