opeolluwa / filesync

Quickly and securely share files from Windows, Linux, Mac to Android devices using wifi.
MIT License
101 stars 20 forks source link

Add functions for Windows hotspot management #205

Closed zoo868e closed 1 year ago

zoo868e commented 1 year ago

This commit adds functions for creating and managing a hotspot on Windows. The create_ap function checks if the device supports the hotspot feature and sets up the hotspot name and password. It then creates a new hotspot and starts it. The turn_off_hotspot function stops the hotspot.

The is_support_hotspot function uses the netsh command to check if the device supports the hosted network. The create_hotspot function uses the netsh command to create a new hotspot with the provided SSID and key. The start_hotspot function starts the created hotspot, and the stop_hotspot function stops the running hotspot.

These functions provide basic functionality for managing a hotspot on Windows.

Please review and test the code.