ClusterM / tuyanet

.NET library to interface with Tuya WiFi smart devices over LAN.
GNU General Public License v3.0
61 stars 10 forks source link

Wrong argument check in TuyaDevice #1

Closed ishikht closed 2 years ago

ishikht commented 2 years ago

Hello @ClusterM, There is probably a bug in TuyaDevice.cs in lines 122 and 133 you have: if (string.IsNullOrEmpty(accessId)) throw new ArgumentException("LocalKey is not specified", "LocalKey"); I think instead of accessId there should be LocalKey. In my app it crashes on this line, I've replaced it with LocalKey and it works as expected. Thanks

ClusterM commented 2 years ago

Fixed, thank you.