2 Replies Latest reply on Jul 11, 2017 7:54 AM by movaskainen RSS
    movaskainen Newbie

    C SDK connection does not work

    I cannot get my Raspberry Pi 3 to connect to the Thingworx server. I have searched through the boards, tried disabling SSL authentication, upgraded my software, etc. but I always try to get the same error after trying to run the ExampleClient provided in the examples.

     

    [FORCE] 2017-07-11 13:33:45,456: Starting up

    [ERROR] 2017-07-11 13:33:45,457: twStream_CreateFromFile: error opening file: /opt/thingworx/subscribed_properties.bin

    [ERROR] 2017-07-11 13:33:45,457: subscribedPropsMgr_Initialize: Error opening: /opt/thingworx/subscribed_properties.bin

    [ERROR] 2017-07-11 13:33:45,713: Error intializing SSL connection

    [ERROR] 2017-07-11 13:33:45,713: twWs_Connect: Error restarting socket.  Error 13

    [ERROR] 2017-07-11 13:33:50,967: Error intializing SSL connection

    [ERROR] 2017-07-11 13:33:50,967: twWs_Connect: Error restarting socket.  Error 32

    [ERROR] 2017-07-11 13:33:56,221: Error intializing SSL connection

    [ERROR] 2017-07-11 13:33:56,221: twWs_Connect: Error restarting socket.  Error 32

    [ERROR] 2017-07-11 13:34:01,222: twApi_Connect: Max number of connect retries: 3, has been reached

    [ERROR] 2017-07-11 13:34:01,222: main: Server connection failed after 3 attempts.  Error Code: 1001

     

    What could be the problem? Thank you for your help in advance.

      • Re: C SDK connection does not work
        supandey Collaborator

        Hi Markus are you getting this error with or without the SSL configuration? Because in the error above it seems to be complaining about the SSL connection initialization together with issues in accessing subscribed_properties.bin file under the specified location. What sort of user are you working with?

          • Re: C SDK connection does not work
            movaskainen Newbie

            Hi,

             

            I get this error by strictly adhering to the C SDK Quickstart guide. On the side note, the download link for C SDK provided in the guide does not contain the whole library and the files that are referred to in the guide.

             

            I am trying to get this to work with SSL, but I have already tried to disable SSL as well, but weirdly and regardless, the "Error intializing SSL connection"-error persists.

             

            Markus