intel / iotivity-node

Node.js bindings for IoTivity
https://www.iotivity.org/
42 stars 44 forks source link

param type mismatch in OCCreateResource #130

Closed sanbeam closed 7 years ago

sanbeam commented 7 years ago

Both resource type and interface type parameters for creating a resource are arrays as per spec. But the API takes in String params.

gabrielschulhof commented 7 years ago

This is by design. The implementation takes the first type/interface and passes it to OCCreateResource and then takes all subsequent types/interfaces and passes them to OCBindResourceTypeToResource resp. OCBindInterfaceToResource.