ESP8266 Captive Portal

HOW TO CREATE CAPTIVE PORTAL

ON ESP8266


 Hmm looks like I take lots of time for creating post so sorry for that

REQUIREMENTS

so first of all we meet some requirements to create captive portal for ESP8266

if you dont had pc

1. otg supported android phone

2. download 

esp8266 flasher from playstore click here to install

install termux from fdroid

OTG pin/cable and b type cable (duhh your old phone charging cable)


NOW FOLLOW AS PER THERE OS

FOR ANDROID PHONE USER rip ios 

a. install termux app and install ubuntu or any linux distro in it there are lots of video on youtube related to termux or you can use this application


b. after you installed GUI (Graphical User Interface) of your distro in termux download arduino ide for linux according to your arch 32 bit/64bit 

if you want to check architecture of your device just type 

uname -a

and hit enter

this will show your device architecture it will 

arm, armhvf, arm32  thses are 32bit

arm64, aarch64,        these are 64bit


c. after downloading zip file extract it then go to arduino folder and find install.sh file

in my case

image()

if you find install.sh file just run it with bash command

bash install.sh


d.  now open terminal in desktop directory and use this command 

git clone https://github.com/adamff1/ESP8266-Captive-Portal.git

image()


e. go to this directory ESP8266-Captive-Portal and there is file

ino file just open with arduino

image()


f. oh i forgot  we need add some link i mean board links in preference 

In Arduino go to File > Preferences 

add this URL to the Additional Boards Manager URLs: http://arduino.esp8266.com/stable/package_esp8266com_index.json 

image()

g. after adding board links we need to add and install  esp8266 board in arduino
Go to Tools > Board > Boards Manager, searchESP8266 


image()

h. now we need to set board like as shown below
image()

i. now we need to export that ino file to bin (converting ino to bin) as i  shown below

j. now jusr copy or move that file in your internal storage and flash it with esp8266 flasher 


FOR PC/LAPTOP USERS

JUST DOWNLOAD ZIP/TAR/RAR OF ARDUINO AND EXTRACT

AND INSTALL







now download captive portal from this site

and extract somewhere

now goto that folder called esp8266 captive portal folder and open with arduino
(if your windows didn't know to how to open that file just try "right click and use open with option")

now we need to add board link

In Arduino go to File > Preferences 
add this URL to the Additional Boards Manager URLs: http://arduino.esp8266.com/stable/package_esp8266com_index.json 

Go to Tools > Board > Boards Manager, searchESP8266 

select 2.5.1 version and install

now set your board from TOOLS


Now attach your esp8266 to your pc
now you know what you need to do






From that video / now on i started to add subtitles in video so big thanks to @Aniki 



Post a Comment