c# - .NET Gadgeteer how to get response from web service -
i'm beginner when comes .net gadgeteer programming managed find how can send data web service how receive i'd control gadgeteer using website need pass values when necessary i'd know should start learning can't find decent developer guide or such don't know of functions mean. simple explanation or beginner examples help.
it depend on version of gadgeteer using, here simple code have used on our physical charts written (though using gadgeteer 4.3 .net micro framework 4.2) in c# on spider main-boards. try it.
[...] using gadgeteer.networking; [...] var request = httphelper.createhttpgetrequest(_getcurrentdemourl + _id); request.responsereceived += getdataresponsereceived; request.sendrequest(); [...] private void getdataresponsereceived(httprequest sender, httpresponse response) { debug.print(response.statuscode + ": " + response.text); if (response.statuscode == "200") { datareceived(response.text); } }
that said, although love stack overflow have not found best place answers gadgeteer or .net micro frameworks questions. have had more luck ghi's forums. in case, there or here, expected read more before posting question. helps if can show code have tried.
Comments
Post a Comment