node-wot
node-wot copied to clipboard
Update API.md
https://github.com/eclipse/thingweb.node-wot/pull/799 was referring to API.md.
I quickly scanned the document since it has been a while since I last checked it. I think there are some aspects we need to update.
- I believe it uses an out-dated API, for example readProperty does not call value() https://github.com/eclipse/thingweb.node-wot/blob/b872b5b4d06a5feee9fe503af4ea5598c0ba674d/API.md?plain=1#L182-L185
- style: it uses
new Promise()
... instead ofasync await
. For example https://github.com/eclipse/thingweb.node-wot/blob/b872b5b4d06a5feee9fe503af4ea5598c0ba674d/API.md?plain=1#L124-L129 - maybe more issues?