We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f00784 commit 94a8723Copy full SHA for 94a8723
examples/SimpleHttpExample/SimpleHttpExample.ino
@@ -25,6 +25,9 @@ const int kNetworkTimeout = 30*1000;
25
// Number of milliseconds to wait if no data is available before trying again
26
const int kNetworkDelay = 1000;
27
28
+WiFiClient c;
29
+HttpClient http(c, kHostname);
30
+
31
void setup()
32
{
33
//Initialize serial and wait for port to open:
@@ -50,9 +53,6 @@ void loop()
50
53
51
54
int err =0;
52
55
- WiFiClient c;
- HttpClient http(c, kHostname);
-
56
err = http.get(kPath);
57
if (err == 0)
58
0 commit comments