-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Add sent/return value check to client.print() #1979
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
Conversation
Add a check and debug to client.print() in send_via_http() on sent bytes and fail if not all (or nothing) could be sent to the wifi client
clumsy-stefan
left a comment
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.
@TD-er agree, just let me know if I should change this accordingly or how you want to proceed?
|
@clumsy-stefan please add just remark about size_t etc. |
Added comment to explain why the comparison is done to the length%256
|
That's an elaborate explanation :) |
hmmm.... not sure how I have to interprete that? too much? Not enough? Wrong? or just a bit detailed' ;) do I need to change? |
It was more than expected, but please don't change it. It is fine. :) |
|
it's fine, for me client.print returns size_t not int could be enough :) |
Add a check and debug to client.print() in send_via_http() on sent bytes and fail if not all (or nothing) could be sent to the wifi client.
See also discussion here #1957