Este: https://www.olimex.com/Products/IoT/ESP8266-EVB/open-source-hardware
y estoy probando a usar la libreria te temboo, que segun este post la consiguen utilizar .
http://forum.arduino.cc/index.php?topic=337186.0
Yo lo estoy probando y con la api de gmail para enviar un correo. Me lo envia y se reinicia el modulo dando el siguiente error por serial.
WiFi:OK
Setup complete.
Humidity: 64.90 % Temperature: 19.30 *C Running SendEmail - Nº 0
Exception (3):
epc1=0x40203112 epc2=0x00000000 epc3=0x00000000 excvaddr=0x4022e948 depc=0x00000000
ctx: cont
sp: 3ffefb10 end: 3ffefd70 offset: 01a0
>>>stack>>>
3ffefcb0: 3ffe8948 00000000 3ffefdbc 40204dda
3ffefcc0: 4281cccd 419a6666 3ffefdbc 4020223f
3ffefcd0: 3ffe86c0 00000000 000003e8 48524a41
3ffefce0: 3fff0e48 00000000 00000000 3ffe8548
3ffefcf0: 3ffe8560 3ffe8554 3ffe8640 3ffeebec
3ffefd00: 0a303032 0000001e 4022e949 00000001
3ffefd10: 3fff1148 0000001f 00000010 3fff0ef8
3ffefd20: 0000002f 00000024 3fff0eb8 0000000f
3ffefd30: 0000000d 3fff0e68 0000001f 00000016
3ffefd40: 3fff0e18 0000001f 0000001c 4020216a
3ffefd50: 3fffdc20 00000000 3ffeed34 402044dd
3ffefd60: 00000000 00000000 3ffeed50 40100114
<<<stack<<<
ets Jan 8 2013,rst cause:1, boot mode:(3,1)
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld
y este es mi codigo: he probado tambien sin la libreia DHT y hace lo mismo
#include <DHT.h>
#include <SPI.h>
#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <Temboo.h>
#include "TembooAccount.h" // Contains Temboo account information
#define DHTPIN 4 // what digital pin we're connected to
#define DHTTYPE DHT22 // DHT 22 (AM2302), AM2321
unsigned long momentoAnterior = 0;
int intervalo = 60000;
int contador = 0;
WiFiClient client;
DHT dht(DHTPIN, DHTTYPE);
void setup() {
Serial.begin(115200);
Serial.println("DHT22 and Gmail test!");
dht.begin();
// For debugging, wait until the serial console is connected
delay(4000);
while(!Serial);
int wifiStatus = WL_IDLE_STATUS;
// Try to connect to the local WiFi network
while(wifiStatus != WL_CONNECTED) {
Serial.print("WiFi:");
wifiStatus = WiFi.begin(WIFI_SSID, WPA_PASSWORD);
if (wifiStatus == WL_CONNECTED) {
Serial.println("OK");
} else {
Serial.println("FAIL");
}
delay(5000);
}
Serial.println("Setup complete.\n");
}
void loop() {
unsigned long momentoActual = millis();
if(momentoActual - momentoAnterior > intervalo){
// Sensor readings may also be up to 2 seconds 'old' (its a very slow sensor)
float h = dht.readHumidity();
// Read temperature as Celsius (the default)
float t = dht.readTemperature();
// Check if any reads failed and exit early (to try again).
if (isnan(h) || isnan(t)) {
Serial.println("Failed to read from DHT sensor!");
return;
}
Serial.print("Humidity: ");
Serial.print(h);
Serial.print(" %\t");
Serial.print("Temperature: ");
Serial.print(t);
Serial.print(" *C ");
Serial.println("Running SendEmail - Nº " + String(contador++));
TembooChoreo SendEmailChoreo(client);
// Invoke the Temboo client
SendEmailChoreo.begin();
// Set Temboo account credentials
SendEmailChoreo.setAccountName(TEMBOO_ACCOUNT);
SendEmailChoreo.setAppKeyName(TEMBOO_APP_KEY_NAME);
SendEmailChoreo.setAppKey(TEMBOO_APP_KEY);
// Set Choreo inputs
String UsernameValue = "carlos.appdomotics@gmail.com";
SendEmailChoreo.addInput("Username", UsernameValue);
String ToAddressValue = "carlos@appdomotics.com";
SendEmailChoreo.addInput("ToAddress", ToAddressValue);
String SubjectValue = "correo Temboo";
SendEmailChoreo.addInput("Subject", SubjectValue);
String MessageBodyValue = "enviado desde Temboo: Temperatura: ";
//MessageBodyValue += String(t);
//MessageBodyValue += String(" ºC Humedad: ");
//MessageBodyValue += String(h);
//MessageBodyValue += String("%.");
SendEmailChoreo.addInput("MessageBody", MessageBodyValue);
String PasswordValue = "xxxxxxxxxxxxxxxx";
SendEmailChoreo.addInput("Password", PasswordValue);
// Identify the Choreo to run
SendEmailChoreo.setChoreo("/Library/Google/Gmail/SendEmail");
// Run the Choreo; when results are available, print them to serial
SendEmailChoreo.run();
while(SendEmailChoreo.available()) {
char c = SendEmailChoreo.read();
Serial.print(c);
}
SendEmailChoreo.close();
}
}
Ha alguien le ha ocurrido? Gracias