summaryrefslogtreecommitdiffstats
path: root/signal-composer-binding
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-07-27 10:51:22 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-07-27 11:35:26 +0200
commit5de482b05d504ecdd8ba3aeed6ce3ec6f39535e7 (patch)
tree1fae6a966abfaa4e59e5ca9b81c5b17a2fe261bd /signal-composer-binding
parent7f15ef65f420179b606f136ed805fae9d320b321 (diff)
Fix: wrong default getSignals action defined.
Since last controller changes this hardcoded default action definition. Change-Id: I0021fef000b2085efe0deda550cff243afd6711d Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'signal-composer-binding')
-rw-r--r--signal-composer-binding/signal-composer.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/signal-composer-binding/signal-composer.cpp b/signal-composer-binding/signal-composer.cpp
index f7c1971..f9ed9c5 100644
--- a/signal-composer-binding/signal-composer.cpp
+++ b/signal-composer-binding/signal-composer.cpp
@@ -162,10 +162,9 @@ int Composer::loadOneSourceAPI(json_object* sourceJ)
if(!getSignalsJ)
{
getSignalsJ = json_object_new_object();
- std::string uri = "api://" + std::string(api);
- std::string function = "subscribe";
- json_object_object_add(getSignalsJ, "uri", json_object_new_string(uri.c_str()));
- json_object_object_add(getSignalsJ, "function", json_object_new_string(function.c_str()));
+
+ std::string uri = "api://" + std::string(api) + "#subscribe";
+ json_object_object_add(getSignalsJ, "action", json_object_new_string(uri.c_str()));
}
getSignalsCtl = convert2Action("getSignals", getSignalsJ);