|
|
@ -169,14 +169,6 @@ void setup () {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void sendPrompt(uint8_t *buffer) { // {Socket targetSocket, ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
strcpy((char *) buffer, "w00t!> ");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Serial.print("send result: ");
|
|
|
|
|
|
|
|
//Serial.println(send(testSocket, buffer, 6), DEC);
|
|
|
|
|
|
|
|
Serial.println(send(testSocket, buffer, strlen((char *)buffer)), DEC);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void sendBanner(uint8_t *buffer, int ledState) { // {Socket targetSocket, ) {
|
|
|
|
void sendBanner(uint8_t *buffer, int ledState) { // {Socket targetSocket, ) {
|
|
|
|
|
|
|
|
|
|
|
@ -271,8 +263,6 @@ void loop() {
|
|
|
|
|
|
|
|
|
|
|
|
//sendBanner(bytesReceived);
|
|
|
|
//sendBanner(bytesReceived);
|
|
|
|
|
|
|
|
|
|
|
|
//sendPrompt(bytesReceived);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int dataLength = 0;
|
|
|
|
int dataLength = 0;
|
|
|
|
|
|
|
|
|
|
|
|
#define STATE_G 0
|
|
|
|
#define STATE_G 0
|
|
|
@ -343,12 +333,10 @@ void loop() {
|
|
|
|
//Serial.print("send result: ");
|
|
|
|
//Serial.print("send result: ");
|
|
|
|
//Serial.println(send(testSocket, bytesReceived, dataLength), DEC);
|
|
|
|
//Serial.println(send(testSocket, bytesReceived, dataLength), DEC);
|
|
|
|
|
|
|
|
|
|
|
|
//sendPrompt(bytesReceived);
|
|
|
|
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
sendBanner(bytesToSend, ledState);
|
|
|
|
sendBanner(bytesToSend, ledState);
|
|
|
|
//sendPrompt(bytesReceived);
|
|
|
|
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|