Closed sanbeam closed 8 years ago
Gabriel, I have set the OCTBSTACK_CFLAGS/LIBS to a version of iotivity based on 1.2.0-RC2 then I do node-gyp configure and rebuild.
I get the following error npm http GET https://github.com/01org/iot-js-api-test-suite.git npm http 200 https://github.com/01org/iot-js-api-test-suite.git npm ERR! not a package /root/tmp/npm-6747-KqXnLwys/1475581201101-0.990159175824374/tmp.tgz npm ERR! Error: ENOENT, open '/root/tmp/npm-6747-KqXnLwys/1475581201101-0.990159175824374/package/package.json' npm ERR! If you need help, you may report this log at: npm ERR! http://github.com/isaacs/npm/issues npm ERR! or email it to: npm ERR! npm-@googlegroups.com
npm ERR! System Linux 3.10.93 npm ERR! command "node" "/usr/bin/npm" "install" npm ERR! cwd /root/iotivity/wsi/iotivity-node npm ERR! node -v v0.10.42 npm ERR! npm -v 1.3.6 npm ERR! path /root/tmp/npm-6747-KqXnLwys/1475581201101-0.990159175824374/package/package.json
I removed the test suite from package.json and built it.
I have two resources that have same version of iotivity. Native client reports the resouces. This version of iotivity-node does not.
OCTBSTACK_CFLAGS was missing ROUTING_EP while building. That fixed it. Kudos Gabriel Thank you so much.
Made the following changes to make iotivity-node work on iotivity 1.2.0-RC2 Platform : artik
diff --git a/src/structures/oc-dev-addr.cc b/src/structures/oc-dev-addr.cc index ebe26c6..eb7b03a 100644 --- a/src/structures/oc-dev-addr.cc +++ b/src/structures/oc-dev-addr.cc @@ -30,7 +30,7 @@ Local
SET_VALUE_ON_OBJECT(returnValue, Number, address, adapter); SET_VALUE_ON_OBJECT(returnValue, Number, address, flags);
SET_VALUE_ON_OBJECT(returnValue, Number, address, ifindex); SET_VALUE_ON_OBJECT(returnValue, Number, address, port);
// addr.addr @@ -53,7 +53,7 @@ bool c_OCDevAddr(Local
ADD_STRING_ARRAY(returnValue, payload, type);
return returnValue; }
Devices are discovered but no resources are reported.
Insecure mode.
Native client works fine.