* Mimic an actual sensor updating its reading every couple seconds.
()
| 153 | * Mimic an actual sensor updating its reading every couple seconds. |
| 154 | */ |
| 155 | readFromGPIO() { |
| 156 | return Math.abs(70.0 * Math.random() * (-0.5 + Math.random())); |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | function runServer() { |