aboutsummaryrefslogtreecommitdiffstats
path: root/afb-source/ctl-binding.c
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2017-08-24 10:27:04 +0200
committerFulup Ar Foll <fulup@iot.bzh>2017-08-25 22:37:19 +0200
commit16d177bf418fb22794fbbd4f1aac489cf82d7f48 (patch)
tree35aee7d9b3ae226fc5612b9ac6848d7f32345362 /afb-source/ctl-binding.c
parent5fe4b5cac53608f27d1077eb45200cc1e5980140 (diff)
Clean up module naming
Diffstat (limited to 'afb-source/ctl-binding.c')
-rw-r--r--afb-source/ctl-binding.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/afb-source/ctl-binding.c b/afb-source/ctl-binding.c
index 4f6ecd3..6840b5c 100644
--- a/afb-source/ctl-binding.c
+++ b/afb-source/ctl-binding.c
@@ -22,13 +22,20 @@
#include "ctl-binding.h"
-
-
// Include Binding Stub generated from Json OpenAPI
#include "ctl-apidef.h"
+PUBLIC void ctlapi_ping (afb_req request) {
+ static int count=0;
+
+ count++;
+ AFB_NOTICE ("Controller:ping count=%d", count);
+ afb_req_success(request,json_object_new_int(count), NULL);
+
+ return;
+}
-PUBLIC void ctlapi_monitor (afb_req request) {
+PUBLIC void ctlapi_subscribe (afb_req request) {
// subscribe Client to event
int err = afb_req_subscribe(request, TimerEvtGet());