i am sending dht11 sensor data to ubidots , this is my code
#include <UbidotsESP8266.h>
#include <SoftwareSerial.h>
#include <dht.h>
#define DHT11_PIN 5
dht DHT;
#define SSID "shubham"
#define PASS "qwertyuiop"
#define TOKEN "i0qJjjaZAZmTQ68hWKH7TYzWaLkk1U"
#define ID "573c03747625424a37095aef"
Ubidots client(TOKEN);
void setup() {
Serial.begin(115200);
client.wifiConnection(SSID,PASS);
}
void loop() {
int chk = DHT.read11(DHT11_PIN);
int value= DHT.humidity;
client.add(ID,value);
client.sendAll();
}
i am getting error likethis on my serial monitor :-
Response of ESP8266:
clearin data
Response of ESP8266:
Reset of ESP8266
Response of ESP8266:
Error at GMR
Response of ESP8266:
Response of ESP8266:
Response of ESP8266:
Response of ESP8266:
Response of ESP8266:
Response of ESP8266:
Error at CIPMODE
Response of ESP8266:
can anyone please help me what to do?
hello!
What library are you using? and this code is correct? because you have your includes empty
Are you correct your issue on Dht11?
Hey @faizmca17 !
How are you?
could you try something?
Try to disconnect VCC of ESP and connect it againt, when the Arduino is reseting!
Best regards,
Metavix
From my experience, I think it is because of baud rate mismatch. your esp module still using 115200 while UbidotsESP8266.h is using baud rate 9600.
1 Like
lodurr
August 23, 2016, 7:05pm
8
I Have the same problem using the same code that you give us to test it , (obviously I changed the token ssid, and password) https://ubidots.com/docs/devices/ESP8266-arduino.html#send-one-value-to-ubidots . and send me the problem
Response of ESP8266:
clearin data
Response of ESP8266:
Reset of ESP8266
Response of ESP8266:
Error at GMR
Response of ESP8266:
Error at CIPMODE
Metavix
September 2, 2016, 1:56pm
9
Change pin rx to tx and do a test again please
Metavix
September 2, 2016, 2:00pm
10
@nugrahadi you are right some ESP8266 has different Baud rate, i will implement a different client declaration in the library to fix that.
Metavix
September 6, 2016, 7:37pm
12
Yeah the reason is the baud rate that was implemented in the library i will a change that as soon as posible.
Best regards,
Metavix
Even I am getting the same error.I am using ESP8266 wifi shield and it works with the baudrate 9600 but still I could solve that error at GMR.Could anyone please help me out?
Hello @bhargavi ,
Sorry for the time in hold! We’re working on our libraries, also making some guides to help you to solve this problem. I hope finish it as soon is possible!
Best Regards,
Maria C.