TheThingsArchive / node-app-sdk

The Things Network Application SDK for Node.JS
https://www.thethingsnetwork.org/docs/node-js/
MIT License
41 stars 28 forks source link

Update send to downlink in API.md #37

Closed tjeerdytsma closed 7 years ago

tjeerdytsma commented 7 years ago

The documentation in API.md still lists send. It seems it is replaced by the downlink method.

FokkeZB commented 7 years ago

It's actually the other way around. The current version on NPM uses downlink(), but the master (get it from NPM via: npm i node-ttn@refactor) uses send().

tjeerdytsma commented 7 years ago

Thanks for your reply, now I understand. Took some time to dive a little deeper in npm. Just learned about tags (https://docs.npmjs.com/cli/dist-tag) :)

As the package name is 'ttn' and not 'node-ttn' I guess you mean npm i ttn@refactor. Correct?

FokkeZB commented 7 years ago

Correct, sorry for the confusion ;)