This project goal is extending WiFi range with ESP8266. Currently It is only supports IPv4 .
This system is requires Two way Configuration. One of them is your router other one is ESP8266 (NodeMCU).
- Set your Home router WiFi SSID and password
const char* SSID = "ahmetozer.org";
const char* PASSWORD = "MyhomeNetworkPass";
- Set your ESP Wifi name, password and channel
const char* SOFT_AP_SSID = "ahmet.engineer";
const char* SOFT_AP_PASSWORD = password;
int Wifi_SoftAP_Channel = 11;
- Set your sub local network on ESP8266 .Note: Each ESP use /29 block but requires /24 block.
IPAddress SOFT_AP_Local_IP(10,0,1,1);
IPAddress SOFT_AP_Gateway(10,0,1,1);
IPAddress SOFT_AP_Subnet(255,255,255,0);
- Firstly compile and flash firmware to your NodeMCU.
- Bootup your ESP8266.
- Find ESP8266 IPAddress on your router.
- Go to Advanced Routing settings.
- Add esp network to router.
- Change channel 9,10 or 11 on your Router.
- Select Same Wifi channel on your ESP8266.
it is delegated with
Wifi_SoftAP_Channel
variable. - Change lwIP library version to "V2 IPv6 High Bandwidth" or "V2 High Bandwidth".
Nat is Disabled by default for better performance but if you don't have chance to edit route table on router or having issue, you can enable NAT on ESP8266.
#define NAT_Enabled true
NOTE: You have to select lwIP library version to "V2 High Bandwidth" for enabling nat. Other wise nat will not work.
Serial output is disabled by default. To enable set to true SERIAL_Enabled true