eclipse-thingweb / playground

Browser or Node.js based tool for validating and playing with W3C Thing Descriptions
https://playground.thingweb.io/
Other
28 stars 22 forks source link

Detecting protocols for AID generation #507

Closed egekorkan closed 10 months ago

egekorkan commented 10 months ago

The current AID generator hardcodes http and coap at this line. It should first detect the protocol and use the appropriate one.

danielpeintner commented 10 months ago

Note: I think in the case of the playground the 2nd parameter should be omitted and the tool will figure out all available bindings itself.

const AASInstance = assetInterfaceDescriptionUtil.transformTD2SM(tdToConvert, ["http", "coap"]) --> const AASInstance = assetInterfaceDescriptionUtil.transformTD2SM(tdToConvert)