From e1ef945da61ae0dfec7a5c8d1e9cde2716c0c1fd Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Fri, 16 Nov 2018 16:31:59 +0100 Subject: Binding migration to v3 Change-Id: I8a5bc18a0bf8ad05ce83b6ff64d4329d42bff2b0 Signed-off-by: Romain Forlot --- plugins/low-can.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/low-can.cpp') 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));} -- cgit 1.2.3-korg