hard coding component name for serial for now, need to make it work in cases of self describing devices

This commit is contained in:
Peihsun Yeh 2019-07-26 18:23:03 -07:00
Родитель b066452cdd
Коммит 17be762474
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1507,9 +1507,9 @@ int SerialPnp_CreatePnpInterface(PNPADAPTER_CONTEXT AdapterHandle, PNPMESSAGE ms
commandCount = SerialPnp_GetListCount(interfaceDef->Commands);
DIGITALTWIN_CLIENT_RESULT dtRes;
PNPMESSAGE_PROPERTIES* props = PnpMessage_AccessProperties(msg);
//PNPMESSAGE_PROPERTIES* props = PnpMessage_AccessProperties(msg);
dtRes = DigitalTwin_InterfaceClient_Create(interfaceId,
props->ComponentName,
"serial" /* props->ComponentName */, // TODO: add component name into serial interface definition
NULL,
deviceContext,
&pnpInterfaceClient);