2 Replies Latest reply on Dec 29, 2017 10:48 PM by atsarev RSS
    atsarev Explorer

    ThingWorx and Raspberry Pi Connectivity

    Hello!

    I connect Raspberry Pi to the platform thingWorx 8.1.2 to get the temperature and humidity values.

    I reached the "Connections" step (all other steps were successfully completed).

    According to the instruction, a "temperature-thing-jar-with-dependencies.fire" file is created, which must be copied to raspberry Pi.

    Then I prescribe the command  on the raspberry card:: java -jar ./temperature-thing-jar-with-dependencies.jar http://1XX.6X.3X.11X:8080/Thingworx 382fac73-e22e-435f-a44f-e74becc0a66d 2302 4 (Instead of X, normal numbers)

    The result is an error:

    02:48:26.096 [Client-EndpointMonitor-1] ERROR c.t.c.c.e.ClientCommunicationEndpoint - Refilling connections on [endpoint 0, uri: http://1XX.6X.3X.11X:8080/Thingworx] failed : timeout waiting for websocket handshake to complete

    02:48:26.102 [Client-EndpointMonitor-1] ERROR c.t.c.c.e.ClientCommunicationEndpoint - Exception refilling connections was:

    java.util.concurrent.TimeoutException: timeout waiting for websocket handshake to complete

            at com.thingworx.communications.client.connection.netty.NettyClientConnectionFactory$HandshakeCompletionNotifier.await(NettyClientConnectionFactory.java:665) ~[temperature-thing-jar-with-dependencies.jar:na]

            at com.thingworx.communications.client.connection.netty.NettyClientConnectionFactory.createConnection(NettyClientConnectionFactory.java:386) ~[temperature-thing-jar-with-dependencies.jar:na]

            at com.thingworx.communications.client.endpoints.ClientCommunicationEndpoint.refillConnections(ClientCommunicationEndpoint.java:230) ~[temperature-thing-jar-with-dependencies.jar:na]

            at com.thingworx.communications.common.endpoints.monitor.ConnectivityMonitorTask.dutyCycleOn(ConnectivityMonitorTask.java:159) [temperature-thing-jar-with-dependencies.jar:na]

            at com.thingworx.communications.common.endpoints.monitor.ConnectivityMonitorTask.run(ConnectivityMonitorTask.java:306) [temperature-thing-jar-with-dependencies.jar:na]

            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_65]

            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_65]

            at java.lang.Thread.run(Thread.java:745) [na:1.8.0_65]

     

    I ask you to help with the solution of the problem. logs and others in the attachment.