This tutorial refers to a product that has reached its end-of-life status.

Download and Store Web Data © GPL3+

How to use the Arduino HTTP Client library to download a raw text page and store its content on an SD card.

Components and Supplies

Apps and Online Services

About This Project

Format Your SD Card the Right Way

The Arduino SD library is able to read and write only FAT16 or FAT32 cards, so first you need to format your SD card in one of these formats.

Put Things Together

This project is very easy to assemble. You simply have to put your SD card in the Arduino MKR SD Proto Shield and place the shield on top of your MKR1000 board.

HTTP Client Library

The Arduino HTTP client library allows you to easily parse a HTTP GET request separating the header and the body for you. This means that your code is very light and understandable. You can even change your sketch behavior depending on the status code response.

Code

Run the Code

To run the code, upload it onto your board and then open your Serial monitor. The board will print out the various steps in the code, and if the ASCII logo is correctly downloaded, it will be printed on the Serial monitor reading it from the SD card.

Suggest changes

The content on docs.arduino.cc is facilitated through a public GitHub repository. If you see anything wrong, you can edit this page here.

License

The Arduino documentation is licensed under the Creative Commons Attribution-Share Alike 4.0 license.