to send a webpage to esp i need to calculate the size of the content. Its a long string and can differ in size sometimes depending what varibles will hold at that moment so size of webpage will differ too.
But to send size in ascii i need to convert it from int to ascii. Like in my example of “256”.
The other wierd thing that guys noticed is why i cant use serial.print? Cos that will solve that problem as its converting to ascii before sending.
Are my receiving and sending functions wrong? They are working flawlessly no corrupted data no buffer overflow so far.