aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-11-16 16:31:59 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2018-11-23 09:59:57 +0100
commite1ef945da61ae0dfec7a5c8d1e9cde2716c0c1fd (patch)
tree43ebffa011d24f30f654f8914bc96d43cb3dce74 /plugins
parent71507d3afbb92f6751d6d7af5eeb1796ff13f246 (diff)
Binding migration to v3guppy_6.99.1guppy/6.99.16.99.1
Change-Id: I8a5bc18a0bf8ad05ce83b6ff64d4329d42bff2b0 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/gps.cpp2
-rw-r--r--plugins/low-can.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/gps.cpp b/plugins/gps.cpp
index 4913f31..92120f7 100644
--- a/plugins/gps.cpp
+++ b/plugins/gps.cpp
@@ -62,7 +62,7 @@ CTLP_CAPI (getHeading, source, argsJ, eventJ) {
ctx->setSignalValue(ctx->aSignal, 0, json_object_new_double(heading));
}
- AFB_NOTICE("======== Heading: %f", heading);
+ AFB_API_NOTICE(source->api, "======== Heading: %f", heading);
return err;
}
// extern "C" closure
diff --git a/plugins/low-can.cpp b/plugins/low-can.cpp
index ded20f1..8eec886 100644
--- a/plugins/low-can.cpp
+++ b/plugins/low-can.cpp
@@ -121,7 +121,7 @@ CTLP_CAPI (subscribeToLow, source, argsJ, eventJ) {
{
json_object_get(pluginCtx->subscriptionBatch);
AFB_DEBUG("Calling subscribe with %s", json_object_to_json_string(pluginCtx->subscriptionBatch));
- err = afb_service_call_sync("low-can", "subscribe", pluginCtx->subscriptionBatch, &responseJ);
+ err = afb_api_call_sync_legacy(source->api, "low-can", "subscribe", pluginCtx->subscriptionBatch, &responseJ);
if(err)
{AFB_ERROR("Subscribe to '%s' responseJ:%s", json_object_to_json_string(pluginCtx->subscriptionBatch), json_object_to_json_string(responseJ));}