Skip to content
This repository has been archived by the owner on Jun 13, 2019. It is now read-only.

OCDoResource: Initialize structure by assignment #4

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"<!(node -e \"require('nan')\")"
],
"libraries": [ '<!(pkg-config --libs octbstack)' ],
"cflags": [ '<!(pkg-config --cflags octbstack)' ]
"cflags": [
'<!(pkg-config --cflags octbstack)',
'-std=c++11'
]
},
"targets": [
{
Expand Down
2 changes: 1 addition & 1 deletion js/client.observe.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function getAbsoluteUrl( response ) {

return "coap://" +
ipv4Bytes[ 0 ] + "." + ipv4Bytes[ 1 ] + "." + ipv4Bytes[ 2 ] + "." + ipv4Bytes[ 3 ] + ":" +
portHolder.port + JSON.parse( response.resJSONPayload ).oc[ 0 ].href;
portHolder.port + JSON.parse( response.resJSONPayload ).oic[ 0 ].href;
}

iotivity.OCInit( null, 0, iotivity.OCMode.OC_CLIENT );
Expand Down
2 changes: 1 addition & 1 deletion js/server.observe.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ iotivity.OCCreateResource(
}
} );

console.log( "OCCreateResource() handler: Entering" );
console.log( "OCCreateResource() handler: Responding with " + payload );
iotivity.OCDoResponse( {
requestHandle: request.requestHandle.handle,
resourceHandle: request.resource.handle,
Expand Down
Loading