Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lucyd-dev opened this issue Jun 1, 2023 · 2 comments
Open

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

lucyd-dev opened this issue Jun 1, 2023 · 2 comments

Comments

@lucyd-dev
Copy link

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
Copy link

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

Looks like this repository has been abandoned :(

@Erchoc
Copy link
Contributor

Erchoc commented Aug 10, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants