From 0e0ba3bace7e5a7bbe251845eaa25001e9698097 Mon Sep 17 00:00:00 2001 From: Peihsun Yeh Date: Wed, 31 Jul 2019 15:49:58 -0700 Subject: [PATCH] error in using iothub handles --- pnpbridge/src/pnpbridge/inc/iothub_comms.h | 2 +- pnpbridge/src/pnpbridge/src/pnpbridge.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pnpbridge/src/pnpbridge/inc/iothub_comms.h b/pnpbridge/src/pnpbridge/inc/iothub_comms.h index ed3565b..d2b784b 100644 --- a/pnpbridge/src/pnpbridge/inc/iothub_comms.h +++ b/pnpbridge/src/pnpbridge/inc/iothub_comms.h @@ -11,7 +11,7 @@ extern "C" int IotComms_RegisterPnPInterfaces( - MX_IOT_HANDLE_TAG IotHandle, + MX_IOT_HANDLE_TAG* IotHandle, const char* ModelRepoId, DIGITALTWIN_INTERFACE_CLIENT_HANDLE* interfaces, int InterfaceCount diff --git a/pnpbridge/src/pnpbridge/src/pnpbridge.c b/pnpbridge/src/pnpbridge/src/pnpbridge.c index 0cc45f5..65b1d4d 100644 --- a/pnpbridge/src/pnpbridge/src/pnpbridge.c +++ b/pnpbridge/src/pnpbridge/src/pnpbridge.c @@ -315,7 +315,7 @@ DiscoveryAdapter_PublishInterfaces() { PnpAdapterManager_GetAllInterfaces(pnpBridge->PnpMgr, &interfaces, &interfaceCount); LogInfo("Publishing Azure Pnp Interface, count %d", interfaceCount); - IotComms_RegisterPnPInterfaces(pnpBridge->IotHandle, + IotComms_RegisterPnPInterfaces(&pnpBridge->IotHandle, pnpBridge->Configuration.ConnParams->DeviceCapabilityModelUri, interfaces, interfaceCount);