-
Notifications
You must be signed in to change notification settings - Fork 48
client: Fix bool operator on init and ongoing use #17
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
client: Fix bool operator on init and ongoing use #17
Conversation
9c33670
to
d899527
Compare
When iterating we make sure client's socket is not closing since _tcp_client remains after close. This was tested on nuleo-f767zi using project webthing-arduino Change-Id: Ie465fe59009c33957dad97f1c70b4dc3af3b2ebe Forwarded: stm32duino#17 Signed-off-by: Philippe Coval <[email protected]>
When iterating we make sure client's socket is not closing since _tcp_client remains after close. This was tested on nuleo-f767zi using project webthing-arduino Change-Id: Ie465fe59009c33957dad97f1c70b4dc3af3b2ebe Forwarded: stm32duino#17 Signed-off-by: Philippe Coval <[email protected]>
d899527
to
507d586
Compare
I noticed that server worked on global instance. but not if used in class (allocated with new). This change makes both use working. Forwarded: stm32duino#17 Relate-to: https://github.com/rzr/webthing-iotjs/wiki/MCU Change-Id: I2e21e34a43f3cadb7981f2e359a5960735daa5d3 Signed-off-by: Philippe Coval <[email protected]>
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.
Thanks for this PR.
Only one comment to discuss
Also replace default constructor to use port 80 by default. I noticed that server worked on global instance. but not if used in class (allocated with new). This change makes both use cases working. Forwarded: stm32duino#17 Relate-to: https://github.com/rzr/webthing-iotjs/wiki/MCU Change-Id: I2e21e34a43f3cadb7981f2e359a5960735daa5d3 Signed-off-by: Philippe Coval <[email protected]>
507d586
to
a443221
Compare
For the record this change is released in: |
@rzr |
OK, Sorry for noise May relate to: |
When iterating we make sure client's socket is not closing
since _tcp_client remains after close.
This was tested on nuleo-f767zi using project webthing-arduino
Change-Id: Ie465fe59009c33957dad97f1c70b4dc3af3b2ebe
Signed-off-by: Philippe Coval [email protected]