-
Notifications
You must be signed in to change notification settings - Fork 3k
Bugfix restrict send size; namespace fixes; ATCmdParser::read return value fix #8841
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
Bugfix restrict send size; namespace fixes; ATCmdParser::read return value fix #8841
Conversation
@ARMmbed/mbed-os-ipcore please review. |
@@ -550,6 +548,9 @@ bool ESP8266::dns_lookup(const char *name, char *ip) | |||
|
|||
nsapi_error_t ESP8266::send(int id, const void *data, uint32_t amount) | |||
{ | |||
// +CIPSEND supports up to 2048 bytes at a time | |||
amount = amount > 2048 ? 2048 : amount; |
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.
I think we need check here if this is TCP or UDP.
For TCP this is fine.
For UDP this needs to return parameter error.
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.
@SeppoTakalo issue fixed.
ESP8266 maximum packet size when sending is 2048 bytes.
CI started |
Test run: SUCCESSSummary: 4 of 4 test jobs passed |
Description
Pull request type