Hi there
I’m trying connecting Dragino LG01 gateway to Thinger with Arduino YUN example like:
#include <BridgeSSLClient.h>
#include <ThingerYun.h>
#define USERNAME “your_user_name”
#define DEVICE_ID “your_device_id”
#define DEVICE_CREDENTIAL “your_device_credential”
ThingerYun thing(USERNAME, DEVICE_ID, DEVICE_CREDENTIAL);
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
// initialize bridge
Bridge.begin();
// pin control example (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)
// more details at http://docs.thinger.io/arduino/
}
void loop() {
thing.handle();
}
However, the status of devices at thinger.io always shown disconnected and Dragino already connected to the internet for sure.
Does anyone know the reason or any relevant experience, I have tried adding
#define DISABLE_TSL
#define DEBUG
which still not working.
Thanks a lot
Regards