Maybe i misunderstood the way of how to use Superchart and csv export, but in my opinion something is not working as it should.
Using this modified “Push Data” example:
#define BLYNK_PRINT Serial
#include <SoftwareSerial.h>
SoftwareSerial SwSerial(10, 11); // RX, TX
#include <BlynkSimpleSerialBLE.h>
#include <SoftwareSerial.h>
char auth[] = "YourAuthToken";
SoftwareSerial SerialBLE(10, 11); // RX, TX
BlynkTimer timer;
void myTimerEvent()
{
Blynk.virtualWrite(V9, random(0, 255));
}
void setup()
{
// Debug console
Serial.begin(9600);
SerialBLE.begin(9600);
Blynk.config(SerialBLE, auth);
Serial.println("Waiting for connections...");
// Setup a function to be called every second
timer.setInterval(1000L, myTimerEvent);
}
void loop()
{
Blynk.run();
timer.run(); // Initiates BlynkTimer
}
I created a project with a “Superchart” and “Email” widget and the the code is running on an Arduino pro mini with an hc05 BT module connected to my Phone (with internet connection available).
This happens:
data is visible on live Chart
other timbases are not working (no data yet forever)
csv export to email is not resulting in an actual email
tryed different email addresses and checked spamfilter but nothing
I don’t use Bluetooth but as far as I’m concerned, SuperChart retrieves data from the Cloud, if you’re not connected to it. It doesn’t record neither send report.
Thus you’ll only see Live data, ie. When phone is connected to the hardware.
not sure if it is related, but I can’t export CSV too.
It used to work some updates ago.
In the log file (debug on) I see
13:59:11.498 ERROR- Error making csv file for data export. Reason Could not convert socket to TLS
Local server, app & server up to date
No BT involved.
Thanks, we’ll check on our side this issue. Blynk app should send Bluetooth data to the cloud, but it could do that only while it is active and there is a connection to Bluetooth device.
I found another issue which could be related to the same problem. (if not, i could start a new thread)
Using the very same setup, i tried using the functions:
BLYNK_CONNECTED()
BLYNK_APP_CONNECTED()
BLYNK_APP_DISCONNECTED()
Only BLYNK_CONNECTED() is called when App is running an BT connection established. Both BLYNK_APP* functions are never called.
#define BLYNK_PRINT Serial
#include <SoftwareSerial.h>
SoftwareSerial SwSerial(10, 11); // RX, TX
#include <BlynkSimpleSerialBLE.h>
#include <SoftwareSerial.h>
char auth[] = "d1e6304d977647e7a0348905b1aff9a8";
SoftwareSerial SerialBLE(10, 11); // RX, TX
BlynkTimer timer;
int i = 0;
int ii = 0;
int iii = 0;
BLYNK_CONNECTED() {
Serial.println("---------------------Blynk is connected-------------");
Blynk.syncAll();
Blynk.virtualWrite(V4, i);
i++;
}
BLYNK_APP_CONNECTED() {
Serial.println("###################Blynk-APP is connected ##################");
digitalWrite(LED_BUILTIN, LOW);
Blynk.virtualWrite(V11, ii);
ii++;
}
BLYNK_APP_DISCONNECTED() {
Serial.println("!!!!!!!!!!!!!!!!!!!!!! Blynk-APP is disconnected!!!!!!!!!!!!!!!!!!!!!!!");
digitalWrite(LED_BUILTIN, LOW);
Blynk.virtualWrite(V14, iii);
iii++;
}
void myTimerEvent()
{
// You can send any value at any time.
// Please don't send more that 10 values per second.
Blynk.virtualWrite(V9, random(0, 255));
}
void setup()
{
pinMode(LED_BUILTIN, OUTPUT);
// Debug console
Serial.begin(115200);
SerialBLE.begin(9600);
Blynk.config(SerialBLE, auth);
Serial.println("Waiting for connections...");
// Setup a function to be called every second
timer.setInterval(1000L, myTimerEvent);
}
void loop()
{
Blynk.run();
timer.run(); // Initiates BlynkTimer
}