Skip to content

Instantly share code, notes, and snippets.

@xively-gists
Last active December 17, 2015 00:18
Show Gist options
  • Save xively-gists/5519556 to your computer and use it in GitHub Desktop.
Save xively-gists/5519556 to your computer and use it in GitHub Desktop.
agent.on("json", function(value) { //receive data from agent
server.log("agent is on");
//server.log(value); //uncomment to print the data first
hardware.uart57.write("\n" + value); //write data to UART
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment