3 Replies Latest reply on Oct 27, 2014 11:41 AM by christianb RSS
    bradleys Newbie

    Problem with SDK examples

    EDIT: I have the Java and C SDK examples working. I'll leave this info here for anyone else who might be looking for it.

     

    The C example requires an SSL connection to Tomcat. It appears that #defining NO_TLS would remove this limitation but it doesn't (at least not in the beta I'm using).

     

    The java example does not work with an SSL connection i.e. just use http on port 80.

     

    Original post below:

     

    Hi,

     

    I've tried using the beta C SDK but cannot get it to connect to ThingWorx. To make sure I have ThingWorx set up properly I tried out the Java example but that won't connect either. The Java appears to be running:

    09:48:32.152 DEBUG c.t.c.c.e.m.CommunicationEndpointMonitorTask - CommunicationEndpoint Monitor - checking for disconnected endpoints
    09:48:47.154 DEBUG c.t.c.c.e.m.CommunicationEndpointMonitorTask - CommunicationEndpoint Monitor - checking for disconnected endpoints
    09:49:02.155 DEBUG c.t.c.c.e.m.CommunicationEndpointMonitorTask - CommunicationEndpoint Monitor - checking for disconnected endpoints
    09:49:03.169 DEBUG c.t.c.c.c.n.ThingworxClientConnectionHandler - ClientHandler: 884571062 Client has been idle, sending websocket ping...
    09:49:03.170 DEBUG i.n.h.c.h.w.WebSocket08FrameEncoder - Encoding WebSocket Frame opCode=9 length=0
    09:49:03.170 DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Decoding WebSocket Frame opCode=10
    09:49:03.170 DEBUG i.n.h.c.h.w.WebSocket08FrameDecoder - Decoding WebSocket Frame length=0

    but whe n I look at SteamSensor1 and look at the isConnected property on RemoteThing it reads false. I've tried refreshing. Any tips as to where to look for the problem?

    Thanks