-->
Page 1 of 1

wifi.softap change channel

PostPosted: Tue Aug 18, 2015 7:37 am
by korg1000
Hi, i set the softap active, and by default the channel is the 6.
But, on my nexus 5 lollipop android phone (and my cousin phone too), the softap ssid remains appearing and disappearing.
Using the wifi analyzer, i find out the 6 channel is already in use by my neighbor wifi, so i think the problem of appearing/desappearing ssid is a channel conflict.
Question: how could i change the channel to any free channel?
I could not find anything on the nodemcu documentation.

Sorry by my english, not my main language.

Thanks.

Re: wifi.softap change channel

PostPosted: Sun Oct 25, 2015 10:16 am
by pwr33
WiFi.softAP(tssid, password,9);

3rd parameter is channel.

Re: wifi.softap change channel

PostPosted: Wed Nov 11, 2015 1:39 pm
by avc
Hi,

What would I do if I need to create a softAP, with no password but set a channel?

Re: wifi.softap change channel

PostPosted: Wed Jan 13, 2016 11:33 pm
by sfranzyshen
avc wrote:Hi,

What would I do if I need to create a softAP, with no password but set a channel?

Here's what I did ... and it worked ...

/* Set these to your desired credentials. */
const char *ssid = "ESPap";
const char *password = "";
int channel = 11;

WiFi.mode(WIFI_AP);
WiFi.softAP(ssid, password, channel);