Hi,
No, added as you said but still nothing in the APP. The CSVs (for pin 4, 5 and 10) still gets filled with data and according to the logs, my IOS device should be connected.
Let me know if there is further debug or logs that could be checked to see whats going on,
pin10 (sending value 10 every 10 sec):
10,1449813693929
10,1449813703967
10,1449813714204
10,1449813723931
10,1449813733965
10,1449813744302
10,1449813753936
10,1449813763965
10,1449813774693
10,1449813783917
10,1449813793968
10,1449813804798
10,1449813813937
10,1449813823982
10,1449813834393
Code:
/**************************************************************
* Blynk is a platform with iOS and Android apps to control
* Arduino, Raspberry Pi and the likes over the Internet.
* You can easily build graphic interfaces for all your
* projects by simply dragging and dropping widgets.
*
* Downloads, docs, tutorials: http://www.blynk.cc
* Blynk community: http://community.blynk.cc
* Social networks: http://www.fb.com/blynkapp
* http://twitter.com/blynk_app
*
* Blynk library is licensed under MIT license
*
*
**************************************************************
*
*
*
* WARNING :
* For this example you'll need SimpleTimer library:
* https://github.com/jfturcot/SimpleTimer
* Visit this page for more information:
* http://playground.arduino.cc/Code/SimpleTimer
*
* DHT11 ----pin 12
*
*
**************************************************************/
#define BLYNK_DEBUG
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <SimpleTimer.h>
#include <DHT.h>
//dht11 DHT;
#define DHTPIN 2 // what pin we're connected to
// Uncomment whatever type you're using!
#define DHTTYPE DHT11 // DHT 11
//define DHTTYPE DHT22 // DHT 22 (AM2302)
//#define DHTTYPE DHT21 // DHT 21 (AM2301)
DHT dht(DHTPIN, DHTTYPE, 15);
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "ccc1a602eb7f4dabb853758ad3b36280"; //insert here your token generated by Blynk
SimpleTimer timer;
void setup()
{
Serial.begin(9600); // See the connection status in Serial Monitor
dht.begin();
delay(10);
Blynk.begin(auth, "ssid", "pass", IPAddress(192,168,000,005)); //insert here your SSID and password
// Setup a function to be called every second
timer.setInterval(10000L, sendUptime);
}
// This function sends Arduino's up time every second to Virtual Pin (5).
// In the app, Widget's reading frequency should be set to PUSH. This means
// that you define how often to send data to Blynk App.
void sendUptime()
{
//Read the Temp and Humidity from DHT
float h = dht.readHumidity();
float t = dht.readTemperature();
Blynk.virtualWrite(4, h);
Blynk.virtualWrite(5, t);
Serial.print("Humidity: ");
Serial.print(h);
Serial.print(" %\t");
Serial.print("Temperature: ");
Serial.print(t);
Serial.print(" *C ");
}
void loop()
{
Blynk.run(); // Initiates Blynk
timer.run(); // Initiates SimpleTimer
// int chk;
// chk = dht.read(); // READ DATA
}