This PR introduces a Wi-Fi reconnection mechanism with logging. It attempts to reconnect to Wi-Fi up to 3 times if the connection is not working. The process is logged with information on the Wi-Fi status and reconnection attempts.
Description
This change adds functionality for:
Wi-Fi Reconnection Attempts: The script checks the Wi-Fi status and tries to reconnect up to 3 times if the connection fails.
Logging: Logs are added to track the status of Wi-Fi (enabled/disabled), reconnection attempts, and results (success or failure). The log file wifi_status_log.txt records all actions.
The changes are as follows:
Integrated a retry mechanism in the job() function to attempt reconnection up to 3 times if no internet is detected.
Added logging to track Wi-Fi connection status and reconnection attempts.
Checks
in the repository
[x] Made no changes that degrade the functioning of the repository
PR Title
Add reconnection attempts for Wi-Fi with logging
Summary
This PR introduces a Wi-Fi reconnection mechanism with logging. It attempts to reconnect to Wi-Fi up to 3 times if the connection is not working. The process is logged with information on the Wi-Fi status and reconnection attempts.
Description
This change adds functionality for:
wifi_status_log.txt
records all actions.The changes are as follows:
job()
function to attempt reconnection up to 3 times if no internet is detected.Checks
in the repository
Thank You,
Badis