One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
import json | |
import os | |
import tornado.httpserver | |
import tornado.web | |
import tornado.websocket | |
import tornado.ioloop | |
import tornado.gen | |
import tornadoredis | |
--http://www.instructables.com/id/ESP8266-based-web-configurable-wifi-general-purpos-1/ | |
--Code by HoracioBouzas, formatted for use with ESPlorer by jimoconnell | |
print("WIFI control"); | |
-- put module in AP mode | |
wifi.setmode(wifi.SOFTAP); | |
print("ESP8266 mode is: " .. wifi.getmode()); | |
cfg={}; | |
-- Set the SSID of the module in AP mode and access password | |
cfg.ssid="ESP8266"; | |
cfg.pwd="passwordpassword"; |