How to make a WIFI channel change with the ESP8266

The topic on number crunching

How to make a WIFI channel change with the ESP8266

Postby Pascal.tours37100 » Tue May 09, 2017 1:51 pm

Hello,

I want to change the channel assigned in WIFI on an ESP8266, I have not found very clear information ...
I did a test with the following instructions:

#include <WS2812FX.h>
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>

const char *ssid = "ESP8266";
const char *password = "ESP2017";
int channel = 6;

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

I do not have a compilation error, but the ESP8266 is still on channel 1 ...
I use WIFI Analyze under Android for my tests.
Thank you for your help.
Cordialement
Pascal
Pascal.tours37100
 
Posts: 2
Joined: Tue May 09, 2017 1:40 pm

Return to Microcontrollers & Embedded

Who is online

Users browsing this forum: No registered users and 1 guest