Skip to content

Commit

Permalink
StopConnection
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessandro Aussems committed Jan 22, 2018
1 parent 8589e93 commit 1f702e5
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion hardware/request/request_arduino/request_arduino.ino
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void loop(void) {
while (client.available()) {
char c = client.read();
Serial.write(c);
}
};
int fsrReading = analogRead(fsrPin);
int fsrReadingPortemonee = analogRead(fsrPortemonee);

Expand All @@ -76,13 +76,17 @@ void loop(void) {
client.println("Host: restaumator.com");
client.println("Connection: close");
client.println();
client.flush();
client.stop();
delay(1000);
}
if (client.connect(server, 80)) {
client.println("GET /table_billicon_off.php HTTP/1.1");
client.println("Host: restaumator.com");
client.println("Connection: close");
client.println();
client.flush();
client.stop();
delay(1000);
}
Serial.print(fsrReading);
Expand All @@ -98,6 +102,8 @@ void loop(void) {
client.println("Host: restaumator.com");
client.println("Connection: close");
client.println();
client.flush();
client.stop();
}
Serial.print(fsrReading);
Serial.print("LEEG");
Expand All @@ -110,6 +116,8 @@ void loop(void) {
client.println("Host: restaumator.com");
client.println("Connection: close");
client.println();
client.flush();
client.stop();
}
Serial.print('\n');
Serial.print(fsrReadingPortemonee);
Expand All @@ -125,6 +133,8 @@ void loop(void) {
client.println("Host: restaumator.com");
client.println("Connection: close");
client.println();
client.flush();
client.stop();
delay(1000);
}
if (client.connect(server, 80)) {
Expand All @@ -145,6 +155,8 @@ void loop(void) {
client.println("Host: restaumator.com");
client.println("Connection: close");
client.println();
client.flush();
client.stop();
}
Serial.print(fsrReading);
Serial.print("ENKEl VOL");
Expand All @@ -155,6 +167,8 @@ void loop(void) {
client.println("Host: restaumator.com");
client.println("Connection: close");
client.println();
client.flush();
client.stop();
}
Serial.print(fsrReadingPortemonee);
Serial.print("ENKEL BETALEN");
Expand Down

0 comments on commit 1f702e5

Please sign in to comment.