Giter Site home page Giter Site logo

iot-server's Introduction

IOT LED Example for WEMOS ESP8266 ESP-WROOM-32

This repository is from one of the laboratory sessions for Introduction to Computers and Informatics of TTU CyberSecurity Engineering

Details: https://wiki.itcollege.ee/index.php/Category:I600_Introduction_to_Computers_and_Informatics#Assignment:_Set_up_basic_IoT_scenario

Requirements:

Python 3.x

Running: First clone the repository to your computer via Git. Following commands are for Linux, Mac and Windows.

git clone https://github.com/kenny007/IoT-Server.git
cd IoT-Server

On your machine

Run main.py like

python main.py then browse to http://localhost:8080/

On WEMOS

Run following command:

sudo ampy -p /dev/ttyUSB0 put main.py 

Troubleshooting

Resetting Device

If at any point your device stops resposnding, you may need to reset and reflash it.

The instruction below applies for different chipsets check what is written on chipset to know which to use:

esp32:

wget http://micropython.org/resources/firmware/esp32-20171017-v1.9.2-279-g090b6b80.bin
sudo esptool.py -p /dev/ttyUSB0 -b 460800 erase_flash
sudo esptool.py -p /dev/ttyUSB0 -b 460800 write_flash --flash_mode dio 0x1000 esp32-*.bin

esp8266:

wget http://micropython.org/resources/firmware/esp8266-20170612-v1.9.1.bin
sudo esptool.py -p /dev/ttyUSB0 -b 460800 erase_flash
sudo esptool.py -p /dev/ttyUSB0 -b 460800 write_flash 0 esp8266-*.bin

iot-server's People

Contributors

kenny007 avatar msalum avatar

Watchers

James Cloos avatar  avatar

Forkers

msalum

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.