Cannot connect to server when connected GPS

Dears, I got a trouble, but I cannot find any solution on network, please give me some suggestion, thanks a lot.

My GPS using TinyGPS++ and GPS can get lat and lng.

If I marked GPS code (#define GPS @ line 3), WiFi can connect to server and get response, but when I un-remark GPS (//#define GPS @ line 3), WiFi . connect to server fail.

Please refer the attached file, please give me some suggestion, thanks a lot.

wifi_ok.txt (2.49 KB)

Thanks, I solved, 3Q!