Dragino LG01 to Thinger, disconnected


#1

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


#2

Do you know that the instruction:

Is for watch by serial console what’s going on with the device? So it is really helpfull to solve any particular issue…

Post your serial console messages in order to give us an idea what’s doing and what’s not doing your device.


#3

It is shown as :

What I’m thinking is Dragino gateway should not use Arduino Yun nodes for connecting thinger, is there any code should I use?
Dragino LG01 product datasheet is https://www.dragino.com/downloads/downloads/datasheet/EN/Datasheet_LG01.pdf


#4

What I’m thinking is Dragino gateway should not use Arduino Yun nodes for connecting thinger, is there any code should I use?