Skip to content

Instantly share code, notes, and snippets.

@Terny22
Created August 28, 2018 10:09
Show Gist options
  • Save Terny22/89cca76d19086f1208d0b2619973ce48 to your computer and use it in GitHub Desktop.
Save Terny22/89cca76d19086f1208d0b2619973ce48 to your computer and use it in GitHub Desktop.
Generator function for Getting-Started 2.0 video
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