|
@ -27,6 +27,7 @@ void TCP::connectWiFi(TFT_eSPI& tf) { |
|
|
delay(1000); |
|
|
delay(1000); |
|
|
tft->println(WiFi.localIP()); |
|
|
tft->println(WiFi.localIP()); |
|
|
delay(1000); |
|
|
delay(1000); |
|
|
|
|
|
//client.setTimeout(100);
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void TCP::testConnection(){ |
|
|
void TCP::testConnection(){ |
|
@ -73,7 +74,7 @@ void TCP::sendData(float& potData, int& emoteIndex) { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void TCP::receiveImage() { |
|
|
void TCP::receiveImage() { |
|
|
client.setTimeout(500); |
|
|
//client.setTimeout(500);
|
|
|
|
|
|
|
|
|
uint8_t* imageData = new uint8_t[w * h * 3]; // Allocate memory for a 64x80 image
|
|
|
uint8_t* imageData = new uint8_t[w * h * 3]; // Allocate memory for a 64x80 image
|
|
|
|
|
|
|
|
|