Hi guys, i'm developing very hard with your WebPlatform and i feel very comfortable with it! Great Product!
Actually i run in a problem with microchip stack that maybe can interest other users: I'm doing a board that collects some values from the real world and send it via http to our server (php page that save the values in the db). In the microchip stack there wasn't the HTTP client so i write my own that send via POST a file from the EEPROM. But the problem was that i was supposed to replace the ~variable~ string with the real value but the microchip's HTTPPrint() function only works with their HTTP2 server.
So i changed it to pass the socket where we need to put our infos:
in HTTPClient.h: from
void HTTPPrint(DWORD callbackID);
to
void HTTPPrint(TCP_SOCKET skt, DWORD callbackID);
in HTTP2.c line 964: from
HTTPPrint(curHTTP.callbackID);[
to
HTTPPrint(sktHTTP, curHTTP.callbackID);
in the HTTPPrint_* functions i passed the TCP_SOCKET skt variable.
In this way we can use the HTTPPrint function in our code!
The main problem is that MPFS utility overwrite the HTTPClient.h file everytime a new image is created, so i was wondering about modifying this utility to add this trick.
Is there any source code of that application?
Anybody can teach me to make a patch file (i never made one)
Bye
Stefano