Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Is there a difference between WiFi.softAP() and WiFi.AP.begin()? #11893

Answered by me-no-dev
callsignhermit asked this question in Q&A
Discussion options

Hi there ^^

While examining examples from the WiFi API, I noticed two different functions called to initiate the access point mode. This example uses WiFi.softAP, while here invokes WiFi.AP.begin and some other functions.

Are there separate APIs available for running WiFi in access point mode? Which one is recommended?

You must be logged in to vote

WiFi.AP and WiFi.STA are the new interfaces and are cleaner and more understandable. WiFi.softAP and WiFi.begin call WiFi.AP.create and WiFi.STA.connect respectfully and are kept for backward compatibility

Replies: 1 comment

Comment options

WiFi.AP and WiFi.STA are the new interfaces and are cleaner and more understandable. WiFi.softAP and WiFi.begin call WiFi.AP.create and WiFi.STA.connect respectfully and are kept for backward compatibility

You must be logged in to vote
0 replies
Answer selected by callsignhermit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /