Iot - dragonConnect-C not working properly

96boards

#1

I have purchased Dragonboard410C, however the"aws-iot-dragonconnect-c" at link (github , ArrowElectronics/aws-iot-dragonconnect-c) is not working as expected.

The output of my run is given below. The node.js version also is an issue. I tried installing node.js 6.12 however the “createMultiTask:audioEvents” failed comes. So installed node.js 8.x (8.9.4) but still the message comes as use nodejs6.10 and message"createMultiTask:audioEvents" failed comes.

The audio is not getting updated at my S3 URL “https://s3.us-east-2.amazonaws.com/dragonconnect-tester2-bucket/index.html"
When I click on “select a thing” dropdown at upper right hand I get " ajax error : could not get list of devices” and the dropdown continues showing “getting things” …
How to solve this? Please give technical inputs.

Also , how to access http://dragonconnect-tester2-bucket.s3-website-us-east-2.amazonaws.com. This link cannot be accessed…
My S3 bucket is created at region=us-east-2, (US east, ohio). My dynamoDB is created at region=us-east-2, (US east, ohio).

Please let me know how to solve this. What is missed from me?
. Please treat it as urgent.

The output trace is given below:


Amazon AWS Account Number:
XXXXXXXXXX

Using us-east-2 as AWS Region

Enter a Stage (Default is dev, Typical Stages are prod,test,qa):
dev

Using dev as API Stage

Enter a S3 Identifier (Default with be a random hash. Typical Identifiers can be something like Your Username):
tester2-bucket

Using tester2-bucket as S3 Identifier

***Creating Config for Arrow and AWS…
***Creating Amazon IAM and IoT Elements…
npm notice created a lockfile as package-lock.json. You should commit this file.

  • dragonconnect-config@0.1.0
    updated 1 package in 3.375s
    up to date in 1.783s
    Creating role DragonConnect-ApiGateway
    Creating role DragonConnect-IoT
    Creating role DragonConnect-Lambda
    Creating IoT Policy of DragonConnect
    Creating IoT Topic Rule of DragonConnectAudioEvents
    Setting the IoT logging options
    Creating table DragonConnect-audioEvents
    ***Modifying Amazon lambda functions…
    npm notice created a lockfile as package-lock.json. You should commit this file.
    npm WARN dragonconnect-lambda@0.1.0 license should be a valid SPDX license expression
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“arm64”})

  • dragonconnect-config@0.1.0
    updated 1 package in 41.58s
    /usr/bin/grunt -> /usr/lib/node_modules/grunt-cli/bin/grunt

  • grunt-cli@1.2.0
    updated 1 package in 6.767s
    npm WARN dragonconnect-lambda@0.1.0 license should be a valid SPDX license expression
    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.1.3 (node_modules/fsevents):
    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.3: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“linux”,“arch”:“arm64”})

up to date in 33.906s
Running “create:audioEvents” (create) task

Running “pkg:audioEvents” (pkg) task

Running “mkdir:package” (mkdir) task
Creating “dist”…OK

Running “browserify:audioEvents” (browserify) task

Bundle dist/audioEvents/audioEvents.bundled.js created.

Running “uglify:audioEvents” (uglify) task

1 file created.

Running “zip:audioEvents” (zip) task
File “dist/audioEvents/audioEvents.zip” created.

Running “createMultiTask:audioEvents” (createMultiTask) task
Creating lambda function DragonConnect-audioEvents

Creating lambda function failed
Message: The runtime parameter of nodejs is no longer supported for creating or updating AWS Lambda functions. We recommend you use the new runtime (nodejs6.10) while creating or updating functions.
Warning: Task “createMultiTask:audioEvents” failed. Use --force to continue.

Aborted due to warnings.
***Configuring Amazon API gateway…

Detected ef1c as API Gateway Extension

Picked up JAVA_TOOL_OPTIONS: -Dgnu.io.rxtx.SerialPorts=/dev/tty96B0
2018-01-07 15:29:21,125 INFO - Using API Gateway endpoint https://apigateway.us-east-2.amazonaws.com
2018-01-07 15:29:30,964 INFO - Attempting to create API from Swagger definition. Swagger file: dragonconnect.yaml
reading from dragonconnect.yaml
2018-01-07 15:29:32,141 WARN - no property from integer, long, {ENUM=null, TITLE=null, DESCRIPTION=The time the event occurred in seconds from the Epoch, UTC.
, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=integer, FORMAT=long}
2018-01-07 15:29:32,941 INFO - Parsed Swagger with 4 paths
2018-01-07 15:29:32,942 INFO - Creating API with name Arrow DragonConnect
2018-01-07 15:29:35,224 INFO - Removing default model Error
2018-01-07 15:29:35,740 INFO - Removing default model Empty
2018-01-07 15:29:36,246 INFO - Creating model for api id 6yq3lfjsl3 with name AudioEvent
2018-01-07 15:29:37,214 INFO - Generated json-schema for model AudioEvent: {“type”:“object”,“required”:[“volume”],“properties”:{“volume”:{“type”:“string”,“description”:“Whether the volume was increased or decreased.\n”,“enum”:[“increase”,“decrease”]}},“definitions”:{}}
2018-01-07 15:29:37,930 INFO - Creating model for api id 6yq3lfjsl3 with name AudioEventList
2018-01-07 15:29:37,983 INFO - Generated json-schema for model AudioEventList: {“type”:“array”,“items”:{"$ref":"#/definitions/AudioEvent"},“definitions”:{“AudioEvent”:{“type”:“object”,“required”:[“volume”],“properties”:{“volume”:{“type”:“string”,“description”:“Whether the volume was increased or decreased.\n”,“enum”:[“increase”,“decrease”]}}}}}
2018-01-07 15:29:38,580 INFO - Creating model for api id 6yq3lfjsl3 with name LED
2018-01-07 15:29:38,686 INFO - Generated json-schema for model LED: {“type”:“object”,“required”:[“active”],“properties”:{“active”:{“type”:“boolean”,“description”:“True if the LED is active, false if it is inactive.\n”,“default”:false}},“definitions”:{}}
2018-01-07 15:29:39,215 INFO - Creating model for api id 6yq3lfjsl3 with name Thing
2018-01-07 15:29:40,073 INFO - Generated json-schema for model Thing: {“type”:“object”,“required”:[“thingId”],“properties”:{“thingId”:{“type”:“string”,“description”:“The attribute name.\n”,“minLength”:1,“maxLength”:255,“pattern”:"^[a-zA-Z0-9_-]$"},“attributes”:{“type”:“object”,“description”:“The attributes of a thing.\n”,“additionalProperties”:{“type”:“string”}}},“definitions”:{}}
2018-01-07 15:29:40,836 INFO - Creating model for api id 6yq3lfjsl3 with name ThingList
2018-01-07 15:29:40,977 INFO - Generated json-schema for model ThingList: {“type”:“array”,“items”:{"$ref":"#/definitions/Thing"},“definitions”:{“Thing”:{“type”:“object”,“required”:[“thingId”],“properties”:{“thingId”:{“type”:“string”,“description”:“The attribute name.\n”,“minLength”:1,“maxLength”:255,“pattern”:"^[a-zA-Z0-9_-]$"},“attributes”:{“type”:“object”,“description”:“The attributes of a thing.\n”,“additionalProperties”:{“type”:“string”}}}}}}
2018-01-07 15:29:41,461 INFO - Creating model for api id 6yq3lfjsl3 with name Error
2018-01-07 15:29:41,549 INFO - Generated json-schema for model Error: {“type”:“object”,“required”:[“message”],“properties”:{“message”:{“type”:“string”}},“definitions”:{}}
2018-01-07 15:29:42,744 INFO - Creating resource ‘things’ on mmoco6rpnj
2018-01-07 15:29:45,376 INFO - Creating method response for api 6yq3lfjsl3 and method GET and status 200
2018-01-07 15:29:46,256 INFO - Found reference to existing model ThingList
2018-01-07 15:29:47,318 INFO - Creating method response for api 6yq3lfjsl3 and method GET and status 500
2018-01-07 15:29:47,755 INFO - Found reference to existing model Error
2018-01-07 15:29:48,833 INFO - Creating method parameter for api 6yq3lfjsl3 and method GET with name method.request.header.Content-Type
2018-01-07 15:29:49,451 INFO - Creating method parameter for api 6yq3lfjsl3 and method GET with name method.request.header.Accept
2018-01-07 15:29:50,105 INFO - Creating integration with type AWS
2018-01-07 15:29:54,888 INFO - Creating method for api id 6yq3lfjsl3 and resource id 1tbo8j with method get
2018-01-07 15:29:56,186 INFO - Creating method response for api 6yq3lfjsl3 and method OPTIONS and status 200
2018-01-07 15:29:58,085 INFO - Creating integration with type MOCK
2018-01-07 15:30:00,327 INFO - Creating method for api id 6yq3lfjsl3 and resource id 1tbo8j with method options
2018-01-07 15:30:01,400 INFO - Creating resource ‘{thingId}’ on 1tbo8j
2018-01-07 15:30:03,365 INFO - Creating method response for api 6yq3lfjsl3 and method GET and status 200
2018-01-07 15:30:03,790 INFO - Found reference to existing model Thing
2018-01-07 15:30:05,494 INFO - Creating method response for api 6yq3lfjsl3 and method GET and status 400
2018-01-07 15:30:06,063 INFO - Found reference to existing model Error
2018-01-07 15:30:06,931 INFO - Creating method response for api 6yq3lfjsl3 and method GET and status 404
2018-01-07 15:30:07,353 INFO - Found reference to existing model Error
2018-01-07 15:30:08,161 INFO - Creating method response for api 6yq3lfjsl3 and method GET and status 500
2018-01-07 15:30:08,598 INFO - Found reference to existing model Error
2018-01-07 15:30:09,402 INFO - Creating method parameter for api 6yq3lfjsl3 and method GET with name method.request.header.Content-Type
2018-01-07 15:30:09,926 INFO - Creating method parameter for api 6yq3lfjsl3 and method GET with name method.request.header.Accept
2018-01-07 15:30:10,419 INFO - Creating integration with type AWS
2018-01-07 15:30:15,628 INFO - Creating method for api id 6yq3lfjsl3 and resource id k9rm2w with method get
2018-01-07 15:30:16,658 INFO - Creating method response for api 6yq3lfjsl3 and method OPTIONS and status 200
2018-01-07 15:30:17,983 INFO - Creating integration with type MOCK
2018-01-07 15:30:19,832 INFO - Creating method for api id 6yq3lfjsl3 and resource id k9rm2w with method options
2018-01-07 15:30:21,781 INFO - Creating resource ‘audio’ on k9rm2w
2018-01-07 15:30:23,211 INFO - Creating resource ‘events’ on 1yyh9j
2018-01-07 15:30:25,277 INFO - Creating method response for api 6yq3lfjsl3 and method GET and status 200
2018-01-07 15:30:25,912 INFO - Found reference to existing model AudioEventList
2018-01-07 15:30:26,904 INFO - Creating method response for api 6yq3lfjsl3 and method GET and status 404
2018-01-07 15:30:27,345 INFO - Found reference to existing model Error
2018-01-07 15:30:28,153 INFO - Creating method response for api 6yq3lfjsl3 and method GET and status 500
2018-01-07 15:30:28,792 INFO - Found reference to existing model Error
2018-01-07 15:30:29,753 INFO - Creating method parameter for api 6yq3lfjsl3 and method GET with name method.request.header.Content-Type
2018-01-07 15:30:30,196 INFO - Creating method parameter for api 6yq3lfjsl3 and method GET with name method.request.header.Accept
2018-01-07 15:30:30,655 INFO - Creating method parameter for api 6yq3lfjsl3 and method GET with name method.request.querystring.limit
2018-01-07 15:30:31,212 INFO - Creating integration with type AWS
2018-01-07 15:30:36,408 INFO - Creating method for api id 6yq3lfjsl3 and resource id uou1qf with method get
2018-01-07 15:30:37,230 INFO - Creating method response for api 6yq3lfjsl3 and method OPTIONS and status 200
2018-01-07 15:30:38,456 INFO - Creating integration with type MOCK
2018-01-07 15:30:40,315 INFO - Creating method for api id 6yq3lfjsl3 and resource id uou1qf with method options
2018-01-07 15:30:41,860 INFO - Creating resource ‘led’ on k9rm2w
2018-01-07 15:30:42,863 INFO - Found input model reference AudioEvent
2018-01-07 15:30:43,840 INFO - Creating method response for api 6yq3lfjsl3 and method POST and status 202
2018-01-07 15:30:45,747 INFO - Creating method response for api 6yq3lfjsl3 and method POST and status 400
2018-01-07 15:30:46,383 INFO - Found reference to existing model Error
2018-01-07 15:30:47,270 INFO - Creating method response for api 6yq3lfjsl3 and method POST and status 404
2018-01-07 15:30:47,717 INFO - Found reference to existing model Error
2018-01-07 15:30:48,737 INFO - Creating method response for api 6yq3lfjsl3 and method POST and status 500
2018-01-07 15:30:49,244 INFO - Found reference to existing model Error
2018-01-07 15:30:50,039 INFO - Creating method parameter for api 6yq3lfjsl3 and method POST with name method.request.header.Content-Type
2018-01-07 15:30:50,530 INFO - Creating method parameter for api 6yq3lfjsl3 and method POST with name method.request.header.Accept
2018-01-07 15:30:50,972 INFO - Creating integration with type AWS
2018-01-07 15:30:56,955 INFO - Creating method for api id 6yq3lfjsl3 and resource id sqipc8 with method post
2018-01-07 15:30:57,839 INFO - Creating method response for api 6yq3lfjsl3 and method GET and status 200
2018-01-07 15:30:58,252 INFO - Found reference to existing model LED
2018-01-07 15:30:59,182 INFO - Creating method response for api 6yq3lfjsl3 and method GET and status 400
2018-01-07 15:30:59,609 INFO - Found reference to existing model Error
2018-01-07 15:31:00,691 INFO - Creating method response for api 6yq3lfjsl3 and method GET and status 404
2018-01-07 15:31:01,109 INFO - Found reference to existing model Error
2018-01-07 15:31:02,101 INFO - Creating method response for api 6yq3lfjsl3 and method GET and status 500
2018-01-07 15:31:02,718 INFO - Found reference to existing model Error
2018-01-07 15:31:03,805 INFO - Creating method parameter for api 6yq3lfjsl3 and method GET with name method.request.header.Content-Type
2018-01-07 15:31:04,251 INFO - Creating method parameter for api 6yq3lfjsl3 and method GET with name method.request.header.Accept
2018-01-07 15:31:04,946 INFO - Creating integration with type AWS
2018-01-07 15:31:10,697 INFO - Creating method for api id 6yq3lfjsl3 and resource id sqipc8 with method get
2018-01-07 15:31:11,657 INFO - Creating method response for api 6yq3lfjsl3 and method OPTIONS and status 200
2018-01-07 15:31:13,469 INFO - Creating integration with type MOCK
2018-01-07 15:31:15,515 INFO - Creating method for api id 6yq3lfjsl3 and resource id sqipc8 with method options
2018-01-07 15:31:15,517 INFO - Creating deployment for API 6yq3lfjsl3 and stage dev
***Configuring Dashboard on S3…

