diff --git a/examples/SimpleHttpExample/SimpleHttpExample.ino b/examples/SimpleHttpExample/SimpleHttpExample.ino index 550015a..a6aa6b6 100644 --- a/examples/SimpleHttpExample/SimpleHttpExample.ino +++ b/examples/SimpleHttpExample/SimpleHttpExample.ino @@ -25,6 +25,9 @@ const int kNetworkTimeout = 30*1000; // Number of milliseconds to wait if no data is available before trying again const int kNetworkDelay = 1000; +WiFiClient c; +HttpClient http(c, kHostname); + void setup() { //Initialize serial and wait for port to open: @@ -50,9 +53,6 @@ void loop() { int err =0; - WiFiClient c; - HttpClient http(c, kHostname); - err = http.get(kPath); if (err == 0) {