Skip to content

library for communicating with tuya devices via the cloud

License

Notifications You must be signed in to change notification settings

marsjupiter1/ArduinoTuya

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ArduinoTuya

library for communicating with tuya devices via the cloud and local socket

This is based on:

https://github.com/gordonb3/tuyapp

For example usage see: https://github.com/marsjupiter1/bigbutton/blob/main/bigbutton.ino

The main thing to be aware of is that tuya needs timestamps and Arduino by default contains no real time clock. Hence the main program needs to do an nttp sync before it can play.

The code sample is still under development, but you can see it:

  1. instantiating a TuyaAuth class.
  2. waiting for autorisation.
  3. Asking tuya how a device works.
  4. turning a device on.

The socket side of things is very much a work in progress. As of now some very messy code is able to operate both 3.1 and 3.3 devices.

About

library for communicating with tuya devices via the cloud

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages