- Wearable:Tech Projects with the Raspberry Pi Zero
- Jon Witts
- 237字
- 2021-07-02 19:46:24
Setting up your Wi-Fi network
To be able to connect to our Raspberry Pi Zero, we are going to need a working network connection. We will be using the Pi Zero W's Wi-Fi network for this. If you are using a Pi without built-in Wi-Fi, then these instructions will still work, you will just need to connect a USB Wi-Fi dongle to your Pi first.
We have been given a straightforward method of configuring our Wi-Fi connection when using our Pi in headless mode too. If we create a file called wpa_supplicant.conf in the boot partition of our Pi's SD card, upon first boot, this file is copied into the /etc/wpa_supplicant/ directory and used to configure the Wi-Fi settings for the Pi. However, this file must contain a valid set of configuration details, or your Pi will not connect to your Wi-Fi.
Here is an example of a wpa_supplicant.conf file setup to connect to the Wi-Fi network called mywifinetwork with a connection password of mypassword. You should obviously change these to match the details of your Wi-Fi network when writing your file. You can read more about the different configurations you can add to this file over at the Raspberry Pi's official documentation pages at https://www.raspberrypi.org/documentation/configuration/wireless/wireless-cli.md:
network={
ssid="mywifinetwork"
psk="mypassword"
}
It is worth double checking the format and details entered here, as any mistakes in this file will stop your Pi Zero from joining your wireless network.
- Getting Started with PowerShell
- iOS開發實戰:從零基礎到App Store上架
- SAS數據統計分析與編程實踐
- 領域驅動設計:軟件核心復雜性應對之道(修訂版)
- Access 2010中文版項目教程
- 用案例學Java Web整合開發
- 持續集成與持續交付實戰:用Jenkins、Travis CI和CircleCI構建和發布大規模高質量軟件
- Learning Grunt
- SEO教程:搜索引擎優化入門與進階(第3版)
- 大話代碼架構:項目實戰版
- Android 5從入門到精通
- Unreal Engine 4 Game Development Essentials
- Python編程基礎
- C語言從入門到精通(第4版)
- Mastering Kali Linux for Advanced Penetration Testing(Second Edition)