Last active
April 27, 2018 10:42
-
-
Save josemariagarcia95/387d3b4bcc9d07f4757f62171595082f to your computer and use it in GitHub Desktop.
jQuery snippet for retrieving data from the sensor
This file contains hidden or 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
$.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