TEXT   84
19. mikroC TCPIP library, Lwip TCPIP stack
Guest on 16th August 2022 01:39:56 PM


  1. mikroC TCP/IP library, Lwip TCP/IP stack
  2.  
  3. If you are using mikroC TCP/IP libaray for PIC18, enc28j60 or any mikroC supported platform, there is no separate function for sending HTTP headers, you can simply add Gzipped data array in same way as have learned for ESP8266, add HTTP header in simple uncompressed form on Start of Gzipped array, then use
  4.  
  5. Net_Ethernet_Intern_putByteTCP()
  6.  
  7. for sending only single array that contains both HTTP header and Gzipped data.
  8.  
  9. Is that clear?
  10.  
  11. Use exactly same technique if you are going to use STM32 or any other ARM chip with Lwip TCP/IP stack.
  12.  
  13. Here is one example,
  14.  
  15. consider
  16.  
  17. char gz[]={0x04, 0x04, 0x44,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,};
  18.  
  19. is some array in Gzipped form that you have to transmit, append all HTTP headers on start of this array, and transmit this single array with appropriate tcp transmit function,
  20.  
  21. If you find it difficult, feel free to ask question.

Raw Paste

Login or Register to edit or fork this paste. It's free.