TuyaInc / tuyasmart_home_ios_sdk

Tuya Smart iOS Home SDK
https://tuyainc.github.io/tuyasmart_home_ios_sdk_doc
50 stars 19 forks source link

The color of the smart bulb does not change #56

Closed UltimoAlves closed 4 years ago

UltimoAlves commented 4 years ago

I'm trying to change the color of the smart lamp using the following code:

------------------------------------------------- var dps = [String : Any]() dps = ["24" : "00f003e8"] device?.publishDps(dps, success: { print("success") }, failure: { (error) in if let e = error { print("publishDps failure: (e)") } }) -------------------------------------------------

I have tried to pass a value in hexadecimal, RGB, the literal name of the color (for example blue) and the color of the smart lamp does not update, but the method returns me success. where am i wrong?

PS: i'm using swift

TuyaRonbin commented 4 years ago

Can you give me some information about the products?such as pId.