tuya / tuya-connector-nodejs

nodejs sdk
38 stars 17 forks source link

Wrong request for tuya.deviceFunction.command() #15

Open lucyd-dev opened 1 year ago

lucyd-dev commented 1 year ago

I saw the .deviceFunction.command() function but get every time an error with 'uri path invalid'. After looking in the functions.ts file of this repo, I saw that I was right. There is an param to add commands (line 55). But I think the Request Function is messed up because it is missing the command param and set to GET instead of POST (line 94).

Am I right in my suspicion?

andrefelipe18 commented 1 year ago

yea, use tuya.request instead of .deviceFunction.command()

Looks like this repository has been abandoned :(

Erchoc commented 11 months ago

You can use tuya.request first, the demo func perhaps error.