koltegirish / esp8266_mesh_demo Goto Github PK
View Code? Open in Web Editor NEWA demo that should be run with ESP8266 Non-OS SDK
A demo that should be run with ESP8266 Non-OS SDK
------------------------------------------------------------------------------------------------------ Description: 1. The mesh_demo is used to connect multiple IOT nodes to local server. 2. Every node sends one packet to server per 5 seconds after it joins mesh network. 3. When local server receives one packet from node ,it just echoes the packet back to the node. 4. When node receives packet from server, it prints the content of the packet. 5. Mesh_demo provides recommendation for general protocol parser setup. ------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------ Please follow below steps to run mesh_demo: 1. Set up mesh_demo server according to demo_server.py. 2. After mesh_demo server setup, please update server_ip in user_config.h according to your demo server. 3. Build run image using gen_misc.sh. 4. Download run image to device, then start mesh demo. ------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------ How to set up local server: 1. Prepare one computer and make sure python script can run on the computer. 2. Run demo_server.py on the computer ------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------ How to build run image: 1. Export SDK_BASE=/directory_of_your_mesh_demo_project in gen_misc.sh. 2. Obtain IP address of local server. 3. Change server_ip in user_config.h according to the IP address of local server. 4. Run ./gen_misc.h boot version: boot_v1.2+ bin generate: user1.bin spi speed: 40MHz spi mode: QIO spi size and map: 1024 (512KB + 512KB) ------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------ Download image to device: 1. Get download tools from the official website of Esressif at http://espressif.com. 2. Download the following four files in ./bin/ to device: ------------------------------------------------------------------------------------------------------ file download_address --------------------------------------------------------------- esp_init_data_default.bin 0xfc000 blank.bin 0xfe000 boot_v1.4(b1).bin 0x00000 upgrade/user1.1024.new1.bin 0x01000 --------------------------------------------------------------- NOTE: Before starting to download, please make sure you have selected the right flash size (8 Mbit).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.