Serasidis / Ethernet_STM

WIZnet W5500, W5200, W5100 ethernet library for 8-bit, 32-bit Arduino and STM32F1 (STM32F103) micro-controllers
60 stars 24 forks source link

Response buffer data problem #5

Closed furkan-34 closed 4 years ago

furkan-34 commented 4 years ago

Hello, I have STM32F103C and working with your librariy (thanks for that). I try to get my string data from local php page with web client example. Php page only print 12345678- a couple times, but I can not see whole data. I see data length but not full data. How can I see all response string data ?

Results: `<<< REQ >>> HTTP/1.1 200 OK Date: Tue, 11 Feb 2020 11:13:36 GMT Server: Apache/2.4.41 (Win64) OpenSSL/1.1.1c PHP/7.3.11 X-Powered-By: PHP/7.3.11 Content-Length: 81 Connection: close Content-Type: text/html; charset=UTF-8

12345678-12345678-12345678-12345678-12345678-12345678-12345678-12345678-12345678-... `

Serasidis commented 4 years ago

Are you referring to Ethercard or Ethernet_STM32 library ?

furkan-34 commented 4 years ago

Ethernet_STM32 library. I found the solution: I set

bool EtherCard::persist_tcp_connection = true; at EtherCard.cpp
Ethernet::buffer[off+len] = 0;
and byte Ethernet::buffer[9000]

and it worked very well.

Thank you for made this library.