如何使用 firebase 设置 Nest Thermostat 温度?

How to set the Nest Thermostat temperature with firebase?

我在 Swift 中将 Firebase 与 Nest API 一起使用,但是当我尝试对 Firebase 结构中的键使用 setValue 时,它​​告诉我它是只读的。我正在使用访问令牌授权,所以我真的不知道如何设置恒温器温度。有人可以帮忙吗?

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