Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion aREST.h
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,24 @@ void handle(EthernetClient& client){
}
}

// Handle request for the uIP library based on breakouts of the ENC28J60 https://github.com/ntruchsess/arduino_uip
#elif defined(UIPETHERNET_H)
void handle(EthernetClient& client){

if (client.available()) {

// Handle request
handle_proto(client,true,0);

// Answer
sendBuffer(client,50,0);
client.stop();

// Reset variables for the next command
reset_status();
}
}

// Handle request for the ESP8266 chip
#elif defined(ESP8266)
void handle(WiFiClient& client){
Expand Down Expand Up @@ -1160,4 +1178,4 @@ void resetBuffer(){

};

#endif
#endif