A project for Raspberry Pi Pico W to:
- connect to Wi-Fi
- send HTTP request to server
- receive response, decode it and print it
Follow installation instructions for Kaluma.js.
Flash the Pico W with the Kaluma firmware.
npm ci
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.
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
.
kaluma flash ./index.js --bundle --shell