Ви не увійшли.
Если не использовать BLYNK то все работает, помогите разобраться в чем проблема.
Питание ни с пина 3,3 ни с Vin не решает проблемі
#define BLYNK_TEMPLATE_ID "****"
#define BLYNK_DEVICE_NAME "********"
#define BLYNK_FIRMWARE_VERSION "0.1.0"
#define BLYNK_PRINT Serial
//#define BLYNK_DEBUG
#define APP_DEBUG
// Uncomment your board, or configure a custom board in Settings.h
//#define USE_SPARKFUN_BLYNK_BOARD
//#define USE_NODE_MCU_BOARD
//#define USE_WITTY_CLOUD_BOARD
//#define USE_WEMOS_D1_MINI
#include "BlynkEdgent.h"
#include <OneWire.h>
#include <DallasTemperature.h>
#define ONE_WIRE_BUS 4
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
void setup()
{
Serial.begin(115200);
delay(100);
BlynkEdgent.begin();
sensors.begin();
}
void getTemp () {
sensors.requestTemperatures(); // Send the command to get temperatures
float tempC = sensors.getTempCByIndex(0);
if(tempC != DEVICE_DISCONNECTED_C)
{
Serial.print("Temperature for the device 1 (index 0) is: ");
Serial.println(tempC);
}
else
{
Serial.println("Error: Could not read temperature data");
}
delay(1000);
}
void loop() {
BlynkEdgent.run();
getTemp ();
}
>[388]
___ __ __
/ _ )/ /_ _____ / /__
/ _ / / // / _ / '_/
/____/_/_, /_//_/_/_
/___/ v1.0.1 on ESP8266[389] --------------------------
[392] Product: WFMF
[394] Firmware: 0.1.0 (build Feb 22 2022 19:55:32)
[399] Token: ...HbZp
[401] Device: ESP8266 @ 80MHz
[404] MAC: 40:91:51:4F:AB:34
[407] Flash: 4096K
[409] ESP core: 3.0.1
[411] ESP SDK: 2.2.2-dev(38a443e)
[414] Boot Ver: 6
[416] Boot Mode:1
[417] FW info: 471312/1622016, MD5:9d3ca32e9f2c56cf24abdc44a76c2a05
[626] Free mem: 31128
[626] --------------------------
[626] INIT => CONNECTING_NET
[663] Connecting to WiFi: Pechenyushka
[5050] Using Dynamic IP: 192.168.0.107
[5050] CONNECTING_NET => CONNECTING_CLOUD
Temperature for the device 1 (index 0) is: 20.06
[6668] Current time: Tue Feb 22 17:57:01 2022
[6668] Connecting to blynk.cloud:443
[7881] Ready (ping: 11ms).
[8007] CONNECTING_CLOUD => RUNNING
Error: Could not read temperature data
Error: Could not read temperature data
Error: Could not read temperature data
Error: Could not read temperature dataError: Could not read temperature data
Temperature for the device 1 (index 0) is: 20.19
Error: Could not read temperature data
Error: Could not read temperature data
Error: Could not read temperature data
Error: Could not read temperature data