Own hosted server issues connecting device!


#1

Im having problems adding my raspberry pi to my own Thinger server.
I can connect to my server through console.thinger.io but when i try to add a device i get the following error!
What do i do wrong?


#2

Hi @gurrbuss you need to change the iot server. Checkout the log, it is trying to connecto to iot.thinger.io, and it should point to your custom server.

Best.


#3

HI. Thanks for the quick response.
I know its trying to connect to that server but no matter what i do i cant make it connect to mine :slight_smile:
I have changed it by going to https://xxx.xxx.xxx/#/settings ( i use a subdomain to my server so its not a ipadress) and changed to my domain instead of api.thinger.io and then define thinger server accordingly in the main.cpp file on the raspberry pi, still dont work it still try to connect to your server?
It even say that thinger server is changed on the Pi but still connect to wrong server :frowning:
Is there any other place i need to change?


#4

Hello.
Isnt it anybody who can point me in the right direction to solve this issue?

Best.


#5

Hi again.
I solved the problem.

I had to change the servername in the thinger_client.h file also and then everything works perfect :slight_smile:

/Gurrbuss


#6

Remember that you need to add the next line as the first line of the sketch

#define THINGER_SERVER "192.168.1.120

And of course it can be another domain name, not necessarily an IP address :wink: