6 Replies Latest reply on Mar 29, 2017 2:55 AM by richardwi RSS
    richardwi Explorer

    AWS IoT Connector with ThingWorx 7.3

    I am trying to run the AWS IoT Connector demo with ThingWorx 7.3 but am not getting very far.  I'm using the instructions in README.txt but they seem to be incomplete and don't quite align with the directory structure of the zip file containing the README.txt file.

     

    For example, the third step in the second sequence says: "From within the repo directory go to aws-iot-dist-bundle/src/main/dist/demo, run npm install."  When I came this step, npm wasn't yet installed (although I'd installed nodejs already, via apt) and my directory structure doesn't contain aws-iot-dist-bundle/src/main/dist/demo.  I assume I should be in the demo directory that's in the root of the zip file – perhaps this is because I didn't need to clone the repo as it's all part of the zip file.

     

    Also, the first step in the third sequence says: "Generate a new thing on the AWS IoT and Thingworx platform simultaneously..." but as far as I can tell, nowhere does it say how, where or even whether to configure the AWS IoT Connection.  (I wondered whether I need to log on to Composer and do some AWS configuration somewhere but it doesn't say I need to so I assume not.)  When I run the "node generate.js ..." command it looks like it's working but then fails:

     

    Username (Thingworx): Administrator
    Password (Thingworx): 
    Creating Thing: mydrone
    Enabling Thing: mydrone
    Restarting Thing: mydrone
    Failed to restart mydrone (404)
    {"thingName":"mydrone"}
    undefined:1
    Thing [mydrone] is not running
    ^

    SyntaxError: Unexpected token T
        at Object.parse (native)
        at IncomingMessage. (/home/richard/AWS extensions/TW_Download_AWS IoT Connector/Thingworx-AWS-IoT-Connector-1.1.1.5/demo/edge/generate.js:67:37)
        at emitNone (events.js:72:20)
        at IncomingMessage.emit (events.js:166:7)
        at endReadableNT (_stream_readable.js:905:12)
        at nextTickCallbackWith2Args (node.js:441:9)
        at process._tickCallback (node.js:355:17)

     

    I look in Composer at the Things in my ThingWorx instance and there's no Thing called mydrone.

     

    Am I doing anything obviously daft?