Skip to main content
3 events
when toggle format what by license comment
Sep 25, 2014 at 16:17 vote accept Kar.ma
Sep 25, 2014 at 16:14 comment added Kar.ma Thank you, I finally got it working today. I created a JSONP message as you told me. I changed in the sketch from client.print(77); to client.println("temperature({\"value\": 77});");. My jQuery request is now $.ajax({url: 'http://192.168.1.98/arduino/api/temperature', dataType: 'jsonp', jsonpCallback: 'temperature', success: function(result){alert("Value received through JSONP is "+result.value)}});
Sep 19, 2014 at 14:47 history answered Federico Fissore CC BY-SA 3.0