If your Samsung printer is not connecting to WIFI, there are a few things you can do to troubleshoot the issue.
First, make sure that your printer is turned on and in range of your WIFI router. If it is, then try restarting both your printer and router. Sometimes this can fix connection issues.
If that doesn't work, try connecting your printer to WIFI using a different method. For example, if you're using the WPS push button method, try the PIN code method instead. You can find instructions for how to do this in your printer's manual.
Finally, if none of these solutions work, you may need to contact Samsung customer support for further assistance.