Skip to content

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

Merged
merged 2 commits into from
Apr 21, 2019

Conversation

rzr
Copy link
Contributor

@rzr rzr commented Jan 4, 2019

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]

@rzr rzr force-pushed the sandbox/rzr/review/master branch from 9c33670 to d899527 Compare January 4, 2019 10:56
rzr added a commit to TizenTeam/STM32Ethernet that referenced this pull request Jan 4, 2019
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]>
@rzr rzr force-pushed the sandbox/rzr/review/master branch from d899527 to 507d586 Compare January 4, 2019 13:05
rzr added a commit to TizenTeam/STM32Ethernet that referenced this pull request Jan 4, 2019
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]>
@fpistm fpistm self-requested a review January 4, 2019 13:53
Copy link
Member

@fpistm fpistm left a 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]>
@rzr rzr force-pushed the sandbox/rzr/review/master branch from 507d586 to a443221 Compare January 4, 2019 14:31
@fpistm fpistm merged commit 27b579a into stm32duino:master Apr 21, 2019
@rzr
Copy link
Contributor Author

rzr commented May 2, 2019

For the record this change is released in:
https://github.com/stm32duino/Arduino_Core_STM32/releases/tag/1.5.0

@fpistm
Copy link
Member

fpistm commented May 2, 2019

@rzr
This is not really true.
This change is merged in the master of the STM32Ethernet library.
It is available by installing the zip of the library.
It will be available thanks the library manager when I will release the next version of the lib (1.0.5)

@rzr
Copy link
Contributor Author

rzr commented May 2, 2019

OK, Sorry for noise

May relate to:
#16

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.

2 participants