Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

JAndrassy
Copy link
Contributor

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 so accept 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.

for not updated version of the library server.available() works like
server.accept()
@iabdalkader
Copy link
Contributor

Are you making it compatible with an older library ?

@JAndrassy
Copy link
Contributor Author

JAndrassy commented Sep 18, 2023

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

@iabdalkader
Copy link
Contributor

It looked like availDataTcp is all zeros after the last received parameter so accept will be false.

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.

@JAndrassy
Copy link
Contributor Author

JAndrassy commented Sep 18, 2023

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)

@iabdalkader
Copy link
Contributor

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

@iabdalkader
Copy link
Contributor

This is no longer required as we'll merge the library fix in arduino-libraries/WiFiNINA#204

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