Page 1 of 1

Seeeduino Cloud works with Thinger.io?

Posted: Fri Apr 13, 2018 9:34 pm
by ivanlomy
I am newbie, I try to run an thinger.io example code with my Seeeduino Cloud, but no luck.
I did setup an account at thinger.io and added device id and its credential. Also I checked the seeeduino cloud is able to access internet (run httpclicent example b4)

Is the seeeduino support thinger.io sdk? I did anything wrong here?
I am pretty sure that my thinger.io setting is correct, as I am able to run the same code on my linkitone and work perfectly.


thankyou all here.
Ivan

code:

#include <BridgeSSLClient.h>
#include <ThingerYun.h>

#define USERNAME "myusername"
#define DEVICE_ID "mydeviceid"
#define DEVICE_CREDENTIAL "mydevice_credential"

ThingerYun thing(myusername, mydeviceid, mydevice_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();
}