Skip to content

A project for Raspberry Pi Pico W to connect to Wi-Fi, send HTTP request to server and decode the response

Notifications You must be signed in to change notification settings

outofcoffee/picow-wifi-http

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pico W - Wi-Fi and HTTP request example

A project for Raspberry Pi Pico W to:

  • connect to Wi-Fi
  • send HTTP request to server
  • receive response, decode it and print it

Prerequisites

Follow installation instructions for Kaluma.js.

Flash the Pico W with the Kaluma firmware.

Install dependencies

npm ci

Configure Wi-Fi

To connect to Wi-Fi, you need to create a wifi.json file in the project's root directory.

Copy wifi.json.example to wifi.json and edit it to match your Wi-Fi network settings.

Run it

Note Ensure your Pico W is connected to your computer via USB and you have flashed the Kaluma firmware.

Bundle the code and flash it to the Pico W:

npm start

The program will connect to Wi-Fi, send an HTTP request to server, receive response, print response, and then exit.

To exit the remote shell, press Ctrl + z.

Flash and bundle manually

kaluma flash ./index.js --bundle --shell

About

A project for Raspberry Pi Pico W to connect to Wi-Fi, send HTTP request to server and decode the response

Topics

Resources

Stars

Watchers

Forks