-->
Page 1 of 1

How to Implement REST clients with Basic

PostPosted: Tue Sep 06, 2016 8:24 am
by jimlyke
I finally found a few minutes to flash a nodeMCU module to the basic interpreter, and it is an amazing piece of work! I was eager to see if I could get a converted nodeMCU to implement a very simple REST/quasi-REST client, but I could not seem to find a coded example. (this was odd because for some reason I thought i saw a code snippet, which motivated me to do this in the first place...) Could someone please point me to the right place? The core functionality I need is to: (1) do a GET method request, passing some information in the URL argument, (2) wait for a response from a server, (3) parse the returned string, and from there (4) i would optionally perform actions based on the returned response.

Re: How to Implement REST clients with Basic

PostPosted: Tue Sep 06, 2016 10:40 am
by Mmiscool
The wget() function can fetch any url and the return the contents of the page.