MCPcopy Index your code
hub / github.com/WebThingsIO/webthing-node / readFromGPIO

Method readFromGPIO

example/multiple-things.js:155–157  ·  view source on GitHub ↗

* Mimic an actual sensor updating its reading every couple seconds.

()

Source from the content-addressed store, hash-verified

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
160function runServer() {

Callers 1

constructorMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected