Skip to content

Commit 8ec0f95

Browse files
committed
Stop using worldtimeapi.org
Change the TLS example to use our download server. worldtimeapi.org seems to be unreliable and it's a bit impolite to hit their server in our examples.
1 parent 58877e4 commit 8ec0f95

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pico_w/wifi/tls_client/picow_tls_client.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
#include "pico/stdlib.h"
88
#include "pico/cyw43_arch.h"
99

10-
#define TLS_CLIENT_SERVER "worldtimeapi.org"
11-
#define TLS_CLIENT_HTTP_REQUEST "GET /api/ip HTTP/1.1\r\n" \
10+
#define TLS_CLIENT_SERVER "fw-download-alias1.raspberrypi.com"
11+
#define TLS_CLIENT_HTTP_REQUEST "GET /net_install/boot.sig HTTP/1.1\r\n" \
1212
"Host: " TLS_CLIENT_SERVER "\r\n" \
1313
"Connection: close\r\n" \
1414
"\r\n"

0 commit comments

Comments
 (0)