#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <OneWire.h>
#include <DallasTemperature.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "auth";
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "ssid";
char pass[] = "pass";
// Data wire is plugged into port D2 on the ESP8266
#define ONE_WIRE_BUS D2
// Setup a oneWire instance to communicate with any OneWire devices
OneWire oneWire(ONE_WIRE_BUS);
// Pass our oneWire reference to Dallas Temperature.
DallasTemperature sensors(&oneWire);
float tempSensor1;
void setup()
{
// Debug console
Serial.begin(115200);
pinMode(LED_BUILTIN, OUTPUT);
Blynk.begin(auth, ssid, pass);
}
BLYNK_WRITE(V0)
{
String textIn = param.asStr();
Serial.print(textIn + "\n");
}
void loop()
{
Blynk.run();
// logTime();
delay(500);
}