-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
fix a compatibility problem with server.accept() support #88
Conversation
for not updated version of the library server.available() works like server.accept()
Are you making it compatible with an older library ? |
yes. even with the current library version. because the library's PR for accept() is not merged yet |
The frame is padded with 0xFF to a multiple of 4, that's why it was always true. I'm not sure why this fix is needed though ? I mean once your PR here arduino-libraries/WiFiNINA#204 is merged, this issue will be fixed with a library update. Fixing this in the firmware now won't matter unless all users update their firmware, which isn't very likely. |
if the PR in library is merged then this fix is much less needed. but if it is not merged and a new version of the firmware is published without this fix, then it is a problem. it looks like fw 1.5.0 was not published (at least it is not available in Updater in IDE 1) |
That would be a question for @facchinm |
This is no longer required as we'll merge the library fix in arduino-libraries/WiFiNINA#204 |
@pennam please read the comments here |
now the PR in WiFiNINA is merged so it is ok |
Thanks for the heads-up @JAndrassy 👍 I'm checking other open PRs in WiFiNINA, i will release a new version today/tomorrow |
something went wrong when I more than a year ago tested the PR with support for server.accept behavior with a WiFiNINA library version which doesn't have server.accept support yet. I missed that END_CMD in the commandBuffer always sets
accept
to true in availDataTcp. It looked like availDataTcp is all zeros after the last received parameter soaccept
will be false.So now with fw 1.5.0 the server.available() always works like server.accept(), because the current version of the library asks for fw 1.5.0 but doesn't have the PR arduino-libraries/WiFiNINA#204 with support of server.accept merged.