Created
August 28, 2018 10:09
-
-
Save Terny22/89cca76d19086f1208d0b2619973ce48 to your computer and use it in GitHub Desktop.
Generator function for Getting-Started 2.0 video
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var msg = { temperature: +(Math.random()*5 + 25).toFixed(1) }; | |
var metadata = { data: 40 }; | |
var msgType = "POST_TELEMETRY_REQUEST"; | |
return { msg: msg, metadata: metadata, msgType: msgType }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment