MKR 1400 obtain an IP and doesn't connect to a device

Hi,
I’m traying to us an MKR1400 to collect data, and it looks that the device successfully obtain an IP address, but it is not able to connect to the device/cloud, view attached the error message I’m receiving and advise.

The code:

#define THINGER_SERVER “my server”
#define THINGER_SERIAL_DEBUG

#include <ThingerMKRGSM.h>
#include “arduino_secrets.h”

ThingerMKRGSM thing(USERNAME, DEVICE_ID, DEVICE_CREDENTIAL);

void setup() {
// open serial for debugging
Serial.begin(115200);

// optional set pin number
thing.set_pin(PIN_NUMBER);

// set APN
thing.set_apn(GPRS_APN, GPRS_LOGIN, GPRS_PASSWORD);

// set builtin led to output
pinMode(LED_BUILTIN, OUTPUT);

// pin control example over internet (i.e. turning on/off a light, a relay, etc)
thing[“led”] << digitalPin(LED_BUILTIN);

// resource output example (i.e. reading a sensor value, a variable, etc)
thing[“millis”] >> outputValue(millis());

// more details at DEVICES | Thinger.io Documentation
}

void loop() {
thing.handle();
}

Thanks,
GH

Try enabling TLS 1.0 in the Server settings.
Cluster Hosts → Settings → SSL Certificates (Enable Insecure Protocols)
image

Hi,
Thanks for the prompt reply, I tried you proposal and it is not working.

Have you restarted the Server?

Hi,

Try disabling the SSL, add the following line before the library call

#define _DISABLE_TLS_

You can verify that it was disabled by the TLS/SSL msg will report “no”.

Hope this helps.

Thanks all! issue solved and the solution is: #define DISABLE_TLS

1 Like