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

Tuya mock #3

Closed
briggitteorellana opened this issue Sep 23, 2020 · 8 comments
Closed

Tuya mock #3

briggitteorellana opened this issue Sep 23, 2020 · 8 comments

Comments

@briggitteorellana
Copy link

¿¿¿how do i emulate a device tuya?

@codetheweb codetheweb transferred this issue from TuyaAPI/cli Sep 23, 2020
@codetheweb
Copy link
Member

Documentation is here: https://tuyaapi.github.io/stub/index.html

It may be helpful to look at the tests for TuyAPI, which use the stub module: https://github.com/codetheweb/tuyapi/blob/master/test/stub.js.

@briggitteorellana
Copy link
Author

thanks, but how do i run this file, how do i use it? sorry but i'm new to this and i need to use. thank youuuu
como

@briggitteorellana
Copy link
Author

enviar

I don't know if I'm fine, I don't know what else to do to run , help please

@codetheweb
Copy link
Member

I'm not really sure what you're trying to accomplish.

It looks like your questions have to do with the basics of Javascript / Node.js rather than TuyAPI, so I'd suggest asking a more specific question somewhere like StackOverflow.

@briggitteorellana
Copy link
Author

I managed to run it, excuse me how can I manage the device on and off??
enviiii

@codetheweb
Copy link
Member

According to the documentation, you can use setState() on a stub instance: https://tuyaapi.github.io/stub/index.html#tuyastubsetstate.

@briggitteorellana
Copy link
Author

is this project used to simulate a virtual device?

@codetheweb
Copy link
Member

Yes.

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

2 participants