A template to kickstart creating a DSLink using the JavaScript SDK.
please install nodejs version 10 or higher before installing the dslink
https://nodejs.org/en/download/package-manager/
creating a zip with these files so you can install it to the dsa broker through the sys action at /sys/links/Install from Zip
- dslink.json
- package.json
- install.js
- index.js
- any other js file you created
creating a zip with these files so you can install it to the dsa broker through the sys action at /sys/links/Install from Zip
- dslink.json
- remove line 10 from the file before zipping,
"node install.js"
- remove line 10 from the file before zipping,
- package.json
- node_modules folder
- index.js
- any other js file you created
Please check these examples of responder dslink:
https://github.com/IOT-DSA/sdk-dslink-ts/tree/master/example/nodejs-responder
Examples of requester dslink:
https://github.com/IOT-DSA/sdk-dslink-ts/tree/master/example/nodejs-requester