Please create a Thing from RemoteThingTemplate in Thingworx , which will be capable of making Connection to remote object .
This Thing will also have isconnected property , which will turn True once you connect the object .
Furthermore , you can add as many property to this Thing and then use binding to save the values coming from Edge or any client to that Thing in Thingworx.
You will also need to create an app key , which you will need to authenticate communication from client to Thingworx platform.
A better approach would be to create your own ThingTemplate from RemoteThingTemplate and then use it to create Things.
Do let me know if you have still have any doubts on this.
Thank you for your reply Ravi!
I have done all the steps you mentioned in my thingworx sever (RemoteThingTemplate, RemoteThing, Creating App Key with the IP of my client in the IP whitelist).
I am using the SteamSensor Example from the C SDK. I compiled it in my Linux Client, everything without error messages. I also change the defines of the TW_HOST and TW_APP_KEY compatible to my created parameters in the thingworx server.
When I am running the programm I am getting the following terminal output:
Have you got any solutions? Is the defualt Setting of the TLS TRUE in the Browser / Server / Thingworx? How can I turn it off? Or any other solutions in the C - Code of teh SteamExample?
Thank you so much!
You are getting an Error Initialization of SSL connection .
Please see , if you have done all the steps required to initialize the SSL connection
For example , you would need to open the port for SSL connection and it would also require security certificate.
Its related to machine(on which Thingworx is running) denying the incoming request from the Steam example. I would request to google the error which I mention in the first line.
After some research, I've added the following lines before the twApi_Initialize() -- function call in the main() - function.
Now I am also able to build the executable. When I am trying to run the programm I'm getting the following error:
After the start and the message above, the programm quits very fast.
Ok, I think the last post was a fault by me.
I have also read something about :
"Versions of Apache Tomcat 8.0.35 and above have disabled RSA based ciphers by default due to forward secrecy concerns."
tls->validateCert = FALSE;
I have the Tomcat Version 7.0.67, so i can't get the errors because of the Tomcat Version (First Solution).
I also edited the value of validateCert in twTls.c (Second Solution).
Both workarounds does not work for me. I'm still getting the errors with the Intitalization SSL Connection.
I solved the SSL - Error with the following change in twTls.c:
tls->validateCert = TRUE;
tls->isEnabled = TRUE;
tls->validateCert = FALSE;
tls->isEnabled = FALSE;
So it is not enough just to put the #define NO_TLS in the main.c.
It seems that I am now getting a connection that quits after some moment. I get the following output:
I don't know how to solve this websocket error. If I put the "ws://" in the #define TW_HOST ""ws://servername" I am getting the error:
- SDK:twWs_Create: Error creating BSD socket to be used for the websocket SDK:twApi_Initialize: Error creating websocket structure
If I only put the "servername" in form of the IP Adressof the Server in this directive I am getting the last errors mentioned in the last post with error code 201. I'm running in circles right now.
I also check the websocket values in the twWebsocket.c / twWebsocket.h - Files but I didn't find relevant values.