Cant connect ESP8266 TO THINGER

i cant connect esp8266 to thinger

#include <ESP8266WiFi.h>
#include <ThingerESP8266.h>

#define USERNAME “myuser”
#define DEVICE_ID “esp8266test”
#define DEVICE_CREDENTIAL “N@meba4ErCAA”

#define SSID “TINT_Devices”
#define SSID_PASSWORD “mypass”

ThingerESP8266 thing(USERNAME, DEVICE_ID, DEVICE_CREDENTIAL);

void setup() {
pinMode(LED_BUILTIN, OUTPUT);

thing.add_wifi(SSID, SSID_PASSWORD);

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

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

// more details at http://docs.thinger.io/arduino/
}

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

You can enable the debug and see on serial monitor what’s going on

http://docs.thinger.io/arduino/#coding-enabling-debug-output

I see that it is the example sketch, surely is a misstipping on some credential

Hope this helps

With some routers you cannot use the guest account for log in. So make sure this is a regular authentication to the router. I’ve found my nodemcu devices to be extremely reliable with Thinger (a couple of years and the are mounted on the garage ceiling)
So, don’t give up!

1 Like