Disconnessioni frequenze mkr1400 gsm

Salve ,mi scuso ma non parlo Inglese
Continuo ad avere sempre lo stesso problema con
Arduino mkr 1400 gsm, dopo un paio di ore si disconnette
E non si riesce più a connettersi piu al server.
Il mio dubbio è che ho realizzato un"app
Con molti sensori , dovrei fare un un’abbonamento supplementare al server blynk?

I think you need to post your code if you want us to help.

Pete.

le posso inviare il codice per email?

Just post the code here, and put triple backticks at the beginning and and end, so that it displays correctly.
Triple backticks look like this:
```

Pete.

scusami ma non riesco a postare il codice correttamente.

#include <SimpleTimer.h>
#define BLYNK_PRINT Serial
#include <SPI.h>
#include <MKRGSM.h>
#include <BlynkSimpleMKRGSM.h>
GSMClient client;
GPRS gprs;
GSM gsmAccess;
char auth[] = "4641632574215451";
char pin[]  = "";
char apn[]  = "internet.wind";
char user[] = "";
char pass[] = "";
SimpleTimer timer;

void verifica() {

  if (  Blynk.connected() == true ) {
    Serial.print("connesso?  si "); Serial.print("0");

  } else {
    Serial.print(" connesso? no "); Serial.print("1");
    Blynk.connect();
  }
}
void setup()
{
  // Debug console
  Serial.begin(9600);
  Blynk.begin(auth, gsmAccess, gprs, client, pin, apn, user, pass);
  timer.setInterval(60000L, verifica);
}


void loop()
{
  timer.run();
  Blynk.run();
  delay(1000);
}

Why?

Pete.

l’avevo letto negli esempi

In that case, you are looking in the wrong places for your examples. Read this:

Pete.

pensi che il problema sia il delay?

allora devo togliere tutti i delay void.loop
ora riesco a postare tutto il codice intero ma e troppo lungo lo posto?

If you have disconnections after a while and delays in your code then the two are probably related. You won’t know until you remove the delays.

Remove the delays and re-test the code. If it’s still a problem then post your updated code. If necessary use a service like https://pastebin.com/

Pete.

Ok grazie mille facccio questa prova e ti aggiorno.

Continua a disconnettersi ogni 4 ore posto il codice grazie .
https://pastebin.com/cDQ2BESU

Your pastebin code is private:

Private Paste ID: cDQ2BESU

This is a private paste. If you created this paste, please login to view it.

Pete.

La prima volta che lo usavo scusami ancora vedi ora.
https://pastebin.com/cDQ2BESU

I’m totally confused!
The code you posted in post #8 is totally different to the code in your pastebin link. What is the connection between the two pieces of code?

If you’ve read the “keep your void loop clean” document then you already know what is wrong with the pastebin code.

Pete.

avevo postato il primo codice perchè non riuscivo a postare il codice completo-

credevo di averli tolti tutti i delay () del void loop ma come mi hai fatto notare cerano ancora
ho appena aggiustato il codice ora lo carico e aspetto tutta la notte per vedere come va.

As I said, I can see no relationship between the two pieces of code.
It’s not just the delays in the void loo, it’s everything else. Your void loop should be:

timer.run();
Blynk.run();

If you have anything else in there then you’re doing something wrong.

Pete.

Buongiorno ,Pete
con la modifica del void.loop() senza delay() ma con tutto il resto, continua la disconnessione
sempre nello stesso tempo 4 ore circa,
lo modificato e caricato su arduino https://pastebin.com/jV17kUxF

Buongiorno,ho fatto ancora delle modifiche al codice ma continua a disconnettersi dal server
di Blynk lo devo solo riavviare per farlo connettere,nuovo codice.
https://pastebin.com/1cQ6Z3UW