Open ttzeng opened 7 years ago
@ttzeng, try changing property name resourceTypes to resourceType. I recently checked this query-oriented discovery and it was working fine for me.
Thanks @nagineni , it works. It really discovers the desired resource type in the given string array, so it seems a property name typo and will be fixed in future commit?
@ttzeng did you mean to fix the spec, i.e. resourceType
should actually be resourceTypes
and require it to be an array?
@zolkis sorry for my misled. I meant the property name resourceTypes in the Spec right refers a array of strings, but it sounds a typo in the iotivity-node implementation, so I was wondering whether it will be fixed in future iotivity-node revisions?
Per the findResources API, I thought passing
options.resourceTypes
argument tofindResources()
can discover only the desired resource type, but the following code snippet still got all resource in thefoundResource
listener. Is this valid?