From ef4aa51877f0be516b129b85afda180418db6782 Mon Sep 17 00:00:00 2001 From: Will Bradley Date: Sat, 18 Feb 2012 21:05:53 -0700 Subject: [PATCH] Pulled queryURL into variable --- nagiosdisplay.pde | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nagiosdisplay.pde b/nagiosdisplay.pde index e929635..e619868 100644 --- a/nagiosdisplay.pde +++ b/nagiosdisplay.pde @@ -15,6 +15,7 @@ // Variables you should change based on preferences int updateFrequency = 30; // in seconds int numrows = 2; // number of shift registers in the daisy chain +char* queryURL = "/nag.php?minimal=1"; // path on the webserver // Enter a MAC address and IP address info for your Arduino below. // These values will change based on your network. @@ -153,7 +154,9 @@ void loop() { if (client.connect()) { Serial.println("connected"); // Make a HTTP request: - client.println("GET /nag.php?minimal=1 HTTP/1.0"); + client.print("GET "); + client.print(queryURL); + client.println(" HTTP/1.0"); client.println(); }