Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Latest commit

 

History

History
11 lines (7 loc) · 895 Bytes

6-arduino-webclient.md

File metadata and controls

11 lines (7 loc) · 895 Bytes

Arduino WebClient

Minimum Barebones of a Web Client

  • Able to send a HTTP request with customized header and body where parameters are contained.
  • Able to parse HTTP response which is normally in JSON format, more specifically by stripping out the headers and read any key-value pair in the body.

Testing

Grab all code from arduinoWebClient.ino, paste it into your arduino editor, you should be able to see: every 10 seconds, Arduino initiates a ?action=arduinoPull API call and received the status; if the toMove field in the HTTP response is true, then Arduino will send ?action=arduinoMove to notify Web Server that queuing move is being executed and clear the pipeline. All log should be seen in your serial monitor.