{"action":"created","comment":{"url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/pulls/comments/57223717","id":57223717,"diff_hunk":"@@ -221,3 +222,68 @@ std::string iota::esp::ngsi::IotaMqttServiceImpl::doPublishCB(\n \n   return cb_response;\n }\n+\n+std::string iota::esp::ngsi::IotaMqttServiceImpl::doPublishMultiCB(\n+    std::string& apikey, std::string& idDevice,\n+    std::vector<std::string>& v_json) {\n+  if (apikey == \"\") {\n+    std::ostringstream what;\n+    what << \"Mandatory field missing: \";\n+    what << \"[apikey]\";\n+\n+    throw iota::IotaException(what.str(), \"\", 400);\n+  }\n+\n+  if (idDevice == \"\") {\n+    std::ostringstream what;\n+    what << \"Mandatory field missing: \";\n+    what << \"[idDevice]\";\n+    throw iota::IotaException(what.str(), \"\", 400);\n+  }\n+\n+  std::string cb_response;\n+\n+  IOTA_LOG_DEBUG(\n+      m_logger,\n+      \"IotaMqttServiceImpl, doPublishMultiCB... payload: [VECTOR OF MEASURES]\"\n+          << \" apikey: [ \" << apikey << \"] device: [\" << idDevice << \"]\");\n+\n+  boost::property_tree::ptree pt_cb;\n+\n+  try {\n+    add_info(pt_cb, apikey);\n+    std::string serviceMQTT = pt_cb.get<std::string>(\"service\", \"\");\n+\n+    boost::shared_ptr<iota::Device> dev =\n+        resthandle_ptr_->get_device(idDevice, serviceMQTT);\n+\n+    iota::ContextElement ngsi_context_element(idDevice, \"\", \"false\");\n+\n+    ngsi_context_element.set_env_info(pt_cb, dev);\n+\n+    IOTA_LOG_DEBUG(m_logger,\n+                   \"MQTTService: Creating entity : [\"\n+                       << ngsi_context_element.get_string()\n+                       << \"]\");  // call to populate internal fields from cache,\n+                                 // or by default, etc... not interesated in","path":"src/mqtt/IotaMqttServiceImpl.cc","position":55,"original_position":55,"commit_id":"cfabb5407a210b714c5af47cb9a528438a10d8be","original_commit_id":"cfabb5407a210b714c5af47cb9a528438a10d8be","user":{"login":"kzangeli","id":5338380,"avatar_url":"https://avatars.githubusercontent.com/u/5338380?v=3","gravatar_id":"","url":"https://api.github.com/users/kzangeli","html_url":"https://github.com/kzangeli","followers_url":"https://api.github.com/users/kzangeli/followers","following_url":"https://api.github.com/users/kzangeli/following{/other_user}","gists_url":"https://api.github.com/users/kzangeli/gists{/gist_id}","starred_url":"https://api.github.com/users/kzangeli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kzangeli/subscriptions","organizations_url":"https://api.github.com/users/kzangeli/orgs","repos_url":"https://api.github.com/users/kzangeli/repos","events_url":"https://api.github.com/users/kzangeli/events{/privacy}","received_events_url":"https://api.github.com/users/kzangeli/received_events","type":"User","site_admin":false},"body":"typo: interesated","created_at":"2016-03-23T19:40:32Z","updated_at":"2016-03-23T19:40:32Z","html_url":"https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus/pull/414#discussion_r57223717","pull_request_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/pulls/414","_links":{"self":{"href":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/pulls/comments/57223717"},"html":{"href":"https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus/pull/414#discussion_r57223717"},"pull_request":{"href":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/pulls/414"}}},"pull_request":{"url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/pulls/414","id":63914637,"html_url":"https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus/pull/414","diff_url":"https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus/pull/414.diff","patch_url":"https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus/pull/414.patch","issue_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/issues/414","number":414,"state":"open","locked":false,"title":"Feature/mqtt multiattribute","user":{"login":"dadivx","id":3832164,"avatar_url":"https://avatars.githubusercontent.com/u/3832164?v=3","gravatar_id":"","url":"https://api.github.com/users/dadivx","html_url":"https://github.com/dadivx","followers_url":"https://api.github.com/users/dadivx/followers","following_url":"https://api.github.com/users/dadivx/following{/other_user}","gists_url":"https://api.github.com/users/dadivx/gists{/gist_id}","starred_url":"https://api.github.com/users/dadivx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dadivx/subscriptions","organizations_url":"https://api.github.com/users/dadivx/orgs","repos_url":"https://api.github.com/users/dadivx/repos","events_url":"https://api.github.com/users/dadivx/events{/privacy}","received_events_url":"https://api.github.com/users/dadivx/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-23T16:47:43Z","updated_at":"2016-03-23T19:40:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3e4e79ed0a85bd3565dee16812d6837747d8dd32","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/pulls/414/commits","review_comments_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/pulls/414/comments","review_comment_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/pulls/comments{/number}","comments_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/issues/414/comments","statuses_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/statuses/cfabb5407a210b714c5af47cb9a528438a10d8be","head":{"label":"telefonicaid:feature/mqtt_multiattribute","ref":"feature/mqtt_multiattribute","sha":"cfabb5407a210b714c5af47cb9a528438a10d8be","user":{"login":"telefonicaid","id":968363,"avatar_url":"https://avatars.githubusercontent.com/u/968363?v=3","gravatar_id":"","url":"https://api.github.com/users/telefonicaid","html_url":"https://github.com/telefonicaid","followers_url":"https://api.github.com/users/telefonicaid/followers","following_url":"https://api.github.com/users/telefonicaid/following{/other_user}","gists_url":"https://api.github.com/users/telefonicaid/gists{/gist_id}","starred_url":"https://api.github.com/users/telefonicaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telefonicaid/subscriptions","organizations_url":"https://api.github.com/users/telefonicaid/orgs","repos_url":"https://api.github.com/users/telefonicaid/repos","events_url":"https://api.github.com/users/telefonicaid/events{/privacy}","received_events_url":"https://api.github.com/users/telefonicaid/received_events","type":"Organization","site_admin":false},"repo":{"id":32021594,"name":"fiware-IoTAgent-Cplusplus","full_name":"telefonicaid/fiware-IoTAgent-Cplusplus","owner":{"login":"telefonicaid","id":968363,"avatar_url":"https://avatars.githubusercontent.com/u/968363?v=3","gravatar_id":"","url":"https://api.github.com/users/telefonicaid","html_url":"https://github.com/telefonicaid","followers_url":"https://api.github.com/users/telefonicaid/followers","following_url":"https://api.github.com/users/telefonicaid/following{/other_user}","gists_url":"https://api.github.com/users/telefonicaid/gists{/gist_id}","starred_url":"https://api.github.com/users/telefonicaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telefonicaid/subscriptions","organizations_url":"https://api.github.com/users/telefonicaid/orgs","repos_url":"https://api.github.com/users/telefonicaid/repos","events_url":"https://api.github.com/users/telefonicaid/events{/privacy}","received_events_url":"https://api.github.com/users/telefonicaid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus","description":"IoTAgent development framework for C++","fork":false,"url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus","forks_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/forks","keys_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/teams","hooks_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/hooks","issue_events_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/issues/events{/number}","events_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/events","assignees_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/assignees{/user}","branches_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/branches{/branch}","tags_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/tags","blobs_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/git/refs{/sha}","trees_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/statuses/{sha}","languages_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/languages","stargazers_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/stargazers","contributors_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/contributors","subscribers_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/subscribers","subscription_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/subscription","commits_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/commits{/sha}","git_commits_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/git/commits{/sha}","comments_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/comments{/number}","issue_comment_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/issues/comments{/number}","contents_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/contents/{+path}","compare_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/merges","archive_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/downloads","issues_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/issues{/number}","pulls_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/pulls{/number}","milestones_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/milestones{/number}","notifications_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/labels{/name}","releases_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/releases{/id}","deployments_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/deployments","created_at":"2015-03-11T14:18:59Z","updated_at":"2016-01-12T15:20:13Z","pushed_at":"2016-03-23T16:47:43Z","git_url":"git://github.com/telefonicaid/fiware-IoTAgent-Cplusplus.git","ssh_url":"git@github.com:telefonicaid/fiware-IoTAgent-Cplusplus.git","clone_url":"https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus.git","svn_url":"https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus","homepage":null,"size":9485,"stargazers_count":8,"watchers_count":8,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":12,"forks":9,"open_issues":12,"watchers":8,"default_branch":"develop"}},"base":{"label":"telefonicaid:release/1.3.1","ref":"release/1.3.1","sha":"57b0ee174d96b622b5a551825bf68845bb4096d1","user":{"login":"telefonicaid","id":968363,"avatar_url":"https://avatars.githubusercontent.com/u/968363?v=3","gravatar_id":"","url":"https://api.github.com/users/telefonicaid","html_url":"https://github.com/telefonicaid","followers_url":"https://api.github.com/users/telefonicaid/followers","following_url":"https://api.github.com/users/telefonicaid/following{/other_user}","gists_url":"https://api.github.com/users/telefonicaid/gists{/gist_id}","starred_url":"https://api.github.com/users/telefonicaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telefonicaid/subscriptions","organizations_url":"https://api.github.com/users/telefonicaid/orgs","repos_url":"https://api.github.com/users/telefonicaid/repos","events_url":"https://api.github.com/users/telefonicaid/events{/privacy}","received_events_url":"https://api.github.com/users/telefonicaid/received_events","type":"Organization","site_admin":false},"repo":{"id":32021594,"name":"fiware-IoTAgent-Cplusplus","full_name":"telefonicaid/fiware-IoTAgent-Cplusplus","owner":{"login":"telefonicaid","id":968363,"avatar_url":"https://avatars.githubusercontent.com/u/968363?v=3","gravatar_id":"","url":"https://api.github.com/users/telefonicaid","html_url":"https://github.com/telefonicaid","followers_url":"https://api.github.com/users/telefonicaid/followers","following_url":"https://api.github.com/users/telefonicaid/following{/other_user}","gists_url":"https://api.github.com/users/telefonicaid/gists{/gist_id}","starred_url":"https://api.github.com/users/telefonicaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telefonicaid/subscriptions","organizations_url":"https://api.github.com/users/telefonicaid/orgs","repos_url":"https://api.github.com/users/telefonicaid/repos","events_url":"https://api.github.com/users/telefonicaid/events{/privacy}","received_events_url":"https://api.github.com/users/telefonicaid/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus","description":"IoTAgent development framework for C++","fork":false,"url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus","forks_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/forks","keys_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/keys{/key_id}","collaborators_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/teams","hooks_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/hooks","issue_events_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/issues/events{/number}","events_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/events","assignees_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/assignees{/user}","branches_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/branches{/branch}","tags_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/tags","blobs_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/git/refs{/sha}","trees_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/git/trees{/sha}","statuses_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/statuses/{sha}","languages_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/languages","stargazers_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/stargazers","contributors_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/contributors","subscribers_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/subscribers","subscription_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/subscription","commits_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/commits{/sha}","git_commits_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/git/commits{/sha}","comments_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/comments{/number}","issue_comment_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/issues/comments{/number}","contents_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/contents/{+path}","compare_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/compare/{base}...{head}","merges_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/merges","archive_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/downloads","issues_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/issues{/number}","pulls_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/pulls{/number}","milestones_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/milestones{/number}","notifications_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/labels{/name}","releases_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/releases{/id}","deployments_url":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/deployments","created_at":"2015-03-11T14:18:59Z","updated_at":"2016-01-12T15:20:13Z","pushed_at":"2016-03-23T16:47:43Z","git_url":"git://github.com/telefonicaid/fiware-IoTAgent-Cplusplus.git","ssh_url":"git@github.com:telefonicaid/fiware-IoTAgent-Cplusplus.git","clone_url":"https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus.git","svn_url":"https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus","homepage":null,"size":9485,"stargazers_count":8,"watchers_count":8,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":12,"forks":9,"open_issues":12,"watchers":8,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/pulls/414"},"html":{"href":"https://github.com/telefonicaid/fiware-IoTAgent-Cplusplus/pull/414"},"issue":{"href":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/issues/414"},"comments":{"href":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/issues/414/comments"},"review_comments":{"href":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/pulls/414/comments"},"review_comment":{"href":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/pulls/414/commits"},"statuses":{"href":"https://api.github.com/repos/telefonicaid/fiware-IoTAgent-Cplusplus/statuses/cfabb5407a210b714c5af47cb9a528438a10d8be"}}}}