Hi Sakari, Thankyou for your help.
I downlaoded the source code from link provided by you. But, when I trying to run the command "npm install" I got the following errors. cc1plus: error: unrecognized command line option ?-std=c++11? make: *** [Release/obj.target/iotivity/generated/constants.o] Error 1 make: Leaving directory `/home/kraghavendra/Downloads/iot-rest-api-server/node_modules/iotivity-node/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23) gyp ERR! stack at ChildProcess.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12) gyp ERR! System Linux 3.5.0-23-generic gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/kraghavendra/Downloads/iot-rest-api-server/node_modules/iotivity-node gyp ERR! node -v v0.10.41 gyp ERR! node-gyp -v v1.0.1 gyp ERR! not ok npm ERR! iotivity-node at 1.0.0-1 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the iotivity-node at 1.0.0-1 install script. npm ERR! This is most likely a problem with the iotivity-node package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get their info via: npm ERR! npm owner ls iotivity-node npm ERR! There is likely additional logging output above. npm ERR! System Linux 3.5.0-23-generic npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" npm ERR! cwd /home/kraghavendra/Downloads/iot-rest-api-server npm ERR! node -v v0.10.41 npm ERR! npm -v 1.4.29 npm ERR! code ELIFECYCLE npm ERR! not ok code 0 Please help me in resolving this error. Regards, Raghavendra K. ________________________________________ From: Poussa, Sakari <[email protected]> Sent: Thursday, December 17, 2015 1:02 PM To: Raghavendra Kakarla; iotivity-dev at lists.iotivity.org Subject: Re: [dev] Restful application examples Raghavendra, Not in the C code, but we have done a Node.JS REST API server for OIC (using the iotivity-node bindings which is using the iotivity): https://github.com/01org/iot-rest-api-server The repo also contains few test apps for the rest client. Sakari From: <iotivity-dev-bounces at lists.iotivity.org<mailto:iotivity-dev-bounces at lists.iotivity.org>> on behalf of Raghavendra Kakarla <Raghavendra.Kakarla at inedasystems.com<mailto:[email protected]>> Date: Thursday, December 17, 2015 at 08:40 To: "iotivity-dev at lists.iotivity.org<mailto:iotivity-dev at lists.iotivity.org>" <iotivity-dev at lists.iotivity.org<mailto:iotivity-dev at lists.iotivity.org>> Subject: [dev] Restful application examples Hi All, I want to send the data from the iotivity sensor node to cloup through iotivity gateway using restful apis. Could you please give me the information that is there any restful client and server application in c in iotivity. Thanks in advance. Regards, Raghavendra K. ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________
