 	curl.runAsynchronously();
 }
 
+void getData() {
+	Process p;
+	p.begin("curl");
+	p.addParameter(BLOCKER_STATE_URI);
+	p.run();
+
+	while (p.available()>0) {
+		char c = p.read();
+		switch(c) {
+			case 'b':
+				if (p.read() == '=')
+					block = p.read();
+				break;
+		}
+	}
+}


	Console.begin();
	xbeeSerial.begin(9600);
}

void loop() {

#include <Console.h>

#define SERVER_URI "http://192.168.1.147:5000/laundrydude/api/data"
#define BLOCKER_STATE_URI "http://192.168.1.147:5000/laundrydude/api/blocker"

const byte numChars = 32;
char receivedChars[numChars];		// an array to store the received data
bool newData = false;
char block = false;

SoftwareSerial xbeeSerial(8, 9); // RX, TX
Process curl;
