|
|
|
@ -233,11 +233,8 @@ void loop() {
|
|
|
|
|
Serial.println(ip[3], DEC);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// TODO: Avoid buffer overflows in both cases...
|
|
|
|
|
#define MAX_RX_BUFFER_SIZE 5
|
|
|
|
|
// TODO: Avoid buffer overflows...
|
|
|
|
|
#define MAX_TX_BUFFER_SIZE 200
|
|
|
|
|
uint8_t bytesReceived[MAX_RX_BUFFER_SIZE]; // NOTE: Actual buffer should be larger.
|
|
|
|
|
|
|
|
|
|
uint8_t bytesToSend[MAX_TX_BUFFER_SIZE];
|
|
|
|
|
|
|
|
|
|
//sendBanner(bytesReceived);
|
|
|
|
@ -264,7 +261,6 @@ void loop() {
|
|
|
|
|
while (getSn_SR(testSocket) == SOCK_ESTABLISHED) {
|
|
|
|
|
while (getSn_RX_RSR(testSocket) > 0) {
|
|
|
|
|
theByte = readByte();
|
|
|
|
|
//Serial.print(bytesReceived[0], BYTE);
|
|
|
|
|
Serial.print(theByte, BYTE);
|
|
|
|
|
if ((state == STATE_G) && (theByte == 'G')) {
|
|
|
|
|
state = STATE_E;
|
|
|
|
|