Connecting device to private instance

Hello

I am trying to connect a device to a new private instance. I have no problem connecting to the public domainthinger.io account that I have, but I cannot connect to the private acme.do.thinger.io account.

I have defined the necessary thinger variables in the code header e.g.

#define THINGER_SERVER “acme.do.thinger.io” //Required for private instance according to Thinger.io Cloud - Thinger.io Documentation
#define USERNAME “xxxxxxx”
#define DEVICE_ID “xxxxxxx”
#define DEVICE_CREDENTIAL “xxxxxxxx”
ThingerESP8266 thing(USERNAME, DEVICE_ID, DEVICE_CREDENTIAL);

Any suggestions?

Thanks

Mark

Hi Mark,

The address you are trying to connect doesn’t seem like a private instance address, it doesn’t open the console at the web browser, I dont know if you have a little confusion with the tests instance “acme.thinger.io

Let me know if the private address is ok.

Regards,

@ega

Thank you for the reply.

I used the acme.do.thinger.io as an example, the actual private instance is colourspi.aws.thinger.io.

It is now working. I just needed to move the #define THINGER_SERVER to the fist line of code before the library is called

e.g.
#define THINGER_SERVER “colourspi.aws.thinger.io"
#include <ThingerESP8266.h> //IOT Platform www.thinger.io
#define USERNAME “xxxxxxx”
#define DEVICE_ID “xxxxxxx”
#define DEVICE_CREDENTIAL “xxxxxxxx”
ThingerESP8266 thing(USERNAME, DEVICE_ID, DEVICE_CREDENTIAL);

Oh I see… Yes that definition should be done before the library is loaded, also the debug definition should be done previously the library to get the serial debugging messages.

I am glad you sorted it out.

Regards,