Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(server): add bool operator and end() api#77

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fpistm merged 4 commits intostm32duino:mainfromfpistm:ArduinoAPI
Nov 9, 2023

Conversation

@fpistm
Copy link
Member

@fpistmfpistm commentedNov 9, 2023
edited
Loading

  • bool operator:
    https://www.arduino.cc/reference/en/libraries/ethernet/ifserver/

  • end():
    Not officially documented. Pay attention, whenend() is called, the socket is not close immediately. The tcp connection will come intoTCP_WAIT, after few minutes (~2 minutes) the connection will close completely and free the socket.
    So callingbegin() during this time frame after theend() will silently failed and have to check thanks the bool operator if the server is ready or not. If not then call againbegin().

ForTCP_WAIT ref:https://github.com/stm32duino/LwIP/blob/4de72d4b92ebf1ac5ce5efe7c331c0af6d52cca3/src/core/tcp.c#L1446C11-L1446C11

Fixes#73.

JAndrassy reacted with thumbs up emoji
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Fixesstm32duino#73.Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Fixesstm32duino#73.Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
@fpistmfpistm added the enhancementNew feature or request labelNov 9, 2023
@fpistmfpistm added this to the1.3.1 milestoneNov 9, 2023
@fpistmfpistm merged commitf000a6e intostm32duino:mainNov 9, 2023
@fpistmfpistm deleted the ArduinoAPI branchNovember 9, 2023 15:49
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

enhancementNew feature or request

Projects

Milestone

1.4.0

Development

Successfully merging this pull request may close these issues.

Consider adding method end() and operator bool() in EthernetServer

1 participant

@fpistm

[8]ページ先頭

©2009-2025 Movatter.jp