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

Modified WiFiMulti to work with FreeRTOS #1876

Closed
wants to merge 7 commits into from

Conversation

richteel
Copy link
Contributor

@richteel richteel commented Dec 4, 2023

Fixed an issue that I described in the discussion, #1873.

I replaced delay(5); in WiFiMulti.cpp with the following code and it works fine with FreeRTOS.

`unsigned long tWifiDelayForRtos_start = millis();
while (millis()-tWifiDelayForRtos_start <= 5) {
   if(millis()<tWifiDelayForRtos_start) {
	// millis wrapped around to zero
	tWifiDelayForRtos_start = millis();
   }
}`

richteel and others added 7 commits November 26, 2023 22:26
Added clearAPList method to allow loading of new APs for WiFiMulti.
Added clearAPList method to allow loading of new APs for WiFiMulti.
Changed whitespace before clearAPList method.
When used with FreeRTOS, the delay statement caused the code to stop responding as FreeRTOS was stuck. Replaced delay with another loop to do nothing for 5ms.
Attempted to fix indentations to pass astyle checks
@richteel
Copy link
Contributor Author

richteel commented Dec 4, 2023

astyle failing. Canceling request to make changes to indentation characters.

@richteel richteel closed this Dec 4, 2023
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