Place to put your Basic demos and examples

Moderator: Mmiscool

User avatar
By jimlyke
#54591 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.
User avatar
By Mmiscool
#54594 The wget() function can fetch any url and the return the contents of the page.