-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheck.ino
32 lines (30 loc) · 902 Bytes
/
check.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// i am going to make a fucking simple server on arduino
//
#include <Arduino.h>
#include <Ethernet.h>
#include <SPI.h>
#include <Streaming.h>
byte mac[ ] = {0X00, 0XAA, 0XBB, 0XCC, 0XDE, 0X01} ;
IPAddress deadSimpleServerip(192, 168, 0, 100) ;
EthernetServer server(80) ;
void setup() {
Serial.begin(9600) ;
delay(666) ;
Ethernet.begin(mac, deadSimpleServerip) ;
server.begin() ;
Serial << "sucking serial working" << endl ;
}
void loop() {
EthernetClient client = server.available() ;
if (client) {
Serial << "dickless client connected" << endl ;
while (client.connected()) {
if (client.available()) {
char suckingClientData = client.read() ;
Serial << suckingClientData << " " ;
client << "asshole you sent shit to the server" << endl ;
}
}
client.stop() ;
}
}