for this moment I have success uploaded the data into blynk and show in super chart form as shown below
but when I tried to download the data in CSV form I get an empty file.
I am new here did I have to add something in my code or the setting in the web console
the coding that i use are show in below, i using nodemcu for uploading the data
#define BLYNK_TEMPLATE_ID "TMPL0mDJu8RE" //Template id
#define BLYNK_DEVICE_NAME "line follower data" //device name
#define BLYNK_PRINT Serial
//wifi connection
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth[] = --; // Blynk Token
char ssid[] =--;
char pass[] =--;
BlynkTimer timer;
//serial connection
#include<SoftwareSerial.h>
SoftwareSerial NodeMCU(12,13);//TX,RX D6,D7 GPIO 12,13
String DataIn;
String dt[10];
char RData;
void setup() {
Serial.begin(19200);
NodeMCU.begin(19200);
Blynk.begin(auth,ssid,pass);
timer.setInterval(1000L, catchData);
}
void catchData(){
Blynk.virtualWrite(V3,dt[0].toInt());
Blynk.virtualWrite(V1,dt[1].toInt());
Blynk.virtualWrite(V2,dt[2].toInt());
}
void loop() {
while(NodeMCU.available() > 0 )
{
//break the data string into 3 seperate data
RData = NodeMCU.read();
DataIn += RData;
//data received
if(RData =='\n')
{
int j = 0;
dt[j]="";
for(int i=0; i<DataIn.length();i++)
{
if((DataIn[i]==','))
{
j++;
dt[j]="";
}
else {
dt[j]=dt[j]+DataIn[i];
}
}
}
Blynk.run();
timer.run();
}
}
What type of Blynk subscription do you have?
What do your advanced settings for your datastreams look like?
Pete.
1 Like
@PeteKnight thanks a lot i thought i already set the advance setting up but when i double-check the problem is solved maybe the last time when i edit the template i accidentally turn off the advance setting