https://github.com/outofcoffee/picow-wifi-http
A project for Raspberry Pi Pico W to connect to Wi-Fi, send HTTP request to server and decode the response
https://github.com/outofcoffee/picow-wifi-http
http kaluma nodejs pico-w picow wifi
Last synced: 2 months ago
JSON representation
A project for Raspberry Pi Pico W to connect to Wi-Fi, send HTTP request to server and decode the response
- Host: GitHub
- URL: https://github.com/outofcoffee/picow-wifi-http
- Owner: outofcoffee
- Created: 2023-11-12T23:18:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-16T00:01:40.000Z (over 1 year ago)
- Last Synced: 2025-03-08T23:02:03.613Z (3 months ago)
- Topics: http, kaluma, nodejs, pico-w, picow, wifi
- Language: JavaScript
- Homepage:
- Size: 32.2 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Pico W - Wi-Fi and HTTP request example
A project for [Raspberry Pi Pico W](https://www.raspberrypi.com/documentation/microcontrollers/raspberry-pi-pico.html) to:
- connect to Wi-Fi
- send HTTP request to server
- receive response, decode it and print it## Prerequisites
Follow installation instructions for [Kaluma.js](https://kalumajs.org).
Flash the Pico W with the [Kaluma firmware](https://kalumajs.org/docs/getting-started#install-firmware).
## Install dependencies
```bash
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:
```bash
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
```bash
kaluma flash ./index.js --bundle --shell
```