MKR GSM 1400 - Losing Connection to Thinger.io

Dear ALL
If I run the simple demo script from the thinger Homepage for GSM1400, Im able to connect the platform, but after a while or after 1-2 min I loose the connection again (see debuging serial monitor below).

It seems that system wanted to built up a connection again, than the serial monitoring is hanging

Using secure TLS/SSL connection: yes . It seems something is quite instable

Markus

[SIMCARD] GSM Network: 1
12:04:10.965 -> [___GPRS] Connecting to APN: telekom
12:04:10.965 -> [___GPRS] APN username: your_gprs_login
12:04:10.965 -> [___GPRS] APN password: your_gprs_password
12:04:13.113 -> [___GPRS] APN Connection suceed!
12:04:13.113 -> [NETWORK] Got IP Address: 10.51.186.132
12:04:13.113 -> [NETWORK] Connected!
12:04:13.113 -> [_SOCKET] Connecting to iot.thinger.io:25202
12:04:13.113 -> [_SOCKET] Using secure TLS/SSL connection: yes
12:04:19.949 -> [_SOCKET] Connected!
12:04:19.949 -> [THINGER] Authenticating. User: Markus1 Device: MKR1400
12:04:19.949 -> [THINGER] Writing bytes: 40 [OK]
12:04:20.333 -> [THINGER] Authenticated
12:04:20.612 -> [THINGER] Available bytes: 29
12:04:20.649 -> [THINGER] Writing bytes: 7 [OK]
12:04:20.686 -> [THINGER] Available bytes: 20
12:04:20.720 -> [THINGER] Writing bytes: 8 [OK]
12:04:20.753 -> [THINGER] Available bytes: 18
12:04:20.791 -> [THINGER] Writing bytes: 8 [OK]
12:05:06.121 -> [THINGER] Writing bytes: 2 [OK]
12:05:06.121 -> [THINGER] Available bytes: 2
12:05:29.942 -> [THINGER] Available bytes: 14
12:05:29.976 -> [THINGER] Writing bytes: 61 [OK]
12:05:31.131 -> [THINGER] Available bytes: 18
12:05:31.131 -> [THINGER] Writing bytes: 14 [OK]
12:05:31.589 -> [THINGER] Available bytes: 21
12:05:31.622 -> [THINGER] Writing bytes: 38 [OK]
12:05:31.656 -> [THINGER] Available bytes: 21
12:05:31.691 -> [THINGER] Writing bytes: 18 [OK]
12:05:35.460 -> [THINGER] Available bytes: 15
12:05:35.495 -> [THINGER] Writing bytes: 7 [OK]
12:05:37.993 -> [THINGER] Available bytes: 15
12:05:37.993 -> [THINGER] Writing bytes: 7 [OK]
12:05:39.110 -> [THINGER] Available bytes: 16
12:05:39.110 -> [THINGER] Writing bytes: 8 [OK]
12:05:40.442 -> [THINGER] Available bytes: 16
12:05:40.475 -> [THINGER] Writing bytes: 8 [OK]
12:06:00.995 -> [_SOCKET] Connecting to iot.thinger.io:25202
12:06:00.995 -> [_SOCKET] Using secure TLS/SSL connection: yes

Hello @Markus_Schmeckenbech,

This is a problem appears when the MKR tries to make a reconnection and it fails. I understand that Arduino’s developers have been working on it, so we’ll see if we can come up with a better solution.

Does the problem appear after upload a new sketch? or was exactly the same compilation and library versions? have you tried updating mkr libraries? or using an old one?

By the moment, the only way to solve it is detecting the disconnection and making a reset but I don’t know if this works well for your case, if you need to hold real time variables or similar. If you are interested on this, answer me and I will send you the source code to make this.