Original by chriscook8 from esp8266.com I just modified to use ESP8266WebServer library for easy to handle the http request.
This is sample code not yet complete.
- when Wifi connected need to close the softAP.
//Measuring AC mains energy use the non-invasive current transformer method | |
//Arduino can receive serial value to open and close relay and set max AC to | |
// permit flows through relay and sensor (1-30A) | |
//Using acs712 (30A), its a invasive sensor (non-inductive) | |
//Based on OpenEnergyMonitor.org, Trystan Lea project | |
//Sketch calculates - Irms and Apparent power based on static voltage. SetV | |
// needs to be set below. | |
//Green IT project licenced under GNU General Public Licence | |
//Author: Mateo Durante |
print "hola mundo" |
#!/usr/bin/python | |
import pattern.es | |
dict = {} | |
lista = [] | |
parrafo = "Yo buscaba en el buscador buscando busco" | |
parrafo_split = parrafo.split(" ") |
String readString; | |
String secret = "led"; | |
String on = "on"; | |
String off = "off"; | |
int led = 13; | |
void setup() { | |
Serial.begin(9600); | |
Serial.println("Insert the password to blink the led!!"); |
def int_to_bit(n): | |
aux = "{0:b}".format(n) | |
print(aux) |
int pinLDR = 0; | |
void setup() { | |
// put your setup code here, to run once: | |
Serial.begin(9600); | |
} | |
void loop() { | |
// put your main code here, to run repeatedly: | |
delay(200); |
#include "picoapi.h" | |
static int uart = 1; | |
int main(void) | |
{ | |
/*Configuración Inicial*/ | |
setup(); | |
} |
from ubidots import ApiClient | |
from gpiozero import LightSensor | |
import time | |
import datetime | |
import Adafruit_DHT | |
import smbus | |
import os | |
loop = 0 | |
startuptime = datetime.datetime.now() |
from ubidots import ApiClient | |
from gpiozero import LightSensor | |
import time | |
import datetime | |
import Adafruit_DHT | |
ldr = LightSensor(4) | |
while True: |