Giter Site home page Giter Site logo

esp8266-env's Introduction

esp8266 development environment

sudo apt-get remove modemmanager
sudo apt-get install python2.7 python3-pip screen qpdf
sudo -H pip3 install --upgrade pip setuptools wheel

Clone and install

git clone --recursive [email protected]:pylover/esp8266-env.git 
cd esp8266-env
scripts/setup.sh

Hello World!

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.

SDK Examples

cd esp8266-env
source activate.sh

cd sdk/examples/simple_pair
./gen_misc.sh

esp8266-env's People

Contributors

pylover avatar matthewtherat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.