Detected 6yq3lfjsl3 as API Gateway Identifier

make_bucket: dragonconnect-tester2-bucket
upload: css/styles.css to s3://dragonconnect-tester2-bucket/css/styles.css
upload: css/db.css to s3://dragonconnect-tester2-bucket/css/db.css
upload: css/bootstrap-theme.css to s3://dragonconnect-tester2-bucket/css/bootstrap-theme.css
upload: css/bootstrap-theme.css.map to s3://dragonconnect-tester2-bucket/css/bootstrap-theme.css.map
upload: css/font-awesome.min.css to s3://dragonconnect-tester2-bucket/css/font-awesome.min.css
upload: css/font-awesome.css to s3://dragonconnect-tester2-bucket/css/font-awesome.css
upload: css/bootstrap-theme.min.css to s3://dragonconnect-tester2-bucket/css/bootstrap-theme.min.css
upload: css/bootstrap.min.css to s3://dragonconnect-tester2-bucket/css/bootstrap.min.css
upload: fonts/glyphicons-halflings-regular.eot to s3://dragonconnect-tester2-bucket/fonts/glyphicons-halflings-regular.eot
upload: fonts/FontAwesome.otf to s3://dragonconnect-tester2-bucket/fonts/FontAwesome.otf
upload: fonts/fontawesome-webfont.eot to s3://dragonconnect-tester2-bucket/fonts/fontawesome-webfont.eot
upload: fonts/fontawesome-webfont.woff to s3://dragonconnect-tester2-bucket/fonts/fontawesome-webfont.woff
upload: fonts/fontawesome-webfont.woff2 to s3://dragonconnect-tester2-bucket/fonts/fontawesome-webfont.woff2
upload: fonts/glyphicons-halflings-regular.woff to s3://dragonconnect-tester2-bucket/fonts/glyphicons-halflings-regular.woff
upload: css/bootstrap.css to s3://dragonconnect-tester2-bucket/css/bootstrap.css
upload: fonts/glyphicons-halflings-regular.svg to s3://dragonconnect-tester2-bucket/fonts/glyphicons-halflings-regular.svg
upload: fonts/fontawesome-webfont.ttf to s3://dragonconnect-tester2-bucket/fonts/fontawesome-webfont.ttf
upload: fonts/glyphicons-halflings-regular.woff2 to s3://dragonconnect-tester2-bucket/fonts/glyphicons-halflings-regular.woff2
upload: gfxs/ajax-loader.gif to s3://dragonconnect-tester2-bucket/gfxs/ajax-loader.gif
upload: gfxs/board.png to s3://dragonconnect-tester2-bucket/gfxs/board.png
upload: fonts/fontawesome-webfont.svg to s3://dragonconnect-tester2-bucket/fonts/fontawesome-webfont.svg
upload: gfxs/dragon-connect-logo@2x.png to s3://dragonconnect-tester2-bucket/gfxs/dragon-connect-logo@2x.png
upload: gfxs/dragonboard410c_logo_bs.png to s3://dragonconnect-tester2-bucket/gfxs/dragonboard410c_logo_bs.png
upload: gfxs/dragon-sense-logo@2x.png to s3://dragonconnect-tester2-bucket/gfxs/dragon-sense-logo@2x.png
upload: gfxs/dragonpulse-logo@2x.png to s3://dragonconnect-tester2-bucket/gfxs/dragonpulse-logo@2x.png
upload: gfxs/dragonboard410c_logo.png to s3://dragonconnect-tester2-bucket/gfxs/dragonboard410c_logo.png
upload: gfxs/ready_to_fuel.png to s3://dragonconnect-tester2-bucket/gfxs/ready_to_fuel.png
upload: gfxs/sprites-bulb@2x.png to s3://dragonconnect-tester2-bucket/gfxs/sprites-bulb@2x.png
upload: gfxs/sprites-sensor@2x.png to s3://dragonconnect-tester2-bucket/gfxs/sprites-sensor@2x.png
upload: gfxs/sprites-volume@2x.png to s3://dragonconnect-tester2-bucket/gfxs/sprites-volume@2x.png
upload: gfxs/sprites@2x.png to s3://dragonconnect-tester2-bucket/gfxs/sprites@2x.png
upload: gfxs/search.jpg to s3://dragonconnect-tester2-bucket/gfxs/search.jpg
upload: css/bootstrap.css.map to s3://dragonconnect-tester2-bucket/css/bootstrap.css.map
upload: gfxs/volume-bg-lg.jpg to s3://dragonconnect-tester2-bucket/gfxs/volume-bg-lg.jpg
upload: gfxs/volume-bg-sm.jpg to s3://dragonconnect-tester2-bucket/gfxs/volume-bg-sm.jpg
upload: gfxs/volume-bg-xs.jpg to s3://dragonconnect-tester2-bucket/gfxs/volume-bg-xs.jpg
upload: gfxs/volume-bg-md.jpg to s3://dragonconnect-tester2-bucket/gfxs/volume-bg-md.jpg
upload: js/config.js to s3://dragonconnect-tester2-bucket/js/config.js
upload: ./index.html to s3://dragonconnect-tester2-bucket/index.html
upload: js/bootstrap.min.js to s3://dragonconnect-tester2-bucket/js/bootstrap.min.js
upload: js/dragonconnect.js to s3://dragonconnect-tester2-bucket/js/dragonconnect.js
upload: js/config_template.js to s3://dragonconnect-tester2-bucket/js/config_template.js
upload: fonts/glyphicons-halflings-regular.ttf to s3://dragonconnect-tester2-bucket/fonts/glyphicons-halflings-regular.ttf
upload: js/bootstrap.js to s3://dragonconnect-tester2-bucket/js/bootstrap.js
upload: js/npm.js to s3://dragonconnect-tester2-bucket/js/npm.js
upload: things/lambdaTest/audio.json to s3://dragonconnect-tester2-bucket/things/lambdaTest/audio.json
upload: js/moment.min.js to s3://dragonconnect-tester2-bucket/js/moment.min.js
upload: things/things.json to s3://dragonconnect-tester2-bucket/things/things.json
upload: things/lambdaTest/led.json to s3://dragonconnect-tester2-bucket/things/lambdaTest/led.json
upload: js/jquery-1.11.1.min.js to s3://dragonconnect-tester2-bucket/js/jquery-1.11.1.min.js
***Configuring Bucket Policy on S3…
***Provisioning a Thing…
Creating thing 1203384677044c49859afb94da8513d1
Creating principal
Attaching principal to thing 1203384677044c49859afb94da8513d1
Attaching policy DragonConnect to principal for thing 1203384677044c49859afb94da8513d1

