{"action":"created","issue":{"url":"https://api.github.com/repos/otcshare/iotivity-node/issues/76","repository_url":"https://api.github.com/repos/otcshare/iotivity-node","labels_url":"https://api.github.com/repos/otcshare/iotivity-node/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/otcshare/iotivity-node/issues/76/comments","events_url":"https://api.github.com/repos/otcshare/iotivity-node/issues/76/events","html_url":"https://github.com/otcshare/iotivity-node/issues/76","id":180817299,"number":76,"title":"iotivity-node on iotivity 1.2.0-RC2","user":{"login":"iamsanjeev","id":1009596,"avatar_url":"https://avatars.githubusercontent.com/u/1009596?v=3","gravatar_id":"","url":"https://api.github.com/users/iamsanjeev","html_url":"https://github.com/iamsanjeev","followers_url":"https://api.github.com/users/iamsanjeev/followers","following_url":"https://api.github.com/users/iamsanjeev/following{/other_user}","gists_url":"https://api.github.com/users/iamsanjeev/gists{/gist_id}","starred_url":"https://api.github.com/users/iamsanjeev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamsanjeev/subscriptions","organizations_url":"https://api.github.com/users/iamsanjeev/orgs","repos_url":"https://api.github.com/users/iamsanjeev/repos","events_url":"https://api.github.com/users/iamsanjeev/events{/privacy}","received_events_url":"https://api.github.com/users/iamsanjeev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-10-04T06:49:42Z","updated_at":"2016-10-04T12:50:31Z","closed_at":"2016-10-04T12:50:31Z","body":"Made the following changes to make iotivity-node work on iotivity 1.2.0-RC2\r\nPlatform : artik\r\n\r\ndiff --git a/src/structures/oc-dev-addr.cc b/src/structures/oc-dev-addr.cc\r\nindex ebe26c6..eb7b03a 100644\r\n--- a/src/structures/oc-dev-addr.cc\r\n+++ b/src/structures/oc-dev-addr.cc\r\n@@ -30,7 +30,7 @@ Local<Object> js_OCDevAddr(OCDevAddr *address) {\r\n \r\n   SET_VALUE_ON_OBJECT(returnValue, Number, address, adapter);\r\n   SET_VALUE_ON_OBJECT(returnValue, Number, address, flags);\r\n-  SET_VALUE_ON_OBJECT(returnValue, Number, address, interface);\r\n+  SET_VALUE_ON_OBJECT(returnValue, Number, address, ifindex);\r\n   SET_VALUE_ON_OBJECT(returnValue, Number, address, port);\r\n \r\n   // addr.addr\r\n@@ -53,7 +53,7 @@ bool c_OCDevAddr(Local<Object> jsDevAddr, OCDevAddr *address) {\r\n                       false, jsDevAddr, Uint32Value);\r\n   VALIDATE_AND_ASSIGN(local, flags, OCTransportFlags, IsUint32, \"addr\", false,\r\n                       jsDevAddr, Uint32Value);\r\n-  VALIDATE_AND_ASSIGN(local, interface, uint32_t, IsUint32, \"addr\", false,\r\n+  VALIDATE_AND_ASSIGN(local, ifindex, uint32_t, IsUint32, \"addr\", false,\r\n                       jsDevAddr, Uint32Value);\r\n   VALIDATE_AND_ASSIGN(local, port, uint16_t, IsUint32, \"addr\", false, jsDevAddr,\r\n                       Uint32Value);\r\ndiff --git a/src/structures/oc-payload.cc b/src/structures/oc-payload.cc\r\nindex 688a935..128590a 100644\r\n--- a/src/structures/oc-payload.cc\r\n+++ b/src/structures/oc-payload.cc\r\n@@ -237,10 +237,10 @@ static Local<Object> js_OCLinksPayload(OCLinksPayload *payload) {\r\n   ADD_STRING_ARRAY(returnValue, payload, itf);\r\n   SET_STRING_IF_NOT_NULL(returnValue, payload, rel);\r\n   Nan::Set(returnValue, Nan::New(\"obs\").ToLocalChecked(),\r\n-           Nan::New(payload->obs));\r\n+           Nan::New(payload->p & 0x2));\r\n   SET_STRING_IF_NOT_NULL(returnValue, payload, title);\r\n-  SET_STRING_IF_NOT_NULL(returnValue, payload, uri);\r\n-  ADD_STRING_ARRAY(returnValue, payload, mt);\r\n+  SET_STRING_IF_NOT_NULL(returnValue, payload, anchor);\r\n+  ADD_STRING_ARRAY(returnValue, payload, type);\r\n \r\n   return returnValue;\r\n }\r\n\r\nDevices are discovered but no resources are reported.\r\n\r\nInsecure mode.\r\n\r\nNative client works fine.\r\n"},"comment":{"url":"https://api.github.com/repos/otcshare/iotivity-node/issues/comments/251378527","html_url":"https://github.com/otcshare/iotivity-node/issues/76#issuecomment-251378527","issue_url":"https://api.github.com/repos/otcshare/iotivity-node/issues/76","id":251378527,"user":{"login":"iamsanjeev","id":1009596,"avatar_url":"https://avatars.githubusercontent.com/u/1009596?v=3","gravatar_id":"","url":"https://api.github.com/users/iamsanjeev","html_url":"https://github.com/iamsanjeev","followers_url":"https://api.github.com/users/iamsanjeev/followers","following_url":"https://api.github.com/users/iamsanjeev/following{/other_user}","gists_url":"https://api.github.com/users/iamsanjeev/gists{/gist_id}","starred_url":"https://api.github.com/users/iamsanjeev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamsanjeev/subscriptions","organizations_url":"https://api.github.com/users/iamsanjeev/orgs","repos_url":"https://api.github.com/users/iamsanjeev/repos","events_url":"https://api.github.com/users/iamsanjeev/events{/privacy}","received_events_url":"https://api.github.com/users/iamsanjeev/received_events","type":"User","site_admin":false},"created_at":"2016-10-04T12:50:31Z","updated_at":"2016-10-04T12:50:31Z","body":"OCTBSTACK_CFLAGS was missing ROUTING_EP while building.\r\nThat fixed it. Kudos Gabriel Thank you so much."}}
{"actor":{"display_login":"iamsanjeev"}}