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