You test the return code from the begin() method that uses DHCP, but not the one that doesn't. Is there a reason that you assume that the second method will always work?
What, exactly, IS the problem?
You test the return code from the begin() method that uses DHCP, but not the one that doesn't. Is there a reason that you assume that the second method will always work?
What, exactly, IS the problem?