Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Reconnection Attempts and Logging for Wi-Fi Checker #347

Open
Stonebanks-js opened this issue Oct 18, 2024 · 2 comments
Open

Add Reconnection Attempts and Logging for Wi-Fi Checker #347

Stonebanks-js opened this issue Oct 18, 2024 · 2 comments

Comments

@Stonebanks-js
Copy link
Contributor

Description:

The current wifi checker.py script does not have the ability to automatically retry Wi-Fi reconnection if the connection fails, nor does it log Wi-Fi status or reconnection attempts for future reference. Adding these features would improve the script by providing better reliability and diagnostic capabilities.

Proposed Features:

Reconnection Attempts:

Add functionality to attempt reconnection multiple times (e.g., 3 attempts) when the Wi-Fi connection fails. After the specified number of attempts, the script should stop trying and notify the user that reconnection failed.

Logging Wi-Fi Status:

Implement a logging feature that writes Wi-Fi status (enabled/disabled), reconnection attempts, and success/failure to a log file (wifi_status_log.txt). This will help the user track the script's behavior over time.

Steps to Reproduce:

  • Run the wifi checker.py script.

  • Disconnect your Wi-Fi or let the connection fail.

  • Observe that the script does not attempt reconnection multiple times.

  • There is no log or file created to track the script’s actions.

Expected Behavior:

The script should automatically retry reconnecting to Wi-Fi if the connection fails, up to a certain number of attempts.
All significant actions (Wi-Fi status checks, reconnection attempts, and results) should be logged in a file for future reference

I will be completing this issue by tomorrow

NOTE - THIS ISSUE IS SUBJECTED TO @Stonebanks-js ONLY.

SIGNATURE - ARADHYA CHAUDHARY

@Stonebanks-js
Copy link
Contributor Author

@hasan-py or @DhanushNehru Assign this issue to me and add these labels

  • HacktoberFest Labels

  • Documentation

  • Bug

  • Enhancement

@DhanushNehru
Copy link
Owner

Done @Stonebanks-js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants