summaryrefslogtreecommitdiffstats
path: root/signal-composer-binding/signal-composer-binding.cpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-09-18 14:32:20 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-12-14 11:00:25 +0100
commite338ed346a9596e67b0b6d2921ec2595c00e983d (patch)
tree45c1966ddf4f607229e9c031c1d6bfaee1c64ecc /signal-composer-binding/signal-composer-binding.cpp
parent744b3649c4e37c7696e85f2bf021fbd77ea40f4c (diff)
Doxygen documentation
Change-Id: I12efd66777cbc5217dfd68827f40727577df1406 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'signal-composer-binding/signal-composer-binding.cpp')
-rw-r--r--signal-composer-binding/signal-composer-binding.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/signal-composer-binding/signal-composer-binding.cpp b/signal-composer-binding/signal-composer-binding.cpp
index b0c6821..3ce60b8 100644
--- a/signal-composer-binding/signal-composer-binding.cpp
+++ b/signal-composer-binding/signal-composer-binding.cpp
@@ -39,7 +39,7 @@ void onEvent(const char *event, json_object *object)
sig->onReceivedCB(object);
}
}
-/// @brief entry point for client subscription request. Treatment itself is made in SigComp class.
+/// @brief entry point for client subscription request.
void subscribe(afb_req request)
{
if(true)
@@ -48,7 +48,7 @@ void subscribe(afb_req request)
afb_req_fail(request, "error", NULL);
}
-/// @brief entry point for client un-subscription request. Treatment itself is made in SigComp class.
+/// @brief entry point for client un-subscription request.
void unsubscribe(afb_req request)
{
if(true)
@@ -70,7 +70,7 @@ void loadConf(afb_req request)
afb_req_fail_f(request, "Loading configuration or subscription error", "Error code: -1");
}
-/// @brief entry point for get requests. Treatment itself is made in SigComp class.
+/// @brief entry point to list available signals
void list(afb_req request)
{
if(true)
@@ -87,12 +87,10 @@ void list(afb_req request)
void get(struct afb_req request)
{
int err = 0;
- struct json_object* args = nullptr, *ans = nullptr,
+ struct json_object* args = afb_req_json(request), *ans = nullptr,
*options = nullptr;
const char* sig;
- args = afb_req_json(request);
-
// Process about Raw CAN message on CAN bus directly
err = wrap_json_unpack(args, "{ss,s?o!}", "signals", &sig,
"options", &options);