Skip to content

sixfab/wifi_access_point_server

 
 

Repository files navigation

Repo for switching AP mode and client mode of wifi

It is suitable for dhcpcd managed network on Raspberry Pi OS.

Component of project are;

  • dhcpcd
  • dnsmasq
  • hostapd
  • wpa_supplicant

Configuration

  • Change the configs on source_config file with your preferred values. You can get help from example values.
    • Default Values
      • Access Point SSID: test_ap
      • Access Point Password: 12345678
      • Static IP Address: 192.168.100.1
      • Domain: test.local
  • Do not forget to change [WIFI_SSID] and [WIFI_PASSWORD] on source_config file with your wifi ssid and password.

Installation

sudo chmod +x ./install.sh
sudo ./install.sh

Usage

To switch to AP mode:

sudo ./switch_ap_mode.sh

To switch to client mode:

sudo ./switch_client_mode.sh

To run test_server

sudo python3 test_server.py

Full Usage Scenario

  • Change source_config files with your values
  • Switch AP mode
  • Run the test_server
  • Connect the wifi access point by uisng another device
  • Type static_ip_address or domain and view the test server on your device.

Uninstallation

sudo chmod +x ./uninstall.sh
sudo ./uninstall.sh

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 96.8%
  • Python 3.2%