W5500 접속 끊는 방법
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: W5500 접속 끊는 방법
by Edward ·
안녕하세요.
int32_t loopback_tcps(uint8_t sn, uint8_t* buf, uint16_t port)
위 루프백 예제는 가장 처음에 Socket number , 그리고 버퍼, 그리고 Port 번호입니다.
일단, 임의로 어떤 경우에 연결 상태를 끊고 싶으신지는 정확하게 모르겠으나
만약 임의로 연결을 끊고 싶으시다면, disconnect(sn) 함수를 사용하시면 됩니다.
Loopback 예제에서는 case SOCK_CLOSE_WAIT : 상태 내부에 disconnect 함수가 있죠
disconnect 함수를 사용하시면 원하실 때 연결을 끊는 것이 가능합니다.
감사합니다.