Last active
December 17, 2015 00:18
-
-
Save xively-gists/5519556 to your computer and use it in GitHub Desktop.
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
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