Set temperature (0.0 to 2.0 range, stored as fixed-point).
(mut self, temp: f32)
| 129 | |
| 130 | /// Set temperature (0.0 to 2.0 range, stored as fixed-point). |
| 131 | pub fn temperature(mut self, temp: f32) -> Self { |
| 132 | self.temperature = Some((temp * 1000.0) as u32); |
| 133 | self |
| 134 | } |
| 135 | |
| 136 | /// Set timestamp (Unix epoch seconds). |
| 137 | pub fn timestamp(mut self, ts: i64) -> Self { |
no outgoing calls