Added function for available bytes, so UDP is willing to take bytes as a Print

This commit is contained in:
Jeff Lawson 2022-11-27 01:42:23 -08:00
parent 16cce947d5
commit 22b50c2d18

View File

@ -396,6 +396,13 @@ class UDPStream : public WiFiUDP {
this->password = password; this->password = password;
} }
/**
* Always return 1492 (MTU 1500 - 8 byte header) as UDP packet available to write
*/
int availableForWrite() {
return 1492;
}
/** /**
* Provides the available size of the current package and if this is used up * Provides the available size of the current package and if this is used up
* of the next package * of the next package