Skip to content

Commit 9018406

Browse files
committed
Restrict sentences to Espressif platform
1 parent fecef04 commit 9018406

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/WifiLocation.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,11 @@ location_t WifiLocation::getGeoFromWiFi() {
9797

9898
location_t location;
9999
String response = "";
100+
#if defined ARDUINO_ARCH_ESP8266 || defined ARDUINO_ARCH_ESP32
100101
//_x509 = new BearSSL::X509List (googleCA);
101102
//_client.setTrustAnchors (_x509);
102103
_client.setInsecure (); // Do not check certificate, just connect
104+
#endif
103105
#ifdef ARDUINO_ARCH_ESP32
104106
_client.setCACert(googleCA);
105107
#endif

0 commit comments

Comments
 (0)