---
title: "RP2040 wifi HTTP client (use wizfi360+micropython)"
url: "https://maker.wiznet.io/scarlet/projects/rp2040-wifi-http-client-use-wizfi360-micropython/"
markdown_url: "https://maker.wiznet.io/scarlet/projects/rp2040-wifi-http-client-use-wizfi360-micropython/md"
type: "UCC: User Created Content"
author: "scarlet"
author_url: "https://maker.wiznet.io/scarlet/"
original_author: "scarlet"
original_url: "https://www.hackster.io/wizscarlet5986/rp2040-wifi-http-client-use-wizfi360-micropython-707b99"
published: "2022-11-25"
language: "en"
tags: ["Wi-Fi", "WizFi360-EVB-Pico"]
hardware: ["WIZnet WizFi360-EVB-Pico"]
likes: 6
views: 4515
comments: 0
source: "WIZnet Makers (https://maker.wiznet.io/)"
---

# RP2040 wifi HTTP client (use wizfi360+micropython)

> Http client simple macropython example using raspberry pico + wifi module. (rp2040 + wizfi360 module)

Original author: scarlet (source: https://www.hackster.io/wizscarlet5986/rp2040-wifi-http-client-use-wizfi360-micropython-707b99)

## Components

- **WIZnet WizFi360-EVB-Pico** x 1
- Software: **MicroPython** ([docs](http://micropython.org/))

## Article

### **Step 1: Prepare software**

The following Python IDE program is required for http_request example test, download and install from below link.

- [**Thonny**](https://thonny.org/)

Before programming, see the following videos and Getting Started.

<https://github.com/Wiznet/WizFi360-EVB-Pico-MicroPython/blob/main/static/documents/getting_started.md>

\[wiznet official you-tube\]

<https://www.youtube.com/watch?v=8FcFhZRNNxE>

### **Step 2: Prepare hardware**

If you are using Wizfi360-EVB-Pico, you can skip '1. Combine...'

1. Combine Wizfi360 with Raspberry Pi Pico.

2. Prepare AP Modem which is connected to Raspberry Pi Pico or Wizfi360-EVB-Pico.

3. Connect Raspberry Pi Pico or Wizfi360-EVB-Pico to desktop or laptop using 5 pin micro USB cable.

### **Step 3: Setup HTTP Request Example**

To test the HTTP Request example, minor settings shuld be done in code.

Setup AP Modem configuration such as SSID, Password in 'secrets.py' which is the secret settings file in '/lib' directory.

```plaintext
secrets = {
    # Wi-Fi
    "ssid": "my access point",
    "password": "my password",
}
```

Setup UART port and pin in 'http_request.py' in 'examples/http/request' directory. (Wizfi360-EVB-Pico Using Uart1, Rxpin5, Txpin4)

```plaintext
PORT =1
RX   =5
TX   =4
```

also, setup the Reset pin at the next line (Wizfi360-EVB-Pico Using ResetPin20)

```plaintext
resetpin = 20
```

Setup Http URL. You should set the required URL in 'http_request.py'file.

```plaintext
URL="http://httpbin.org/get"
```

### **Step 4: Upload and Run**

After completing the code example configuration, open 'http_request.py' file on Thonny,

Click the 'RUN' button on bar or press the 'F5' button on the keyboard to Run program.

If the HTTP Request example works normally on Raspberry Pi Pico or Wizfi360-EVB-Pico, you can see the messages received from the URL.

![](https://hackster.imgix.net/uploads/attachments/1521516/img_run_http_request.png?auto=compress%2Cformat&w=740&h=555&fit=max)

---

Source: https://maker.wiznet.io/scarlet/projects/rp2040-wifi-http-client-use-wizfi360-micropython/
