summaryrefslogtreecommitdiffstats
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-24 10:27:04 +0200
commit4f5e3cc6f42e0c476b44fd8979469d452de7e759 (patch)
treea7085f864a6efb08b2f2397f91a40aa20b272790 /afb-source/ctl-binding.c
parentde0a0595316d15c0cb639816fc3c0413541a49d5 (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());