Skip to content

Instantly share code, notes, and snippets.

@josemariagarcia95
Last active April 27, 2018 10:42
Show Gist options
  • Save josemariagarcia95/387d3b4bcc9d07f4757f62171595082f to your computer and use it in GitHub Desktop.
Save josemariagarcia95/387d3b4bcc9d07f4757f62171595082f to your computer and use it in GitHub Desktop.
jQuery snippet for retrieving data from the sensor
$.ajax({
type: 'GET',
dataType: 'JSONP',
url: 'http://your_app_url',
success: function (result) { alert(result); console.log(result);},
error: function(result) { console.log(result); console.log('Uh Oh!'); }
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment