gordonb3 / tuyapp

C++ client library for the Local Tuya API
GNU General Public License v3.0
2 stars 0 forks source link

v3.5 not supported? #2

Open Rokey122 opened 1 month ago

Rokey122 commented 1 month ago

Hi, It seems to me that tuyapp doesnt have support for tuya version 3.5? All worked fine on my last light bulbs(running version 3.3 i suppose), but trying the same program with new light bulbs doesnt work. My thought is that the encryption has maybe changed?

gordonb3 commented 1 month ago

Sadly, yes. Tuya keeps making non-backwards compatible changes in the API and while I do have a general idea what would be required to support newer versions I don't own any myself and am thus unable to do any functional tests and/or offer meaningful support if things happen to not work as expected. That said, AFAIK the encryption method itself is the same however it is said to have been extended to parts of the message that are not encrypted in version 3.3.

If you like to contribute and make a pull request I'll happily accept it. Please don't change the existing code to accept a version parameter but create a new tuyaAPI35 class instead.