Two parties are always responsible for communication to take place. If you have stored the access data of your router in the Master and these are also correct, then it can only be due to the router settings that the Master loses the connection. Either the signal of the router is not sufficient, i.e. the router is too far away from the Master or the router settings are not set correctly. Please check your router settings.