diff options
author | Fulup Ar Foll <fulup@iot.bzh> | 2017-08-24 10:27:04 +0200 |
---|---|---|
committer | Fulup Ar Foll <fulup@iot.bzh> | 2017-08-24 10:27:04 +0200 |
commit | 4f5e3cc6f42e0c476b44fd8979469d452de7e759 (patch) | |
tree | a7085f864a6efb08b2f2397f91a40aa20b272790 /afb-source/ctl-binding.c | |
parent | de0a0595316d15c0cb639816fc3c0413541a49d5 (diff) |
Clean up module naming
Diffstat (limited to 'afb-source/ctl-binding.c')
-rw-r--r-- | afb-source/ctl-binding.c | 13 |
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()); |