sudo apt-get remove modemmanager
sudo apt-get install python2.7 python3-pip screen qpdf
sudo -H pip3 install --upgrade pip setuptools wheel
git clone --recursive [email protected]:pylover/esp8266-env.git
cd esp8266-env
scripts/setup.sh
First, build and flash the FOTA image.
cd esp8266-env
source activate.sh
cd fota/webui
npm install
cd ..
make cleanup_map6params
make flash_map6webui
make flash_map6user1
You may use make screen
to view esp debug console. use CTRL+A
then k
to
exit.
Then search for WIFI access point named something like NewDevice_xxxxxxxxxxx
, connect and open the address http://192.168.43.1 to configure the newly
cooked device. Then press reboot.
Use uns resolve
to find the new device's IP Address:
uns d home.NewDevice
Output example:
192.168.8.162:5333: home.NewDevice
Some routers will not work with multicast properly, if the previous command
failed, you may edit the ~/.cache/uns
and add this line:
192.168.8.162 home.NewDevice
Now, create and transfer the helloworld
firmware over the air using:
esp8266-newproject helloworld
cd helloworld
make fotamap6
make fota HOST=$(uns d -s home.NewDevice)
or edit the Makefile
and set HOST ?= home.newDevice
to make it simpler.
cd esp8266-env
source activate.sh
cd sdk/examples/simple_pair
./gen_misc.sh