aboutsummaryrefslogtreecommitdiffstats
path: root/signal-composer-binding
diff options
context:
space:
mode:
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);