简体   繁体   English

如何使用Firebase设定Nest Thermostat温度?

[英]How to set the Nest Thermostat temperature with firebase?

I'm using Firebase with the Nest API in Swift, but when I try to use setValue on a key in the Firebase structure, it tells me that it is read-only. 我在Swift的Nest API中使用的是Firebase,但是当我尝试在Firebase结构中的键上使用setValue时,它告诉我它是只读的。 I'm using the access token authorization, so I really don't know how to set thermostat temperatures. 我正在使用访问令牌授权,因此我真的不知道如何设置恒温器温度。 Can someone help? 有人可以帮忙吗?

事实证明,要设置温度,您需要设置target_temperature_ftarget_temperature_c ,而不是target_temperature

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM