Skip to content

Conversation

@clumsy-stefan
Copy link
Contributor

@clumsy-stefan clumsy-stefan commented Oct 30, 2018

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

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
Copy link
Contributor Author

@clumsy-stefan clumsy-stefan left a 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?

@uzi18
Copy link
Contributor

uzi18 commented Nov 1, 2018

@clumsy-stefan please add just remark about size_t etc.

Added comment to explain why the comparison is done to the length%256
@TD-er
Copy link
Member

TD-er commented Nov 1, 2018

That's an elaborate explanation :)

@clumsy-stefan
Copy link
Contributor Author

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?

@TD-er
Copy link
Member

TD-er commented Nov 1, 2018

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. :)

@uzi18
Copy link
Contributor

uzi18 commented Nov 1, 2018

it's fine, for me client.print returns size_t not int could be enough :)

@TD-er TD-er merged commit ae9deeb into letscontrolit:mega Nov 5, 2018
@clumsy-stefan clumsy-stefan deleted the check_client_send branch November 5, 2018 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants