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

Solving "wifi:channel=0 is invalid" when using FTM example code by adjusting default channel in WiFiGeneric.h #5809

Merged
merged 1 commit into from
Nov 4, 2021

Conversation

bestaar
Copy link
Contributor

@bestaar bestaar commented Oct 26, 2021

When using the [FTM examples])https://github.com/espressif/arduino-esp32/tree/master/libraries/WiFi/examples/FTM/) I got an error in the Serial Monitor for FTM_Initiator.ino:

"wifi:channel=0 is invalid"

I solved it for myself by simply passing the channel argument to be 1 in WiFi.initiateFTM. However, a better fix would be to directly change the default channel here.

Summary

channel=0 seems to be invalid for initiateFTM, i.e. we get the error message "wifi:channel=0 is invalid". The proposed fix changes the default channel in initiateFTM from 0 to 1.

Impact

The example codes for FTM will work out of the box ;)

When using the FTM examples I got an error in the FTM_Initiator.ino:

*"wifi:channel=0 is invalid"*

I solved it for myself by simply passing the channel argument to be 1 in *WiFi.initiateFTM*. However, a better fix would be to directly change the default channel here.
@CLAassistant
Copy link

CLAassistant commented Oct 26, 2021

CLA assistant check
All committers have signed the CLA.

@me-no-dev me-no-dev merged commit 4b9dc61 into espressif:master Nov 4, 2021
@me-no-dev
Copy link
Member

thanks!

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.

3 participants