Detected 1203384677044c49859afb94da8513d1 as Thing ID

***Installing Certificates for the Device…
***Building Client…

Detected a15rh5mkrz3of4.iot.us-east-2.amazonaws.com as Amazon AWS Endpoint

./src/aws_demo.c: In function ‘main’:
./src/aws_demo.c:192:6: warning: implicit declaration of function ‘stat’ [-Wimplicit-function-declaration]
if (stat(rootCA, &reqFileStat) < 0 || stat(clientCRT, &reqFileStat) < 0 ||
^~~~
./src/util.c: In function ‘trimwhitespace’:
./src/util.c:23:10: warning: implicit declaration of function ‘isspace’ [-Wimplicit-function-declaration]
while (isspace(*str))
^~~~~~~
./src/mqtt.c:49:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
MQTT_Connect(char* hostaddr, uint16_t port, char* thingID, char* rootCA, char* clientCRT, char* clientKey)
^~~~~~~~~~~~
./src/iot_src/protocol/mqtt/paho_embeddedC/platform_linux/network_openssl_wrapper.c: In function ‘iot_tls_write’:
./src/iot_src/protocol/mqtt/paho_embeddedC/platform_linux/network_openssl_wrapper.c:153:9: warning: implicit declaration of function ‘WriteOrTimeoutOrExitOnError’ [-Wimplicit-function-declaration]
return WriteOrTimeoutOrExitOnError(pSSLHandle, pMsg, len, timeout_ms);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
./src/iot_src/protocol/mqtt/paho_embeddedC/platform_linux/network_openssl_wrapper.c: In function ‘iot_tls_disconnect’:
./src/iot_src/protocol/mqtt/paho_embeddedC/platform_linux/network_openssl_wrapper.c:161:2: warning: implicit declaration of function ‘close’ [-Wimplicit-function-declaration]
close(server_TCPSocket);
^~~~~
./src/iot_src/protocol/mqtt/paho_embeddedC/platform_linux/network_openssl_wrapper.c: In function ‘setSocketToNonBlocking’:
./src/iot_src/protocol/mqtt/paho_embeddedC/platform_linux/network_openssl_wrapper.c:199:13: warning: type of ‘server_fd’ defaults to ‘int’ [-Wimplicit-int]
IoT_Error_t setSocketToNonBlocking( server_fd) {
^~~~~~~~~~~~~~~~~~~~~~
################################################

Build Complete

################################################

root@linaro-alip:/home/linaro/Documents/arrow/aws-iot-dragonconnect-c/scripts# cd …
root@linaro-alip:/home/linaro/Documents/arrow/aws-iot-dragonconnect-c# cd DragonBoard/
root@linaro-alip:/home/linaro/Documents/arrow/aws-iot-dragonconnect-c/DragonBoard# cd bin
root@linaro-alip:/home/linaro/Documents/arrow/aws-iot-dragonconnect-c/DragonBoard/bin# ./aws_demo
ThingID: 1203384677044c49859afb94da8513d1
AWS IoT SDK: 0.3.0-BETA
rootCA: …/certs/rootCA.crt
clientCRT: …/certs/aws.crt
clientKey: …/certs/aws.key

Connecting to a15rh5mkrz3of4.iot.us-east-2.amazonaws.com:8883
Connecting…
Subscribing to topic:$aws/things/1203384677044c49859afb94da8513d1/shadow/update/delta
Entering main-loop, please press ctrl-c to quit the demo-app:
Vol_Up Button pressed!
{
“timestamp”: 1515340649, “volume”: “increase”
}
Vol_Up Button pressed!
{
“timestamp”: 1515340650, “volume”: “increase”
}
Vol_Up Button pressed!
{
“timestamp”: 1515340651, “volume”: “increase”
}
Vol_Up Button pressed!
{
“timestamp”: 1515340652, “volume”: “increase”
}
Vol_Up Button pressed!
{
“timestamp”: 1515340655, “volume”: “increase”
}
Vol_Down Button pressed!
{
“timestamp”: 1515340656, “volume”: “decrease”
}
Vol_Down Button pressed!
{
“timestamp”: 1515340657, “volume”: “decrease”


#2

Can you use a pastebin of some sort (or github gist if you prefer) for the logs. Topics get rather unwieldy otherwise.

@dieter, @billdavies : Again, have you got any clues on this? Same poster as the other AWS question but there is no certificate error here… and I’m afraid I still know nothing about AWS.


#3

I had (and still have) the same issue. One thing to try is to use a different browser. I had it working once (depending on the location I am running it from, it does work, in my case it worked from Barcelona/Spain), but only when I used Internet Explorer. It did not work with Chrome or Firefox.
However in the UK or Germany, it does not work at all.
When you press F12 for the developer tools in your browser, you’ll see some cross site referencing that is forbidden (some obscure Java, CORS security stuff that I dont have a clue about) prevents that. Hence you get the AJAX error in your browser.
I tried playing around with the CORS settings in the S3 bucket I believe - but without success and I did not really have more time to spend on this project.

Let us know please, if you are seeing the same issue with your browser (F12)!

Thomas


#4

I tried on firefox and chrome. may be some setting required at AWS end (which I don’t know) instead of just changing to IE.