Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(document).ready(function(){
- var sensorURL = "http://127.0.0.1:1880/data"
- function checkData(){
- jQuery.getJSON(sensorURL, function(sensorData){
- console.log(sensorData);
- console.log("Test works every 10 sec...");
- // change the following line to show the current temperature or some other data point from the SensorTag
- jQuery("p.api").html("This paragraph is controlled by jQuery");
- });
- }
- setInterval(checkData, 10000);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement