Hello, I couldnt find information about this issue anywhere, I have checked even the blynk documentation, but basically I’m using a esp32 with an emved Sim7670g, this module is getting online and I have tested the sensors and are updating but the problem is the virtual pins have a lot of delay on the updating, for example I have one I2C sensor that report temp and humidity, it suppost to update it every 30 secs but I got that is updating every 1.5 min or even 2 min at the beast, then I got a PSI tranducer so this works with analog read, I have notice one thing, when I push the toggle widget on and off constantly, all the virtual pins(temp, hum and psi) start to update perfectly so If I would like to see the live data I could push any button on my console and I would get the real number, but off course thats is not the proper way to fix this, I dont care about the temp and hum cause a delay of 1 or 1.5 min is not that bad but I really want to see the pressure as faster as I could get.
I have use arduino mkr1400 and I havent experience that delay even when that module is 3g and the one Im using is 4g…
if somebody has information about it I would apprecciate it
#define BLYNK_TEMPLATE_ID "TMPxxxxxx"
#define BLYNK_TEMPLATE_NAME "Device"
#define BLYNK_AUTH_TOKEN "YourAuthToken"
#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
// Default heartbeat interval for GSM is 60
// If you want override this value, uncomment and set this option:
// #define BLYNK_HEARTBEAT 30
// Select your modem:
#define TINY_GSM_MODEM_SIM800
// #define TINY_GSM_MODEM_SIM808
// #define TINY_GSM_MODEM_SIM868
// #define TINY_GSM_MODEM_SIM900
// #define TINY_GSM_MODEM_SIM7000
#define TINY_GSM_MODEM_SIM7000SSL
// #define TINY_GSM_MODEM_SIM7080
// #define TINY_GSM_MODEM_SIM5360
// #define TINY_GSM_MODEM_SIM7600
// #define TINY_GSM_MODEM_A7672X
// #define TINY_GSM_MODEM_UBLOX
// #define TINY_GSM_MODEM_SARAR4
// #define TINY_GSM_MODEM_SARAR5
// #define TINY_GSM_MODEM_M95
// #define TINY_GSM_MODEM_BG95
// #define TINY_GSM_MODEM_BG96
// #define TINY_GSM_MODEM_A6
// #define TINY_GSM_MODEM_A7
// #define TINY_GSM_MODEM_M590
// #define TINY_GSM_MODEM_MC60
// #define TINY_GSM_MODEM_MC60E
// #define TINY_GSM_MODEM_ESP8266
// #define TINY_GSM_MODEM_ESP32
// #define TINY_GSM_MODEM_XBEE
// #define TINY_GSM_MODEM_SEQUANS_MONARCH
#include <TinyGsmClient.h>
#include <BlynkSimpleTinyGSM.h>
// Set serial for debug console (to the Serial Monitor, default speed 115200)
#define SerialMon Serial
// Hardware Serial on Mega, Leonardo, Micro
#ifndef __AVR_ATmega328P__
#define SerialAT Serial1
// or Software Serial on Uno, Nano
#else
#include <SoftwareSerial.h>
SoftwareSerial SerialAT(2, 3); // RX, TX
#endif
// Your GPRS credentials, if any
const char apn[] = "YourAPN";
const char user[] = "";
const char pass[] = "";
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
const char auth[] = "YourAuthToken";
TinyGsm modem(SerialAT);
BlynkTimer timer;
BLYNK_WRITE(V0)
{
if (param.asInt() == 1) {
Serial.println("OFF");
Blynk.logEvent("LED STATE", "OFF");
} else {
Serial.println("ON");
Blynk.logEvent("LED STATE", "ON");
}
}
void sendTemp()
{
//Send randomly generated fake data
float h = random(60, 100);
float t = random(60, 100);
Blynk.virtualWrite(V1, h);
Blynk.virtualWrite(V2, t);
}
void sendPSI()
{
psi = analogRead(6);
Blynk.virtualWrite(V2, psi);
}
void setup() {
// Set console baud rate
SerialMon.begin(115200);
delay(10);
// Set GSM module baud rate
SerialAT.begin(115200);
delay(6000);
// Restart takes quite some time
// To skip it, call init() instead of restart()
SerialMon.println("Initializing modem...");
modem.restart();
String modemInfo = modem.getModemInfo();
SerialMon.print("Modem Info: ");
SerialMon.println(modemInfo);
// Unlock your SIM card with a PIN
// modem.simUnlock("1234");
Blynk.begin(auth, modem, apn, user, pass);
timer.setInterval(30000L, senTemp);
timer.setInterval(15000L, senPSI);
}
void loop() {
Blynk.run();
timer.run();
}